import{b as Is}from"./chunk-PKWQSSNS.js";import{a as Qs}from"./chunk-L6YWHQFP.js";import{$ as Xi,A as bi,Aa as bs,B as Pi,Ba as Ps,C as Ci,Ca as Cs,D as Mi,Da as Ms,E as Ni,Ea as Ns,F as Di,Fa as Ds,G as ki,Ga as ks,H as Li,Ha as Ls,I as Ri,Ia as Rs,J as Oi,Ja as Os,K as Fi,Ka as Fs,L as zi,La as zs,M as Bi,Ma as Bs,N as Vi,Na as Vs,O as Ki,Oa as Ks,P as qi,Pa as qs,Q as Ui,Qa as Us,R as Qi,S as Ii,T as $i,U as ji,V as Wi,W as Gi,X as Hi,Y as Zi,Z as xi,_ as Yi,a as ti,aa as Ji,b as ii,ba as es,c as si,ca as ts,d as ri,da as is,e as ni,ea as ss,f as ai,fa as rs,g as oi,ga as ns,h as li,ha as as,i as ci,ia as os,j as hi,ja as ls,k as ui,ka as cs,la as hs,m as di,ma as us,n as fi,na as ds,o as mi,oa as fs,p as pi,pa as ms,q as gi,qa as ps,r as yi,ra as gs,sa as ys,t as _i,ta as _s,u as vi,ua as vs,v as Ei,va as Es,w as Si,wa as Ss,x as Ti,xa as Ts,y as wi,ya as ws,z as Ai,za as As}from"./chunk-4WQJ3IZB.js";import"./chunk-6753ERK4.js";import{$b as pe,$d as ei,A as S,Ab as Bt,Ba as kt,Bb as Vt,C as fe,Ca as Lt,Cb as Kt,D as At,Da as Rt,Db as qt,F as me,Fb as Be,G as H,Gb as Ut,Hb as Qt,I as Fe,Ib as It,Jb as $t,Lb as jt,Mb as Wt,Nb as Gt,Ob as Ht,Pb as Zt,Q as bt,Qb as xt,Qc as Xt,Rb as v,S as Pt,Sb as q,Vb as Yt,W as ze,Wb as Ve,X as Ct,Zb as se,_b as Ke,bd as Jt,ea as Mt,fc as ge,ha as Nt,i as Et,ia as Dt,n as St,nb as Ot,r as Tt,yb as Ft,z as wt,zb as zt}from"./chunk-7SK34GC7.js";import{a as ie,c as vt}from"./chunk-JKOY2XUY.js";var $s=["102 115",`<g style="fill: currentColor">
    <path d="M96 24.124 57 1.608a12 12 0 0 0-12 0L6 24.124a12.034 12.034 0 0 0-6 10.393V79.55a12.033 12.033 0 0 0 6 10.392l39 22.517a12 12 0 0 0 12 0l39-22.517a12.033 12.033 0 0 0 6-10.392V34.517a12.034 12.034 0 0 0-6-10.393ZM94 79.55a4 4 0 0 1-2 3.464l-39 22.517a4 4 0 0 1-4 0L10 83.014a4 4 0 0 1-2-3.464V34.517a4 4 0 0 1 2-3.464L49 8.536a4 4 0 0 1 4 0l39 22.517a4 4 0 0 1 2 3.464V79.55Z"/>
    <path d="M74.022 70.071h-2.866a4 4 0 0 0-1.925.494L51.95 80.05 32 68.531V45.554l19.95-11.519 17.29 9.455a4 4 0 0 0 1.919.49h2.863a2 2 0 0 0 2-2v-2.71a2 2 0 0 0-1.04-1.756L55.793 27.02a8.04 8.04 0 0 0-7.843.09L28 38.626a8.025 8.025 0 0 0-4 6.929V68.53a8 8 0 0 0 4 6.928l19.95 11.519a8.043 8.043 0 0 0 7.843.088l19.19-10.532a2 2 0 0 0 1.038-1.753v-2.71a2 2 0 0 0-2-2Z"/>
  </g>`];var js=["685 116",`<g>
    <g style="fill:#cf2f4c" transform="translate(0 -10)">
      <path d="M399.5024,45.8636h1.2164a.5659.5659,0,0,1,.64.64v43.52a.5658.5658,0,0,1-.64.6406h-1.4083a.7517.7517,0,0,1-.768-.4482L379.2144,51.6234c-.086-.085-.16-.1172-.2242-.0967-.0634.0225-.0957.0967-.0957.2246l.064,38.2715a.5662.5662,0,0,1-.64.6406h-1.2159a.5656.5656,0,0,1-.64-.6406V46.5033a.5657.5657,0,0,1,.64-.64h1.3438a.7524.7524,0,0,1,.7681.4473l19.3281,38.4639c.0849.0869.16.1181.2241.0966s.0957-.0966.0957-.2246V46.5033A.5657.5657,0,0,1,399.5024,45.8636Z"/>
      <path d="M360.418,90.1507l-2.4317-8.832a.2965.2965,0,0,0-.32-.1914H340.8984a.2951.2951,0,0,0-.32.1914L338.21,90.0873a.6584.6584,0,0,1-.7037.5761H336.29a.5863.5863,0,0,1-.48-.1923.58.58,0,0,1-.0961-.5118l12.0317-43.5839a.6436.6436,0,0,1,.7041-.5118h1.6a.6442.6442,0,0,1,.7041.5118l12.16,43.5839.0644.1914c0,.3428-.2139.5127-.64.5127h-1.2163A.6426.6426,0,0,1,360.418,90.1507ZM341.3145,78.9193a.3057.3057,0,0,0,.2236.0957h15.4883a.3076.3076,0,0,0,.2236-.0957c.0645-.0645.0742-.1172.0322-.16L349.41,49.8314c-.043-.085-.086-.1279-.128-.1279s-.0859.0429-.1279.1279l-7.8721,28.9277C341.2393,78.8021,341.25,78.8548,341.3145,78.9193Z"/>
      <path d="M419.8223,87.9427a11.2812,11.2812,0,0,1-3.3282-8.48v-22.4a11.2857,11.2857,0,0,1,3.3282-8.48,13.69,13.69,0,0,1,17.6318-.0323,11.0472,11.0472,0,0,1,3.36,8.3838v1.92a.566.566,0,0,1-.64.6407H438.958a.5654.5654,0,0,1-.64-.6407v-1.92a9.019,9.019,0,0,0-2.6563-6.7519,10.7705,10.7705,0,0,0-14.0161,0,9.0946,9.0946,0,0,0-2.6558,6.8164V79.5267a9.0367,9.0367,0,0,0,2.6875,6.8164,9.7141,9.7141,0,0,0,7.04,2.5918,9.5618,9.5618,0,0,0,6.9765-2.5595,8.9655,8.9655,0,0,0,2.6241-6.72v-8.32a.2268.2268,0,0,0-.2564-.2558h-8.3843a.5654.5654,0,0,1-.64-.6407V69.4154a.5662.5662,0,0,1,.64-.6406h10.4961a.5667.5667,0,0,1,.64.6406v9.9834a11.3465,11.3465,0,0,1-3.3277,8.5762,13.7344,13.7344,0,0,1-17.664-.0323Z"/>
      <path d="M461.3838,89.5755a10.9043,10.9043,0,0,1-4.3525-4.5439,14.4642,14.4642,0,0,1-1.5357-6.7842V46.5033a.5657.5657,0,0,1,.64-.64h1.2159a.5659.5659,0,0,1,.64.64v32a10.543,10.543,0,0,0,2.7207,7.5517,10.36,10.36,0,0,0,14.336,0,10.5506,10.5506,0,0,0,2.72-7.5517v-32a.5655.5655,0,0,1,.64-.64h1.2163a.5661.5661,0,0,1,.64.64V78.2474a13.0121,13.0121,0,0,1-3.3921,9.376,11.8983,11.8983,0,0,1-9.0239,3.5518A12.8539,12.8539,0,0,1,461.3838,89.5755Z"/>
      <path d="M495.9048,90.0228V46.5033a.5657.5657,0,0,1,.64-.64h1.2158a.5663.5663,0,0,1,.64.64v41.664a.2259.2259,0,0,0,.2558.2559h19.2a.5665.5665,0,0,1,.6407.64v.96a.5663.5663,0,0,1-.6407.6406H496.5449A.5656.5656,0,0,1,495.9048,90.0228Z"/>
      <path d="M554.6436,90.1507l-2.4322-8.832a.2959.2959,0,0,0-.32-.1914H535.123a.2939.2939,0,0,0-.3193.1914l-2.3682,8.7686a.659.659,0,0,1-.7041.5761h-1.2158a.5888.5888,0,0,1-.48-.1923.5824.5824,0,0,1-.0957-.5118l12.0322-43.5839a.643.643,0,0,1,.7036-.5118h1.6a.6442.6442,0,0,1,.7041.5118l12.16,43.5839.0635.1914c0,.3428-.2138.5127-.64.5127h-1.2158A.6423.6423,0,0,1,554.6436,90.1507ZM535.5391,78.9193a.31.31,0,0,0,.2246.0957h15.4878a.31.31,0,0,0,.2241-.0957c.0635-.0645.0737-.1172.0317-.16l-7.8716-28.9277c-.0434-.085-.0864-.1279-.1284-.1279s-.0859.0429-.1279.1279l-7.8721,28.9277C535.4644,78.8021,535.4756,78.8548,535.5391,78.9193Z"/>
      <path d="M592.4473,90.1507,583.68,69.4154a.2515.2515,0,0,0-.2559-.1924H573.44a.2263.2263,0,0,0-.2559.2559V90.0228a.566.566,0,0,1-.64.6406h-1.2164a.5654.5654,0,0,1-.64-.6406V46.5033a.5655.5655,0,0,1,.64-.64h12.5445a9.9783,9.9783,0,0,1,7.7436,3.2315A12.2019,12.2019,0,0,1,594.56,57.639a12.4342,12.4342,0,0,1-2.24,7.584,9.3626,9.3626,0,0,1-6.08,3.7442q-.2563.1288-.128.32l8.7041,20.6074.064.2558c0,.3428-.1919.5127-.5757.5127h-1.1523A.7027.7027,0,0,1,592.4473,90.1507ZM573.1836,48.3588v18.496a.2267.2267,0,0,0,.2559.2569h10.3037a7.6688,7.6688,0,0,0,6.0166-2.5928,9.878,9.878,0,0,0,2.3037-6.8154,10.2885,10.2885,0,0,0-2.272-6.9766,7.6035,7.6035,0,0,0-6.0483-2.624H573.44A.2263.2263,0,0,0,573.1836,48.3588Z"/>
    </g>
    <g style="fill:currentColor;">
      <g>
        <path d="m96.835 25.058-39-22.517a12 12 0 0 0-12 0l-39 22.517a12.034 12.034 0 0 0-6 10.392v45.033a12.033 12.033 0 0 0 6 10.393l39 22.516a12 12 0 0 0 12 0l39-22.516a12.033 12.033 0 0 0 6-10.393V35.45a12.033 12.033 0 0 0-6-10.392Zm-2 55.425a4 4 0 0 1-2 3.464l-39 22.517a4 4 0 0 1-4 0l-39-22.517a4 4 0 0 1-2-3.464V35.45a4 4 0 0 1 2-3.464l39-22.517a4 4 0 0 1 4 0l39 22.517a4 4 0 0 1 2 3.464v45.033Z"/>
        <path d="M74.857 71.005H71.99a4 4 0 0 0-1.925.493l-17.28 9.485-19.951-11.518V46.487l19.95-11.518 17.29 9.455a4 4 0 0 0 1.918.49h2.864a2 2 0 0 0 2-2v-2.712a2 2 0 0 0-1.04-1.754L56.628 27.952a8.04 8.04 0 0 0-7.843.09L28.835 39.56a8.025 8.025 0 0 0-4 6.929v22.976a8 8 0 0 0 4 6.928l19.95 11.519a8.043 8.043 0 0 0 7.843.087l19.19-10.53a2 2 0 0 0 1.038-1.754v-2.71a2 2 0 0 0-2-2Z"/>
      </g>
      <g transform="translate(118 34)">
         <path d="M51.58.362c-8.28.009-14.99 6.719-15 15v17.277c0 8.284 6.716 15 15 15 8.284 0 15-6.716 15-15V15.36c-.01-8.28-6.72-14.99-15-15Zm7 32.277a7 7 0 0 1-14 0V15.36a7 7 0 0 1 14 0V32.64ZM14.914 8.421a7.01 7.01 0 0 1 7.868 6.075.99.99 0 0 0 .984.865h6.03a1.01 1.01 0 0 0 .999-1.097C30.189 6.14 23.216-.02 15.079.381 6.996.932.748 7.696.835 15.796v16.407C.748 40.305 6.996 47.068 15.079 47.62c8.138.401 15.111-5.76 15.716-13.884a1.01 1.01 0 0 0-.998-1.097h-6.03a.99.99 0 0 0-.985.865 7.01 7.01 0 0 1-7.867 6.075 7.164 7.164 0 0 1-6.08-7.184v-16.79a7.164 7.164 0 0 1 6.079-7.184ZM97.757 27.928a12.159 12.159 0 0 0 7.184-11.077v-3.702A12.15 12.15 0 0 0 92.793 1H75.835a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V29h6.622l7.915 17.414a1 1 0 0 0 .91.586h6.591a1 1 0 0 0 .91-1.414l-8.026-17.658Zm-.816-11.077A4.154 4.154 0 0 1 92.794 21H82.94V9h9.852a4.154 4.154 0 0 1 4.148 4.15v3.7ZM139.835 1h-26a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-19V27h13a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-13V9h19a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1ZM177.835 1h-6a1 1 0 0 0-1 1v22.648a7.007 7.007 0 1 1-14 0V2a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v22.648a15.003 15.003 0 1 0 30 0V2a1 1 0 0 0-1-1Z"/>
         <rect width="8" height="38" x="186.835" y="1" rx="1"/>
      </g>
    </g>
  </g>`];var Ws={cibCcAmex:ti,cibCcApplePay:ii,cibCcMastercard:si,cibCcPaypal:ri,cibCcStripe:ni,cibCcVisa:ai,cibFacebook:oi,cibGoogle:li,cibLinkedin:ci,cibSkype:hi,cibTwitter:ui,cifBr:di,cifEs:fi,cifFr:mi,cifIn:pi,cifPl:gi,cifUs:yi,cilAccountLogout:_i,cilAlignCenter:vi,cilAlignLeft:Ei,cilAlignRight:Si,cilApplicationsSettings:Ti,cilArrowBottom:wi,cilArrowRight:Ai,cilArrowTop:bi,cilBasket:Pi,cilBell:Ci,cilBold:Mi,cilBookmark:Ni,cilCalculator:Di,cilCalendar:ki,cilChart:Ri,cilChartPie:Li,cilCheck:Oi,cilChevronLeft:Fi,cilChevronRight:zi,cilCloudDownload:Bi,cilCode:Vi,cilCommentSquare:Ki,cilContrast:qi,cilCreditCard:Ui,cilCursor:Qi,cilDescription:Ii,cilDollar:$i,cilDrop:ji,cilEnvelopeClosed:Wi,cilEnvelopeOpen:Gi,cilFile:Hi,cilGrid:Zi,cilHome:xi,cilInbox:Yi,cilIndentDecrease:Xi,cilIndentIncrease:Ji,cilItalic:es,cilJustifyCenter:ts,cilLanguage:is,cilLayers:ss,cilList:ns,cilListNumbered:rs,cilLocationPin:as,cilLockLocked:os,cilMagnifyingGlass:ls,cilMap:cs,cilMediaPlay:hs,cilMediaRecord:us,cilMenu:ds,cilMoon:fs,cilNotes:ms,cilOptions:ps,cilPaperclip:ys,cilPaperPlane:gs,cilPen:_s,cilPencil:vs,cilPeople:Es,cilPrint:Ss,cilPuzzle:Ts,cilReportSlash:ws,cilSave:As,cilSettings:bs,cilShare:Ms,cilShareAll:Ps,cilShareBoxed:Cs,cilSpeech:Ns,cilSpeedometer:Ds,cilSpreadsheet:ks,cilStar:Ls,cilSun:Rs,cilTags:Os,cilTask:Fs,cilTrash:zs,cilUnderline:Bs,cilUser:Us,cilUserFemale:Vs,cilUserFollow:Ks,cilUserUnfollow:qs,logo:js,signet:$s};var Hs=(()=>{class r{#t;#i;#s;#r;#e;#n;constructor(){this.title="Rofis Laundry",this.#t=H(bt),this.#i=H(Qt),this.#s=H($t),this.#r=H(qt),this.#e=H(Xt),this.#n=H(ge),this.#r.setTitle(this.title),this.#n.icons=ie({},Ws),this.#e.localStorageItemName.set("coreui-free-angular-admin-template-theme-default"),this.#e.eventName.set("ColorSchemeChange")}ngOnInit(){this.#s.events.pipe(Be(this.#t)).subscribe(t=>{t instanceof Ut}),this.#i.queryParams.pipe(Tt(1),Et(t=>t.theme?.match(/^[A-Za-z0-9\s]+/)?.[0]),St(t=>["dark","light","auto"].includes(t)),wt(t=>{this.#e.colorMode.set(t)}),Be(this.#t)).subscribe()}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=Nt({type:r,selectors:[["app-root"]],decls:2,vars:0,consts:[[1,""]],template:function(i,s){i&1&&(kt(0,"div",0),Rt(1,"router-outlet"),Lt())},dependencies:[It],encapsulation:2})}}return r})();function Zs(r){return new S(3e3,!1)}function Mr(){return new S(3100,!1)}function Nr(){return new S(3101,!1)}function Dr(r){return new S(3001,!1)}function kr(r){return new S(3003,!1)}function Lr(r){return new S(3004,!1)}function Rr(r,e){return new S(3005,!1)}function Or(){return new S(3006,!1)}function Fr(){return new S(3007,!1)}function zr(r,e){return new S(3008,!1)}function Br(r){return new S(3002,!1)}function Vr(r,e,t,i,s){return new S(3010,!1)}function Kr(){return new S(3011,!1)}function qr(){return new S(3012,!1)}function Ur(){return new S(3200,!1)}function Qr(){return new S(3202,!1)}function Ir(){return new S(3013,!1)}function $r(r){return new S(3014,!1)}function jr(r){return new S(3015,!1)}function Wr(r){return new S(3016,!1)}function Gr(r,e){return new S(3404,!1)}function Hr(r){return new S(3502,!1)}function Zr(r){return new S(3503,!1)}function xr(){return new S(3300,!1)}function Yr(r){return new S(3504,!1)}function Xr(r){return new S(3301,!1)}function Jr(r,e){return new S(3302,!1)}function en(r){return new S(3303,!1)}function tn(r,e){return new S(3400,!1)}function sn(r){return new S(3401,!1)}function rn(r){return new S(3402,!1)}function nn(r,e){return new S(3505,!1)}function $(r){switch(r.length){case 0:return new se;case 1:return r[0];default:return new Ke(r)}}function cr(r,e,t=new Map,i=new Map){let s=[],n=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==a,h=u&&o||new Map;l.forEach((_,y)=>{let f=y,g=_;if(y!=="offset")switch(f=r.normalizePropertyName(f,s),g){case pe:g=t.get(y);break;case q:g=i.get(y);break;default:g=r.normalizeStyleValue(y,f,g,s);break}h.set(f,g)}),u||n.push(h),o=h,a=c}),s.length)throw Hr(s);return n}function ot(r,e,t,i){switch(e){case"start":r.onStart(()=>i(t&&qe(t,"start",r)));break;case"done":r.onDone(()=>i(t&&qe(t,"done",r)));break;case"destroy":r.onDestroy(()=>i(t&&qe(t,"destroy",r)));break}}function qe(r,e,t){let i=t.totalTime,s=!!t.disabled,n=lt(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,i??r.totalTime,s),a=r._data;return a!=null&&(n._data=a),n}function lt(r,e,t,i,s="",n=0,a){return{element:r,triggerName:e,fromState:t,toState:i,phaseName:s,totalTime:n,disabled:!!a}}function O(r,e,t){let i=r.get(e);return i||r.set(e,i=t),i}function xs(r){let e=r.indexOf(":"),t=r.substring(1,e),i=r.slice(e+1);return[t,i]}var an=typeof document>"u"?null:document.documentElement;function ct(r){let e=r.parentNode||r.host||null;return e===an?null:e}function on(r){return r.substring(1,6)=="ebkit"}var Z=null,Ys=!1;function ln(r){Z||(Z=cn()||{},Ys=Z.style?"WebkitAppearance"in Z.style:!1);let e=!0;return Z.style&&!on(r)&&(e=r in Z.style,!e&&Ys&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in Z.style)),e}function cn(){return typeof document<"u"?document.body:null}function hr(r,e){for(;e;){if(e===r)return!0;e=ct(e)}return!1}function ur(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let i=r.querySelector(e);return i?[i]:[]}var ht=(()=>{class r{validateStyleProperty(t){return ln(t)}containsElement(t,i){return hr(t,i)}getParentElement(t){return ct(t)}query(t,i,s){return ur(t,i,s)}computeStyle(t,i,s){return s||""}animate(t,i,s,n,a,o=[],l){return new se(s,n)}static \u0275fac=function(i){return new(i||r)};static \u0275prov=fe({token:r,factory:r.\u0275fac})}return r})(),X=class{static NOOP=new ht},J=class{};var hn=1e3,dr="{{",un="}}",fr="ng-enter",We="ng-leave",ye="ng-trigger",Te=".ng-trigger",Xs="ng-animating",Ge=".ng-animating";function Q(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:He(parseFloat(e[1]),e[2])}function He(r,e){switch(e){case"s":return r*hn;default:return r}}function we(r,e,t){return r.hasOwnProperty("duration")?r:dn(r,e,t)}function dn(r,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,n=0,a="";if(typeof r=="string"){let o=r.match(i);if(o===null)return e.push(Zs(r)),{duration:0,delay:0,easing:""};s=He(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(n=He(parseFloat(l),o[4]));let c=o[5];c&&(a=c)}else s=r;if(!t){let o=!1,l=e.length;s<0&&(e.push(Mr()),o=!0),n<0&&(e.push(Nr()),o=!0),o&&e.splice(l,0,Zs(r))}return{duration:s,delay:n,easing:a}}function fn(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function U(r,e,t){e.forEach((i,s)=>{let n=ut(s);t&&!t.has(s)&&t.set(s,r.style[n]),r.style[n]=i})}function Y(r,e){e.forEach((t,i)=>{let s=ut(i);r.style[s]=""})}function ae(r){return Array.isArray(r)?r.length==1?r[0]:Yt(r):r}function mn(r,e,t){let i=e.params||{},s=mr(r);s.length&&s.forEach(n=>{i.hasOwnProperty(n)||t.push(Dr(n))})}var Ze=new RegExp(`${dr}\\s*(.+?)\\s*${un}`,"g");function mr(r){let e=[];if(typeof r=="string"){let t;for(;t=Ze.exec(r);)e.push(t[1]);Ze.lastIndex=0}return e}function le(r,e,t){let i=`${r}`,s=i.replace(Ze,(n,a)=>{let o=e[a];return o==null&&(t.push(kr(a)),o=""),o.toString()});return s==i?r:s}var pn=/-+([a-z0-9])/g;function ut(r){return r.replace(pn,(...e)=>e[1].toUpperCase())}function gn(r,e){return r===0||e===0}function yn(r,e,t){if(t.size&&e.length){let i=e[0],s=[];if(t.forEach((n,a)=>{i.has(a)||s.push(a),i.set(a,n)}),s.length)for(let n=1;n<e.length;n++){let a=e[n];s.forEach(o=>a.set(o,dt(r,o)))}}return e}function R(r,e,t){switch(e.type){case v.Trigger:return r.visitTrigger(e,t);case v.State:return r.visitState(e,t);case v.Transition:return r.visitTransition(e,t);case v.Sequence:return r.visitSequence(e,t);case v.Group:return r.visitGroup(e,t);case v.Animate:return r.visitAnimate(e,t);case v.Keyframes:return r.visitKeyframes(e,t);case v.Style:return r.visitStyle(e,t);case v.Reference:return r.visitReference(e,t);case v.AnimateChild:return r.visitAnimateChild(e,t);case v.AnimateRef:return r.visitAnimateRef(e,t);case v.Query:return r.visitQuery(e,t);case v.Stagger:return r.visitStagger(e,t);default:throw Lr(e.type)}}function dt(r,e){return window.getComputedStyle(r)[e]}var _n=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ae=class extends J{normalizePropertyName(e,t){return ut(e)}normalizeStyleValue(e,t,i,s){let n="",a=i.toString().trim();if(_n.has(t)&&i!==0&&i!=="0")if(typeof i=="number")n="px";else{let o=i.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&s.push(Rr(e,i))}return a+n}};var be="*";function vn(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(i=>En(i,t,e)):t.push(r),t}function En(r,e,t){if(r[0]==":"){let l=Sn(r,t);if(typeof l=="function"){e.push(l);return}r=l}let i=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(jr(r)),e;let s=i[1],n=i[2],a=i[3];e.push(Js(s,a));let o=s==be&&a==be;n[0]=="<"&&!o&&e.push(Js(a,s))}function Sn(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(Wr(r)),"* => *"}}var _e=new Set(["true","1"]),ve=new Set(["false","0"]);function Js(r,e){let t=_e.has(r)||ve.has(r),i=_e.has(e)||ve.has(e);return(s,n)=>{let a=r==be||r==s,o=e==be||e==n;return!a&&t&&typeof s=="boolean"&&(a=s?_e.has(r):ve.has(r)),!o&&i&&typeof n=="boolean"&&(o=n?_e.has(e):ve.has(e)),a&&o}}var pr=":self",Tn=new RegExp(`s*${pr}s*,?`,"g");function gr(r,e,t,i){return new xe(r).build(e,t,i)}var er="",xe=class{_driver;constructor(e){this._driver=e}build(e,t,i){let s=new Ye(t);return this._resetContextStyleTimingState(s),R(this,ae(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=er,e.collectedStyles=new Map,e.collectedStyles.set(er,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,s=t.depCount=0,n=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Or()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==v.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,n.push(this.visitState(l,t))}),l.name=c}else if(o.type==v.Transition){let l=this.visitTransition(o,t);i+=l.queryCount,s+=l.depCount,a.push(l)}else t.errors.push(Fr())}),{type:v.Trigger,name:e.name,states:n,transitions:a,queryCount:i,depCount:s,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(i.containsDynamicStyles){let n=new Set,a=s||{};i.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{mr(l).forEach(c=>{a.hasOwnProperty(c)||n.add(c)})})}),n.size&&t.errors.push(zr(e.name,[...n.values()]))}return{type:v.State,name:e.name,style:i,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=R(this,ae(e.animation),t),s=vn(e.expr,t.errors);return{type:v.Transition,matchers:s,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:x(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(i=>R(this,i,t)),options:x(e.options)}}visitGroup(e,t){let i=t.currentTime,s=0,n=e.steps.map(a=>{t.currentTime=i;let o=R(this,a,t);return s=Math.max(s,t.currentTime),o});return t.currentTime=s,{type:v.Group,steps:n,options:x(e.options)}}visitAnimate(e,t){let i=Pn(e.timings,t.errors);t.currentAnimateTimings=i;let s,n=e.styles?e.styles:Ve({});if(n.type==v.Keyframes)s=this.visitKeyframes(n,t);else{let a=e.styles,o=!1;if(!a){o=!0;let c={};i.easing&&(c.easing=i.easing),a=Ve(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,s=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:i,style:s,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of s)typeof o=="string"?o===q?i.push(o):t.errors.push(Br(o)):i.push(new Map(Object.entries(o)));let n=!1,a=null;return i.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!n)){for(let l of o.values())if(l.toString().indexOf(dr)>=0){n=!0;break}}}),{type:v.Style,styles:i,easing:a,offset:e.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,s=t.currentTime,n=t.currentTime;i&&n>0&&(n-=i.duration+i.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),h=!0;u&&(n!=s&&n>=u.startTime&&s<=u.endTime&&(t.errors.push(Vr(l,u.startTime,u.endTime,n,s)),h=!1),n=u.startTime),h&&c.set(l,{startTime:n,endTime:s}),t.options&&mn(o,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Kr()),i;let s=1,n=0,a=[],o=!1,l=!1,c=0,u=e.steps.map(A=>{let b=this._makeStyleAst(A,t),N=b.offset!=null?b.offset:bn(b.styles),C=0;return N!=null&&(n++,C=b.offset=N),l=l||C<0||C>1,o=o||C<c,c=C,a.push(C),b});l&&t.errors.push(qr()),o&&t.errors.push(Ur());let h=e.steps.length,_=0;n>0&&n<h?t.errors.push(Qr()):n==0&&(_=s/(h-1));let y=h-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return u.forEach((A,b)=>{let N=_>0?b==y?1:_*b:a[b],C=N*T;t.currentTime=f+g.delay+C,g.duration=C,this._validateStyleAst(A,t),A.offset=N,i.styles.push(A)}),i}visitReference(e,t){return{type:v.Reference,animation:R(this,ae(e.animation),t),options:x(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:x(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:x(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;let[n,a]=wn(e.selector);t.currentQuerySelector=i.length?i+" "+n:n,O(t.collectedStyles,t.currentQuerySelector,new Map);let o=R(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:v.Query,selector:n,limit:s.limit||0,optional:!!s.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:x(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ir());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:we(e.timings,t.errors,!0);return{type:v.Stagger,animation:R(this,ae(e.animation),t),timings:i,options:null}}};function wn(r){let e=!!r.split(/\s*,\s*/).find(t=>t==pr);return e&&(r=r.replace(Tn,"")),r=r.replace(/@\*/g,Te).replace(/@\w+/g,t=>Te+"-"+t.slice(1)).replace(/:animating/g,Ge),[r,e]}function An(r){return r?ie({},r):null}var Ye=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function bn(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Pn(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let n=we(r,e).duration;return Ue(n,0,"")}let t=r;if(t.split(/\s+/).some(n=>n.charAt(0)=="{"&&n.charAt(1)=="{")){let n=Ue(0,0,"");return n.dynamic=!0,n.strValue=t,n}let s=we(t,e);return Ue(s.duration,s.delay,s.easing)}function x(r){return r?(r=ie({},r),r.params&&(r.params=An(r.params))):r={},r}function Ue(r,e,t){return{duration:r,delay:e,easing:t}}function ft(r,e,t,i,s,n,a=null,o=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:i,duration:s,delay:n,totalTime:s+n,easing:a,subTimeline:o}}var ce=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Cn=1,Mn=":enter",Nn=new RegExp(Mn,"g"),Dn=":leave",kn=new RegExp(Dn,"g");function yr(r,e,t,i,s,n=new Map,a=new Map,o,l,c=[]){return new Xe().buildKeyframes(r,e,t,i,s,n,a,o,l,c)}var Xe=class{buildKeyframes(e,t,i,s,n,a,o,l,c,u=[]){c=c||new ce;let h=new Je(e,t,c,s,n,u,[]);h.options=l;let _=l.delay?Q(l.delay):0;h.currentTimeline.delayNextStep(_),h.currentTimeline.setStyles([a],null,h.errors,l),R(this,i,h);let y=h.timelines.filter(f=>f.containsAnimation());if(y.length&&o.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([o],null,h.errors,l)}return y.length?y.map(f=>f.buildKeyframes()):[ft(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let s=t.createSubContext(e.options),n=t.currentTimeline.currentTime,a=this._visitSubInstructions(i,s,s.options);n!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let s of e){let n=s?.delay;if(n){let a=typeof n=="number"?n:Q(le(n,s?.params??{},t.errors));i.delayNextStep(a)}}}_visitSubInstructions(e,t,i){let n=t.currentTimeline.currentTime,a=i.duration!=null?Q(i.duration):null,o=i.delay!=null?Q(i.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);n=Math.max(n,c.duration+c.delay)}),n}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,s=t,n=e.options;if(n&&(n.params||n.delay)&&(s=t.createSubContext(n),s.transformIntoNewTimeline(),n.delay!=null)){s.previousNode.type==v.Style&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Pe);let a=Q(n.delay);s.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>R(this,a,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],s=t.currentTimeline.currentTime,n=e.options&&e.options.delay?Q(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);n&&o.delayNextStep(n),R(this,a,o),s=Math.max(s,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,s=t.params?le(i,t.params,t.errors):i;return we(s,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),s.snapshotCurrentStyles());let n=e.style;n.type==v.Keyframes?this.visitKeyframes(n,t):(t.incrementTime(i.duration),this.visitStyle(n,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,s=t.currentAnimateTimings;!s&&i.hasCurrentStyleProperties()&&i.forwardFrame();let n=s&&s.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(n):i.setStyles(e.styles,n,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,s=t.currentTimeline.duration,n=i.duration,o=t.createSubContext().currentTimeline;o.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*n),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(s+n),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,s=e.options||{},n=s.delay?Q(s.delay):0;n&&(t.previousNode.type===v.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Pe);let a=i,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,u)=>{t.currentQueryIndex=u;let h=t.createSubContext(e.options,c);n&&h.delayNextStep(n),c===t.element&&(l=h.currentTimeline),R(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let _=h.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,s=t.currentTimeline,n=e.timings,a=Math.abs(n.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":l=o-l;break;case"full":l=i.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let h=u.currentTime;R(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=s.currentTime-h+(s.startTime-i.currentTimeline.startTime)}},Pe={},Je=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Pe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,s,n,a,o,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=n,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ce(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,s=this.options;i.duration!=null&&(s.duration=Q(i.duration)),i.delay!=null&&(s.delay=Q(i.delay));let n=i.params;if(n){let a=s.params;a||(a=this.options.params={}),Object.keys(n).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=le(n[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(s=>{i[s]=t[s]})}}return e}createSubContext(e=null,t,i){let s=t||this.element,n=new r(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(e),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(e){return this.previousNode=Pe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let s={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},n=new et(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(n),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,s,n,a){let o=[];if(s&&o.push(this.element),e.length>0){e=e.replace(Nn,"."+this._enterClassName),e=e.replace(kn,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),o.push(...c)}return!n&&o.length==0&&a.push($r(t)),o}},Ce=class r{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,i,s){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=s,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Cn,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||q),this._currentKeyframe.set(t,q);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,s){t&&this._previousKeyframe.set("easing",t);let n=s&&s.params||{},a=Ln(e,this._globalTimelineStyles);for(let[o,l]of a){let c=le(l,n,i);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??q),this._updateStyle(o,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{let s=this._styleSummary.get(i);(!s||t.time>s.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((u,h)=>{u===pe?e.add(h):u===q&&t.add(h)}),i||c.set("offset",l/this.duration),s.push(c)});let n=[...e.values()],a=[...t.values()];if(i){let o=s[0],l=new Map(o);o.set("offset",0),l.set("offset",1),s=[o,l]}return ft(this.element,s,n,a,this.duration,this.startTime,this.easing,!1)}},et=class extends Ce{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,s,n,a,o=!1){super(e,t,a.delay),this.keyframes=i,this.preStyleProps=s,this.postStyleProps=n,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){let n=[],a=i+t,o=t/a,l=new Map(e[0]);l.set("offset",0),n.push(l);let c=new Map(e[0]);c.set("offset",tr(o)),n.push(c);let u=e.length-1;for(let h=1;h<=u;h++){let _=new Map(e[h]),y=_.get("offset"),f=t+y*i;_.set("offset",tr(f/a)),n.push(_)}i=a,t=0,s="",e=n}return ft(this.element,e,this.preStyleProps,this.postStyleProps,i,t,s,!0)}};function tr(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function Ln(r,e){let t=new Map,i;return r.forEach(s=>{if(s==="*"){i??=e.keys();for(let n of i)t.set(n,q)}else for(let[n,a]of s)t.set(n,a)}),t}function ir(r,e,t,i,s,n,a,o,l,c,u,h,_){return{type:0,element:r,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:n,toState:i,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:_}}var Qe={},Me=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,s){return Rn(this.ast.matchers,e,t,i,s)}buildStyles(e,t,i){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(t,i):new Map}build(e,t,i,s,n,a,o,l,c,u){let h=[],_=this.ast.options&&this.ast.options.params||Qe,y=o&&o.params||Qe,f=this.buildStyles(i,y,h),g=l&&l.params||Qe,T=this.buildStyles(s,g,h),A=new Set,b=new Map,N=new Map,C=s==="void",ee={params:_r(g,_),delay:this.ast.options?.delay},V=u?[]:yr(e,t,this.ast.animation,n,a,f,T,ee,c,h),D=0;return V.forEach(k=>{D=Math.max(k.duration+k.delay,D)}),h.length?ir(t,this._triggerName,i,s,C,f,T,[],[],b,N,D,h):(V.forEach(k=>{let j=k.element,te=O(b,j,new Set);k.preStyleProps.forEach(W=>te.add(W));let pt=O(N,j,new Set);k.postStyleProps.forEach(W=>pt.add(W)),j!==t&&A.add(j)}),ir(t,this._triggerName,i,s,C,f,T,V,[...A.values()],b,N,D))}};function Rn(r,e,t,i,s){return r.some(n=>n(e,t,i,s))}function _r(r,e){let t=ie({},e);return Object.entries(r).forEach(([i,s])=>{s!=null&&(t[i]=s)}),t}var tt=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,s=_r(e,this.defaultParams);return this.styles.styles.forEach(n=>{typeof n!="string"&&n.forEach((a,o)=>{a&&(a=le(a,s,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),i.set(o,a)})}),i}};function On(r,e,t){return new it(r,e,t)}var it=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(s=>{let n=s.options&&s.options.params||{};this.states.set(s.name,new tt(s.style,n,i))}),sr(this.states,"true","1"),sr(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Me(e,s,this.states))}),this.fallbackTransition=Fn(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,s){return this.transitionFactories.find(a=>a.match(e,t,i,s))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Fn(r,e,t){let i=[(a,o)=>!0],s={type:v.Sequence,steps:[],options:null},n={type:v.Transition,animation:s,matchers:i,options:null,queryCount:0,depCount:0};return new Me(r,n,e)}function sr(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var zn=new ce,st=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i}register(e,t){let i=[],s=[],n=gr(this._driver,t,i,s);if(i.length)throw Zr(i);s.length&&void 0,this._animations.set(e,n)}_buildPlayer(e,t,i){let s=e.element,n=cr(this._normalizer,e.keyframes,t,i);return this._driver.animate(s,n,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let s=[],n=this._animations.get(e),a,o=new Map;if(n?(a=yr(this._driver,t,n,fr,We,new Map,new Map,i,zn,s),a.forEach(u=>{let h=O(o,u.element,new Map);u.postStyleProps.forEach(_=>h.set(_,null))})):(s.push(xr()),a=[]),s.length)throw Yr(s);o.forEach((u,h)=>{u.forEach((_,y)=>{u.set(y,this._driver.computeStyle(h,y,q))})});let l=a.map(u=>{let h=o.get(u.element);return this._buildPlayer(u,new Map,h)}),c=$(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Xr(e);return t}listen(e,t,i,s){let n=lt(t,"","","");return ot(this._getPlayer(e),i,n,s),()=>{}}command(e,t,i,s){if(i=="register"){this.register(e,s[0]);return}if(i=="create"){let a=s[0]||{};this.create(e,t,a);return}let n=this._getPlayer(e);switch(i){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},rr="ng-animate-queued",Bn=".ng-animate-queued",Ie="ng-animate-disabled",Vn=".ng-animate-disabled",Kn="ng-star-inserted",qn=".ng-star-inserted",Un=[],vr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},B="__ng_removed",he=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),s=i?e.value:e;if(this.value=$n(s),i){let n=e,{value:a}=n,o=vt(n,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(s=>{i[s]==null&&(i[s]=t[s])})}}},oe="void",$e=new he(oe),rt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName)}listen(e,t,i,s){if(!this._triggers.has(t))throw Jr(i,t);if(i==null||i.length==0)throw en(t);if(!jn(i))throw tn(i,t);let n=O(this._elementListeners,e,[]),a={name:t,phase:i,callback:s};n.push(a);let o=O(this._engine.statesByElement,e,new Map);return o.has(t)||(z(e,ye),z(e,ye+"-"+t),o.set(t,$e)),()=>{this._engine.afterFlush(()=>{let l=n.indexOf(a);l>=0&&n.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw sn(e);return t}trigger(e,t,i,s=!0){let n=this._getTrigger(t),a=new ue(this.id,t,e),o=this._engine.statesByElement.get(e);o||(z(e,ye),z(e,ye+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new he(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=$e),!(c.value===oe)&&l.value===c.value){if(!Hn(l.params,c.params)){let g=[],T=n.matchStyles(l.value,l.params,g),A=n.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Y(e,T),U(e,A)})}return}let _=O(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=n.matchTransition(l.value,c.value,e,c.params),f=!1;if(!y){if(!s)return;y=n.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:f}),f||(z(e,rr),a.onStart(()=>{re(e,rr)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let A=T.indexOf(a);A>=0&&T.splice(A,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Te,!0);i.forEach(s=>{if(s[B])return;let n=this._engine.fetchNamespacesByElement(s);n.size?n.forEach(a=>a.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,i,s){let n=this._engine.statesByElement.get(e),a=new Map;if(n){let o=[];if(n.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,oe,s);u&&o.push(u)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),i&&$(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let s=new Set;t.forEach(n=>{let a=n.name;if(s.has(a))return;s.add(a);let l=this._triggers.get(a).fallbackTransition,c=i.get(a)||$e,u=new he(oe),h=new ue(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(i.totalAnimations){let n=i.players.length?i.playersByQueriedElement.get(e):[];if(n&&n.length)s=!0;else{let a=e;for(;a=a.parentNode;)if(i.statesByElement.get(a)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)i.markElementAsRemoved(this.id,e,!1,t);else{let n=e[B];(!n||n===vr)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){z(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let s=i.player;if(s.destroyed)return;let n=i.element,a=this._elementListeners.get(n);a&&a.forEach(o=>{if(o.name==i.triggerName){let l=lt(n,i.triggerName,i.fromState.value,i.toState.value);l._data=e,ot(i.player,o.phase,l,o.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(i)}),this._queue=[],t.sort((i,s)=>{let n=i.transition.ast.depCount,a=s.transition.ast.depCount;return n==0||a==0?n-a:this._engine.driver.containsElement(i.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},nt=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new rt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,s=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=s.get(o);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||i.unshift(e)}else i.push(e);return s.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let s=this._namespaceLookup[e];s&&s.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let s=this._namespaceList.indexOf(i);s>=0&&this._namespaceList.splice(s,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let s of i.values())if(s.namespaceId){let n=this._fetchNamespace(s.namespaceId);n&&t.add(n)}}return t}trigger(e,t,i,s){if(Ee(t)){let n=this._fetchNamespace(e);if(n)return n.trigger(t,i,s),!0}return!1}insertNode(e,t,i,s){if(!Ee(t))return;let n=t[B];if(n&&n.setForRemoval){n.setForRemoval=!1,n.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,i)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,Ie)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),re(e,Ie))}removeNode(e,t,i){if(Ee(t)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,s,n){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:n}}listen(e,t,i,s,n){return Ee(t)?this._fetchNamespace(e).listen(t,i,s,n):()=>{}}_buildInstruction(e,t,i,s,n){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,s,e.fromState.options,e.toState.options,t,n)}destroyInnerAnimations(e){let t=this.driver.query(e,Te,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ge,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return $(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=vr,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ie)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Vn,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,s)=>this._balanceNamespaceList(i,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let s=this.collectedEnterElements[i];z(s,Kn)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let s=0;s<i.length;s++)i[s]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let s=this.collectedLeaveElements[i];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?$(t).onDone(()=>{i.forEach(s=>s())}):i.forEach(s=>s())}}reportError(e){throw rn(e)}_flushAnimations(e,t){let i=new ce,s=[],n=new Map,a=[],o=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(d=>{u.add(d);let m=this.driver.query(d,Bn,!0);for(let p=0;p<m.length;p++)u.add(m[p])});let h=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=or(_,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=fr+g++;f.set(m,p),d.forEach(E=>z(E,p))});let T=[],A=new Set,b=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),A.add(m),p.hasAnimation?this.driver.query(m,qn,!0).forEach(E=>A.add(E)):b.add(m))}let N=new Map,C=or(_,Array.from(A));C.forEach((d,m)=>{let p=We+g++;N.set(m,p),d.forEach(E=>z(E,p))}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>re(E,p))}),C.forEach((d,m)=>{let p=N.get(m);d.forEach(E=>re(E,p))}),T.forEach(d=>{this.processLeaveNode(d)})});let ee=[],V=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(ee.push(E),this.collectedEnterElements.length){let M=P[B];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let de=F.get(p.triggerName);de.value=G,F.set(p.triggerName,de)}}E.destroy();return}}let K=!h||!this.driver.containsElement(h,P),L=N.get(P),I=f.get(P),w=this._buildInstruction(p,i,I,L,K);if(w.errors&&w.errors.length){V.push(w);return}if(K){E.onStart(()=>Y(P,w.fromStyles)),E.onDestroy(()=>U(P,w.toStyles)),s.push(E);return}if(p.isFallbackTransition){E.onStart(()=>Y(P,w.fromStyles)),E.onDestroy(()=>U(P,w.toStyles)),s.push(E);return}let _t=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||_t.push(M)}),w.timelines=_t,i.append(P,w.timelines);let Cr={instruction:w,player:E,element:P};a.push(Cr),w.queriedElements.forEach(M=>O(o,M,[]).push(E)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((de,Oe)=>F.add(Oe))}}),w.postStyleProps.forEach((M,G)=>{let F=c.get(G);F||c.set(G,F=new Set),M.forEach((de,Oe)=>F.add(Oe))})});if(V.length){let d=[];V.forEach(m=>{d.push(nn(m.triggerName,m.errors))}),ee.forEach(m=>m.destroy()),this.reportError(d)}let D=new Map,k=new Map;a.forEach(d=>{let m=d.element;i.has(m)&&(k.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D))}),s.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(E=>{O(D,m,[]).push(E),E.destroy()})});let j=T.filter(d=>lr(d,l,c)),te=new Map;ar(te,this.driver,b,c,q).forEach(d=>{lr(d,l,c)&&j.push(d)});let W=new Map;y.forEach((d,m)=>{ar(W,this.driver,new Set(d),l,pe)}),j.forEach(d=>{let m=te.get(d),p=W.get(d);te.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Re=[],gt=[],yt={};a.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(i.has(m)){if(u.has(m)){p.onDestroy(()=>U(m,E.toStyles)),p.disabled=!0,p.overrideTotalTime(E.totalTime),s.push(p);return}let P=yt;if(k.size>1){let L=m,I=[];for(;L=L.parentNode;){let w=k.get(L);if(w){P=w;break}I.push(L)}I.forEach(w=>k.set(w,P))}let K=this._buildAnimation(p.namespaceId,E,D,n,W,te);if(p.setRealPlayer(K),P===yt)Re.push(p);else{let L=this.playersByElement.get(P);L&&L.length&&(p.parentPlayer=$(L)),s.push(p)}}else Y(m,E.fromStyles),p.onDestroy(()=>U(m,E.toStyles)),gt.push(p),u.has(m)&&s.push(p)}),gt.forEach(d=>{let m=n.get(d.element);if(m&&m.length){let p=$(m);d.setRealPlayer(p)}}),s.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(re(m,We),p&&p.hasAnimation)continue;let E=[];if(o.size){let K=o.get(m);K&&K.length&&E.push(...K);let L=this.driver.query(m,Ge,!0);for(let I=0;I<L.length;I++){let w=o.get(L[I]);w&&w.length&&E.push(...w)}}let P=E.filter(K=>!K.destroyed);P.length?Wn(this,m,P):this.processLeaveNode(m)}return T.length=0,Re.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),Re}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,s,n){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!n||n==oe;o.forEach(c=>{c.queued||!l&&c.triggerName!=s||a.push(c)})}}return(i||s)&&(a=a.filter(o=>!(i&&i!=o.namespaceId||s&&s!=o.triggerName))),a}_beforeAnimationBuild(e,t,i){let s=t.triggerName,n=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:s;for(let l of t.timelines){let c=l.element,u=c!==n,h=O(i,c,[]);this._getPreviousPlayers(c,u,a,o,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),h.push(y)})}Y(n,t.fromStyles)}_buildAnimation(e,t,i,s,n,a){let o=t.triggerName,l=t.element,c=[],u=new Set,h=new Set,_=t.timelines.map(f=>{let g=f.element;u.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new se(f.duration,f.delay);let A=g!==l,b=Gn((i.get(g)||Un).map(D=>D.getRealPlayer())).filter(D=>{let k=D;return k.element?k.element===g:!1}),N=n.get(g),C=a.get(g),ee=cr(this._normalizer,f.keyframes,N,C),V=this._buildPlayer(f,ee,b);if(f.subTimeline&&s&&h.add(g),A){let D=new ue(e,o,g);D.setRealPlayer(V),c.push(D)}return V});c.forEach(f=>{O(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>In(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>z(f,Xs));let y=$(_);return y.onDestroy(()=>{u.forEach(f=>re(f,Xs)),U(l,t.toStyles)}),h.forEach(f=>{O(s,f,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new se(e.duration,e.delay)}},ue=class{namespaceId;triggerName;element;_player=new se;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(s=>ot(e,i,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function In(r,e,t){let i=r.get(e);if(i){if(i.length){let s=i.indexOf(t);i.splice(s,1)}i.length==0&&r.delete(e)}return i}function $n(r){return r??null}function Ee(r){return r&&r.nodeType===1}function jn(r){return r=="start"||r=="done"}function nr(r,e){let t=r.style.display;return r.style.display=e??"none",t}function ar(r,e,t,i,s){let n=[];t.forEach(l=>n.push(nr(l)));let a=[];i.forEach((l,c)=>{let u=new Map;l.forEach(h=>{let _=e.computeStyle(c,h,s);u.set(h,_),(!_||_.length==0)&&(c[B]=Qn,a.push(c))}),r.set(c,u)});let o=0;return t.forEach(l=>nr(l,n[o++])),a}function or(r,e){let t=new Map;if(r.forEach(o=>t.set(o,[])),e.length==0)return t;let i=1,s=new Set(e),n=new Map;function a(o){if(!o)return i;let l=n.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:s.has(c)?l=i:l=a(c),n.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==i&&t.get(l).push(o)}),t}function z(r,e){r.classList?.add(e)}function re(r,e){r.classList?.remove(e)}function Wn(r,e,t){$(t).onDone(()=>r.processLeaveNode(e))}function Gn(r){let e=[];return Er(r,e),e}function Er(r,e){for(let t=0;t<r.length;t++){let i=r[t];i instanceof Ke?Er(i.players,e):e.push(i)}}function Hn(r,e){let t=Object.keys(r),i=Object.keys(e);if(t.length!=i.length)return!1;for(let s=0;s<t.length;s++){let n=t[s];if(!e.hasOwnProperty(n)||r[n]!==e[n])return!1}return!0}function lr(r,e,t){let i=t.get(r);if(!i)return!1;let s=e.get(r);return s?i.forEach(n=>s.add(n)):e.set(r,i),t.delete(r),!0}var ne=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new nt(e.body,t,i),this._timelineEngine=new st(e.body,t,i),this._transitionEngine.onRemovalComplete=(s,n)=>this.onRemovalComplete(s,n)}registerTrigger(e,t,i,s,n){let a=e+"-"+s,o=this._triggerCache[a];if(!o){let l=[],c=[],u=gr(this._driver,n,l,c);if(l.length)throw Gr(s,l);c.length&&void 0,o=On(s,u,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,s,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,s){this._transitionEngine.insertNode(e,t,i,s)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,s){if(i.charAt(0)=="@"){let[n,a]=xs(i),o=s;this._timelineEngine.command(n,t,a,o)}else this._transitionEngine.trigger(e,t,i,s)}listen(e,t,i,s,n){if(i.charAt(0)=="@"){let[a,o]=xs(i);return this._timelineEngine.listen(a,t,o,n)}return this._transitionEngine.listen(e,t,i,s,n)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Zn(r,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=je(e[0]),e.length>1&&(i=je(e[e.length-1]))):e instanceof Map&&(t=je(e)),t||i?new xn(r,t,i):null}var xn=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,s){this._element=t,this._startStyles=i,this._endStyles=s;let n=r.initialStylesByElement.get(t);n||r.initialStylesByElement.set(t,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&U(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(U(this._element,this._initialStyles),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),U(this._element,this._initialStyles),this._state=3)}}return r})();function je(r){let e=null;return r.forEach((t,i)=>{Yn(i)&&(e=e||new Map,e.set(i,t))}),e}function Yn(r){return r==="display"||r==="position"}var Ne=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,i,s){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=s,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,s)=>{s!=="offset"&&e.set(s,this._finished?i:dt(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},De=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return hr(e,t)}getParentElement(e){return ct(e)}query(e,t,i){return ur(e,t,i)}computeStyle(e,t,i){return dt(e,t)}animate(e,t,i,s,n,a=[]){let o=s==0?"both":"forwards",l={duration:i,delay:s,fill:o};n&&(l.easing=n);let c=new Map,u=a.filter(y=>y instanceof Ne);gn(i,s)&&u.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let h=fn(t).map(y=>new Map(y));h=yn(e,h,c);let _=Zn(e,h);return new Ne(e,h,l,_)}};var Se="@",Sr="@.disabled",ke=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,s){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=s}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,s=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,s){this.delegate.setAttribute(e,t,i,s)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,s){this.delegate.setStyle(e,t,i,s)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Se&&t==Sr?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},at=class extends ke{factory;constructor(e,t,i,s,n){super(t,i,s,n),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Se?t.charAt(1)=="."&&t==Sr?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Se){let s=Xn(e),n=t.slice(1),a="";return n.charAt(0)!=Se&&([n,a]=Jn(n)),this.engine.listen(this.namespaceId,s,n,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,i,o)})}return this.delegate.listen(e,t,i)}};function Xn(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function Jn(r){let e=r.indexOf("."),t=r.substring(0,e),i=r.slice(e+1);return[t,i]}var Le=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(s,n)=>{n?.removeChild(null,s)}}createRenderer(e,t){let i="",s=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(s);if(!u){let h=()=>c.delete(s);u=new ke(i,s,this.engine,h),c.set(s,u)}return u}let n=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(n,a,e,c.name,c)};return t.data.animation.forEach(o),new at(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(n=>{let[a,o]=n;a(o)}),this._animationCallbacksBuffer=[]})}),s.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var ta=(()=>{class r extends ne{constructor(t,i,s){super(t,i,s)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||r)(me(Ot),me(X),me(J))};static \u0275prov=fe({token:r,factory:r.\u0275fac})}return r})();function ia(){return new Ae}function sa(r,e,t){return new Le(r,e,t)}var Tr=[{provide:J,useFactory:ia},{provide:ne,useClass:ta},{provide:Mt,useFactory:sa,deps:[Bt,ne,Pt]}],mt=[{provide:X,useFactory:()=>new De},{provide:ze,useValue:"BrowserAnimations"},...Tr],ra=[{provide:X,useClass:ht},{provide:ze,useValue:"NoopAnimations"},...Tr],wr=(()=>{class r{static withConfig(t){return{ngModule:r,providers:t.disableAnimations?ra:mt}}static \u0275fac=function(i){return new(i||r)};static \u0275mod=Dt({type:r});static \u0275inj=At({providers:mt,imports:[Kt]})}return r})();function Ar(){return Ct("NgEagerAnimations"),[...mt]}var br=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:Qs,data:{title:"Home"},children:[{path:"dashboard",loadChildren:()=>import("./chunk-UF22CB37.js").then(r=>r.routes)},{path:"theme",loadChildren:()=>import("./chunk-JEXSZAKW.js").then(r=>r.routes)},{path:"base",loadChildren:()=>import("./chunk-RHQFMKLO.js").then(r=>r.routes)},{path:"buttons",loadChildren:()=>import("./chunk-UBGNPRLD.js").then(r=>r.routes)},{path:"forms",loadChildren:()=>import("./chunk-TII57VYW.js").then(r=>r.routes)},{path:"icons",loadChildren:()=>import("./chunk-LPXNQM4T.js").then(r=>r.routes)},{path:"notifications",loadChildren:()=>import("./chunk-DYXNQ7Y2.js").then(r=>r.routes)},{path:"widgets",loadChildren:()=>import("./chunk-XR236OSO.js").then(r=>r.routes)},{path:"charts",loadChildren:()=>import("./chunk-XCQOR5IV.js").then(r=>r.routes)},{path:"pages",loadChildren:()=>import("./chunk-72RHPYD4.js").then(r=>r.routes)}]},{path:"404",loadComponent:()=>import("./chunk-L4SRFMO2.js").then(r=>r.Page404Component),data:{title:"Page 404"}},{path:"500",loadComponent:()=>import("./chunk-ASMQMV6U.js").then(r=>r.Page500Component),data:{title:"Page 500"}},{path:"login",loadComponent:()=>import("./chunk-WV6GOZTA.js").then(r=>r.LoginComponent),data:{title:"Login Page"}},{path:"register",loadComponent:()=>import("./chunk-DPHFC3KK.js").then(r=>r.RegisterComponent),data:{title:"Register Page"}},{path:"store",loadChildren:()=>import("./chunk-D2FQIUXT.js").then(r=>r.routes),data:{title:"Store"}},{path:"**",redirectTo:"dashboard"}];var Pr={providers:[jt(br,Ht({onSameUrlNavigation:"reload"}),Wt({scrollPositionRestoration:"top",anchorScrolling:"enabled"}),Gt(),xt(),Zt()),Fe(ei,Jt),ge,Ar(),Ft(zt()),Fe(wr,Is.forRoot({positionClass:"toast-bottom-right",timeOut:5e3,preventDuplicates:!0}))]};Vt(Hs,Pr).catch(r=>console.error(r));
