marketplacepos 2.8.5 → 2.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{7899:(st,ye,_)=>{_.d(ye,{zQ:()=>Ii,ww:()=>Oi});var s=_(4650),d=_(7579),P=_(9646),Y=_(9751),W=_(8996),G=_(6451),ee=_(5363),J=_(3900),X=_(4004),H=_(4782),Z=_(590),K=_(576);function Ie(be,Te){return(0,K.m)(Te)?(0,J.w)(()=>be,Te):(0,J.w)(()=>be)}var ve=_(9468),ke=_(9300),ze=_(5813),Se=_(2011),Ne=_(6895);_(5867);var Rt=_(5861),Ot=_(9681),Ue=_(4859),it=_(2090),he=_(1877);const Le=new Map,ct={activated:!1,tokenObservers:[]},jt={initialized:!1,enabled:!1};function Ye(be){return Le.get(be)||ct}function At(be,Te){Le.set(be,Te)}function ne(){return jt}class qt{constructor(Te,Be,tt,ft,vt){if(this.operation=Te,this.retryPolicy=Be,this.getWaitDuration=tt,this.lowerBound=ft,this.upperBound=vt,this.pending=null,this.nextErrorWaitInterval=ft,ft>vt)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(Te){var Be=this;return(0,Rt.Z)(function*(){Be.stop();try{Be.pending=new it.BH,yield function _n(be){return new Promise(Te=>{setTimeout(Te,be)})}(Be.getNextRun(Te)),Be.pending.resolve(),yield Be.pending.promise,Be.pending=new it.BH,yield Be.operation(),Be.pending.resolve(),yield Be.pending.promise,Be.process(!0).catch(()=>{})}catch(tt){Be.retryPolicy(tt)?Be.process(!1).catch(()=>{}):Be.stop()}})()}getNextRun(Te){if(Te)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Be=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Be}}}const an=new it.LL("appCheck","AppCheck",{"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"});function bn(be){if(!Ye(be).activated)throw an.create("use-before-activation",{appName:be.name})}function Bt(be,Te){return Ft.apply(this,arguments)}function Ft(){return(Ft=(0,Rt.Z)(function*({url:be,body:Te},Be){var tt,ft;const vt={"Content-Type":"application/json"},Xt=Be.getImmediate({optional:!0});if(Xt){const oi=yield Xt.getHeartbeatsHeader();oi&&(vt["X-Firebase-Client"]=oi)}const Ln={method:"POST",body:JSON.stringify(Te),headers:vt};let ln,er;try{ln=yield fetch(be,Ln)}catch(oi){throw an.create("fetch-network-error",{originalErrorMessage:null===(tt=oi)||void 0===tt?void 0:tt.message})}if(200!==ln.status)throw an.create("fetch-status-error",{httpStatus:ln.status});try{er=yield ln.json()}catch(oi){throw an.create("fetch-parse-error",{originalErrorMessage:null===(ft=oi)||void 0===ft?void 0:ft.message})}const Ar=er.ttl.match(/^([\d.]+)(s)$/);if(!Ar||!Ar[2]||isNaN(Number(Ar[1])))throw an.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${er.ttl}`});const Pi=1e3*Number(Ar[1]),ii=Date.now();return{token:er.token,expireTimeMillis:ii+Pi,issuedAtTimeMillis:ii}})).apply(this,arguments)}function Ge(be,Te){const{projectId:Be,appId:tt,apiKey:ft}=be.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${Be}/apps/${tt}:exchangeDebugToken?key=${ft}`,body:{debug_token:Te}}}const qe="firebase-app-check-store";let Nt=null;function Kn(){return Nt||(Nt=new Promise((be,Te)=>{var Be;try{const tt=indexedDB.open("firebase-app-check-database",1);tt.onsuccess=ft=>{be(ft.target.result)},tt.onerror=ft=>{var vt;Te(an.create("storage-open",{originalErrorMessage:null===(vt=ft.target.error)||void 0===vt?void 0:vt.message}))},tt.onupgradeneeded=ft=>{0===ft.oldVersion&&ft.target.result.createObjectStore(qe,{keyPath:"compositeKey"})}}catch(tt){Te(an.create("storage-open",{originalErrorMessage:null===(Be=tt)||void 0===Be?void 0:Be.message}))}}),Nt)}function N(){return(N=(0,Rt.Z)(function*(be,Te){const tt=(yield Kn()).transaction(qe,"readwrite"),vt=tt.objectStore(qe).put({compositeKey:be,value:Te});return new Promise((Xt,Ln)=>{vt.onsuccess=ln=>{Xt()},tt.onerror=ln=>{var er;Ln(an.create("storage-set",{originalErrorMessage:null===(er=ln.target.error)||void 0===er?void 0:er.message}))}})})).apply(this,arguments)}const B=new he.Yd("@firebase/app-check");function $e(be,Te){return(0,it.hl)()?function An(be,Te){return function ie(be,Te){return N.apply(this,arguments)}(function we(be){return`${be.options.appId}-${be.name}`}(be),Te)}(be,Te).catch(Be=>{B.warn(`Failed to write token to IndexedDB. Error: ${Be}`)}):Promise.resolve()}function Vt(){return ne().enabled}function Gt(){return De.apply(this,arguments)}function De(){return(De=(0,Rt.Z)(function*(){const be=ne();if(be.enabled&&be.token)return be.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const w={error:"UNKNOWN_ERROR"};function S(be){return it.US.encodeString(JSON.stringify(be),!1)}function $(be){return de.apply(this,arguments)}function de(){return(de=(0,Rt.Z)(function*(be,Te=!1){const Be=be.app;bn(Be);const tt=Ye(Be);let vt,ft=tt.token;if(ft&&!ur(ft)&&(At(Be,Object.assign(Object.assign({},tt),{token:void 0})),ft=void 0),!ft){const ln=yield tt.cachedTokenPromise;ln&&(ur(ln)?ft=ln:yield $e(Be,void 0))}if(!Te&&ft&&ur(ft))return{token:ft.token};let Ln,Xt=!1;if(Vt()){tt.exchangeTokenPromise||(tt.exchangeTokenPromise=Bt(Ge(Be,yield Gt()),be.heartbeatServiceProvider).finally(()=>{tt.exchangeTokenPromise=void 0}),Xt=!0);const ln=yield tt.exchangeTokenPromise;return yield $e(Be,ln),At(Be,Object.assign(Object.assign({},tt),{token:ln})),{token:ln.token}}try{tt.exchangeTokenPromise||(tt.exchangeTokenPromise=tt.provider.getToken().finally(()=>{tt.exchangeTokenPromise=void 0}),Xt=!0),ft=yield tt.exchangeTokenPromise}catch(ln){"appCheck/throttled"===ln.code?B.warn(ln.message):B.error(ln),vt=ln}return ft?vt?Ln=ur(ft)?{token:ft.token,internalError:vt}:Xn(vt):(Ln={token:ft.token},At(Be,Object.assign(Object.assign({},tt),{token:ft})),yield $e(Be,ft)):Ln=Xn(vt),Xt&&Tr(Be,Ln),Ln})).apply(this,arguments)}function bt(be,Te){const Be=Ye(be),tt=Be.tokenObservers.filter(ft=>ft.next!==Te);0===tt.length&&Be.tokenRefresher&&Be.tokenRefresher.isRunning()&&Be.tokenRefresher.stop(),At(be,Object.assign(Object.assign({},Be),{tokenObservers:tt}))}function In(be){const{app:Te}=be,Be=Ye(Te);let tt=Be.tokenRefresher;tt||(tt=function On(be){const{app:Te}=be;return new qt((0,Rt.Z)(function*(){let tt;if(tt=Ye(Te).token?yield $(be,!0):yield $(be),tt.error)throw tt.error;if(tt.internalError)throw tt.internalError}),()=>!0,()=>{const Be=Ye(Te);if(Be.token){let tt=Be.token.issuedAtTimeMillis+.5*(Be.token.expireTimeMillis-Be.token.issuedAtTimeMillis)+3e5;return tt=Math.min(tt,Be.token.expireTimeMillis-3e5),Math.max(0,tt-Date.now())}return 0},3e4,96e4)}(be),At(Te,Object.assign(Object.assign({},Be),{tokenRefresher:tt}))),!tt.isRunning()&&Be.isTokenAutoRefreshEnabled&&tt.start()}function Tr(be,Te){const Be=Ye(be).tokenObservers;for(const tt of Be)try{"EXTERNAL"===tt.type&&null!=Te.error?tt.error(Te.error):tt.next(Te)}catch{}}function ur(be){return be.expireTimeMillis-Date.now()>0}function Xn(be){return{token:S(w),error:be}}class fi{constructor(Te,Be){this.app=Te,this.heartbeatServiceProvider=Be}_delete(){const{tokenObservers:Te}=Ye(this.app);for(const Be of Te)bt(this.app,Be.next);return Promise.resolve()}}const Wr="app-check-internal";!function Xr(){(0,Ot._registerComponent)(new Ue.wA("app-check",be=>function ji(be,Te){return new fi(be,Te)}(be.getProvider("app").getImmediate(),be.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((be,Te,Be)=>{be.getProvider(Wr).initialize()})),(0,Ot._registerComponent)(new Ue.wA(Wr,be=>function $i(be){return{getToken:Te=>$(be,Te),addTokenListener:Te=>function et(be,Te,Be,tt){const{app:ft}=be,vt=Ye(ft),Xt={next:Be,error:tt,type:Te};if(At(ft,Object.assign(Object.assign({},vt),{tokenObservers:[...vt.tokenObservers,Xt]})),vt.token&&ur(vt.token)){const Ln=vt.token;Promise.resolve().then(()=>{Be({token:Ln.token}),In(be)}).catch(()=>{})}vt.cachedTokenPromise.then(()=>In(be))}(be,"INTERNAL",Te),removeTokenListener:Te=>bt(be.app,Te)}}(be.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,Ot.registerVersion)("@firebase/app-check","0.5.15")}();class jn{constructor(){return(0,ze.vb)("app-check")}}typeof window<"u"&&window;var co=_(127);const dr=new s.OlP("angularfire2.auth.use-emulator"),uo=new s.OlP("angularfire2.auth.settings"),zi=new s.OlP("angularfire2.auth.tenant-id"),Ai=new s.OlP("angularfire2.auth.langugage-code"),fo=new s.OlP("angularfire2.auth.use-device-language"),xo=new s.OlP("angularfire.auth.persistence");let Ii=(()=>{class be{constructor(Be,tt,ft,vt,Xt,Ln,ln,er,Ar,Pi,ii,oi){const Qi=new d.x,bi=(0,P.of)(void 0).pipe((0,ee.Q)(Xt.outsideAngular),(0,J.w)(()=>vt.runOutsideAngular(()=>_.e(545).then(_.bind(_,9545)))),(0,X.U)(()=>(0,Se.on)(Be,vt,tt)),(0,X.U)(Ri=>((be,Te,Be,tt,ft,vt,Xt,Ln)=>(0,Se.cc)(`${be.name}.auth`,"AngularFireAuth",be.name,()=>{const ln=Te.runOutsideAngular(()=>be.auth());if(Be&&ln.useEmulator(...Be),tt&&(ln.tenantId=tt),ln.languageCode=ft,vt&&ln.useDeviceLanguage(),Xt)for(const[er,Ar]of Object.entries(Xt))ln.settings[er]=Ar;return Ln&&ln.setPersistence(Ln),ln},[Be,tt,ft,vt,Xt,Ln]))(Ri,vt,Ln,er,Ar,Pi,ln,ii)),(0,H.d)({bufferSize:1,refCount:!1}));if((0,Ne.PM)(ft))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,P.of)(null);else{bi.pipe((0,Z.P)()).subscribe();const si=bi.pipe((0,J.w)(Dn=>Dn.getRedirectResult().then(Bn=>Bn,()=>null)),ze.iC,(0,H.d)({bufferSize:1,refCount:!1})),Ir=bi.pipe((0,J.w)(Dn=>new Y.y(Bn=>({unsubscribe:vt.runOutsideAngular(()=>Dn.onAuthStateChanged(qr=>Bn.next(qr),qr=>Bn.error(qr),()=>Bn.complete()))})))),ai=bi.pipe((0,J.w)(Dn=>new Y.y(Bn=>({unsubscribe:vt.runOutsideAngular(()=>Dn.onIdTokenChanged(qr=>Bn.next(qr),qr=>Bn.error(qr),()=>Bn.complete()))}))));this.authState=si.pipe(Ie(Ir),(0,ve.R)(Xt.outsideAngular),(0,ee.Q)(Xt.insideAngular)),this.user=si.pipe(Ie(ai),(0,ve.R)(Xt.outsideAngular),(0,ee.Q)(Xt.insideAngular)),this.idToken=this.user.pipe((0,J.w)(Dn=>Dn?(0,W.D)(Dn.getIdToken()):(0,P.of)(null))),this.idTokenResult=this.user.pipe((0,J.w)(Dn=>Dn?(0,W.D)(Dn.getIdTokenResult()):(0,P.of)(null))),this.credential=(0,G.T)(si,Qi,this.authState.pipe((0,ke.h)(Dn=>!Dn))).pipe((0,X.U)(Dn=>Dn?.user?Dn:null),(0,ve.R)(Xt.outsideAngular),(0,ee.Q)(Xt.insideAngular))}return(0,Se.pX)(this,bi,vt,{spy:{apply:(Ri,si,Ir)=>{(Ri.startsWith("signIn")||Ri.startsWith("createUser"))&&Ir.then(ai=>Qi.next(ai))}}})}}return be.\u0275fac=function(Be){return new(Be||be)(s.LFG(Se.Dh),s.LFG(Se.xv,8),s.LFG(s.Lbi),s.LFG(s.R0b),s.LFG(ze.HU),s.LFG(dr,8),s.LFG(uo,8),s.LFG(zi,8),s.LFG(Ai,8),s.LFG(fo,8),s.LFG(xo,8),s.LFG(jn,8))},be.\u0275prov=s.Yz7({token:be,factory:be.\u0275fac,providedIn:"any"}),be})(),Oi=(()=>{class be{constructor(){co.Z.registerVersion("angularfire",ze.q4.full,"auth-compat")}}return be.\u0275fac=function(Be){return new(Be||be)},be.\u0275mod=s.oAB({type:be}),be.\u0275inj=s.cJS({providers:[Ii]}),be})()},2011:(st,ye,_)=>{_.d(ye,{Dh:()=>J,GT:()=>G,cc:()=>ve,hO:()=>Ie,on:()=>H,pX:()=>W,xv:()=>X});var s=_(4650),d=_(127),P=_(5813);st=_.hmd(st);const Y=["ngOnDestroy"],W=(Ne,Pe,Ee,Ce={})=>new Proxy(Ne,{get:(j,le)=>Ee.runOutsideAngular(()=>{var ce;if(Ne[le])return!(null===(ce=Ce?.spy)||void 0===ce)&&ce.get&&Ce.spy.get(le,Ne[le]),Ne[le];if(Y.indexOf(le)>-1)return()=>{};const me=Pe.toPromise().then(se=>{const ge=se&&se[le];return"function"==typeof ge?ge.bind(se):ge&&ge.then?ge.then(q=>Ee.run(()=>q)):Ee.run(()=>ge)});return new Proxy(()=>{},{get:(se,ge)=>me[ge],apply:(se,ge,q)=>me.then(oe=>{var Ae;const _e=oe&&oe(...q);return!(null===(Ae=Ce?.spy)||void 0===Ae)&&Ae.apply&&Ce.spy.apply(le,q,_e),_e})})})}),G=(Ne,Pe)=>{Pe.forEach(Ee=>{Object.getOwnPropertyNames(Ee.prototype||Ee).forEach(Ce=>{Object.defineProperty(Ne.prototype,Ce,Object.getOwnPropertyDescriptor(Ee.prototype||Ee,Ce))})})};class ee{constructor(Pe){return Pe}}const J=new s.OlP("angularfire2.app.options"),X=new s.OlP("angularfire2.app.name");function H(Ne,Pe,Ee){const j="object"==typeof Ee&&Ee||{};j.name=j.name||"string"==typeof Ee&&Ee||"[DEFAULT]";const ce=d.Z.apps.filter(me=>me&&me.name===j.name)[0]||Pe.runOutsideAngular(()=>d.Z.initializeApp(Ne,j));try{JSON.stringify(Ne)!==JSON.stringify(ce.options)&&Z("error",`${ce.name} Firebase App already initialized with different options${st.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new ee(ce)}const Z=(Ne,...Pe)=>{(0,s.X6Q)()&&typeof console<"u"&&console[Ne](...Pe)},K={provide:ee,useFactory:H,deps:[J,s.R0b,[new s.FiY,X]]};let Ie=(()=>{class Ne{constructor(Ee){d.Z.registerVersion("angularfire",P.q4.full,"core"),d.Z.registerVersion("angularfire",P.q4.full,"app-compat"),d.Z.registerVersion("angular",s.q4F.full,Ee.toString())}static initializeApp(Ee,Ce){return{ngModule:Ne,providers:[{provide:J,useValue:Ee},{provide:X,useValue:Ce}]}}}return Ne.\u0275fac=function(Ee){return new(Ee||Ne)(s.LFG(s.Lbi))},Ne.\u0275mod=s.oAB({type:Ne}),Ne.\u0275inj=s.cJS({providers:[K]}),Ne})();function ve(Ne,Pe,Ee,Ce,j){const[,le,ce]=globalThis.\u0275AngularfireInstanceCache.find(me=>me[0]===Ne)||[];if(le)return function ke(Ne,Pe){try{return Ne.toString()===Pe.toString()}catch{return Ne===Pe}}(j,ce)||(Se("error",`${Pe} was already initialized on the ${Ee} Firebase App with different settings.${ze?" You may need to reload as Firebase is not HMR aware.":""}`),Se("warn",{is:j,was:ce})),le;{const me=Ce();return globalThis.\u0275AngularfireInstanceCache.push([Ne,me,j]),me}}const ze=!!st.hot,Se=(Ne,...Pe)=>{(0,s.X6Q)()&&typeof console<"u"&&console[Ne](...Pe)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},5813:(st,ye,_)=>{_.d(ye,{q4:()=>vi,iC:()=>ia,HU:()=>Mo,vb:()=>kt,JM:()=>Tt});var s=_(4650),d=_(5867),P=_(5861),Y=_(9681),W=_(2090),G=_(4859),ee=_(1877),J=_(8766);const X="@firebase/installations",H="0.5.15",K=`w:${H}`,Ie="FIS_v2",Pe=new W.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Ee(E){return E instanceof W.ZR&&E.code.includes("request-failed")}function Ce({projectId:E}){return`https://firebaseinstallations.googleapis.com/v1/projects/${E}/installations`}function j(E){return{token:E.token,requestStatus:2,expiresIn:oe(E.expiresIn),creationTime:Date.now()}}function le(E,T){return ce.apply(this,arguments)}function ce(){return(ce=(0,P.Z)(function*(E,T){const ae=(yield T.json()).error;return Pe.create("request-failed",{requestName:E,serverCode:ae.code,serverMessage:ae.message,serverStatus:ae.status})})).apply(this,arguments)}function me({apiKey:E}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":E})}function se(E,{refreshToken:T}){const k=me(E);return k.append("Authorization",function Ae(E){return`${Ie} ${E}`}(T)),k}function ge(E){return q.apply(this,arguments)}function q(){return(q=(0,P.Z)(function*(E){const T=yield E();return T.status>=500&&T.status<600?E():T})).apply(this,arguments)}function oe(E){return Number(E.replace("s","000"))}function _e(E,T){return Ke.apply(this,arguments)}function Ke(){return(Ke=(0,P.Z)(function*({appConfig:E,heartbeatServiceProvider:T},{fid:k}){const ae=Ce(E),Oe=me(E),We=T.getImmediate({optional:!0});if(We){const dn=yield We.getHeartbeatsHeader();dn&&Oe.append("x-firebase-client",dn)}const xt={method:"POST",headers:Oe,body:JSON.stringify({fid:k,authVersion:Ie,appId:E.appId,sdkVersion:K})},tn=yield ge(()=>fetch(ae,xt));if(tn.ok){const dn=yield tn.json();return{fid:dn.fid||k,registrationStatus:2,refreshToken:dn.refreshToken,authToken:j(dn.authToken)}}throw yield le("Create Installation",tn)})).apply(this,arguments)}function Je(E){return new Promise(T=>{setTimeout(T,E)})}const Wt=/^[cdef][\w-]{21}$/;function Rt(){try{const E=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(E),E[0]=112+E[0]%16;const k=function Ot(E){return function _t(E){return btoa(String.fromCharCode(...E)).replace(/\+/g,"-").replace(/\//g,"_")}(E).substr(0,22)}(E);return Wt.test(k)?k:""}catch{return""}}function Ue(E){return`${E.appName}!${E.appId}`}const it=new Map;function he(E,T){const k=Ue(E);jt(k,T),function Ye(E,T){const k=function ne(){return!At&&"BroadcastChannel"in self&&(At=new BroadcastChannel("[Firebase] FID Change"),At.onmessage=E=>{jt(E.data.key,E.data.fid)}),At}();k&&k.postMessage({key:E,fid:T}),function Qe(){0===it.size&&At&&(At.close(),At=null)}()}(k,T)}function jt(E,T){const k=it.get(E);if(k)for(const ae of k)ae(T)}let At=null;const Dt="firebase-installations-store";let Pt=null;function mn(){return Pt||(Pt=(0,J.X3)("firebase-installations-database",1,{upgrade:(E,T)=>{0===T&&E.createObjectStore(Dt)}})),Pt}function qt(E,T){return _n.apply(this,arguments)}function _n(){return(_n=(0,P.Z)(function*(E,T){const k=Ue(E),Oe=(yield mn()).transaction(Dt,"readwrite"),We=Oe.objectStore(Dt),dt=yield We.get(k);return yield We.put(T,k),yield Oe.done,(!dt||dt.fid!==T.fid)&&he(E,T.fid),T})).apply(this,arguments)}function lt(E){return an.apply(this,arguments)}function an(){return(an=(0,P.Z)(function*(E){const T=Ue(E),ae=(yield mn()).transaction(Dt,"readwrite");yield ae.objectStore(Dt).delete(T),yield ae.done})).apply(this,arguments)}function Un(E,T){return bn.apply(this,arguments)}function bn(){return(bn=(0,P.Z)(function*(E,T){const k=Ue(E),Oe=(yield mn()).transaction(Dt,"readwrite"),We=Oe.objectStore(Dt),dt=yield We.get(k),xt=T(dt);return void 0===xt?yield We.delete(k):yield We.put(xt,k),yield Oe.done,xt&&(!dt||dt.fid!==xt.fid)&&he(E,xt.fid),xt})).apply(this,arguments)}function wn(E){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,P.Z)(function*(E){let T;const k=yield Un(E.appConfig,ae=>{const Oe=Bt(ae),We=Ft(E,Oe);return T=We.registrationPromise,We.installationEntry});return""===k.fid?{installationEntry:yield T}:{installationEntry:k,registrationPromise:T}})).apply(this,arguments)}function Bt(E){return qe(E||{fid:Rt(),registrationStatus:0})}function Ft(E,T){if(0===T.registrationStatus){if(!navigator.onLine)return{installationEntry:T,registrationPromise:Promise.reject(Pe.create("app-offline"))};const k={fid:T.fid,registrationStatus:1,registrationTime:Date.now()},ae=function gt(E,T){return Lt.apply(this,arguments)}(E,k);return{installationEntry:k,registrationPromise:ae}}return 1===T.registrationStatus?{installationEntry:T,registrationPromise:Ge(E)}:{installationEntry:T}}function Lt(){return(Lt=(0,P.Z)(function*(E,T){try{const k=yield _e(E,T);return qt(E.appConfig,k)}catch(k){throw Ee(k)&&409===k.customData.serverCode?yield lt(E.appConfig):yield qt(E.appConfig,{fid:T.fid,registrationStatus:0}),k}})).apply(this,arguments)}function Ge(E){return yt.apply(this,arguments)}function yt(){return(yt=(0,P.Z)(function*(E){let T=yield Fe(E.appConfig);for(;1===T.registrationStatus;)yield Je(100),T=yield Fe(E.appConfig);if(0===T.registrationStatus){const{installationEntry:k,registrationPromise:ae}=yield wn(E);return ae||k}return T})).apply(this,arguments)}function Fe(E){return Un(E,T=>{if(!T)throw Pe.create("installation-not-found");return qe(T)})}function qe(E){return function $t(E){return 1===E.registrationStatus&&E.registrationTime+1e4<Date.now()}(E)?{fid:E.fid,registrationStatus:0}:E}function Nt(E,T){return Kn.apply(this,arguments)}function Kn(){return(Kn=(0,P.Z)(function*({appConfig:E,heartbeatServiceProvider:T},k){const ae=Ut(E,k),Oe=se(E,k),We=T.getImmediate({optional:!0});if(We){const dn=yield We.getHeartbeatsHeader();dn&&Oe.append("x-firebase-client",dn)}const xt={method:"POST",headers:Oe,body:JSON.stringify({installation:{sdkVersion:K,appId:E.appId}})},tn=yield ge(()=>fetch(ae,xt));if(tn.ok)return j(yield tn.json());throw yield le("Generate Auth Token",tn)})).apply(this,arguments)}function Ut(E,{fid:T}){return`${Ce(E)}/${T}/authTokens:generate`}function An(E){return Yn.apply(this,arguments)}function Yn(){return(Yn=(0,P.Z)(function*(E,T=!1){let k;const ae=yield Un(E.appConfig,We=>{if(!we(We))throw Pe.create("not-registered");const dt=We.authToken;if(!T&&B(dt))return We;if(1===dt.requestStatus)return k=ht(E,T),We;{if(!navigator.onLine)throw Pe.create("app-offline");const xt=pe(We);return k=M(E,xt),xt}});return k?yield k:ae.authToken})).apply(this,arguments)}function ht(E,T){return ie.apply(this,arguments)}function ie(){return(ie=(0,P.Z)(function*(E,T){let k=yield N(E.appConfig);for(;1===k.authToken.requestStatus;)yield Je(100),k=yield N(E.appConfig);const ae=k.authToken;return 0===ae.requestStatus?An(E,T):ae})).apply(this,arguments)}function N(E){return Un(E,T=>{if(!we(T))throw Pe.create("not-registered");return function $e(E){return 1===E.requestStatus&&E.requestTime+1e4<Date.now()}(T.authToken)?Object.assign(Object.assign({},T),{authToken:{requestStatus:0}}):T})}function M(E,T){return F.apply(this,arguments)}function F(){return(F=(0,P.Z)(function*(E,T){try{const k=yield Nt(E,T),ae=Object.assign(Object.assign({},T),{authToken:k});return yield qt(E.appConfig,ae),k}catch(k){if(!Ee(k)||401!==k.customData.serverCode&&404!==k.customData.serverCode){const ae=Object.assign(Object.assign({},T),{authToken:{requestStatus:0}});yield qt(E.appConfig,ae)}else yield lt(E.appConfig);throw k}})).apply(this,arguments)}function we(E){return void 0!==E&&2===E.registrationStatus}function B(E){return 2===E.requestStatus&&!function Q(E){const T=Date.now();return T<E.creationTime||E.creationTime+E.expiresIn<T+36e5}(E)}function pe(E){const T={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},E),{authToken:T})}function ut(){return(ut=(0,P.Z)(function*(E){const T=E,{installationEntry:k,registrationPromise:ae}=yield wn(T);return ae?ae.catch(console.error):An(T).catch(console.error),k.fid})).apply(this,arguments)}function Gt(){return(Gt=(0,P.Z)(function*(E,T=!1){const k=E;return yield De(k),(yield An(k,T)).token})).apply(this,arguments)}function De(E){return I.apply(this,arguments)}function I(){return(I=(0,P.Z)(function*(E){const{registrationPromise:T}=yield wn(E);T&&(yield T)})).apply(this,arguments)}function Tr(E){return Pe.create("missing-app-config-values",{valueName:E})}const ur="installations",fi=E=>{const T=E.getProvider("app").getImmediate(),k=function On(E){if(!E||!E.options)throw Tr("App Configuration");if(!E.name)throw Tr("App Name");const T=["projectId","apiKey","appId"];for(const k of T)if(!E.options[k])throw Tr(k);return{appName:E.name,projectId:E.options.projectId,apiKey:E.options.apiKey,appId:E.options.appId}}(T);return{app:T,appConfig:k,heartbeatServiceProvider:(0,Y._getProvider)(T,"heartbeat"),_delete:()=>Promise.resolve()}},ji=E=>{const T=E.getProvider("app").getImmediate(),k=(0,Y._getProvider)(T,ur).getImmediate();return{getId:()=>function Me(E){return ut.apply(this,arguments)}(k),getToken:Oe=>function Vt(E){return Gt.apply(this,arguments)}(k,Oe)}};(function $i(){(0,Y._registerComponent)(new G.wA(ur,fi,"PUBLIC")),(0,Y._registerComponent)(new G.wA("installations-internal",ji,"PRIVATE"))})(),(0,Y.registerVersion)(X,H),(0,Y.registerVersion)(X,H,"esm2017");const Vr="@firebase/remote-config",Qn=new W.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class Wr{constructor(T,k,ae,Oe){this.client=T,this.storage=k,this.storageCache=ae,this.logger=Oe}isCachedDataFresh(T,k){if(!k)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const ae=Date.now()-k,Oe=ae<=T;return this.logger.debug(`Config fetch cache check. Cache age millis: ${ae}. Cache max age millis (minimumFetchIntervalMillis setting): ${T}. Is cache hit: ${Oe}.`),Oe}fetch(T){var k=this;return(0,P.Z)(function*(){const[ae,Oe]=yield Promise.all([k.storage.getLastSuccessfulFetchTimestampMillis(),k.storage.getLastSuccessfulFetchResponse()]);if(Oe&&k.isCachedDataFresh(T.cacheMaxAgeMillis,ae))return Oe;T.eTag=Oe&&Oe.eTag;const We=yield k.client.fetch(T),dt=[k.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===We.status&&dt.push(k.storage.setLastSuccessfulFetchResponse(We)),yield Promise.all(dt),We})()}}function Xr(E=navigator){return E.languages&&E.languages[0]||E.language}class Gr{constructor(T,k,ae,Oe,We,dt){this.firebaseInstallations=T,this.sdkVersion=k,this.namespace=ae,this.projectId=Oe,this.apiKey=We,this.appId=dt}fetch(T){var k=this;return(0,P.Z)(function*(){var ae,Oe,We;const[dt,xt]=yield Promise.all([k.firebaseInstallations.getId(),k.firebaseInstallations.getToken()]),dn=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${k.projectId}/namespaces/${k.namespace}:fetch?key=${k.apiKey}`,yn={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":T.eTag||"*"},nn={sdk_version:k.sdkVersion,app_instance_id:dt,app_instance_id_token:xt,app_id:k.appId,language_code:Xr()},wi={method:"POST",headers:yn,body:JSON.stringify(nn)},Bi=fetch(dn,wi),la=new Promise((fs,Us)=>{T.signal.addEventListener(()=>{const Fa=new Error("The operation was aborted.");Fa.name="AbortError",Us(Fa)})});let ca;try{yield Promise.race([Bi,la]),ca=yield Bi}catch(fs){let Us="fetch-client-network";throw"AbortError"===(null===(ae=fs)||void 0===ae?void 0:ae.name)&&(Us="fetch-timeout"),Qn.create(Us,{originalErrorMessage:null===(Oe=fs)||void 0===Oe?void 0:Oe.message})}let Bs=ca.status;const Wl=ca.headers.get("ETag")||void 0;let Ra,ds;if(200===ca.status){let fs;try{fs=yield ca.json()}catch(Us){throw Qn.create("fetch-client-parse",{originalErrorMessage:null===(We=Us)||void 0===We?void 0:We.message})}Ra=fs.entries,ds=fs.state}if("INSTANCE_STATE_UNSPECIFIED"===ds?Bs=500:"NO_CHANGE"===ds?Bs=304:("NO_TEMPLATE"===ds||"EMPTY_CONFIG"===ds)&&(Ra={}),304!==Bs&&200!==Bs)throw Qn.create("fetch-status",{httpStatus:Bs});return{status:Bs,eTag:Wl,config:Ra}})()}}class Kr{constructor(T,k){this.client=T,this.storage=k}fetch(T){var k=this;return(0,P.Z)(function*(){const ae=(yield k.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return k.attemptFetch(T,ae)})()}attemptFetch(T,{throttleEndTimeMillis:k,backoffCount:ae}){var Oe=this;return(0,P.Z)(function*(){yield function Si(E,T){return new Promise((k,ae)=>{const Oe=Math.max(T-Date.now(),0),We=setTimeout(k,Oe);E.addEventListener(()=>{clearTimeout(We),ae(Qn.create("fetch-throttle",{throttleEndTimeMillis:T}))})})}(T.signal,k);try{const We=yield Oe.client.fetch(T);return yield Oe.storage.deleteThrottleMetadata(),We}catch(We){if(!function jn(E){if(!(E instanceof W.ZR&&E.customData))return!1;const T=Number(E.customData.httpStatus);return 429===T||500===T||503===T||504===T}(We))throw We;const dt={throttleEndTimeMillis:Date.now()+(0,W.$s)(ae),backoffCount:ae+1};return yield Oe.storage.setThrottleMetadata(dt),Oe.attemptFetch(T,dt)}})()}}class Vi{constructor(T,k,ae,Oe,We){this.app=T,this._client=k,this._storageCache=ae,this._storage=Oe,this._logger=We,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function xr(E,T){var k;const ae=E.target.error||void 0;return Qn.create(T,{originalErrorMessage:ae&&(null===(k=ae)||void 0===k?void 0:k.message)})}const lr="app_namespace_store";class ir{constructor(T,k,ae,Oe=function gr(){return new Promise((E,T)=>{var k;try{const ae=indexedDB.open("firebase_remote_config",1);ae.onerror=Oe=>{T(xr(Oe,"storage-open"))},ae.onsuccess=Oe=>{E(Oe.target.result)},ae.onupgradeneeded=Oe=>{0===Oe.oldVersion&&Oe.target.result.createObjectStore(lr,{keyPath:"compositeKey"})}}catch(ae){T(Qn.create("storage-open",{originalErrorMessage:null===(k=ae)||void 0===k?void 0:k.message}))}})}()){this.appId=T,this.appName=k,this.namespace=ae,this.openDbPromise=Oe}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(T){return this.set("last_fetch_status",T)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(T){return this.set("last_successful_fetch_timestamp_millis",T)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(T){return this.set("last_successful_fetch_response",T)}getActiveConfig(){return this.get("active_config")}setActiveConfig(T){return this.set("active_config",T)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(T){return this.set("active_config_etag",T)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(T){return this.set("throttle_metadata",T)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(T){var k=this;return(0,P.Z)(function*(){const ae=yield k.openDbPromise;return new Promise((Oe,We)=>{var dt;const tn=ae.transaction([lr],"readonly").objectStore(lr),dn=k.createCompositeKey(T);try{const yn=tn.get(dn);yn.onerror=nn=>{We(xr(nn,"storage-get"))},yn.onsuccess=nn=>{const wi=nn.target.result;Oe(wi?wi.value:void 0)}}catch(yn){We(Qn.create("storage-get",{originalErrorMessage:null===(dt=yn)||void 0===dt?void 0:dt.message}))}})})()}set(T,k){var ae=this;return(0,P.Z)(function*(){const Oe=yield ae.openDbPromise;return new Promise((We,dt)=>{var xt;const dn=Oe.transaction([lr],"readwrite").objectStore(lr),yn=ae.createCompositeKey(T);try{const nn=dn.put({compositeKey:yn,value:k});nn.onerror=wi=>{dt(xr(wi,"storage-set"))},nn.onsuccess=()=>{We()}}catch(nn){dt(Qn.create("storage-set",{originalErrorMessage:null===(xt=nn)||void 0===xt?void 0:xt.message}))}})})()}delete(T){var k=this;return(0,P.Z)(function*(){const ae=yield k.openDbPromise;return new Promise((Oe,We)=>{var dt;const tn=ae.transaction([lr],"readwrite").objectStore(lr),dn=k.createCompositeKey(T);try{const yn=tn.delete(dn);yn.onerror=nn=>{We(xr(nn,"storage-delete"))},yn.onsuccess=()=>{Oe()}}catch(yn){We(Qn.create("storage-delete",{originalErrorMessage:null===(dt=yn)||void 0===dt?void 0:dt.message}))}})})()}createCompositeKey(T){return[this.appId,this.appName,this.namespace,T].join()}}class Yr{constructor(T){this.storage=T}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var T=this;return(0,P.Z)(function*(){const k=T.storage.getLastFetchStatus(),ae=T.storage.getLastSuccessfulFetchTimestampMillis(),Oe=T.storage.getActiveConfig(),We=yield k;We&&(T.lastFetchStatus=We);const dt=yield ae;dt&&(T.lastSuccessfulFetchTimestampMillis=dt);const xt=yield Oe;xt&&(T.activeConfig=xt)})()}setLastFetchStatus(T){return this.lastFetchStatus=T,this.storage.setLastFetchStatus(T)}setLastSuccessfulFetchTimestampMillis(T){return this.lastSuccessfulFetchTimestampMillis=T,this.storage.setLastSuccessfulFetchTimestampMillis(T)}setActiveConfig(T){return this.activeConfig=T,this.storage.setActiveConfig(T)}}function xi(){return co.apply(this,arguments)}function co(){return(co=(0,P.Z)(function*(){if(!(0,W.hl)())return!1;try{return yield(0,W.eu)()}catch{return!1}})).apply(this,arguments)}!function gi(){(0,Y._registerComponent)(new G.wA("remote-config",function E(T,{instanceIdentifier:k}){const ae=T.getProvider("app").getImmediate(),Oe=T.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Qn.create("registration-window");if(!(0,W.hl)())throw Qn.create("indexed-db-unavailable");const{projectId:We,apiKey:dt,appId:xt}=ae.options;if(!We)throw Qn.create("registration-project-id");if(!dt)throw Qn.create("registration-api-key");if(!xt)throw Qn.create("registration-app-id");const tn=new ir(xt,ae.name,k=k||"firebase"),dn=new Yr(tn),yn=new ee.Yd(Vr);yn.logLevel=ee.in.ERROR;const nn=new Gr(Oe,Y.SDK_VERSION,k,We,dt,xt),wi=new Kr(nn,tn),Bi=new Wr(wi,tn,dn,yn),la=new Vi(ae,Bi,dn,tn,yn);return function hn(E){const T=(0,W.m9)(E);T._initializePromise||(T._initializePromise=T._storageCache.loadFromStorage().then(()=>{T._isInitializationComplete=!0}))}(la),la},"PUBLIC").setMultipleInstances(!0)),(0,Y.registerVersion)(Vr,"0.3.14"),(0,Y.registerVersion)(Vr,"0.3.14","esm2017")}();const $o="/firebase-messaging-sw.js",dr="/firebase-cloud-messaging-push-scope",uo="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ai="google.c.a.c_id",fo="google.c.a.c_l",xo="google.c.a.ts",ns="google.c.a.e";var Oi=(()=>{return(E=Oi||(Oi={})).PUSH_RECEIVED="push-received",E.NOTIFICATION_CLICKED="notification-clicked",Oi;var E})();function be(E){const T=new Uint8Array(E);return btoa(String.fromCharCode(...T)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Te(E){const k=(E+"=".repeat((4-E.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),ae=atob(k),Oe=new Uint8Array(ae.length);for(let We=0;We<ae.length;++We)Oe[We]=ae.charCodeAt(We);return Oe}const Be="fcm_token_details_db",ft="fcm_token_object_Store";function vt(E){return Xt.apply(this,arguments)}function Xt(){return Xt=(0,P.Z)(function*(E){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(We=>We.name).includes(Be))return null;let T=null;return(yield(0,J.X3)(Be,5,{upgrade:(ae=(0,P.Z)(function*(Oe,We,dt,xt){var tn;if(We<2||!Oe.objectStoreNames.contains(ft))return;const dn=xt.objectStore(ft),yn=yield dn.index("fcmSenderId").get(E);if(yield dn.clear(),yn)if(2===We){const nn=yn;if(!nn.auth||!nn.p256dh||!nn.endpoint)return;T={token:nn.fcmToken,createTime:null!==(tn=nn.createTime)&&void 0!==tn?tn:Date.now(),subscriptionOptions:{auth:nn.auth,p256dh:nn.p256dh,endpoint:nn.endpoint,swScope:nn.swScope,vapidKey:"string"==typeof nn.vapidKey?nn.vapidKey:be(nn.vapidKey)}}}else if(3===We){const nn=yn;T={token:nn.fcmToken,createTime:nn.createTime,subscriptionOptions:{auth:be(nn.auth),p256dh:be(nn.p256dh),endpoint:nn.endpoint,swScope:nn.swScope,vapidKey:be(nn.vapidKey)}}}else if(4===We){const nn=yn;T={token:nn.fcmToken,createTime:nn.createTime,subscriptionOptions:{auth:be(nn.auth),p256dh:be(nn.p256dh),endpoint:nn.endpoint,swScope:nn.swScope,vapidKey:be(nn.vapidKey)}}}}),function(We,dt,xt,tn){return ae.apply(this,arguments)})})).close(),yield(0,J.Lj)(Be),yield(0,J.Lj)("fcm_vapid_details_db"),yield(0,J.Lj)("undefined"),Ln(T)?T:null;var ae}),Xt.apply(this,arguments)}function Ln(E){if(!E||!E.subscriptionOptions)return!1;const{subscriptionOptions:T}=E;return"number"==typeof E.createTime&&E.createTime>0&&"string"==typeof E.token&&E.token.length>0&&"string"==typeof T.auth&&T.auth.length>0&&"string"==typeof T.p256dh&&T.p256dh.length>0&&"string"==typeof T.endpoint&&T.endpoint.length>0&&"string"==typeof T.swScope&&T.swScope.length>0&&"string"==typeof T.vapidKey&&T.vapidKey.length>0}const Ar="firebase-messaging-store";let Pi=null;function ii(){return Pi||(Pi=(0,J.X3)("firebase-messaging-database",1,{upgrade:(E,T)=>{0===T&&E.createObjectStore(Ar)}})),Pi}function oi(E){return Qi.apply(this,arguments)}function Qi(){return(Qi=(0,P.Z)(function*(E){const T=ai(E),ae=yield(yield ii()).transaction(Ar).objectStore(Ar).get(T);if(ae)return ae;{const Oe=yield vt(E.appConfig.senderId);if(Oe)return yield bi(E,Oe),Oe}})).apply(this,arguments)}function bi(E,T){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,P.Z)(function*(E,T){const k=ai(E),Oe=(yield ii()).transaction(Ar,"readwrite");return yield Oe.objectStore(Ar).put(T,k),yield Oe.done,T})).apply(this,arguments)}function si(E){return Ir.apply(this,arguments)}function Ir(){return(Ir=(0,P.Z)(function*(E){const T=ai(E),ae=(yield ii()).transaction(Ar,"readwrite");yield ae.objectStore(Ar).delete(T),yield ae.done})).apply(this,arguments)}function ai({appConfig:E}){return E.appId}const Bn=new W.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});function qr(E,T){return Pn.apply(this,arguments)}function Pn(){return(Pn=(0,P.Z)(function*(E,T){var k;const ae=yield ei(E),Oe=rs(T),We={method:"POST",headers:ae,body:JSON.stringify(Oe)};let dt;try{dt=yield(yield fetch(Fi(E.appConfig),We)).json()}catch(xt){throw Bn.create("token-subscribe-failed",{errorInfo:null===(k=xt)||void 0===k?void 0:k.toString()})}if(dt.error)throw Bn.create("token-subscribe-failed",{errorInfo:dt.error.message});if(!dt.token)throw Bn.create("token-subscribe-no-token");return dt.token})).apply(this,arguments)}function Ao(E,T){return li.apply(this,arguments)}function li(){return(li=(0,P.Z)(function*(E,T){var k;const ae=yield ei(E),Oe=rs(T.subscriptionOptions),We={method:"PATCH",headers:ae,body:JSON.stringify(Oe)};let dt;try{dt=yield(yield fetch(`${Fi(E.appConfig)}/${T.token}`,We)).json()}catch(xt){throw Bn.create("token-update-failed",{errorInfo:null===(k=xt)||void 0===k?void 0:k.toString()})}if(dt.error)throw Bn.create("token-update-failed",{errorInfo:dt.error.message});if(!dt.token)throw Bn.create("token-update-no-token");return dt.token})).apply(this,arguments)}function fr(E,T){return Vo.apply(this,arguments)}function Vo(){return(Vo=(0,P.Z)(function*(E,T){var k;const Oe={method:"DELETE",headers:yield ei(E)};try{const dt=yield(yield fetch(`${Fi(E.appConfig)}/${T}`,Oe)).json();if(dt.error)throw Bn.create("token-unsubscribe-failed",{errorInfo:dt.error.message})}catch(We){throw Bn.create("token-unsubscribe-failed",{errorInfo:null===(k=We)||void 0===k?void 0:k.toString()})}})).apply(this,arguments)}function Fi({projectId:E}){return`https://fcmregistrations.googleapis.com/v1/projects/${E}/registrations`}function ei(E){return mr.apply(this,arguments)}function mr(){return(mr=(0,P.Z)(function*({appConfig:E,installations:T}){const k=yield T.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":E.apiKey,"x-goog-firebase-installations-auth":`FIS ${k}`})})).apply(this,arguments)}function rs({p256dh:E,auth:T,endpoint:k,vapidKey:ae}){const Oe={web:{endpoint:k,auth:T,p256dh:E}};return ae!==uo&&(Oe.web.applicationPubKey=ae),Oe}const mi=6048e5;function ho(E){return Ni.apply(this,arguments)}function Ni(){return(Ni=(0,P.Z)(function*(E){const T=yield is(E.swRegistration,E.vapidKey),k={vapidKey:E.vapidKey,swScope:E.swRegistration.scope,endpoint:T.endpoint,auth:be(T.getKey("auth")),p256dh:be(T.getKey("p256dh"))},ae=yield oi(E.firebaseDependencies);if(ae){if(ss(ae.subscriptionOptions,k))return Date.now()>=ae.createTime+mi?en(E,{token:ae.token,createTime:Date.now(),subscriptionOptions:k}):ae.token;try{yield fr(E.firebaseDependencies,ae.token)}catch(Oe){console.warn(Oe)}return vs(E.firebaseDependencies,k)}return vs(E.firebaseDependencies,k)})).apply(this,arguments)}function po(E){return ki.apply(this,arguments)}function ki(){return(ki=(0,P.Z)(function*(E){const T=yield oi(E.firebaseDependencies);T&&(yield fr(E.firebaseDependencies,T.token),yield si(E.firebaseDependencies));const k=yield E.swRegistration.pushManager.getSubscription();return!k||k.unsubscribe()})).apply(this,arguments)}function en(E,T){return Io.apply(this,arguments)}function Io(){return(Io=(0,P.Z)(function*(E,T){try{const k=yield Ao(E.firebaseDependencies,T),ae=Object.assign(Object.assign({},T),{token:k,createTime:Date.now()});return yield bi(E.firebaseDependencies,ae),k}catch(k){throw yield po(E),k}})).apply(this,arguments)}function vs(E,T){return go.apply(this,arguments)}function go(){return(go=(0,P.Z)(function*(E,T){const ae={token:yield qr(E,T),createTime:Date.now(),subscriptionOptions:T};return yield bi(E,ae),ae.token})).apply(this,arguments)}function is(E,T){return os.apply(this,arguments)}function os(){return(os=(0,P.Z)(function*(E,T){return(yield E.pushManager.getSubscription())||E.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Te(T)})})).apply(this,arguments)}function ss(E,T){return T.vapidKey===E.vapidKey&&T.endpoint===E.endpoint&&T.auth===E.auth&&T.p256dh===E.p256dh}function Rs(E){const T={from:E.from,collapseKey:E.collapse_key,messageId:E.fcmMessageId};return function bs(E,T){if(!T.notification)return;E.notification={};const k=T.notification.title;k&&(E.notification.title=k);const ae=T.notification.body;ae&&(E.notification.body=ae);const Oe=T.notification.image;Oe&&(E.notification.image=Oe)}(T,E),function Xe(E,T){T.data&&(E.data=T.data)}(T,E),function gn(E,T){var k,ae,Oe,We,dt;if(!(T.fcmOptions||null!==(k=T.notification)&&void 0!==k&&k.click_action))return;E.fcmOptions={};const xt=null!==(Oe=null===(ae=T.fcmOptions)||void 0===ae?void 0:ae.link)&&void 0!==Oe?Oe:null===(We=T.notification)||void 0===We?void 0:We.click_action;xt&&(E.fcmOptions.link=xt);const tn=null===(dt=T.fcmOptions)||void 0===dt?void 0:dt.analytics_label;tn&&(E.fcmOptions.analyticsLabel=tn)}(T,E),T}function Ji(E){return"object"==typeof E&&!!E&&Ai in E}function Oo(E,T){const k=[];for(let ae=0;ae<E.length;ae++)k.push(E.charAt(ae)),ae<T.length&&k.push(T.charAt(ae));return k.join("")}function Po(E){return Bn.create("missing-app-config-values",{valueName:E})}Oo("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Oo("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class mo{constructor(T,k,ae){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Oe=function Cr(E){if(!E||!E.options)throw Po("App Configuration Object");if(!E.name)throw Po("App Name");const T=["projectId","apiKey","appId","messagingSenderId"],{options:k}=E;for(const ae of T)if(!k[ae])throw Po(ae);return{appName:E.name,projectId:k.projectId,apiKey:k.apiKey,appId:k.appId,senderId:k.messagingSenderId}}(T);this.firebaseDependencies={app:T,appConfig:Oe,installations:k,analyticsProvider:ae}}_delete(){return Promise.resolve()}}function ti(E){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,P.Z)(function*(E){var T;try{E.swRegistration=yield navigator.serviceWorker.register($o,{scope:dr}),E.swRegistration.update().catch(()=>{})}catch(k){throw Bn.create("failed-service-worker-registration",{browserErrorMessage:null===(T=k)||void 0===T?void 0:T.message})}})).apply(this,arguments)}function zo(E,T){return Wo.apply(this,arguments)}function Wo(){return(Wo=(0,P.Z)(function*(E,T){if(!T&&!E.swRegistration&&(yield ti(E)),T||!E.swRegistration){if(!(T instanceof ServiceWorkerRegistration))throw Bn.create("invalid-sw-registration");E.swRegistration=T}})).apply(this,arguments)}function Es(E,T){return qi.apply(this,arguments)}function qi(){return(qi=(0,P.Z)(function*(E,T){T?E.vapidKey=T:E.vapidKey||(E.vapidKey=uo)})).apply(this,arguments)}function Nr(){return(Nr=(0,P.Z)(function*(E,T){if(!navigator)throw Bn.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Bn.create("permission-blocked");return yield Es(E,T?.vapidKey),yield zo(E,T?.serviceWorkerRegistration),ho(E)})).apply(this,arguments)}function _r(E,T,k){return ni.apply(this,arguments)}function ni(){return(ni=(0,P.Z)(function*(E,T,k){const ae=Or(T);(yield E.firebaseDependencies.analyticsProvider.get()).logEvent(ae,{message_id:k[Ai],message_name:k[fo],message_time:k[xo],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function Or(E){switch(E){case Oi.NOTIFICATION_CLICKED:return"notification_open";case Oi.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function _o(){return(_o=(0,P.Z)(function*(E,T){const k=T.data;if(!k.isFirebaseMessaging)return;E.onMessageHandler&&k.messageType===Oi.PUSH_RECEIVED&&("function"==typeof E.onMessageHandler?E.onMessageHandler(Rs(k)):E.onMessageHandler.next(Rs(k)));const ae=k.data;Ji(ae)&&"1"===ae[ns]&&(yield _r(E,k.messageType,ae))})).apply(this,arguments)}const as="@firebase/messaging",eo=E=>{const T=new mo(E.getProvider("app").getImmediate(),E.getProvider("installations-internal").getImmediate(),E.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",k=>function Ro(E,T){return _o.apply(this,arguments)}(T,k)),T},yo=E=>{const T=E.getProvider("messaging").getImmediate();return{getToken:ae=>function wr(E,T){return Nr.apply(this,arguments)}(T,ae)}};function Wi(){return Li.apply(this,arguments)}function Li(){return(Li=(0,P.Z)(function*(){try{yield(0,W.eu)()}catch{return!1}return typeof window<"u"&&(0,W.hl)()&&(0,W.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function to(){(0,Y._registerComponent)(new G.wA("messaging",eo,"PUBLIC")),(0,Y._registerComponent)(new G.wA("messaging-internal",yo,"PRIVATE")),(0,Y.registerVersion)(as,"0.9.19"),(0,Y.registerVersion)(as,"0.9.19","esm2017")}();const bo="analytics",yr="firebase_id",Ko="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Ds="https://www.googletagmanager.com/gtag/js",vr=new ee.Yd("@firebase/analytics");function Cs(E){return Promise.all(E.map(T=>T.catch(k=>k)))}function ws(E,T){const k=document.createElement("script");k.src=`${Ds}?l=${E}&id=${T}`,k.async=!0,document.head.appendChild(k)}function No(E,T,k,ae,Oe,We){return g.apply(this,arguments)}function g(){return(g=(0,P.Z)(function*(E,T,k,ae,Oe,We){const dt=ae[Oe];try{if(dt)yield T[dt];else{const tn=(yield Cs(k)).find(dn=>dn.measurementId===Oe);tn&&(yield T[tn.appId])}}catch(xt){vr.error(xt)}E("config",Oe,We)})).apply(this,arguments)}function A(E,T,k,ae,Oe){return v.apply(this,arguments)}function v(){return(v=(0,P.Z)(function*(E,T,k,ae,Oe){try{let We=[];if(Oe&&Oe.send_to){let dt=Oe.send_to;Array.isArray(dt)||(dt=[dt]);const xt=yield Cs(k);for(const tn of dt){const dn=xt.find(nn=>nn.measurementId===tn),yn=dn&&T[dn.appId];if(!yn){We=[];break}We.push(yn)}}0===We.length&&(We=Object.values(T)),yield Promise.all(We),E("event",ae,Oe||{})}catch(We){vr.error(We)}})).apply(this,arguments)}function Ve(E){const T=window.document.getElementsByTagName("script");for(const k of Object.values(T))if(k.src&&k.src.includes(Ds)&&k.src.includes(E))return k;return null}const wt=new W.LL("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.'}),pn=new class Nn{constructor(T={},k=1e3){this.throttleMetadata=T,this.intervalMillis=k}getThrottleMetadata(T){return this.throttleMetadata[T]}setThrottleMetadata(T,k){this.throttleMetadata[T]=k}deleteThrottleMetadata(T){delete this.throttleMetadata[T]}};function cr(E){return new Headers({Accept:"application/json","x-goog-api-key":E})}function $n(E){return tr.apply(this,arguments)}function tr(){return(tr=(0,P.Z)(function*(E){var T;const{appId:k,apiKey:ae}=E,Oe={method:"GET",headers:cr(ae)},We=Ko.replace("{app-id}",k),dt=yield fetch(We,Oe);if(200!==dt.status&&304!==dt.status){let xt="";try{const tn=yield dt.json();null!==(T=tn.error)&&void 0!==T&&T.message&&(xt=tn.error.message)}catch{}throw wt.create("config-fetch-failed",{httpStatus:dt.status,responseMessage:xt})}return dt.json()})).apply(this,arguments)}function yi(E){return ri.apply(this,arguments)}function ri(){return(ri=(0,P.Z)(function*(E,T=pn,k){const{appId:ae,apiKey:Oe,measurementId:We}=E.options;if(!ae)throw wt.create("no-app-id");if(!Oe){if(We)return{measurementId:We,appId:ae};throw wt.create("no-api-key")}const dt=T.getThrottleMetadata(ae)||{backoffCount:0,throttleEndTimeMillis:Date.now()},xt=new ro;return setTimeout((0,P.Z)(function*(){xt.abort()}),void 0!==k?k:6e4),Ei({appId:ae,apiKey:Oe,measurementId:We},dt,xt,T)})).apply(this,arguments)}function Ei(E,T,k){return sr.apply(this,arguments)}function sr(){return(sr=(0,P.Z)(function*(E,{throttleEndTimeMillis:T,backoffCount:k},ae,Oe=pn){var We,dt;const{appId:xt,measurementId:tn}=E;try{yield ci(ae,T)}catch(dn){if(tn)return vr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${tn} provided in the "measurementId" field in the local Firebase config. [${null===(We=dn)||void 0===We?void 0:We.message}]`),{appId:xt,measurementId:tn};throw dn}try{const dn=yield $n(E);return Oe.deleteThrottleMetadata(xt),dn}catch(dn){const yn=dn;if(!Eo(yn)){if(Oe.deleteThrottleMetadata(xt),tn)return vr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${tn} provided in the "measurementId" field in the local Firebase config. [${yn?.message}]`),{appId:xt,measurementId:tn};throw dn}const nn=503===Number(null===(dt=yn?.customData)||void 0===dt?void 0:dt.httpStatus)?(0,W.$s)(k,Oe.intervalMillis,30):(0,W.$s)(k,Oe.intervalMillis),wi={throttleEndTimeMillis:Date.now()+nn,backoffCount:k+1};return Oe.setThrottleMetadata(xt,wi),vr.debug(`Calling attemptFetch again in ${nn} millis`),Ei(E,wi,ae,Oe)}})).apply(this,arguments)}function ci(E,T){return new Promise((k,ae)=>{const Oe=Math.max(T-Date.now(),0),We=setTimeout(k,Oe);E.addEventListener(()=>{clearTimeout(We),ae(wt.create("fetch-throttle",{throttleEndTimeMillis:T}))})})}function Eo(E){if(!(E instanceof W.ZR&&E.customData))return!1;const T=Number(E.customData.httpStatus);return 429===T||500===T||503===T||504===T}class ro{constructor(){this.listeners=[]}addEventListener(T){this.listeners.push(T)}abort(){this.listeners.forEach(T=>T())}}let Ts,Jo;function Zo(){return(Zo=(0,P.Z)(function*(E,T,k,ae,Oe){if(Oe&&Oe.global)E("event",k,ae);else{const We=yield T;E("event",k,Object.assign(Object.assign({},ae),{send_to:We}))}})).apply(this,arguments)}function Ms(E){Jo=E}function kr(E){Ts=E}function oo(){return D.apply(this,arguments)}function D(){return(D=(0,P.Z)(function*(){var E;if(!(0,W.hl)())return vr.warn(wt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,W.eu)()}catch(T){return vr.warn(wt.create("indexeddb-unavailable",{errorInfo:null===(E=T)||void 0===E?void 0:E.toString()}).message),!1}return!0})).apply(this,arguments)}function l(){return(l=(0,P.Z)(function*(E,T,k,ae,Oe,We,dt){var xt;const tn=yi(E);tn.then(Bi=>{k[Bi.measurementId]=Bi.appId,E.options.measurementId&&Bi.measurementId!==E.options.measurementId&&vr.warn(`The measurement ID in the local Firebase config (${E.options.measurementId}) does not match the measurement ID fetched from the server (${Bi.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(Bi=>vr.error(Bi)),T.push(tn);const dn=oo().then(Bi=>{if(Bi)return ae.getId()}),[yn,nn]=yield Promise.all([tn,dn]);Ve(We)||ws(We,yn.measurementId),Jo&&(Oe("consent","default",Jo),Ms(void 0)),Oe("js",new Date);const wi=null!==(xt=dt?.config)&&void 0!==xt?xt:{};return wi.origin="firebase",wi.update=!0,null!=nn&&(wi[yr]=nn),Oe("config",yn.measurementId,wi),Ts&&(Oe("set",Ts),kr(void 0)),yn.measurementId})).apply(this,arguments)}class y{constructor(T){this.app=T}_delete(){return delete O[this.app.options.appId],Promise.resolve()}}let O={},z=[];const fe={};let nt,Et,ue="dataLayer",St=!1;function Kt(E,T,k){!function cn(){const E=[];if((0,W.ru)()&&E.push("This is a browser extension environment."),(0,W.zI)()||E.push("Cookies are not available."),E.length>0){const T=E.map((ae,Oe)=>`(${Oe+1}) ${ae}`).join(" "),k=wt.create("invalid-analytics-context",{errorInfo:T});vr.warn(k.message)}}();const ae=E.options.appId;if(!ae)throw wt.create("no-app-id");if(!E.options.apiKey){if(!E.options.measurementId)throw wt.create("no-api-key");vr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${E.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=O[ae])throw wt.create("already-exists",{id:ae});if(!St){!function ks(E){let T=[];Array.isArray(window[E])?T=window[E]:window[E]=T}(ue);const{wrappedGtag:We,gtagCore:dt}=function re(E,T,k,ae,Oe){let We=function(...dt){window[ae].push(arguments)};return window[Oe]&&"function"==typeof window[Oe]&&(We=window[Oe]),window[Oe]=function R(E,T,k,ae){function We(){return(We=(0,P.Z)(function*(dt,xt,tn){try{"event"===dt?yield A(E,T,k,xt,tn):"config"===dt?yield No(E,T,k,ae,xt,tn):"consent"===dt?E("consent","update",tn):E("set",xt)}catch(dn){vr.error(dn)}})).apply(this,arguments)}return function Oe(dt,xt,tn){return We.apply(this,arguments)}}(We,E,T,k),{gtagCore:We,wrappedGtag:window[Oe]}}(O,z,fe,ue,"gtag");Et=We,nt=dt,St=!0}return O[ae]=function a(E,T,k,ae,Oe,We,dt){return l.apply(this,arguments)}(E,z,fe,T,nt,ue,k),new y(E)}function zn(){return Jn.apply(this,arguments)}function Jn(){return(Jn=(0,P.Z)(function*(){if((0,W.ru)()||!(0,W.zI)()||!(0,W.hl)())return!1;try{return yield(0,W.eu)()}catch{return!1}})).apply(this,arguments)}const xn="@firebase/analytics";!function Ss(){(0,Y._registerComponent)(new G.wA(bo,(T,{options:k})=>Kt(T.getProvider("app").getImmediate(),T.getProvider("installations-internal").getImmediate(),k),"PUBLIC")),(0,Y._registerComponent)(new G.wA("analytics-internal",function E(T){try{const k=T.getProvider(bo).getImmediate();return{logEvent:(ae,Oe,We)=>function so(E,T,k,ae){E=(0,W.m9)(E),function Yo(E,T,k,ae,Oe){return Zo.apply(this,arguments)}(Et,O[E.app.options.appId],T,k,ae).catch(Oe=>vr.error(Oe))}(k,ae,Oe,We)}}catch(k){throw wt.create("interop-component-reg-failed",{reason:k})}},"PRIVATE")),(0,Y.registerVersion)(xn,"0.8.3"),(0,Y.registerVersion)(xn,"0.8.3","esm2017")}();var wo=_(4408),Ws=_(7565);const Yt=new class Ht extends Ws.v{}(class zs extends wo.o{constructor(T,k){super(T,k),this.scheduler=T,this.work=k}schedule(T,k=0){return k>0?super.schedule(T,k):(this.delay=k,this.state=T,this.scheduler.flush(this),this)}execute(T,k){return k>0||this.closed?super.execute(T,k):this._execute(T,k)}requestAsyncId(T,k,ae=0){return null!=ae&&ae>0||null==ae&&this.delay>0?super.requestAsyncId(T,k,ae):T.flush(this)}});var Rn=_(4986),Lr=_(8505),Wn=_(9468),Hr=_(5363);const vi=new s.GfV("7.5.0"),ar="__angularfire_symbol__analyticsIsSupportedValue",f="__angularfire_symbol__analyticsIsSupported",h="__angularfire_symbol__remoteConfigIsSupportedValue",c="__angularfire_symbol__remoteConfigIsSupported",m="__angularfire_symbol__messagingIsSupportedValue",C="__angularfire_symbol__messagingIsSupported";function Tt(E,T,k){if(T){if(1===T.length)return T[0];const We=T.filter(dt=>dt.app===k);if(1===We.length)return We[0]}return k.container.getProvider(E).getImmediate({optional:!0})}globalThis[f]||(globalThis[f]=zn().then(E=>globalThis[ar]=E).catch(()=>globalThis[ar]=!1)),globalThis[C]||(globalThis[C]=Wi().then(E=>globalThis[m]=E).catch(()=>globalThis[m]=!1)),globalThis[c]||(globalThis[c]=xi().then(E=>globalThis[h]=E).catch(()=>globalThis[h]=!1));const kt=(E,T)=>{const k=T?[T]:(0,d.C6)(),ae=[];return k.forEach(Oe=>{Oe.container.getProvider(E).instances.forEach(dt=>{ae.includes(dt)||ae.push(dt)})}),ae};function Cn(){}class jr{constructor(T,k=Yt){this.zone=T,this.delegate=k}now(){return this.delegate.now()}schedule(T,k,ae){const Oe=this.zone;return this.delegate.schedule(function(dt){Oe.runGuarded(()=>{T.apply(this,[dt])})},k,ae)}}class To{constructor(T){this.zone=T,this.task=null}call(T,k){const ae=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Cn,{},Cn,Cn)),k.pipe((0,Lr.b)({next:ae,complete:ae,error:ae})).subscribe(T).add(ae)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Mo=(()=>{class E{constructor(k){this.ngZone=k,this.outsideAngular=k.runOutsideAngular(()=>new jr(Zone.current)),this.insideAngular=k.run(()=>new jr(Zone.current,Rn.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return E.\u0275fac=function(k){return new(k||E)(s.LFG(s.R0b))},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();function Ci(){const E=globalThis.\u0275AngularFireScheduler;if(!E)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return E}function ia(E){return Ci(),function oa(E){return function(k){return(k=k.lift(new To(E.ngZone))).pipe((0,Wn.R)(E.outsideAngular),(0,Hr.Q)(E.insideAngular))}}(Ci())(E)}},2090:(st,ye,_)=>{_.d(ye,{$s:()=>N,BH:()=>Qt,L:()=>J,LL:()=>it,Pz:()=>Wt,UG:()=>ke,US:()=>G,ZB:()=>Z,ZR:()=>Ue,aH:()=>_t,b$:()=>Ne,eu:()=>me,hl:()=>ce,jU:()=>ze,m9:()=>we,ne:()=>Hn,pd:()=>bn,r3:()=>Mt,ru:()=>Se,tV:()=>X,uI:()=>ve,vZ:()=>qt,w1:()=>Ee,xO:()=>an,xb:()=>Pt,z$:()=>Ie,zI:()=>se,zd:()=>Un});const Y=function(B){const Q=[];let pe=0;for(let $e=0;$e<B.length;$e++){let Me=B.charCodeAt($e);Me<128?Q[pe++]=Me:Me<2048?(Q[pe++]=Me>>6|192,Q[pe++]=63&Me|128):55296==(64512&Me)&&$e+1<B.length&&56320==(64512&B.charCodeAt($e+1))?(Me=65536+((1023&Me)<<10)+(1023&B.charCodeAt(++$e)),Q[pe++]=Me>>18|240,Q[pe++]=Me>>12&63|128,Q[pe++]=Me>>6&63|128,Q[pe++]=63&Me|128):(Q[pe++]=Me>>12|224,Q[pe++]=Me>>6&63|128,Q[pe++]=63&Me|128)}return Q},G={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(B,Q){if(!Array.isArray(B))throw Error("encodeByteArray takes an array as a parameter");this.init_();const pe=Q?this.byteToCharMapWebSafe_:this.byteToCharMap_,$e=[];for(let Me=0;Me<B.length;Me+=3){const ut=B[Me],Vt=Me+1<B.length,Gt=Vt?B[Me+1]:0,De=Me+2<B.length,I=De?B[Me+2]:0;let $=(15&Gt)<<2|I>>6,de=63&I;De||(de=64,Vt||($=64)),$e.push(pe[ut>>2],pe[(3&ut)<<4|Gt>>4],pe[$],pe[de])}return $e.join("")},encodeString(B,Q){return this.HAS_NATIVE_SUPPORT&&!Q?btoa(B):this.encodeByteArray(Y(B),Q)},decodeString(B,Q){return this.HAS_NATIVE_SUPPORT&&!Q?atob(B):function(B){const Q=[];let pe=0,$e=0;for(;pe<B.length;){const Me=B[pe++];if(Me<128)Q[$e++]=String.fromCharCode(Me);else if(Me>191&&Me<224){const ut=B[pe++];Q[$e++]=String.fromCharCode((31&Me)<<6|63&ut)}else if(Me>239&&Me<365){const De=((7&Me)<<18|(63&B[pe++])<<12|(63&B[pe++])<<6|63&B[pe++])-65536;Q[$e++]=String.fromCharCode(55296+(De>>10)),Q[$e++]=String.fromCharCode(56320+(1023&De))}else{const ut=B[pe++],Vt=B[pe++];Q[$e++]=String.fromCharCode((15&Me)<<12|(63&ut)<<6|63&Vt)}}return Q.join("")}(this.decodeStringToByteArray(B,Q))},decodeStringToByteArray(B,Q){this.init_();const pe=Q?this.charToByteMapWebSafe_:this.charToByteMap_,$e=[];for(let Me=0;Me<B.length;){const ut=pe[B.charAt(Me++)],Gt=Me<B.length?pe[B.charAt(Me)]:0;++Me;const I=Me<B.length?pe[B.charAt(Me)]:64;++Me;const S=Me<B.length?pe[B.charAt(Me)]:64;if(++Me,null==ut||null==Gt||null==I||null==S)throw Error();$e.push(ut<<2|Gt>>4),64!==I&&($e.push(Gt<<4&240|I>>2),64!==S&&$e.push(I<<6&192|S))}return $e},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let B=0;B<this.ENCODED_VALS.length;B++)this.byteToCharMap_[B]=this.ENCODED_VALS.charAt(B),this.charToByteMap_[this.byteToCharMap_[B]]=B,this.byteToCharMapWebSafe_[B]=this.ENCODED_VALS_WEBSAFE.charAt(B),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[B]]=B,B>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(B)]=B,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(B)]=B)}}},J=function(B){return function(B){const Q=Y(B);return G.encodeByteArray(Q,!0)}(B).replace(/\./g,"")},X=function(B){try{return G.decodeString(B,!0)}catch(Q){console.error("base64Decode failed: ",Q)}return null};function Z(B,Q){if(!(Q instanceof Object))return Q;switch(Q.constructor){case Date:return new Date(Q.getTime());case Object:void 0===B&&(B={});break;case Array:B=[];break;default:return Q}for(const pe in Q)!Q.hasOwnProperty(pe)||!K(pe)||(B[pe]=Z(B[pe],Q[pe]));return B}function K(B){return"__proto__"!==B}function Ie(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function ve(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ie())}function ke(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function ze(){return"object"==typeof self&&self.self===self}function Se(){const B="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof B&&void 0!==B.id}function Ne(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Ee(){const B=Ie();return B.indexOf("MSIE ")>=0||B.indexOf("Trident/")>=0}function ce(){return"object"==typeof indexedDB}function me(){return new Promise((B,Q)=>{try{let pe=!0;const $e="validate-browser-context-for-indexeddb-analytics-module",Me=self.indexedDB.open($e);Me.onsuccess=()=>{Me.result.close(),pe||self.indexedDB.deleteDatabase($e),B(!0)},Me.onupgradeneeded=()=>{pe=!1},Me.onerror=()=>{var ut;Q((null===(ut=Me.error)||void 0===ut?void 0:ut.message)||"")}}catch(pe){Q(pe)}})}function se(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const _e=()=>{try{return function ge(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const B=process.env.__FIREBASE_DEFAULTS__;return B?JSON.parse(B):void 0})()||(()=>{if(typeof document>"u")return;let B;try{B=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Q=B&&X(B[1]);return Q&&JSON.parse(Q)})()}catch(B){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${B}`)}},_t=()=>{var B;return null===(B=_e())||void 0===B?void 0:B.config},Wt=B=>{var Q;return null===(Q=_e())||void 0===Q?void 0:Q[`_${B}`]};class Qt{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Q,pe)=>{this.resolve=Q,this.reject=pe})}wrapCallback(Q){return(pe,$e)=>{pe?this.reject(pe):this.resolve($e),"function"==typeof Q&&(this.promise.catch(()=>{}),1===Q.length?Q(pe):Q(pe,$e))}}}class Ue extends Error{constructor(Q,pe,$e){super(pe),this.code=Q,this.customData=$e,this.name="FirebaseError",Object.setPrototypeOf(this,Ue.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,it.prototype.create)}}class it{constructor(Q,pe,$e){this.service=Q,this.serviceName=pe,this.errors=$e}create(Q,...pe){const $e=pe[0]||{},Me=`${this.service}/${Q}`,ut=this.errors[Q],Vt=ut?function he(B,Q){return B.replace(Le,(pe,$e)=>{const Me=Q[$e];return null!=Me?String(Me):`<${$e}?>`})}(ut,$e):"Error";return new Ue(Me,`${this.serviceName}: ${Vt} (${Me}).`,$e)}}const Le=/\{\$([^}]+)}/g;function Mt(B,Q){return Object.prototype.hasOwnProperty.call(B,Q)}function Pt(B){for(const Q in B)if(Object.prototype.hasOwnProperty.call(B,Q))return!1;return!0}function qt(B,Q){if(B===Q)return!0;const pe=Object.keys(B),$e=Object.keys(Q);for(const Me of pe){if(!$e.includes(Me))return!1;const ut=B[Me],Vt=Q[Me];if(_n(ut)&&_n(Vt)){if(!qt(ut,Vt))return!1}else if(ut!==Vt)return!1}for(const Me of $e)if(!pe.includes(Me))return!1;return!0}function _n(B){return null!==B&&"object"==typeof B}function an(B){const Q=[];for(const[pe,$e]of Object.entries(B))Array.isArray($e)?$e.forEach(Me=>{Q.push(encodeURIComponent(pe)+"="+encodeURIComponent(Me))}):Q.push(encodeURIComponent(pe)+"="+encodeURIComponent($e));return Q.length?"&"+Q.join("&"):""}function Un(B){const Q={};return B.replace(/^\?/,"").split("&").forEach($e=>{if($e){const[Me,ut]=$e.split("=");Q[decodeURIComponent(Me)]=decodeURIComponent(ut)}}),Q}function bn(B){const Q=B.indexOf("?");if(!Q)return"";const pe=B.indexOf("#",Q);return B.substring(Q,pe>0?pe:void 0)}function Hn(B,Q){const pe=new Bt(B,Q);return pe.subscribe.bind(pe)}class Bt{constructor(Q,pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=pe,this.task.then(()=>{Q(this)}).catch($e=>{this.error($e)})}next(Q){this.forEachObserver(pe=>{pe.next(Q)})}error(Q){this.forEachObserver(pe=>{pe.error(Q)}),this.close(Q)}complete(){this.forEachObserver(Q=>{Q.complete()}),this.close()}subscribe(Q,pe,$e){let Me;if(void 0===Q&&void 0===pe&&void 0===$e)throw new Error("Missing Observer.");Me=function gt(B,Q){if("object"!=typeof B||null===B)return!1;for(const pe of Q)if(pe in B&&"function"==typeof B[pe])return!0;return!1}(Q,["next","error","complete"])?Q:{next:Q,error:pe,complete:$e},void 0===Me.next&&(Me.next=Lt),void 0===Me.error&&(Me.error=Lt),void 0===Me.complete&&(Me.complete=Lt);const ut=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?Me.error(this.finalError):Me.complete()}catch{}}),this.observers.push(Me),ut}unsubscribeOne(Q){void 0===this.observers||void 0===this.observers[Q]||(delete this.observers[Q],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Q){if(!this.finalized)for(let pe=0;pe<this.observers.length;pe++)this.sendOne(pe,Q)}sendOne(Q,pe){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[Q])try{pe(this.observers[Q])}catch($e){typeof console<"u"&&console.error&&console.error($e)}})}close(Q){this.finalized||(this.finalized=!0,void 0!==Q&&(this.finalError=Q),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Lt(){}function N(B,Q=1e3,pe=2){const $e=Q*Math.pow(pe,B),Me=Math.round(.5*$e*(Math.random()-.5)*2);return Math.min(144e5,$e+Me)}function we(B){return B&&B._delegate?B._delegate:B}},501:(st,ye,_)=>{_.d(ye,{e:()=>K});var s=_(8505),d=_(8996),P=_(4004),Y=_(3900),W=_(3942),G=_(1889),ee=_(4650),J=_(1318),X=_(8002),H=_(7899),Z=_(4954);class K{constructor(ve,ke,ze,Se){this.httpService=ve,this.tokenDecodeService=ke,this.afAuth=ze,this.ngxPermission=Se}login(ve){return this.httpService.post("/api/token/Login",ve).pipe((0,s.b)(ke=>{this.setLocalStorage(ke,ve.Host,ve.Username),this.loadPermissions()}))}loginWithGoogle(ve,ke){ve.preventDefault();const ze=new W.Z.auth.GoogleAuthProvider;return ze.setCustomParameters({prompt:"select_account"}),(0,d.D)(this.afAuth.signInWithPopup(ze)).pipe((0,P.U)(Se=>Se.credential),(0,P.U)(Se=>Se.idToken),(0,Y.w)(Se=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:Se,Host:ke}))),(0,s.b)(Se=>{this.setLocalStorage(Se,ke,null),this.loadPermissions()}))}setLocalStorage(ve,ke,ze){localStorage.setItem("user",JSON.stringify(ve)),localStorage.setItem("Authorization",JSON.stringify({Host:ke,username:ze})),localStorage.setItem("Intercom",JSON.stringify(ve.IntercomWidget))}loadPermissions(){this.ngxPermission.loadPermissions([]);let ve=localStorage.getItem("user");if(G.g.IsNotEmpty(ve)){let ke=this.tokenDecodeService.GetRoles();this.ngxPermission.loadPermissions(ke)}}logout(){this.clearLocalStorage(),this.ngxPermission.flushPermissions()}isActiveToken(){let ve=JSON.parse(window.localStorage.getItem("user")),ke=new Date;return null!=ve&&(ke<new Date(ve.Token.expiredAt)||(this.clearLocalStorage(),!1))}getDomain(){if(!this.domain){const ve=localStorage.getItem("Authorization");this.domain="https://"+JSON.parse(ve).Host}return this.domain}clearLocalStorage(){localStorage.removeItem("Intercom"),localStorage.removeItem("Authorization"),localStorage.removeItem("user")}}K.\u0275fac=function(ve){return new(ve||K)(ee.LFG(J.O),ee.LFG(X.e),ee.LFG(H.zQ),ee.LFG(Z.YI))},K.\u0275prov=ee.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})},1889:(st,ye,_)=>{_.d(ye,{g:()=>P});var s=_(4461),d=_(9694);class P{static IsNotEmpty(W){return""!=W&&W!=P.GuidEMpty&&null!=W&&null!=W}static IsEmpty(W){return""==W||null==W||null==W||W==P.GuidEMpty}static getChannelLogoByTypeId(W){let G;switch(W){case d.x.Tokopedia:G=s.$.TOKOPEDIA;break;case d.x.ShopeeV2:G=s.$.SHOOPE;break;case d.x.WooCommerce:G=s.$.WOOCOMMERCE;break;case d.x.Lazada:G=s.$.LAZADA;break;case d.x.Tiktok:G=s.$.TIKTOK;break;case d.x.KalCare:G=s.$.KALCARE}return G}static getChannelLogoByName(W=""){let G;switch(W=W.toLowerCase()){case"tokopedia":G=s.$.TOKOPEDIA;break;case"shoppe":G=s.$.SHOOPE;break;case"woocommerce":G=s.$.WOOCOMMERCE;break;case"tiktok":G=s.$.TIKTOK;break;case"lazada":G=s.$.LAZADA;break;case"kalCare":G=s.$.KALCARE}return G}static assignChannelLogo(W){return W.map(G=>(G.logo=this.getChannelLogoByTypeId(G.TypeID),G))}static getCssChannelColor(W){let G;switch(W){case d.x.ShopeeV2:G="#ee4d2d";break;case d.x.Tokopedia:G="var(--G500,#03AC0E)";break;case d.x.Lazada:G="#FF00B2";break;case d.x.Tiktok:G="black";break;case d.x.WooCommerce:G="#674399";break;case d.x.KalCare:G="rgb(128, 188, 0)"}return G}static getDaysDiff(W,G){return(G.getTime()-W.getTime())/864e5}static addDays(W,G){const ee=new Date(Number(W));return ee.setDate(W.getDate()-G),ee}static isValidDate(W){return W instanceof Date&&!isNaN(W)}static getImageInfo(W){return new Promise((G,ee)=>{let J=new Image;J.src=W,J.decode().then(()=>{G({img:W,height:J.height,width:J.width})}).catch(()=>{ee(new Error(`Image load error for ${W}`))})})}static formatTitleFromDate(W,G){let ee=null;const J=new Date(W),X=new Date(G);return J.getDate()!=X.getDate()&&(ee="dd"),J.getMonth()!=X.getMonth()&&(ee="dd MMM"),J.getFullYear()!=X.getFullYear()&&(ee="dd MMM yyyy"),ee}static openDownloadFile(W,G){var ee=window.URL.createObjectURL(W),J=document.createElement("a");J.href=ee,J.download=G,J.click()}static compare(W,G,ee){return(W<G?-1:1)*(ee?1:-1)}}P.GuidEMpty="00000000-0000-0000-0000-000000000000",P.MinDate="0001-01-01T00:00:00"},4461:(st,ye,_)=>{_.d(ye,{$:()=>s});var s=(()=>{return(d=s||(s={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",d.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",d.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",d.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",d.LAZADA="//res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png",d.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",s;var d})()},9694:(st,ye,_)=>{_.d(ye,{x:()=>s});var s=(()=>{return(d=s||(s={}))[d.Shopee=0]="Shopee",d[d.Tokopedia=1]="Tokopedia",d[d.WooCommerce=2]="WooCommerce",d[d.None=3]="None",d[d.KalCare=4]="KalCare",d[d.ShopeeV2=5]="ShopeeV2",d[d.Tiktok=6]="Tiktok",d[d.Lazada=7]="Lazada",s;var d})()},1318:(st,ye,_)=>{_.d(ye,{O:()=>Se});var s=_(515),d=_(9751),P=_(262),Y=_(4986),W=_(1165),G=_(4482),ee=_(8421),J=_(3888),X=_(5403),H=_(9672);const Z=(0,J.d)(Ne=>function(Ee=null){Ne(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Ee});function Ie(Ne){throw new Z(Ne)}var ve=_(4650),ke=_(529),ze=_(7185);class Se{constructor(Pe,Ee){this.http=Pe,this.toastr=Ee}get(Pe){return this.http.get(Pe).pipe((0,P.K)(Ee=>{let Ce=this.errorMessageHandling(Ee);return this.toastr.error(""!=Ce.message?Ce.message:"An unknown error has occured!",Ce.header),s.E}))}post(Pe,Ee,Ce={},j=1e5){return new d.y(le=>{this.http.post(Pe,Ee,Ce).pipe(function K(Ne,Pe){const{first:Ee,each:Ce,with:j=Ie,scheduler:le=Pe??Y.z,meta:ce=null}=(0,W.q)(Ne)?{first:Ne}:"number"==typeof Ne?{each:Ne}:Ne;if(null==Ee&&null==Ce)throw new TypeError("No timeout provided.");return(0,G.e)((me,se)=>{let ge,q,oe=null,Ae=0;const _e=Ke=>{q=(0,H.f)(se,le,()=>{try{ge.unsubscribe(),(0,ee.Xf)(j({meta:ce,lastValue:oe,seen:Ae})).subscribe(se)}catch(Je){se.error(Je)}},Ke)};ge=me.subscribe((0,X.x)(se,Ke=>{q?.unsubscribe(),Ae++,se.next(oe=Ke),Ce>0&&_e(Ce)},void 0,void 0,()=>{q?.closed||q?.unsubscribe(),oe=null})),!Ae&&_e(null!=Ee?"number"==typeof Ee?Ee:+Ee-le.now():Ce)})}(j)).subscribe({next:ce=>{le.next(ce),le.complete()},error:ce=>{if(200==ce.status)le.next(ce.error.text),le.complete();else{if(!this.unauthorizedErrorHandling(ce)&&!Array.isArray(ce?.error?.Message)){let se=this.errorMessageHandling(ce);this.toastr.error(""!=se.message?se.message:"An unknown error has occured!",se.header,{enableHtml:!0})}le.error(ce)}}})})}unauthorizedErrorHandling(Pe){let Ee=!1;return 401==Pe.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Ee=!0),Ee}errorMessageHandling(Pe){let Ee="API Error",Ce="Exception Message";return Pe.error?(Ee="API Error - "+Pe.status,Pe.error.Message&&(Ce=-1!=Pe.error.Message.indexOf("Message")?JSON.parse(Pe.error.Message).Message:Pe.error.Message)):Pe.message&&(Ee="API Error - "+Pe.name,Ce=Pe.message),{header:Ee,message:Ce}}}Se.\u0275fac=function(Pe){return new(Pe||Se)(ve.LFG(ke.eN),ve.LFG(ze._W))},Se.\u0275prov=ve.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"})},8002:(st,ye,_)=>{_.d(ye,{e:()=>d});var s=_(4650);class d{constructor(){}getParseToken(){let Y=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(Y.Token.access_token)}GetRoles(){return this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"]}ParseToken(Y){try{const G=Y.split(".")[0].replace("-","+").replace("_","/"),ee=JSON.parse(window.atob(G)),X=Y.split(".")[1].replace("-","+").replace("_","/"),H=JSON.parse(window.atob(X));return H.header=ee,H}catch{return!1}}}d.\u0275fac=function(Y){return new(Y||d)},d.\u0275prov=s.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"})},2340:(st,ye,_)=>{_.d(ye,{N:()=>s});const s={production:!0,version:"2.8.5",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"}}},5059:(st,ye,_)=>{var s=_(1481),d=_(4650),P=_(529),Y=_(4707);function W(D,a){return(l,y)=>!D.call(a,l,y)}var G=_(9300),ee=_(8421),X=_(6451),H=_(2805),Z=_(8746),K=_(3900),Ie=_(4482),ve=_(5032),ke=_(5403);function ze(D){return(0,Ie.e)((a,l)=>{let y=!1,O=null,z=null;const fe=()=>{if(z?.unsubscribe(),z=null,y){y=!1;const ue=O;O=null,l.next(ue)}};a.subscribe((0,ke.x)(l,ue=>{z?.unsubscribe(),y=!0,O=ue,z=(0,ke.x)(l,fe,ve.Z),(0,ee.Xf)(D(ue)).subscribe(z)},()=>{fe(),l.complete()},void 0,()=>{O=z=null}))})}var Se=_(1884),Ne=_(8505),Pe=_(6895);function Ee(D,a){1&D&&d.GkF(0)}function Ce(D,a){if(1&D&&d._UZ(0,"sk-cube-grid",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function j(D,a){if(1&D&&d._UZ(0,"sk-chasing-dots",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function le(D,a){if(1&D&&d._UZ(0,"sk-double-bounce",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function ce(D,a){if(1&D&&d._UZ(0,"sk-rotating-plane",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function me(D,a){if(1&D&&d._UZ(0,"sk-spinner-pulse",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function se(D,a){if(1&D&&d._UZ(0,"sk-three-bounce",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function ge(D,a){if(1&D&&d._UZ(0,"sk-wandering-cubes",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}function q(D,a){if(1&D&&d._UZ(0,"sk-wave",4),2&D){const l=d.oxw(2);d.Q6J("backgroundColor",l.backgroundColor)}}const oe=function(D){return{"background-color":D}};function Ae(D,a){if(1&D&&(d.TgZ(0,"div",1),d.YNc(1,Ee,1,0,"ng-container",2),d.YNc(2,Ce,1,1,"sk-cube-grid",3),d.YNc(3,j,1,1,"sk-chasing-dots",3),d.YNc(4,le,1,1,"sk-double-bounce",3),d.YNc(5,ce,1,1,"sk-rotating-plane",3),d.YNc(6,me,1,1,"sk-spinner-pulse",3),d.YNc(7,se,1,1,"sk-three-bounce",3),d.YNc(8,ge,1,1,"sk-wandering-cubes",3),d.YNc(9,q,1,1,"sk-wave",3),d.qZA()),2&D){const l=d.oxw();d.Udp("opacity",l.opacity),d.ekj("backdrop",l.backdrop),d.Q6J("ngStyle",d.VKq(14,oe,l.backdrop?l.backdropBackgroundColor:"transparent")),d.xp6(1),d.Q6J("ngComponentOutlet",l.entryComponent),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skCubeGrid),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skChasingDots),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skDoubleBounce),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skRotatingPlane),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skSpinnerPulse),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skThreeBounce),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skWanderingCubes),d.xp6(1),d.Q6J("ngIf",l.spinner===l.spinkit.skWave)}}let _e=(()=>{class D{}return D.\u0275fac=function(l){return new(l||D)},D.\u0275dir=d.lG2({type:D,inputs:{backgroundColor:"backgroundColor"}}),D})(),Ke=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-chasing-dots"]],features:[d.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(l,y){1&l&&(d.TgZ(0,"div",0),d._UZ(1,"div",1)(2,"div",2),d.qZA()),2&l&&(d.ekj("colored",!y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),D})(),Je=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-cube-grid"]],features:[d.qOj],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(l,y){1&l&&(d.TgZ(0,"div",0),d._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),d.qZA()),2&l&&(d.ekj("colored",!y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),D})(),_t=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-double-bounce"]],features:[d.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(l,y){1&l&&(d.TgZ(0,"div",0),d._UZ(1,"div",1)(2,"div",2),d.qZA()),2&l&&(d.ekj("colored",!y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),D})(),Wt=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-rotating-plane"]],features:[d.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(l,y){1&l&&d._UZ(0,"div",0),2&l&&d.Udp("background-color",y.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),D})(),Qt=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-spinner-pulse"]],features:[d.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(l,y){1&l&&d._UZ(0,"div",0),2&l&&d.Udp("background-color",y.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),D})(),Rt=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-three-bounce"]],features:[d.qOj],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(l,y){1&l&&(d.TgZ(0,"div",0),d._UZ(1,"div",1)(2,"div",2)(3,"div",3),d.qZA()),2&l&&(d.ekj("colored",!y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),D})(),Ot=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-wandering-cubes"]],features:[d.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(l,y){1&l&&(d.TgZ(0,"div",0),d._UZ(1,"div",1)(2,"div",2),d.qZA()),2&l&&(d.ekj("colored",!y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),D})(),Ue=(()=>{class D extends _e{}return D.\u0275fac=function(){let a;return function(y){return(a||(a=d.n5z(D)))(y||D)}}(),D.\u0275cmp=d.Xpm({type:D,selectors:[["sk-wave"]],features:[d.qOj],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(l,y){1&l&&(d.TgZ(0,"div",0),d._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),d.qZA()),2&l&&(d.ekj("colored",!y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor),d.xp6(1),d.Udp("background-color",y.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),D})();const it={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};let Le=(()=>{class D{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Y.t(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(l){this._filteredMethods=l}set filteredHeaders(l){this._filteredHeaders=l}set forceByPass(l){this._forceByPass=l}shouldBypassUrl(l){return this._filteredUrlPatterns.some(y=>y.test(l))}shouldBypassMethod(l){return this._filteredMethods.some(y=>y.toUpperCase()===l.method.toUpperCase())}shouldBypassHeader(l){return this._filteredHeaders.some(y=>l.headers.has(y))}shouldBypass(l){return this._forceByPass||this.shouldBypassUrl(l.urlWithParams)||this.shouldBypassMethod(l)||this.shouldBypassHeader(l)}intercept(l,y){const O=this.shouldBypass(l);return O||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),y.handle(l).pipe((0,Z.x)(()=>{O||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return D.\u0275fac=function(l){return new(l||D)},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const ct=[{provide:P.TP,useExisting:Le,multi:!0}];let jt=(()=>{class D{constructor(l){this.pendingRequestsInterceptor=l,this._visibility$=new Y.t(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return D.\u0275fac=function(l){return new(l||D)(d.LFG(Le))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),Ye=(()=>{class D{constructor(l,y){this.pendingRequestsInterceptor=l,this.spinnerVisibility=y,this.spinkit=it,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=it.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[l,y]=function J(D,a,l){return[(0,G.h)(a,l)((0,ee.Xf)(D)),(0,G.h)(W(a,l))((0,ee.Xf)(D))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,O=>O);this.isVisible$=(0,X.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,K.w)(()=>l.pipe(ze(()=>(0,H.H)(this.debounceDelay))))),l.pipe((0,K.w)(()=>y.pipe(ze(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Se.x)(),(0,Ne.b)(O=>this.updateExpirationDelay(O)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(l=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(l)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(l){l&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,H.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return D.\u0275fac=function(l){return new(l||D)(d.Y36(Le),d.Y36(jt))},D.\u0275cmp=d.Xpm({type:D,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(l,y){1&l&&(d.YNc(0,Ae,10,16,"div",0),d.ALo(1,"async")),2&l&&d.Q6J("ngIf",d.lcZ(1,1,y.isVisible$))},dependencies:[Pe.$G,Pe.O5,Pe.PC,Je,Ke,_t,Wt,Qt,Rt,Ot,Ue,Pe.Ov],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),D})(),At=(()=>{class D{static forRoot(){return{ngModule:D,providers:[ct]}}}return D.\u0275fac=function(l){return new(l||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({imports:[Pe.ez]}),D})();var ne=_(1318),Qe=_(8002),rt=_(284);const Mt=[{path:"",loadChildren:()=>Promise.all([_.e(481),_.e(369)]).then(_.bind(_,9369)).then(D=>D.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([_.e(481),_.e(397)]).then(_.bind(_,2397)).then(D=>D.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];class Dt{}Dt.\u0275fac=function(a){return new(a||Dt)},Dt.\u0275mod=d.oAB({type:Dt}),Dt.\u0275inj=d.cJS({imports:[rt.Bz.forRoot(Mt,{}),rt.Bz]});var Pt=_(4004),mn=_(5577),qt=_(501);class _n{constructor(a,l,y,O){this._router=a,this.titleService=l,this.activatedRoute=y,this.authService=O,this.authService.loadPermissions()}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,G.h)(a=>a instanceof rt.m2)).pipe((0,Pt.U)(()=>this.activatedRoute),(0,Pt.U)(a=>{for(;a.firstChild;)a=a.firstChild;return a}),(0,G.h)(a=>"primary"===a.outlet),(0,mn.z)(a=>a.data)).subscribe(a=>{let l=" | Marketplace";"Dealpos x Marketplace"==a.title&&(l=""),this.titleService.setTitle(a.title+l)})}overrideDateToJsonFunction(){function a(l){return l<10?"0"+l:l}Date.prototype.toJSON=function(){return this.getFullYear()+"-"+a(this.getMonth()+1)+"-"+a(this.getDate())+"T"+a(this.getHours())+":"+a(this.getMinutes())+":"+a(this.getSeconds())+".000"}}}_n.\u0275fac=function(a){return new(a||_n)(d.Y36(rt.F0),d.Y36(s.Dx),d.Y36(rt.gz),d.Y36(qt.e))},_n.\u0275cmp=d.Xpm({type:_n,selectors:[["app-root"]],decls:2,vars:0,template:function(a,l){1&a&&d._UZ(0,"router-outlet")(1,"ng-http-loader")},dependencies:[rt.lC,Ye]});var lt=_(7340);function Un(D){return new d.vHH(3e3,!1)}function de(){return typeof window<"u"&&typeof window.document<"u"}function et(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bt(D){switch(D.length){case 0:return new lt.ZN;case 1:return D[0];default:return new lt.ZE(D)}}function In(D,a,l,y,O=new Map,z=new Map){const fe=[],ue=[];let je=-1,nt=null;if(y.forEach(Et=>{const St=Et.get("offset"),fn=St==je,cn=fn&&nt||new Map;Et.forEach((Kt,un)=>{let Vn=un,zn=Kt;if("offset"!==un)switch(Vn=a.normalizePropertyName(Vn,fe),zn){case lt.k1:zn=O.get(un);break;case lt.l3:zn=z.get(un);break;default:zn=a.normalizeStyleValue(un,Vn,zn,fe)}cn.set(Vn,zn)}),fn||ue.push(cn),nt=cn,je=St}),fe.length)throw function B(D){return new d.vHH(3502,!1)}();return ue}function On(D,a,l,y){switch(a){case"start":D.onStart(()=>y(l&&Tr(l,"start",D)));break;case"done":D.onDone(()=>y(l&&Tr(l,"done",D)));break;case"destroy":D.onDestroy(()=>y(l&&Tr(l,"destroy",D)))}}function Tr(D,a,l){const z=ur(D.element,D.triggerName,D.fromState,D.toState,a||D.phaseName,l.totalTime??D.totalTime,!!l.disabled),fe=D._data;return null!=fe&&(z._data=fe),z}function ur(D,a,l,y,O="",z=0,fe){return{element:D,triggerName:a,fromState:l,toState:y,phaseName:O,totalTime:z,disabled:!!fe}}function Xn(D,a,l){let y=D.get(a);return y||D.set(a,y=l),y}function fi(D){const a=D.indexOf(":");return[D.substring(1,a),D.slice(a+1)]}let ji=(D,a)=>!1,$i=(D,a,l)=>[],Vr=null;function hi(D){const a=D.parentNode||D.host;return a===Vr?null:a}(et()||typeof Element<"u")&&(de()?(Vr=(()=>document.documentElement)(),ji=(D,a)=>{for(;a;){if(a===D)return!0;a=hi(a)}return!1}):ji=(D,a)=>D.contains(a),$i=(D,a,l)=>{if(l)return Array.from(D.querySelectorAll(a));const y=D.querySelector(a);return y?[y]:[]});let Zn=null,Qn=!1;const Jt=ji,kn=$i;let Rr=(()=>{class D{validateStyleProperty(l){return function qn(D){Zn||(Zn=function Ct(){return typeof document<"u"?document.body:null}()||{},Qn=!!Zn.style&&"WebkitAppearance"in Zn.style);let a=!0;return Zn.style&&!function nr(D){return"ebkit"==D.substring(1,6)}(D)&&(a=D in Zn.style,!a&&Qn&&(a="Webkit"+D.charAt(0).toUpperCase()+D.slice(1)in Zn.style)),a}(l)}matchesElement(l,y){return!1}containsElement(l,y){return Jt(l,y)}getParentElement(l){return hi(l)}query(l,y,O){return kn(l,y,O)}computeStyle(l,y,O){return O||""}animate(l,y,O,z,fe,ue=[],je){return new lt.ZN(O,z)}}return D.\u0275fac=function(l){return new(l||D)},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac}),D})(),Mn=(()=>{class D{}return D.NOOP=new Rr,D})();const Fr="ng-enter",rn="ng-leave",Ti="ng-trigger",pi=".ng-trigger",Zi="ng-animating",Sr=".ng-animating";function Gn(D){if("number"==typeof D)return D;const a=D.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Mi(parseFloat(a[1]),a[2])}function Mi(D,a){return"s"===a?1e3*D:D}function Wr(D,a,l){return D.hasOwnProperty("duration")?D:function Xr(D,a,l){let O,z=0,fe="";if("string"==typeof D){const ue=D.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ue)return a.push(Un()),{duration:0,delay:0,easing:""};O=Mi(parseFloat(ue[1]),ue[2]);const je=ue[3];null!=je&&(z=Mi(parseFloat(je),ue[4]));const nt=ue[5];nt&&(fe=nt)}else O=D;if(!l){let ue=!1,je=a.length;O<0&&(a.push(function bn(){return new d.vHH(3100,!1)}()),ue=!0),z<0&&(a.push(function wn(){return new d.vHH(3101,!1)}()),ue=!0),ue&&a.splice(je,0,Un())}return{duration:O,delay:z,easing:fe}}(D,a,l)}function Gr(D,a={}){return Object.keys(D).forEach(l=>{a[l]=D[l]}),a}function Si(D){const a=new Map;return Object.keys(D).forEach(l=>{a.set(l,D[l])}),a}function Ur(D,a=new Map,l){if(l)for(let[y,O]of l)a.set(y,O);for(let[y,O]of D)a.set(y,O);return a}function Ho(D,a,l){return l?a+":"+l+";":""}function Vi(D){let a="";for(let l=0;l<D.style.length;l++){const y=D.style.item(l);a+=Ho(0,y,D.style.getPropertyValue(y))}for(const l in D.style)D.style.hasOwnProperty(l)&&!l.startsWith("_")&&(a+=Ho(0,xi(l),D.style[l]));D.setAttribute("style",a)}function xr(D,a,l){D.style&&(a.forEach((y,O)=>{const z=Dr(O);l&&!l.has(O)&&l.set(O,D.style[z]),D.style[z]=y}),et()&&Vi(D))}function lr(D,a){D.style&&(a.forEach((l,y)=>{const O=Dr(y);D.style[O]=""}),et()&&Vi(D))}function rr(D){return Array.isArray(D)?1==D.length?D[0]:(0,lt.vP)(D):D}const gr=new RegExp("{{\\s*(.+?)\\s*}}","g");function ir(D){let a=[];if("string"==typeof D){let l;for(;l=gr.exec(D);)a.push(l[1]);gr.lastIndex=0}return a}function Yr(D,a,l){const y=D.toString(),O=y.replace(gr,(z,fe)=>{let ue=a[fe];return null==ue&&(l.push(function Bt(D){return new d.vHH(3003,!1)}()),ue=""),ue.toString()});return O==y?D:O}function gi(D){const a=[];let l=D.next();for(;!l.done;)a.push(l.value),l=D.next();return a}const lo=/-+([a-z0-9])/g;function Dr(D){return D.replace(lo,(...a)=>a[1].toUpperCase())}function xi(D){return D.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function dr(D,a,l){switch(a.type){case 7:return D.visitTrigger(a,l);case 0:return D.visitState(a,l);case 1:return D.visitTransition(a,l);case 2:return D.visitSequence(a,l);case 3:return D.visitGroup(a,l);case 4:return D.visitAnimate(a,l);case 5:return D.visitKeyframes(a,l);case 6:return D.visitStyle(a,l);case 8:return D.visitReference(a,l);case 9:return D.visitAnimateChild(a,l);case 10:return D.visitAnimateRef(a,l);case 11:return D.visitQuery(a,l);case 12:return D.visitStagger(a,l);default:throw function Ft(D){return new d.vHH(3004,!1)}()}}function uo(D,a){return window.getComputedStyle(D)[a]}function Te(D,a){const l=[];return"string"==typeof D?D.split(/\s*,\s*/).forEach(y=>function Be(D,a,l){if(":"==D[0]){const je=function tt(D,a){switch(D){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,y)=>parseFloat(y)>parseFloat(l);case":decrement":return(l,y)=>parseFloat(y)<parseFloat(l);default:return a.push(function N(D){return new d.vHH(3016,!1)}()),"* => *"}}(D,l);if("function"==typeof je)return void a.push(je);D=je}const y=D.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==y||y.length<4)return l.push(function ie(D){return new d.vHH(3015,!1)}()),a;const O=y[1],z=y[2],fe=y[3];a.push(Xt(O,fe));"<"==z[0]&&!("*"==O&&"*"==fe)&&a.push(Xt(fe,O))}(y,l,a)):l.push(D),l}const ft=new Set(["true","1"]),vt=new Set(["false","0"]);function Xt(D,a){const l=ft.has(D)||vt.has(D),y=ft.has(a)||vt.has(a);return(O,z)=>{let fe="*"==D||D==O,ue="*"==a||a==z;return!fe&&l&&"boolean"==typeof O&&(fe=O?ft.has(D):vt.has(D)),!ue&&y&&"boolean"==typeof z&&(ue=z?ft.has(a):vt.has(a)),fe&&ue}}const ln=new RegExp("s*:selfs*,?","g");function er(D,a,l,y){return new Pi(D).build(a,l,y)}class Pi{constructor(a){this._driver=a}build(a,l,y){const O=new Qi(l);return this._resetContextStyleTimingState(O),dr(this,rr(a),O)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,l){let y=l.queryCount=0,O=l.depCount=0;const z=[],fe=[];return"@"==a.name.charAt(0)&&l.errors.push(function Lt(){return new d.vHH(3006,!1)}()),a.definitions.forEach(ue=>{if(this._resetContextStyleTimingState(l),0==ue.type){const je=ue,nt=je.name;nt.toString().split(/\s*,\s*/).forEach(Et=>{je.name=Et,z.push(this.visitState(je,l))}),je.name=nt}else if(1==ue.type){const je=this.visitTransition(ue,l);y+=je.queryCount,O+=je.depCount,fe.push(je)}else l.errors.push(function Ge(){return new d.vHH(3007,!1)}())}),{type:7,name:a.name,states:z,transitions:fe,queryCount:y,depCount:O,options:null}}visitState(a,l){const y=this.visitStyle(a.styles,l),O=a.options&&a.options.params||null;if(y.containsDynamicStyles){const z=new Set,fe=O||{};y.styles.forEach(ue=>{ue instanceof Map&&ue.forEach(je=>{ir(je).forEach(nt=>{fe.hasOwnProperty(nt)||z.add(nt)})})}),z.size&&(gi(z.values()),l.errors.push(function yt(D,a){return new d.vHH(3008,!1)}()))}return{type:0,name:a.name,style:y,options:O?{params:O}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const y=dr(this,rr(a.animation),l);return{type:1,matchers:Te(a.expr,l.errors),animation:y,queryCount:l.queryCount,depCount:l.depCount,options:si(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(y=>dr(this,y,l)),options:si(a.options)}}visitGroup(a,l){const y=l.currentTime;let O=0;const z=a.steps.map(fe=>{l.currentTime=y;const ue=dr(this,fe,l);return O=Math.max(O,l.currentTime),ue});return l.currentTime=O,{type:3,steps:z,options:si(a.options)}}visitAnimate(a,l){const y=function Ri(D,a){if(D.hasOwnProperty("duration"))return D;if("number"==typeof D)return Ir(Wr(D,a).duration,0,"");const l=D;if(l.split(/\s+/).some(z=>"{"==z.charAt(0)&&"{"==z.charAt(1))){const z=Ir(0,0,"");return z.dynamic=!0,z.strValue=l,z}const O=Wr(l,a);return Ir(O.duration,O.delay,O.easing)}(a.timings,l.errors);l.currentAnimateTimings=y;let O,z=a.styles?a.styles:(0,lt.oB)({});if(5==z.type)O=this.visitKeyframes(z,l);else{let fe=a.styles,ue=!1;if(!fe){ue=!0;const nt={};y.easing&&(nt.easing=y.easing),fe=(0,lt.oB)(nt)}l.currentTime+=y.duration+y.delay;const je=this.visitStyle(fe,l);je.isEmptyStep=ue,O=je}return l.currentAnimateTimings=null,{type:4,timings:y,style:O,options:null}}visitStyle(a,l){const y=this._makeStyleAst(a,l);return this._validateStyleAst(y,l),y}_makeStyleAst(a,l){const y=[],O=Array.isArray(a.styles)?a.styles:[a.styles];for(let ue of O)"string"==typeof ue?ue===lt.l3?y.push(ue):l.errors.push(new d.vHH(3002,!1)):y.push(Si(ue));let z=!1,fe=null;return y.forEach(ue=>{if(ue instanceof Map&&(ue.has("easing")&&(fe=ue.get("easing"),ue.delete("easing")),!z))for(let je of ue.values())if(je.toString().indexOf("{{")>=0){z=!0;break}}),{type:6,styles:y,easing:fe,offset:a.offset,containsDynamicStyles:z,options:null}}_validateStyleAst(a,l){const y=l.currentAnimateTimings;let O=l.currentTime,z=l.currentTime;y&&z>0&&(z-=y.duration+y.delay),a.styles.forEach(fe=>{"string"!=typeof fe&&fe.forEach((ue,je)=>{const nt=l.collectedStyles.get(l.currentQuerySelector),Et=nt.get(je);let St=!0;Et&&(z!=O&&z>=Et.startTime&&O<=Et.endTime&&(l.errors.push(function $t(D,a,l,y,O){return new d.vHH(3010,!1)}()),St=!1),z=Et.startTime),St&&nt.set(je,{startTime:z,endTime:O}),l.options&&function jo(D,a,l){const y=a.params||{},O=ir(D);O.length&&O.forEach(z=>{y.hasOwnProperty(z)||l.push(function Hn(D){return new d.vHH(3001,!1)}())})}(ue,l.options,l.errors)})})}visitKeyframes(a,l){const y={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Nt(){return new d.vHH(3011,!1)}()),y;let z=0;const fe=[];let ue=!1,je=!1,nt=0;const Et=a.steps.map(zn=>{const Jn=this._makeStyleAst(zn,l);let hr=null!=Jn.offset?Jn.offset:function bi(D){if("string"==typeof D)return null;let a=null;if(Array.isArray(D))D.forEach(l=>{if(l instanceof Map&&l.has("offset")){const y=l;a=parseFloat(y.get("offset")),y.delete("offset")}});else if(D instanceof Map&&D.has("offset")){const l=D;a=parseFloat(l.get("offset")),l.delete("offset")}return a}(Jn.styles),pr=0;return null!=hr&&(z++,pr=Jn.offset=hr),je=je||pr<0||pr>1,ue=ue||pr<nt,nt=pr,fe.push(pr),Jn});je&&l.errors.push(function Kn(){return new d.vHH(3012,!1)}()),ue&&l.errors.push(function Ut(){return new d.vHH(3200,!1)}());const St=a.steps.length;let fn=0;z>0&&z<St?l.errors.push(function An(){return new d.vHH(3202,!1)}()):0==z&&(fn=1/(St-1));const cn=St-1,Kt=l.currentTime,un=l.currentAnimateTimings,Vn=un.duration;return Et.forEach((zn,Jn)=>{const hr=fn>0?Jn==cn?1:fn*Jn:fe[Jn],pr=hr*Vn;l.currentTime=Kt+un.delay+pr,un.duration=pr,this._validateStyleAst(zn,l),zn.offset=hr,y.styles.push(zn)}),y}visitReference(a,l){return{type:8,animation:dr(this,rr(a.animation),l),options:si(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:si(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:si(a.options)}}visitQuery(a,l){const y=l.currentQuerySelector,O=a.options||{};l.queryCount++,l.currentQuery=a;const[z,fe]=function ii(D){const a=!!D.split(/\s*,\s*/).find(l=>":self"==l);return a&&(D=D.replace(ln,"")),D=D.replace(/@\*/g,pi).replace(/@\w+/g,l=>pi+"-"+l.slice(1)).replace(/:animating/g,Sr),[D,a]}(a.selector);l.currentQuerySelector=y.length?y+" "+z:z,Xn(l.collectedStyles,l.currentQuerySelector,new Map);const ue=dr(this,rr(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=y,{type:11,selector:z,limit:O.limit||0,optional:!!O.optional,includeSelf:fe,animation:ue,originalSelector:a.selector,options:si(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push(function Yn(){return new d.vHH(3013,!1)}());const y="full"===a.timings?{duration:0,delay:0,easing:"full"}:Wr(a.timings,l.errors,!0);return{type:12,animation:dr(this,rr(a.animation),l),timings:y,options:null}}}class Qi{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function si(D){return D?(D=Gr(D)).params&&(D.params=function oi(D){return D?Gr(D):null}(D.params)):D={},D}function Ir(D,a,l){return{duration:D,delay:a,easing:l}}function ai(D,a,l,y,O,z,fe=null,ue=!1){return{type:1,element:D,keyframes:a,preStyleProps:l,postStyleProps:y,duration:O,delay:z,totalTime:O+z,easing:fe,subTimeline:ue}}class Dn{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,l){let y=this._map.get(a);y||this._map.set(a,y=[]),y.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Pn=new RegExp(":enter","g"),li=new RegExp(":leave","g");function fr(D,a,l,y,O,z=new Map,fe=new Map,ue,je,nt=[]){return(new Vo).buildKeyframes(D,a,l,y,O,z,fe,ue,je,nt)}class Vo{buildKeyframes(a,l,y,O,z,fe,ue,je,nt,Et=[]){nt=nt||new Dn;const St=new ei(a,l,nt,O,z,Et,[]);St.options=je;const fn=je.delay?Gn(je.delay):0;St.currentTimeline.delayNextStep(fn),St.currentTimeline.setStyles([fe],null,St.errors,je),dr(this,y,St);const cn=St.timelines.filter(Kt=>Kt.containsAnimation());if(cn.length&&ue.size){let Kt;for(let un=cn.length-1;un>=0;un--){const Vn=cn[un];if(Vn.element===l){Kt=Vn;break}}Kt&&!Kt.allowOnlyTimelineStyles()&&Kt.setStyles([ue],null,St.errors,je)}return cn.length?cn.map(Kt=>Kt.buildKeyframes()):[ai(l,[],[],[],0,fn,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const y=l.subInstructions.get(l.element);if(y){const O=l.createSubContext(a.options),z=l.currentTimeline.currentTime,fe=this._visitSubInstructions(y,O,O.options);z!=fe&&l.transformIntoNewTimeline(fe)}l.previousNode=a}visitAnimateRef(a,l){const y=l.createSubContext(a.options);y.transformIntoNewTimeline(),this._applyAnimationRefDelays([a.options,a.animation.options],l,y),this.visitReference(a.animation,y),l.transformIntoNewTimeline(y.currentTimeline.currentTime),l.previousNode=a}_applyAnimationRefDelays(a,l,y){for(const O of a){const z=O?.delay;if(z){const fe="number"==typeof z?z:Gn(Yr(z,O?.params??{},l.errors));y.delayNextStep(fe)}}}_visitSubInstructions(a,l,y){let z=l.currentTimeline.currentTime;const fe=null!=y.duration?Gn(y.duration):null,ue=null!=y.delay?Gn(y.delay):null;return 0!==fe&&a.forEach(je=>{const nt=l.appendInstructionToTimeline(je,fe,ue);z=Math.max(z,nt.duration+nt.delay)}),z}visitReference(a,l){l.updateOptions(a.options,!0),dr(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const y=l.subContextCount;let O=l;const z=a.options;if(z&&(z.params||z.delay)&&(O=l.createSubContext(z),O.transformIntoNewTimeline(),null!=z.delay)){6==O.previousNode.type&&(O.currentTimeline.snapshotCurrentStyles(),O.previousNode=Fi);const fe=Gn(z.delay);O.delayNextStep(fe)}a.steps.length&&(a.steps.forEach(fe=>dr(this,fe,O)),O.currentTimeline.applyStylesToKeyframe(),O.subContextCount>y&&O.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const y=[];let O=l.currentTimeline.currentTime;const z=a.options&&a.options.delay?Gn(a.options.delay):0;a.steps.forEach(fe=>{const ue=l.createSubContext(a.options);z&&ue.delayNextStep(z),dr(this,fe,ue),O=Math.max(O,ue.currentTimeline.currentTime),y.push(ue.currentTimeline)}),y.forEach(fe=>l.currentTimeline.mergeTimelineCollectedStyles(fe)),l.transformIntoNewTimeline(O),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const y=a.strValue;return Wr(l.params?Yr(y,l.params,l.errors):y,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const y=l.currentAnimateTimings=this._visitTiming(a.timings,l),O=l.currentTimeline;y.delay&&(l.incrementTime(y.delay),O.snapshotCurrentStyles());const z=a.style;5==z.type?this.visitKeyframes(z,l):(l.incrementTime(y.duration),this.visitStyle(z,l),O.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const y=l.currentTimeline,O=l.currentAnimateTimings;!O&&y.hasCurrentStyleProperties()&&y.forwardFrame();const z=O&&O.easing||a.easing;a.isEmptyStep?y.applyEmptyStep(z):y.setStyles(a.styles,z,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const y=l.currentAnimateTimings,O=l.currentTimeline.duration,z=y.duration,ue=l.createSubContext().currentTimeline;ue.easing=y.easing,a.styles.forEach(je=>{ue.forwardTime((je.offset||0)*z),ue.setStyles(je.styles,je.easing,l.errors,l.options),ue.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(ue),l.transformIntoNewTimeline(O+z),l.previousNode=a}visitQuery(a,l){const y=l.currentTimeline.currentTime,O=a.options||{},z=O.delay?Gn(O.delay):0;z&&(6===l.previousNode.type||0==y&&l.currentTimeline.hasCurrentStyleProperties())&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=Fi);let fe=y;const ue=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!O.optional,l.errors);l.currentQueryTotal=ue.length;let je=null;ue.forEach((nt,Et)=>{l.currentQueryIndex=Et;const St=l.createSubContext(a.options,nt);z&&St.delayNextStep(z),nt===l.element&&(je=St.currentTimeline),dr(this,a.animation,St),St.currentTimeline.applyStylesToKeyframe(),fe=Math.max(fe,St.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(fe),je&&(l.currentTimeline.mergeTimelineCollectedStyles(je),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const y=l.parentContext,O=l.currentTimeline,z=a.timings,fe=Math.abs(z.duration),ue=fe*(l.currentQueryTotal-1);let je=fe*l.currentQueryIndex;switch(z.duration<0?"reverse":z.easing){case"reverse":je=ue-je;break;case"full":je=y.currentStaggerTime}const Et=l.currentTimeline;je&&Et.delayNextStep(je);const St=Et.currentTime;dr(this,a.animation,l),l.previousNode=a,y.currentStaggerTime=O.currentTime-St+(O.startTime-y.currentTimeline.startTime)}}const Fi={};class ei{constructor(a,l,y,O,z,fe,ue,je){this._driver=a,this.element=l,this.subInstructions=y,this._enterClassName=O,this._leaveClassName=z,this.errors=fe,this.timelines=ue,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=je||new mr(this._driver,l,0),ue.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const y=a;let O=this.options;null!=y.duration&&(O.duration=Gn(y.duration)),null!=y.delay&&(O.delay=Gn(y.delay));const z=y.params;if(z){let fe=O.params;fe||(fe=this.options.params={}),Object.keys(z).forEach(ue=>{(!l||!fe.hasOwnProperty(ue))&&(fe[ue]=Yr(z[ue],fe,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const y=a.params={};Object.keys(l).forEach(O=>{y[O]=l[O]})}}return a}createSubContext(a=null,l,y){const O=l||this.element,z=new ei(this._driver,O,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(O,y||0));return z.previousNode=this.previousNode,z.currentAnimateTimings=this.currentAnimateTimings,z.options=this._copyOptions(),z.updateOptions(a),z.currentQueryIndex=this.currentQueryIndex,z.currentQueryTotal=this.currentQueryTotal,z.parentContext=this,this.subContextCount++,z}transformIntoNewTimeline(a){return this.previousNode=Fi,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,y){const O={duration:l??a.duration,delay:this.currentTimeline.currentTime+(y??0)+a.delay,easing:""},z=new rs(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,O,a.stretchStartingKeyframe);return this.timelines.push(z),O}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,y,O,z,fe){let ue=[];if(O&&ue.push(this.element),a.length>0){a=(a=a.replace(Pn,"."+this._enterClassName)).replace(li,"."+this._leaveClassName);let nt=this._driver.query(this.element,a,1!=y);0!==y&&(nt=y<0?nt.slice(nt.length+y,nt.length):nt.slice(0,y)),ue.push(...nt)}return!z&&0==ue.length&&fe.push(function ht(D){return new d.vHH(3014,!1)}()),ue}}class mr{constructor(a,l,y,O){this._driver=a,this.element=l,this.startTime=y,this._elementTimelineStylesLookup=O,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,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(a){const l=1===this._keyframes.size&&this._pendingStyles.size;this.duration||l?(this.forwardTime(this.currentTime+a),l&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,l){return this.applyStylesToKeyframe(),new mr(this._driver,a,l||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+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,l){this._localTimelineStyles.set(a,l),this._globalTimelineStyles.set(a,l),this._styleSummary.set(a,{time:this.currentTime,value:l})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[l,y]of this._globalTimelineStyles)this._backFill.set(l,y||lt.l3),this._currentKeyframe.set(l,lt.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,y,O){l&&this._previousKeyframe.set("easing",l);const z=O&&O.params||{},fe=function ho(D,a){const l=new Map;let y;return D.forEach(O=>{if("*"===O){y=y||a.keys();for(let z of y)l.set(z,lt.l3)}else Ur(O,l)}),l}(a,this._globalTimelineStyles);for(let[ue,je]of fe){const nt=Yr(je,z,y);this._pendingStyles.set(ue,nt),this._localTimelineStyles.has(ue)||this._backFill.set(ue,this._globalTimelineStyles.get(ue)??lt.l3),this._updateStyle(ue,nt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,l)=>{this._currentKeyframe.set(l,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,l)=>{this._currentKeyframe.has(l)||this._currentKeyframe.set(l,a)}))}snapshotCurrentStyles(){for(let[a,l]of this._localTimelineStyles)this._pendingStyles.set(a,l),this._updateStyle(a,l)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let l in this._currentKeyframe)a.push(l);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((l,y)=>{const O=this._styleSummary.get(y);(!O||l.time>O.time)&&this._updateStyle(y,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,y=1===this._keyframes.size&&0===this.duration;let O=[];this._keyframes.forEach((ue,je)=>{const nt=Ur(ue,new Map,this._backFill);nt.forEach((Et,St)=>{Et===lt.k1?a.add(St):Et===lt.l3&&l.add(St)}),y||nt.set("offset",je/this.duration),O.push(nt)});const z=a.size?gi(a.values()):[],fe=l.size?gi(l.values()):[];if(y){const ue=O[0],je=new Map(ue);ue.set("offset",0),je.set("offset",1),O=[ue,je]}return ai(this.element,O,z,fe,this.duration,this.startTime,this.easing,!1)}}class rs extends mr{constructor(a,l,y,O,z,fe,ue=!1){super(a,l,fe.delay),this.keyframes=y,this.preStyleProps=O,this.postStyleProps=z,this._stretchStartingKeyframe=ue,this.timings={duration:fe.duration,delay:fe.delay,easing:fe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:y,easing:O}=this.timings;if(this._stretchStartingKeyframe&&l){const z=[],fe=y+l,ue=l/fe,je=Ur(a[0]);je.set("offset",0),z.push(je);const nt=Ur(a[0]);nt.set("offset",mi(ue)),z.push(nt);const Et=a.length-1;for(let St=1;St<=Et;St++){let fn=Ur(a[St]);const cn=fn.get("offset");fn.set("offset",mi((l+cn*y)/fe)),z.push(fn)}y=fe,l=0,O="",a=z}return ai(this.element,a,this.preStyleProps,this.postStyleProps,y,l,O,!0)}}function mi(D,a=3){const l=Math.pow(10,a-1);return Math.round(D*l)/l}class po{}const en=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"]);class Io extends po{normalizePropertyName(a,l){return Dr(a)}normalizeStyleValue(a,l,y,O){let z="";const fe=y.toString().trim();if(en.has(l)&&0!==y&&"0"!==y)if("number"==typeof y)z="px";else{const ue=y.match(/^[+-]?[\d\.]+([a-z]*)$/);ue&&0==ue[1].length&&O.push(function gt(D,a){return new d.vHH(3005,!1)}())}return fe+z}}function vs(D,a,l,y,O,z,fe,ue,je,nt,Et,St,fn){return{type:0,element:D,triggerName:a,isRemovalTransition:O,fromState:l,fromStyles:z,toState:y,toStyles:fe,timelines:ue,queriedElements:je,preStyleProps:nt,postStyleProps:Et,totalTime:St,errors:fn}}const go={};class is{constructor(a,l,y){this._triggerName=a,this.ast=l,this._stateStyles=y}match(a,l,y,O){return function ss(D,a,l,y,O){return D.some(z=>z(a,l,y,O))}(this.ast.matchers,a,l,y,O)}buildStyles(a,l,y){let O=this._stateStyles.get("*");return void 0!==a&&(O=this._stateStyles.get(a?.toString())||O),O?O.buildStyles(l,y):new Map}build(a,l,y,O,z,fe,ue,je,nt,Et){const St=[],fn=this.ast.options&&this.ast.options.params||go,Kt=this.buildStyles(y,ue&&ue.params||go,St),un=je&&je.params||go,Vn=this.buildStyles(O,un,St),zn=new Set,Jn=new Map,hr=new Map,pr="void"===O,ko={params:Rs(un,fn),delay:this.ast.options?.delay},Di=Et?[]:fr(a,l,this.ast.animation,z,fe,Kt,Vn,ko,nt,St);let br=0;if(Di.forEach(Co=>{br=Math.max(Co.duration+Co.delay,br)}),St.length)return vs(l,this._triggerName,y,O,pr,Kt,Vn,[],[],Jn,hr,br,St);Di.forEach(Co=>{const xn=Co.element,Lo=Xn(Jn,xn,new Set);Co.preStyleProps.forEach(wo=>Lo.add(wo));const Ss=Xn(hr,xn,new Set);Co.postStyleProps.forEach(wo=>Ss.add(wo)),xn!==l&&zn.add(xn)});const so=gi(zn.values());return vs(l,this._triggerName,y,O,pr,Kt,Vn,Di,so,Jn,hr,br)}}function Rs(D,a){const l=Gr(a);for(const y in D)D.hasOwnProperty(y)&&null!=D[y]&&(l[y]=D[y]);return l}class bs{constructor(a,l,y){this.styles=a,this.defaultParams=l,this.normalizer=y}buildStyles(a,l){const y=new Map,O=Gr(this.defaultParams);return Object.keys(a).forEach(z=>{const fe=a[z];null!==fe&&(O[z]=fe)}),this.styles.styles.forEach(z=>{"string"!=typeof z&&z.forEach((fe,ue)=>{fe&&(fe=Yr(fe,O,l));const je=this.normalizer.normalizePropertyName(ue,l);fe=this.normalizer.normalizeStyleValue(ue,je,fe,l),y.set(ue,fe)})}),y}}class gn{constructor(a,l,y){this.name=a,this.ast=l,this._normalizer=y,this.transitionFactories=[],this.states=new Map,l.states.forEach(O=>{this.states.set(O.name,new bs(O.style,O.options&&O.options.params||{},y))}),Oo(this.states,"true","1"),Oo(this.states,"false","0"),l.transitions.forEach(O=>{this.transitionFactories.push(new is(a,O,this.states))}),this.fallbackTransition=function Ji(D,a,l){return new is(D,{type:1,animation:{type:2,steps:[],options:null},matchers:[(fe,ue)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,y,O){return this.transitionFactories.find(fe=>fe.match(a,l,y,O))||null}matchStyles(a,l,y){return this.fallbackTransition.buildStyles(a,l,y)}}function Oo(D,a,l){D.has(a)?D.has(l)||D.set(l,D.get(a)):D.has(l)&&D.set(a,D.get(l))}const Cr=new Dn;class Po{constructor(a,l,y){this.bodyNode=a,this._driver=l,this._normalizer=y,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,l){const y=[],z=er(this._driver,l,y,[]);if(y.length)throw function Q(D){return new d.vHH(3503,!1)}();this._animations.set(a,z)}_buildPlayer(a,l,y){const O=a.element,z=In(0,this._normalizer,0,a.keyframes,l,y);return this._driver.animate(O,z,a.duration,a.delay,a.easing,[],!0)}create(a,l,y={}){const O=[],z=this._animations.get(a);let fe;const ue=new Map;if(z?(fe=fr(this._driver,l,z,Fr,rn,new Map,new Map,y,Cr,O),fe.forEach(Et=>{const St=Xn(ue,Et.element,new Map);Et.postStyleProps.forEach(fn=>St.set(fn,null))})):(O.push(function pe(){return new d.vHH(3300,!1)}()),fe=[]),O.length)throw function $e(D){return new d.vHH(3504,!1)}();ue.forEach((Et,St)=>{Et.forEach((fn,cn)=>{Et.set(cn,this._driver.computeStyle(St,cn,lt.l3))})});const nt=bt(fe.map(Et=>{const St=ue.get(Et.element);return this._buildPlayer(Et,new Map,St)}));return this._playersById.set(a,nt),nt.onDestroy(()=>this.destroy(a)),this.players.push(nt),nt}destroy(a){const l=this._getPlayer(a);l.destroy(),this._playersById.delete(a);const y=this.players.indexOf(l);y>=0&&this.players.splice(y,1)}_getPlayer(a){const l=this._playersById.get(a);if(!l)throw function Me(D){return new d.vHH(3301,!1)}();return l}listen(a,l,y,O){const z=ur(l,"","","");return On(this._getPlayer(a),y,z,O),()=>{}}command(a,l,y,O){if("register"==y)return void this.register(a,O[0]);if("create"==y)return void this.create(a,l,O[0]||{});const z=this._getPlayer(a);switch(y){case"play":z.play();break;case"pause":z.pause();break;case"reset":z.reset();break;case"restart":z.restart();break;case"finish":z.finish();break;case"init":z.init();break;case"setPosition":z.setPosition(parseFloat(O[0]));break;case"destroy":this.destroy(a)}}}const mo="ng-animate-queued",Xi="ng-animate-disabled",qi=[],wr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_r="__ng_removed";class ni{get params(){return this.options.params}constructor(a,l=""){this.namespaceId=l;const y=a&&a.hasOwnProperty("value");if(this.value=function yo(D){return D??null}(y?a.value:a),y){const z=Gr(a);delete z.value,this.options=z}else this.options={};this.options.params||(this.options.params={})}absorbOptions(a){const l=a.params;if(l){const y=this.options.params;Object.keys(l).forEach(O=>{null==y[O]&&(y[O]=l[O])})}}}const Or="void",Ro=new ni(Or);class _o{constructor(a,l,y){this.id=a,this.hostElement=l,this._engine=y,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Zr(l,this._hostClassName)}listen(a,l,y,O){if(!this._triggers.has(l))throw function ut(D,a){return new d.vHH(3302,!1)}();if(null==y||0==y.length)throw function Vt(D){return new d.vHH(3303,!1)}();if(!function Wi(D){return"start"==D||"done"==D}(y))throw function Gt(D,a){return new d.vHH(3400,!1)}();const z=Xn(this._elementListeners,a,[]),fe={name:l,phase:y,callback:O};z.push(fe);const ue=Xn(this._engine.statesByElement,a,new Map);return ue.has(l)||(Zr(a,Ti),Zr(a,Ti+"-"+l),ue.set(l,Ro)),()=>{this._engine.afterFlush(()=>{const je=z.indexOf(fe);je>=0&&z.splice(je,1),this._triggers.has(l)||ue.delete(l)})}}register(a,l){return!this._triggers.has(a)&&(this._triggers.set(a,l),!0)}_getTrigger(a){const l=this._triggers.get(a);if(!l)throw function De(D){return new d.vHH(3401,!1)}();return l}trigger(a,l,y,O=!0){const z=this._getTrigger(l),fe=new Fo(this.id,l,a);let ue=this._engine.statesByElement.get(a);ue||(Zr(a,Ti),Zr(a,Ti+"-"+l),this._engine.statesByElement.set(a,ue=new Map));let je=ue.get(l);const nt=new ni(y,this.id);if(!(y&&y.hasOwnProperty("value"))&&je&&nt.absorbOptions(je.options),ue.set(l,nt),je||(je=Ro),nt.value!==Or&&je.value===nt.value){if(!function Ns(D,a){const l=Object.keys(D),y=Object.keys(a);if(l.length!=y.length)return!1;for(let O=0;O<l.length;O++){const z=l[O];if(!a.hasOwnProperty(z)||D[z]!==a[z])return!1}return!0}(je.params,nt.params)){const un=[],Vn=z.matchStyles(je.value,je.params,un),zn=z.matchStyles(nt.value,nt.params,un);un.length?this._engine.reportError(un):this._engine.afterFlush(()=>{lr(a,Vn),xr(a,zn)})}return}const fn=Xn(this._engine.playersByElement,a,[]);fn.forEach(un=>{un.namespaceId==this.id&&un.triggerName==l&&un.queued&&un.destroy()});let cn=z.matchTransition(je.value,nt.value,a,nt.params),Kt=!1;if(!cn){if(!O)return;cn=z.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:cn,fromState:je,toState:nt,player:fe,isFallbackTransition:Kt}),Kt||(Zr(a,mo),fe.onStart(()=>{vo(a,mo)})),fe.onDone(()=>{let un=this.players.indexOf(fe);un>=0&&this.players.splice(un,1);const Vn=this._engine.playersByElement.get(a);if(Vn){let zn=Vn.indexOf(fe);zn>=0&&Vn.splice(zn,1)}}),this.players.push(fe),fn.push(fe),fe}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(l=>l.delete(a)),this._elementListeners.forEach((l,y)=>{this._elementListeners.set(y,l.filter(O=>O.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(y=>y.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const y=this._engine.driver.query(a,pi,!0);y.forEach(O=>{if(O[_r])return;const z=this._engine.fetchNamespacesByElement(O);z.size?z.forEach(fe=>fe.triggerLeaveAnimation(O,l,!1,!0)):this.clearElementCache(O)}),this._engine.afterFlushAnimationsDone(()=>y.forEach(O=>this.clearElementCache(O)))}triggerLeaveAnimation(a,l,y,O){const z=this._engine.statesByElement.get(a),fe=new Map;if(z){const ue=[];if(z.forEach((je,nt)=>{if(fe.set(nt,je.value),this._triggers.has(nt)){const Et=this.trigger(a,nt,Or,O);Et&&ue.push(Et)}}),ue.length)return this._engine.markElementAsRemoved(this.id,a,!0,l,fe),y&&bt(ue).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),y=this._engine.statesByElement.get(a);if(l&&y){const O=new Set;l.forEach(z=>{const fe=z.name;if(O.has(fe))return;O.add(fe);const je=this._triggers.get(fe).fallbackTransition,nt=y.get(fe)||Ro,Et=new ni(Or),St=new Fo(this.id,fe,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:fe,transition:je,fromState:nt,toState:Et,player:St,isFallbackTransition:!0})})}}removeNode(a,l){const y=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let O=!1;if(y.totalAnimations){const z=y.players.length?y.playersByQueriedElement.get(a):[];if(z&&z.length)O=!0;else{let fe=a;for(;fe=fe.parentNode;)if(y.statesByElement.get(fe)){O=!0;break}}}if(this.prepareLeaveAnimationListeners(a),O)y.markElementAsRemoved(this.id,a,!1,l);else{const z=a[_r];(!z||z===wr)&&(y.afterFlush(()=>this.clearElementCache(a)),y.destroyInnerAnimations(a),y._onRemovalComplete(a,l))}}insertNode(a,l){Zr(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(y=>{const O=y.player;if(O.destroyed)return;const z=y.element,fe=this._elementListeners.get(z);fe&&fe.forEach(ue=>{if(ue.name==y.triggerName){const je=ur(z,y.triggerName,y.fromState.value,y.toState.value);je._data=a,On(y.player,ue.phase,je,ue.callback)}}),O.markedForDestroy?this._engine.afterFlush(()=>{O.destroy()}):l.push(y)}),this._queue=[],l.sort((y,O)=>{const z=y.transition.ast.depCount,fe=O.transition.ast.depCount;return 0==z||0==fe?z-fe:this._engine.driver.containsElement(y.element,O.element)?1:-1})}destroy(a){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let l=!1;return this._elementListeners.has(a)&&(l=!0),l=!!this._queue.find(y=>y.element===a)||l,l}}class as{_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}constructor(a,l,y){this.bodyNode=a,this.driver=l,this._normalizer=y,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(O,z)=>{}}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(y=>{y.queued&&a.push(y)})}),a}createNamespace(a,l){const y=new _o(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(y,l):(this.newHostElements.set(l,y),this.collectEnterElement(l)),this._namespaceLookup[a]=y}_balanceNamespaceList(a,l){const y=this._namespaceList,O=this.namespacesByHostElement;if(y.length-1>=0){let fe=!1,ue=this.driver.getParentElement(l);for(;ue;){const je=O.get(ue);if(je){const nt=y.indexOf(je);y.splice(nt+1,0,a),fe=!0;break}ue=this.driver.getParentElement(ue)}fe||y.unshift(a)}else y.push(a);return O.set(l,a),a}register(a,l){let y=this._namespaceLookup[a];return y||(y=this.createNamespace(a,l)),y}registerTrigger(a,l,y){let O=this._namespaceLookup[a];O&&O.register(l,y)&&this.totalAnimations++}destroy(a,l){if(!a)return;const y=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(y.hostElement),delete this._namespaceLookup[a];const O=this._namespaceList.indexOf(y);O>=0&&this._namespaceList.splice(O,1)}),this.afterFlushAnimationsDone(()=>y.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,y=this.statesByElement.get(a);if(y)for(let O of y.values())if(O.namespaceId){const z=this._fetchNamespace(O.namespaceId);z&&l.add(z)}return l}trigger(a,l,y,O){if(to(l)){const z=this._fetchNamespace(a);if(z)return z.trigger(l,y,O),!0}return!1}insertNode(a,l,y,O){if(!to(l))return;const z=l[_r];if(z&&z.setForRemoval){z.setForRemoval=!1,z.setForMove=!0;const fe=this.collectedLeaveElements.indexOf(l);fe>=0&&this.collectedLeaveElements.splice(fe,1)}if(a){const fe=this._fetchNamespace(a);fe&&fe.insertNode(l,y)}O&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Zr(a,Xi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),vo(a,Xi))}removeNode(a,l,y,O){if(to(l)){const z=a?this._fetchNamespace(a):null;if(z?z.removeNode(l,O):this.markElementAsRemoved(a,l,!1,O),y){const fe=this.namespacesByHostElement.get(l);fe&&fe.id!==a&&fe.removeNode(l,O)}}else this._onRemovalComplete(l,O)}markElementAsRemoved(a,l,y,O,z){this.collectedLeaveElements.push(l),l[_r]={namespaceId:a,setForRemoval:O,hasAnimation:y,removedBeforeQueried:!1,previousTriggersValues:z}}listen(a,l,y,O,z){return to(l)?this._fetchNamespace(a).listen(l,y,O,z):()=>{}}_buildInstruction(a,l,y,O,z){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,y,O,a.fromState.options,a.toState.options,l,z)}destroyInnerAnimations(a){let l=this.driver.query(a,pi,!0);l.forEach(y=>this.destroyActiveAnimationsForElement(y)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,Sr,!0),l.forEach(y=>this.finishActiveQueriedAnimationOnElement(y)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(y=>{y.queued?y.markedForDestroy=!0:y.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(y=>y.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return bt(this.players).onDone(()=>a());a()})}processLeaveNode(a){const l=a[_r];if(l&&l.setForRemoval){if(a[_r]=wr,l.namespaceId){this.destroyInnerAnimations(a);const y=this._fetchNamespace(l.namespaceId);y&&y.clearElementCache(a)}this._onRemovalComplete(a,l.setForRemoval)}a.classList?.contains(Xi)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(y=>{this.markElementAsDisabled(y,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((y,O)=>this._balanceNamespaceList(y,O)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let y=0;y<this.collectedEnterElements.length;y++)Zr(this.collectedEnterElements[y],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const y=[];try{l=this._flushAnimations(y,a)}finally{for(let O=0;O<y.length;O++)y[O]()}}else for(let y=0;y<this.collectedLeaveElements.length;y++)this.processLeaveNode(this.collectedLeaveElements[y]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(y=>y()),this._flushFns=[],this._whenQuietFns.length){const y=this._whenQuietFns;this._whenQuietFns=[],l.length?bt(l).onDone(()=>{y.forEach(O=>O())}):y.forEach(O=>O())}}reportError(a){throw function I(D){return new d.vHH(3402,!1)}()}_flushAnimations(a,l){const y=new Dn,O=[],z=new Map,fe=[],ue=new Map,je=new Map,nt=new Map,Et=new Set;this.disabledNodes.forEach(Ht=>{Et.add(Ht);const Yt=this.driver.query(Ht,".ng-animate-queued",!0);for(let Zt=0;Zt<Yt.length;Zt++)Et.add(Yt[Zt])});const St=this.bodyNode,fn=Array.from(this.statesByElement.keys()),cn=_i(fn,this.collectedEnterElements),Kt=new Map;let un=0;cn.forEach((Ht,Yt)=>{const Zt=Fr+un++;Kt.set(Yt,Zt),Ht.forEach(Rn=>Zr(Rn,Zt))});const Vn=[],zn=new Set,Jn=new Set;for(let Ht=0;Ht<this.collectedLeaveElements.length;Ht++){const Yt=this.collectedLeaveElements[Ht],Zt=Yt[_r];Zt&&Zt.setForRemoval&&(Vn.push(Yt),zn.add(Yt),Zt.hasAnimation?this.driver.query(Yt,".ng-star-inserted",!0).forEach(Rn=>zn.add(Rn)):Jn.add(Yt))}const hr=new Map,pr=_i(fn,Array.from(zn));pr.forEach((Ht,Yt)=>{const Zt=rn+un++;hr.set(Yt,Zt),Ht.forEach(Rn=>Zr(Rn,Zt))}),a.push(()=>{cn.forEach((Ht,Yt)=>{const Zt=Kt.get(Yt);Ht.forEach(Rn=>vo(Rn,Zt))}),pr.forEach((Ht,Yt)=>{const Zt=hr.get(Yt);Ht.forEach(Rn=>vo(Rn,Zt))}),Vn.forEach(Ht=>{this.processLeaveNode(Ht)})});const ko=[],Di=[];for(let Ht=this._namespaceList.length-1;Ht>=0;Ht--)this._namespaceList[Ht].drainQueuedTransitions(l).forEach(Zt=>{const Rn=Zt.player,Lr=Zt.element;if(ko.push(Rn),this.collectedEnterElements.length){const c=Lr[_r];if(c&&c.setForMove){if(c.previousTriggersValues&&c.previousTriggersValues.has(Zt.triggerName)){const m=c.previousTriggersValues.get(Zt.triggerName),C=this.statesByElement.get(Zt.element);if(C&&C.has(Zt.triggerName)){const L=C.get(Zt.triggerName);L.value=m,C.set(Zt.triggerName,L)}}return void Rn.destroy()}}const Wn=!St||!this.driver.containsElement(St,Lr),Hr=hr.get(Lr),vi=Kt.get(Lr),ar=this._buildInstruction(Zt,y,vi,Hr,Wn);if(ar.errors&&ar.errors.length)return void Di.push(ar);if(Wn)return Rn.onStart(()=>lr(Lr,ar.fromStyles)),Rn.onDestroy(()=>xr(Lr,ar.toStyles)),void O.push(Rn);if(Zt.isFallbackTransition)return Rn.onStart(()=>lr(Lr,ar.fromStyles)),Rn.onDestroy(()=>xr(Lr,ar.toStyles)),void O.push(Rn);const f=[];ar.timelines.forEach(c=>{c.stretchStartingKeyframe=!0,this.disabledNodes.has(c.element)||f.push(c)}),ar.timelines=f,y.append(Lr,ar.timelines),fe.push({instruction:ar,player:Rn,element:Lr}),ar.queriedElements.forEach(c=>Xn(ue,c,[]).push(Rn)),ar.preStyleProps.forEach((c,m)=>{if(c.size){let C=je.get(m);C||je.set(m,C=new Set),c.forEach((L,V)=>C.add(V))}}),ar.postStyleProps.forEach((c,m)=>{let C=nt.get(m);C||nt.set(m,C=new Set),c.forEach((L,V)=>C.add(V))})});if(Di.length){const Ht=[];Di.forEach(Yt=>{Ht.push(function S(D,a){return new d.vHH(3505,!1)}())}),ko.forEach(Yt=>Yt.destroy()),this.reportError(Ht)}const br=new Map,so=new Map;fe.forEach(Ht=>{const Yt=Ht.element;y.has(Yt)&&(so.set(Yt,Yt),this._beforeAnimationBuild(Ht.player.namespaceId,Ht.instruction,br))}),O.forEach(Ht=>{const Yt=Ht.element;this._getPreviousPlayers(Yt,!1,Ht.namespaceId,Ht.triggerName,null).forEach(Rn=>{Xn(br,Yt,[]).push(Rn),Rn.destroy()})});const Co=Vn.filter(Ht=>bo(Ht,je,nt)),xn=new Map;no(xn,this.driver,Jn,nt,lt.l3).forEach(Ht=>{bo(Ht,je,nt)&&Co.push(Ht)});const Ss=new Map;cn.forEach((Ht,Yt)=>{no(Ss,this.driver,new Set(Ht),je,lt.k1)}),Co.forEach(Ht=>{const Yt=xn.get(Ht),Zt=Ss.get(Ht);xn.set(Ht,new Map([...Array.from(Yt?.entries()??[]),...Array.from(Zt?.entries()??[])]))});const wo=[],zs=[],Ws={};fe.forEach(Ht=>{const{element:Yt,player:Zt,instruction:Rn}=Ht;if(y.has(Yt)){if(Et.has(Yt))return Zt.onDestroy(()=>xr(Yt,Rn.toStyles)),Zt.disabled=!0,Zt.overrideTotalTime(Rn.totalTime),void O.push(Zt);let Lr=Ws;if(so.size>1){let Hr=Yt;const vi=[];for(;Hr=Hr.parentNode;){const ar=so.get(Hr);if(ar){Lr=ar;break}vi.push(Hr)}vi.forEach(ar=>so.set(ar,Lr))}const Wn=this._buildAnimation(Zt.namespaceId,Rn,br,z,Ss,xn);if(Zt.setRealPlayer(Wn),Lr===Ws)wo.push(Zt);else{const Hr=this.playersByElement.get(Lr);Hr&&Hr.length&&(Zt.parentPlayer=bt(Hr)),O.push(Zt)}}else lr(Yt,Rn.fromStyles),Zt.onDestroy(()=>xr(Yt,Rn.toStyles)),zs.push(Zt),Et.has(Yt)&&O.push(Zt)}),zs.forEach(Ht=>{const Yt=z.get(Ht.element);if(Yt&&Yt.length){const Zt=bt(Yt);Ht.setRealPlayer(Zt)}}),O.forEach(Ht=>{Ht.parentPlayer?Ht.syncPlayerEvents(Ht.parentPlayer):Ht.destroy()});for(let Ht=0;Ht<Vn.length;Ht++){const Yt=Vn[Ht],Zt=Yt[_r];if(vo(Yt,rn),Zt&&Zt.hasAnimation)continue;let Rn=[];if(ue.size){let Wn=ue.get(Yt);Wn&&Wn.length&&Rn.push(...Wn);let Hr=this.driver.query(Yt,Sr,!0);for(let vi=0;vi<Hr.length;vi++){let ar=ue.get(Hr[vi]);ar&&ar.length&&Rn.push(...ar)}}const Lr=Rn.filter(Wn=>!Wn.destroyed);Lr.length?Fs(this,Yt,Lr):this.processLeaveNode(Yt)}return Vn.length=0,wo.forEach(Ht=>{this.players.push(Ht),Ht.onDone(()=>{Ht.destroy();const Yt=this.players.indexOf(Ht);this.players.splice(Yt,1)}),Ht.play()}),wo}elementContainsData(a,l){let y=!1;const O=l[_r];return O&&O.setForRemoval&&(y=!0),this.playersByElement.has(l)&&(y=!0),this.playersByQueriedElement.has(l)&&(y=!0),this.statesByElement.has(l)&&(y=!0),this._fetchNamespace(a).elementContainsData(l)||y}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,y,O,z){let fe=[];if(l){const ue=this.playersByQueriedElement.get(a);ue&&(fe=ue)}else{const ue=this.playersByElement.get(a);if(ue){const je=!z||z==Or;ue.forEach(nt=>{nt.queued||!je&&nt.triggerName!=O||fe.push(nt)})}}return(y||O)&&(fe=fe.filter(ue=>!(y&&y!=ue.namespaceId||O&&O!=ue.triggerName))),fe}_beforeAnimationBuild(a,l,y){const z=l.element,fe=l.isRemovalTransition?void 0:a,ue=l.isRemovalTransition?void 0:l.triggerName;for(const je of l.timelines){const nt=je.element,Et=nt!==z,St=Xn(y,nt,[]);this._getPreviousPlayers(nt,Et,fe,ue,l.toState).forEach(cn=>{const Kt=cn.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),cn.destroy(),St.push(cn)})}lr(z,l.fromStyles)}_buildAnimation(a,l,y,O,z,fe){const ue=l.triggerName,je=l.element,nt=[],Et=new Set,St=new Set,fn=l.timelines.map(Kt=>{const un=Kt.element;Et.add(un);const Vn=un[_r];if(Vn&&Vn.removedBeforeQueried)return new lt.ZN(Kt.duration,Kt.delay);const zn=un!==je,Jn=function Go(D){const a=[];return ls(D,a),a}((y.get(un)||qi).map(br=>br.getRealPlayer())).filter(br=>!!br.element&&br.element===un),hr=z.get(un),pr=fe.get(un),ko=In(0,this._normalizer,0,Kt.keyframes,hr,pr),Di=this._buildPlayer(Kt,ko,Jn);if(Kt.subTimeline&&O&&St.add(un),zn){const br=new Fo(a,ue,un);br.setRealPlayer(Di),nt.push(br)}return Di});nt.forEach(Kt=>{Xn(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function eo(D,a,l){let y=D.get(a);if(y){if(y.length){const O=y.indexOf(l);y.splice(O,1)}0==y.length&&D.delete(a)}return y}(this.playersByQueriedElement,Kt.element,Kt))}),Et.forEach(Kt=>Zr(Kt,Zi));const cn=bt(fn);return cn.onDestroy(()=>{Et.forEach(Kt=>vo(Kt,Zi)),xr(je,l.toStyles)}),St.forEach(Kt=>{Xn(O,Kt,[]).push(cn)}),cn}_buildPlayer(a,l,y){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,y):new lt.ZN(a.duration,a.delay)}}class Fo{constructor(a,l,y){this.namespaceId=a,this.triggerName=l,this.element=y,this._player=new lt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((l,y)=>{l.forEach(O=>On(a,y,void 0,O))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const l=this._player;l.triggerCallback&&a.onStart(()=>l.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,l){Xn(this._queuedCallbacks,a,[]).push(l)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const l=this._player;l.triggerCallback&&l.triggerCallback(a)}}function to(D){return D&&1===D.nodeType}function Li(D,a){const l=D.style.display;return D.style.display=a??"none",l}function no(D,a,l,y,O){const z=[];l.forEach(je=>z.push(Li(je)));const fe=[];y.forEach((je,nt)=>{const Et=new Map;je.forEach(St=>{const fn=a.computeStyle(nt,St,O);Et.set(St,fn),(!fn||0==fn.length)&&(nt[_r]=Nr,fe.push(nt))}),D.set(nt,Et)});let ue=0;return l.forEach(je=>Li(je,z[ue++])),fe}function _i(D,a){const l=new Map;if(D.forEach(ue=>l.set(ue,[])),0==a.length)return l;const O=new Set(a),z=new Map;function fe(ue){if(!ue)return 1;let je=z.get(ue);if(je)return je;const nt=ue.parentNode;return je=l.has(nt)?nt:O.has(nt)?1:fe(nt),z.set(ue,je),je}return a.forEach(ue=>{const je=fe(ue);1!==je&&l.get(je).push(ue)}),l}function Zr(D,a){D.classList?.add(a)}function vo(D,a){D.classList?.remove(a)}function Fs(D,a,l){bt(l).onDone(()=>D.processLeaveNode(a))}function ls(D,a){for(let l=0;l<D.length;l++){const y=D[l];y instanceof lt.ZE?ls(y.players,a):a.push(y)}}function bo(D,a,l){const y=l.get(D);if(!y)return!1;let O=a.get(D);return O?y.forEach(z=>O.add(z)):a.set(D,y),l.delete(D),!0}class yr{constructor(a,l,y){this.bodyNode=a,this._driver=l,this._normalizer=y,this._triggerCache={},this.onRemovalComplete=(O,z)=>{},this._transitionEngine=new as(a,l,y),this._timelineEngine=new Po(a,l,y),this._transitionEngine.onRemovalComplete=(O,z)=>this.onRemovalComplete(O,z)}registerTrigger(a,l,y,O,z){const fe=a+"-"+O;let ue=this._triggerCache[fe];if(!ue){const je=[],Et=er(this._driver,z,je,[]);if(je.length)throw function we(D,a){return new d.vHH(3404,!1)}();ue=function Xe(D,a,l){return new gn(D,a,l)}(O,Et,this._normalizer),this._triggerCache[fe]=ue}this._transitionEngine.registerTrigger(l,O,ue)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,y,O){this._transitionEngine.insertNode(a,l,y,O)}onRemove(a,l,y,O){this._transitionEngine.removeNode(a,l,O||!1,y)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,y,O){if("@"==y.charAt(0)){const[z,fe]=fi(y);this._timelineEngine.command(z,l,fe,O)}else this._transitionEngine.trigger(a,l,y,O)}listen(a,l,y,O,z){if("@"==y.charAt(0)){const[fe,ue]=fi(y);return this._timelineEngine.listen(fe,l,ue,z)}return this._transitionEngine.listen(a,l,y,O,z)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let or=(()=>{class D{constructor(l,y,O){this._element=l,this._startStyles=y,this._endStyles=O,this._state=0;let z=D.initialStylesByElement.get(l);z||D.initialStylesByElement.set(l,z=new Map),this._initialStyles=z}start(){this._state<1&&(this._startStyles&&xr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xr(this._element,this._initialStyles),this._endStyles&&(xr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(D.initialStylesByElement.delete(this._element),this._startStyles&&(lr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lr(this._element,this._endStyles),this._endStyles=null),xr(this._element,this._initialStyles),this._state=3)}}return D.initialStylesByElement=new WeakMap,D})();function Ko(D){let a=null;return D.forEach((l,y)=>{(function Ds(D){return"display"===D||"position"===D})(y)&&(a=a||new Map,a.set(y,l))}),a}class vr{constructor(a,l,y,O){this.element=a,this.keyframes=l,this.options=y,this._specialStyles=O,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=y.duration,this._delay=y.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const l=[];return a.forEach(y=>{l.push(Object.fromEntries(y))}),l}_triggerWebAnimation(a,l,y){return a.animate(this._convertKeyframesToObject(l),y)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((y,O)=>{"offset"!==O&&a.set(O,this._finished?y:uo(this.element,O))}),this.currentSnapshot=a}triggerCallback(a){const l="start"===a?this._onStartFns:this._onDoneFns;l.forEach(y=>y()),l.length=0}}class Cs{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,l){return!1}containsElement(a,l){return Jt(a,l)}getParentElement(a){return hi(a)}query(a,l,y){return kn(a,l,y)}computeStyle(a,l,y){return window.getComputedStyle(a)[l]}animate(a,l,y,O,z,fe=[]){const je={duration:y,delay:O,fill:0==O?"both":"forwards"};z&&(je.easing=z);const nt=new Map,Et=fe.filter(cn=>cn instanceof vr);(function co(D,a){return 0===D||0===a})(y,O)&&Et.forEach(cn=>{cn.currentSnapshot.forEach((Kt,un)=>nt.set(un,Kt))});let St=function jn(D){return D.length?D[0]instanceof Map?D:D.map(a=>Si(a)):[]}(l).map(cn=>Ur(cn));St=function $o(D,a,l){if(l.size&&a.length){let y=a[0],O=[];if(l.forEach((z,fe)=>{y.has(fe)||O.push(fe),y.set(fe,z)}),O.length)for(let z=1;z<a.length;z++){let fe=a[z];O.forEach(ue=>fe.set(ue,uo(D,ue)))}}return a}(a,St,nt);const fn=function Gi(D,a){let l=null,y=null;return Array.isArray(a)&&a.length?(l=Ko(a[0]),a.length>1&&(y=Ko(a[a.length-1]))):a instanceof Map&&(l=Ko(a)),l||y?new or(D,l,y):null}(a,St);return new vr(a,St,je,fn)}}let ws=(()=>{class D extends lt._j{constructor(l,y){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(y.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(l){const y=this._nextAnimationId.toString();this._nextAnimationId++;const O=Array.isArray(l)?(0,lt.vP)(l):l;return g(this._renderer,null,y,"register",[O]),new ks(y,this._renderer)}}return D.\u0275fac=function(l){return new(l||D)(d.LFG(d.FYo),d.LFG(Pe.K0))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac}),D})();class ks extends lt.LC{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new No(this._id,a,l||{},this._renderer)}}class No{constructor(a,l,y,O){this.id=a,this.element=l,this._renderer=O,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",y)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return g(this._renderer,this.element,this.id,a,l)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function g(D,a,l,y,O){return D.setProperty(a,`@@${l}:${y}`,O)}const A="@",v="@.disabled";let R=(()=>{class D{constructor(l,y,O){this.delegate=l,this.engine=y,this._zone=O,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),y.onRemovalComplete=(z,fe)=>{const ue=fe?.parentNode(z);ue&&fe.removeChild(ue,z)}}createRenderer(l,y){const z=this.delegate.createRenderer(l,y);if(!(l&&y&&y.data&&y.data.animation)){let Et=this._rendererCache.get(z);return Et||(Et=new re("",z,this.engine,()=>this._rendererCache.delete(z)),this._rendererCache.set(z,Et)),Et}const fe=y.id,ue=y.id+"-"+this._currentId;this._currentId++,this.engine.register(ue,l);const je=Et=>{Array.isArray(Et)?Et.forEach(je):this.engine.registerTrigger(fe,ue,l,Et.name,Et)};return y.data.animation.forEach(je),new Ve(this,ue,z,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,y,O){l>=0&&l<this._microtaskId?this._zone.run(()=>y(O)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(z=>{const[fe,ue]=z;fe(ue)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([y,O]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return D.\u0275fac=function(l){return new(l||D)(d.LFG(d.FYo),d.LFG(yr),d.LFG(d.R0b))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac}),D})();class re{constructor(a,l,y,O){this.namespaceId=a,this.delegate=l,this.engine=y,this._onDestroy=O,this.destroyNode=this.delegate.destroyNode?z=>l.destroyNode(z):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(a,l){return this.delegate.createElement(a,l)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,l){this.delegate.appendChild(a,l),this.engine.onInsert(this.namespaceId,l,a,!1)}insertBefore(a,l,y,O=!0){this.delegate.insertBefore(a,l,y),this.engine.onInsert(this.namespaceId,l,a,O)}removeChild(a,l,y){this.engine.onRemove(this.namespaceId,l,this.delegate,y)}selectRootElement(a,l){return this.delegate.selectRootElement(a,l)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,l,y,O){this.delegate.setAttribute(a,l,y,O)}removeAttribute(a,l,y){this.delegate.removeAttribute(a,l,y)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,y,O){this.delegate.setStyle(a,l,y,O)}removeStyle(a,l,y){this.delegate.removeStyle(a,l,y)}setProperty(a,l,y){l.charAt(0)==A&&l==v?this.disableAnimations(a,!!y):this.delegate.setProperty(a,l,y)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,y){return this.delegate.listen(a,l,y)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class Ve extends re{constructor(a,l,y,O,z){super(l,y,O,z),this.factory=a,this.namespaceId=l}setProperty(a,l,y){l.charAt(0)==A?"."==l.charAt(1)&&l==v?this.disableAnimations(a,y=void 0===y||!!y):this.engine.process(this.namespaceId,a,l.slice(1),y):this.delegate.setProperty(a,l,y)}listen(a,l,y){if(l.charAt(0)==A){const O=function Ze(D){switch(D){case"body":return document.body;case"document":return document;case"window":return window;default:return D}}(a);let z=l.slice(1),fe="";return z.charAt(0)!=A&&([z,fe]=function wt(D){const a=D.indexOf(".");return[D.substring(0,a),D.slice(a+1)]}(z)),this.engine.listen(this.namespaceId,O,z,fe,ue=>{this.factory.scheduleListenerCallback(ue._data||-1,y,ue)})}return this.delegate.listen(a,l,y)}}const pn=[{provide:lt._j,useClass:ws},{provide:po,useFactory:function Sn(){return new Io}},{provide:yr,useClass:(()=>{class D extends yr{constructor(l,y,O,z){super(l.body,y,O)}ngOnDestroy(){this.flush()}}return D.\u0275fac=function(l){return new(l||D)(d.LFG(Pe.K0),d.LFG(Mn),d.LFG(po),d.LFG(d.z2F))},D.\u0275prov=d.Yz7({token:D,factory:D.\u0275fac}),D})()},{provide:d.FYo,useFactory:function Nn(D,a,l){return new R(D,a,l)},deps:[s.se,yr,d.R0b]}],cr=[{provide:Mn,useFactory:()=>new Cs},{provide:d.QbO,useValue:"BrowserAnimations"},...pn],$n=[{provide:Mn,useClass:Rr},{provide:d.QbO,useValue:"NoopAnimations"},...pn];let tr=(()=>{class D{static withConfig(l){return{ngModule:D,providers:l.disableAnimations?$n:cr}}}return D.\u0275fac=function(l){return new(l||D)},D.\u0275mod=d.oAB({type:D}),D.\u0275inj=d.cJS({providers:cr,imports:[s.b2]}),D})();class sr{constructor(a){this._router=a}intercept(a,l){let y=JSON.parse(window.localStorage.getItem("user")),O=new Date;if(null!=y){let z=new Date(y.Token.expiredAt);a=a.clone(O<z?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${y.Token.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else a=a.clone({setHeaders:{"Content-Type":"application/json"}});return l.handle(a)}}sr.\u0275fac=function(a){return new(a||sr)(d.LFG(rt.F0))},sr.\u0275prov=d.Yz7({token:sr,factory:sr.\u0275fac});var ci=_(7185);function ro(D,a){if(1&D){const l=d.EpF();d.TgZ(0,"a",10),d.NdJ("click",function(){d.CHM(l);const O=d.oxw(2);return d.KtG(O.remove())}),d._uU(1," x "),d.qZA()}}function Ts(D,a){if(1&D&&(d.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),d._uU(4),d.qZA()()(),d.TgZ(5,"div",8),d.YNc(6,ro,2,0,"a",9),d.qZA()()),2&D){const l=d.oxw();d.Udp("display","inactive"===l.state.value?"none":""),d.xp6(2),d.Tol(l.options.titleClass),d.uIk("aria-label",l.title),d.xp6(2),d.Oqu(l.title),d.xp6(2),d.Q6J("ngIf",l.options.closeButton)}}const Yo=function(D){return{notitle:D}};function Zo(D,a){if(1&D&&d._UZ(0,"div",11),2&D){const l=d.oxw();d.Tol(l.options.messageClass),d.Q6J("ngClass",d.VKq(4,Yo,null==l.title))("innerHTML",l.message,d.oJD)}}function cs(D,a){if(1&D&&(d.TgZ(0,"div",12),d._uU(1),d.qZA()),2&D){const l=d.oxw();d.Tol(l.options.messageClass),d.Q6J("ngClass",d.VKq(5,Yo,null==l.title)),d.uIk("aria-label",l.message),d.xp6(1),d.hij(" ",l.message," ")}}function Ls(D,a){if(1&D){const l=d.EpF();d.TgZ(0,"a",10),d.NdJ("click",function(){d.CHM(l);const O=d.oxw();return d.KtG(O.remove())}),d._uU(1," x "),d.qZA()}}function Qo(D,a){if(1&D&&(d.TgZ(0,"div"),d._UZ(1,"div",13),d.qZA()),2&D){const l=d.oxw();d.xp6(1),d.Udp("width",l.width+"%")}}class io extends ci.FN{constructor(a,l){super(a,l),this.toastrService=a,this.toastPackage=l}ngOnInit(){}action(a){return a.stopPropagation(),this.toastPackage.triggerAction(),!1}}io.\u0275fac=function(a){return new(a||io)(d.Y36(ci._W),d.Y36(ci.PR))},io.\u0275cmp=d.Xpm({type:io,selectors:[["","custom-toast-component",""]],features:[d.qOj],attrs:["custom-toast-component",""],decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","g-0"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(a,l){1&a&&(d.TgZ(0,"div",0),d.YNc(1,Ts,7,7,"div",1),d.YNc(2,Zo,1,6,"div",2),d.YNc(3,cs,2,7,"div",3),d.YNc(4,Ls,2,0,"a",4),d.YNc(5,Qo,2,2,"div",5),d.qZA()),2&a&&(d.xp6(1),d.Q6J("ngIf",l.title),d.xp6(1),d.Q6J("ngIf",l.message&&l.options.enableHtml),d.xp6(1),d.Q6J("ngIf",l.message&&!l.options.enableHtml),d.xp6(1),d.Q6J("ngIf",l.options.closeButton&&null==l.title),d.xp6(1),d.Q6J("ngIf",l.options.progressBar))},dependencies:[Pe.mk,Pe.O5],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid rgb(81,163,81)}.toast-info[_nghost-%COMP%]{border:1.8px solid rgb(47,150,180)}.toast-error[_nghost-%COMP%]{border:1.8px solid rgb(189,54,47)}.toast-warning[_nghost-%COMP%]{border:1.8px solid rgb(248,148,6)}.toast-case[_ngcontent-%COMP%]{margin-left:0}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0;margin-left:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[(0,lt.X$)("flyInOut",[(0,lt.SB)("inactive",(0,lt.oB)({opacity:0})),(0,lt.eR)("inactive => active",(0,lt.jt)("400ms ease-out",(0,lt.F4)([(0,lt.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,lt.oB)({transform:"skewX(20deg)",opacity:1}),(0,lt.oB)({transform:"skewX(-5deg)",opacity:1}),(0,lt.oB)({transform:"none",opacity:1})]))),(0,lt.eR)("active => removed",(0,lt.jt)("400ms ease-out",(0,lt.F4)([(0,lt.oB)({opacity:1}),(0,lt.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});var $s=_(5421),ui=_(2011),Vs=_(7899),Do=_(2340),Jo=_(9549),Ms=_(4954);class oo{}oo.\u0275fac=function(a){return new(a||oo)},oo.\u0275mod=d.oAB({type:oo,bootstrap:[_n]}),oo.\u0275inj=d.cJS({providers:[{provide:P.TP,useClass:sr,multi:!0},{provide:Jo.o2,useValue:{subscriptSizing:"dynamic"}},ne.O,Qe.e],imports:[s.b2,Dt,tr,ci.Rh.forRoot({toastComponent:io,positionClass:"toast-bottom-right",closeButton:!0}),P.JF,$s.Cz.forRoot({name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]}),At.forRoot(),ui.hO.initializeApp(Do.N.firebaseConfig),Vs.ww,Ms.VI.forRoot()]}),Do.N.production&&(0,d.G48)(),s.q6().bootstrapModule(oo).catch(D=>console.error(D))},5867:(st,ye,_)=>{_.d(ye,{C6:()=>s.getApps,Mq:()=>s.getApp});var s=_(9681);(0,s.registerVersion)("firebase","9.12.1","app")},127:(st,ye,_)=>{_.d(ye,{Z:()=>s.Z});var s=_(3942);s.Z.registerVersion("firebase","9.12.1","app-compat")},1135:(st,ye,_)=>{_.d(ye,{X:()=>d});var s=_(7579);class d extends s.x{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const W=super._subscribe(Y);return!W.closed&&Y.next(this._value),W}getValue(){const{hasError:Y,thrownError:W,_value:G}=this;if(Y)throw W;return this._throwIfClosed(),G}next(Y){super.next(this._value=Y)}}},9751:(st,ye,_)=>{_.d(ye,{y:()=>J});var s=_(930),d=_(727),P=_(8822),Y=_(9635),W=_(2416),G=_(576),ee=_(2806);let J=(()=>{class K{constructor(ve){ve&&(this._subscribe=ve)}lift(ve){const ke=new K;return ke.source=this,ke.operator=ve,ke}subscribe(ve,ke,ze){const Se=function Z(K){return K&&K instanceof s.Lv||function H(K){return K&&(0,G.m)(K.next)&&(0,G.m)(K.error)&&(0,G.m)(K.complete)}(K)&&(0,d.Nn)(K)}(ve)?ve:new s.Hp(ve,ke,ze);return(0,ee.x)(()=>{const{operator:Ne,source:Pe}=this;Se.add(Ne?Ne.call(Se,Pe):Pe?this._subscribe(Se):this._trySubscribe(Se))}),Se}_trySubscribe(ve){try{return this._subscribe(ve)}catch(ke){ve.error(ke)}}forEach(ve,ke){return new(ke=X(ke))((ze,Se)=>{const Ne=new s.Hp({next:Pe=>{try{ve(Pe)}catch(Ee){Se(Ee),Ne.unsubscribe()}},error:Se,complete:ze});this.subscribe(Ne)})}_subscribe(ve){var ke;return null===(ke=this.source)||void 0===ke?void 0:ke.subscribe(ve)}[P.L](){return this}pipe(...ve){return(0,Y.U)(ve)(this)}toPromise(ve){return new(ve=X(ve))((ke,ze)=>{let Se;this.subscribe(Ne=>Se=Ne,Ne=>ze(Ne),()=>ke(Se))})}}return K.create=Ie=>new K(Ie),K})();function X(K){var Ie;return null!==(Ie=K??W.v.Promise)&&void 0!==Ie?Ie:Promise}},4707:(st,ye,_)=>{_.d(ye,{t:()=>P});var s=_(7579),d=_(6063);class P extends s.x{constructor(W=1/0,G=1/0,ee=d.l){super(),this._bufferSize=W,this._windowTime=G,this._timestampProvider=ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=G===1/0,this._bufferSize=Math.max(1,W),this._windowTime=Math.max(1,G)}next(W){const{isStopped:G,_buffer:ee,_infiniteTimeWindow:J,_timestampProvider:X,_windowTime:H}=this;G||(ee.push(W),!J&&ee.push(X.now()+H)),this._trimBuffer(),super.next(W)}_subscribe(W){this._throwIfClosed(),this._trimBuffer();const G=this._innerSubscribe(W),{_infiniteTimeWindow:ee,_buffer:J}=this,X=J.slice();for(let H=0;H<X.length&&!W.closed;H+=ee?1:2)W.next(X[H]);return this._checkFinalizedStatuses(W),G}_trimBuffer(){const{_bufferSize:W,_timestampProvider:G,_buffer:ee,_infiniteTimeWindow:J}=this,X=(J?1:2)*W;if(W<1/0&&X<ee.length&&ee.splice(0,ee.length-X),!J){const H=G.now();let Z=0;for(let K=1;K<ee.length&&ee[K]<=H;K+=2)Z=K;Z&&ee.splice(0,Z+1)}}}},7579:(st,ye,_)=>{_.d(ye,{x:()=>ee});var s=_(9751),d=_(727);const Y=(0,_(3888).d)(X=>function(){X(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=_(8737),G=_(2806);let ee=(()=>{class X extends s.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Z){const K=new J(this,this);return K.operator=Z,K}_throwIfClosed(){if(this.closed)throw new Y}next(Z){(0,G.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const K of this.currentObservers)K.next(Z)}})}error(Z){(0,G.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Z;const{observers:K}=this;for(;K.length;)K.shift().error(Z)}})}complete(){(0,G.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Z}=this;for(;Z.length;)Z.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Z;return(null===(Z=this.observers)||void 0===Z?void 0:Z.length)>0}_trySubscribe(Z){return this._throwIfClosed(),super._trySubscribe(Z)}_subscribe(Z){return this._throwIfClosed(),this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){const{hasError:K,isStopped:Ie,observers:ve}=this;return K||Ie?d.Lc:(this.currentObservers=null,ve.push(Z),new d.w0(()=>{this.currentObservers=null,(0,W.P)(ve,Z)}))}_checkFinalizedStatuses(Z){const{hasError:K,thrownError:Ie,isStopped:ve}=this;K?Z.error(Ie):ve&&Z.complete()}asObservable(){const Z=new s.y;return Z.source=this,Z}}return X.create=(H,Z)=>new J(H,Z),X})();class J extends ee{constructor(H,Z){super(),this.destination=H,this.source=Z}next(H){var Z,K;null===(K=null===(Z=this.destination)||void 0===Z?void 0:Z.next)||void 0===K||K.call(Z,H)}error(H){var Z,K;null===(K=null===(Z=this.destination)||void 0===Z?void 0:Z.error)||void 0===K||K.call(Z,H)}complete(){var H,Z;null===(Z=null===(H=this.destination)||void 0===H?void 0:H.complete)||void 0===Z||Z.call(H)}_subscribe(H){var Z,K;return null!==(K=null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(H))&&void 0!==K?K:d.Lc}}},930:(st,ye,_)=>{_.d(ye,{Hp:()=>ze,Lv:()=>K});var s=_(576),d=_(727),P=_(2416),Y=_(7849),W=_(5032);const G=X("C",void 0,void 0);function X(Ce,j,le){return{kind:Ce,value:j,error:le}}var H=_(3410),Z=_(2806);class K extends d.w0{constructor(j){super(),this.isStopped=!1,j?(this.destination=j,(0,d.Nn)(j)&&j.add(this)):this.destination=Ee}static create(j,le,ce){return new ze(j,le,ce)}next(j){this.isStopped?Pe(function J(Ce){return X("N",Ce,void 0)}(j),this):this._next(j)}error(j){this.isStopped?Pe(function ee(Ce){return X("E",void 0,Ce)}(j),this):(this.isStopped=!0,this._error(j))}complete(){this.isStopped?Pe(G,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(j){this.destination.next(j)}_error(j){try{this.destination.error(j)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ie=Function.prototype.bind;function ve(Ce,j){return Ie.call(Ce,j)}class ke{constructor(j){this.partialObserver=j}next(j){const{partialObserver:le}=this;if(le.next)try{le.next(j)}catch(ce){Se(ce)}}error(j){const{partialObserver:le}=this;if(le.error)try{le.error(j)}catch(ce){Se(ce)}else Se(j)}complete(){const{partialObserver:j}=this;if(j.complete)try{j.complete()}catch(le){Se(le)}}}class ze extends K{constructor(j,le,ce){let me;if(super(),(0,s.m)(j)||!j)me={next:j??void 0,error:le??void 0,complete:ce??void 0};else{let se;this&&P.v.useDeprecatedNextContext?(se=Object.create(j),se.unsubscribe=()=>this.unsubscribe(),me={next:j.next&&ve(j.next,se),error:j.error&&ve(j.error,se),complete:j.complete&&ve(j.complete,se)}):me=j}this.destination=new ke(me)}}function Se(Ce){P.v.useDeprecatedSynchronousErrorHandling?(0,Z.O)(Ce):(0,Y.h)(Ce)}function Pe(Ce,j){const{onStoppedNotification:le}=P.v;le&&H.z.setTimeout(()=>le(Ce,j))}const Ee={closed:!0,next:W.Z,error:function Ne(Ce){throw Ce},complete:W.Z}},727:(st,ye,_)=>{_.d(ye,{Lc:()=>G,w0:()=>W,Nn:()=>ee});var s=_(576);const P=(0,_(3888).d)(X=>function(Z){X(this),this.message=Z?`${Z.length} errors occurred during unsubscription:\n${Z.map((K,Ie)=>`${Ie+1}) ${K.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Z});var Y=_(8737);class W{constructor(H){this.initialTeardown=H,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let H;if(!this.closed){this.closed=!0;const{_parentage:Z}=this;if(Z)if(this._parentage=null,Array.isArray(Z))for(const ve of Z)ve.remove(this);else Z.remove(this);const{initialTeardown:K}=this;if((0,s.m)(K))try{K()}catch(ve){H=ve instanceof P?ve.errors:[ve]}const{_finalizers:Ie}=this;if(Ie){this._finalizers=null;for(const ve of Ie)try{J(ve)}catch(ke){H=H??[],ke instanceof P?H=[...H,...ke.errors]:H.push(ke)}}if(H)throw new P(H)}}add(H){var Z;if(H&&H!==this)if(this.closed)J(H);else{if(H instanceof W){if(H.closed||H._hasParent(this))return;H._addParent(this)}(this._finalizers=null!==(Z=this._finalizers)&&void 0!==Z?Z:[]).push(H)}}_hasParent(H){const{_parentage:Z}=this;return Z===H||Array.isArray(Z)&&Z.includes(H)}_addParent(H){const{_parentage:Z}=this;this._parentage=Array.isArray(Z)?(Z.push(H),Z):Z?[Z,H]:H}_removeParent(H){const{_parentage:Z}=this;Z===H?this._parentage=null:Array.isArray(Z)&&(0,Y.P)(Z,H)}remove(H){const{_finalizers:Z}=this;Z&&(0,Y.P)(Z,H),H instanceof W&&H._removeParent(this)}}W.EMPTY=(()=>{const X=new W;return X.closed=!0,X})();const G=W.EMPTY;function ee(X){return X instanceof W||X&&"closed"in X&&(0,s.m)(X.remove)&&(0,s.m)(X.add)&&(0,s.m)(X.unsubscribe)}function J(X){(0,s.m)(X)?X():X.unsubscribe()}},2416:(st,ye,_)=>{_.d(ye,{v:()=>s});const s={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(st,ye,_)=>{_.d(ye,{a:()=>H});var s=_(9751),d=_(4742),P=_(8996),Y=_(4671),W=_(3268),G=_(3269),ee=_(1810),J=_(5403),X=_(9672);function H(...Ie){const ve=(0,G.yG)(Ie),ke=(0,G.jO)(Ie),{args:ze,keys:Se}=(0,d.D)(Ie);if(0===ze.length)return(0,P.D)([],ve);const Ne=new s.y(function Z(Ie,ve,ke=Y.y){return ze=>{K(ve,()=>{const{length:Se}=Ie,Ne=new Array(Se);let Pe=Se,Ee=Se;for(let Ce=0;Ce<Se;Ce++)K(ve,()=>{const j=(0,P.D)(Ie[Ce],ve);let le=!1;j.subscribe((0,J.x)(ze,ce=>{Ne[Ce]=ce,le||(le=!0,Ee--),Ee||ze.next(ke(Ne.slice()))},()=>{--Pe||ze.complete()}))},ze)},ze)}}(ze,ve,Se?Pe=>(0,ee.n)(Se,Pe):Y.y));return ke?Ne.pipe((0,W.Z)(ke)):Ne}function K(Ie,ve,ke){Ie?(0,X.f)(ke,Ie,ve):ve()}},7272:(st,ye,_)=>{_.d(ye,{z:()=>W});var s=_(8189),P=_(3269),Y=_(8996);function W(...G){return function d(){return(0,s.J)(1)}()((0,Y.D)(G,(0,P.yG)(G)))}},9770:(st,ye,_)=>{_.d(ye,{P:()=>P});var s=_(9751),d=_(8421);function P(Y){return new s.y(W=>{(0,d.Xf)(Y()).subscribe(W)})}},515:(st,ye,_)=>{_.d(ye,{E:()=>d});const d=new(_(9751).y)(W=>W.complete())},4128:(st,ye,_)=>{_.d(ye,{D:()=>J});var s=_(9751),d=_(4742),P=_(8421),Y=_(3269),W=_(5403),G=_(3268),ee=_(1810);function J(...X){const H=(0,Y.jO)(X),{args:Z,keys:K}=(0,d.D)(X),Ie=new s.y(ve=>{const{length:ke}=Z;if(!ke)return void ve.complete();const ze=new Array(ke);let Se=ke,Ne=ke;for(let Pe=0;Pe<ke;Pe++){let Ee=!1;(0,P.Xf)(Z[Pe]).subscribe((0,W.x)(ve,Ce=>{Ee||(Ee=!0,Ne--),ze[Pe]=Ce},()=>Se--,void 0,()=>{(!Se||!Ee)&&(Ne||ve.next(K?(0,ee.n)(K,ze):ze),ve.complete())}))}});return H?Ie.pipe((0,G.Z)(H)):Ie}},8996:(st,ye,_)=>{_.d(ye,{D:()=>j});var s=_(8421),d=_(5363),P=_(9468),G=_(9751),J=_(2202),X=_(576),H=_(9672);function K(le,ce){if(!le)throw new Error("Iterable cannot be null");return new G.y(me=>{(0,H.f)(me,ce,()=>{const se=le[Symbol.asyncIterator]();(0,H.f)(me,ce,()=>{se.next().then(ge=>{ge.done?me.complete():me.next(ge.value)})},0,!0)})})}var Ie=_(3670),ve=_(8239),ke=_(1144),ze=_(6495),Se=_(2206),Ne=_(4532),Pe=_(3260);function j(le,ce){return ce?function Ce(le,ce){if(null!=le){if((0,Ie.c)(le))return function Y(le,ce){return(0,s.Xf)(le).pipe((0,P.R)(ce),(0,d.Q)(ce))}(le,ce);if((0,ke.z)(le))return function ee(le,ce){return new G.y(me=>{let se=0;return ce.schedule(function(){se===le.length?me.complete():(me.next(le[se++]),me.closed||this.schedule())})})}(le,ce);if((0,ve.t)(le))return function W(le,ce){return(0,s.Xf)(le).pipe((0,P.R)(ce),(0,d.Q)(ce))}(le,ce);if((0,Se.D)(le))return K(le,ce);if((0,ze.T)(le))return function Z(le,ce){return new G.y(me=>{let se;return(0,H.f)(me,ce,()=>{se=le[J.h](),(0,H.f)(me,ce,()=>{let ge,q;try{({value:ge,done:q}=se.next())}catch(oe){return void me.error(oe)}q?me.complete():me.next(ge)},0,!0)}),()=>(0,X.m)(se?.return)&&se.return()})}(le,ce);if((0,Pe.L)(le))return function Ee(le,ce){return K((0,Pe.Q)(le),ce)}(le,ce)}throw(0,Ne.z)(le)}(le,ce):(0,s.Xf)(le)}},8421:(st,ye,_)=>{_.d(ye,{Xf:()=>Ie});var s=_(655),d=_(1144),P=_(8239),Y=_(9751),W=_(3670),G=_(2206),ee=_(4532),J=_(6495),X=_(3260),H=_(576),Z=_(7849),K=_(8822);function Ie(Ce){if(Ce instanceof Y.y)return Ce;if(null!=Ce){if((0,W.c)(Ce))return function ve(Ce){return new Y.y(j=>{const le=Ce[K.L]();if((0,H.m)(le.subscribe))return le.subscribe(j);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ce);if((0,d.z)(Ce))return function ke(Ce){return new Y.y(j=>{for(let le=0;le<Ce.length&&!j.closed;le++)j.next(Ce[le]);j.complete()})}(Ce);if((0,P.t)(Ce))return function ze(Ce){return new Y.y(j=>{Ce.then(le=>{j.closed||(j.next(le),j.complete())},le=>j.error(le)).then(null,Z.h)})}(Ce);if((0,G.D)(Ce))return Ne(Ce);if((0,J.T)(Ce))return function Se(Ce){return new Y.y(j=>{for(const le of Ce)if(j.next(le),j.closed)return;j.complete()})}(Ce);if((0,X.L)(Ce))return function Pe(Ce){return Ne((0,X.Q)(Ce))}(Ce)}throw(0,ee.z)(Ce)}function Ne(Ce){return new Y.y(j=>{(function Ee(Ce,j){var le,ce,me,se;return(0,s.mG)(this,void 0,void 0,function*(){try{for(le=(0,s.KL)(Ce);!(ce=yield le.next()).done;)if(j.next(ce.value),j.closed)return}catch(ge){me={error:ge}}finally{try{ce&&!ce.done&&(se=le.return)&&(yield se.call(le))}finally{if(me)throw me.error}}j.complete()})})(Ce,j).catch(le=>j.error(le))})}},6451:(st,ye,_)=>{_.d(ye,{T:()=>G});var s=_(8189),d=_(8421),P=_(515),Y=_(3269),W=_(8996);function G(...ee){const J=(0,Y.yG)(ee),X=(0,Y._6)(ee,1/0),H=ee;return H.length?1===H.length?(0,d.Xf)(H[0]):(0,s.J)(X)((0,W.D)(H,J)):P.E}},9646:(st,ye,_)=>{_.d(ye,{of:()=>P});var s=_(3269),d=_(8996);function P(...Y){const W=(0,s.yG)(Y);return(0,d.D)(Y,W)}},2843:(st,ye,_)=>{_.d(ye,{_:()=>P});var s=_(9751),d=_(576);function P(Y,W){const G=(0,d.m)(Y)?Y:()=>Y,ee=J=>J.error(G());return new s.y(W?J=>W.schedule(ee,0,J):ee)}},2805:(st,ye,_)=>{_.d(ye,{H:()=>W});var s=_(9751),d=_(4986),P=_(3532),Y=_(1165);function W(G=0,ee,J=d.P){let X=-1;return null!=ee&&((0,P.K)(ee)?J=ee:X=ee),new s.y(H=>{let Z=(0,Y.q)(G)?+G-J.now():G;Z<0&&(Z=0);let K=0;return J.schedule(function(){H.closed||(H.next(K++),0<=X?this.schedule(void 0,X):H.complete())},Z)})}},5403:(st,ye,_)=>{_.d(ye,{x:()=>d});var s=_(930);function d(Y,W,G,ee,J){return new P(Y,W,G,ee,J)}class P extends s.Lv{constructor(W,G,ee,J,X,H){super(W),this.onFinalize=X,this.shouldUnsubscribe=H,this._next=G?function(Z){try{G(Z)}catch(K){W.error(K)}}:super._next,this._error=J?function(Z){try{J(Z)}catch(K){W.error(K)}finally{this.unsubscribe()}}:super._error,this._complete=ee?function(){try{ee()}catch(Z){W.error(Z)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var W;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:G}=this;super.unsubscribe(),!G&&(null===(W=this.onFinalize)||void 0===W||W.call(this))}}}},262:(st,ye,_)=>{_.d(ye,{K:()=>Y});var s=_(8421),d=_(5403),P=_(4482);function Y(W){return(0,P.e)((G,ee)=>{let H,J=null,X=!1;J=G.subscribe((0,d.x)(ee,void 0,void 0,Z=>{H=(0,s.Xf)(W(Z,Y(W)(G))),J?(J.unsubscribe(),J=null,H.subscribe(ee)):X=!0})),X&&(J.unsubscribe(),J=null,H.subscribe(ee))})}},4351:(st,ye,_)=>{_.d(ye,{b:()=>P});var s=_(5577),d=_(576);function P(Y,W){return(0,d.m)(W)?(0,s.z)(Y,W,1):(0,s.z)(Y,1)}},8372:(st,ye,_)=>{_.d(ye,{b:()=>Y});var s=_(4986),d=_(4482),P=_(5403);function Y(W,G=s.z){return(0,d.e)((ee,J)=>{let X=null,H=null,Z=null;const K=()=>{if(X){X.unsubscribe(),X=null;const ve=H;H=null,J.next(ve)}};function Ie(){const ve=Z+W,ke=G.now();if(ke<ve)return X=this.schedule(void 0,ve-ke),void J.add(X);K()}ee.subscribe((0,P.x)(J,ve=>{H=ve,Z=G.now(),X||(X=G.schedule(Ie,W),J.add(X))},()=>{K(),J.complete()},void 0,()=>{H=X=null}))})}},6590:(st,ye,_)=>{_.d(ye,{d:()=>P});var s=_(4482),d=_(5403);function P(Y){return(0,s.e)((W,G)=>{let ee=!1;W.subscribe((0,d.x)(G,J=>{ee=!0,G.next(J)},()=>{ee||G.next(Y),G.complete()}))})}},1884:(st,ye,_)=>{_.d(ye,{x:()=>Y});var s=_(4671),d=_(4482),P=_(5403);function Y(G,ee=s.y){return G=G??W,(0,d.e)((J,X)=>{let H,Z=!0;J.subscribe((0,P.x)(X,K=>{const Ie=ee(K);(Z||!G(H,Ie))&&(Z=!1,H=Ie,X.next(K))}))})}function W(G,ee){return G===ee}},9300:(st,ye,_)=>{_.d(ye,{h:()=>P});var s=_(4482),d=_(5403);function P(Y,W){return(0,s.e)((G,ee)=>{let J=0;G.subscribe((0,d.x)(ee,X=>Y.call(W,X,J++)&&ee.next(X)))})}},8746:(st,ye,_)=>{_.d(ye,{x:()=>d});var s=_(4482);function d(P){return(0,s.e)((Y,W)=>{try{Y.subscribe(W)}finally{W.add(P)}})}},590:(st,ye,_)=>{_.d(ye,{P:()=>ee});var s=_(6805),d=_(9300),P=_(5698),Y=_(6590),W=_(8068),G=_(4671);function ee(J,X){const H=arguments.length>=2;return Z=>Z.pipe(J?(0,d.h)((K,Ie)=>J(K,Ie,Z)):G.y,(0,P.q)(1),H?(0,Y.d)(X):(0,W.T)(()=>new s.K))}},4004:(st,ye,_)=>{_.d(ye,{U:()=>P});var s=_(4482),d=_(5403);function P(Y,W){return(0,s.e)((G,ee)=>{let J=0;G.subscribe((0,d.x)(ee,X=>{ee.next(Y.call(W,X,J++))}))})}},8189:(st,ye,_)=>{_.d(ye,{J:()=>P});var s=_(5577),d=_(4671);function P(Y=1/0){return(0,s.z)(d.y,Y)}},5577:(st,ye,_)=>{_.d(ye,{z:()=>J});var s=_(4004),d=_(8421),P=_(4482),Y=_(9672),W=_(5403),ee=_(576);function J(X,H,Z=1/0){return(0,ee.m)(H)?J((K,Ie)=>(0,s.U)((ve,ke)=>H(K,ve,Ie,ke))((0,d.Xf)(X(K,Ie))),Z):("number"==typeof H&&(Z=H),(0,P.e)((K,Ie)=>function G(X,H,Z,K,Ie,ve,ke,ze){const Se=[];let Ne=0,Pe=0,Ee=!1;const Ce=()=>{Ee&&!Se.length&&!Ne&&H.complete()},j=ce=>Ne<K?le(ce):Se.push(ce),le=ce=>{ve&&H.next(ce),Ne++;let me=!1;(0,d.Xf)(Z(ce,Pe++)).subscribe((0,W.x)(H,se=>{Ie?.(se),ve?j(se):H.next(se)},()=>{me=!0},void 0,()=>{if(me)try{for(Ne--;Se.length&&Ne<K;){const se=Se.shift();ke?(0,Y.f)(H,ke,()=>le(se)):le(se)}Ce()}catch(se){H.error(se)}}))};return X.subscribe((0,W.x)(H,j,()=>{Ee=!0,Ce()})),()=>{ze?.()}}(K,Ie,X,Z)))}},5363:(st,ye,_)=>{_.d(ye,{Q:()=>Y});var s=_(9672),d=_(4482),P=_(5403);function Y(W,G=0){return(0,d.e)((ee,J)=>{ee.subscribe((0,P.x)(J,X=>(0,s.f)(J,W,()=>J.next(X),G),()=>(0,s.f)(J,W,()=>J.complete(),G),X=>(0,s.f)(J,W,()=>J.error(X),G)))})}},5026:(st,ye,_)=>{_.d(ye,{R:()=>Y});var s=_(4482),d=_(5403);function P(W,G,ee,J,X){return(H,Z)=>{let K=ee,Ie=G,ve=0;H.subscribe((0,d.x)(Z,ke=>{const ze=ve++;Ie=K?W(Ie,ke,ze):(K=!0,ke),J&&Z.next(Ie)},X&&(()=>{K&&Z.next(Ie),Z.complete()})))}}function Y(W,G){return(0,s.e)(P(W,G,arguments.length>=2,!0))}},3099:(st,ye,_)=>{_.d(ye,{B:()=>W});var s=_(8421),d=_(7579),P=_(930),Y=_(4482);function W(ee={}){const{connector:J=(()=>new d.x),resetOnError:X=!0,resetOnComplete:H=!0,resetOnRefCountZero:Z=!0}=ee;return K=>{let Ie,ve,ke,ze=0,Se=!1,Ne=!1;const Pe=()=>{ve?.unsubscribe(),ve=void 0},Ee=()=>{Pe(),Ie=ke=void 0,Se=Ne=!1},Ce=()=>{const j=Ie;Ee(),j?.unsubscribe()};return(0,Y.e)((j,le)=>{ze++,!Ne&&!Se&&Pe();const ce=ke=ke??J();le.add(()=>{ze--,0===ze&&!Ne&&!Se&&(ve=G(Ce,Z))}),ce.subscribe(le),!Ie&&ze>0&&(Ie=new P.Hp({next:me=>ce.next(me),error:me=>{Ne=!0,Pe(),ve=G(Ee,X,me),ce.error(me)},complete:()=>{Se=!0,Pe(),ve=G(Ee,H),ce.complete()}}),(0,s.Xf)(j).subscribe(Ie))})(K)}}function G(ee,J,...X){if(!0===J)return void ee();if(!1===J)return;const H=new P.Hp({next:()=>{H.unsubscribe(),ee()}});return J(...X).subscribe(H)}},4782:(st,ye,_)=>{_.d(ye,{d:()=>P});var s=_(4707),d=_(3099);function P(Y,W,G){let ee,J=!1;return Y&&"object"==typeof Y?({bufferSize:ee=1/0,windowTime:W=1/0,refCount:J=!1,scheduler:G}=Y):ee=Y??1/0,(0,d.B)({connector:()=>new s.t(ee,W,G),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:J})}},5684:(st,ye,_)=>{_.d(ye,{T:()=>d});var s=_(9300);function d(P){return(0,s.h)((Y,W)=>P<=W)}},8675:(st,ye,_)=>{_.d(ye,{O:()=>Y});var s=_(7272),d=_(3269),P=_(4482);function Y(...W){const G=(0,d.yG)(W);return(0,P.e)((ee,J)=>{(G?(0,s.z)(W,ee,G):(0,s.z)(W,ee)).subscribe(J)})}},9468:(st,ye,_)=>{_.d(ye,{R:()=>d});var s=_(4482);function d(P,Y=0){return(0,s.e)((W,G)=>{G.add(P.schedule(()=>W.subscribe(G),Y))})}},3900:(st,ye,_)=>{_.d(ye,{w:()=>Y});var s=_(8421),d=_(4482),P=_(5403);function Y(W,G){return(0,d.e)((ee,J)=>{let X=null,H=0,Z=!1;const K=()=>Z&&!X&&J.complete();ee.subscribe((0,P.x)(J,Ie=>{X?.unsubscribe();let ve=0;const ke=H++;(0,s.Xf)(W(Ie,ke)).subscribe(X=(0,P.x)(J,ze=>J.next(G?G(Ie,ze,ke,ve++):ze),()=>{X=null,K()}))},()=>{Z=!0,K()}))})}},5698:(st,ye,_)=>{_.d(ye,{q:()=>Y});var s=_(515),d=_(4482),P=_(5403);function Y(W){return W<=0?()=>s.E:(0,d.e)((G,ee)=>{let J=0;G.subscribe((0,P.x)(ee,X=>{++J<=W&&(ee.next(X),W<=J&&ee.complete())}))})}},2722:(st,ye,_)=>{_.d(ye,{R:()=>W});var s=_(4482),d=_(5403),P=_(8421),Y=_(5032);function W(G){return(0,s.e)((ee,J)=>{(0,P.Xf)(G).subscribe((0,d.x)(J,()=>J.complete(),Y.Z)),!J.closed&&ee.subscribe(J)})}},2529:(st,ye,_)=>{_.d(ye,{o:()=>P});var s=_(4482),d=_(5403);function P(Y,W=!1){return(0,s.e)((G,ee)=>{let J=0;G.subscribe((0,d.x)(ee,X=>{const H=Y(X,J++);(H||W)&&ee.next(X),!H&&ee.complete()}))})}},8505:(st,ye,_)=>{_.d(ye,{b:()=>W});var s=_(576),d=_(4482),P=_(5403),Y=_(4671);function W(G,ee,J){const X=(0,s.m)(G)||ee||J?{next:G,error:ee,complete:J}:G;return X?(0,d.e)((H,Z)=>{var K;null===(K=X.subscribe)||void 0===K||K.call(X);let Ie=!0;H.subscribe((0,P.x)(Z,ve=>{var ke;null===(ke=X.next)||void 0===ke||ke.call(X,ve),Z.next(ve)},()=>{var ve;Ie=!1,null===(ve=X.complete)||void 0===ve||ve.call(X),Z.complete()},ve=>{var ke;Ie=!1,null===(ke=X.error)||void 0===ke||ke.call(X,ve),Z.error(ve)},()=>{var ve,ke;Ie&&(null===(ve=X.unsubscribe)||void 0===ve||ve.call(X)),null===(ke=X.finalize)||void 0===ke||ke.call(X)}))}):Y.y}},8068:(st,ye,_)=>{_.d(ye,{T:()=>Y});var s=_(6805),d=_(4482),P=_(5403);function Y(G=W){return(0,d.e)((ee,J)=>{let X=!1;ee.subscribe((0,P.x)(J,H=>{X=!0,J.next(H)},()=>X?J.complete():J.error(G())))})}function W(){return new s.K}},4408:(st,ye,_)=>{_.d(ye,{o:()=>W});var s=_(727);class d extends s.w0{constructor(ee,J){super()}schedule(ee,J=0){return this}}const P={setInterval(G,ee,...J){const{delegate:X}=P;return X?.setInterval?X.setInterval(G,ee,...J):setInterval(G,ee,...J)},clearInterval(G){const{delegate:ee}=P;return(ee?.clearInterval||clearInterval)(G)},delegate:void 0};var Y=_(8737);class W extends d{constructor(ee,J){super(ee,J),this.scheduler=ee,this.work=J,this.pending=!1}schedule(ee,J=0){if(this.closed)return this;this.state=ee;const X=this.id,H=this.scheduler;return null!=X&&(this.id=this.recycleAsyncId(H,X,J)),this.pending=!0,this.delay=J,this.id=this.id||this.requestAsyncId(H,this.id,J),this}requestAsyncId(ee,J,X=0){return P.setInterval(ee.flush.bind(ee,this),X)}recycleAsyncId(ee,J,X=0){if(null!=X&&this.delay===X&&!1===this.pending)return J;P.clearInterval(J)}execute(ee,J){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const X=this._execute(ee,J);if(X)return X;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ee,J){let H,X=!1;try{this.work(ee)}catch(Z){X=!0,H=Z||new Error("Scheduled action threw falsy error")}if(X)return this.unsubscribe(),H}unsubscribe(){if(!this.closed){const{id:ee,scheduler:J}=this,{actions:X}=J;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.P)(X,this),null!=ee&&(this.id=this.recycleAsyncId(J,ee,null)),this.delay=null,super.unsubscribe()}}}},7565:(st,ye,_)=>{_.d(ye,{v:()=>P});var s=_(6063);class d{constructor(W,G=d.now){this.schedulerActionCtor=W,this.now=G}schedule(W,G=0,ee){return new this.schedulerActionCtor(this,W).schedule(ee,G)}}d.now=s.l.now;class P extends d{constructor(W,G=d.now){super(W,G),this.actions=[],this._active=!1,this._scheduled=void 0}flush(W){const{actions:G}=this;if(this._active)return void G.push(W);let ee;this._active=!0;do{if(ee=W.execute(W.state,W.delay))break}while(W=G.shift());if(this._active=!1,ee){for(;W=G.shift();)W.unsubscribe();throw ee}}}},4986:(st,ye,_)=>{_.d(ye,{P:()=>Y,z:()=>P});var s=_(4408);const P=new(_(7565).v)(s.o),Y=P},6063:(st,ye,_)=>{_.d(ye,{l:()=>s});const s={now:()=>(s.delegate||Date).now(),delegate:void 0}},3410:(st,ye,_)=>{_.d(ye,{z:()=>s});const s={setTimeout(d,P,...Y){const{delegate:W}=s;return W?.setTimeout?W.setTimeout(d,P,...Y):setTimeout(d,P,...Y)},clearTimeout(d){const{delegate:P}=s;return(P?.clearTimeout||clearTimeout)(d)},delegate:void 0}},2202:(st,ye,_)=>{_.d(ye,{h:()=>d});const d=function s(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(st,ye,_)=>{_.d(ye,{L:()=>s});const s="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(st,ye,_)=>{_.d(ye,{K:()=>d});const d=(0,_(3888).d)(P=>function(){P(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(st,ye,_)=>{_.d(ye,{_6:()=>G,jO:()=>Y,yG:()=>W});var s=_(576),d=_(3532);function P(ee){return ee[ee.length-1]}function Y(ee){return(0,s.m)(P(ee))?ee.pop():void 0}function W(ee){return(0,d.K)(P(ee))?ee.pop():void 0}function G(ee,J){return"number"==typeof P(ee)?ee.pop():J}},4742:(st,ye,_)=>{_.d(ye,{D:()=>W});const{isArray:s}=Array,{getPrototypeOf:d,prototype:P,keys:Y}=Object;function W(ee){if(1===ee.length){const J=ee[0];if(s(J))return{args:J,keys:null};if(function G(ee){return ee&&"object"==typeof ee&&d(ee)===P}(J)){const X=Y(J);return{args:X.map(H=>J[H]),keys:X}}}return{args:ee,keys:null}}},8737:(st,ye,_)=>{function s(d,P){if(d){const Y=d.indexOf(P);0<=Y&&d.splice(Y,1)}}_.d(ye,{P:()=>s})},3888:(st,ye,_)=>{function s(d){const Y=d(W=>{Error.call(W),W.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}_.d(ye,{d:()=>s})},1810:(st,ye,_)=>{function s(d,P){return d.reduce((Y,W,G)=>(Y[W]=P[G],Y),{})}_.d(ye,{n:()=>s})},2806:(st,ye,_)=>{_.d(ye,{O:()=>Y,x:()=>P});var s=_(2416);let d=null;function P(W){if(s.v.useDeprecatedSynchronousErrorHandling){const G=!d;if(G&&(d={errorThrown:!1,error:null}),W(),G){const{errorThrown:ee,error:J}=d;if(d=null,ee)throw J}}else W()}function Y(W){s.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=W)}},9672:(st,ye,_)=>{function s(d,P,Y,W=0,G=!1){const ee=P.schedule(function(){Y(),G?d.add(this.schedule(null,W)):this.unsubscribe()},W);if(d.add(ee),!G)return ee}_.d(ye,{f:()=>s})},4671:(st,ye,_)=>{function s(d){return d}_.d(ye,{y:()=>s})},1144:(st,ye,_)=>{_.d(ye,{z:()=>s});const s=d=>d&&"number"==typeof d.length&&"function"!=typeof d},2206:(st,ye,_)=>{_.d(ye,{D:()=>d});var s=_(576);function d(P){return Symbol.asyncIterator&&(0,s.m)(P?.[Symbol.asyncIterator])}},1165:(st,ye,_)=>{function s(d){return d instanceof Date&&!isNaN(d)}_.d(ye,{q:()=>s})},576:(st,ye,_)=>{function s(d){return"function"==typeof d}_.d(ye,{m:()=>s})},3670:(st,ye,_)=>{_.d(ye,{c:()=>P});var s=_(8822),d=_(576);function P(Y){return(0,d.m)(Y[s.L])}},6495:(st,ye,_)=>{_.d(ye,{T:()=>P});var s=_(2202),d=_(576);function P(Y){return(0,d.m)(Y?.[s.h])}},8239:(st,ye,_)=>{_.d(ye,{t:()=>d});var s=_(576);function d(P){return(0,s.m)(P?.then)}},3260:(st,ye,_)=>{_.d(ye,{L:()=>Y,Q:()=>P});var s=_(655),d=_(576);function P(W){return(0,s.FC)(this,arguments,function*(){const ee=W.getReader();try{for(;;){const{value:J,done:X}=yield(0,s.qq)(ee.read());if(X)return yield(0,s.qq)(void 0);yield yield(0,s.qq)(J)}}finally{ee.releaseLock()}})}function Y(W){return(0,d.m)(W?.getReader)}},3532:(st,ye,_)=>{_.d(ye,{K:()=>d});var s=_(576);function d(P){return P&&(0,s.m)(P.schedule)}},4482:(st,ye,_)=>{_.d(ye,{A:()=>d,e:()=>P});var s=_(576);function d(Y){return(0,s.m)(Y?.lift)}function P(Y){return W=>{if(d(W))return W.lift(function(G){try{return Y(G,this)}catch(ee){this.error(ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(st,ye,_)=>{_.d(ye,{Z:()=>Y});var s=_(4004);const{isArray:d}=Array;function Y(W){return(0,s.U)(G=>function P(W,G){return d(G)?W(...G):W(G)}(W,G))}},5032:(st,ye,_)=>{function s(){}_.d(ye,{Z:()=>s})},9635:(st,ye,_)=>{_.d(ye,{U:()=>P,z:()=>d});var s=_(4671);function d(...Y){return P(Y)}function P(Y){return 0===Y.length?s.y:1===Y.length?Y[0]:function(G){return Y.reduce((ee,J)=>J(ee),G)}}},7849:(st,ye,_)=>{_.d(ye,{h:()=>P});var s=_(2416),d=_(3410);function P(Y){d.z.setTimeout(()=>{const{onUnhandledError:W}=s.v;if(!W)throw Y;W(Y)})}},4532:(st,ye,_)=>{function s(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}_.d(ye,{z:()=>s})},655:(st,ye,_)=>{function Y(q,oe){var Ae={};for(var _e in q)Object.prototype.hasOwnProperty.call(q,_e)&&oe.indexOf(_e)<0&&(Ae[_e]=q[_e]);if(null!=q&&"function"==typeof Object.getOwnPropertySymbols){var Ke=0;for(_e=Object.getOwnPropertySymbols(q);Ke<_e.length;Ke++)oe.indexOf(_e[Ke])<0&&Object.prototype.propertyIsEnumerable.call(q,_e[Ke])&&(Ae[_e[Ke]]=q[_e[Ke]])}return Ae}function J(q,oe,Ae,_e){return new(Ae||(Ae=Promise))(function(Je,_t){function Wt(Ot){try{Rt(_e.next(Ot))}catch(Ue){_t(Ue)}}function Qt(Ot){try{Rt(_e.throw(Ot))}catch(Ue){_t(Ue)}}function Rt(Ot){Ot.done?Je(Ot.value):function Ke(Je){return Je instanceof Ae?Je:new Ae(function(_t){_t(Je)})}(Ot.value).then(Wt,Qt)}Rt((_e=_e.apply(q,oe||[])).next())})}function Se(q){return this instanceof Se?(this.v=q,this):new Se(q)}function Ne(q,oe,Ae){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ke,_e=Ae.apply(q,oe||[]),Je=[];return Ke={},_t("next"),_t("throw"),_t("return"),Ke[Symbol.asyncIterator]=function(){return this},Ke;function _t(it){_e[it]&&(Ke[it]=function(he){return new Promise(function(Le,ct){Je.push([it,he,Le,ct])>1||Wt(it,he)})})}function Wt(it,he){try{!function Qt(it){it.value instanceof Se?Promise.resolve(it.value.v).then(Rt,Ot):Ue(Je[0][2],it)}(_e[it](he))}catch(Le){Ue(Je[0][3],Le)}}function Rt(it){Wt("next",it)}function Ot(it){Wt("throw",it)}function Ue(it,he){it(he),Je.shift(),Je.length&&Wt(Je[0][0],Je[0][1])}}function Ee(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,oe=q[Symbol.asyncIterator];return oe?oe.call(q):(q=function K(q){var oe="function"==typeof Symbol&&Symbol.iterator,Ae=oe&&q[oe],_e=0;if(Ae)return Ae.call(q);if(q&&"number"==typeof q.length)return{next:function(){return q&&_e>=q.length&&(q=void 0),{value:q&&q[_e++],done:!q}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(q),Ae={},_e("next"),_e("throw"),_e("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae);function _e(Je){Ae[Je]=q[Je]&&function(_t){return new Promise(function(Wt,Qt){!function Ke(Je,_t,Wt,Qt){Promise.resolve(Qt).then(function(Rt){Je({value:Rt,done:Wt})},_t)}(Wt,Qt,(_t=q[Je](_t)).done,_t.value)})}}}_.d(ye,{FC:()=>Ne,KL:()=>Ee,_T:()=>Y,mG:()=>J,qq:()=>Se})},7340:(st,ye,_)=>{_.d(ye,{F4:()=>H,IO:()=>ke,LC:()=>d,SB:()=>X,X$:()=>Y,ZE:()=>Pe,ZN:()=>Ne,_j:()=>s,eR:()=>Z,jt:()=>W,k1:()=>Ee,l3:()=>P,oB:()=>J,pV:()=>Ie,ru:()=>G,vP:()=>ee});class s{}class d{}const P="*";function Y(Ce,j){return{type:7,name:Ce,definitions:j,options:{}}}function W(Ce,j=null){return{type:4,styles:j,timings:Ce}}function G(Ce,j=null){return{type:3,steps:Ce,options:j}}function ee(Ce,j=null){return{type:2,steps:Ce,options:j}}function J(Ce){return{type:6,styles:Ce,offset:null}}function X(Ce,j,le){return{type:0,name:Ce,styles:j,options:le}}function H(Ce){return{type:5,steps:Ce}}function Z(Ce,j,le=null){return{type:1,expr:Ce,animation:j,options:le}}function Ie(Ce=null){return{type:9,options:Ce}}function ke(Ce,j,le=null){return{type:11,selector:Ce,animation:j,options:le}}function Se(Ce){Promise.resolve().then(Ce)}class Ne{constructor(j=0,le=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=j+le}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}onStart(j){this._originalOnStartFns.push(j),this._onStartFns.push(j)}onDone(j){this._originalOnDoneFns.push(j),this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Se(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(j=>j()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(j=>j()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(j){this._position=this.totalTime?j*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(j){const le="start"==j?this._onStartFns:this._onDoneFns;le.forEach(ce=>ce()),le.length=0}}class Pe{constructor(j){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=j;let le=0,ce=0,me=0;const se=this.players.length;0==se?Se(()=>this._onFinish()):this.players.forEach(ge=>{ge.onDone(()=>{++le==se&&this._onFinish()}),ge.onDestroy(()=>{++ce==se&&this._onDestroy()}),ge.onStart(()=>{++me==se&&this._onStart()})}),this.totalTime=this.players.reduce((ge,q)=>Math.max(ge,q.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}init(){this.players.forEach(j=>j.init())}onStart(j){this._onStartFns.push(j)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(j=>j()),this._onStartFns=[])}onDone(j){this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(j=>j.play())}pause(){this.players.forEach(j=>j.pause())}restart(){this.players.forEach(j=>j.restart())}finish(){this._onFinish(),this.players.forEach(j=>j.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(j=>j.destroy()),this._onDestroyFns.forEach(j=>j()),this._onDestroyFns=[])}reset(){this.players.forEach(j=>j.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(j){const le=j*this.totalTime;this.players.forEach(ce=>{const me=ce.totalTime?Math.min(1,le/ce.totalTime):1;ce.setPosition(me)})}getPosition(){const j=this.players.reduce((le,ce)=>null===le||ce.totalTime>le.totalTime?ce:le,null);return null!=j?j.getPosition():0}beforeDestroy(){this.players.forEach(j=>{j.beforeDestroy&&j.beforeDestroy()})}triggerCallback(j){const le="start"==j?this._onStartFns:this._onDoneFns;le.forEach(ce=>ce()),le.length=0}}const Ee="!"},2693:(st,ye,_)=>{_.d(ye,{rt:()=>Gt,s1:()=>jt,$s:()=>it,kH:()=>pe,mK:()=>Bt,Em:()=>Ye,tE:()=>Q,qV:()=>Hn,qm:()=>Vt,ic:()=>ne,Kd:()=>M,X6:()=>Fe,yG:()=>qe});var s=_(6895),d=_(4650),P=_(3353),Y=_(7579),W=_(727),G=_(1135),ee=_(9646),J=_(9521),X=_(8505),H=_(8372),Z=_(9300),K=_(4004),Ie=_(5698),ve=_(5684),ke=_(1884),ze=_(2722),Se=_(1281),Ne=_(9643),Pe=_(9841),Ee=_(7272),Ce=_(9751),j=_(8675);const ce=new Set;let me,se=(()=>{class De{constructor(w){this._platform=w,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):q}matchMedia(w){return(this._platform.WEBKIT||this._platform.BLINK)&&function ge(De){if(!ce.has(De))try{me||(me=document.createElement("style"),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${De} {body{ }}`,0),ce.add(De))}catch(I){console.error(I)}}(w),this._matchMedia(w)}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(P.t4))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function q(De){return{matches:"all"===De||""===De,media:De,addListener:()=>{},removeListener:()=>{}}}let oe=(()=>{class De{constructor(w,S){this._mediaMatcher=w,this._zone=S,this._queries=new Map,this._destroySubject=new Y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(w){return Ae((0,Se.Eq)(w)).some($=>this._registerQuery($).mql.matches)}observe(w){const $=Ae((0,Se.Eq)(w)).map(et=>this._registerQuery(et).observable);let de=(0,Pe.a)($);return de=(0,Ee.z)(de.pipe((0,Ie.q)(1)),de.pipe((0,ve.T)(1),(0,H.b)(0))),de.pipe((0,K.U)(et=>{const bt={matches:!1,breakpoints:{}};return et.forEach(({matches:In,query:On})=>{bt.matches=bt.matches||In,bt.breakpoints[On]=In}),bt}))}_registerQuery(w){if(this._queries.has(w))return this._queries.get(w);const S=this._mediaMatcher.matchMedia(w),de={observable:new Ce.y(et=>{const bt=In=>this._zone.run(()=>et.next(In));return S.addListener(bt),()=>{S.removeListener(bt)}}).pipe((0,j.O)(S),(0,K.U)(({matches:et})=>({query:w,matches:et})),(0,ze.R)(this._destroySubject)),mql:S};return this._queries.set(w,de),de}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(se),d.LFG(d.R0b))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function Ae(De){return De.map(I=>I.split(",")).reduce((I,w)=>I.concat(w)).map(I=>I.trim())}function Wt(De,I){return(De.getAttribute(I)||"").match(/\S+/g)||[]}const Rt="cdk-describedby-message",Ot="cdk-describedby-host";let Ue=0,it=(()=>{class De{constructor(w,S){this._platform=S,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ue++,this._document=w,this._id=(0,d.f3M)(d.AFp)+"-"+Ue++}describe(w,S,$){if(!this._canBeDescribed(w,S))return;const de=he(S,$);"string"!=typeof S?(Le(S,this._id),this._messageRegistry.set(de,{messageElement:S,referenceCount:0})):this._messageRegistry.has(de)||this._createMessageElement(S,$),this._isElementDescribedByMessage(w,de)||this._addMessageReference(w,de)}removeDescription(w,S,$){if(!S||!this._isElementNode(w))return;const de=he(S,$);if(this._isElementDescribedByMessage(w,de)&&this._removeMessageReference(w,de),"string"==typeof S){const et=this._messageRegistry.get(de);et&&0===et.referenceCount&&this._deleteMessageElement(de)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const w=this._document.querySelectorAll(`[${Ot}="${this._id}"]`);for(let S=0;S<w.length;S++)this._removeCdkDescribedByReferenceIds(w[S]),w[S].removeAttribute(Ot);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(w,S){const $=this._document.createElement("div");Le($,this._id),$.textContent=w,S&&$.setAttribute("role",S),this._createMessagesContainer(),this._messagesContainer.appendChild($),this._messageRegistry.set(he(w,S),{messageElement:$,referenceCount:0})}_deleteMessageElement(w){this._messageRegistry.get(w)?.messageElement?.remove(),this._messageRegistry.delete(w)}_createMessagesContainer(){if(this._messagesContainer)return;const w="cdk-describedby-message-container",S=this._document.querySelectorAll(`.${w}[platform="server"]`);for(let de=0;de<S.length;de++)S[de].remove();const $=this._document.createElement("div");$.style.visibility="hidden",$.classList.add(w),$.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&$.setAttribute("platform","server"),this._document.body.appendChild($),this._messagesContainer=$}_removeCdkDescribedByReferenceIds(w){const S=Wt(w,"aria-describedby").filter($=>0!=$.indexOf(Rt));w.setAttribute("aria-describedby",S.join(" "))}_addMessageReference(w,S){const $=this._messageRegistry.get(S);(function Je(De,I,w){const S=Wt(De,I);S.some($=>$.trim()==w.trim())||(S.push(w.trim()),De.setAttribute(I,S.join(" ")))})(w,"aria-describedby",$.messageElement.id),w.setAttribute(Ot,this._id),$.referenceCount++}_removeMessageReference(w,S){const $=this._messageRegistry.get(S);$.referenceCount--,function _t(De,I,w){const $=Wt(De,I).filter(de=>de!=w.trim());$.length?De.setAttribute(I,$.join(" ")):De.removeAttribute(I)}(w,"aria-describedby",$.messageElement.id),w.removeAttribute(Ot)}_isElementDescribedByMessage(w,S){const $=Wt(w,"aria-describedby"),de=this._messageRegistry.get(S),et=de&&de.messageElement.id;return!!et&&-1!=$.indexOf(et)}_canBeDescribed(w,S){if(!this._isElementNode(w))return!1;if(S&&"object"==typeof S)return!0;const $=null==S?"":`${S}`.trim(),de=w.getAttribute("aria-label");return!(!$||de&&de.trim()===$)}_isElementNode(w){return w.nodeType===this._document.ELEMENT_NODE}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(s.K0),d.LFG(P.t4))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function he(De,I){return"string"==typeof De?`${I||""}/${De}`:De}function Le(De,I){De.id||(De.id=`${Rt}-${I}-${Ue++}`)}class ct{constructor(I){this._items=I,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y.x,this._typeaheadSubscription=W.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=w=>w.disabled,this._pressedLetters=[],this.tabOut=new Y.x,this.change=new Y.x,I instanceof d.n_E&&(this._itemChangesSubscription=I.changes.subscribe(w=>{if(this._activeItem){const $=w.toArray().indexOf(this._activeItem);$>-1&&$!==this._activeItemIndex&&(this._activeItemIndex=$)}}))}skipPredicate(I){return this._skipPredicateFn=I,this}withWrap(I=!0){return this._wrap=I,this}withVerticalOrientation(I=!0){return this._vertical=I,this}withHorizontalOrientation(I){return this._horizontal=I,this}withAllowedModifierKeys(I){return this._allowedModifierKeys=I,this}withTypeAhead(I=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,X.b)(w=>this._pressedLetters.push(w)),(0,H.b)(I),(0,Z.h)(()=>this._pressedLetters.length>0),(0,K.U)(()=>this._pressedLetters.join(""))).subscribe(w=>{const S=this._getItemsArray();for(let $=1;$<S.length+1;$++){const de=(this._activeItemIndex+$)%S.length,et=S[de];if(!this._skipPredicateFn(et)&&0===et.getLabel().toUpperCase().trim().indexOf(w)){this.setActiveItem(de);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(I=!0){return this._homeAndEnd=I,this}withPageUpDown(I=!0,w=10){return this._pageUpAndDown={enabled:I,delta:w},this}setActiveItem(I){const w=this._activeItem;this.updateActiveItem(I),this._activeItem!==w&&this.change.next(this._activeItemIndex)}onKeydown(I){const w=I.keyCode,$=["altKey","ctrlKey","metaKey","shiftKey"].every(de=>!I[de]||this._allowedModifierKeys.indexOf(de)>-1);switch(w){case J.Mf:return void this.tabOut.next();case J.JH:if(this._vertical&&$){this.setNextItemActive();break}return;case J.LH:if(this._vertical&&$){this.setPreviousItemActive();break}return;case J.SV:if(this._horizontal&&$){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case J.oh:if(this._horizontal&&$){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case J.Sd:if(this._homeAndEnd&&$){this.setFirstItemActive();break}return;case J.uR:if(this._homeAndEnd&&$){this.setLastItemActive();break}return;case J.Ku:if(this._pageUpAndDown.enabled&&$){const de=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(de>0?de:0,1);break}return;case J.VM:if(this._pageUpAndDown.enabled&&$){const de=this._activeItemIndex+this._pageUpAndDown.delta,et=this._getItemsArray().length;this._setActiveItemByIndex(de<et?de:et-1,-1);break}return;default:return void(($||(0,J.Vb)(I,"shiftKey"))&&(I.key&&1===I.key.length?this._letterKeyStream.next(I.key.toLocaleUpperCase()):(w>=J.A&&w<=J.Z||w>=J.xE&&w<=J.aO)&&this._letterKeyStream.next(String.fromCharCode(w))))}this._pressedLetters=[],I.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(I){const w=this._getItemsArray(),S="number"==typeof I?I:w.indexOf(I);this._activeItem=w[S]??null,this._activeItemIndex=S}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(I){this._wrap?this._setActiveInWrapMode(I):this._setActiveInDefaultMode(I)}_setActiveInWrapMode(I){const w=this._getItemsArray();for(let S=1;S<=w.length;S++){const $=(this._activeItemIndex+I*S+w.length)%w.length;if(!this._skipPredicateFn(w[$]))return void this.setActiveItem($)}}_setActiveInDefaultMode(I){this._setActiveItemByIndex(this._activeItemIndex+I,I)}_setActiveItemByIndex(I,w){const S=this._getItemsArray();if(S[I]){for(;this._skipPredicateFn(S[I]);)if(!S[I+=w])return;this.setActiveItem(I)}}_getItemsArray(){return this._items instanceof d.n_E?this._items.toArray():this._items}}class jt extends ct{setActiveItem(I){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(I),this.activeItem&&this.activeItem.setActiveStyles()}}class Ye extends ct{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(I){return this._origin=I,this}setActiveItem(I){super.setActiveItem(I),this.activeItem&&this.activeItem.focus(this._origin)}}let ne=(()=>{class De{constructor(w){this._platform=w}isDisabled(w){return w.hasAttribute("disabled")}isVisible(w){return function rt(De){return!!(De.offsetWidth||De.offsetHeight||"function"==typeof De.getClientRects&&De.getClientRects().length)}(w)&&"visible"===getComputedStyle(w).visibility}isTabbable(w){if(!this._platform.isBrowser)return!1;const S=function Qe(De){try{return De.frameElement}catch{return null}}(function bn(De){return De.ownerDocument&&De.ownerDocument.defaultView||window}(w));if(S&&(-1===lt(S)||!this.isVisible(S)))return!1;let $=w.nodeName.toLowerCase(),de=lt(w);return w.hasAttribute("contenteditable")?-1!==de:!("iframe"===$||"object"===$||this._platform.WEBKIT&&this._platform.IOS&&!function an(De){let I=De.nodeName.toLowerCase(),w="input"===I&&De.type;return"text"===w||"password"===w||"select"===I||"textarea"===I}(w))&&("audio"===$?!!w.hasAttribute("controls")&&-1!==de:"video"===$?-1!==de&&(null!==de||this._platform.FIREFOX||w.hasAttribute("controls")):w.tabIndex>=0)}isFocusable(w,S){return function Un(De){return!function Dt(De){return function mn(De){return"input"==De.nodeName.toLowerCase()}(De)&&"hidden"==De.type}(De)&&(function Mt(De){let I=De.nodeName.toLowerCase();return"input"===I||"select"===I||"button"===I||"textarea"===I}(De)||function Pt(De){return function qt(De){return"a"==De.nodeName.toLowerCase()}(De)&&De.hasAttribute("href")}(De)||De.hasAttribute("contenteditable")||_n(De))}(w)&&!this.isDisabled(w)&&(S?.ignoreVisibility||this.isVisible(w))}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(P.t4))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function _n(De){if(!De.hasAttribute("tabindex")||void 0===De.tabIndex)return!1;let I=De.getAttribute("tabindex");return!(!I||isNaN(parseInt(I,10)))}function lt(De){if(!_n(De))return null;const I=parseInt(De.getAttribute("tabindex")||"",10);return isNaN(I)?-1:I}class wn{get enabled(){return this._enabled}set enabled(I){this._enabled=I,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(I,this._startAnchor),this._toggleAnchorTabIndex(I,this._endAnchor))}constructor(I,w,S,$,de=!1){this._element=I,this._checker=w,this._ngZone=S,this._document=$,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,de||this.attachAnchors()}destroy(){const I=this._startAnchor,w=this._endAnchor;I&&(I.removeEventListener("focus",this.startAnchorListener),I.remove()),w&&(w.removeEventListener("focus",this.endAnchorListener),w.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(I){return new Promise(w=>{this._executeOnStable(()=>w(this.focusInitialElement(I)))})}focusFirstTabbableElementWhenReady(I){return new Promise(w=>{this._executeOnStable(()=>w(this.focusFirstTabbableElement(I)))})}focusLastTabbableElementWhenReady(I){return new Promise(w=>{this._executeOnStable(()=>w(this.focusLastTabbableElement(I)))})}_getRegionBoundary(I){const w=this._element.querySelectorAll(`[cdk-focus-region-${I}], [cdkFocusRegion${I}], [cdk-focus-${I}]`);return"start"==I?w.length?w[0]:this._getFirstTabbableElement(this._element):w.length?w[w.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(I){const w=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(w){if(!this._checker.isFocusable(w)){const S=this._getFirstTabbableElement(w);return S?.focus(I),!!S}return w.focus(I),!0}return this.focusFirstTabbableElement(I)}focusFirstTabbableElement(I){const w=this._getRegionBoundary("start");return w&&w.focus(I),!!w}focusLastTabbableElement(I){const w=this._getRegionBoundary("end");return w&&w.focus(I),!!w}hasAttached(){return this._hasAttached}_getFirstTabbableElement(I){if(this._checker.isFocusable(I)&&this._checker.isTabbable(I))return I;const w=I.children;for(let S=0;S<w.length;S++){const $=w[S].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(w[S]):null;if($)return $}return null}_getLastTabbableElement(I){if(this._checker.isFocusable(I)&&this._checker.isTabbable(I))return I;const w=I.children;for(let S=w.length-1;S>=0;S--){const $=w[S].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(w[S]):null;if($)return $}return null}_createAnchor(){const I=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,I),I.classList.add("cdk-visually-hidden"),I.classList.add("cdk-focus-trap-anchor"),I.setAttribute("aria-hidden","true"),I}_toggleAnchorTabIndex(I,w){I?w.setAttribute("tabindex","0"):w.removeAttribute("tabindex")}toggleAnchors(I){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(I,this._startAnchor),this._toggleAnchorTabIndex(I,this._endAnchor))}_executeOnStable(I){this._ngZone.isStable?I():this._ngZone.onStable.pipe((0,Ie.q)(1)).subscribe(I)}}let Hn=(()=>{class De{constructor(w,S,$){this._checker=w,this._ngZone=S,this._document=$}create(w,S=!1){return new wn(w,this._checker,this._ngZone,this._document,S)}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(ne),d.LFG(d.R0b),d.LFG(s.K0))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Bt=(()=>{class De{get enabled(){return this.focusTrap.enabled}set enabled(w){this.focusTrap.enabled=(0,Se.Ig)(w)}get autoCapture(){return this._autoCapture}set autoCapture(w){this._autoCapture=(0,Se.Ig)(w)}constructor(w,S,$){this._elementRef=w,this._focusTrapFactory=S,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(w){const S=w.autoCapture;S&&!S.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,P.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return De.\u0275fac=function(w){return new(w||De)(d.Y36(d.SBq),d.Y36(Hn),d.Y36(s.K0))},De.\u0275dir=d.lG2({type:De,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[d.TTD]}),De})();function Fe(De){return 0===De.buttons||0===De.offsetX&&0===De.offsetY}function qe(De){const I=De.touches&&De.touches[0]||De.changedTouches&&De.changedTouches[0];return!(!I||-1!==I.identifier||null!=I.radiusX&&1!==I.radiusX||null!=I.radiusY&&1!==I.radiusY)}const $t=new d.OlP("cdk-input-modality-detector-options"),Nt={ignoreKeys:[J.zL,J.jx,J.b2,J.MW,J.JU]},Ut=(0,P.i$)({passive:!0,capture:!0});let An=(()=>{class De{get mostRecentModality(){return this._modality.value}constructor(w,S,$,de){this._platform=w,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=et=>{this._options?.ignoreKeys?.some(bt=>bt===et.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,P.sA)(et))},this._onMousedown=et=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Fe(et)?"keyboard":"mouse"),this._mostRecentTarget=(0,P.sA)(et))},this._onTouchstart=et=>{qe(et)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,P.sA)(et))},this._options={...Nt,...de},this.modalityDetected=this._modality.pipe((0,ve.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.x)()),w.isBrowser&&S.runOutsideAngular(()=>{$.addEventListener("keydown",this._onKeydown,Ut),$.addEventListener("mousedown",this._onMousedown,Ut),$.addEventListener("touchstart",this._onTouchstart,Ut)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ut),document.removeEventListener("mousedown",this._onMousedown,Ut),document.removeEventListener("touchstart",this._onTouchstart,Ut))}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(P.t4),d.LFG(d.R0b),d.LFG(s.K0),d.LFG($t,8))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const Yn=new d.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ht(){return null}}),ie=new d.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let N=0,M=(()=>{class De{constructor(w,S,$,de){this._ngZone=S,this._defaultOptions=de,this._document=$,this._liveElement=w||this._createLiveElement()}announce(w,...S){const $=this._defaultOptions;let de,et;return 1===S.length&&"number"==typeof S[0]?et=S[0]:[de,et]=S,this.clear(),clearTimeout(this._previousTimeout),de||(de=$&&$.politeness?$.politeness:"polite"),null==et&&$&&(et=$.duration),this._liveElement.setAttribute("aria-live",de),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(bt=>this._currentResolve=bt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=w,"number"==typeof et&&(this._previousTimeout=setTimeout(()=>this.clear(),et)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const w="cdk-live-announcer-element",S=this._document.getElementsByClassName(w),$=this._document.createElement("div");for(let de=0;de<S.length;de++)S[de].remove();return $.classList.add(w),$.classList.add("cdk-visually-hidden"),$.setAttribute("aria-atomic","true"),$.setAttribute("aria-live","polite"),$.id="cdk-live-announcer-"+N++,this._document.body.appendChild($),$}_exposeAnnouncerToModals(w){const S=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let $=0;$<S.length;$++){const de=S[$],et=de.getAttribute("aria-owns");et?-1===et.indexOf(w)&&de.setAttribute("aria-owns",et+" "+w):de.setAttribute("aria-owns",w)}}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(Yn,8),d.LFG(d.R0b),d.LFG(s.K0),d.LFG(ie,8))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();const we=new d.OlP("cdk-focus-monitor-default-options"),B=(0,P.i$)({passive:!0,capture:!0});let Q=(()=>{class De{constructor(w,S,$,de,et){this._ngZone=w,this._platform=S,this._inputModalityDetector=$,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y.x,this._rootNodeFocusAndBlurListener=bt=>{for(let On=(0,P.sA)(bt);On;On=On.parentElement)"focus"===bt.type?this._onFocus(bt,On):this._onBlur(bt,On)},this._document=de,this._detectionMode=et?.detectionMode||0}monitor(w,S=!1){const $=(0,Se.fI)(w);if(!this._platform.isBrowser||1!==$.nodeType)return(0,ee.of)(null);const de=(0,P.kV)($)||this._getDocument(),et=this._elementInfo.get($);if(et)return S&&(et.checkChildren=!0),et.subject;const bt={checkChildren:S,subject:new Y.x,rootNode:de};return this._elementInfo.set($,bt),this._registerGlobalListeners(bt),bt.subject}stopMonitoring(w){const S=(0,Se.fI)(w),$=this._elementInfo.get(S);$&&($.subject.complete(),this._setClasses(S),this._elementInfo.delete(S),this._removeGlobalListeners($))}focusVia(w,S,$){const de=(0,Se.fI)(w);de===this._getDocument().activeElement?this._getClosestElementsInfo(de).forEach(([bt,In])=>this._originChanged(bt,S,In)):(this._setOrigin(S),"function"==typeof de.focus&&de.focus($))}ngOnDestroy(){this._elementInfo.forEach((w,S)=>this.stopMonitoring(S))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(w){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(w)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:w&&this._isLastInteractionFromInputLabel(w)?"mouse":"program"}_shouldBeAttributedToTouch(w){return 1===this._detectionMode||!!w?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(w,S){w.classList.toggle("cdk-focused",!!S),w.classList.toggle("cdk-touch-focused","touch"===S),w.classList.toggle("cdk-keyboard-focused","keyboard"===S),w.classList.toggle("cdk-mouse-focused","mouse"===S),w.classList.toggle("cdk-program-focused","program"===S)}_setOrigin(w,S=!1){this._ngZone.runOutsideAngular(()=>{this._origin=w,this._originFromTouchInteraction="touch"===w&&S,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(w,S){const $=this._elementInfo.get(S),de=(0,P.sA)(w);!$||!$.checkChildren&&S!==de||this._originChanged(S,this._getFocusOrigin(de),$)}_onBlur(w,S){const $=this._elementInfo.get(S);!$||$.checkChildren&&w.relatedTarget instanceof Node&&S.contains(w.relatedTarget)||(this._setClasses(S),this._emitOrigin($,null))}_emitOrigin(w,S){w.subject.observers.length&&this._ngZone.run(()=>w.subject.next(S))}_registerGlobalListeners(w){if(!this._platform.isBrowser)return;const S=w.rootNode,$=this._rootNodeFocusListenerCount.get(S)||0;$||this._ngZone.runOutsideAngular(()=>{S.addEventListener("focus",this._rootNodeFocusAndBlurListener,B),S.addEventListener("blur",this._rootNodeFocusAndBlurListener,B)}),this._rootNodeFocusListenerCount.set(S,$+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ze.R)(this._stopInputModalityDetector)).subscribe(de=>{this._setOrigin(de,!0)}))}_removeGlobalListeners(w){const S=w.rootNode;if(this._rootNodeFocusListenerCount.has(S)){const $=this._rootNodeFocusListenerCount.get(S);$>1?this._rootNodeFocusListenerCount.set(S,$-1):(S.removeEventListener("focus",this._rootNodeFocusAndBlurListener,B),S.removeEventListener("blur",this._rootNodeFocusAndBlurListener,B),this._rootNodeFocusListenerCount.delete(S))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(w,S,$){this._setClasses(w,S),this._emitOrigin($,S),this._lastFocusOrigin=S}_getClosestElementsInfo(w){const S=[];return this._elementInfo.forEach(($,de)=>{(de===w||$.checkChildren&&de.contains(w))&&S.push([de,$])}),S}_isLastInteractionFromInputLabel(w){const{_mostRecentTarget:S,mostRecentModality:$}=this._inputModalityDetector;if("mouse"!==$||!S||S===w||"INPUT"!==w.nodeName&&"TEXTAREA"!==w.nodeName||w.disabled)return!1;const de=w.labels;if(de)for(let et=0;et<de.length;et++)if(de[et].contains(S))return!0;return!1}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(d.R0b),d.LFG(P.t4),d.LFG(An),d.LFG(s.K0,8),d.LFG(we,8))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),pe=(()=>{class De{constructor(w,S){this._elementRef=w,this._focusMonitor=S,this._focusOrigin=null,this.cdkFocusChange=new d.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const w=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(w,1===w.nodeType&&w.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(S=>{this._focusOrigin=S,this.cdkFocusChange.emit(S)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return De.\u0275fac=function(w){return new(w||De)(d.Y36(d.SBq),d.Y36(Q))},De.\u0275dir=d.lG2({type:De,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),De})();const $e="cdk-high-contrast-black-on-white",Me="cdk-high-contrast-white-on-black",ut="cdk-high-contrast-active";let Vt=(()=>{class De{constructor(w,S){this._platform=w,this._document=S,this._breakpointSubscription=(0,d.f3M)(oe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const w=this._document.createElement("div");w.style.backgroundColor="rgb(1,2,3)",w.style.position="absolute",this._document.body.appendChild(w);const S=this._document.defaultView||window,$=S&&S.getComputedStyle?S.getComputedStyle(w):null,de=($&&$.backgroundColor||"").replace(/ /g,"");switch(w.remove(),de){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const w=this._document.body.classList;w.remove(ut,$e,Me),this._hasCheckedHighContrastMode=!0;const S=this.getHighContrastMode();1===S?w.add(ut,$e):2===S&&w.add(ut,Me)}}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(P.t4),d.LFG(s.K0))},De.\u0275prov=d.Yz7({token:De,factory:De.\u0275fac,providedIn:"root"}),De})(),Gt=(()=>{class De{constructor(w){w._applyBodyHighContrastModeCssClasses()}}return De.\u0275fac=function(w){return new(w||De)(d.LFG(Vt))},De.\u0275mod=d.oAB({type:De}),De.\u0275inj=d.cJS({imports:[Ne.Q8]}),De})()},445:(st,ye,_)=>{_.d(ye,{Is:()=>ee,vT:()=>X});var s=_(4650),d=_(6895);const P=new s.OlP("cdk-dir-doc",{providedIn:"root",factory:function Y(){return(0,s.f3M)(d.K0)}}),W=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ee=(()=>{class H{constructor(K){this.value="ltr",this.change=new s.vpe,K&&(this.value=function G(H){const Z=H?.toLowerCase()||"";return"auto"===Z&&typeof navigator<"u"&&navigator?.language?W.test(navigator.language)?"rtl":"ltr":"rtl"===Z?"rtl":"ltr"}((K.body?K.body.dir:null)||(K.documentElement?K.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(K){return new(K||H)(s.LFG(P,8))},H.\u0275prov=s.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),X=(()=>{class H{}return H.\u0275fac=function(K){return new(K||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({}),H})()},1281:(st,ye,_)=>{_.d(ye,{Eq:()=>W,HM:()=>G,Ig:()=>d,du:()=>J,fI:()=>ee,su:()=>P});var s=_(4650);function d(X){return null!=X&&"false"!=`${X}`}function P(X,H=0){return function Y(X){return!isNaN(parseFloat(X))&&!isNaN(Number(X))}(X)?Number(X):H}function W(X){return Array.isArray(X)?X:[X]}function G(X){return null==X?"":"string"==typeof X?X:`${X}px`}function ee(X){return X instanceof s.SBq?X.nativeElement:X}function J(X,H=/\s+/){const Z=[];if(null!=X){const K=Array.isArray(X)?X:`${X}`.split(H);for(const Ie of K){const ve=`${Ie}`.trim();ve&&Z.push(ve)}}return Z}},9521:(st,ye,_)=>{_.d(ye,{A:()=>Ue,JH:()=>Ee,JU:()=>G,K5:()=>W,Ku:()=>Ie,LH:()=>Ne,L_:()=>K,MW:()=>Lt,Mf:()=>P,SV:()=>Pe,Sd:()=>ze,VM:()=>ve,Vb:()=>Mr,Z:()=>gt,ZH:()=>d,aO:()=>_t,b2:()=>Mn,hY:()=>Z,jx:()=>ee,oh:()=>Se,uR:()=>ke,xE:()=>me,yY:()=>ce,zL:()=>J});const d=8,P=9,W=13,G=16,ee=17,J=18,Z=27,K=32,Ie=33,ve=34,ke=35,ze=36,Se=37,Ne=38,Pe=39,Ee=40,ce=46,me=48,_t=57,Ue=65,gt=90,Lt=91,Mn=224;function Mr(hn,...zr){return zr.length?zr.some(Fr=>hn[Fr]):hn.altKey||hn.shiftKey||hn.ctrlKey||hn.metaKey}},9643:(st,ye,_)=>{_.d(ye,{Q8:()=>X,wD:()=>J});var s=_(1281),d=_(4650),P=_(9751),Y=_(7579),W=_(8372);let G=(()=>{class H{create(K){return typeof MutationObserver>"u"?null:new MutationObserver(K)}}return H.\u0275fac=function(K){return new(K||H)},H.\u0275prov=d.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ee=(()=>{class H{constructor(K){this._mutationObserverFactory=K,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((K,Ie)=>this._cleanupObserver(Ie))}observe(K){const Ie=(0,s.fI)(K);return new P.y(ve=>{const ze=this._observeElement(Ie).subscribe(ve);return()=>{ze.unsubscribe(),this._unobserveElement(Ie)}})}_observeElement(K){if(this._observedElements.has(K))this._observedElements.get(K).count++;else{const Ie=new Y.x,ve=this._mutationObserverFactory.create(ke=>Ie.next(ke));ve&&ve.observe(K,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(K,{observer:ve,stream:Ie,count:1})}return this._observedElements.get(K).stream}_unobserveElement(K){this._observedElements.has(K)&&(this._observedElements.get(K).count--,this._observedElements.get(K).count||this._cleanupObserver(K))}_cleanupObserver(K){if(this._observedElements.has(K)){const{observer:Ie,stream:ve}=this._observedElements.get(K);Ie&&Ie.disconnect(),ve.complete(),this._observedElements.delete(K)}}}return H.\u0275fac=function(K){return new(K||H)(d.LFG(G))},H.\u0275prov=d.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),J=(()=>{class H{get disabled(){return this._disabled}set disabled(K){this._disabled=(0,s.Ig)(K),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(K){this._debounce=(0,s.su)(K),this._subscribe()}constructor(K,Ie,ve){this._contentObserver=K,this._elementRef=Ie,this._ngZone=ve,this.event=new d.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const K=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?K.pipe((0,W.b)(this.debounce)):K).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return H.\u0275fac=function(K){return new(K||H)(d.Y36(ee),d.Y36(d.SBq),d.Y36(d.R0b))},H.\u0275dir=d.lG2({type:H,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),H})(),X=(()=>{class H{}return H.\u0275fac=function(K){return new(K||H)},H.\u0275mod=d.oAB({type:H}),H.\u0275inj=d.cJS({providers:[G]}),H})()},3353:(st,ye,_)=>{_.d(ye,{Mq:()=>ve,Oy:()=>Ce,_i:()=>ke,ht:()=>Pe,i$:()=>Z,kV:()=>Ne,qK:()=>J,sA:()=>Ee,t4:()=>Y});var s=_(4650),d=_(6895);let P;try{P=typeof Intl<"u"&&Intl.v8BreakIterator}catch{P=!1}let G,Y=(()=>{class j{constructor(ce){this._platformId=ce,this.isBrowser=this._platformId?(0,d.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!P)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return j.\u0275fac=function(ce){return new(ce||j)(s.LFG(s.Lbi))},j.\u0275prov=s.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})();const ee=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function J(){if(G)return G;if("object"!=typeof document||!document)return G=new Set(ee),G;let j=document.createElement("input");return G=new Set(ee.filter(le=>(j.setAttribute("type",le),j.type===le))),G}let X,K,Ie,ze;function Z(j){return function H(){if(null==X&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>X=!0}))}finally{X=X||!1}return X}()?j:!!j.capture}function ve(){if(null==Ie){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ie=!1,Ie;if("scrollBehavior"in document.documentElement.style)Ie=!0;else{const j=Element.prototype.scrollTo;Ie=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return Ie}function ke(){if("object"!=typeof document||!document)return 0;if(null==K){const j=document.createElement("div"),le=j.style;j.dir="rtl",le.width="1px",le.overflow="auto",le.visibility="hidden",le.pointerEvents="none",le.position="absolute";const ce=document.createElement("div"),me=ce.style;me.width="2px",me.height="1px",j.appendChild(ce),document.body.appendChild(j),K=0,0===j.scrollLeft&&(j.scrollLeft=1,K=0===j.scrollLeft?1:2),j.remove()}return K}function Ne(j){if(function Se(){if(null==ze){const j=typeof document<"u"?document.head:null;ze=!(!j||!j.createShadowRoot&&!j.attachShadow)}return ze}()){const le=j.getRootNode?j.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&le instanceof ShadowRoot)return le}return null}function Pe(){let j=typeof document<"u"&&document?document.activeElement:null;for(;j&&j.shadowRoot;){const le=j.shadowRoot.activeElement;if(le===j)break;j=le}return j}function Ee(j){return j.composedPath?j.composedPath()[0]:j.target}function Ce(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6895:(st,ye,_)=>{_.d(ye,{$G:()=>kn,Do:()=>Pe,ED:()=>Gn,EM:()=>ii,HT:()=>Y,JF:()=>si,JJ:()=>fo,K0:()=>G,Mx:()=>qn,NF:()=>Ln,O5:()=>Fr,Ov:()=>lr,PC:()=>Gr,PM:()=>ln,RF:()=>Zi,S$:()=>ze,Ts:()=>dr,V_:()=>X,Ye:()=>Ee,Zd:()=>Wi,b0:()=>Ne,bD:()=>tt,ez:()=>Be,mk:()=>Jt,n9:()=>Sr,q:()=>P,sg:()=>Mr,tP:()=>Si,uU:()=>Dr,w_:()=>W});var s=_(4650);let d=null;function P(){return d}function Y(g){d||(d=g)}class W{}const G=new s.OlP("DocumentToken");let ee=(()=>{class g{historyGo(v){throw new Error("Not implemented")}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=s.Yz7({token:g,factory:function(){return function J(){return(0,s.LFG)(H)}()},providedIn:"platform"}),g})();const X=new s.OlP("Location Initialized");let H=(()=>{class g extends ee{constructor(v){super(),this._doc=v,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return P().getBaseHref(this._doc)}onPopState(v){const R=P().getGlobalEventTarget(this._doc,"window");return R.addEventListener("popstate",v,!1),()=>R.removeEventListener("popstate",v)}onHashChange(v){const R=P().getGlobalEventTarget(this._doc,"window");return R.addEventListener("hashchange",v,!1),()=>R.removeEventListener("hashchange",v)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(v){this._location.pathname=v}pushState(v,R,re){Z()?this._history.pushState(v,R,re):this._location.hash=re}replaceState(v,R,re){Z()?this._history.replaceState(v,R,re):this._location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return g.\u0275fac=function(v){return new(v||g)(s.LFG(G))},g.\u0275prov=s.Yz7({token:g,factory:function(){return function K(){return new H((0,s.LFG)(G))}()},providedIn:"platform"}),g})();function Z(){return!!window.history.pushState}function Ie(g,A){if(0==g.length)return A;if(0==A.length)return g;let v=0;return g.endsWith("/")&&v++,A.startsWith("/")&&v++,2==v?g+A.substring(1):1==v?g+A:g+"/"+A}function ve(g){const A=g.match(/#|\?|$/),v=A&&A.index||g.length;return g.slice(0,v-("/"===g[v-1]?1:0))+g.slice(v)}function ke(g){return g&&"?"!==g[0]?"?"+g:g}let ze=(()=>{class g{historyGo(v){throw new Error("Not implemented")}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=s.Yz7({token:g,factory:function(){return(0,s.f3M)(Ne)},providedIn:"root"}),g})();const Se=new s.OlP("appBaseHref");let Ne=(()=>{class g extends ze{constructor(v,R){super(),this._platformLocation=v,this._removeListenerFns=[],this._baseHref=R??this._platformLocation.getBaseHrefFromDOM()??(0,s.f3M)(G).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return Ie(this._baseHref,v)}path(v=!1){const R=this._platformLocation.pathname+ke(this._platformLocation.search),re=this._platformLocation.hash;return re&&v?`${R}${re}`:R}pushState(v,R,re,Ve){const Ze=this.prepareExternalUrl(re+ke(Ve));this._platformLocation.pushState(v,R,Ze)}replaceState(v,R,re,Ve){const Ze=this.prepareExternalUrl(re+ke(Ve));this._platformLocation.replaceState(v,R,Ze)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return g.\u0275fac=function(v){return new(v||g)(s.LFG(ee),s.LFG(Se,8))},g.\u0275prov=s.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})(),Pe=(()=>{class g extends ze{constructor(v,R){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=R&&(this._baseHref=R)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let R=this._platformLocation.hash;return null==R&&(R="#"),R.length>0?R.substring(1):R}prepareExternalUrl(v){const R=Ie(this._baseHref,v);return R.length>0?"#"+R:R}pushState(v,R,re,Ve){let Ze=this.prepareExternalUrl(re+ke(Ve));0==Ze.length&&(Ze=this._platformLocation.pathname),this._platformLocation.pushState(v,R,Ze)}replaceState(v,R,re,Ve){let Ze=this.prepareExternalUrl(re+ke(Ve));0==Ze.length&&(Ze=this._platformLocation.pathname),this._platformLocation.replaceState(v,R,Ze)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return g.\u0275fac=function(v){return new(v||g)(s.LFG(ee),s.LFG(Se,8))},g.\u0275prov=s.Yz7({token:g,factory:g.\u0275fac}),g})(),Ee=(()=>{class g{constructor(v){this._subject=new s.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=v;const R=this._locationStrategy.getBaseHref();this._basePath=function ce(g){if(new RegExp("^(https?:)?//").test(g)){const[,v]=g.split(/\/\/[^\/]+/);return v}return g}(ve(le(R))),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(v=!1){return this.normalize(this._locationStrategy.path(v))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(v,R=""){return this.path()==this.normalize(v+ke(R))}normalize(v){return g.stripTrailingSlash(function j(g,A){return g&&new RegExp(`^${g}([/;?#]|$)`).test(A)?A.substring(g.length):A}(this._basePath,le(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._locationStrategy.prepareExternalUrl(v)}go(v,R="",re=null){this._locationStrategy.pushState(re,"",v,R),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ke(R)),re)}replaceState(v,R="",re=null){this._locationStrategy.replaceState(re,"",v,R),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ke(R)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(v=0){this._locationStrategy.historyGo?.(v)}onUrlChange(v){return this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(R=>{this._notifyUrlChangeListeners(R.url,R.state)})),()=>{const R=this._urlChangeListeners.indexOf(v);this._urlChangeListeners.splice(R,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(v="",R){this._urlChangeListeners.forEach(re=>re(v,R))}subscribe(v,R,re){return this._subject.subscribe({next:v,error:R,complete:re})}}return g.normalizeQueryParams=ke,g.joinWithSlash=Ie,g.stripTrailingSlash=ve,g.\u0275fac=function(v){return new(v||g)(s.LFG(ze))},g.\u0275prov=s.Yz7({token:g,factory:function(){return function Ce(){return new Ee((0,s.LFG)(ze))}()},providedIn:"root"}),g})();function le(g){return g.replace(/\/index.html$/,"")}var se=(()=>((se=se||{})[se.Decimal=0]="Decimal",se[se.Percent=1]="Percent",se[se.Currency=2]="Currency",se[se.Scientific=3]="Scientific",se))(),q=(()=>((q=q||{})[q.Format=0]="Format",q[q.Standalone=1]="Standalone",q))(),oe=(()=>((oe=oe||{})[oe.Narrow=0]="Narrow",oe[oe.Abbreviated=1]="Abbreviated",oe[oe.Wide=2]="Wide",oe[oe.Short=3]="Short",oe))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function it(g,A){return qt((0,s.cg1)(g)[s.wAp.DateFormat],A)}function he(g,A){return qt((0,s.cg1)(g)[s.wAp.TimeFormat],A)}function Le(g,A){return qt((0,s.cg1)(g)[s.wAp.DateTimeFormat],A)}function ct(g,A){const v=(0,s.cg1)(g),R=v[s.wAp.NumberSymbols][A];if(typeof R>"u"){if(A===_e.CurrencyDecimal)return v[s.wAp.NumberSymbols][_e.Decimal];if(A===_e.CurrencyGroup)return v[s.wAp.NumberSymbols][_e.Group]}return R}function Mt(g){if(!g[s.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${g[s.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qt(g,A){for(let v=A;v>-1;v--)if(typeof g[v]<"u")return g[v];throw new Error("Locale data API: locale data undefined")}function _n(g){const[A,v]=g.split(":");return{hours:+A,minutes:+v}}const bn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,wn={},Hn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Bt=(()=>((Bt=Bt||{})[Bt.Short=0]="Short",Bt[Bt.ShortGMT=1]="ShortGMT",Bt[Bt.Long=2]="Long",Bt[Bt.Extended=3]="Extended",Bt))(),Ft=(()=>((Ft=Ft||{})[Ft.FullYear=0]="FullYear",Ft[Ft.Month=1]="Month",Ft[Ft.Date=2]="Date",Ft[Ft.Hours=3]="Hours",Ft[Ft.Minutes=4]="Minutes",Ft[Ft.Seconds=5]="Seconds",Ft[Ft.FractionalSeconds=6]="FractionalSeconds",Ft[Ft.Day=7]="Day",Ft))(),gt=(()=>((gt=gt||{})[gt.DayPeriods=0]="DayPeriods",gt[gt.Days=1]="Days",gt[gt.Months=2]="Months",gt[gt.Eras=3]="Eras",gt))();function Lt(g,A,v,R){let re=function ut(g){if(Gt(g))return g;if("number"==typeof g&&!isNaN(g))return new Date(g);if("string"==typeof g){if(g=g.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(g)){const[re,Ve=1,Ze=1]=g.split("-").map(wt=>+wt);return Ge(re,Ve-1,Ze)}const v=parseFloat(g);if(!isNaN(g-v))return new Date(v);let R;if(R=g.match(bn))return function Vt(g){const A=new Date(0);let v=0,R=0;const re=g[8]?A.setUTCFullYear:A.setFullYear,Ve=g[8]?A.setUTCHours:A.setHours;g[9]&&(v=Number(g[9]+g[10]),R=Number(g[9]+g[11])),re.call(A,Number(g[1]),Number(g[2])-1,Number(g[3]));const Ze=Number(g[4]||0)-v,wt=Number(g[5]||0)-R,Fn=Number(g[6]||0),Sn=Math.floor(1e3*parseFloat("0."+(g[7]||0)));return Ve.call(A,Ze,wt,Fn,Sn),A}(R)}const A=new Date(g);if(!Gt(A))throw new Error(`Unable to convert "${g}" into a date`);return A}(g);A=yt(v,A)||A;let wt,Ze=[];for(;A;){if(wt=Hn.exec(A),!wt){Ze.push(A);break}{Ze=Ze.concat(wt.slice(1));const Nn=Ze.pop();if(!Nn)break;A=Nn}}let Fn=re.getTimezoneOffset();R&&(Fn=pe(R,Fn),re=function Me(g,A,v){const R=v?-1:1,re=g.getTimezoneOffset();return function $e(g,A){return(g=new Date(g.getTime())).setMinutes(g.getMinutes()+A),g}(g,R*(pe(A,re)-re))}(re,R,!0));let Sn="";return Ze.forEach(Nn=>{const pn=function Q(g){if(B[g])return B[g];let A;switch(g){case"G":case"GG":case"GGG":A=Ut(gt.Eras,oe.Abbreviated);break;case"GGGG":A=Ut(gt.Eras,oe.Wide);break;case"GGGGG":A=Ut(gt.Eras,oe.Narrow);break;case"y":A=Nt(Ft.FullYear,1,0,!1,!0);break;case"yy":A=Nt(Ft.FullYear,2,0,!0,!0);break;case"yyy":A=Nt(Ft.FullYear,3,0,!1,!0);break;case"yyyy":A=Nt(Ft.FullYear,4,0,!1,!0);break;case"Y":A=we(1);break;case"YY":A=we(2,!0);break;case"YYY":A=we(3);break;case"YYYY":A=we(4);break;case"M":case"L":A=Nt(Ft.Month,1,1);break;case"MM":case"LL":A=Nt(Ft.Month,2,1);break;case"MMM":A=Ut(gt.Months,oe.Abbreviated);break;case"MMMM":A=Ut(gt.Months,oe.Wide);break;case"MMMMM":A=Ut(gt.Months,oe.Narrow);break;case"LLL":A=Ut(gt.Months,oe.Abbreviated,q.Standalone);break;case"LLLL":A=Ut(gt.Months,oe.Wide,q.Standalone);break;case"LLLLL":A=Ut(gt.Months,oe.Narrow,q.Standalone);break;case"w":A=F(1);break;case"ww":A=F(2);break;case"W":A=F(1,!0);break;case"d":A=Nt(Ft.Date,1);break;case"dd":A=Nt(Ft.Date,2);break;case"c":case"cc":A=Nt(Ft.Day,1);break;case"ccc":A=Ut(gt.Days,oe.Abbreviated,q.Standalone);break;case"cccc":A=Ut(gt.Days,oe.Wide,q.Standalone);break;case"ccccc":A=Ut(gt.Days,oe.Narrow,q.Standalone);break;case"cccccc":A=Ut(gt.Days,oe.Short,q.Standalone);break;case"E":case"EE":case"EEE":A=Ut(gt.Days,oe.Abbreviated);break;case"EEEE":A=Ut(gt.Days,oe.Wide);break;case"EEEEE":A=Ut(gt.Days,oe.Narrow);break;case"EEEEEE":A=Ut(gt.Days,oe.Short);break;case"a":case"aa":case"aaa":A=Ut(gt.DayPeriods,oe.Abbreviated);break;case"aaaa":A=Ut(gt.DayPeriods,oe.Wide);break;case"aaaaa":A=Ut(gt.DayPeriods,oe.Narrow);break;case"b":case"bb":case"bbb":A=Ut(gt.DayPeriods,oe.Abbreviated,q.Standalone,!0);break;case"bbbb":A=Ut(gt.DayPeriods,oe.Wide,q.Standalone,!0);break;case"bbbbb":A=Ut(gt.DayPeriods,oe.Narrow,q.Standalone,!0);break;case"B":case"BB":case"BBB":A=Ut(gt.DayPeriods,oe.Abbreviated,q.Format,!0);break;case"BBBB":A=Ut(gt.DayPeriods,oe.Wide,q.Format,!0);break;case"BBBBB":A=Ut(gt.DayPeriods,oe.Narrow,q.Format,!0);break;case"h":A=Nt(Ft.Hours,1,-12);break;case"hh":A=Nt(Ft.Hours,2,-12);break;case"H":A=Nt(Ft.Hours,1);break;case"HH":A=Nt(Ft.Hours,2);break;case"m":A=Nt(Ft.Minutes,1);break;case"mm":A=Nt(Ft.Minutes,2);break;case"s":A=Nt(Ft.Seconds,1);break;case"ss":A=Nt(Ft.Seconds,2);break;case"S":A=Nt(Ft.FractionalSeconds,1);break;case"SS":A=Nt(Ft.FractionalSeconds,2);break;case"SSS":A=Nt(Ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":A=Yn(Bt.Short);break;case"ZZZZZ":A=Yn(Bt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":A=Yn(Bt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":A=Yn(Bt.Long);break;default:return null}return B[g]=A,A}(Nn);Sn+=pn?pn(re,v,Fn):"''"===Nn?"'":Nn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Sn}function Ge(g,A,v){const R=new Date(0);return R.setFullYear(g,A,v),R.setHours(0,0,0),R}function yt(g,A){const v=function Je(g){return(0,s.cg1)(g)[s.wAp.LocaleId]}(g);if(wn[v]=wn[v]||{},wn[v][A])return wn[v][A];let R="";switch(A){case"shortDate":R=it(g,Ae.Short);break;case"mediumDate":R=it(g,Ae.Medium);break;case"longDate":R=it(g,Ae.Long);break;case"fullDate":R=it(g,Ae.Full);break;case"shortTime":R=he(g,Ae.Short);break;case"mediumTime":R=he(g,Ae.Medium);break;case"longTime":R=he(g,Ae.Long);break;case"fullTime":R=he(g,Ae.Full);break;case"short":const re=yt(g,"shortTime"),Ve=yt(g,"shortDate");R=Fe(Le(g,Ae.Short),[re,Ve]);break;case"medium":const Ze=yt(g,"mediumTime"),wt=yt(g,"mediumDate");R=Fe(Le(g,Ae.Medium),[Ze,wt]);break;case"long":const Fn=yt(g,"longTime"),Sn=yt(g,"longDate");R=Fe(Le(g,Ae.Long),[Fn,Sn]);break;case"full":const Nn=yt(g,"fullTime"),pn=yt(g,"fullDate");R=Fe(Le(g,Ae.Full),[Nn,pn])}return R&&(wn[v][A]=R),R}function Fe(g,A){return A&&(g=g.replace(/\{([^}]+)}/g,function(v,R){return null!=A&&R in A?A[R]:v})),g}function qe(g,A,v="-",R,re){let Ve="";(g<0||re&&g<=0)&&(re?g=1-g:(g=-g,Ve=v));let Ze=String(g);for(;Ze.length<A;)Ze="0"+Ze;return R&&(Ze=Ze.slice(Ze.length-A)),Ve+Ze}function Nt(g,A,v=0,R=!1,re=!1){return function(Ve,Ze){let wt=function Kn(g,A){switch(g){case Ft.FullYear:return A.getFullYear();case Ft.Month:return A.getMonth();case Ft.Date:return A.getDate();case Ft.Hours:return A.getHours();case Ft.Minutes:return A.getMinutes();case Ft.Seconds:return A.getSeconds();case Ft.FractionalSeconds:return A.getMilliseconds();case Ft.Day:return A.getDay();default:throw new Error(`Unknown DateType value "${g}".`)}}(g,Ve);if((v>0||wt>-v)&&(wt+=v),g===Ft.Hours)0===wt&&-12===v&&(wt=12);else if(g===Ft.FractionalSeconds)return function $t(g,A){return qe(g,3).substring(0,A)}(wt,A);const Fn=ct(Ze,_e.MinusSign);return qe(wt,A,Fn,R,re)}}function Ut(g,A,v=q.Format,R=!1){return function(re,Ve){return function An(g,A,v,R,re,Ve){switch(v){case gt.Months:return function Qt(g,A,v){const R=(0,s.cg1)(g),Ve=qt([R[s.wAp.MonthsFormat],R[s.wAp.MonthsStandalone]],A);return qt(Ve,v)}(A,re,R)[g.getMonth()];case gt.Days:return function Wt(g,A,v){const R=(0,s.cg1)(g),Ve=qt([R[s.wAp.DaysFormat],R[s.wAp.DaysStandalone]],A);return qt(Ve,v)}(A,re,R)[g.getDay()];case gt.DayPeriods:const Ze=g.getHours(),wt=g.getMinutes();if(Ve){const Sn=function Dt(g){const A=(0,s.cg1)(g);return Mt(A),(A[s.wAp.ExtraData][2]||[]).map(R=>"string"==typeof R?_n(R):[_n(R[0]),_n(R[1])])}(A),Nn=function Pt(g,A,v){const R=(0,s.cg1)(g);Mt(R);const Ve=qt([R[s.wAp.ExtraData][0],R[s.wAp.ExtraData][1]],A)||[];return qt(Ve,v)||[]}(A,re,R),pn=Sn.findIndex(cr=>{if(Array.isArray(cr)){const[$n,tr]=cr,yi=Ze>=$n.hours&&wt>=$n.minutes,ri=Ze<tr.hours||Ze===tr.hours&&wt<tr.minutes;if($n.hours<tr.hours){if(yi&&ri)return!0}else if(yi||ri)return!0}else if(cr.hours===Ze&&cr.minutes===wt)return!0;return!1});if(-1!==pn)return Nn[pn]}return function _t(g,A,v){const R=(0,s.cg1)(g),Ve=qt([R[s.wAp.DayPeriodsFormat],R[s.wAp.DayPeriodsStandalone]],A);return qt(Ve,v)}(A,re,R)[Ze<12?0:1];case gt.Eras:return function Rt(g,A){return qt((0,s.cg1)(g)[s.wAp.Eras],A)}(A,R)[g.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${v}`)}}(re,Ve,g,A,v,R)}}function Yn(g){return function(A,v,R){const re=-1*R,Ve=ct(v,_e.MinusSign),Ze=re>0?Math.floor(re/60):Math.ceil(re/60);switch(g){case Bt.Short:return(re>=0?"+":"")+qe(Ze,2,Ve)+qe(Math.abs(re%60),2,Ve);case Bt.ShortGMT:return"GMT"+(re>=0?"+":"")+qe(Ze,1,Ve);case Bt.Long:return"GMT"+(re>=0?"+":"")+qe(Ze,2,Ve)+":"+qe(Math.abs(re%60),2,Ve);case Bt.Extended:return 0===R?"Z":(re>=0?"+":"")+qe(Ze,2,Ve)+":"+qe(Math.abs(re%60),2,Ve);default:throw new Error(`Unknown zone width "${g}"`)}}}function M(g){return Ge(g.getFullYear(),g.getMonth(),g.getDate()+(4-g.getDay()))}function F(g,A=!1){return function(v,R){let re;if(A){const Ve=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,Ze=v.getDate();re=1+Math.floor((Ze+Ve)/7)}else{const Ve=M(v),Ze=function N(g){const A=Ge(g,0,1).getDay();return Ge(g,0,1+(A<=4?4:11)-A)}(Ve.getFullYear()),wt=Ve.getTime()-Ze.getTime();re=1+Math.round(wt/6048e5)}return qe(re,g,ct(R,_e.MinusSign))}}function we(g,A=!1){return function(v,R){return qe(M(v).getFullYear(),g,ct(R,_e.MinusSign),A)}}const B={};function pe(g,A){g=g.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+g)/6e4;return isNaN(v)?A:v}function Gt(g){return g instanceof Date&&!isNaN(g.valueOf())}const De=/^(\d+)?\.((\d+)(-(\d+))?)?$/,w=".",S="0";function hi(g){const A=parseInt(g);if(isNaN(A))throw new Error("Invalid integer literal when parsing "+g);return A}function qn(g,A){A=encodeURIComponent(A);for(const v of g.split(";")){const R=v.indexOf("="),[re,Ve]=-1==R?[v,""]:[v.slice(0,R),v.slice(R+1)];if(re.trim()===A)return decodeURIComponent(Ve)}return null}const Br=/\s+/,Ct=[];let Jt=(()=>{class g{constructor(v,R,re,Ve){this._iterableDiffers=v,this._keyValueDiffers=R,this._ngEl=re,this._renderer=Ve,this.initialClasses=Ct,this.stateMap=new Map}set klass(v){this.initialClasses=null!=v?v.trim().split(Br):Ct}set ngClass(v){this.rawClass="string"==typeof v?v.trim().split(Br):v}ngDoCheck(){for(const R of this.initialClasses)this._updateState(R,!0);const v=this.rawClass;if(Array.isArray(v)||v instanceof Set)for(const R of v)this._updateState(R,!0);else if(null!=v)for(const R of Object.keys(v))this._updateState(R,Boolean(v[R]));this._applyStateDiff()}_updateState(v,R){const re=this.stateMap.get(v);void 0!==re?(re.enabled!==R&&(re.changed=!0,re.enabled=R),re.touched=!0):this.stateMap.set(v,{enabled:R,changed:!0,touched:!0})}_applyStateDiff(){for(const v of this.stateMap){const R=v[0],re=v[1];re.changed?(this._toggleClass(R,re.enabled),re.changed=!1):re.touched||(re.enabled&&this._toggleClass(R,!1),this.stateMap.delete(R)),re.touched=!1}}_toggleClass(v,R){(v=v.trim()).length>0&&v.split(Br).forEach(re=>{R?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.ZZ4),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Qsj))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),g})(),kn=(()=>{class g{constructor(v){this._viewContainerRef=v,this.ngComponentOutlet=null}ngOnChanges(v){const{_viewContainerRef:R,ngComponentOutletNgModule:re,ngComponentOutletNgModuleFactory:Ve}=this;if(R.clear(),this._componentRef=void 0,this.ngComponentOutlet){const Ze=this.ngComponentOutletInjector||R.parentInjector;(v.ngComponentOutletNgModule||v.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=re?(0,s.Lck)(re,Er(Ze)):Ve?Ve.create(Er(Ze)):void 0),this._componentRef=R.createComponent(this.ngComponentOutlet,{index:R.length,injector:Ze,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.s_b))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[s.TTD]}),g})();function Er(g){return g.get(s.h0i).injector}class Mn{constructor(A,v,R,re){this.$implicit=A,this.ngForOf=v,this.index=R,this.count=re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mr=(()=>{class g{set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}constructor(v,R,re){this._viewContainer=v,this._template=R,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const R=this._viewContainer;v.forEachOperation((re,Ve,Ze)=>{if(null==re.previousIndex)R.createEmbeddedView(this._template,new Mn(re.item,this._ngForOf,-1,-1),null===Ze?void 0:Ze);else if(null==Ze)R.remove(null===Ve?void 0:Ve);else if(null!==Ve){const wt=R.get(Ve);R.move(wt,Ze),hn(wt,re)}});for(let re=0,Ve=R.length;re<Ve;re++){const wt=R.get(re).context;wt.index=re,wt.count=Ve,wt.ngForOf=this._ngForOf}v.forEachIdentityChange(re=>{hn(R.get(re.currentIndex),re)})}static ngTemplateContextGuard(v,R){return!0}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),g})();function hn(g,A){g.context.$implicit=A.item}let Fr=(()=>{class g{constructor(v,R){this._viewContainer=v,this._context=new rn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=R}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){Ti("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){Ti("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,R){return!0}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.s_b),s.Y36(s.Rgc))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),g})();class rn{constructor(){this.$implicit=null,this.ngIf=null}}function Ti(g,A){if(A&&!A.createEmbeddedView)throw new Error(`${g} must be a TemplateRef, but received '${(0,s.AaK)(A)}'.`)}class pi{constructor(A,v){this._viewContainerRef=A,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(A){A&&!this._created?this.create():!A&&this._created&&this.destroy()}}let Zi=(()=>{class g{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews.push(v)}_matchCase(v){const R=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||R,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),R}_updateDefaultCases(v){if(this._defaultViews.length>0&&v!==this._defaultUsed){this._defaultUsed=v;for(const R of this._defaultViews)R.enforceState(v)}}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275dir=s.lG2({type:g,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),g})(),Sr=(()=>{class g{constructor(v,R,re){this.ngSwitch=re,re._addCase(),this._view=new pi(v,R)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(Zi,9))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),g})(),Gn=(()=>{class g{constructor(v,R,re){re._addDefault(new pi(v,R))}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(Zi,9))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngSwitchDefault",""]],standalone:!0}),g})(),Gr=(()=>{class g{constructor(v,R,re){this._ngEl=v,this._differs=R,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(v){this._ngStyle=v,!this._differ&&v&&(this._differ=this._differs.find(v).create())}ngDoCheck(){if(this._differ){const v=this._differ.diff(this._ngStyle);v&&this._applyChanges(v)}}_setStyle(v,R){const[re,Ve]=v.split("."),Ze=-1===re.indexOf("-")?void 0:s.JOm.DashCase;null!=R?this._renderer.setStyle(this._ngEl.nativeElement,re,Ve?`${R}${Ve}`:R,Ze):this._renderer.removeStyle(this._ngEl.nativeElement,re,Ze)}_applyChanges(v){v.forEachRemovedItem(R=>this._setStyle(R.key,null)),v.forEachAddedItem(R=>this._setStyle(R.key,R.currentValue)),v.forEachChangedItem(R=>this._setStyle(R.key,R.currentValue))}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.SBq),s.Y36(s.aQg),s.Y36(s.Qsj))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),g})(),Si=(()=>{class g{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(v){if(v.ngTemplateOutlet||v.ngTemplateOutletInjector){const R=this._viewContainerRef;if(this._viewRef&&R.remove(R.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:re,ngTemplateOutletContext:Ve,ngTemplateOutletInjector:Ze}=this;this._viewRef=R.createEmbeddedView(re,Ve,Ze?{injector:Ze}:void 0)}else this._viewRef=null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.s_b))},g.\u0275dir=s.lG2({type:g,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[s.TTD]}),g})();function Kr(g,A){return new s.vHH(2100,!1)}class Ur{createSubscription(A,v){return A.subscribe({next:v,error:R=>{throw R}})}dispose(A){A.unsubscribe()}}class Ho{createSubscription(A,v){return A.then(v,R=>{throw R})}dispose(A){}}const Vi=new Ho,xr=new Ur;let lr=(()=>{class g{constructor(v){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=v}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(v){return this._obj?v!==this._obj?(this._dispose(),this.transform(v)):this._latestValue:(v&&this._subscribe(v),this._latestValue)}_subscribe(v){this._obj=v,this._strategy=this._selectStrategy(v),this._subscription=this._strategy.createSubscription(v,R=>this._updateLatestValue(v,R))}_selectStrategy(v){if((0,s.QGY)(v))return Vi;if((0,s.F4k)(v))return xr;throw Kr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(v,R){v===this._obj&&(this._latestValue=R,this._ref.markForCheck())}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.sBO,16))},g.\u0275pipe=s.Yjl({name:"async",type:g,pure:!1,standalone:!0}),g})();const gi=new s.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),lo=new s.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Dr=(()=>{class g{constructor(v,R,re){this.locale=v,this.defaultTimezone=R,this.defaultOptions=re}transform(v,R,re,Ve){if(null==v||""===v||v!=v)return null;try{return Lt(v,R??this.defaultOptions?.dateFormat??"mediumDate",Ve||this.locale,re??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ze){throw Kr()}}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.soG,16),s.Y36(gi,24),s.Y36(lo,24))},g.\u0275pipe=s.Yjl({name:"date",type:g,pure:!0,standalone:!0}),g})(),dr=(()=>{class g{transform(v){return JSON.stringify(v,null,2)}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275pipe=s.Yjl({name:"json",type:g,pure:!1,standalone:!0}),g})(),fo=(()=>{class g{constructor(v){this._locale=v}transform(v,R,re){if(!function Ii(g){return!(null==g||""===g||g!=g)}(v))return null;re=re||this._locale;try{return function Xn(g,A,v){return function On(g,A,v,R,re,Ve,Ze=!1){let wt="",Fn=!1;if(isFinite(g)){let Sn=function $i(g){let R,re,Ve,Ze,wt,A=Math.abs(g)+"",v=0;for((re=A.indexOf(w))>-1&&(A=A.replace(w,"")),(Ve=A.search(/e/i))>0?(re<0&&(re=Ve),re+=+A.slice(Ve+1),A=A.substring(0,Ve)):re<0&&(re=A.length),Ve=0;A.charAt(Ve)===S;Ve++);if(Ve===(wt=A.length))R=[0],re=1;else{for(wt--;A.charAt(wt)===S;)wt--;for(re-=Ve,R=[],Ze=0;Ve<=wt;Ve++,Ze++)R[Ze]=Number(A.charAt(Ve))}return re>22&&(R=R.splice(0,21),v=re-1,re=1),{digits:R,exponent:v,integerLen:re}}(g);Ze&&(Sn=function ji(g){if(0===g.digits[0])return g;const A=g.digits.length-g.integerLen;return g.exponent?g.exponent+=2:(0===A?g.digits.push(0,0):1===A&&g.digits.push(0),g.integerLen+=2),g}(Sn));let Nn=A.minInt,pn=A.minFrac,cr=A.maxFrac;if(Ve){const sr=Ve.match(De);if(null===sr)throw new Error(`${Ve} is not a valid digit info`);const ci=sr[1],Eo=sr[3],ro=sr[5];null!=ci&&(Nn=hi(ci)),null!=Eo&&(pn=hi(Eo)),null!=ro?cr=hi(ro):null!=Eo&&pn>cr&&(cr=pn)}!function Vr(g,A,v){if(A>v)throw new Error(`The minimum number of digits after fraction (${A}) is higher than the maximum (${v}).`);let R=g.digits,re=R.length-g.integerLen;const Ve=Math.min(Math.max(A,re),v);let Ze=Ve+g.integerLen,wt=R[Ze];if(Ze>0){R.splice(Math.max(g.integerLen,Ze));for(let pn=Ze;pn<R.length;pn++)R[pn]=0}else{re=Math.max(0,re),g.integerLen=1,R.length=Math.max(1,Ze=Ve+1),R[0]=0;for(let pn=1;pn<Ze;pn++)R[pn]=0}if(wt>=5)if(Ze-1<0){for(let pn=0;pn>Ze;pn--)R.unshift(0),g.integerLen++;R.unshift(1),g.integerLen++}else R[Ze-1]++;for(;re<Math.max(0,Ve);re++)R.push(0);let Fn=0!==Ve;const Sn=A+g.integerLen,Nn=R.reduceRight(function(pn,cr,$n,tr){return tr[$n]=(cr+=pn)<10?cr:cr-10,Fn&&(0===tr[$n]&&$n>=Sn?tr.pop():Fn=!1),cr>=10?1:0},0);Nn&&(R.unshift(Nn),g.integerLen++)}(Sn,pn,cr);let $n=Sn.digits,tr=Sn.integerLen;const yi=Sn.exponent;let ri=[];for(Fn=$n.every(sr=>!sr);tr<Nn;tr++)$n.unshift(0);for(;tr<0;tr++)$n.unshift(0);tr>0?ri=$n.splice(tr,$n.length):(ri=$n,$n=[0]);const Ei=[];for($n.length>=A.lgSize&&Ei.unshift($n.splice(-A.lgSize,$n.length).join(""));$n.length>A.gSize;)Ei.unshift($n.splice(-A.gSize,$n.length).join(""));$n.length&&Ei.unshift($n.join("")),wt=Ei.join(ct(v,R)),ri.length&&(wt+=ct(v,re)+ri.join("")),yi&&(wt+=ct(v,_e.Exponential)+"+"+yi)}else wt=ct(v,_e.Infinity);return wt=g<0&&!Fn?A.negPre+wt+A.negSuf:A.posPre+wt+A.posSuf,wt}(g,function fi(g,A="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},R=g.split(";"),re=R[0],Ve=R[1],Ze=-1!==re.indexOf(w)?re.split(w):[re.substring(0,re.lastIndexOf(S)+1),re.substring(re.lastIndexOf(S)+1)],wt=Ze[0],Fn=Ze[1]||"";v.posPre=wt.substring(0,wt.indexOf("#"));for(let Nn=0;Nn<Fn.length;Nn++){const pn=Fn.charAt(Nn);pn===S?v.minFrac=v.maxFrac=Nn+1:"#"===pn?v.maxFrac=Nn+1:v.posSuf+=pn}const Sn=wt.split(",");if(v.gSize=Sn[1]?Sn[1].length:0,v.lgSize=Sn[2]||Sn[1]?(Sn[2]||Sn[1]).length:0,Ve){const Nn=re.length-v.posPre.length-v.posSuf.length,pn=Ve.indexOf("#");v.negPre=Ve.substring(0,pn).replace(/'/g,""),v.negSuf=Ve.slice(pn+Nn).replace(/'/g,"")}else v.negPre=A+v.posPre,v.negSuf=v.posSuf;return v}(function jt(g,A){return(0,s.cg1)(g)[s.wAp.NumberFormats][A]}(A,se.Decimal),ct(A,_e.MinusSign)),A,_e.Group,_e.Decimal,v)}(function Oi(g){if("string"==typeof g&&!isNaN(Number(g)-parseFloat(g)))return Number(g);if("number"!=typeof g)throw new Error(`${g} is not a number`);return g}(v),re,R)}catch(Ve){throw Kr()}}}return g.\u0275fac=function(v){return new(v||g)(s.Y36(s.soG,16))},g.\u0275pipe=s.Yjl({name:"number",type:g,pure:!0,standalone:!0}),g})();let Be=(()=>{class g{}return g.\u0275fac=function(v){return new(v||g)},g.\u0275mod=s.oAB({type:g}),g.\u0275inj=s.cJS({}),g})();const tt="browser";function Ln(g){return g===tt}function ln(g){return"server"===g}let ii=(()=>{class g{}return g.\u0275prov=(0,s.Yz7)({token:g,providedIn:"root",factory:()=>new oi((0,s.LFG)(G),window)}),g})();class oi{constructor(A,v){this.document=A,this.window=v,this.offset=()=>[0,0]}setOffset(A){this.offset=Array.isArray(A)?()=>A:A}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(A){this.supportsScrolling()&&this.window.scrollTo(A[0],A[1])}scrollToAnchor(A){if(!this.supportsScrolling())return;const v=function bi(g,A){const v=g.getElementById(A)||g.getElementsByName(A)[0];if(v)return v;if("function"==typeof g.createTreeWalker&&g.body&&(g.body.createShadowRoot||g.body.attachShadow)){const R=g.createTreeWalker(g.body,NodeFilter.SHOW_ELEMENT);let re=R.currentNode;for(;re;){const Ve=re.shadowRoot;if(Ve){const Ze=Ve.getElementById(A)||Ve.querySelector(`[name="${A}"]`);if(Ze)return Ze}re=R.nextNode()}}return null}(this.document,A);v&&(this.scrollToElement(v),v.focus())}setHistoryScrollRestoration(A){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=A)}}scrollToElement(A){const v=A.getBoundingClientRect(),R=v.left+this.window.pageXOffset,re=v.top+this.window.pageYOffset,Ve=this.offset();this.window.scrollTo(R-Ve[0],re-Ve[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const A=Qi(this.window.history)||Qi(Object.getPrototypeOf(this.window.history));return!(!A||!A.writable&&!A.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Qi(g){return Object.getOwnPropertyDescriptor(g,"scrollRestoration")}class si{}const Ao=g=>g.src,li=new s.OlP("ImageLoader",{providedIn:"root",factory:()=>Ao}),zo=new s.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});let Wo=(()=>{class g{constructor(){this.preloadedImages=(0,s.f3M)(zo),this.document=(0,s.f3M)(G)}createPreloadLinkTag(v,R,re,Ve){if(this.preloadedImages.has(R))return;this.preloadedImages.add(R);const Ze=v.createElement("link");v.setAttribute(Ze,"as","image"),v.setAttribute(Ze,"href",R),v.setAttribute(Ze,"rel","preload"),v.setAttribute(Ze,"fetchpriority","high"),Ve&&v.setAttribute(Ze,"imageSizes",Ve),re&&v.setAttribute(Ze,"imageSrcset",re),v.appendChild(this.document.head,Ze)}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275prov=s.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})();const qi=/^((\s*\d+w\s*(,|$)){1,})$/,ni=[1,2],yo={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},to=new s.OlP("ImageConfig",{providedIn:"root",factory:()=>yo});let Wi=(()=>{class g{constructor(){this.imageLoader=(0,s.f3M)(li),this.config=function _i(g){let A={};return g.breakpoints&&(A.breakpoints=g.breakpoints.sort((v,R)=>v-R)),Object.assign({},yo,g,A)}((0,s.f3M)(to)),this.renderer=(0,s.f3M)(s.Qsj),this.imgElement=(0,s.f3M)(s.SBq).nativeElement,this.injector=(0,s.f3M)(s.zs3),this.isServer=ln((0,s.f3M)(s.Lbi)),this.preloadLinkChecker=(0,s.f3M)(Wo),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}set width(v){this._width=Li(v)}get width(){return this._width}set height(v){this._height=Li(v)}get height(){return this._height}set priority(v){this._priority=no(v)}get priority(){return this._priority}set disableOptimizedSrcset(v){this._disableOptimizedSrcset=no(v)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(v){this._fill=no(v)}get fill(){return this._fill}ngOnInit(){this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const v=this.getRewrittenSrc();let R;this.setHostAttribute("src",v),this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?R=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(R=this.getAutomaticSrcset()),R&&this.setHostAttribute("srcset",R),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,v,R,this.sizes)}ngOnChanges(v){}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.imageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const v=qi.test(this.ngSrcset);return this.ngSrcset.split(",").filter(re=>""!==re).map(re=>{re=re.trim();const Ve=v?parseFloat(re):parseFloat(re)*this.width;return`${this.imageLoader({src:this.ngSrc,width:Ve})} ${re}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:v}=this.config;let R=v;return"100vw"===this.sizes?.trim()&&(R=v.filter(Ve=>Ve>=640)),R.map(Ve=>`${this.imageLoader({src:this.ngSrc,width:Ve})} ${Ve}w`).join(", ")}getFixedSrcset(){return ni.map(R=>`${this.imageLoader({src:this.ngSrc,width:this.width*R})} ${R}x`).join(", ")}shouldGenerateAutomaticSrcset(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Ao&&!(this.width>1920||this.height>1080)}ngOnDestroy(){}setHostAttribute(v,R){this.renderer.setAttribute(this.imgElement,v,R)}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275dir=s.lG2({type:g,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(v,R){2&v&&s.Udp("position",R.fill?"absolute":null)("width",R.fill?"100%":null)("height",R.fill?"100%":null)("inset",R.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[s.TTD]}),g})();function Li(g){return"string"==typeof g?parseInt(g,10):g}function no(g){return null!=g&&"false"!=`${g}`}},529:(st,ye,_)=>{_.d(ye,{JF:()=>Yn,LE:()=>Ne,TP:()=>Rt,eN:()=>Je});var s=_(6895),d=_(4650),P=_(9646),Y=_(9751),W=_(4351),G=_(9300),ee=_(4004);class J{}class X{}class H{constructor(M){this.normalizedNames=new Map,this.lazyUpdate=null,M?this.lazyInit="string"==typeof M?()=>{this.headers=new Map,M.split("\n").forEach(F=>{const we=F.indexOf(":");if(we>0){const B=F.slice(0,we),Q=B.toLowerCase(),pe=F.slice(we+1).trim();this.maybeSetNormalizedName(B,Q),this.headers.has(Q)?this.headers.get(Q).push(pe):this.headers.set(Q,[pe])}})}:()=>{this.headers=new Map,Object.keys(M).forEach(F=>{let we=M[F];const B=F.toLowerCase();"string"==typeof we&&(we=[we]),we.length>0&&(this.headers.set(B,we),this.maybeSetNormalizedName(F,B))})}:this.headers=new Map}has(M){return this.init(),this.headers.has(M.toLowerCase())}get(M){this.init();const F=this.headers.get(M.toLowerCase());return F&&F.length>0?F[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(M){return this.init(),this.headers.get(M.toLowerCase())||null}append(M,F){return this.clone({name:M,value:F,op:"a"})}set(M,F){return this.clone({name:M,value:F,op:"s"})}delete(M,F){return this.clone({name:M,value:F,op:"d"})}maybeSetNormalizedName(M,F){this.normalizedNames.has(F)||this.normalizedNames.set(F,M)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(M=>this.applyUpdate(M)),this.lazyUpdate=null))}copyFrom(M){M.init(),Array.from(M.headers.keys()).forEach(F=>{this.headers.set(F,M.headers.get(F)),this.normalizedNames.set(F,M.normalizedNames.get(F))})}clone(M){const F=new H;return F.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,F.lazyUpdate=(this.lazyUpdate||[]).concat([M]),F}applyUpdate(M){const F=M.name.toLowerCase();switch(M.op){case"a":case"s":let we=M.value;if("string"==typeof we&&(we=[we]),0===we.length)return;this.maybeSetNormalizedName(M.name,F);const B=("a"===M.op?this.headers.get(F):void 0)||[];B.push(...we),this.headers.set(F,B);break;case"d":const Q=M.value;if(Q){let pe=this.headers.get(F);if(!pe)return;pe=pe.filter($e=>-1===Q.indexOf($e)),0===pe.length?(this.headers.delete(F),this.normalizedNames.delete(F)):this.headers.set(F,pe)}else this.headers.delete(F),this.normalizedNames.delete(F)}}forEach(M){this.init(),Array.from(this.normalizedNames.keys()).forEach(F=>M(this.normalizedNames.get(F),this.headers.get(F)))}}class K{encodeKey(M){return ze(M)}encodeValue(M){return ze(M)}decodeKey(M){return decodeURIComponent(M)}decodeValue(M){return decodeURIComponent(M)}}const ve=/%(\d[a-f0-9])/gi,ke={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ze(N){return encodeURIComponent(N).replace(ve,(M,F)=>ke[F]??M)}function Se(N){return`${N}`}class Ne{constructor(M={}){if(this.updates=null,this.cloneFrom=null,this.encoder=M.encoder||new K,M.fromString){if(M.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Ie(N,M){const F=new Map;return N.length>0&&N.replace(/^\?/,"").split("&").forEach(B=>{const Q=B.indexOf("="),[pe,$e]=-1==Q?[M.decodeKey(B),""]:[M.decodeKey(B.slice(0,Q)),M.decodeValue(B.slice(Q+1))],Me=F.get(pe)||[];Me.push($e),F.set(pe,Me)}),F}(M.fromString,this.encoder)}else M.fromObject?(this.map=new Map,Object.keys(M.fromObject).forEach(F=>{const we=M.fromObject[F],B=Array.isArray(we)?we.map(Se):[Se(we)];this.map.set(F,B)})):this.map=null}has(M){return this.init(),this.map.has(M)}get(M){this.init();const F=this.map.get(M);return F?F[0]:null}getAll(M){return this.init(),this.map.get(M)||null}keys(){return this.init(),Array.from(this.map.keys())}append(M,F){return this.clone({param:M,value:F,op:"a"})}appendAll(M){const F=[];return Object.keys(M).forEach(we=>{const B=M[we];Array.isArray(B)?B.forEach(Q=>{F.push({param:we,value:Q,op:"a"})}):F.push({param:we,value:B,op:"a"})}),this.clone(F)}set(M,F){return this.clone({param:M,value:F,op:"s"})}delete(M,F){return this.clone({param:M,value:F,op:"d"})}toString(){return this.init(),this.keys().map(M=>{const F=this.encoder.encodeKey(M);return this.map.get(M).map(we=>F+"="+this.encoder.encodeValue(we)).join("&")}).filter(M=>""!==M).join("&")}clone(M){const F=new Ne({encoder:this.encoder});return F.cloneFrom=this.cloneFrom||this,F.updates=(this.updates||[]).concat(M),F}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(M=>this.map.set(M,this.cloneFrom.map.get(M))),this.updates.forEach(M=>{switch(M.op){case"a":case"s":const F=("a"===M.op?this.map.get(M.param):void 0)||[];F.push(Se(M.value)),this.map.set(M.param,F);break;case"d":if(void 0===M.value){this.map.delete(M.param);break}{let we=this.map.get(M.param)||[];const B=we.indexOf(Se(M.value));-1!==B&&we.splice(B,1),we.length>0?this.map.set(M.param,we):this.map.delete(M.param)}}}),this.cloneFrom=this.updates=null)}}class Ee{constructor(){this.map=new Map}set(M,F){return this.map.set(M,F),this}get(M){return this.map.has(M)||this.map.set(M,M.defaultValue()),this.map.get(M)}delete(M){return this.map.delete(M),this}has(M){return this.map.has(M)}keys(){return this.map.keys()}}function j(N){return typeof ArrayBuffer<"u"&&N instanceof ArrayBuffer}function le(N){return typeof Blob<"u"&&N instanceof Blob}function ce(N){return typeof FormData<"u"&&N instanceof FormData}class se{constructor(M,F,we,B){let Q;if(this.url=F,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=M.toUpperCase(),function Ce(N){switch(N){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||B?(this.body=void 0!==we?we:null,Q=B):Q=we,Q&&(this.reportProgress=!!Q.reportProgress,this.withCredentials=!!Q.withCredentials,Q.responseType&&(this.responseType=Q.responseType),Q.headers&&(this.headers=Q.headers),Q.context&&(this.context=Q.context),Q.params&&(this.params=Q.params)),this.headers||(this.headers=new H),this.context||(this.context=new Ee),this.params){const pe=this.params.toString();if(0===pe.length)this.urlWithParams=F;else{const $e=F.indexOf("?");this.urlWithParams=F+(-1===$e?"?":$e<F.length-1?"&":"")+pe}}else this.params=new Ne,this.urlWithParams=F}serializeBody(){return null===this.body?null:j(this.body)||le(this.body)||ce(this.body)||function me(N){return typeof URLSearchParams<"u"&&N instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ne?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ce(this.body)?null:le(this.body)?this.body.type||null:j(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ne?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(M={}){const F=M.method||this.method,we=M.url||this.url,B=M.responseType||this.responseType,Q=void 0!==M.body?M.body:this.body,pe=void 0!==M.withCredentials?M.withCredentials:this.withCredentials,$e=void 0!==M.reportProgress?M.reportProgress:this.reportProgress;let Me=M.headers||this.headers,ut=M.params||this.params;const Vt=M.context??this.context;return void 0!==M.setHeaders&&(Me=Object.keys(M.setHeaders).reduce((Gt,De)=>Gt.set(De,M.setHeaders[De]),Me)),M.setParams&&(ut=Object.keys(M.setParams).reduce((Gt,De)=>Gt.set(De,M.setParams[De]),ut)),new se(F,we,Q,{params:ut,headers:Me,context:Vt,reportProgress:$e,responseType:B,withCredentials:pe})}}var ge=(()=>((ge=ge||{})[ge.Sent=0]="Sent",ge[ge.UploadProgress=1]="UploadProgress",ge[ge.ResponseHeader=2]="ResponseHeader",ge[ge.DownloadProgress=3]="DownloadProgress",ge[ge.Response=4]="Response",ge[ge.User=5]="User",ge))();class q{constructor(M,F=200,we="OK"){this.headers=M.headers||new H,this.status=void 0!==M.status?M.status:F,this.statusText=M.statusText||we,this.url=M.url||null,this.ok=this.status>=200&&this.status<300}}class oe extends q{constructor(M={}){super(M),this.type=ge.ResponseHeader}clone(M={}){return new oe({headers:M.headers||this.headers,status:void 0!==M.status?M.status:this.status,statusText:M.statusText||this.statusText,url:M.url||this.url||void 0})}}class Ae extends q{constructor(M={}){super(M),this.type=ge.Response,this.body=void 0!==M.body?M.body:null}clone(M={}){return new Ae({body:void 0!==M.body?M.body:this.body,headers:M.headers||this.headers,status:void 0!==M.status?M.status:this.status,statusText:M.statusText||this.statusText,url:M.url||this.url||void 0})}}class _e extends q{constructor(M){super(M,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${M.url||"(unknown url)"}`:`Http failure response for ${M.url||"(unknown url)"}: ${M.status} ${M.statusText}`,this.error=M.error||null}}function Ke(N,M){return{body:M,headers:N.headers,context:N.context,observe:N.observe,params:N.params,reportProgress:N.reportProgress,responseType:N.responseType,withCredentials:N.withCredentials}}let Je=(()=>{class N{constructor(F){this.handler=F}request(F,we,B={}){let Q;if(F instanceof se)Q=F;else{let Me,ut;Me=B.headers instanceof H?B.headers:new H(B.headers),B.params&&(ut=B.params instanceof Ne?B.params:new Ne({fromObject:B.params})),Q=new se(F,we,void 0!==B.body?B.body:null,{headers:Me,context:B.context,params:ut,reportProgress:B.reportProgress,responseType:B.responseType||"json",withCredentials:B.withCredentials})}const pe=(0,P.of)(Q).pipe((0,W.b)(Me=>this.handler.handle(Me)));if(F instanceof se||"events"===B.observe)return pe;const $e=pe.pipe((0,G.h)(Me=>Me instanceof Ae));switch(B.observe||"body"){case"body":switch(Q.responseType){case"arraybuffer":return $e.pipe((0,ee.U)(Me=>{if(null!==Me.body&&!(Me.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Me.body}));case"blob":return $e.pipe((0,ee.U)(Me=>{if(null!==Me.body&&!(Me.body instanceof Blob))throw new Error("Response is not a Blob.");return Me.body}));case"text":return $e.pipe((0,ee.U)(Me=>{if(null!==Me.body&&"string"!=typeof Me.body)throw new Error("Response is not a string.");return Me.body}));default:return $e.pipe((0,ee.U)(Me=>Me.body))}case"response":return $e;default:throw new Error(`Unreachable: unhandled observe type ${B.observe}}`)}}delete(F,we={}){return this.request("DELETE",F,we)}get(F,we={}){return this.request("GET",F,we)}head(F,we={}){return this.request("HEAD",F,we)}jsonp(F,we){return this.request("JSONP",F,{params:(new Ne).append(we,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(F,we={}){return this.request("OPTIONS",F,we)}patch(F,we,B={}){return this.request("PATCH",F,Ke(B,we))}post(F,we,B={}){return this.request("POST",F,Ke(B,we))}put(F,we,B={}){return this.request("PUT",F,Ke(B,we))}}return N.\u0275fac=function(F){return new(F||N)(d.LFG(J))},N.\u0275prov=d.Yz7({token:N,factory:N.\u0275fac}),N})();function _t(N,M){return M(N)}function Wt(N,M){return(F,we)=>M.intercept(F,{handle:B=>N(B,we)})}const Rt=new d.OlP("HTTP_INTERCEPTORS"),Ot=new d.OlP("HTTP_INTERCEPTOR_FNS");function Ue(){let N=null;return(M,F)=>(null===N&&(N=((0,d.f3M)(Rt,{optional:!0})??[]).reduceRight(Wt,_t)),N(M,F))}let it=(()=>{class N extends J{constructor(F,we){super(),this.backend=F,this.injector=we,this.chain=null}handle(F){if(null===this.chain){const we=Array.from(new Set(this.injector.get(Ot)));this.chain=we.reduceRight((B,Q)=>function Qt(N,M,F){return(we,B)=>F.runInContext(()=>M(we,Q=>N(Q,B)))}(B,Q,this.injector),_t)}return this.chain(F,we=>this.backend.handle(we))}}return N.\u0275fac=function(F){return new(F||N)(d.LFG(X),d.LFG(d.lqb))},N.\u0275prov=d.Yz7({token:N,factory:N.\u0275fac}),N})();const Pt=/^\)\]\}',?\n/;let qt=(()=>{class N{constructor(F){this.xhrFactory=F}handle(F){if("JSONP"===F.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Y.y(we=>{const B=this.xhrFactory.build();if(B.open(F.method,F.urlWithParams),F.withCredentials&&(B.withCredentials=!0),F.headers.forEach((I,w)=>B.setRequestHeader(I,w.join(","))),F.headers.has("Accept")||B.setRequestHeader("Accept","application/json, text/plain, */*"),!F.headers.has("Content-Type")){const I=F.detectContentTypeHeader();null!==I&&B.setRequestHeader("Content-Type",I)}if(F.responseType){const I=F.responseType.toLowerCase();B.responseType="json"!==I?I:"text"}const Q=F.serializeBody();let pe=null;const $e=()=>{if(null!==pe)return pe;const I=B.statusText||"OK",w=new H(B.getAllResponseHeaders()),S=function mn(N){return"responseURL"in N&&N.responseURL?N.responseURL:/^X-Request-URL:/m.test(N.getAllResponseHeaders())?N.getResponseHeader("X-Request-URL"):null}(B)||F.url;return pe=new oe({headers:w,status:B.status,statusText:I,url:S}),pe},Me=()=>{let{headers:I,status:w,statusText:S,url:$}=$e(),de=null;204!==w&&(de=typeof B.response>"u"?B.responseText:B.response),0===w&&(w=de?200:0);let et=w>=200&&w<300;if("json"===F.responseType&&"string"==typeof de){const bt=de;de=de.replace(Pt,"");try{de=""!==de?JSON.parse(de):null}catch(In){de=bt,et&&(et=!1,de={error:In,text:de})}}et?(we.next(new Ae({body:de,headers:I,status:w,statusText:S,url:$||void 0})),we.complete()):we.error(new _e({error:de,headers:I,status:w,statusText:S,url:$||void 0}))},ut=I=>{const{url:w}=$e(),S=new _e({error:I,status:B.status||0,statusText:B.statusText||"Unknown Error",url:w||void 0});we.error(S)};let Vt=!1;const Gt=I=>{Vt||(we.next($e()),Vt=!0);let w={type:ge.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(w.total=I.total),"text"===F.responseType&&B.responseText&&(w.partialText=B.responseText),we.next(w)},De=I=>{let w={type:ge.UploadProgress,loaded:I.loaded};I.lengthComputable&&(w.total=I.total),we.next(w)};return B.addEventListener("load",Me),B.addEventListener("error",ut),B.addEventListener("timeout",ut),B.addEventListener("abort",ut),F.reportProgress&&(B.addEventListener("progress",Gt),null!==Q&&B.upload&&B.upload.addEventListener("progress",De)),B.send(Q),we.next({type:ge.Sent}),()=>{B.removeEventListener("error",ut),B.removeEventListener("abort",ut),B.removeEventListener("load",Me),B.removeEventListener("timeout",ut),F.reportProgress&&(B.removeEventListener("progress",Gt),null!==Q&&B.upload&&B.upload.removeEventListener("progress",De)),B.readyState!==B.DONE&&B.abort()}})}}return N.\u0275fac=function(F){return new(F||N)(d.LFG(s.JF))},N.\u0275prov=d.Yz7({token:N,factory:N.\u0275fac}),N})();const _n=new d.OlP("XSRF_ENABLED"),lt="XSRF-TOKEN",an=new d.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>lt}),Un="X-XSRF-TOKEN",bn=new d.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Un});class wn{}let Hn=(()=>{class N{constructor(F,we,B){this.doc=F,this.platform=we,this.cookieName=B,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const F=this.doc.cookie||"";return F!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,s.Mx)(F,this.cookieName),this.lastCookieString=F),this.lastToken}}return N.\u0275fac=function(F){return new(F||N)(d.LFG(s.K0),d.LFG(d.Lbi),d.LFG(an))},N.\u0275prov=d.Yz7({token:N,factory:N.\u0275fac}),N})();function Bt(N,M){const F=N.url.toLowerCase();if(!(0,d.f3M)(_n)||"GET"===N.method||"HEAD"===N.method||F.startsWith("http://")||F.startsWith("https://"))return M(N);const we=(0,d.f3M)(wn).getToken(),B=(0,d.f3M)(bn);return null!=we&&!N.headers.has(B)&&(N=N.clone({headers:N.headers.set(B,we)})),M(N)}var gt=(()=>((gt=gt||{})[gt.Interceptors=0]="Interceptors",gt[gt.LegacyInterceptors=1]="LegacyInterceptors",gt[gt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",gt[gt.NoXsrfProtection=3]="NoXsrfProtection",gt[gt.JsonpSupport=4]="JsonpSupport",gt[gt.RequestsMadeViaParent=5]="RequestsMadeViaParent",gt))();function Lt(N,M){return{\u0275kind:N,\u0275providers:M}}function Ge(...N){const M=[Je,qt,it,{provide:J,useExisting:it},{provide:X,useExisting:qt},{provide:Ot,useValue:Bt,multi:!0},{provide:_n,useValue:!0},{provide:wn,useClass:Hn}];for(const F of N)M.push(...F.\u0275providers);return(0,d.MR2)(M)}const Fe=new d.OlP("LEGACY_INTERCEPTOR_FN");function $t({cookieName:N,headerName:M}){const F=[];return void 0!==N&&F.push({provide:an,useValue:N}),void 0!==M&&F.push({provide:bn,useValue:M}),Lt(gt.CustomXsrfConfiguration,F)}let Yn=(()=>{class N{}return N.\u0275fac=function(F){return new(F||N)},N.\u0275mod=d.oAB({type:N}),N.\u0275inj=d.cJS({providers:[Ge(Lt(gt.LegacyInterceptors,[{provide:Fe,useFactory:Ue},{provide:Ot,useExisting:Fe,multi:!0}]),$t({cookieName:lt,headerName:Un}))]}),N})()},4650:(st,ye,_)=>{_.d(ye,{$8M:()=>zn,$WT:()=>Qn,$Z:()=>vf,AFp:()=>Eg,ALo:()=>Hp,AaK:()=>J,AsE:()=>fu,BQk:()=>Ml,CHM:()=>Ji,CRH:()=>Jp,CZH:()=>Ul,CqO:()=>qf,D6c:()=>NE,DdM:()=>Ap,EJc:()=>Qb,EiD:()=>Fd,EpF:()=>Jf,F$t:()=>ih,F4k:()=>Xf,FYo:()=>Zd,FiY:()=>aa,G48:()=>_E,Gf:()=>Zp,GfV:()=>Qd,GkF:()=>Xc,Gpc:()=>Z,Gre:()=>Nh,Hsn:()=>oh,Ikx:()=>hu,JOm:()=>hs,JVY:()=>jm,JZr:()=>ze,KtG:()=>Oo,L6k:()=>$m,LAX:()=>zm,LFG:()=>ht,LSH:()=>mc,Lbi:()=>Gb,Lck:()=>Z0,MAs:()=>Qf,MMx:()=>Cu,MR2:()=>s_,NdJ:()=>eu,O4$:()=>Ko,OlP:()=>xn,Oqu:()=>du,P3R:()=>Ld,PXZ:()=>dE,Q6J:()=>Zc,QGY:()=>qc,QbO:()=>Kb,Qsj:()=>E_,R0b:()=>Uo,RDi:()=>Fm,Rgc:()=>tl,SBq:()=>ja,Sil:()=>Xb,Suo:()=>Qp,TTD:()=>Pi,TgZ:()=>Cl,Tol:()=>bh,Udp:()=>lu,VKq:()=>Ip,W1O:()=>tg,WFA:()=>tu,WLB:()=>Op,X6Q:()=>mE,XFs:()=>lt,Xpm:()=>On,Xts:()=>_c,Y36:()=>ma,YKP:()=>bp,YNc:()=>Zf,Yjl:()=>hi,Yz7:()=>ct,Z0I:()=>ne,ZZ4:()=>Ku,_Bn:()=>vp,_UZ:()=>Jc,_Vd:()=>Ha,_c5:()=>RE,_uU:()=>Sh,aQg:()=>Yu,c2e:()=>Yb,cJS:()=>Ye,cg1:()=>gu,d8E:()=>pu,dDg:()=>aE,dqk:()=>Bt,eBb:()=>Vm,eFA:()=>Fg,ekj:()=>cu,eoX:()=>Og,f3M:()=>N,g9A:()=>Cg,h0i:()=>Ia,hGG:()=>FE,hYB:()=>iu,hij:()=>Al,iGM:()=>Yp,ifc:()=>Gt,ip1:()=>bg,jDz:()=>Dp,kEZ:()=>Pp,kL8:()=>Wh,kcU:()=>vr,kuF:()=>Ne,l5B:()=>Rp,lG2:()=>Vr,lcZ:()=>jp,lqb:()=>Qs,lri:()=>Ag,mCW:()=>cl,n5z:()=>cn,n_E:()=>Fl,oAB:()=>fi,oJD:()=>Nd,oxw:()=>rh,pB0:()=>Wm,q3G:()=>Qr,q4F:()=>Jd,qLn:()=>$a,qOj:()=>Wc,qZA:()=>wl,qbA:()=>Fp,qzn:()=>da,rWj:()=>Ig,s9C:()=>nu,sBO:()=>yE,s_b:()=>kl,soG:()=>Hl,tBr:()=>sa,tb:()=>wg,tp0:()=>T,uIk:()=>Yc,vHH:()=>Se,vpe:()=>ys,wAp:()=>on,xi3:()=>$p,xp6:()=>sf,ynx:()=>Tl,z2F:()=>jl,z3N:()=>xs,zSh:()=>Ec,zs3:()=>Js});var s=_(7579),d=_(727),P=_(9751),Y=_(6451),W=_(3099);function G(e){for(let t in e)if(e[t]===G)return t;throw Error("Could not find renamed property on target object.")}function ee(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function X(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=G({__forward_ref__:G});function Z(e){return e.__forward_ref__=Z,e.toString=function(){return J(this())},e}function K(e){return Ie(e)?e():e}function Ie(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===Z}function ve(e){return e&&!!e.\u0275providers}const ze="https://g.co/ng/security#xss";class Se extends Error{constructor(t,n){super(Ne(t,n)),this.code=t}}function Ne(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function Pe(e){return"string"==typeof e?e:null==e?"":String(e)}function ce(e,t){throw new Se(-201,!1)}function Ot(e,t){null==e&&function Ue(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function ct(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ye(e){return{providers:e.providers||[],imports:e.imports||[]}}function At(e){return Qe(e,Pt)||Qe(e,qt)}function ne(e){return null!==At(e)}function Qe(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dt(e){return e&&(e.hasOwnProperty(mn)||e.hasOwnProperty(_n))?e[mn]:null}const Pt=G({\u0275prov:G}),mn=G({\u0275inj:G}),qt=G({ngInjectableDef:G}),_n=G({ngInjectorDef:G});var lt=(()=>((lt=lt||{})[lt.Default=0]="Default",lt[lt.Host=1]="Host",lt[lt.Self=2]="Self",lt[lt.SkipSelf=4]="SkipSelf",lt[lt.Optional=8]="Optional",lt))();let an;function bn(e){const t=an;return an=e,t}function wn(e,t,n){const r=At(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&lt.Optional?null:void 0!==t?t:void ce(J(e))}const Bt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ge={},yt="__NG_DI_FLAG__",Fe="ngTempTokenPath",$t=/\n/gm,Kn="__source";let Ut;function An(e){const t=Ut;return Ut=e,t}function Yn(e,t=lt.Default){if(void 0===Ut)throw new Se(-203,!1);return null===Ut?wn(e,void 0,t):Ut.get(e,t&lt.Optional?null:void 0,t)}function ht(e,t=lt.Default){return(function Un(){return an}()||Yn)(K(e),t)}function N(e,t=lt.Default){return ht(e,M(t))}function M(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function F(e){const t=[];for(let n=0;n<e.length;n++){const r=K(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Se(900,!1);let i,o=lt.Default;for(let u=0;u<r.length;u++){const p=r[u],b=B(p);"number"==typeof b?-1===b?i=p.token:o|=b:i=p}t.push(ht(i,o))}else t.push(ht(r))}return t}function we(e,t){return e[yt]=t,e.prototype[yt]=t,e}function B(e){return e[yt]}function $e(e){return{toString:e}.toString()}var Me=(()=>((Me=Me||{})[Me.OnPush=0]="OnPush",Me[Me.Default=1]="Default",Me))(),Gt=(()=>{return(e=Gt||(Gt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Gt;var e})();const De={},I=[],w=G({\u0275cmp:G}),S=G({\u0275dir:G}),$=G({\u0275pipe:G}),de=G({\u0275mod:G}),et=G({\u0275fac:G}),bt=G({__NG_ELEMENT_ID__:G});let In=0;function On(e){return $e(()=>{const n=!0===e.standalone,r={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Me.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||I,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Gt.Emulated,id:"c"+In++,styles:e.styles||I,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=e.dependencies,u=e.features;return i.inputs=$i(e.inputs,r),i.outputs=$i(e.outputs),u&&u.forEach(p=>p(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(ur).filter(Xn):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(Zn).filter(Xn):null,i})}function ur(e){return Tn(e)||nr(e)}function Xn(e){return null!==e}function fi(e){return $e(()=>({type:e.type,bootstrap:e.bootstrap||I,declarations:e.declarations||I,imports:e.imports||I,exports:e.exports||I,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function $i(e,t){if(null==e)return De;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}const Vr=On;function hi(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Tn(e){return e[w]||null}function nr(e){return e[S]||null}function Zn(e){return e[$]||null}function Qn(e){const t=Tn(e)||nr(e)||Zn(e);return null!==t&&t.standalone}function qn(e,t){const n=e[de]||null;if(!n&&!0===t)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function gr(e){return Array.isArray(e)&&"object"==typeof e[1]}function ir(e){return Array.isArray(e)&&!0===e[1]}function Yr(e){return 0!=(4&e.flags)}function gi(e){return e.componentOffset>-1}function lo(e){return 1==(1&e.flags)}function Dr(e){return null!==e.template}function xi(e){return 0!=(256&e[2])}function er(e,t){return e.hasOwnProperty(et)?e[et]:null}class Ar{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Pi(){return ii}function ii(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qi),oi}function oi(){const e=Ri(this),t=e?.current;if(t){const n=e.previous;if(n===De)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qi(e,t,n,r){const i=this.declaredInputs[n],o=Ri(e)||function si(e,t){return e[bi]=t}(e,{previous:De,current:null}),u=o.current||(o.current={}),p=o.previous,b=p[i];u[i]=new Ar(b&&b.currentValue,t,p===De),e[r]=t}Pi.ngInherit=!0;const bi="__ngSimpleChanges__";function Ri(e){return e[bi]||null}function Pn(e){for(;Array.isArray(e);)e=e[0];return e}function li(e,t){return Pn(t[e])}function fr(e,t){return Pn(t[e.index])}function Fi(e,t){return e.data[t]}function ei(e,t){return e[t]}function mr(e,t){const n=t[e];return gr(n)?n:n[0]}function mi(e){return 64==(64&e[2])}function Ni(e,t){return null==t?null:e[t]}function po(e){e[18]=0}function ki(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const en={lFrame:vo(null),bindingsEnabled:!0};function ss(){return en.bindingsEnabled}function Xe(){return en.lFrame.lView}function gn(){return en.lFrame.tView}function Ji(e){return en.lFrame.contextLView=e,e[8]}function Oo(e){return en.lFrame.contextLView=null,e}function Cr(){let e=Po();for(;null!==e&&64===e.type;)e=e.parent;return e}function Po(){return en.lFrame.currentTNode}function ti(e,t){const n=en.lFrame;n.currentTNode=e,n.isParent=t}function Xi(){return en.lFrame.isParent}function zo(){en.lFrame.isParent=!1}function wr(){const e=en.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ni(){return en.lFrame.bindingIndex++}function Or(e){const t=en.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function as(e,t){const n=en.lFrame;n.bindingIndex=n.bindingRootIndex=e,eo(t)}function eo(e){en.lFrame.currentDirectiveIndex=e}function yo(e){const t=en.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function to(){return en.lFrame.currentQueryIndex}function Wi(e){en.lFrame.currentQueryIndex=e}function Li(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function no(e,t,n){if(n&lt.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&lt.Host||(i=Li(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;t=i,e=o}const r=en.lFrame=Zr();return r.currentTNode=t,r.lView=e,!0}function _i(e){const t=Zr(),n=e[1];en.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Zr(){const e=en.lFrame,t=null===e?null:e.child;return null===t?vo(e):t}function vo(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Fs(){const e=en.lFrame;return en.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Go=Fs;function ls(){const e=Fs();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yr(){return en.lFrame.selectedIndex}function Gi(e){en.lFrame.selectedIndex=e}function or(){const e=en.lFrame;return Fi(e.tView,e.selectedIndex)}function Ko(){en.lFrame.currentNamespace="svg"}function vr(){!function Cs(){en.lFrame.currentNamespace=null}()}function No(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const o=e.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:p,ngAfterViewInit:b,ngAfterViewChecked:x,ngOnDestroy:U}=o;u&&(e.contentHooks||(e.contentHooks=[])).push(-n,u),p&&((e.contentHooks||(e.contentHooks=[])).push(n,p),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,p)),b&&(e.viewHooks||(e.viewHooks=[])).push(-n,b),x&&((e.viewHooks||(e.viewHooks=[])).push(n,x),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,x)),null!=U&&(e.destroyHooks||(e.destroyHooks=[])).push(n,U)}}function g(e,t,n){R(e,t,3,n)}function A(e,t,n,r){(3&e[2])===n&&R(e,t,n,r)}function v(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function R(e,t,n,r){const o=r??-1,u=t.length-1;let p=0;for(let b=void 0!==r?65535&e[18]:0;b<u;b++)if("number"==typeof t[b+1]){if(p=t[b],null!=r&&p>=r)break}else t[b]<0&&(e[18]+=65536),(p<o||-1==o)&&(re(e,n,t,b),e[18]=(4294901760&e[18])+b+2),b++}function re(e,t,n,r){const i=n[r]<0,o=n[r+1],p=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(p)}finally{}}}else try{o.call(p)}finally{}}class Ze{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function yi(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],u=n[r++],p=n[r++];e.setAttribute(t,u,p,o)}else{const o=i,u=n[++r];Ei(o)?e.setProperty(t,o,u):e.setAttribute(t,o,u),r++}}return r}function ri(e){return 3===e||4===e||6===e}function Ei(e){return 64===e.charCodeAt(0)}function sr(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||ci(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function ci(e,t,n,r,i){let o=0,u=e.length;if(-1===t)u=-1;else for(;o<e.length;){const p=e[o++];if("number"==typeof p){if(p===t){u=-1;break}if(p>t){u=o-1;break}}}for(;o<e.length;){const p=e[o];if("number"==typeof p)break;if(p===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==u&&(e.splice(u,0,t),o=u+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Eo(e){return-1!==e}function ro(e){return 32767&e}function Yo(e,t){let n=function Ts(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Zo=!0;function cs(e){const t=Zo;return Zo=e,t}let $s=0;const ui={};function Do(e,t){const n=Ms(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Jo(r.data,e),Jo(t,null),Jo(r.blueprint,null));const i=kr(e,t),o=e.injectorIndex;if(Eo(i)){const u=ro(i),p=Yo(i,t),b=p[1].data;for(let x=0;x<8;x++)t[o+x]=p[u+x]|b[u+x]}return t[o+8]=i,o}function Jo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ms(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Vn(i),null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function oo(e,t,n){!function Vs(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(bt)&&(r=n[bt]),null==r&&(r=n[bt]=$s++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function a(e,t,n){if(n&lt.Optional||void 0!==e)return e;ce()}function l(e,t,n,r){if(n&lt.Optional&&void 0===r&&(r=null),!(n&(lt.Self|lt.Host))){const i=e[9],o=bn(void 0);try{return i?i.get(t,r,n&lt.Optional):wn(t,r,n&lt.Optional)}finally{bn(o)}}return a(r,0,n)}function y(e,t,n,r=lt.Default,i){if(null!==e){if(1024&t[2]){const u=function un(e,t,n,r,i){let o=e,u=t;for(;null!==o&&null!==u&&1024&u[2]&&!(256&u[2]);){const p=O(o,u,n,r|lt.Self,ui);if(p!==ui)return p;let b=o.parent;if(!b){const x=u[21];if(x){const U=x.get(n,ui,r);if(U!==ui)return U}b=Vn(u),u=u[15]}o=b}return i}(e,t,n,r,ui);if(u!==ui)return u}const o=O(e,t,n,r,ui);if(o!==ui)return o}return l(t,n,r,i)}function O(e,t,n,r,i){const o=function je(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(bt)?e[bt]:void 0;return"number"==typeof t?t>=0?255&t:fn:t}(n);if("function"==typeof o){if(!no(t,e,r))return r&lt.Host?a(i,0,r):l(t,n,r,i);try{const u=o(r);if(null!=u||r&lt.Optional)return u;ce()}finally{Go()}}else if("number"==typeof o){let u=null,p=Ms(e,t),b=-1,x=r&lt.Host?t[16][6]:null;for((-1===p||r&lt.SkipSelf)&&(b=-1===p?kr(e,t):t[p+8],-1!==b&&Et(r,!1)?(u=t[1],p=ro(b),t=Yo(b,t)):p=-1);-1!==p;){const U=t[1];if(nt(o,p,U.data)){const te=z(p,t,n,u,r,x);if(te!==ui)return te}b=t[p+8],-1!==b&&Et(r,t[1].data[p+8]===x)&&nt(o,p,t)?(u=U,p=ro(b),t=Yo(b,t)):p=-1}}return i}function z(e,t,n,r,i,o){const u=t[1],p=u.data[e+8],U=fe(p,u,n,null==r?gi(p)&&Zo:r!=u&&0!=(3&p.type),i&lt.Host&&o===p);return null!==U?ue(t,u,U,p):ui}function fe(e,t,n,r,i){const o=e.providerIndexes,u=t.data,p=1048575&o,b=e.directiveStart,U=o>>20,xe=i?p+U:e.directiveEnd;for(let He=r?p:p+U;He<xe;He++){const ot=u[He];if(He<b&&n===ot||He>=b&&ot.type===n)return He}if(i){const He=u[b];if(He&&Dr(He)&&He.type===n)return b}return null}function ue(e,t,n,r){let i=e[n];const o=t.data;if(function wt(e){return e instanceof Ze}(i)){const u=i;u.resolving&&function Ce(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Se(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Ee(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Pe(e)}(o[n]));const p=cs(u.canSeeViewProviders);u.resolving=!0;const b=u.injectImpl?bn(u.injectImpl):null;no(e,r,lt.Default);try{i=e[n]=u.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ks(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const u=ii(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==b&&bn(b),cs(p),u.resolving=!1,Go()}}return i}function nt(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Et(e,t){return!(e&lt.Self||e&lt.Host&&t)}class St{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return y(this._tNode,this._lView,t,M(r),n)}}function fn(){return new St(Cr(),Xe())}function cn(e){return $e(()=>{const t=e.prototype.constructor,n=t[et]||Kt(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[et]||Kt(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Kt(e){return Ie(e)?()=>{const t=Kt(K(e));return t&&t()}:er(e)}function Vn(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function zn(e){return function D(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const o=n[i];if(ri(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}}return null}(Cr(),e)}const hr="__parameters__";function br(e,t,n){return $e(()=>{const r=function Di(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;const u=new i(...o);return p.annotation=u,p;function p(b,x,U){const te=b.hasOwnProperty(hr)?b[hr]:Object.defineProperty(b,hr,{value:[]})[hr];for(;te.length<=U;)te.push(null);return(te[U]=te[U]||[]).push(u),b}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class xn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=ct({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function h(e,t){e.forEach(n=>Array.isArray(n)?h(n,t):t(n))}function c(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function m(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function C(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Tt(e,t,n){let r=Cn(e,t);return r>=0?e[1|r]=n:(r=~r,function Re(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function kt(e,t){const n=Cn(e,t);if(n>=0)return e[1|n]}function Cn(e,t){return function To(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),u=e[o<<n];if(t===u)return o<<n;u>t?i=o:r=o+1}return~(i<<n)}(e,t,1)}const sa=we(br("Inject",e=>({token:e})),-1),aa=we(br("Optional"),8),T=we(br("SkipSelf"),4);var hs=(()=>((hs=hs||{})[hs.Important=1]="Important",hs[hs.DashCase=2]="DashCase",hs))();const Zl=new Map;let rm=0;const Jl="__ngContext__";function Ui(e,t){gr(t)?(e[Jl]=t[20],function om(e){Zl.set(e[20],e)}(t)):e[Jl]=t}function ql(e,t){return undefined(e,t)}function ka(e){const t=e[3];return ir(t)?t[3]:t}function ec(e){return ld(e[13])}function tc(e){return ld(e[4])}function ld(e){for(;null!==e&&!ir(e);)e=e[4];return e}function ua(e,t,n,r,i){if(null!=r){let o,u=!1;ir(r)?o=r:gr(r)&&(u=!0,r=r[0]);const p=Pn(r);0===e&&null!==n?null==i?pd(t,n,p):Gs(t,n,p,i||null,!0):1===e&&null!==n?Gs(t,n,p,i||null,!0):2===e?function lc(e,t,n){const r=il(e,t);r&&function Tm(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,p,u):3===e&&t.destroyNode(p),null!=o&&function xm(e,t,n,r,i){const o=n[7];o!==Pn(n)&&ua(t,e,r,o,i);for(let p=10;p<n.length;p++){const b=n[p];La(b[1],b,e,t,r,o)}}(t,e,o,n,i)}}function rc(e,t,n){return e.createElement(t,n)}function ud(e,t){const n=e[9],r=n.indexOf(t),i=t[3];512&t[2]&&(t[2]&=-513,ki(i,-1)),n.splice(r,1)}function ic(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&ud(i,r),t>0&&(e[n-1][4]=r[4]);const o=m(e,10+t);!function _m(e,t){La(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const u=o[19];null!==u&&u.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function dd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&La(e,t,n,3,null,null),function bm(e){let t=e[13];if(!t)return oc(e[1],e);for(;t;){let n=null;if(gr(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)gr(t)&&oc(t[1],t),t=t[3];null===t&&(t=e),gr(t)&&oc(t[1],t),n=t&&t[4]}t=n}}(t)}}function oc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function wm(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof Ze)){const o=n[r+1];if(Array.isArray(o))for(let u=0;u<o.length;u+=2){const p=i[o[u]],b=o[u+1];try{b.call(p)}finally{}}else try{o.call(i)}finally{}}}}(e,t),function Cm(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const u=n[o+3];u>=0?r[i=u]():r[i=-u].unsubscribe(),o+=2}else{const u=r[i=n[o+1]];n[o].call(u)}if(null!==r){for(let o=i+1;o<r.length;o++)(0,r[o])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&ir(t[3])){n!==t[3]&&ud(n,t);const r=t[19];null!==r&&r.detachView(e)}!function sm(e){Zl.delete(e[20])}(t)}}function fd(e,t,n){return function hd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Gt.None||o===Gt.Emulated)return null}return fr(r,n)}}(e,t.parent,n)}function Gs(e,t,n,r,i){e.insertBefore(t,n,r,i)}function pd(e,t,n){e.appendChild(t,n)}function gd(e,t,n,r,i){null!==r?Gs(e,t,n,r,i):pd(e,t,n)}function il(e,t){return e.parentNode(t)}function md(e,t,n){return yd(e,t,n)}let al,dc,ll,yd=function _d(e,t,n){return 40&e.type?fr(e,n):null};function ol(e,t,n,r){const i=fd(e,r,t),o=t[11],p=md(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let b=0;b<n.length;b++)gd(o,i,n[b],p,!1);else gd(o,i,n,p,!1)}function sl(e,t){if(null!==t){const n=t.type;if(3&n)return fr(t,e);if(4&n)return ac(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return sl(e,r);{const i=e[t.index];return ir(i)?ac(-1,i):Pn(i)}}if(32&n)return ql(t,e)()||Pn(e[t.index]);{const r=bd(e,t);return null!==r?Array.isArray(r)?r[0]:sl(ka(e[16]),r):sl(e,t.next)}}return null}function bd(e,t){return null!==t?e[16][6].projection[t.projection]:null}function ac(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return sl(r,i)}return t[7]}function cc(e,t,n,r,i,o,u){for(;null!=n;){const p=r[n.index],b=n.type;if(u&&0===t&&(p&&Ui(Pn(p),r),n.flags|=2),32!=(32&n.flags))if(8&b)cc(e,t,n.child,r,i,o,!1),ua(t,e,i,p,o);else if(32&b){const x=ql(n,r);let U;for(;U=x();)ua(t,e,i,U,o);ua(t,e,i,p,o)}else 16&b?Ed(e,t,r,n,i,o):ua(t,e,i,p,o);n=u?n.projectionNext:n.next}}function La(e,t,n,r,i,o){cc(n,r,e.firstChild,t,i,o,!1)}function Ed(e,t,n,r,i,o){const u=n[16],b=u[6].projection[r.projection];if(Array.isArray(b))for(let x=0;x<b.length;x++)ua(t,e,i,b[x],o);else cc(e,t,b,u[3],i,o,!0)}function Dd(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Cd(e,t,n){const{mergedAttrs:r,classes:i,styles:o}=n;null!==r&&yi(e,t,r),null!==i&&Dd(e,t,i),null!==o&&function Im(e,t,n){e.setAttribute(t,"style",n)}(e,t,o)}function Ks(e){return function uc(){if(void 0===al&&(al=null,Bt.trustedTypes))try{al=Bt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return al}()?.createHTML(e)||e}function Fm(e){dc=e}function fc(){if(void 0===ll&&(ll=null,Bt.trustedTypes))try{ll=Bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ll}function Td(e){return fc()?.createHTML(e)||e}function Sd(e){return fc()?.createScriptURL(e)||e}class Ys{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ze})`}}class Nm extends Ys{getTypeName(){return"HTML"}}class km extends Ys{getTypeName(){return"Style"}}class Lm extends Ys{getTypeName(){return"Script"}}class Bm extends Ys{getTypeName(){return"URL"}}class Um extends Ys{getTypeName(){return"ResourceURL"}}function xs(e){return e instanceof Ys?e.changingThisBreaksApplicationSecurity:e}function da(e,t){const n=function Hm(e){return e instanceof Ys&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ze})`)}return n===t}function jm(e){return new Nm(e)}function $m(e){return new km(e)}function Vm(e){return new Lm(e)}function zm(e){return new Bm(e)}function Wm(e){return new Um(e)}class Gm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Ks(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Km{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Ks(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Ks(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0<i;i--){const u=n.item(i).name;("xmlns:ns1"===u||0===u.indexOf("ns1:"))&&t.removeAttribute(u)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Zm=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function cl(e){return(e=String(e)).match(Zm)?e:"unsafe:"+e}function As(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ba(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ad=As("area,br,col,hr,img,wbr"),Id=As("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Od=As("rp,rt"),hc=Ba(Ad,Ba(Id,As("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ba(Od,As("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ba(Od,Id)),pc=As("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pd=Ba(pc,As("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),As("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Qm=As("script,style,template");class Jm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!hc.hasOwnProperty(n))return this.sanitizedSomething=!0,!Qm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),u=o.name,p=u.toLowerCase();if(!Pd.hasOwnProperty(p)){this.sanitizedSomething=!0;continue}let b=o.value;pc[p]&&(b=cl(b)),this.buf.push(" ",u,'="',Rd(b),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();hc.hasOwnProperty(n)&&!Ad.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Rd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Xm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qm=/([^\#-~ |!])/g;function Rd(e){return e.replace(/&/g,"&amp;").replace(Xm,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ul;function Fd(e,t){let n=null;try{ul=ul||function xd(e){const t=new Km(e);return function Ym(){try{return!!(new window.DOMParser).parseFromString(Ks(""),"text/html")}catch{return!1}}()?new Gm(t):t}(e);let r=t?String(t):"";n=ul.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ul.getInertBodyElement(r)}while(r!==o);return Ks((new Jm).sanitizeChildren(gc(n)||n))}finally{if(n){const r=gc(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function gc(e){return"content"in e&&function e_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qr=(()=>((Qr=Qr||{})[Qr.NONE=0]="NONE",Qr[Qr.HTML=1]="HTML",Qr[Qr.STYLE=2]="STYLE",Qr[Qr.SCRIPT=3]="SCRIPT",Qr[Qr.URL=4]="URL",Qr[Qr.RESOURCE_URL=5]="RESOURCE_URL",Qr))();function Nd(e){const t=Ua();return t?Td(t.sanitize(Qr.HTML,e)||""):da(e,"HTML")?Td(xs(e)):Fd(function wd(){return void 0!==dc?dc:typeof document<"u"?document:void 0}(),Pe(e))}function mc(e){const t=Ua();return t?t.sanitize(Qr.URL,e)||"":da(e,"URL")?xs(e):cl(Pe(e))}function kd(e){const t=Ua();if(t)return Sd(t.sanitize(Qr.RESOURCE_URL,e)||"");if(da(e,"ResourceURL"))return Sd(xs(e));throw new Se(904,!1)}function Ld(e,t,n){return function o_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?kd:mc}(t,n)(e)}function Ua(){const e=Xe();return e&&e[12]}const _c=new xn("ENVIRONMENT_INITIALIZER"),Bd=new xn("INJECTOR",-1),Ud=new xn("INJECTOR_DEF_TYPES");class Hd{get(t,n=Ge){if(n===Ge){const r=new Error(`NullInjectorError: No provider for ${J(t)}!`);throw r.name="NullInjectorError",r}return n}}function s_(e){return{\u0275providers:e}}function a_(...e){return{\u0275providers:jd(0,e),\u0275fromNgModule:!0}}function jd(e,...t){const n=[],r=new Set;let i;return h(t,o=>{const u=o;yc(u,n,[],r)&&(i||(i=[]),i.push(u))}),void 0!==i&&$d(i,n),n}function $d(e,t){for(let n=0;n<e.length;n++){const{providers:i}=e[n];vc(i,o=>{t.push(o)})}}function yc(e,t,n,r){if(!(e=K(e)))return!1;let i=null,o=Dt(e);const u=!o&&Tn(e);if(o||u){if(u&&!u.standalone)return!1;i=e}else{const b=e.ngModule;if(o=Dt(b),!o)return!1;i=b}const p=r.has(i);if(u){if(p)return!1;if(r.add(i),u.dependencies){const b="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const x of b)yc(x,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!p){let x;r.add(i);try{h(o.imports,U=>{yc(U,t,n,r)&&(x||(x=[]),x.push(U))})}finally{}void 0!==x&&$d(x,t)}if(!p){const x=er(i)||(()=>new i);t.push({provide:i,useFactory:x,deps:I},{provide:Ud,useValue:i,multi:!0},{provide:_c,useValue:()=>ht(i),multi:!0})}const b=o.providers;null==b||p||vc(b,U=>{t.push(U)})}}return i!==e&&void 0!==e.providers}function vc(e,t){for(let n of e)ve(n)&&(n=n.\u0275providers),Array.isArray(n)?vc(n,t):t(n)}const l_=G({provide:String,useValue:G});function bc(e){return null!==e&&"object"==typeof e&&l_ in e}function Zs(e){return"function"==typeof e}const Ec=new xn("Set Injector scope."),dl={},u_={};let Dc;function fl(){return void 0===Dc&&(Dc=new Hd),Dc}class Qs{}class Wd extends Qs{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wc(t,u=>this.processProvider(u)),this.records.set(Bd,fa(void 0,this)),i.has("environment")&&this.records.set(Qs,fa(void 0,this));const o=this.records.get(Ec);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ud.multi,I,lt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=An(this),r=bn(void 0);try{return t()}finally{An(n),bn(r)}}get(t,n=Ge,r=lt.Default){this.assertNotDestroyed(),r=M(r);const i=An(this),o=bn(void 0);try{if(!(r&lt.SkipSelf)){let p=this.records.get(t);if(void 0===p){const b=function g_(e){return"function"==typeof e||"object"==typeof e&&e instanceof xn}(t)&&At(t);p=b&&this.injectableDefInScope(b)?fa(Cc(t),dl):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(r&lt.Self?fl():this.parent).get(t,n=r&lt.Optional&&n===Ge?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Fe]=u[Fe]||[]).unshift(J(t)),i)throw u;return function Q(e,t,n,r){const i=e[Fe];throw t[Kn]&&i.unshift(t[Kn]),e.message=function pe(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=J(t);if(Array.isArray(t))i=t.map(J).join(" -> ");else if("object"==typeof t){let o=[];for(let u in t)if(t.hasOwnProperty(u)){let p=t[u];o.push(u+":"+("string"==typeof p?JSON.stringify(p):J(p)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace($t,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Fe]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{bn(o),An(i)}}resolveInjectorInitializers(){const t=An(this),n=bn(void 0);try{const r=this.get(_c.multi,I,lt.Self);for(const i of r)i()}finally{An(t),bn(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(J(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(t){let n=Zs(t=K(t))?t:K(t&&t.provide);const r=function f_(e){return bc(e)?fa(void 0,e.useValue):fa(Gd(e),dl)}(t);if(Zs(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=fa(void 0,dl,!0),i.factory=()=>F(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===dl&&(n.value=u_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function p_(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=K(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Cc(e){const t=At(e),n=null!==t?t.factory:er(e);if(null!==n)return n;if(e instanceof xn)throw new Se(204,!1);if(e instanceof Function)return function d_(e){const t=e.length;if(t>0)throw C(t,"?"),new Se(204,!1);const n=function rt(e){const t=e&&(e[Pt]||e[qt]);if(t){const n=function Mt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Se(204,!1)}function Gd(e,t,n){let r;if(Zs(e)){const i=K(e);return er(i)||Cc(i)}if(bc(e))r=()=>K(e.useValue);else if(function zd(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...F(e.deps||[]));else if(function Vd(e){return!(!e||!e.useExisting)}(e))r=()=>ht(K(e.useExisting));else{const i=K(e&&(e.useClass||e.provide));if(!function h_(e){return!!e.deps}(e))return er(i)||Cc(i);r=()=>new i(...F(e.deps))}return r}function fa(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wc(e,t){for(const n of e)Array.isArray(n)?wc(n,t):n&&ve(n)?wc(n.\u0275providers,t):t(n)}class m_{}class Kd{}class y_{resolveComponentFactory(t){throw function __(e){const t=Error(`No component factory found for ${J(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ha=(()=>{class e{}return e.NULL=new y_,e})();function v_(){return ha(Cr(),Xe())}function ha(e,t){return new ja(fr(e,t))}let ja=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=v_,e})();function b_(e){return e instanceof ja?e.nativeElement:e}class Zd{}let E_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function D_(){const e=Xe(),n=mr(Cr().index,e);return(gr(n)?n:e)[11]}(),e})(),C_=(()=>{class e{}return e.\u0275prov=ct({token:e,providedIn:"root",factory:()=>null}),e})();class Qd{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Jd=new Qd("15.1.1"),Tc={};function Sc(e){return e.ngOriginalError}class $a{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Sc(t);for(;n&&Sc(n);)n=Sc(n);return n||null}}function Is(e){return e instanceof Function?e():e}function qd(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const ef="ng-template";function F_(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==qd(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function tf(e){return 4===e.type&&e.value!==ef}function N_(e,t,n){return t===(4!==e.type||n?e.value:ef)}function k_(e,t,n){let r=4;const i=e.attrs||[],o=function U_(e){for(let t=0;t<e.length;t++)if(ri(e[t]))return t;return e.length}(i);let u=!1;for(let p=0;p<t.length;p++){const b=t[p];if("number"!=typeof b){if(!u)if(4&r){if(r=2|1&r,""!==b&&!N_(e,b,n)||""===b&&1===t.length){if(Xo(r))return!1;u=!0}}else{const x=8&r?b:t[++p];if(8&r&&null!==e.attrs){if(!F_(e.attrs,x,n)){if(Xo(r))return!1;u=!0}continue}const te=L_(8&r?"class":b,i,tf(e),n);if(-1===te){if(Xo(r))return!1;u=!0;continue}if(""!==x){let xe;xe=te>o?"":i[te+1].toLowerCase();const He=8&r?xe:null;if(He&&-1!==qd(He,x,0)||2&r&&x!==xe){if(Xo(r))return!1;u=!0}}}}else{if(!u&&!Xo(r)&&!Xo(b))return!1;if(u&&Xo(b))continue;u=!1,r=b|1&r}}return Xo(r)||u}function Xo(e){return 0==(1&e)}function L_(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){const u=t[i];if(u===e)return i;if(3===u||6===u)o=!0;else{if(1===u||2===u){let p=t[++i];for(;"string"==typeof p;)p=t[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=o?1:2}return-1}return function H_(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function nf(e,t,n=!1){for(let r=0;r<t.length;r++)if(k_(e,t[r],n))return!0;return!1}function j_(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function rf(e,t){return e?":not("+t.trim()+")":t}function $_(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let u=e[n];if("string"==typeof u)if(2&r){const p=e[++n];i+="["+u+(p.length>0?'="'+p+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!Xo(u)&&(t+=rf(o,i),i=""),r=u,o=o||!Xo(r);n++}return""!==i&&(t+=rf(o,i)),t}const En={};function sf(e){af(gn(),Xe(),yr()+e,!1)}function af(e,t,n,r){if(!r)if(3==(3&t[2])){const o=e.preOrderCheckHooks;null!==o&&g(t,o,n)}else{const o=e.preOrderHooks;null!==o&&A(t,o,0,n)}Gi(n)}function df(e,t=null,n=null,r){const i=ff(e,t,n,r);return i.resolveInjectorInitializers(),i}function ff(e,t=null,n=null,r,i=new Set){const o=[n||I,a_(e)];return r=r||("object"==typeof e?void 0:J(e)),new Wd(o,t||fl(),r||null,i)}let Js=(()=>{class e{static create(n,r){if(Array.isArray(n))return df({name:""},r,n,"");{const i=n.name??"";return df({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Ge,e.NULL=new Hd,e.\u0275prov=ct({token:e,providedIn:"any",factory:()=>ht(Bd)}),e.__NG_ELEMENT_ID__=-1,e})();function ma(e,t=lt.Default){const n=Xe();return null===n?ht(e,t):y(Cr(),n,K(e),t)}function vf(){throw new Error("invalid")}function bf(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r+1];if(-1!==o){const u=e.data[o];Wi(n[r]),u.contentQueries(2,t[o],o)}}}function pl(e,t,n,r,i,o,u,p,b,x,U){const te=t.blueprint.slice();return te[0]=i,te[2]=76|r,(null!==U||e&&1024&e[2])&&(te[2]|=1024),po(te),te[3]=te[15]=e,te[8]=n,te[10]=u||e&&e[10],te[11]=p||e&&e[11],te[12]=b||e&&e[12]||null,te[9]=x||e&&e[9]||null,te[6]=o,te[20]=function im(){return rm++}(),te[21]=U,te[16]=2==t.type?e[16]:te,te}function _a(e,t,n,r,i){let o=e.data[t];if(null===o)o=function Pc(e,t,n,r,i){const o=Po(),u=Xi(),b=e.data[t]=function py(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,u?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=b),null!==o&&(u?null==o.child&&null!==b.parent&&(o.child=b):null===o.next&&(o.next=b)),b}(e,t,n,r,i),function Ro(){return en.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const u=function mo(){const e=en.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();o.injectorIndex=null===u?-1:u.injectorIndex}return ti(o,!0),o}function Va(e,t,n,r){if(0===n)return-1;const i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Rc(e,t,n){_i(t);try{const r=e.viewQuery;null!==r&&Vc(1,r,n);const i=e.template;null!==i&&Ef(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&bf(e,t),e.staticViewQueries&&Vc(2,e.viewQuery,n);const o=e.components;null!==o&&function dy(e,t){for(let n=0;n<t.length;n++)Ry(e,t[n])}(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,ls()}}function gl(e,t,n,r){const i=t[2];if(128!=(128&i)){_i(t);try{po(t),function _r(e){return en.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Ef(e,t,n,2,r);const u=3==(3&i);if(u){const x=e.preOrderCheckHooks;null!==x&&g(t,x,null)}else{const x=e.preOrderHooks;null!==x&&A(t,x,0,null),v(t,0)}if(function Oy(e){for(let t=ec(e);null!==t;t=tc(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r];512&i[2]||ki(i[3],1),i[2]|=512}}}(t),function Iy(e){for(let t=ec(e);null!==t;t=tc(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];mi(r)&&gl(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&bf(e,t),u){const x=e.contentCheckHooks;null!==x&&g(t,x)}else{const x=e.contentHooks;null!==x&&A(t,x,1),v(t,1)}!function cy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)Gi(~i);else{const o=i,u=n[++r],p=n[++r];as(u,o),p(2,t[o])}}}finally{Gi(-1)}}(e,t);const p=e.components;null!==p&&function uy(e,t){for(let n=0;n<t.length;n++)Py(e,t[n])}(t,p);const b=e.viewQuery;if(null!==b&&Vc(2,b,r),u){const x=e.viewCheckHooks;null!==x&&g(t,x)}else{const x=e.viewHooks;null!==x&&A(t,x,2),v(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,ki(t[3],-1))}finally{ls()}}}function Ef(e,t,n,r,i){const o=yr(),u=2&r;try{Gi(-1),u&&t.length>22&&af(e,t,22,!1),n(r,i)}finally{Gi(o)}}function Fc(e,t,n){if(Yr(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o<i;o++){const u=e.data[o];u.contentQueries&&u.contentQueries(1,n[o],o)}}}function Nc(e,t,n){ss()&&(function by(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;gi(n)&&function Sy(e,t,n){const r=fr(t,e),i=Df(n),o=e[10],u=ml(e,pl(e,i,null,n.onPush?32:16,r,t,o,o.createRenderer(r,n),null,null,null));e[t.index]=u}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Do(n,t),Ui(r,t);const u=n.initialInputs;for(let p=i;p<o;p++){const b=e.data[p],x=ue(t,e,p,n);Ui(x,t),null!==u&&xy(0,p-i,x,b,0,u),Dr(b)&&(mr(n.index,t)[8]=ue(t,e,p,n))}}(e,t,n,fr(n,t)),64==(64&n.flags)&&xf(e,t,n))}function kc(e,t,n=fr){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const u=r[o+1],p=-1===u?n(t,e):e[u];e[i++]=p}}}function Df(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Lc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Lc(e,t,n,r,i,o,u,p,b,x){const U=22+r,te=U+i,xe=function fy(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:En);return n}(U,te),He="function"==typeof x?x():x;return xe[1]={type:e,blueprint:xe,template:n,queries:null,viewQuery:p,declTNode:t,data:xe.slice().fill(null,U),bindingStartIndex:U,expandoStartIndex:te,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof u?u():u,firstChild:null,schemas:b,consts:He,incompleteFirstPass:!1}}function Cf(e,t,n,r){const i=If(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Of(e).push(r,i.length-1))}function wf(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const o=e[i];null===r?Tf(n,t,i,o):r.hasOwnProperty(i)&&Tf(n,t,r[i],o)}return n}function Tf(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function So(e,t,n,r,i,o,u,p){const b=fr(t,n);let U,x=t.inputs;!p&&null!=x&&(U=x[r])?(zc(e,n,U,r,i),gi(t)&&Mf(n,t.index)):3&t.type&&(r=function my(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=u?u(i,t.value||"",r):i,o.setProperty(b,r,i))}function Mf(e,t){const n=mr(t,e);16&n[2]||(n[2]|=32)}function Bc(e,t,n,r){let i=!1;if(ss()){const o=null===r?null:{"":-1},u=function Dy(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o<n.length;o++){const u=n[o];if(nf(t,u.selectors,!1))if(r||(r=[]),Dr(u))if(null!==u.findHostDirectiveDefs){const p=[];i=i||new Map,u.findHostDirectiveDefs(u,p,i),r.unshift(...p,u),Uc(e,t,p.length)}else r.unshift(u),Uc(e,t,0);else i=i||new Map,u.findHostDirectiveDefs?.(u,r,i),r.push(u)}return null===r?null:[r,i]}(e,n);let p,b;null===u?p=b=null:[p,b]=u,null!==p&&(i=!0,Sf(e,t,n,p,o,b)),o&&function Cy(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const o=n[t[i+1]];if(null==o)throw new Se(-301,!1);r.push(t[i],o)}}}(n,r,o)}return n.mergedAttrs=sr(n.mergedAttrs,n.attrs),i}function Sf(e,t,n,r,i,o){for(let x=0;x<r.length;x++)oo(Do(n,t),e,r[x].type);!function Ty(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let x=0;x<r.length;x++){const U=r[x];U.providersResolver&&U.providersResolver(U)}let u=!1,p=!1,b=Va(e,t,r.length,null);for(let x=0;x<r.length;x++){const U=r[x];n.mergedAttrs=sr(n.mergedAttrs,U.hostAttrs),My(e,n,t,b,U),wy(b,U,i),null!==U.contentQueries&&(n.flags|=4),(null!==U.hostBindings||null!==U.hostAttrs||0!==U.hostVars)&&(n.flags|=64);const te=U.type.prototype;!u&&(te.ngOnChanges||te.ngOnInit||te.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),!p&&(te.ngOnChanges||te.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),p=!0),b++}!function gy(e,t,n){const i=t.directiveEnd,o=e.data,u=t.attrs,p=[];let b=null,x=null;for(let U=t.directiveStart;U<i;U++){const te=o[U],xe=n?n.get(te):null,ot=xe?xe.outputs:null;b=wf(te.inputs,U,b,xe?xe.inputs:null),x=wf(te.outputs,U,x,ot);const mt=null===b||null===u||tf(t)?null:Ay(b,U,u);p.push(mt)}null!==b&&(b.hasOwnProperty("class")&&(t.flags|=8),b.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=p,t.inputs=b,t.outputs=x}(e,n,o)}function xf(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,u=function Fo(){return en.lFrame.currentDirectiveIndex}();try{Gi(o);for(let p=r;p<i;p++){const b=e.data[p],x=t[p];eo(p),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Ey(b,x)}}finally{Gi(-1),eo(u)}}function Ey(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Uc(e,t,n){t.componentOffset=n,(e.components||(e.components=[])).push(t.index)}function wy(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Dr(t)&&(n[""]=e)}}function My(e,t,n,r,i){e.data[r]=i;const o=i.factory||(i.factory=er(i.type)),u=new Ze(o,Dr(i),ma);e.blueprint[r]=u,n[r]=u,function yy(e,t,n,r,i){const o=i.hostBindings;if(o){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const p=~t.index;(function vy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=p&&u.push(p),u.push(n,r,o)}}(e,t,r,Va(e,n,i.hostVars,En),i)}function ps(e,t,n,r,i,o){const u=fr(e,t);!function Hc(e,t,n,r,i,o,u){if(null==o)e.removeAttribute(t,i,n);else{const p=null==u?Pe(o):u(o,r||"",i);e.setAttribute(t,i,p,n)}}(t[11],u,o,e.value,n,r,i)}function xy(e,t,n,r,i,o){const u=o[t];if(null!==u){const p=r.setInput;for(let b=0;b<u.length;){const x=u[b++],U=u[b++],te=u[b++];null!==p?r.setInput(n,te,x,U):n[U]=te}}}function Ay(e,t,n){let r=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const u=e[o];for(let p=0;p<u.length;p+=2)if(u[p]===t){r.push(o,u[p+1],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Af(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null]}function Py(e,t){const n=mr(t,e);if(mi(n)){const r=n[1];48&n[2]?gl(r,n,r.template,n[8]):n[5]>0&&jc(n)}}function jc(e){for(let r=ec(e);null!==r;r=tc(r))for(let i=10;i<r.length;i++){const o=r[i];if(mi(o))if(512&o[2]){const u=o[1];gl(u,o,u.template,o[8])}else o[5]>0&&jc(o)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=mr(n[r],e);mi(i)&&i[5]>0&&jc(i)}}function Ry(e,t){const n=mr(t,e),r=n[1];(function Fy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Rc(r,n,n[8])}function ml(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function $c(e){for(;e;){e[2]|=32;const t=ka(e);if(xi(e)&&!t)return e;e=t}return null}function _l(e,t,n,r=!0){const i=t[10];i.begin&&i.begin();try{gl(e,t,e.template,n)}catch(u){throw r&&Rf(t,u),u}finally{i.end&&i.end()}}function Vc(e,t,n){Wi(0),t(e,n)}function If(e){return e[7]||(e[7]=[])}function Of(e){return e.cleanup||(e.cleanup=[])}function Pf(e,t,n){return(null===e||Dr(e))&&(n=function Ao(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Rf(e,t){const n=e[9],r=n?n.get($a,null):null;r&&r.handleError(t)}function zc(e,t,n,r,i){for(let o=0;o<n.length;){const u=n[o++],p=n[o++],b=t[u],x=e.data[u];null!==x.setInput?x.setInput(b,i,r,p):b[p]=i}}function Os(e,t,n){const r=li(t,e);!function cd(e,t,n){e.setValue(t,n)}(e[11],r,n)}function yl(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let u=0;u<t.length;u++){const p=t[u];"number"==typeof p?o=p:1==o?i=X(i,p):2==o&&(r=X(r,p+": "+t[++u]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function vl(e,t,n,r,i=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&r.push(Pn(o)),ir(o))for(let p=10;p<o.length;p++){const b=o[p],x=b[1].firstChild;null!==x&&vl(b[1],b,x,r)}const u=n.type;if(8&u)vl(e,t,n.child,r);else if(32&u){const p=ql(n,t);let b;for(;b=p();)r.push(b)}else if(16&u){const p=bd(t,n);if(Array.isArray(p))r.push(...p);else{const b=ka(t[16]);vl(b[1],b,p,r,!0)}}n=i?n.projectionNext:n.next}return r}class za{get rootNodes(){const t=this._lView,n=t[1];return vl(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(ir(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(ic(t,r),m(n,r))}this._attachedToViewContainer=!1}dd(this._lView[1],this._lView)}onDestroy(t){Cf(this._lView[1],this._lView,null,t)}markForCheck(){$c(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){_l(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vm(e,t){La(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=t}}class Ny extends za{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;_l(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Ff extends Ha{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Tn(t);return new Wa(n,this.ngModule)}}function Nf(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Ly{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=M(r);const i=this.injector.get(t,Tc,r);return i!==Tc||n===Tc?i:this.parentInjector.get(t,n,r)}}class Wa extends Kd{get inputs(){return Nf(this.componentDef.inputs)}get outputs(){return Nf(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function V_(e){return e.map($_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Qs?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const u=o?new Ly(t,o):t,p=u.get(Zd,null);if(null===p)throw new Se(407,!1);const b=u.get(C_,null),x=p.createRenderer(null,this.componentDef),U=this.componentDef.selectors[0][0]||"div",te=r?function hy(e,t,n){return e.selectRootElement(t,n===Gt.ShadowDom)}(x,r,this.componentDef.encapsulation):rc(x,U,function ky(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(U)),xe=this.componentDef.onPush?288:272,He=Lc(0,null,null,1,0,null,null,null,null,null),ot=pl(null,He,null,xe,null,null,p,x,b,u,null);let mt,It;_i(ot);try{const zt=this.componentDef;let sn,pt=null;zt.findHostDirectiveDefs?(sn=[],pt=new Map,zt.findHostDirectiveDefs(zt,sn,pt),sn.push(zt)):sn=[zt];const vn=function Uy(e,t){const n=e[1];return e[22]=t,_a(n,22,2,"#host",null)}(ot,te),Pr=function Hy(e,t,n,r,i,o,u,p){const b=i[1];!function jy(e,t,n,r){for(const i of e)t.mergedAttrs=sr(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(yl(t,t.mergedAttrs,!0),null!==n&&Cd(r,n,t))}(r,e,t,u);const x=o.createRenderer(t,n),U=pl(i,Df(n),null,n.onPush?32:16,i[e.index],e,o,x,p||null,null,null);return b.firstCreatePass&&Uc(b,e,r.length-1),ml(i,U),i[e.index]=U}(vn,te,zt,sn,ot,p,x);It=Fi(He,22),te&&function Vy(e,t,n,r){if(r)yi(e,n,["ng-version",Jd.full]);else{const{attrs:i,classes:o}=function z_(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!Xo(i))break;i=o}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&yi(e,n,i),o&&o.length>0&&Dd(e,n,o.join(" "))}}(x,zt,te,r),void 0!==n&&function zy(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const o=n[i];r.push(null!=o?Array.from(o):null)}}(It,this.ngContentSelectors,n),mt=function $y(e,t,n,r,i,o){const u=Cr(),p=i[1],b=fr(u,i);Sf(p,i,u,n,null,r);for(let U=0;U<n.length;U++)Ui(ue(i,p,u.directiveStart+U,u),i);xf(p,i,u),b&&Ui(b,i);const x=ue(i,p,u.directiveStart+u.componentOffset,u);if(e[8]=i[8]=x,null!==o)for(const U of o)U(x,t);return Fc(p,u,e),x}(Pr,zt,sn,pt,ot,[Wy]),Rc(He,ot,null)}finally{ls()}return new By(this.componentType,mt,ha(It,ot),ot,It)}}class By extends m_{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new Ny(i),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){const o=this._rootLView;zc(o[1],o,i,t,n),Mf(o,this._tNode.index)}}get injector(){return new St(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Wy(){const e=Cr();No(Xe()[1],e)}function Wc(e){let t=function kf(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Dr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Se(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const u=e;u.inputs=Gc(e.inputs),u.declaredInputs=Gc(e.declaredInputs),u.outputs=Gc(e.outputs);const p=i.hostBindings;p&&Zy(e,p);const b=i.viewQuery,x=i.contentQueries;if(b&&Ky(e,b),x&&Yy(e,x),ee(e.inputs,i.inputs),ee(e.declaredInputs,i.declaredInputs),ee(e.outputs,i.outputs),Dr(i)&&i.data.animation){const U=e.data;U.animation=(U.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let u=0;u<o.length;u++){const p=o[u];p&&p.ngInherit&&p(e),p===Wc&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Gy(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=sr(i.hostAttrs,n=sr(n,i.hostAttrs))}}(r)}function Gc(e){return e===De?{}:e===I?[]:e}function Ky(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function Yy(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,o)=>{t(r,i,o),n(r,i,o)}:t}function Zy(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}let bl=null;function Xs(){if(!bl){const e=Bt.Symbol;if(e&&e.iterator)bl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(bl=r)}}}return bl}function El(e){return!!Kc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Xs()in e)}function Kc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function gs(e,t,n){return e[t]=n}function Ga(e,t){return e[t]}function Hi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function qs(e,t,n,r){const i=Hi(e,t,n);return Hi(e,t+1,r)||i}function Bo(e,t,n,r,i,o){const u=qs(e,t,n,r);return qs(e,t+2,i,o)||u}function Yc(e,t,n,r){const i=Xe();return Hi(i,ni(),t)&&(gn(),ps(or(),i,e,t,n,r)),Yc}function va(e,t,n,r){return Hi(e,ni(),n)?t+Pe(n)+r:En}function ba(e,t,n,r,i,o){const p=qs(e,function Nr(){return en.lFrame.bindingIndex}(),n,i);return Or(2),p?t+Pe(n)+r+Pe(i)+o:En}function Zf(e,t,n,r,i,o,u,p){const b=Xe(),x=gn(),U=e+22,te=x.firstCreatePass?function ov(e,t,n,r,i,o,u,p,b){const x=t.consts,U=_a(t,e,4,u||null,Ni(x,p));Bc(t,n,U,Ni(x,b)),No(t,U);const te=U.tViews=Lc(2,U,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,x);return null!==t.queries&&(t.queries.template(t,U),te.queries=t.queries.embeddedTView(U)),U}(U,x,b,t,n,r,i,o,u):x.data[U];ti(te,!1);const xe=b[11].createComment("");ol(x,b,xe,te),Ui(xe,b),ml(b,b[U]=Af(xe,b,xe,te)),lo(te)&&Nc(x,b,te),null!=u&&kc(b,te,p)}function Qf(e){return ei(function Wo(){return en.lFrame.contextLView}(),22+e)}function Zc(e,t,n){const r=Xe();return Hi(r,ni(),t)&&So(gn(),or(),r,e,t,r[11],n,!1),Zc}function Qc(e,t,n,r,i){const u=i?"class":"style";zc(e,n,t.inputs[u],u,r)}function Cl(e,t,n,r){const i=Xe(),o=gn(),u=22+e,p=i[11],b=i[u]=rc(p,t,function ws(){return en.lFrame.currentNamespace}()),x=o.firstCreatePass?function av(e,t,n,r,i,o,u){const p=t.consts,x=_a(t,e,2,i,Ni(p,o));return Bc(t,n,x,Ni(p,u)),null!==x.attrs&&yl(x,x.attrs,!1),null!==x.mergedAttrs&&yl(x,x.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,x),x}(u,o,i,0,t,n,r):o.data[u];return ti(x,!0),Cd(p,b,x),32!=(32&x.flags)&&ol(o,i,b,x),0===function go(){return en.lFrame.elementDepthCount}()&&Ui(b,i),function is(){en.lFrame.elementDepthCount++}(),lo(x)&&(Nc(o,i,x),Fc(o,x,i)),null!==r&&kc(i,x),Cl}function wl(){let e=Cr();Xi()?zo():(e=e.parent,ti(e,!1));const t=e;!function os(){en.lFrame.elementDepthCount--}();const n=gn();return n.firstCreatePass&&(No(n,e),Yr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function pn(e){return 0!=(8&e.flags)}(t)&&Qc(n,t,Xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function cr(e){return 0!=(16&e.flags)}(t)&&Qc(n,t,Xe(),t.stylesWithoutHost,!1),wl}function Jc(e,t,n,r){return Cl(e,t,n,r),wl(),Jc}function Tl(e,t,n){const r=Xe(),i=gn(),o=e+22,u=i.firstCreatePass?function lv(e,t,n,r,i){const o=t.consts,u=Ni(o,r),p=_a(t,e,8,"ng-container",u);return null!==u&&yl(p,u,!0),Bc(t,n,p,Ni(o,i)),null!==t.queries&&t.queries.elementStart(t,p),p}(o,i,r,t,n):i.data[o];ti(u,!0);const p=r[o]=r[11].createComment("");return ol(i,r,p,u),Ui(p,r),lo(u)&&(Nc(i,r,u),Fc(i,u,r)),null!=n&&kc(r,u),Tl}function Ml(){let e=Cr();const t=gn();return Xi()?zo():(e=e.parent,ti(e,!1)),t.firstCreatePass&&(No(t,e),Yr(e)&&t.queries.elementEnd(e)),Ml}function Xc(e,t,n){return Tl(e,t,n),Ml(),Xc}function Jf(){return Xe()}function qc(e){return!!e&&"function"==typeof e.then}function Xf(e){return!!e&&"function"==typeof e.subscribe}const qf=Xf;function eu(e,t,n,r){const i=Xe(),o=gn(),u=Cr();return eh(o,i,i[11],u,e,t,r),eu}function tu(e,t){const n=Cr(),r=Xe(),i=gn();return eh(i,r,Pf(yo(i.data),n,r),n,e,t),tu}function eh(e,t,n,r,i,o,u){const p=lo(r),x=e.firstCreatePass&&Of(e),U=t[8],te=If(t);let xe=!0;if(3&r.type||u){const mt=fr(r,t),It=u?u(mt):mt,zt=te.length,sn=u?vn=>u(Pn(vn[r.index])):r.index;let pt=null;if(!u&&p&&(pt=function cv(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const u=i[o];if(u===n&&i[o+1]===r){const p=t[7],b=i[o+2];return p.length>b?p[b]:null}"string"==typeof u&&(o+=2)}return null}(e,t,i,r.index)),null!==pt)(pt.__ngLastListenerFn__||pt).__ngNextListenerFn__=o,pt.__ngLastListenerFn__=o,xe=!1;else{o=nh(r,t,U,o,!1);const vn=n.listen(It,i,o);te.push(o,vn),x&&x.push(i,sn,zt,zt+1)}}else o=nh(r,t,U,o,!1);const He=r.outputs;let ot;if(xe&&null!==He&&(ot=He[i])){const mt=ot.length;if(mt)for(let It=0;It<mt;It+=2){const Pr=t[ot[It]][ot[It+1]].subscribe(o),Jr=te.length;te.push(o,Pr),x&&x.push(i,r.index,Jr,-(Jr+1))}}}function th(e,t,n,r){try{return!1!==n(r)}catch(i){return Rf(e,i),!1}}function nh(e,t,n,r,i){return function o(u){if(u===Function)return r;$c(e.componentOffset>-1?mr(e.index,t):t);let b=th(t,0,r,u),x=o.__ngNextListenerFn__;for(;x;)b=th(t,0,x,u)&&b,x=x.__ngNextListenerFn__;return i&&!1===b&&(u.preventDefault(),u.returnValue=!1),b}}function rh(e=1){return function Ns(e){return(en.lFrame.contextLView=function bo(e,t){for(;e>0;)t=t[15],e--;return t}(e,en.lFrame.contextLView))[8]}(e)}function uv(e,t){let n=null;const r=function B_(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?nf(e,o,!0):j_(r,o))return i}else n=i}return n}function ih(e){const t=Xe()[16][6];if(!t.projection){const r=t.projection=C(e?e.length:1,null),i=r.slice();let o=t.child;for(;null!==o;){const u=e?uv(o,e):0;null!==u&&(i[u]?i[u].projectionNext=o:r[u]=o,i[u]=o),o=o.next}}}function oh(e,t=0,n){const r=Xe(),i=gn(),o=_a(i,22+e,16,null,n||null);null===o.projection&&(o.projection=t),zo(),32!=(32&o.flags)&&function Sm(e,t,n){Ed(t[11],0,t,n,fd(e,n,t),md(n.parent||t[6],n,t))}(i,r,o)}function nu(e,t,n){return ru(e,"",t,"",n),nu}function ru(e,t,n,r,i){const o=Xe(),u=va(o,t,n,r);return u!==En&&So(gn(),or(),o,e,u,o[11],i,!1),ru}function iu(e,t,n,r,i,o,u){const p=Xe(),b=ba(p,t,n,r,i,o);return b!==En&&So(gn(),or(),p,e,b,p[11],u,!1),iu}function Sl(e,t){return e<<17|t<<2}function Hs(e){return e>>17&32767}function ou(e){return 2|e}function ea(e){return(131068&e)>>2}function su(e,t){return-131069&e|t<<2}function au(e){return 1|e}function hh(e,t,n,r,i){const o=e[n+1],u=null===t;let p=r?Hs(o):ea(o),b=!1;for(;0!==p&&(!1===b||u);){const U=e[p+1];mv(e[p],t)&&(b=!0,e[p+1]=r?au(U):ou(U)),p=r?Hs(U):ea(U)}b&&(e[n+1]=r?ou(o):au(o))}function mv(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Cn(e,t)>=0}const di={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ph(e){return e.substring(di.key,di.keyEnd)}function gh(e,t){const n=di.textEnd;return n===t?-1:(t=di.keyEnd=function bv(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,di.key=t,n),Sa(e,t,n))}function Sa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function lu(e,t,n){return qo(e,t,n,!1),lu}function cu(e,t){return qo(e,t,null,!0),cu}function bh(e){es(Tt,_s,e,!0)}function _s(e,t){for(let n=function yv(e){return function _h(e){di.key=0,di.keyEnd=0,di.value=0,di.valueEnd=0,di.textEnd=e.length}(e),gh(e,Sa(e,0,di.textEnd))}(t);n>=0;n=gh(t,n))Tt(e,ph(t),!0)}function qo(e,t,n,r){const i=Xe(),o=gn(),u=Or(2);o.firstUpdatePass&&Dh(o,e,u,r),t!==En&&Hi(i,u,t)&&wh(o,o.data[yr()],i,i[11],e,i[u+1]=function Iv(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=J(xs(e)))),e}(t,n),r,u)}function es(e,t,n,r){const i=gn(),o=Or(2);i.firstUpdatePass&&Dh(i,null,o,r);const u=Xe();if(n!==En&&Hi(u,o,n)){const p=i.data[yr()];if(Mh(p,r)&&!Eh(i,o)){let b=r?p.classesWithoutHost:p.stylesWithoutHost;null!==b&&(n=X(b,n||"")),Qc(i,p,u,n,r)}else!function Av(e,t,n,r,i,o,u,p){i===En&&(i=I);let b=0,x=0,U=0<i.length?i[0]:null,te=0<o.length?o[0]:null;for(;null!==U||null!==te;){const xe=b<i.length?i[b+1]:void 0,He=x<o.length?o[x+1]:void 0;let mt,ot=null;U===te?(b+=2,x+=2,xe!==He&&(ot=te,mt=He)):null===te||null!==U&&U<te?(b+=2,ot=U):(x+=2,ot=te,mt=He),null!==ot&&wh(e,t,n,r,ot,mt,u,p),U=b<i.length?i[b]:null,te=x<o.length?o[x]:null}}(i,p,u,u[11],u[o+1],u[o+1]=function xv(e,t,n){if(null==n||""===n)return I;const r=[],i=xs(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,o)}}function Eh(e,t){return t>=e.expandoStartIndex}function Dh(e,t,n,r){const i=e.data;if(null===i[n+1]){const o=i[yr()],u=Eh(e,n);Mh(o,r)&&null===t&&!u&&(t=!1),t=function wv(e,t,n,r){const i=yo(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Ka(n=uu(null,e,t,n,r),t.attrs,r),o=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==i)if(n=uu(i,e,t,n,r),null===o){let b=function Tv(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ea(r))return e[Hs(r)]}(e,t,r);void 0!==b&&Array.isArray(b)&&(b=uu(null,e,t,b[1],r),b=Ka(b,t.attrs,r),function Mv(e,t,n,r){e[Hs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,b))}else o=function Sv(e,t,n){let r;const i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++)r=Ka(r,e[o].hostAttrs,n);return Ka(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function pv(e,t,n,r,i,o){let u=o?t.classBindings:t.styleBindings,p=Hs(u),b=ea(u);e[r]=n;let U,x=!1;if(Array.isArray(n)?(U=n[1],(null===U||Cn(n,U)>0)&&(x=!0)):U=n,i)if(0!==b){const xe=Hs(e[p+1]);e[r+1]=Sl(xe,p),0!==xe&&(e[xe+1]=su(e[xe+1],r)),e[p+1]=function fv(e,t){return 131071&e|t<<17}(e[p+1],r)}else e[r+1]=Sl(p,0),0!==p&&(e[p+1]=su(e[p+1],r)),p=r;else e[r+1]=Sl(b,0),0===p?p=r:e[b+1]=su(e[b+1],r),b=r;x&&(e[r+1]=ou(e[r+1])),hh(e,U,r,!0),hh(e,U,r,!1),function gv(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Cn(o,t)>=0&&(n[r+1]=au(n[r+1]))}(t,U,e,r,o),u=Sl(p,b),o?t.classBindings=u:t.styleBindings=u}(i,o,t,n,u,r)}}function uu(e,t,n,r,i){let o=null;const u=n.directiveEnd;let p=n.directiveStylingLast;for(-1===p?p=n.directiveStart:p++;p<u&&(o=t[p],r=Ka(r,o.hostAttrs,i),o!==e);)p++;return null!==e&&(n.directiveStylingLast=p),r}function Ka(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const u=t[o];"number"==typeof u?i=u:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Tt(e,u,!!n||t[++o]))}return void 0===e?null:e}function wh(e,t,n,r,i,o,u,p){if(!(3&t.type))return;const b=e.data,x=b[p+1],U=function hv(e){return 1==(1&e)}(x)?Th(b,t,n,i,ea(x),u):void 0;xl(U)||(xl(o)||function dv(e){return 2==(2&e)}(x)&&(o=Th(b,null,n,i,p,u)),function Am(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=-1===r.indexOf("-")?void 0:hs.DashCase;null==i?e.removeStyle(n,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=hs.Important),e.setStyle(n,r,i,o))}}(r,u,li(yr(),n),i,o))}function Th(e,t,n,r,i,o){const u=null===t;let p;for(;i>0;){const b=e[i],x=Array.isArray(b),U=x?b[1]:b,te=null===U;let xe=n[i+1];xe===En&&(xe=te?I:void 0);let He=te?kt(xe,r):U===r?xe:void 0;if(x&&!xl(He)&&(He=kt(b,r)),xl(He)&&(p=He,u))return p;const ot=e[i+1];i=u?Hs(ot):ea(ot)}if(null!==t){let b=o?t.residualClasses:t.residualStyles;null!=b&&(p=kt(b,r))}return p}function xl(e){return void 0!==e}function Mh(e,t){return 0!=(e.flags&(t?8:16))}function Sh(e,t=""){const n=Xe(),r=gn(),i=e+22,o=r.firstCreatePass?_a(r,i,1,t,null):r.data[i],u=n[i]=function nc(e,t){return e.createText(t)}(n[11],t);ol(r,n,u,o),ti(o,!1)}function du(e){return Al("",e,""),du}function Al(e,t,n){const r=Xe(),i=va(r,e,t,n);return i!==En&&Os(r,yr(),i),Al}function fu(e,t,n,r,i){const o=Xe(),u=ba(o,e,t,n,r,i);return u!==En&&Os(o,yr(),u),fu}function Nh(e,t,n){es(Tt,_s,va(Xe(),e,t,n),!0)}function hu(e,t,n){const r=Xe();return Hi(r,ni(),t)&&So(gn(),or(),r,e,t,r[11],n,!0),hu}function pu(e,t,n){const r=Xe();if(Hi(r,ni(),t)){const o=gn(),u=or();So(o,u,r,e,t,Pf(yo(o.data),u,r),n,!0)}return pu}const ta=void 0;var Zv=["en",[["a","p"],["AM","PM"],ta],[["AM","PM"],ta,ta],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ta,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ta,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ta,"{1} 'at' {0}",ta],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Yv(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let xa={};function gu(e){const t=function Qv(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Gh(t);if(n)return n;const r=t.split("-")[0];if(n=Gh(r),n)return n;if("en"===r)return Zv;throw new Se(701,!1)}function Wh(e){return gu(e)[on.PluralCase]}function Gh(e){return e in xa||(xa[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),xa[e]}var on=(()=>((on=on||{})[on.LocaleId=0]="LocaleId",on[on.DayPeriodsFormat=1]="DayPeriodsFormat",on[on.DayPeriodsStandalone=2]="DayPeriodsStandalone",on[on.DaysFormat=3]="DaysFormat",on[on.DaysStandalone=4]="DaysStandalone",on[on.MonthsFormat=5]="MonthsFormat",on[on.MonthsStandalone=6]="MonthsStandalone",on[on.Eras=7]="Eras",on[on.FirstDayOfWeek=8]="FirstDayOfWeek",on[on.WeekendRange=9]="WeekendRange",on[on.DateFormat=10]="DateFormat",on[on.TimeFormat=11]="TimeFormat",on[on.DateTimeFormat=12]="DateTimeFormat",on[on.NumberSymbols=13]="NumberSymbols",on[on.NumberFormats=14]="NumberFormats",on[on.CurrencyCode=15]="CurrencyCode",on[on.CurrencySymbol=16]="CurrencySymbol",on[on.CurrencyName=17]="CurrencyName",on[on.Currencies=18]="Currencies",on[on.Directionality=19]="Directionality",on[on.PluralCase=20]="PluralCase",on[on.ExtraData=21]="ExtraData",on))();const Aa="en-US";let Kh=Aa;function yu(e,t,n,r,i){if(e=K(e),Array.isArray(e))for(let o=0;o<e.length;o++)yu(e[o],t,n,r,i);else{const o=gn(),u=Xe();let p=Zs(e)?e:K(e.provide),b=Gd(e);const x=Cr(),U=1048575&x.providerIndexes,te=x.directiveStart,xe=x.providerIndexes>>20;if(Zs(e)||!e.multi){const He=new Ze(b,i,ma),ot=bu(p,t,i?U:U+xe,te);-1===ot?(oo(Do(x,u),o,p),vu(o,e,t.length),t.push(p),x.directiveStart++,x.directiveEnd++,i&&(x.providerIndexes+=1048576),n.push(He),u.push(He)):(n[ot]=He,u[ot]=He)}else{const He=bu(p,t,U+xe,te),ot=bu(p,t,U,U+xe),It=ot>=0&&n[ot];if(i&&!It||!i&&!(He>=0&&n[He])){oo(Do(x,u),o,p);const zt=function Y0(e,t,n,r,i){const o=new Ze(e,n,ma);return o.multi=[],o.index=t,o.componentProviders=0,yp(o,i,r&&!n),o}(i?K0:G0,n.length,i,r,b);!i&&It&&(n[ot].providerFactory=zt),vu(o,e,t.length,0),t.push(p),x.directiveStart++,x.directiveEnd++,i&&(x.providerIndexes+=1048576),n.push(zt),u.push(zt)}else vu(o,e,He>-1?He:ot,yp(n[i?ot:He],b,!i&&r));!i&&r&&It&&n[ot].componentProviders++}}}function vu(e,t,n,r){const i=Zs(t),o=function c_(e){return!!e.useClass}(t);if(i||o){const b=(o?K(t.useClass):t).prototype.ngOnDestroy;if(b){const x=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const U=x.indexOf(n);-1===U?x.push(n,[r,b]):x[U+1].push(r,b)}else x.push(n,b)}}}function yp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function bu(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function G0(e,t,n,r){return Eu(this.multi,[])}function K0(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const u=this.providerFactory.componentProviders,p=ue(n,n[1],this.providerFactory.index,r);o=p.slice(0,u),Eu(i,o);for(let b=u;b<p.length;b++)o.push(p[b])}else o=[],Eu(i,o);return o}function Eu(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function vp(e,t=[]){return n=>{n.providersResolver=(r,i)=>function W0(e,t,n){const r=gn();if(r.firstCreatePass){const i=Dr(e);yu(n,r.data,r.blueprint,i,!0),yu(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class Ia{}class bp{}function Z0(e,t){return new Ep(e,t??null)}class Ep extends Ia{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ff(this);const r=qn(t);this._bootstrapComponents=Is(r.bootstrap),this._r3Injector=ff(t,n,[{provide:Ia,useValue:this},{provide:Ha,useValue:this.componentFactoryResolver}],J(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Du extends bp{constructor(t){super(),this.moduleType=t}create(t){return new Ep(this.moduleType,t)}}class Q0 extends Ia{constructor(t,n,r){super(),this.componentFactoryResolver=new Ff(this),this.instance=null;const i=new Wd([...t,{provide:Ia,useValue:this},{provide:Ha,useValue:this.componentFactoryResolver}],n||fl(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Cu(e,t,n=null){return new Q0(e,t,n).injector}let J0=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=jd(0,n.type),i=r.length>0?Cu([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,i)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=ct({token:e,providedIn:"environment",factory:()=>new e(ht(Qs))}),e})();function Dp(e){e.getStandaloneInjector=t=>t.get(J0).getOrCreateStandaloneInjector(e)}function Ap(e,t,n){const r=wr()+e,i=Xe();return i[r]===En?gs(i,r,n?t.call(n):t()):Ga(i,r)}function Ip(e,t,n,r){return Np(Xe(),wr(),e,t,n,r)}function Op(e,t,n,r,i){return kp(Xe(),wr(),e,t,n,r,i)}function Pp(e,t,n,r,i,o){return function Lp(e,t,n,r,i,o,u,p){const b=t+n;return function Dl(e,t,n,r,i){const o=qs(e,t,n,r);return Hi(e,t+2,i)||o}(e,b,i,o,u)?gs(e,b+3,p?r.call(p,i,o,u):r(i,o,u)):qa(e,b+3)}(Xe(),wr(),e,t,n,r,i,o)}function Rp(e,t,n,r,i,o,u){return function Bp(e,t,n,r,i,o,u,p,b){const x=t+n;return Bo(e,x,i,o,u,p)?gs(e,x+4,b?r.call(b,i,o,u,p):r(i,o,u,p)):qa(e,x+4)}(Xe(),wr(),e,t,n,r,i,o,u)}function Fp(e,t,n,r,i,o,u,p){const b=wr()+e,x=Xe(),U=Bo(x,b,n,r,i,o);return Hi(x,b+4,u)||U?gs(x,b+5,p?t.call(p,n,r,i,o,u):t(n,r,i,o,u)):Ga(x,b+5)}function qa(e,t){const n=e[t];return n===En?void 0:n}function Np(e,t,n,r,i,o){const u=t+n;return Hi(e,u,i)?gs(e,u+1,o?r.call(o,i):r(i)):qa(e,u+1)}function kp(e,t,n,r,i,o,u){const p=t+n;return qs(e,p,i,o)?gs(e,p+2,u?r.call(u,i,o):r(i,o)):qa(e,p+2)}function Hp(e,t){const n=gn();let r;const i=e+22;n.firstCreatePass?(r=function ub(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=er(r.type)),u=bn(ma);try{const p=cs(!1),b=o();return cs(p),function sv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Xe(),i,b),b}finally{bn(u)}}function jp(e,t,n){const r=e+22,i=Xe(),o=ei(i,r);return el(i,r)?Np(i,wr(),t,o.transform,n,o):o.transform(n)}function $p(e,t,n,r){const i=e+22,o=Xe(),u=ei(o,i);return el(o,i)?kp(o,wr(),t,u.transform,n,r,u):u.transform(n,r)}function el(e,t){return e[1].data[t].pure}function Tu(e){return t=>{setTimeout(e,void 0,t)}}const ys=class pb extends s.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),u=r;if(t&&"object"==typeof t){const b=t;i=b.next?.bind(b),o=b.error?.bind(b),u=b.complete?.bind(b)}this.__isAsync&&(o=Tu(o),i&&(i=Tu(i)),u&&(u=Tu(u)));const p=super.subscribe({next:i,error:o,complete:u});return t instanceof d.w0&&t.add(p),p}};function gb(){return this._results[Xs()]()}class Fl{get changes(){return this._changes||(this._changes=new ys)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Xs(),r=Fl.prototype;r[n]||(r[n]=gb)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=function f(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ar(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let tl=(()=>{class e{}return e.__NG_ELEMENT_ID__=yb,e})();const mb=tl,_b=class extends mb{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,i=pl(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);i[17]=this._declarationLView[this._declarationTContainer.index];const u=this._declarationLView[19];return null!==u&&(i[19]=u.createEmbeddedView(r)),Rc(r,i,t),new za(i)}};function yb(){return Nl(Cr(),Xe())}function Nl(e,t){return 4&e.type?new _b(t,e,ha(e,t)):null}let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=vb,e})();function vb(){return Wp(Cr(),Xe())}const bb=kl,Vp=class extends bb{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ha(this._hostTNode,this._hostLView)}get injector(){return new St(this._hostTNode,this._hostLView)}get parentInjector(){const t=kr(this._hostTNode,this._hostLView);if(Eo(t)){const n=Yo(t,this._hostLView),r=ro(t);return new St(n[1].data[r+8],n)}return new St(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=zp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const u=t.createEmbeddedView(n||{},o);return this.insert(u,i),u}createComponent(t,n,r,i,o){const u=t&&!function vi(e){return"function"==typeof e}(t);let p;if(u)p=n;else{const te=n||{};p=te.index,r=te.injector,i=te.projectableNodes,o=te.environmentInjector||te.ngModuleRef}const b=u?t:new Wa(Tn(t)),x=r||this.parentInjector;if(!o&&null==b.ngModule){const xe=(u?x:this.parentInjector).get(Qs,null);xe&&(o=xe)}const U=b.create(x,i,void 0,o);return this.insert(U.hostView,p),U}insert(t,n){const r=t._lView,i=r[1];if(function ho(e){return ir(e[3])}(r)){const U=this.indexOf(t);if(-1!==U)this.detach(U);else{const te=r[3],xe=new Vp(te,te[6],te[3]);xe.detach(xe.indexOf(t))}}const o=this._adjustIndex(n),u=this._lContainer;!function Em(e,t,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],c(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const u=t[17];null!==u&&n!==u&&function Dm(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(u,t);const p=t[19];null!==p&&p.insertView(e),t[2]|=64}(i,r,u,o);const p=ac(o,u),b=r[11],x=il(b,u[7]);return null!==x&&function ym(e,t,n,r,i,o){r[0]=i,r[6]=t,La(e,r,n,1,i,o)}(i,u[6],b,r,x,p),t.attachToViewContainerRef(),c(Mu(u),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=zp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=ic(this._lContainer,n);r&&(m(Mu(this._lContainer),n),dd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=ic(this._lContainer,n);return r&&null!=m(Mu(this._lContainer),n)?new za(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zp(e){return e[8]}function Mu(e){return e[8]||(e[8]=[])}function Wp(e,t){let n;const r=t[e.index];if(ir(r))n=r;else{let i;if(8&e.type)i=Pn(r);else{const o=t[11];i=o.createComment("");const u=fr(e,t);Gs(o,il(o,u),i,function Mm(e,t){return e.nextSibling(t)}(o,u),!1)}t[e.index]=n=Af(r,t,i,e),ml(t,n)}return new Vp(n,e,t)}class Su{constructor(t){this.queryList=t,this.matches=null}clone(){return new Su(this.queryList)}setDirty(){this.queryList.setDirty()}}class xu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){const u=n.getByIndex(o);i.push(this.queries[u.indexInDeclarationView].clone())}return new xu(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==eg(t,n).matches&&this.queries[n].setDirty()}}class Gp{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Au{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new Au(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Iu{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Iu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(t,n,Eb(n,o)),this.matchTNodeWithReadOption(t,n,fe(n,t,o,!1,!1))}else r===tl?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,fe(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===ja||i===kl||i===tl&&4&n.type)this.addMatch(n.index,-2);else{const o=fe(n,t,i,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Eb(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Cb(e,t,n,r){return-1===n?function Db(e,t){return 11&e.type?ha(e,t):4&e.type?Nl(e,t):null}(t,e):-2===n?function wb(e,t,n){return n===ja?ha(t,e):n===tl?Nl(t,e):n===kl?Wp(t,e):void 0}(e,t,r):ue(e,e[1],n,t)}function Kp(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const o=e.data,u=n.matches,p=[];for(let b=0;b<u.length;b+=2){const x=u[b];p.push(x<0?null:Cb(t,o[x],u[b+1],n.metadata.read))}i.matches=p}return i.matches}function Ou(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const u=Kp(e,t,i,n);for(let p=0;p<o.length;p+=2){const b=o[p];if(b>0)r.push(u[p/2]);else{const x=o[p+1],U=t[-b];for(let te=10;te<U.length;te++){const xe=U[te];xe[17]===xe[3]&&Ou(xe[1],xe,x,r)}if(null!==U[9]){const te=U[9];for(let xe=0;xe<te.length;xe++){const He=te[xe];Ou(He[1],He,x,r)}}}}}return r}function Yp(e){const t=Xe(),n=gn(),r=to();Wi(r+1);const i=eg(n,r);if(e.dirty&&function rs(e){return 4==(4&e[2])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=i.crossesNgTemplate?Ou(n,t,r,[]):Kp(n,t,i,r);e.reset(o,b_),e.notifyOnChanges()}return!0}return!1}function Zp(e,t,n){const r=gn();r.firstCreatePass&&(qp(r,new Gp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Xp(r,Xe(),t)}function Qp(e,t,n,r){const i=gn();if(i.firstCreatePass){const o=Cr();qp(i,new Gp(t,n,r),o.index),function Mb(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}Xp(i,Xe(),n)}function Jp(){return function Tb(e,t){return e[19].queries[t].queryList}(Xe(),to())}function Xp(e,t,n){const r=new Fl(4==(4&n));Cf(e,t,r,r.destroy),null===t[19]&&(t[19]=new xu),t[19].queries.push(new Su(r))}function qp(e,t,n){null===e.queries&&(e.queries=new Au),e.queries.track(new Iu(t,n))}function eg(e,t){return e.queries.getByIndex(t)}function tg(e,t){return Nl(e,t)}function Bl(...e){}const bg=new xn("Application Initializer");let Ul=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Bl,this.reject=Bl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(qc(o))n.push(o);else if(qf(o)){const u=new Promise((p,b)=>{o.subscribe({complete:p,error:b})});n.push(u)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(ht(bg,8))},e.\u0275prov=ct({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Eg=new xn("AppId",{providedIn:"root",factory:function Dg(){return`${ku()}${ku()}${ku()}`}});function ku(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cg=new xn("Platform Initializer"),Gb=new xn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),wg=new xn("appBootstrapListener"),Kb=new xn("AnimationModuleType");let Yb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ct({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Hl=new xn("LocaleId",{providedIn:"root",factory:()=>N(Hl,lt.Optional|lt.SkipSelf)||function Zb(){return typeof $localize<"u"&&$localize.locale||Aa}()}),Qb=new xn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Jb{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Xb=(()=>{class e{compileModuleSync(n){return new Du(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),o=Is(qn(n).declarations).reduce((u,p)=>{const b=Tn(p);return b&&u.push(new Wa(b)),u},[]);return new Jb(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ct({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const tE=(()=>Promise.resolve(0))();function Lu(e){typeof Zone>"u"?tE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Uo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ys(!1),this.onMicrotaskEmpty=new ys(!1),this.onStable=new ys(!1),this.onError=new ys(!1),typeof Zone>"u")throw new Se(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function nE(){let e=Bt.requestAnimationFrame,t=Bt.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function oE(e){const t=()=>{!function iE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Uu(e),e.isCheckStableRunning=!0,Bu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Uu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,u,p)=>{try{return Sg(e),n.invokeTask(i,o,u,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),xg(e)}},onInvoke:(n,r,i,o,u,p,b)=>{try{return Sg(e),n.invoke(i,o,u,p,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),xg(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Uu(e),Bu(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Uo.isInAngularZone())throw new Se(909,!1)}static assertNotInAngularZone(){if(Uo.isInAngularZone())throw new Se(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,u=o.scheduleEventTask("NgZoneEvent: "+i,t,rE,Bl,Bl);try{return o.runTask(u,n,r)}finally{o.cancelTask(u)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const rE={};function Bu(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Uu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Sg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function xg(e){e._nesting--,Bu(e)}class sE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ys,this.onMicrotaskEmpty=new ys,this.onStable=new ys,this.onError=new ys}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const Ag=new xn(""),Ig=new xn("");let Hu,aE=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Hu||(function lE(e){Hu=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Uo.assertNotInAngularZone(),Lu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Lu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(ht(Uo),ht(Og),ht(Ig))},e.\u0275prov=ct({token:e,factory:e.\u0275fac}),e})(),Og=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Hu?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ct({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),js=null;const Pg=new xn("AllowMultipleToken"),ju=new xn("PlatformDestroyListeners");class dE{constructor(t,n){this.name=t,this.token=n}}function Fg(e,t,n=[]){const r=`Platform: ${t}`,i=new xn(r);return(o=[])=>{let u=$u();if(!u||u.injector.get(Pg,!1)){const p=[...n,...o,{provide:i,useValue:!0}];e?e(p):function fE(e){if(js&&!js.get(Pg,!1))throw new Se(400,!1);js=e;const t=e.get(kg);(function Rg(e){const t=e.get(Cg,null);t&&t.forEach(n=>n())})(e)}(function Ng(e=[],t){return Js.create({name:t,providers:[{provide:Ec,useValue:"platform"},{provide:ju,useValue:new Set([()=>js=null])},...e]})}(p,r))}return function pE(e){const t=$u();if(!t)throw new Se(401,!1);return t}()}}function $u(){return js?.get(kg)??null}let kg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function Bg(e,t){let n;return n="noop"===e?new sE:("zone.js"===e?void 0:e)||new Uo(t),n}(r?.ngZone,function Lg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Uo,useValue:i}];return i.run(()=>{const u=Js.create({providers:o,parent:this.injector,name:n.moduleType.name}),p=n.create(u),b=p.injector.get($a,null);if(!b)throw new Se(402,!1);return i.runOutsideAngular(()=>{const x=i.onError.subscribe({next:U=>{b.handleError(U)}});p.onDestroy(()=>{$l(this._modules,p),x.unsubscribe()})}),function Ug(e,t,n){try{const r=n();return qc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(b,i,()=>{const x=p.injector.get(Ul);return x.runInitializers(),x.donePromise.then(()=>(function Yh(e){Ot(e,"Expected localeId to be defined"),"string"==typeof e&&(Kh=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(Hl,Aa)||Aa),this._moduleDoBootstrap(p),p))})})}bootstrapModule(n,r=[]){const i=Hg({},r);return function cE(e,t,n){const r=new Du(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(jl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Se(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Se(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ju,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(ht(Js))},e.\u0275prov=ct({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Hg(e,t){return Array.isArray(t)?t.reduce(Hg,e):{...e,...t}}let jl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new P.y(p=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{p.next(this._stable),p.complete()})}),u=new P.y(p=>{let b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{Uo.assertNotInAngularZone(),Lu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,p.next(!0))})})});const x=this._zone.onUnstable.subscribe(()=>{Uo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{p.next(!1)}))});return()=>{b.unsubscribe(),x.unsubscribe()}});this.isStable=(0,Y.T)(o,u.pipe((0,W.B)()))}bootstrap(n,r){const i=n instanceof Kd;if(!this._injector.get(Ul).done)throw!i&&Qn(n),new Se(405,false);let u;u=i?n:this._injector.get(Ha).resolveComponentFactory(n),this.componentTypes.push(u.componentType);const p=function uE(e){return e.isBoundToModule}(u)?void 0:this._injector.get(Ia),x=u.create(Js.NULL,[],r||u.selector,p),U=x.location.nativeElement,te=x.injector.get(Ag,null);return te?.registerApplication(U),x.onDestroy(()=>{this.detachView(x.hostView),$l(this.components,x),te?.unregisterApplication(U)}),this._loadComponent(x),x}tick(){if(this._runningTick)throw new Se(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;$l(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(wg,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$l(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Se(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(ht(Uo),ht(Qs),ht($a))},e.\u0275prov=ct({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $l(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function mE(){return!1}function _E(){}let yE=(()=>{class e{}return e.__NG_ELEMENT_ID__=vE,e})();function vE(e){return function bE(e,t,n){if(gi(e)&&!n){const r=mr(e.index,t);return new za(r,r)}return 47&e.type?new za(t[16],t):null}(Cr(),Xe(),16==(16&e))}class Wg{constructor(){}supports(t){return El(t)}create(t){return new ME(t)}}const TE=(e,t)=>t;class ME{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||TE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){const u=!r||n&&n.currentIndex<Kg(r,i,o)?n:r,p=Kg(u,i,o),b=u.currentIndex;if(u===r)i--,r=r._nextRemoved;else if(n=n._next,null==u.previousIndex)i++;else{o||(o=[]);const x=p-i,U=b-i;if(x!=U){for(let xe=0;xe<x;xe++){const He=xe<o.length?o[xe]:o[xe]=0,ot=He+xe;U<=ot&&ot<x&&(o[xe]=He+1)}o[u.previousIndex]=U-x}}p!==b&&t(u,p,b)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!El(t))throw new Se(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,o,u,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let p=0;p<this.length;p++)o=t[p],u=this._trackByFn(p,o),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,o,u,p)),Object.is(n.item,o)||this._addIdentityChange(n,o)):(n=this._mismatch(n,o,u,p),r=!0),n=n._next}else i=0,function nv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Xs()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,p=>{u=this._trackByFn(i,p),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,p,u,i)),Object.is(n.item,p)||this._addIdentityChange(n,p)):(n=this._mismatch(n,p,u,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new SE(n,r),o,i),t}_verifyReinsertion(t,n,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Gg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Gg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class SE{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class xE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Gg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new xE,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Kg(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Yg{constructor(){}supports(t){return t instanceof Map||Kc(t)}create(){return new AE}}class AE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Kc(t)))throw new Se(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const o=i._prev,u=i._next;return o&&(o._next=u),u&&(u._prev=o),i._next=null,i._prev=null,i}const r=new IE(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class IE{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zg(){return new Ku([new Wg])}let Ku=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Zg()),deps:[[e,new T,new aa]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Se(901,!1)}}return e.\u0275prov=ct({token:e,providedIn:"root",factory:Zg}),e})();function Qg(){return new Yu([new Yg])}let Yu=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Qg()),deps:[[e,new T,new aa]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Se(901,!1)}}return e.\u0275prov=ct({token:e,providedIn:"root",factory:Qg}),e})();const RE=Fg(null,"core",[]);let FE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(ht(jl))},e.\u0275mod=fi({type:e}),e.\u0275inj=Ye({}),e})();function NE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},3238:(st,ye,_)=>{_.d(ye,{yN:()=>Pe,mZ:()=>Ee,_A:()=>Wt,rD:()=>jt,sG:()=>Qt,Ad:()=>Je,K7:()=>Fe,HF:()=>gt,Y2:()=>bn,BQ:()=>le,XK:()=>Le,ey:()=>Ut,Ng:()=>ht,wG:()=>wn,si:()=>Hn,CB:()=>An,jH:()=>Yn,pj:()=>q,Kr:()=>oe,Id:()=>ge,FD:()=>_e,dB:()=>Ke,sb:()=>Ae});var s=_(4650),d=_(2693),P=_(445),W=_(6895),G=_(3353),ee=_(1281),J=_(9751),X=_(7579),H=_(9521);const Ie=["text"];function ve(ie,N){if(1&ie&&s._UZ(0,"mat-pseudo-checkbox",5),2&ie){const M=s.oxw();s.Q6J("state",M.selected?"checked":"unchecked")("disabled",M.disabled)}}function ke(ie,N){if(1&ie&&(s.TgZ(0,"span",6),s._uU(1),s.qZA()),2&ie){const M=s.oxw();s.xp6(1),s.hij("(",M.group.label,")")}}const ze=[[["mat-icon"]],"*"],Se=["mat-icon","*"];let Pe=(()=>{class ie{}return ie.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ie.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ie.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ie.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ie})(),Ee=(()=>{class ie{}return ie.COMPLEX="375ms",ie.ENTERING="225ms",ie.EXITING="195ms",ie})();const j=new s.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ce(){return!0}});let le=(()=>{class ie{constructor(M,F,we){this._sanityChecks=F,this._document=we,this._hasDoneGlobalChecks=!1,M._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(M){return!(0,G.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[M])}}return ie.\u0275fac=function(M){return new(M||ie)(s.LFG(d.qm),s.LFG(j,8),s.LFG(W.K0))},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({imports:[P.vT,P.vT]}),ie})();function ge(ie){return class extends ie{get disabled(){return this._disabled}set disabled(N){this._disabled=(0,ee.Ig)(N)}constructor(...N){super(...N),this._disabled=!1}}}function q(ie,N){return class extends ie{get color(){return this._color}set color(M){const F=M||this.defaultColor;F!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),F&&this._elementRef.nativeElement.classList.add(`mat-${F}`),this._color=F)}constructor(...M){super(...M),this.defaultColor=N,this.color=N}}}function oe(ie){return class extends ie{get disableRipple(){return this._disableRipple}set disableRipple(N){this._disableRipple=(0,ee.Ig)(N)}constructor(...N){super(...N),this._disableRipple=!1}}}function Ae(ie,N=0){return class extends ie{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(M){this._tabIndex=null!=M?(0,ee.su)(M):this.defaultTabIndex}constructor(...M){super(...M),this._tabIndex=N,this.defaultTabIndex=N}}}function _e(ie){return class extends ie{updateErrorState(){const N=this.errorState,B=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);B!==N&&(this.errorState=B,this.stateChanges.next())}constructor(...N){super(...N),this.errorState=!1}}}function Ke(ie){return class extends ie{constructor(...N){super(...N),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new J.y(M=>{this._isInitialized?this._notifySubscriber(M):this._pendingSubscribers.push(M)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(N){N.next(),N.complete()}}}const Je=new s.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function _t(){return(0,s.f3M)(s.soG)}});class Wt{constructor(){this._localeChanges=new X.x,this.localeChanges=this._localeChanges}getValidDateOrNull(N){return this.isDateInstance(N)&&this.isValid(N)?N:null}deserialize(N){return null==N||this.isDateInstance(N)&&this.isValid(N)?N:this.invalid()}setLocale(N){this.locale=N,this._localeChanges.next()}compareDate(N,M){return this.getYear(N)-this.getYear(M)||this.getMonth(N)-this.getMonth(M)||this.getDate(N)-this.getDate(M)}sameDate(N,M){if(N&&M){let F=this.isValid(N),we=this.isValid(M);return F&&we?!this.compareDate(N,M):F==we}return N==M}clampDate(N,M,F){return M&&this.compareDate(N,M)<0?M:F&&this.compareDate(N,F)>0?F:N}}const Qt=new s.OlP("mat-date-formats"),Rt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ot(ie,N){const M=Array(ie);for(let F=0;F<ie;F++)M[F]=N(F);return M}let Ue=(()=>{class ie extends Wt{constructor(M,F){super(),this.useUtcForDisplay=!1,super.setLocale(M)}getYear(M){return M.getFullYear()}getMonth(M){return M.getMonth()}getDate(M){return M.getDate()}getDayOfWeek(M){return M.getDay()}getMonthNames(M){const F=new Intl.DateTimeFormat(this.locale,{month:M,timeZone:"utc"});return Ot(12,we=>this._format(F,new Date(2017,we,1)))}getDateNames(){const M=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ot(31,F=>this._format(M,new Date(2017,0,F+1)))}getDayOfWeekNames(M){const F=new Intl.DateTimeFormat(this.locale,{weekday:M,timeZone:"utc"});return Ot(7,we=>this._format(F,new Date(2017,0,we+1)))}getYearName(M){const F=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(F,M)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(M){return this.getDate(this._createDateWithOverflow(this.getYear(M),this.getMonth(M)+1,0))}clone(M){return new Date(M.getTime())}createDate(M,F,we){let B=this._createDateWithOverflow(M,F,we);return B.getMonth(),B}today(){return new Date}parse(M,F){return"number"==typeof M?new Date(M):M?new Date(Date.parse(M)):null}format(M,F){if(!this.isValid(M))throw Error("NativeDateAdapter: Cannot format invalid date.");const we=new Intl.DateTimeFormat(this.locale,{...F,timeZone:"utc"});return this._format(we,M)}addCalendarYears(M,F){return this.addCalendarMonths(M,12*F)}addCalendarMonths(M,F){let we=this._createDateWithOverflow(this.getYear(M),this.getMonth(M)+F,this.getDate(M));return this.getMonth(we)!=((this.getMonth(M)+F)%12+12)%12&&(we=this._createDateWithOverflow(this.getYear(we),this.getMonth(we),0)),we}addCalendarDays(M,F){return this._createDateWithOverflow(this.getYear(M),this.getMonth(M),this.getDate(M)+F)}toIso8601(M){return[M.getUTCFullYear(),this._2digit(M.getUTCMonth()+1),this._2digit(M.getUTCDate())].join("-")}deserialize(M){if("string"==typeof M){if(!M)return null;if(Rt.test(M)){let F=new Date(M);if(this.isValid(F))return F}}return super.deserialize(M)}isDateInstance(M){return M instanceof Date}isValid(M){return!isNaN(M.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(M,F,we){const B=new Date;return B.setFullYear(M,F,we),B.setHours(0,0,0,0),B}_2digit(M){return("00"+M).slice(-2)}_format(M,F){const we=new Date;return we.setUTCFullYear(F.getFullYear(),F.getMonth(),F.getDate()),we.setUTCHours(F.getHours(),F.getMinutes(),F.getSeconds(),F.getMilliseconds()),M.format(we)}}return ie.\u0275fac=function(M){return new(M||ie)(s.LFG(Je,8),s.LFG(G.t4))},ie.\u0275prov=s.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const it={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let he=(()=>{class ie{}return ie.\u0275fac=function(M){return new(M||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({providers:[{provide:Wt,useClass:Ue}]}),ie})(),Le=(()=>{class ie{}return ie.\u0275fac=function(M){return new(M||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({providers:[{provide:Qt,useValue:it}],imports:[he]}),ie})(),jt=(()=>{class ie{isErrorState(M,F){return!!(M&&M.invalid&&(M.touched||F&&F.submitted))}}return ie.\u0275fac=function(M){return new(M||ie)},ie.\u0275prov=s.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})();class rt{constructor(N,M,F,we=!1){this._renderer=N,this.element=M,this.config=F,this._animationForciblyDisabledThroughCss=we,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Mt=(0,G.i$)({passive:!0,capture:!0});class Dt{constructor(){this._events=new Map,this._delegateEventHandler=N=>{const M=(0,G.sA)(N);M&&this._events.get(N.type)?.forEach((F,we)=>{(we===M||we.contains(M))&&F.forEach(B=>B.handleEvent(N))})}}addHandler(N,M,F,we){const B=this._events.get(M);if(B){const Q=B.get(F);Q?Q.add(we):B.set(F,new Set([we]))}else this._events.set(M,new Map([[F,new Set([we])]])),N.runOutsideAngular(()=>{document.addEventListener(M,this._delegateEventHandler,Mt)})}removeHandler(N,M,F){const we=this._events.get(N);if(!we)return;const B=we.get(M);B&&(B.delete(F),0===B.size&&we.delete(M),0===we.size&&(this._events.delete(N),document.removeEventListener(N,this._delegateEventHandler,Mt)))}}const Pt={enterDuration:225,exitDuration:150},qt=(0,G.i$)({passive:!0,capture:!0}),_n=["mousedown","touchstart"],lt=["mouseup","mouseleave","touchend","touchcancel"];class an{constructor(N,M,F,we){this._target=N,this._ngZone=M,this._platform=we,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,we.isBrowser&&(this._containerElement=(0,ee.fI)(F))}fadeInRipple(N,M,F={}){const we=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),B={...Pt,...F.animation};F.centered&&(N=we.left+we.width/2,M=we.top+we.height/2);const Q=F.radius||function Un(ie,N,M){const F=Math.max(Math.abs(ie-M.left),Math.abs(ie-M.right)),we=Math.max(Math.abs(N-M.top),Math.abs(N-M.bottom));return Math.sqrt(F*F+we*we)}(N,M,we),pe=N-we.left,$e=M-we.top,Me=B.enterDuration,ut=document.createElement("div");ut.classList.add("mat-ripple-element"),ut.style.left=pe-Q+"px",ut.style.top=$e-Q+"px",ut.style.height=2*Q+"px",ut.style.width=2*Q+"px",null!=F.color&&(ut.style.backgroundColor=F.color),ut.style.transitionDuration=`${Me}ms`,this._containerElement.appendChild(ut);const Vt=window.getComputedStyle(ut),De=Vt.transitionDuration,I="none"===Vt.transitionProperty||"0s"===De||"0s, 0s"===De||0===we.width&&0===we.height,w=new rt(this,ut,F,I);ut.style.transform="scale3d(1, 1, 1)",w.state=0,F.persistent||(this._mostRecentTransientRipple=w);let S=null;return!I&&(Me||B.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const $=()=>this._finishRippleTransition(w),de=()=>this._destroyRipple(w);ut.addEventListener("transitionend",$),ut.addEventListener("transitioncancel",de),S={onTransitionEnd:$,onTransitionCancel:de}}),this._activeRipples.set(w,S),(I||!Me)&&this._finishRippleTransition(w),w}fadeOutRipple(N){if(2===N.state||3===N.state)return;const M=N.element,F={...Pt,...N.config.animation};M.style.transitionDuration=`${F.exitDuration}ms`,M.style.opacity="0",N.state=2,(N._animationForciblyDisabledThroughCss||!F.exitDuration)&&this._finishRippleTransition(N)}fadeOutAll(){this._getActiveRipples().forEach(N=>N.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(N=>{N.config.persistent||N.fadeOut()})}setupTriggerEvents(N){const M=(0,ee.fI)(N);!this._platform.isBrowser||!M||M===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=M,_n.forEach(F=>{an._eventManager.addHandler(this._ngZone,F,M,this)}))}handleEvent(N){"mousedown"===N.type?this._onMousedown(N):"touchstart"===N.type?this._onTouchStart(N):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{lt.forEach(M=>{this._triggerElement.addEventListener(M,this,qt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(N){0===N.state?this._startFadeOutTransition(N):2===N.state&&this._destroyRipple(N)}_startFadeOutTransition(N){const M=N===this._mostRecentTransientRipple,{persistent:F}=N.config;N.state=1,!F&&(!M||!this._isPointerDown)&&N.fadeOut()}_destroyRipple(N){const M=this._activeRipples.get(N)??null;this._activeRipples.delete(N),this._activeRipples.size||(this._containerRect=null),N===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),N.state=3,null!==M&&(N.element.removeEventListener("transitionend",M.onTransitionEnd),N.element.removeEventListener("transitioncancel",M.onTransitionCancel)),N.element.remove()}_onMousedown(N){const M=(0,d.X6)(N),F=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!M&&!F&&(this._isPointerDown=!0,this.fadeInRipple(N.clientX,N.clientY,this._target.rippleConfig))}_onTouchStart(N){if(!this._target.rippleDisabled&&!(0,d.yG)(N)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const M=N.changedTouches;for(let F=0;F<M.length;F++)this.fadeInRipple(M[F].clientX,M[F].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(N=>{!N.config.persistent&&(1===N.state||N.config.terminateOnPointerUp&&0===N.state)&&N.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const N=this._triggerElement;N&&(_n.forEach(M=>an._eventManager.removeHandler(M,N,this)),this._pointerUpEventsRegistered&&lt.forEach(M=>N.removeEventListener(M,this,qt)))}}an._eventManager=new Dt;const bn=new s.OlP("mat-ripple-global-options");let wn=(()=>{class ie{get disabled(){return this._disabled}set disabled(M){M&&this.fadeOutAllNonPersistent(),this._disabled=M,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(M){this._trigger=M,this._setupTriggerEventsIfEnabled()}constructor(M,F,we,B,Q){this._elementRef=M,this._animationMode=Q,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=B||{},this._rippleRenderer=new an(this,F,M,we)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(M,F=0,we){return"number"==typeof M?this._rippleRenderer.fadeInRipple(M,F,{...this.rippleConfig,...we}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...M})}}return ie.\u0275fac=function(M){return new(M||ie)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(G.t4),s.Y36(bn,8),s.Y36(s.QbO,8))},ie.\u0275dir=s.lG2({type:ie,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(M,F){2&M&&s.ekj("mat-ripple-unbounded",F.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ie})(),Hn=(()=>{class ie{}return ie.\u0275fac=function(M){return new(M||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({imports:[le,le]}),ie})(),Bt=(()=>{class ie{constructor(M){this._animationMode=M,this.state="unchecked",this.disabled=!1}}return ie.\u0275fac=function(M){return new(M||ie)(s.Y36(s.QbO,8))},ie.\u0275cmp=s.Xpm({type:ie,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(M,F){2&M&&s.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===F.state)("mat-pseudo-checkbox-checked","checked"===F.state)("mat-pseudo-checkbox-disabled",F.disabled)("_mat-animation-noopable","NoopAnimations"===F._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(M,F){},styles:['.mat-pseudo-checkbox{border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}.mat-pseudo-checkbox-checked::after{top:2.7px;width:10px;height:4px}'],encapsulation:2,changeDetection:0}),ie})(),Ft=(()=>{class ie{}return ie.\u0275fac=function(M){return new(M||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({imports:[le]}),ie})();const gt=new s.OlP("MAT_OPTION_PARENT_COMPONENT"),Fe=new s.OlP("MatOptgroup");let $t=0;class Nt{constructor(N,M=!1){this.source=N,this.isUserInput=M}}let Kn=(()=>{class ie{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(M){this._disabled=(0,ee.Ig)(M)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}constructor(M,F,we,B){this._element=M,this._changeDetectorRef=F,this._parent=we,this.group=B,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+$t++,this.onSelectionChange=new s.vpe,this._stateChanges=new X.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(M,F){const we=this._getHostElement();"function"==typeof we.focus&&we.focus(F)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(M){(M.keyCode===H.K5||M.keyCode===H.L_)&&!(0,H.Vb)(M)&&(this._selectViaInteraction(),M.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const M=this.viewValue;M!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=M)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(M=!1){this.onSelectionChange.emit(new Nt(this,M))}}return ie.\u0275fac=function(M){s.$Z()},ie.\u0275dir=s.lG2({type:ie,viewQuery:function(M,F){if(1&M&&s.Gf(Ie,7),2&M){let we;s.iGM(we=s.CRH())&&(F._text=we.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ie})(),Ut=(()=>{class ie extends Kn{constructor(M,F,we,B){super(M,F,we,B)}}return ie.\u0275fac=function(M){return new(M||ie)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(gt,8),s.Y36(Fe,8))},ie.\u0275cmp=s.Xpm({type:ie,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(M,F){1&M&&s.NdJ("click",function(){return F._selectViaInteraction()})("keydown",function(B){return F._handleKeydown(B)}),2&M&&(s.Ikx("id",F.id),s.uIk("tabindex",F._getTabIndex())("aria-selected",F._getAriaSelected())("aria-disabled",F.disabled.toString()),s.ekj("mdc-list-item--selected",F.selected)("mat-mdc-option-multiple",F.multiple)("mat-mdc-option-active",F.active)("mdc-list-item--disabled",F.disabled))},exportAs:["matOption"],features:[s.qOj],ngContentSelectors:Se,decls:7,vars:4,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(M,F){1&M&&(s.F$t(ze),s.YNc(0,ve,1,2,"mat-pseudo-checkbox",0),s.Hsn(1),s.TgZ(2,"span",1,2),s.Hsn(4,1),s.qZA(),s.YNc(5,ke,2,1,"span",3),s._UZ(6,"div",4)),2&M&&(s.Q6J("ngIf",F.multiple),s.xp6(5),s.Q6J("ngIf",F.group&&F.group._inert),s.xp6(1),s.Q6J("matRippleTrigger",F._getHostElement())("matRippleDisabled",F.disabled||F.disableRipple))},dependencies:[wn,W.O5,Bt],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox{margin-right:0;margin-left:16px}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),ie})();function An(ie,N,M){if(M.length){let F=N.toArray(),we=M.toArray(),B=0;for(let Q=0;Q<ie+1;Q++)F[Q].group&&F[Q].group===we[B]&&B++;return B}return 0}function Yn(ie,N,M,F){return ie<M?ie:ie+N>M+F?Math.max(0,ie-F+N):M}let ht=(()=>{class ie{}return ie.\u0275fac=function(M){return new(M||ie)},ie.\u0275mod=s.oAB({type:ie}),ie.\u0275inj=s.cJS({imports:[Hn,W.ez,le,Ft]}),ie})()},9549:(st,ye,_)=>{_.d(ye,{Eo:()=>mn,G_:()=>an,KE:()=>gt,R9:()=>Ye,hX:()=>Qt,lN:()=>Lt,o2:()=>Un,qo:()=>ct});var s=_(4650),d=_(445),P=_(3353),Y=_(7579),W=_(6451),G=_(2722),ee=_(6895),J=_(1281),X=_(7340),H=_(9643),Z=_(3238);const K=["matFormFieldNotchedOutline",""],Ie=["*"],ve=["textField"],ke=["iconPrefixContainer"],ze=["textPrefixContainer"];function Se(Ge,yt){1&Ge&&s._UZ(0,"span",19)}function Ne(Ge,yt){if(1&Ge){const Fe=s.EpF();s.TgZ(0,"label",17),s.NdJ("cdkObserveContent",function(){s.CHM(Fe);const $t=s.oxw(2);return s.KtG($t._refreshOutlineNotchWidth())}),s.Hsn(1,1),s.YNc(2,Se,1,0,"span",18),s.qZA()}if(2&Ge){const Fe=s.oxw(2);s.Q6J("floating",Fe._shouldLabelFloat())("cdkObserveContentDisabled",!Fe._hasOutline())("id",Fe._labelId),s.uIk("for",Fe._control.id)("aria-owns",Fe._control.id),s.xp6(2),s.Q6J("ngIf",!Fe.hideRequiredMarker&&Fe._control.required)}}function Pe(Ge,yt){if(1&Ge&&s.YNc(0,Ne,3,6,"label",16),2&Ge){const Fe=s.oxw();s.Q6J("ngIf",Fe._hasFloatingLabel())}}function Ee(Ge,yt){1&Ge&&s._UZ(0,"div",20)}function Ce(Ge,yt){}function j(Ge,yt){if(1&Ge&&s.YNc(0,Ce,0,0,"ng-template",22),2&Ge){s.oxw(2);const Fe=s.MAs(1);s.Q6J("ngTemplateOutlet",Fe)}}function le(Ge,yt){if(1&Ge&&(s.TgZ(0,"div",21),s.YNc(1,j,1,1,"ng-template",9),s.qZA()),2&Ge){const Fe=s.oxw();s.Q6J("matFormFieldNotchedOutlineOpen",Fe._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",Fe._labelWidth),s.xp6(1),s.Q6J("ngIf",!Fe._forceDisplayInfixLabel())}}function ce(Ge,yt){1&Ge&&(s.TgZ(0,"div",23,24),s.Hsn(2,2),s.qZA())}function me(Ge,yt){1&Ge&&(s.TgZ(0,"div",25,26),s.Hsn(2,3),s.qZA())}function se(Ge,yt){}function ge(Ge,yt){if(1&Ge&&s.YNc(0,se,0,0,"ng-template",22),2&Ge){s.oxw();const Fe=s.MAs(1);s.Q6J("ngTemplateOutlet",Fe)}}function q(Ge,yt){1&Ge&&(s.TgZ(0,"div",27),s.Hsn(1,4),s.qZA())}function oe(Ge,yt){1&Ge&&(s.TgZ(0,"div",28),s.Hsn(1,5),s.qZA())}function Ae(Ge,yt){1&Ge&&s._UZ(0,"div",29)}function _e(Ge,yt){if(1&Ge&&(s.TgZ(0,"div",30),s.Hsn(1,6),s.qZA()),2&Ge){const Fe=s.oxw();s.Q6J("@transitionMessages",Fe._subscriptAnimationState)}}function Ke(Ge,yt){if(1&Ge&&(s.TgZ(0,"mat-hint",34),s._uU(1),s.qZA()),2&Ge){const Fe=s.oxw(2);s.Q6J("id",Fe._hintLabelId),s.xp6(1),s.Oqu(Fe.hintLabel)}}function Je(Ge,yt){if(1&Ge&&(s.TgZ(0,"div",31),s.YNc(1,Ke,2,2,"mat-hint",32),s.Hsn(2,7),s._UZ(3,"div",33),s.Hsn(4,8),s.qZA()),2&Ge){const Fe=s.oxw();s.Q6J("@transitionMessages",Fe._subscriptAnimationState),s.xp6(1),s.Q6J("ngIf",Fe.hintLabel)}}const _t=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Wt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Qt=(()=>{class Ge{}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["mat-label"]]}),Ge})();const Ot=new s.OlP("MatError");let it=0,he=(()=>{class Ge{constructor(){this.align="start",this.id="mat-mdc-hint-"+it++}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Fe,qe){2&Fe&&(s.Ikx("id",qe.id),s.uIk("align",null),s.ekj("mat-mdc-form-field-hint-end","end"===qe.align))},inputs:{align:"align",id:"id"}}),Ge})();const Le=new s.OlP("MatPrefix");let ct=(()=>{class Ge{constructor(){this._isText=!1}set _isTextSelector(Fe){this._isText=!0}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:["matTextPrefix","_isTextSelector"]},features:[s._Bn([{provide:Le,useExisting:Ge}])]}),Ge})();const jt=new s.OlP("MatSuffix");let Ye=(()=>{class Ge{constructor(){this._isText=!1}set _isTextSelector(Fe){this._isText=!0}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[s._Bn([{provide:jt,useExisting:Ge}])]}),Ge})(),At=(()=>{class Ge{constructor(Fe){this._elementRef=Fe,this.floating=!1}getWidth(){return function ne(Ge){if(null!==Ge.offsetParent)return Ge.scrollWidth;const Fe=Ge.cloneNode(!0);Fe.style.setProperty("position","absolute"),Fe.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Fe);const qe=Fe.scrollWidth;return Fe.remove(),qe}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(s.Y36(s.SBq))},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Fe,qe){2&Fe&&s.ekj("mdc-floating-label--float-above",qe.floating)},inputs:{floating:"floating"}}),Ge})();const Qe="mdc-line-ripple--active",rt="mdc-line-ripple--deactivating";let Mt=(()=>{class Ge{constructor(Fe,qe){this._elementRef=Fe,this._handleTransitionEnd=$t=>{const Nt=this._elementRef.nativeElement.classList,Kn=Nt.contains(rt);"opacity"===$t.propertyName&&Kn&&Nt.remove(Qe,rt)},qe.runOutsideAngular(()=>{Fe.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Fe=this._elementRef.nativeElement.classList;Fe.remove(rt),Fe.add(Qe)}deactivate(){this._elementRef.nativeElement.classList.add(rt)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(s.Y36(s.SBq),s.Y36(s.R0b))},Ge.\u0275dir=s.lG2({type:Ge,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),Ge})(),Dt=(()=>{class Ge{constructor(Fe,qe){this._elementRef=Fe,this._ngZone=qe,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const Fe=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Fe?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Fe.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Fe.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(s.Y36(s.SBq),s.Y36(s.R0b))},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Fe,qe){2&Fe&&s.ekj("mdc-notched-outline--notched",qe.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:K,ngContentSelectors:Ie,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(Fe,qe){1&Fe&&(s.F$t(),s._UZ(0,"div",0),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&Fe&&(s.xp6(1),s.Udp("width",qe._getNotchWidth()))},encapsulation:2,changeDetection:0}),Ge})();const Pt={transitionMessages:(0,X.X$)("transitionMessages",[(0,X.SB)("enter",(0,X.oB)({opacity:1,transform:"translateY(0%)"})),(0,X.eR)("void => enter",[(0,X.oB)({opacity:0,transform:"translateY(-5px)"}),(0,X.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let mn=(()=>{class Ge{}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275dir=s.lG2({type:Ge}),Ge})();const an=new s.OlP("MatFormField"),Un=new s.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let bn=0,gt=(()=>{class Ge{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Fe){this._hideRequiredMarker=(0,J.Ig)(Fe)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Fe){Fe!==this._floatLabel&&(this._floatLabel=Fe,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(Fe){const qe=this._appearance;this._appearance=Fe||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==qe&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Fe){this._subscriptSizing=Fe||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(Fe){this._hintLabel=Fe,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Fe){this._explicitFormFieldControl=Fe}constructor(Fe,qe,$t,Nt,Kn,Ut,An,Yn){this._elementRef=Fe,this._changeDetectorRef=qe,this._ngZone=$t,this._dir=Nt,this._platform=Kn,this._defaults=Ut,this._animationMode=An,this._document=Yn,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+bn++,this._hintLabelId="mat-mdc-hint-"+bn++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Y.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,Ut&&(Ut.appearance&&(this.appearance=Ut.appearance),this._hideRequiredMarker=Boolean(Ut?.hideRequiredMarker),Ut.color&&(this.color=Ut.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const Fe=this._control;Fe.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${Fe.controlType}`),Fe.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Fe.ngControl&&Fe.ngControl.valueChanges&&Fe.ngControl.valueChanges.pipe((0,G.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Fe=>!Fe._isText),this._hasTextPrefix=!!this._prefixChildren.find(Fe=>Fe._isText),this._hasIconSuffix=!!this._suffixChildren.find(Fe=>!Fe._isText),this._hasTextSuffix=!!this._suffixChildren.find(Fe=>Fe._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,W.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(Fe){const qe=this._control?this._control.ngControl:null;return qe&&qe[Fe]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Fe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Fe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const qe=this._hintChildren?this._hintChildren.find(Nt=>"start"===Nt.align):null,$t=this._hintChildren?this._hintChildren.find(Nt=>"end"===Nt.align):null;qe?Fe.push(qe.id):this._hintLabel&&Fe.push(this._hintLabelId),$t&&Fe.push($t.id)}else this._errorChildren&&Fe.push(...this._errorChildren.map(qe=>qe.id));this._control.setDescribedByIds(Fe)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const Fe=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Fe.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const qe=this._iconPrefixContainer?.nativeElement,$t=this._textPrefixContainer?.nativeElement,Nt=qe?.getBoundingClientRect().width??0,Kn=$t?.getBoundingClientRect().width??0;Fe.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Nt+Kn}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const Fe=this._elementRef.nativeElement;if(Fe.getRootNode){const qe=Fe.getRootNode();return qe&&qe!==Fe}return document.documentElement.contains(Fe)}}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(d.Is),s.Y36(P.t4),s.Y36(Un,8),s.Y36(s.QbO,8),s.Y36(ee.K0))},Ge.\u0275cmp=s.Xpm({type:Ge,selectors:[["mat-form-field"]],contentQueries:function(Fe,qe,$t){if(1&Fe&&(s.Suo($t,Qt,5),s.Suo($t,Qt,7),s.Suo($t,mn,5),s.Suo($t,Le,5),s.Suo($t,jt,5),s.Suo($t,Ot,5),s.Suo($t,he,5)),2&Fe){let Nt;s.iGM(Nt=s.CRH())&&(qe._labelChildNonStatic=Nt.first),s.iGM(Nt=s.CRH())&&(qe._labelChildStatic=Nt.first),s.iGM(Nt=s.CRH())&&(qe._formFieldControl=Nt.first),s.iGM(Nt=s.CRH())&&(qe._prefixChildren=Nt),s.iGM(Nt=s.CRH())&&(qe._suffixChildren=Nt),s.iGM(Nt=s.CRH())&&(qe._errorChildren=Nt),s.iGM(Nt=s.CRH())&&(qe._hintChildren=Nt)}},viewQuery:function(Fe,qe){if(1&Fe&&(s.Gf(ve,5),s.Gf(ke,5),s.Gf(ze,5),s.Gf(At,5),s.Gf(Dt,5),s.Gf(Mt,5)),2&Fe){let $t;s.iGM($t=s.CRH())&&(qe._textField=$t.first),s.iGM($t=s.CRH())&&(qe._iconPrefixContainer=$t.first),s.iGM($t=s.CRH())&&(qe._textPrefixContainer=$t.first),s.iGM($t=s.CRH())&&(qe._floatingLabel=$t.first),s.iGM($t=s.CRH())&&(qe._notchedOutline=$t.first),s.iGM($t=s.CRH())&&(qe._lineRipple=$t.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Fe,qe){2&Fe&&s.ekj("mat-mdc-form-field-label-always-float",qe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",qe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",qe._hasIconSuffix)("mat-form-field-invalid",qe._control.errorState)("mat-form-field-disabled",qe._control.disabled)("mat-form-field-autofilled",qe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===qe._animationMode)("mat-form-field-appearance-fill","fill"==qe.appearance)("mat-form-field-appearance-outline","outline"==qe.appearance)("mat-form-field-hide-placeholder",qe._hasFloatingLabel()&&!qe._shouldLabelFloat())("mat-focused",qe._control.focused)("mat-primary","accent"!==qe.color&&"warn"!==qe.color)("mat-accent","accent"===qe.color)("mat-warn","warn"===qe.color)("ng-untouched",qe._shouldForward("untouched"))("ng-touched",qe._shouldForward("touched"))("ng-pristine",qe._shouldForward("pristine"))("ng-dirty",qe._shouldForward("dirty"))("ng-valid",qe._shouldForward("valid"))("ng-invalid",qe._shouldForward("invalid"))("ng-pending",qe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[s._Bn([{provide:an,useExisting:Ge}])],ngContentSelectors:Wt,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(Fe,qe){1&Fe&&(s.F$t(_t),s.YNc(0,Pe,1,1,"ng-template",null,0,s.W1O),s.TgZ(2,"div",1,2),s.NdJ("click",function(Nt){return qe._control.onContainerClick&&qe._control.onContainerClick(Nt)}),s.YNc(4,Ee,1,0,"div",3),s.TgZ(5,"div",4),s.YNc(6,le,2,3,"div",5),s.YNc(7,ce,3,0,"div",6),s.YNc(8,me,3,0,"div",7),s.TgZ(9,"div",8),s.YNc(10,ge,1,1,"ng-template",9),s.Hsn(11),s.qZA(),s.YNc(12,q,2,0,"div",10),s.YNc(13,oe,2,0,"div",11),s.qZA(),s.YNc(14,Ae,1,0,"div",12),s.qZA(),s.TgZ(15,"div",13),s.YNc(16,_e,2,1,"div",14),s.YNc(17,Je,5,2,"div",15),s.qZA()),2&Fe&&(s.xp6(2),s.ekj("mdc-text-field--filled",!qe._hasOutline())("mdc-text-field--outlined",qe._hasOutline())("mdc-text-field--no-label",!qe._hasFloatingLabel())("mdc-text-field--disabled",qe._control.disabled)("mdc-text-field--invalid",qe._control.errorState),s.xp6(2),s.Q6J("ngIf",!qe._hasOutline()&&!qe._control.disabled),s.xp6(2),s.Q6J("ngIf",qe._hasOutline()),s.xp6(1),s.Q6J("ngIf",qe._hasIconPrefix),s.xp6(1),s.Q6J("ngIf",qe._hasTextPrefix),s.xp6(2),s.Q6J("ngIf",!qe._hasOutline()||qe._forceDisplayInfixLabel()),s.xp6(2),s.Q6J("ngIf",qe._hasTextSuffix),s.xp6(1),s.Q6J("ngIf",qe._hasIconSuffix),s.xp6(1),s.Q6J("ngIf",!qe._hasOutline()),s.xp6(1),s.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===qe.subscriptSizing),s.Q6J("ngSwitch",qe._getDisplayedMessages()),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","hint"))},dependencies:[ee.O5,ee.tP,ee.RF,ee.n9,H.wD,he,At,Dt,Mt],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[Pt.transitionMessages]},changeDetection:0}),Ge})(),Lt=(()=>{class Ge{}return Ge.\u0275fac=function(Fe){return new(Fe||Ge)},Ge.\u0275mod=s.oAB({type:Ge}),Ge.\u0275inj=s.cJS({imports:[Z.BQ,ee.ez,H.Q8,Z.BQ]}),Ge})()},1481:(st,ye,_)=>{_.d(ye,{Dx:()=>wn,H7:()=>ut,b2:()=>_n,q6:()=>Dt,se:()=>Ae});var s=_(6895),d=_(4650);class P extends s.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends P{static makeCurrent(){(0,s.HT)(new Y)}onAndCancel(w,S,$){return w.addEventListener(S,$,!1),()=>{w.removeEventListener(S,$,!1)}}dispatchEvent(w,S){w.dispatchEvent(S)}remove(w){w.parentNode&&w.parentNode.removeChild(w)}createElement(w,S){return(S=S||this.getDefaultDocument()).createElement(w)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(w){return w.nodeType===Node.ELEMENT_NODE}isShadowRoot(w){return w instanceof DocumentFragment}getGlobalEventTarget(w,S){return"window"===S?window:"document"===S?w:"body"===S?w.body:null}getBaseHref(w){const S=function G(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}();return null==S?null:function J(I){ee=ee||document.createElement("a"),ee.setAttribute("href",I);const w=ee.pathname;return"/"===w.charAt(0)?w:`/${w}`}(S)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(w){return(0,s.Mx)(document.cookie,w)}}let ee,W=null;const X=new d.OlP("TRANSITION_ID"),Z=[{provide:d.ip1,useFactory:function H(I,w,S){return()=>{S.get(d.CZH).donePromise.then(()=>{const $=(0,s.q)(),de=w.querySelectorAll(`style[ng-transition="${I}"]`);for(let et=0;et<de.length;et++)$.remove(de[et])})}},deps:[X,s.K0,d.zs3],multi:!0}];let Ie=(()=>{class I{build(){return new XMLHttpRequest}}return I.\u0275fac=function(S){return new(S||I)},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})();const ve=new d.OlP("EventManagerPlugins");let ke=(()=>{class I{constructor(S,$){this._zone=$,this._eventNameToPlugin=new Map,S.forEach(de=>de.manager=this),this._plugins=S.slice().reverse()}addEventListener(S,$,de){return this._findPluginFor($).addEventListener(S,$,de)}addGlobalEventListener(S,$,de){return this._findPluginFor($).addGlobalEventListener(S,$,de)}getZone(){return this._zone}_findPluginFor(S){const $=this._eventNameToPlugin.get(S);if($)return $;const de=this._plugins;for(let et=0;et<de.length;et++){const bt=de[et];if(bt.supports(S))return this._eventNameToPlugin.set(S,bt),bt}throw new Error(`No event manager plugin found for event ${S}`)}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(ve),d.LFG(d.R0b))},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})();class ze{constructor(w){this._doc=w}addGlobalEventListener(w,S,$){const de=(0,s.q)().getGlobalEventTarget(this._doc,w);if(!de)throw new Error(`Unsupported event target ${de} for event ${S}`);return this.addEventListener(de,S,$)}}let Se=(()=>{class I{constructor(){this._stylesSet=new Set}addStyles(S){const $=new Set;S.forEach(de=>{this._stylesSet.has(de)||(this._stylesSet.add(de),$.add(de))}),this.onStylesAdded($)}onStylesAdded(S){}getAllStyles(){return Array.from(this._stylesSet)}}return I.\u0275fac=function(S){return new(S||I)},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})(),Ne=(()=>{class I extends Se{constructor(S){super(),this._doc=S,this._hostNodes=new Map,this._hostNodes.set(S.head,[])}_addStylesToHost(S,$,de){S.forEach(et=>{const bt=this._doc.createElement("style");bt.textContent=et,de.push($.appendChild(bt))})}addHost(S){const $=[];this._addStylesToHost(this._stylesSet,S,$),this._hostNodes.set(S,$)}removeHost(S){const $=this._hostNodes.get(S);$&&$.forEach(Pe),this._hostNodes.delete(S)}onStylesAdded(S){this._hostNodes.forEach(($,de)=>{this._addStylesToHost(S,de,$)})}ngOnDestroy(){this._hostNodes.forEach(S=>S.forEach(Pe))}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(s.K0))},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})();function Pe(I){(0,s.q)().remove(I)}const Ee={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ce=/%COMP%/g;function q(I,w){return w.flat(100).map(S=>S.replace(Ce,I))}function oe(I){return w=>{if("__ngUnwrap__"===w)return I;!1===I(w)&&(w.preventDefault(),w.returnValue=!1)}}let Ae=(()=>{class I{constructor(S,$,de){this.eventManager=S,this.sharedStylesHost=$,this.appId=de,this.rendererByCompId=new Map,this.defaultRenderer=new _e(S)}createRenderer(S,$){if(!S||!$)return this.defaultRenderer;switch($.encapsulation){case d.ifc.Emulated:{let de=this.rendererByCompId.get($.id);return de||(de=new Wt(this.eventManager,this.sharedStylesHost,$,this.appId),this.rendererByCompId.set($.id,de)),de.applyToHost(S),de}case d.ifc.ShadowDom:return new Qt(this.eventManager,this.sharedStylesHost,S,$);default:if(!this.rendererByCompId.has($.id)){const de=q($.id,$.styles);this.sharedStylesHost.addStyles(de),this.rendererByCompId.set($.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(ke),d.LFG(Ne),d.LFG(d.AFp))},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})();class _e{constructor(w){this.eventManager=w,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(w,S){return S?document.createElementNS(Ee[S]||S,w):document.createElement(w)}createComment(w){return document.createComment(w)}createText(w){return document.createTextNode(w)}appendChild(w,S){(_t(w)?w.content:w).appendChild(S)}insertBefore(w,S,$){w&&(_t(w)?w.content:w).insertBefore(S,$)}removeChild(w,S){w&&w.removeChild(S)}selectRootElement(w,S){let $="string"==typeof w?document.querySelector(w):w;if(!$)throw new Error(`The selector "${w}" did not match any elements`);return S||($.textContent=""),$}parentNode(w){return w.parentNode}nextSibling(w){return w.nextSibling}setAttribute(w,S,$,de){if(de){S=de+":"+S;const et=Ee[de];et?w.setAttributeNS(et,S,$):w.setAttribute(S,$)}else w.setAttribute(S,$)}removeAttribute(w,S,$){if($){const de=Ee[$];de?w.removeAttributeNS(de,S):w.removeAttribute(`${$}:${S}`)}else w.removeAttribute(S)}addClass(w,S){w.classList.add(S)}removeClass(w,S){w.classList.remove(S)}setStyle(w,S,$,de){de&(d.JOm.DashCase|d.JOm.Important)?w.style.setProperty(S,$,de&d.JOm.Important?"important":""):w.style[S]=$}removeStyle(w,S,$){$&d.JOm.DashCase?w.style.removeProperty(S):w.style[S]=""}setProperty(w,S,$){w[S]=$}setValue(w,S){w.nodeValue=S}listen(w,S,$){return"string"==typeof w?this.eventManager.addGlobalEventListener(w,S,oe($)):this.eventManager.addEventListener(w,S,oe($))}}function _t(I){return"TEMPLATE"===I.tagName&&void 0!==I.content}class Wt extends _e{constructor(w,S,$,de){super(w),this.component=$;const et=q(de+"-"+$.id,$.styles);S.addStyles(et),this.contentAttr=function se(I){return"_ngcontent-%COMP%".replace(Ce,I)}(de+"-"+$.id),this.hostAttr=function ge(I){return"_nghost-%COMP%".replace(Ce,I)}(de+"-"+$.id)}applyToHost(w){super.setAttribute(w,this.hostAttr,"")}createElement(w,S){const $=super.createElement(w,S);return super.setAttribute($,this.contentAttr,""),$}}class Qt extends _e{constructor(w,S,$,de){super(w),this.sharedStylesHost=S,this.hostEl=$,this.shadowRoot=$.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const et=q(de.id,de.styles);for(let bt=0;bt<et.length;bt++){const In=document.createElement("style");In.textContent=et[bt],this.shadowRoot.appendChild(In)}}nodeOrShadowRoot(w){return w===this.hostEl?this.shadowRoot:w}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(w,S){return super.appendChild(this.nodeOrShadowRoot(w),S)}insertBefore(w,S,$){return super.insertBefore(this.nodeOrShadowRoot(w),S,$)}removeChild(w,S){return super.removeChild(this.nodeOrShadowRoot(w),S)}parentNode(w){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(w)))}}let Rt=(()=>{class I extends ze{constructor(S){super(S)}supports(S){return!0}addEventListener(S,$,de){return S.addEventListener($,de,!1),()=>this.removeEventListener(S,$,de)}removeEventListener(S,$,de){return S.removeEventListener($,de)}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(s.K0))},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})();const Ot=["alt","control","meta","shift"],Ue={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},it={alt:I=>I.altKey,control:I=>I.ctrlKey,meta:I=>I.metaKey,shift:I=>I.shiftKey};let he=(()=>{class I extends ze{constructor(S){super(S)}supports(S){return null!=I.parseEventName(S)}addEventListener(S,$,de){const et=I.parseEventName($),bt=I.eventCallback(et.fullKey,de,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,s.q)().onAndCancel(S,et.domEventName,bt))}static parseEventName(S){const $=S.toLowerCase().split("."),de=$.shift();if(0===$.length||"keydown"!==de&&"keyup"!==de)return null;const et=I._normalizeKey($.pop());let bt="",In=$.indexOf("code");if(In>-1&&($.splice(In,1),bt="code."),Ot.forEach(Tr=>{const ur=$.indexOf(Tr);ur>-1&&($.splice(ur,1),bt+=Tr+".")}),bt+=et,0!=$.length||0===et.length)return null;const On={};return On.domEventName=de,On.fullKey=bt,On}static matchEventFullKeyCode(S,$){let de=Ue[S.key]||S.key,et="";return $.indexOf("code.")>-1&&(de=S.code,et="code."),!(null==de||!de)&&(de=de.toLowerCase()," "===de?de="space":"."===de&&(de="dot"),Ot.forEach(bt=>{bt!==de&&(0,it[bt])(S)&&(et+=bt+".")}),et+=de,et===$)}static eventCallback(S,$,de){return et=>{I.matchEventFullKeyCode(et,S)&&de.runGuarded(()=>$(et))}}static _normalizeKey(S){return"esc"===S?"escape":S}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(s.K0))},I.\u0275prov=d.Yz7({token:I,factory:I.\u0275fac}),I})();const Dt=(0,d.eFA)(d._c5,"browser",[{provide:d.Lbi,useValue:s.bD},{provide:d.g9A,useValue:function ne(){Y.makeCurrent()},multi:!0},{provide:s.K0,useFactory:function rt(){return(0,d.RDi)(document),document},deps:[]}]),Pt=new d.OlP(""),mn=[{provide:d.rWj,useClass:class K{addToWindow(w){d.dqk.getAngularTestability=($,de=!0)=>{const et=w.findTestabilityInTree($,de);if(null==et)throw new Error("Could not find testability for element.");return et},d.dqk.getAllAngularTestabilities=()=>w.getAllTestabilities(),d.dqk.getAllAngularRootElements=()=>w.getAllRootElements(),d.dqk.frameworkStabilizers||(d.dqk.frameworkStabilizers=[]),d.dqk.frameworkStabilizers.push($=>{const de=d.dqk.getAllAngularTestabilities();let et=de.length,bt=!1;const In=function(On){bt=bt||On,et--,0==et&&$(bt)};de.forEach(function(On){On.whenStable(In)})})}findTestabilityInTree(w,S,$){return null==S?null:w.getTestability(S)??($?(0,s.q)().isShadowRoot(S)?this.findTestabilityInTree(w,S.host,!0):this.findTestabilityInTree(w,S.parentElement,!0):null)}},deps:[]},{provide:d.lri,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]},{provide:d.dDg,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]}],qt=[{provide:d.zSh,useValue:"root"},{provide:d.qLn,useFactory:function Qe(){return new d.qLn},deps:[]},{provide:ve,useClass:Rt,multi:!0,deps:[s.K0,d.R0b,d.Lbi]},{provide:ve,useClass:he,multi:!0,deps:[s.K0]},{provide:Ae,useClass:Ae,deps:[ke,Ne,d.AFp]},{provide:d.FYo,useExisting:Ae},{provide:Se,useExisting:Ne},{provide:Ne,useClass:Ne,deps:[s.K0]},{provide:ke,useClass:ke,deps:[ve,d.R0b]},{provide:s.JF,useClass:Ie,deps:[]},[]];let _n=(()=>{class I{constructor(S){}static withServerTransition(S){return{ngModule:I,providers:[{provide:d.AFp,useValue:S.appId},{provide:X,useExisting:d.AFp},Z]}}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(Pt,12))},I.\u0275mod=d.oAB({type:I}),I.\u0275inj=d.cJS({providers:[...qt,...mn],imports:[s.ez,d.hGG]}),I})(),wn=(()=>{class I{constructor(S){this._doc=S}getTitle(){return this._doc.title}setTitle(S){this._doc.title=S||""}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(s.K0))},I.\u0275prov=d.Yz7({token:I,factory:function(S){let $=null;return $=S?new S:function bn(){return new wn((0,d.LFG)(s.K0))}(),$},providedIn:"root"}),I})();typeof window<"u"&&window;let ut=(()=>{class I{}return I.\u0275fac=function(S){return new(S||I)},I.\u0275prov=d.Yz7({token:I,factory:function(S){let $=null;return $=S?new(S||I):d.LFG(Gt),$},providedIn:"root"}),I})(),Gt=(()=>{class I extends ut{constructor(S){super(),this._doc=S}sanitize(S,$){if(null==$)return null;switch(S){case d.q3G.NONE:return $;case d.q3G.HTML:return(0,d.qzn)($,"HTML")?(0,d.z3N)($):(0,d.EiD)(this._doc,String($)).toString();case d.q3G.STYLE:return(0,d.qzn)($,"Style")?(0,d.z3N)($):$;case d.q3G.SCRIPT:if((0,d.qzn)($,"Script"))return(0,d.z3N)($);throw new Error("unsafe value used in a script context");case d.q3G.URL:return(0,d.qzn)($,"URL")?(0,d.z3N)($):(0,d.mCW)(String($));case d.q3G.RESOURCE_URL:if((0,d.qzn)($,"ResourceURL"))return(0,d.z3N)($);throw new Error(`unsafe value used in a resource URL context (see ${d.JZr})`);default:throw new Error(`Unexpected SecurityContext ${S} (see ${d.JZr})`)}}bypassSecurityTrustHtml(S){return(0,d.JVY)(S)}bypassSecurityTrustStyle(S){return(0,d.L6k)(S)}bypassSecurityTrustScript(S){return(0,d.eBb)(S)}bypassSecurityTrustUrl(S){return(0,d.LAX)(S)}bypassSecurityTrustResourceUrl(S){return(0,d.pB0)(S)}}return I.\u0275fac=function(S){return new(S||I)(d.LFG(s.K0))},I.\u0275prov=d.Yz7({token:I,factory:function(S){let $=null;return $=S?new S:function Vt(I){return new Gt(I.get(s.K0))}(d.LFG(d.zs3)),$},providedIn:"root"}),I})()},284:(st,ye,_)=>{_.d(ye,{gz:()=>xi,m2:()=>hn,F0:()=>kr,rH:()=>D,Od:()=>a,Bz:()=>Ht,lC:()=>er});var s=_(4650),d=_(8996),P=_(9646),Y=_(1135),W=_(6805),G=_(9841),ee=_(7272),J=_(9770),X=_(9635),H=_(2843),Z=_(9751),K=_(515),Ie=_(727),ve=_(4482),ke=_(5403);function ze(){return(0,ve.e)((f,h)=>{let c=null;f._refCount++;const m=(0,ke.x)(h,void 0,void 0,void 0,()=>{if(!f||f._refCount<=0||0<--f._refCount)return void(c=null);const C=f._connection,L=c;c=null,C&&(!L||C===L)&&C.unsubscribe(),h.unsubscribe()});f.subscribe(m),m.closed||(c=f.connect())})}class Se extends Z.y{constructor(h,c){super(),this.source=h,this.subjectFactory=c,this._subject=null,this._refCount=0,this._connection=null,(0,ve.A)(h)&&(this.lift=h.lift)}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:h}=this;this._subject=this._connection=null,h?.unsubscribe()}connect(){let h=this._connection;if(!h){h=this._connection=new Ie.w0;const c=this.getSubject();h.add(this.source.subscribe((0,ke.x)(c,void 0,()=>{this._teardown(),c.complete()},m=>{this._teardown(),c.error(m)},()=>this._teardown()))),h.closed&&(this._connection=null,h=Ie.w0.EMPTY)}return h}refCount(){return ze()(this)}}var Ne=_(7579),Pe=_(6895),Ee=_(4004),Ce=_(3900),j=_(5698),le=_(8675),ce=_(9300),me=_(5577),se=_(590),ge=_(4351),q=_(8505),oe=_(262),Ae=_(5026);function _e(f){return f<=0?()=>K.E:(0,ve.e)((h,c)=>{let m=[];h.subscribe((0,ke.x)(c,C=>{m.push(C),f<m.length&&m.shift()},()=>{for(const C of m)c.next(C);c.complete()},void 0,()=>{m=null}))})}var Ke=_(8068),Je=_(6590),_t=_(4671);function Wt(f,h){const c=arguments.length>=2;return m=>m.pipe(f?(0,ce.h)((C,L)=>f(C,L,m)):_t.y,_e(1),c?(0,Je.d)(h):(0,Ke.T)(()=>new W.K))}var Qt=_(2529),Ot=_(8746),Ue=_(8189),it=_(1481);const he="primary",Le=Symbol("RouteTitle");class ct{constructor(h){this.params=h||{}}has(h){return Object.prototype.hasOwnProperty.call(this.params,h)}get(h){if(this.has(h)){const c=this.params[h];return Array.isArray(c)?c[0]:c}return null}getAll(h){if(this.has(h)){const c=this.params[h];return Array.isArray(c)?c:[c]}return[]}get keys(){return Object.keys(this.params)}}function jt(f){return new ct(f)}function Ye(f,h,c){const m=c.path.split("/");if(m.length>f.length||"full"===c.pathMatch&&(h.hasChildren()||m.length<f.length))return null;const C={};for(let L=0;L<m.length;L++){const V=m[L],Re=f[L];if(V.startsWith(":"))C[V.substring(1)]=Re;else if(V!==Re.path)return null}return{consumed:f.slice(0,m.length),posParams:C}}function ne(f,h){const c=f?Object.keys(f):void 0,m=h?Object.keys(h):void 0;if(!c||!m||c.length!=m.length)return!1;let C;for(let L=0;L<c.length;L++)if(C=c[L],!Qe(f[C],h[C]))return!1;return!0}function Qe(f,h){if(Array.isArray(f)&&Array.isArray(h)){if(f.length!==h.length)return!1;const c=[...f].sort(),m=[...h].sort();return c.every((C,L)=>m[L]===C)}return f===h}function rt(f){return Array.prototype.concat.apply([],f)}function Mt(f){return f.length>0?f[f.length-1]:null}function Pt(f,h){for(const c in f)f.hasOwnProperty(c)&&h(f[c],c)}function mn(f){return(0,s.CqO)(f)?f:(0,s.QGY)(f)?(0,d.D)(Promise.resolve(f)):(0,P.of)(f)}const qt=!1,_n={exact:function bn(f,h,c){if(!Fe(f.segments,h.segments)||!Ft(f.segments,h.segments,c)||f.numberOfChildren!==h.numberOfChildren)return!1;for(const m in h.children)if(!f.children[m]||!bn(f.children[m],h.children[m],c))return!1;return!0},subset:Hn},lt={exact:function Un(f,h){return ne(f,h)},subset:function wn(f,h){return Object.keys(h).length<=Object.keys(f).length&&Object.keys(h).every(c=>Qe(f[c],h[c]))},ignored:()=>!0};function an(f,h,c){return _n[c.paths](f.root,h.root,c.matrixParams)&&lt[c.queryParams](f.queryParams,h.queryParams)&&!("exact"===c.fragment&&f.fragment!==h.fragment)}function Hn(f,h,c){return Bt(f,h,h.segments,c)}function Bt(f,h,c,m){if(f.segments.length>c.length){const C=f.segments.slice(0,c.length);return!(!Fe(C,c)||h.hasChildren()||!Ft(C,c,m))}if(f.segments.length===c.length){if(!Fe(f.segments,c)||!Ft(f.segments,c,m))return!1;for(const C in h.children)if(!f.children[C]||!Hn(f.children[C],h.children[C],m))return!1;return!0}{const C=c.slice(0,f.segments.length),L=c.slice(f.segments.length);return!!(Fe(f.segments,C)&&Ft(f.segments,C,m)&&f.children[he])&&Bt(f.children[he],h,L,m)}}function Ft(f,h,c){return h.every((m,C)=>lt[c](f[C].parameters,m.parameters))}class gt{constructor(h=new Lt([],{}),c={},m=null){this.root=h,this.queryParams=c,this.fragment=m}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return Kn.serialize(this)}}class Lt{constructor(h,c){this.segments=h,this.children=c,this.parent=null,Pt(c,(m,C)=>m.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ut(this)}}class Ge{constructor(h,c){this.path=h,this.parameters=c}get parameterMap(){return this._parameterMap||(this._parameterMap=jt(this.parameters)),this._parameterMap}toString(){return we(this)}}function Fe(f,h){return f.length===h.length&&f.every((c,m)=>c.path===h[m].path)}let $t=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:function(){return new Nt},providedIn:"root"}),f})();class Nt{parse(h){const c=new De(h);return new gt(c.parseRootSegment(),c.parseQueryParams(),c.parseFragment())}serialize(h){const c=`/${An(h.root,!0)}`,m=function Q(f){const h=Object.keys(f).map(c=>{const m=f[c];return Array.isArray(m)?m.map(C=>`${ht(c)}=${ht(C)}`).join("&"):`${ht(c)}=${ht(m)}`}).filter(c=>!!c);return h.length?`?${h.join("&")}`:""}(h.queryParams);return`${c}${m}${"string"==typeof h.fragment?`#${function ie(f){return encodeURI(f)}(h.fragment)}`:""}`}}const Kn=new Nt;function Ut(f){return f.segments.map(h=>we(h)).join("/")}function An(f,h){if(!f.hasChildren())return Ut(f);if(h){const c=f.children[he]?An(f.children[he],!1):"",m=[];return Pt(f.children,(C,L)=>{L!==he&&m.push(`${L}:${An(C,!1)}`)}),m.length>0?`${c}(${m.join("//")})`:c}{const c=function qe(f,h){let c=[];return Pt(f.children,(m,C)=>{C===he&&(c=c.concat(h(m,C)))}),Pt(f.children,(m,C)=>{C!==he&&(c=c.concat(h(m,C)))}),c}(f,(m,C)=>C===he?[An(f.children[he],!1)]:[`${C}:${An(m,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[he]?`${Ut(f)}/${c[0]}`:`${Ut(f)}/(${c.join("//")})`}}function Yn(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ht(f){return Yn(f).replace(/%3B/gi,";")}function N(f){return Yn(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function M(f){return decodeURIComponent(f)}function F(f){return M(f.replace(/\+/g,"%20"))}function we(f){return`${N(f.path)}${function B(f){return Object.keys(f).map(h=>`;${N(h)}=${N(f[h])}`).join("")}(f.parameters)}`}const pe=/^[^\/()?;=#]+/;function $e(f){const h=f.match(pe);return h?h[0]:""}const Me=/^[^=?&#]+/,Vt=/^[^&#]+/;class De{constructor(h){this.url=h,this.remaining=h}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lt([],{}):new Lt([],this.parseChildren())}parseQueryParams(){const h={};if(this.consumeOptional("?"))do{this.parseQueryParam(h)}while(this.consumeOptional("&"));return h}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const h=[];for(this.peekStartsWith("(")||h.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),h.push(this.parseSegment());let c={};this.peekStartsWith("/(")&&(this.capture("/"),c=this.parseParens(!0));let m={};return this.peekStartsWith("(")&&(m=this.parseParens(!1)),(h.length>0||Object.keys(c).length>0)&&(m[he]=new Lt(h,c)),m}parseSegment(){const h=$e(this.remaining);if(""===h&&this.peekStartsWith(";"))throw new s.vHH(4009,qt);return this.capture(h),new Ge(M(h),this.parseMatrixParams())}parseMatrixParams(){const h={};for(;this.consumeOptional(";");)this.parseParam(h);return h}parseParam(h){const c=$e(this.remaining);if(!c)return;this.capture(c);let m="";if(this.consumeOptional("=")){const C=$e(this.remaining);C&&(m=C,this.capture(m))}h[M(c)]=M(m)}parseQueryParam(h){const c=function ut(f){const h=f.match(Me);return h?h[0]:""}(this.remaining);if(!c)return;this.capture(c);let m="";if(this.consumeOptional("=")){const V=function Gt(f){const h=f.match(Vt);return h?h[0]:""}(this.remaining);V&&(m=V,this.capture(m))}const C=F(c),L=F(m);if(h.hasOwnProperty(C)){let V=h[C];Array.isArray(V)||(V=[V],h[C]=V),V.push(L)}else h[C]=L}parseParens(h){const c={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const m=$e(this.remaining),C=this.remaining[m.length];if("/"!==C&&")"!==C&&";"!==C)throw new s.vHH(4010,qt);let L;m.indexOf(":")>-1?(L=m.slice(0,m.indexOf(":")),this.capture(L),this.capture(":")):h&&(L=he);const V=this.parseChildren();c[L]=1===Object.keys(V).length?V[he]:new Lt([],V),this.consumeOptional("//")}return c}peekStartsWith(h){return this.remaining.startsWith(h)}consumeOptional(h){return!!this.peekStartsWith(h)&&(this.remaining=this.remaining.substring(h.length),!0)}capture(h){if(!this.consumeOptional(h))throw new s.vHH(4011,qt)}}function I(f){return f.segments.length>0?new Lt([],{[he]:f}):f}function w(f){const h={};for(const m of Object.keys(f.children)){const L=w(f.children[m]);(L.segments.length>0||L.hasChildren())&&(h[m]=L)}return function S(f){if(1===f.numberOfChildren&&f.children[he]){const h=f.children[he];return new Lt(f.segments.concat(h.segments),h.children)}return f}(new Lt(f.segments,h))}function $(f){return f instanceof gt}function On(f,h,c,m,C){if(0===c.length)return Xn(h.root,h.root,h.root,m,C);const L=function $i(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new ji(!0,0,f);let h=0,c=!1;const m=f.reduce((C,L,V)=>{if("object"==typeof L&&null!=L){if(L.outlets){const Re={};return Pt(L.outlets,(at,Tt)=>{Re[Tt]="string"==typeof at?at.split("/"):at}),[...C,{outlets:Re}]}if(L.segmentPath)return[...C,L.segmentPath]}return"string"!=typeof L?[...C,L]:0===V?(L.split("/").forEach((Re,at)=>{0==at&&"."===Re||(0==at&&""===Re?c=!0:".."===Re?h++:""!=Re&&C.push(Re))}),C):[...C,L]},[]);return new ji(c,h,m)}(c);return L.toRoot()?Xn(h.root,h.root,new Lt([],{}),m,C):function V(at){const Tt=function Tn(f,h,c,m){if(f.isAbsolute)return new Vr(h.root,!0,0);if(-1===m)return new Vr(c,c===h.root,0);return function nr(f,h,c){let m=f,C=h,L=c;for(;L>C;){if(L-=C,m=m.parent,!m)throw new s.vHH(4005,!1);C=m.segments.length}return new Vr(m,!1,C-L)}(c,m+(Tr(f.commands[0])?0:1),f.numberOfDoubleDots)}(L,h,f.snapshot?._urlSegment,at),kt=Tt.processChildren?qn(Tt.segmentGroup,Tt.index,L.commands):Qn(Tt.segmentGroup,Tt.index,L.commands);return Xn(h.root,Tt.segmentGroup,kt,m,C)}(f.snapshot?._lastPathIndex)}function Tr(f){return"object"==typeof f&&null!=f&&!f.outlets&&!f.segmentPath}function ur(f){return"object"==typeof f&&null!=f&&f.outlets}function Xn(f,h,c,m,C){let V,L={};m&&Pt(m,(at,Tt)=>{L[Tt]=Array.isArray(at)?at.map(kt=>`${kt}`):`${at}`}),V=f===h?c:fi(f,h,c);const Re=I(w(V));return new gt(Re,L,C)}function fi(f,h,c){const m={};return Pt(f.children,(C,L)=>{m[L]=C===h?c:fi(C,h,c)}),new Lt(f.segments,m)}class ji{constructor(h,c,m){if(this.isAbsolute=h,this.numberOfDoubleDots=c,this.commands=m,h&&m.length>0&&Tr(m[0]))throw new s.vHH(4003,!1);const C=m.find(ur);if(C&&C!==Mt(m))throw new s.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vr{constructor(h,c,m){this.segmentGroup=h,this.processChildren=c,this.index=m}}function Qn(f,h,c){if(f||(f=new Lt([],{})),0===f.segments.length&&f.hasChildren())return qn(f,h,c);const m=function Br(f,h,c){let m=0,C=h;const L={match:!1,pathIndex:0,commandIndex:0};for(;C<f.segments.length;){if(m>=c.length)return L;const V=f.segments[C],Re=c[m];if(ur(Re))break;const at=`${Re}`,Tt=m<c.length-1?c[m+1]:null;if(C>0&&void 0===at)break;if(at&&Tt&&"object"==typeof Tt&&void 0===Tt.outlets){if(!Er(at,Tt,V))return L;m+=2}else{if(!Er(at,{},V))return L;m++}C++}return{match:!0,pathIndex:C,commandIndex:m}}(f,h,c),C=c.slice(m.commandIndex);if(m.match&&m.pathIndex<f.segments.length){const L=new Lt(f.segments.slice(0,m.pathIndex),{});return L.children[he]=new Lt(f.segments.slice(m.pathIndex),f.children),qn(L,0,C)}return m.match&&0===C.length?new Lt(f.segments,{}):m.match&&!f.hasChildren()?Ct(f,h,c):m.match?qn(f,0,C):Ct(f,h,c)}function qn(f,h,c){if(0===c.length)return new Lt(f.segments,{});{const m=function Zn(f){return ur(f[0])?f[0].outlets:{[he]:f}}(c),C={};return Pt(m,(L,V)=>{"string"==typeof L&&(L=[L]),null!==L&&(C[V]=Qn(f.children[V],h,L))}),Pt(f.children,(L,V)=>{void 0===m[V]&&(C[V]=L)}),new Lt(f.segments,C)}}function Ct(f,h,c){const m=f.segments.slice(0,h);let C=0;for(;C<c.length;){const L=c[C];if(ur(L)){const at=Jt(L.outlets);return new Lt(m,at)}if(0===C&&Tr(c[0])){m.push(new Ge(f.segments[h].path,kn(c[0]))),C++;continue}const V=ur(L)?L.outlets[he]:`${L}`,Re=C<c.length-1?c[C+1]:null;V&&Re&&Tr(Re)?(m.push(new Ge(V,kn(Re))),C+=2):(m.push(new Ge(V,{})),C++)}return new Lt(m,{})}function Jt(f){const h={};return Pt(f,(c,m)=>{"string"==typeof c&&(c=[c]),null!==c&&(h[m]=Ct(new Lt([],{}),0,c))}),h}function kn(f){const h={};return Pt(f,(c,m)=>h[m]=`${c}`),h}function Er(f,h,c){return f==c.path&&ne(h,c.parameters)}const Rr="imperative";class Mn{constructor(h,c){this.id=h,this.url=c}}class Mr extends Mn{constructor(h,c,m="imperative",C=null){super(h,c),this.type=0,this.navigationTrigger=m,this.restoredState=C}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class hn extends Mn{constructor(h,c,m){super(h,c),this.urlAfterRedirects=m,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zr extends Mn{constructor(h,c,m,C){super(h,c),this.reason=m,this.code=C,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fr extends Mn{constructor(h,c,m,C){super(h,c),this.reason=m,this.code=C,this.type=16}}class rn extends Mn{constructor(h,c,m,C){super(h,c),this.error=m,this.target=C,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ti extends Mn{constructor(h,c,m,C){super(h,c),this.urlAfterRedirects=m,this.state=C,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pi extends Mn{constructor(h,c,m,C){super(h,c),this.urlAfterRedirects=m,this.state=C,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zi extends Mn{constructor(h,c,m,C,L){super(h,c),this.urlAfterRedirects=m,this.state=C,this.shouldActivate=L,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Sr extends Mn{constructor(h,c,m,C){super(h,c),this.urlAfterRedirects=m,this.state=C,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends Mn{constructor(h,c,m,C){super(h,c),this.urlAfterRedirects=m,this.state=C,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mi{constructor(h){this.route=h,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wr{constructor(h){this.route=h,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xr{constructor(h){this.snapshot=h,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gr{constructor(h){this.snapshot=h,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Si{constructor(h){this.snapshot=h,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(h){this.snapshot=h,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kr{constructor(h,c,m){this.routerEvent=h,this.position=c,this.anchor=m,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Vi=(()=>{class f{createUrlTree(c,m,C,L,V,Re){return On(c||m.root,C,L,V,Re)}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac}),f})(),lr=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:function(h){return Vi.\u0275fac(h)},providedIn:"root"}),f})();class rr{constructor(h){this._root=h}get root(){return this._root.value}parent(h){const c=this.pathFromRoot(h);return c.length>1?c[c.length-2]:null}children(h){const c=jo(h,this._root);return c?c.children.map(m=>m.value):[]}firstChild(h){const c=jo(h,this._root);return c&&c.children.length>0?c.children[0].value:null}siblings(h){const c=gr(h,this._root);return c.length<2?[]:c[c.length-2].children.map(C=>C.value).filter(C=>C!==h)}pathFromRoot(h){return gr(h,this._root).map(c=>c.value)}}function jo(f,h){if(f===h.value)return h;for(const c of h.children){const m=jo(f,c);if(m)return m}return null}function gr(f,h){if(f===h.value)return[h];for(const c of h.children){const m=gr(f,c);if(m.length)return m.unshift(h),m}return[]}class ir{constructor(h,c){this.value=h,this.children=c}toString(){return`TreeNode(${this.value})`}}function Yr(f){const h={};return f&&f.children.forEach(c=>h[c.value.outlet]=c),h}class gi extends rr{constructor(h,c){super(h),this.snapshot=c,zi(this,h)}toString(){return this.snapshot.toString()}}function lo(f,h){const c=function Dr(f,h){const V=new dr([],{},{},"",{},he,h,null,f.root,-1,{});return new uo("",new ir(V,[]))}(f,h),m=new Y.X([new Ge("",{})]),C=new Y.X({}),L=new Y.X({}),V=new Y.X({}),Re=new Y.X(""),at=new xi(m,C,V,Re,L,he,h,c.root);return at.snapshot=c.root,new gi(new ir(at,[]),c)}class xi{constructor(h,c,m,C,L,V,Re,at){this.url=h,this.params=c,this.queryParams=m,this.fragment=C,this.data=L,this.outlet=V,this.component=Re,this.title=this.data?.pipe((0,Ee.U)(Tt=>Tt[Le]))??(0,P.of)(void 0),this._futureSnapshot=at}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Ee.U)(h=>jt(h)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ee.U)(h=>jt(h)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function co(f,h="emptyOnly"){const c=f.pathFromRoot;let m=0;if("always"!==h)for(m=c.length-1;m>=1;){const C=c[m],L=c[m-1];if(C.routeConfig&&""===C.routeConfig.path)m--;else{if(L.component)break;m--}}return function $o(f){return f.reduce((h,c)=>({params:{...h.params,...c.params},data:{...h.data,...c.data},resolve:{...c.data,...h.resolve,...c.routeConfig?.data,...c._resolvedData}}),{params:{},data:{},resolve:{}})}(c.slice(m))}class dr{get title(){return this.data?.[Le]}constructor(h,c,m,C,L,V,Re,at,Tt,kt,Cn){this.url=h,this.params=c,this.queryParams=m,this.fragment=C,this.data=L,this.outlet=V,this.component=Re,this.routeConfig=at,this._urlSegment=Tt,this._lastPathIndex=kt,this._resolve=Cn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=jt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(m=>m.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uo extends rr{constructor(h,c){super(c),this.url=h,zi(this,c)}toString(){return Ai(this._root)}}function zi(f,h){h.value._routerState=f,h.children.forEach(c=>zi(f,c))}function Ai(f){const h=f.children.length>0?` { ${f.children.map(Ai).join(", ")} } `:"";return`${f.value}${h}`}function fo(f){if(f.snapshot){const h=f.snapshot,c=f._futureSnapshot;f.snapshot=c,ne(h.queryParams,c.queryParams)||f.queryParams.next(c.queryParams),h.fragment!==c.fragment&&f.fragment.next(c.fragment),ne(h.params,c.params)||f.params.next(c.params),function At(f,h){if(f.length!==h.length)return!1;for(let c=0;c<f.length;++c)if(!ne(f[c],h[c]))return!1;return!0}(h.url,c.url)||f.url.next(c.url),ne(h.data,c.data)||f.data.next(c.data)}else f.snapshot=f._futureSnapshot,f.data.next(f._futureSnapshot.data)}function xo(f,h){const c=ne(f.params,h.params)&&function yt(f,h){return Fe(f,h)&&f.every((c,m)=>ne(c.parameters,h[m].parameters))}(f.url,h.url);return c&&!(!f.parent!=!h.parent)&&(!f.parent||xo(f.parent,h.parent))}function Ii(f,h,c){if(c&&f.shouldReuseRoute(h.value,c.value.snapshot)){const m=c.value;m._futureSnapshot=h.value;const C=function Oi(f,h,c){return h.children.map(m=>{for(const C of c.children)if(f.shouldReuseRoute(m.value,C.value.snapshot))return Ii(f,m,C);return Ii(f,m)})}(f,h,c);return new ir(m,C)}{if(f.shouldAttach(h.value)){const L=f.retrieve(h.value);if(null!==L){const V=L.route;return V.value._futureSnapshot=h.value,V.children=h.children.map(Re=>Ii(f,Re)),V}}const m=function be(f){return new xi(new Y.X(f.url),new Y.X(f.params),new Y.X(f.queryParams),new Y.X(f.fragment),new Y.X(f.data),f.outlet,f.component,f)}(h.value),C=h.children.map(L=>Ii(f,L));return new ir(m,C)}}const Te="ngNavigationCancelingError";function Be(f,h){const{redirectTo:c,navigationBehaviorOptions:m}=$(h)?{redirectTo:h,navigationBehaviorOptions:void 0}:h,C=tt(!1,0,h);return C.url=c,C.navigationBehaviorOptions=m,C}function tt(f,h,c){const m=new Error("NavigationCancelingError: "+(f||""));return m[Te]=!0,m.cancellationCode=h,c&&(m.url=c),m}function ft(f){return vt(f)&&$(f.url)}function vt(f){return f&&f[Te]}class Xt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ln,this.attachRef=null}}let Ln=(()=>{class f{constructor(){this.contexts=new Map}onChildOutletCreated(c,m){const C=this.getOrCreateContext(c);C.outlet=m,this.contexts.set(c,C)}onChildOutletDestroyed(c){const m=this.getContext(c);m&&(m.outlet=null,m.attachRef=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let m=this.getContext(c);return m||(m=new Xt,this.contexts.set(c,m)),m}getContext(c){return this.contexts.get(c)||null}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const ln=!1;let er=(()=>{class f{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.attachEvents=new s.vpe,this.detachEvents=new s.vpe,this.parentContexts=(0,s.f3M)(Ln),this.location=(0,s.f3M)(s.s_b),this.changeDetector=(0,s.f3M)(s.sBO),this.environmentInjector=(0,s.f3M)(s.lqb)}ngOnChanges(c){if(c.name){const{firstChange:m,previousValue:C}=c.name;if(m)return;this.isTrackedInParentContexts(C)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(C)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(c){return this.parentContexts.getContext(c)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const c=this.parentContexts.getContext(this.name);c?.route&&(c.attachRef?this.attach(c.attachRef,c.route):this.activateWith(c.route,c.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new s.vHH(4012,ln);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new s.vHH(4012,ln);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new s.vHH(4012,ln);this.location.detach();const c=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(c.instance),c}attach(c,m){this.activated=c,this._activatedRoute=m,this.location.insert(c.hostView),this.attachEvents.emit(c.instance)}deactivate(){if(this.activated){const c=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(c)}}activateWith(c,m){if(this.isActivated)throw new s.vHH(4013,ln);this._activatedRoute=c;const C=this.location,V=c.snapshot.component,Re=this.parentContexts.getOrCreateContext(this.name).children,at=new Ar(c,Re,C.injector);if(m&&function Pi(f){return!!f.resolveComponentFactory}(m)){const Tt=m.resolveComponentFactory(V);this.activated=C.createComponent(Tt,C.length,at)}else this.activated=C.createComponent(V,{index:C.length,injector:at,environmentInjector:m??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275dir=s.lG2({type:f,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[s.TTD]}),f})();class Ar{constructor(h,c,m){this.route=h,this.childContexts=c,this.parent=m}get(h,c){return h===xi?this.route:h===Ln?this.childContexts:this.parent.get(h,c)}}let ii=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275cmp=s.Xpm({type:f,selectors:[["ng-component"]],standalone:!0,features:[s.jDz],decls:1,vars:0,template:function(c,m){1&c&&s._UZ(0,"router-outlet")},dependencies:[er],encapsulation:2}),f})();function oi(f,h){return f.providers&&!f._injector&&(f._injector=(0,s.MMx)(f.providers,h,`Route: ${f.path}`)),f._injector??h}function qr(f){const h=f.children&&f.children.map(qr),c=h?{...f,children:h}:{...f};return!c.component&&!c.loadComponent&&(h||c.loadChildren)&&c.outlet&&c.outlet!==he&&(c.component=ii),c}function Pn(f){return f.outlet||he}function Ao(f,h){const c=f.filter(m=>Pn(m)===h);return c.push(...f.filter(m=>Pn(m)!==h)),c}function li(f){if(!f)return null;if(f.routeConfig?._injector)return f.routeConfig._injector;for(let h=f.parent;h;h=h.parent){const c=h.routeConfig;if(c?._loadedInjector)return c._loadedInjector;if(c?._injector)return c._injector}return null}class Vo{constructor(h,c,m,C){this.routeReuseStrategy=h,this.futureState=c,this.currState=m,this.forwardEvent=C}activate(h){const c=this.futureState._root,m=this.currState?this.currState._root:null;this.deactivateChildRoutes(c,m,h),fo(this.futureState.root),this.activateChildRoutes(c,m,h)}deactivateChildRoutes(h,c,m){const C=Yr(c);h.children.forEach(L=>{const V=L.value.outlet;this.deactivateRoutes(L,C[V],m),delete C[V]}),Pt(C,(L,V)=>{this.deactivateRouteAndItsChildren(L,m)})}deactivateRoutes(h,c,m){const C=h.value,L=c?c.value:null;if(C===L)if(C.component){const V=m.getContext(C.outlet);V&&this.deactivateChildRoutes(h,c,V.children)}else this.deactivateChildRoutes(h,c,m);else L&&this.deactivateRouteAndItsChildren(c,m)}deactivateRouteAndItsChildren(h,c){h.value.component&&this.routeReuseStrategy.shouldDetach(h.value.snapshot)?this.detachAndStoreRouteSubtree(h,c):this.deactivateRouteAndOutlet(h,c)}detachAndStoreRouteSubtree(h,c){const m=c.getContext(h.value.outlet),C=m&&h.value.component?m.children:c,L=Yr(h);for(const V of Object.keys(L))this.deactivateRouteAndItsChildren(L[V],C);if(m&&m.outlet){const V=m.outlet.detach(),Re=m.children.onOutletDeactivated();this.routeReuseStrategy.store(h.value.snapshot,{componentRef:V,route:h,contexts:Re})}}deactivateRouteAndOutlet(h,c){const m=c.getContext(h.value.outlet),C=m&&h.value.component?m.children:c,L=Yr(h);for(const V of Object.keys(L))this.deactivateRouteAndItsChildren(L[V],C);m&&m.outlet&&(m.outlet.deactivate(),m.children.onOutletDeactivated(),m.attachRef=null,m.resolver=null,m.route=null)}activateChildRoutes(h,c,m){const C=Yr(c);h.children.forEach(L=>{this.activateRoutes(L,C[L.value.outlet],m),this.forwardEvent(new jn(L.value.snapshot))}),h.children.length&&this.forwardEvent(new Gr(h.value.snapshot))}activateRoutes(h,c,m){const C=h.value,L=c?c.value:null;if(fo(C),C===L)if(C.component){const V=m.getOrCreateContext(C.outlet);this.activateChildRoutes(h,c,V.children)}else this.activateChildRoutes(h,c,m);else if(C.component){const V=m.getOrCreateContext(C.outlet);if(this.routeReuseStrategy.shouldAttach(C.snapshot)){const Re=this.routeReuseStrategy.retrieve(C.snapshot);this.routeReuseStrategy.store(C.snapshot,null),V.children.onOutletReAttached(Re.contexts),V.attachRef=Re.componentRef,V.route=Re.route.value,V.outlet&&V.outlet.attach(Re.componentRef,Re.route.value),fo(Re.route.value),this.activateChildRoutes(h,null,V.children)}else{const Re=li(C.snapshot),at=Re?.get(s._Vd)??null;V.attachRef=null,V.route=C,V.resolver=at,V.injector=Re,V.outlet&&V.outlet.activateWith(C,V.injector),this.activateChildRoutes(h,null,V.children)}}else this.activateChildRoutes(h,null,m)}}class Fi{constructor(h){this.path=h,this.route=this.path[this.path.length-1]}}class ei{constructor(h,c){this.component=h,this.route=c}}function mr(f,h,c){const m=f._root;return ho(m,h?h._root:null,c,[m.value])}function mi(f,h){const c=Symbol(),m=h.get(f,c);return m===c?"function"!=typeof f||(0,s.Z0I)(f)?h.get(f):f:m}function ho(f,h,c,m,C={canDeactivateChecks:[],canActivateChecks:[]}){const L=Yr(h);return f.children.forEach(V=>{(function Ni(f,h,c,m,C={canDeactivateChecks:[],canActivateChecks:[]}){const L=f.value,V=h?h.value:null,Re=c?c.getContext(f.value.outlet):null;if(V&&L.routeConfig===V.routeConfig){const at=function po(f,h,c){if("function"==typeof c)return c(f,h);switch(c){case"pathParamsChange":return!Fe(f.url,h.url);case"pathParamsOrQueryParamsChange":return!Fe(f.url,h.url)||!ne(f.queryParams,h.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xo(f,h)||!ne(f.queryParams,h.queryParams);default:return!xo(f,h)}}(V,L,L.routeConfig.runGuardsAndResolvers);at?C.canActivateChecks.push(new Fi(m)):(L.data=V.data,L._resolvedData=V._resolvedData),ho(f,h,L.component?Re?Re.children:null:c,m,C),at&&Re&&Re.outlet&&Re.outlet.isActivated&&C.canDeactivateChecks.push(new ei(Re.outlet.component,V))}else V&&ki(h,Re,C),C.canActivateChecks.push(new Fi(m)),ho(f,null,L.component?Re?Re.children:null:c,m,C)})(V,L[V.value.outlet],c,m.concat([V.value]),C),delete L[V.value.outlet]}),Pt(L,(V,Re)=>ki(V,c.getContext(Re),C)),C}function ki(f,h,c){const m=Yr(f),C=f.value;Pt(m,(L,V)=>{ki(L,C.component?h?h.children.getContext(V):null:h,c)}),c.canDeactivateChecks.push(new ei(C.component&&h&&h.outlet&&h.outlet.isActivated?h.outlet.component:null,C))}function en(f){return"function"==typeof f}function Xe(f){return f instanceof W.K||"EmptyError"===f?.name}const gn=Symbol("INITIAL_VALUE");function Ji(){return(0,Ce.w)(f=>(0,G.a)(f.map(h=>h.pipe((0,j.q)(1),(0,le.O)(gn)))).pipe((0,Ee.U)(h=>{for(const c of h)if(!0!==c){if(c===gn)return gn;if(!1===c||c instanceof gt)return c}return!0}),(0,ce.h)(h=>h!==gn),(0,j.q)(1)))}function qi(f){return(0,X.z)((0,q.b)(h=>{if($(h))throw Be(0,h)}),(0,Ee.U)(h=>!0===h))}const Nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _r(f,h,c,m,C){const L=ni(f,h,c);return L.matched?function wr(f,h,c,m){const C=h.canMatch;if(!C||0===C.length)return(0,P.of)(!0);const L=C.map(V=>{const Re=mi(V,f);return mn(function ss(f){return f&&en(f.canMatch)}(Re)?Re.canMatch(h,c):f.runInContext(()=>Re(h,c)))});return(0,P.of)(L).pipe(Ji(),qi())}(m=oi(h,m),h,c).pipe((0,Ee.U)(V=>!0===V?L:{...Nr})):(0,P.of)(L)}function ni(f,h,c){if(""===h.path)return"full"===h.pathMatch&&(f.hasChildren()||c.length>0)?{...Nr}:{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};const C=(h.matcher||Ye)(c,f,h);if(!C)return{...Nr};const L={};Pt(C.posParams,(Re,at)=>{L[at]=Re.path});const V=C.consumed.length>0?{...L,...C.consumed[C.consumed.length-1].parameters}:L;return{matched:!0,consumedSegments:C.consumed,remainingSegments:c.slice(C.consumed.length),parameters:V,positionalParamSegments:C.posParams??{}}}function Or(f,h,c,m){if(c.length>0&&function as(f,h,c){return c.some(m=>eo(f,h,m)&&Pn(m)!==he)}(f,c,m)){const L=new Lt(h,function _o(f,h,c,m){const C={};C[he]=m,m._sourceSegment=f,m._segmentIndexShift=h.length;for(const L of c)if(""===L.path&&Pn(L)!==he){const V=new Lt([],{});V._sourceSegment=f,V._segmentIndexShift=h.length,C[Pn(L)]=V}return C}(f,h,m,new Lt(c,f.children)));return L._sourceSegment=f,L._segmentIndexShift=h.length,{segmentGroup:L,slicedSegments:[]}}if(0===c.length&&function Fo(f,h,c){return c.some(m=>eo(f,h,m))}(f,c,m)){const L=new Lt(f.segments,function Ro(f,h,c,m,C){const L={};for(const V of m)if(eo(f,c,V)&&!C[Pn(V)]){const Re=new Lt([],{});Re._sourceSegment=f,Re._segmentIndexShift=h.length,L[Pn(V)]=Re}return{...C,...L}}(f,h,c,m,f.children));return L._sourceSegment=f,L._segmentIndexShift=h.length,{segmentGroup:L,slicedSegments:c}}const C=new Lt(f.segments,f.children);return C._sourceSegment=f,C._segmentIndexShift=h.length,{segmentGroup:C,slicedSegments:c}}function eo(f,h,c){return(!(f.hasChildren()||h.length>0)||"full"!==c.pathMatch)&&""===c.path}function yo(f,h,c,m){return!!(Pn(f)===m||m!==he&&eo(h,c,f))&&("**"===f.path||ni(h,f,c).matched)}function to(f,h,c){return 0===h.length&&!f.children[c]}const Wi=!1;class Li{constructor(h){this.segmentGroup=h||null}}class no{constructor(h){this.urlTree=h}}function _i(f){return(0,H._)(new Li(f))}function Zr(f){return(0,H._)(new no(f))}class ls{constructor(h,c,m,C,L){this.injector=h,this.configLoader=c,this.urlSerializer=m,this.urlTree=C,this.config=L,this.allowRedirects=!0}apply(){const h=Or(this.urlTree.root,[],[],this.config).segmentGroup,c=new Lt(h.segments,h.children);return this.expandSegmentGroup(this.injector,this.config,c,he).pipe((0,Ee.U)(L=>this.createUrlTree(w(L),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,oe.K)(L=>{if(L instanceof no)return this.allowRedirects=!1,this.match(L.urlTree);throw L instanceof Li?this.noMatchError(L):L}))}match(h){return this.expandSegmentGroup(this.injector,this.config,h.root,he).pipe((0,Ee.U)(C=>this.createUrlTree(w(C),h.queryParams,h.fragment))).pipe((0,oe.K)(C=>{throw C instanceof Li?this.noMatchError(C):C}))}noMatchError(h){return new s.vHH(4002,Wi)}createUrlTree(h,c,m){const C=I(h);return new gt(C,c,m)}expandSegmentGroup(h,c,m,C){return 0===m.segments.length&&m.hasChildren()?this.expandChildren(h,c,m).pipe((0,Ee.U)(L=>new Lt([],L))):this.expandSegment(h,m,c,m.segments,C,!0)}expandChildren(h,c,m){const C=[];for(const L of Object.keys(m.children))"primary"===L?C.unshift(L):C.push(L);return(0,d.D)(C).pipe((0,ge.b)(L=>{const V=m.children[L],Re=Ao(c,L);return this.expandSegmentGroup(h,Re,V,L).pipe((0,Ee.U)(at=>({segment:at,outlet:L})))}),(0,Ae.R)((L,V)=>(L[V.outlet]=V.segment,L),{}),Wt())}expandSegment(h,c,m,C,L,V){return(0,d.D)(m).pipe((0,ge.b)(Re=>this.expandSegmentAgainstRoute(h,c,m,Re,C,L,V).pipe((0,oe.K)(Tt=>{if(Tt instanceof Li)return(0,P.of)(null);throw Tt}))),(0,se.P)(Re=>!!Re),(0,oe.K)((Re,at)=>{if(Xe(Re))return to(c,C,L)?(0,P.of)(new Lt([],{})):_i(c);throw Re}))}expandSegmentAgainstRoute(h,c,m,C,L,V,Re){return yo(C,c,L,V)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(h,c,C,L,V):Re&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(h,c,m,C,L,V):_i(c):_i(c)}expandSegmentAgainstRouteUsingRedirect(h,c,m,C,L,V){return"**"===C.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(h,m,C,V):this.expandRegularSegmentAgainstRouteUsingRedirect(h,c,m,C,L,V)}expandWildCardWithParamsAgainstRouteUsingRedirect(h,c,m,C){const L=this.applyRedirectCommands([],m.redirectTo,{});return m.redirectTo.startsWith("/")?Zr(L):this.lineralizeSegments(m,L).pipe((0,me.z)(V=>{const Re=new Lt(V,{});return this.expandSegment(h,Re,c,V,C,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(h,c,m,C,L,V){const{matched:Re,consumedSegments:at,remainingSegments:Tt,positionalParamSegments:kt}=ni(c,C,L);if(!Re)return _i(c);const Cn=this.applyRedirectCommands(at,C.redirectTo,kt);return C.redirectTo.startsWith("/")?Zr(Cn):this.lineralizeSegments(C,Cn).pipe((0,me.z)(jr=>this.expandSegment(h,c,m,jr.concat(Tt),V,!1)))}matchSegmentAgainstRoute(h,c,m,C,L){return"**"===m.path?(h=oi(m,h),m.loadChildren?(m._loadedRoutes?(0,P.of)({routes:m._loadedRoutes,injector:m._loadedInjector}):this.configLoader.loadChildren(h,m)).pipe((0,Ee.U)(Re=>(m._loadedRoutes=Re.routes,m._loadedInjector=Re.injector,new Lt(C,{})))):(0,P.of)(new Lt(C,{}))):_r(c,m,C,h).pipe((0,Ce.w)(({matched:V,consumedSegments:Re,remainingSegments:at})=>V?this.getChildConfig(h=m._injector??h,m,C).pipe((0,me.z)(kt=>{const Cn=kt.injector??h,jr=kt.routes,{segmentGroup:To,slicedSegments:Mo}=Or(c,Re,at,jr),Ci=new Lt(To.segments,To.children);if(0===Mo.length&&Ci.hasChildren())return this.expandChildren(Cn,jr,Ci).pipe((0,Ee.U)(rl=>new Lt(Re,rl)));if(0===jr.length&&0===Mo.length)return(0,P.of)(new Lt(Re,{}));const Ki=Pn(m)===L;return this.expandSegment(Cn,Ci,jr,Mo,Ki?he:L,!0).pipe((0,Ee.U)(ra=>new Lt(Re.concat(ra.segments),ra.children)))})):_i(c)))}getChildConfig(h,c,m){return c.children?(0,P.of)({routes:c.children,injector:h}):c.loadChildren?void 0!==c._loadedRoutes?(0,P.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):function Es(f,h,c,m){const C=h.canLoad;if(void 0===C||0===C.length)return(0,P.of)(!0);const L=C.map(V=>{const Re=mi(V,f);return mn(function vs(f){return f&&en(f.canLoad)}(Re)?Re.canLoad(h,c):f.runInContext(()=>Re(h,c)))});return(0,P.of)(L).pipe(Ji(),qi())}(h,c,m).pipe((0,me.z)(C=>C?this.configLoader.loadChildren(h,c).pipe((0,q.b)(L=>{c._loadedRoutes=L.routes,c._loadedInjector=L.injector})):function Fs(f){return(0,H._)(tt(Wi,3))}())):(0,P.of)({routes:[],injector:h})}lineralizeSegments(h,c){let m=[],C=c.root;for(;;){if(m=m.concat(C.segments),0===C.numberOfChildren)return(0,P.of)(m);if(C.numberOfChildren>1||!C.children[he])return(0,H._)(new s.vHH(4e3,Wi));C=C.children[he]}}applyRedirectCommands(h,c,m){return this.applyRedirectCreateUrlTree(c,this.urlSerializer.parse(c),h,m)}applyRedirectCreateUrlTree(h,c,m,C){const L=this.createSegmentGroup(h,c.root,m,C);return new gt(L,this.createQueryParams(c.queryParams,this.urlTree.queryParams),c.fragment)}createQueryParams(h,c){const m={};return Pt(h,(C,L)=>{if("string"==typeof C&&C.startsWith(":")){const Re=C.substring(1);m[L]=c[Re]}else m[L]=C}),m}createSegmentGroup(h,c,m,C){const L=this.createSegments(h,c.segments,m,C);let V={};return Pt(c.children,(Re,at)=>{V[at]=this.createSegmentGroup(h,Re,m,C)}),new Lt(L,V)}createSegments(h,c,m,C){return c.map(L=>L.path.startsWith(":")?this.findPosParam(h,L,C):this.findOrReturn(L,m))}findPosParam(h,c,m){const C=m[c.path.substring(1)];if(!C)throw new s.vHH(4001,Wi);return C}findOrReturn(h,c){let m=0;for(const C of c){if(C.path===h.path)return c.splice(m),C;m++}return h}}class yr{}class Ko{constructor(h,c,m,C,L,V,Re){this.injector=h,this.rootComponentType=c,this.config=m,this.urlTree=C,this.url=L,this.paramsInheritanceStrategy=V,this.urlSerializer=Re}recognize(){const h=Or(this.urlTree.root,[],[],this.config.filter(c=>void 0===c.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,h,he).pipe((0,Ee.U)(c=>{if(null===c)return null;const m=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},he,this.rootComponentType,null,this.urlTree.root,-1,{}),C=new ir(m,c),L=new uo(this.url,C);return this.inheritParamsAndData(L._root),L}))}inheritParamsAndData(h){const c=h.value,m=co(c,this.paramsInheritanceStrategy);c.params=Object.freeze(m.params),c.data=Object.freeze(m.data),h.children.forEach(C=>this.inheritParamsAndData(C))}processSegmentGroup(h,c,m,C){return 0===m.segments.length&&m.hasChildren()?this.processChildren(h,c,m):this.processSegment(h,c,m,m.segments,C)}processChildren(h,c,m){return(0,d.D)(Object.keys(m.children)).pipe((0,ge.b)(C=>{const L=m.children[C],V=Ao(c,C);return this.processSegmentGroup(h,V,L,C)}),(0,Ae.R)((C,L)=>C&&L?(C.push(...L),C):null),(0,Qt.o)(C=>null!==C),(0,Je.d)(null),Wt(),(0,Ee.U)(C=>{if(null===C)return null;const L=ws(C);return function Ds(f){f.sort((h,c)=>h.value.outlet===he?-1:c.value.outlet===he?1:h.value.outlet.localeCompare(c.value.outlet))}(L),L}))}processSegment(h,c,m,C,L){return(0,d.D)(c).pipe((0,ge.b)(V=>this.processSegmentAgainstRoute(V._injector??h,V,m,C,L)),(0,se.P)(V=>!!V),(0,oe.K)(V=>{if(Xe(V))return to(m,C,L)?(0,P.of)([]):(0,P.of)(null);throw V}))}processSegmentAgainstRoute(h,c,m,C,L){if(c.redirectTo||!yo(c,m,C,L))return(0,P.of)(null);let V;if("**"===c.path){const Re=C.length>0?Mt(C).parameters:{},at=g(m)+C.length,Tt=new dr(C,Re,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,v(c),Pn(c),c.component??c._loadedComponent??null,c,No(m),at,R(c));V=(0,P.of)({snapshot:Tt,consumedSegments:[],remainingSegments:[]})}else V=_r(m,c,C,h).pipe((0,Ee.U)(({matched:Re,consumedSegments:at,remainingSegments:Tt,parameters:kt})=>{if(!Re)return null;const Cn=g(m)+at.length;return{snapshot:new dr(at,kt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,v(c),Pn(c),c.component??c._loadedComponent??null,c,No(m),Cn,R(c)),consumedSegments:at,remainingSegments:Tt}}));return V.pipe((0,Ce.w)(Re=>{if(null===Re)return(0,P.of)(null);const{snapshot:at,consumedSegments:Tt,remainingSegments:kt}=Re;h=c._injector??h;const Cn=c._loadedInjector??h,jr=function vr(f){return f.children?f.children:f.loadChildren?f._loadedRoutes:[]}(c),{segmentGroup:To,slicedSegments:Mo}=Or(m,Tt,kt,jr.filter(Ki=>void 0===Ki.redirectTo));if(0===Mo.length&&To.hasChildren())return this.processChildren(Cn,jr,To).pipe((0,Ee.U)(Ki=>null===Ki?null:[new ir(at,Ki)]));if(0===jr.length&&0===Mo.length)return(0,P.of)([new ir(at,[])]);const Ci=Pn(c)===L;return this.processSegment(Cn,jr,To,Mo,Ci?he:L).pipe((0,Ee.U)(Ki=>null===Ki?null:[new ir(at,Ki)]))}))}}function Cs(f){const h=f.value.routeConfig;return h&&""===h.path&&void 0===h.redirectTo}function ws(f){const h=[],c=new Set;for(const m of f){if(!Cs(m)){h.push(m);continue}const C=h.find(L=>m.value.routeConfig===L.value.routeConfig);void 0!==C?(C.children.push(...m.children),c.add(C)):h.push(m)}for(const m of c){const C=ws(m.children);h.push(new ir(m.value,C))}return h.filter(m=>!c.has(m))}function No(f){let h=f;for(;h._sourceSegment;)h=h._sourceSegment;return h}function g(f){let h=f,c=h._segmentIndexShift??0;for(;h._sourceSegment;)h=h._sourceSegment,c+=h._segmentIndexShift??0;return c-1}function v(f){return f.data||{}}function R(f){return f.resolve||{}}function Nn(f){return"string"==typeof f.title||null===f.title}function pn(f){return(0,Ce.w)(h=>{const c=f(h);return c?(0,d.D)(c).pipe((0,Ee.U)(()=>h)):(0,P.of)(h)})}const tr=new s.OlP("ROUTES");let yi=(()=>{class f{constructor(c,m){this.injector=c,this.compiler=m,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(c){if(this.componentLoaders.get(c))return this.componentLoaders.get(c);if(c._loadedComponent)return(0,P.of)(c._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(c);const m=mn(c.loadComponent()).pipe((0,Ee.U)(Ei),(0,q.b)(L=>{this.onLoadEndListener&&this.onLoadEndListener(c),c._loadedComponent=L}),(0,Ot.x)(()=>{this.componentLoaders.delete(c)})),C=new Se(m,()=>new Ne.x).pipe(ze());return this.componentLoaders.set(c,C),C}loadChildren(c,m){if(this.childrenLoaders.get(m))return this.childrenLoaders.get(m);if(m._loadedRoutes)return(0,P.of)({routes:m._loadedRoutes,injector:m._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(m);const L=this.loadModuleFactoryOrRoutes(m.loadChildren).pipe((0,Ee.U)(Re=>{this.onLoadEndListener&&this.onLoadEndListener(m);let at,Tt,kt=!1;Array.isArray(Re)?Tt=Re:(at=Re.create(c).injector,Tt=rt(at.get(tr,[],s.XFs.Self|s.XFs.Optional)));return{routes:Tt.map(qr),injector:at}}),(0,Ot.x)(()=>{this.childrenLoaders.delete(m)})),V=new Se(L,()=>new Ne.x).pipe(ze());return this.childrenLoaders.set(m,V),V}loadModuleFactoryOrRoutes(c){return mn(c()).pipe((0,Ee.U)(Ei),(0,me.z)(C=>C instanceof s.YKP||Array.isArray(C)?(0,P.of)(C):(0,d.D)(this.compiler.compileModuleAsync(C))))}}return f.\u0275fac=function(c){return new(c||f)(s.LFG(s.zs3),s.LFG(s.Sil))},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Ei(f){return function ri(f){return f&&"object"==typeof f&&"default"in f}(f)?f.default:f}let ci=(()=>{class f{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Ne.x,this.configLoader=(0,s.f3M)(yi),this.environmentInjector=(0,s.f3M)(s.lqb),this.urlSerializer=(0,s.f3M)($t),this.rootContexts=(0,s.f3M)(Ln),this.navigationId=0,this.afterPreactivation=()=>(0,P.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=C=>this.events.next(new Wr(C)),this.configLoader.onLoadStartListener=C=>this.events.next(new Mi(C))}complete(){this.transitions?.complete()}handleNavigationRequest(c){const m=++this.navigationId;this.transitions?.next({...this.transitions.value,...c,id:m})}setupNavigations(c){return this.transitions=new Y.X({id:0,targetPageId:0,currentUrlTree:c.currentUrlTree,currentRawUrl:c.currentUrlTree,extractedUrl:c.urlHandlingStrategy.extract(c.currentUrlTree),urlAfterRedirects:c.urlHandlingStrategy.extract(c.currentUrlTree),rawUrl:c.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Rr,restoredState:null,currentSnapshot:c.routerState.snapshot,targetSnapshot:null,currentRouterState:c.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ce.h)(m=>0!==m.id),(0,Ee.U)(m=>({...m,extractedUrl:c.urlHandlingStrategy.extract(m.rawUrl)})),(0,Ce.w)(m=>{let C=!1,L=!1;return(0,P.of)(m).pipe((0,q.b)(V=>{this.currentNavigation={id:V.id,initialUrl:V.rawUrl,extractedUrl:V.extractedUrl,trigger:V.source,extras:V.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ce.w)(V=>{const Re=c.browserUrlTree.toString(),at=!c.navigated||V.extractedUrl.toString()!==Re||Re!==c.currentUrlTree.toString();if(!at&&"reload"!==(V.extras.onSameUrlNavigation??c.onSameUrlNavigation)){const kt="";return this.events.next(new Fr(V.id,c.serializeUrl(m.rawUrl),kt,0)),c.rawUrlTree=V.rawUrl,V.resolve(null),K.E}if(c.urlHandlingStrategy.shouldProcessUrl(V.rawUrl))return Eo(V.source)&&(c.browserUrlTree=V.extractedUrl),(0,P.of)(V).pipe((0,Ce.w)(kt=>{const Cn=this.transitions?.getValue();return this.events.next(new Mr(kt.id,this.urlSerializer.serialize(kt.extractedUrl),kt.source,kt.restoredState)),Cn!==this.transitions?.getValue()?K.E:Promise.resolve(kt)}),function Ns(f,h,c,m){return(0,Ce.w)(C=>function Go(f,h,c,m,C){return new ls(f,h,c,m,C).apply()}(f,h,c,C.extractedUrl,m).pipe((0,Ee.U)(L=>({...C,urlAfterRedirects:L}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,c.config),(0,q.b)(kt=>{this.currentNavigation={...this.currentNavigation,finalUrl:kt.urlAfterRedirects},m.urlAfterRedirects=kt.urlAfterRedirects}),function re(f,h,c,m,C){return(0,me.z)(L=>function or(f,h,c,m,C,L,V="emptyOnly"){return new Ko(f,h,c,m,C,V,L).recognize().pipe((0,Ce.w)(Re=>null===Re?function Gi(f){return new Z.y(h=>h.error(f))}(new yr):(0,P.of)(Re)))}(f,h,c,L.urlAfterRedirects,m.serialize(L.urlAfterRedirects),m,C).pipe((0,Ee.U)(V=>({...L,targetSnapshot:V}))))}(this.environmentInjector,this.rootComponentType,c.config,this.urlSerializer,c.paramsInheritanceStrategy),(0,q.b)(kt=>{if(m.targetSnapshot=kt.targetSnapshot,"eager"===c.urlUpdateStrategy){if(!kt.extras.skipLocationChange){const jr=c.urlHandlingStrategy.merge(kt.urlAfterRedirects,kt.rawUrl);c.setBrowserUrl(jr,kt)}c.browserUrlTree=kt.urlAfterRedirects}const Cn=new Ti(kt.id,this.urlSerializer.serialize(kt.extractedUrl),this.urlSerializer.serialize(kt.urlAfterRedirects),kt.targetSnapshot);this.events.next(Cn)}));if(at&&c.urlHandlingStrategy.shouldProcessUrl(c.rawUrlTree)){const{id:kt,extractedUrl:Cn,source:jr,restoredState:To,extras:Mo}=V,Ci=new Mr(kt,this.urlSerializer.serialize(Cn),jr,To);this.events.next(Ci);const Ki=lo(Cn,this.rootComponentType).snapshot;return m={...V,targetSnapshot:Ki,urlAfterRedirects:Cn,extras:{...Mo,skipLocationChange:!1,replaceUrl:!1}},(0,P.of)(m)}{const kt="";return this.events.next(new Fr(V.id,c.serializeUrl(m.extractedUrl),kt,1)),c.rawUrlTree=V.rawUrl,V.resolve(null),K.E}}),(0,q.b)(V=>{const Re=new pi(V.id,this.urlSerializer.serialize(V.extractedUrl),this.urlSerializer.serialize(V.urlAfterRedirects),V.targetSnapshot);this.events.next(Re)}),(0,Ee.U)(V=>m={...V,guards:mr(V.targetSnapshot,V.currentSnapshot,this.rootContexts)}),function Oo(f,h){return(0,me.z)(c=>{const{targetSnapshot:m,currentSnapshot:C,guards:{canActivateChecks:L,canDeactivateChecks:V}}=c;return 0===V.length&&0===L.length?(0,P.of)({...c,guardsResult:!0}):function Cr(f,h,c,m){return(0,d.D)(f).pipe((0,me.z)(C=>function Wo(f,h,c,m,C){const L=h&&h.routeConfig?h.routeConfig.canDeactivate:null;if(!L||0===L.length)return(0,P.of)(!0);const V=L.map(Re=>{const at=li(h)??C,Tt=mi(Re,at);return mn(function os(f){return f&&en(f.canDeactivate)}(Tt)?Tt.canDeactivate(f,h,c,m):at.runInContext(()=>Tt(f,h,c,m))).pipe((0,se.P)())});return(0,P.of)(V).pipe(Ji())}(C.component,C.route,c,h,m)),(0,se.P)(C=>!0!==C,!0))}(V,m,C,f).pipe((0,me.z)(Re=>Re&&function Io(f){return"boolean"==typeof f}(Re)?function Po(f,h,c,m){return(0,d.D)(h).pipe((0,ge.b)(C=>(0,ee.z)(function ti(f,h){return null!==f&&h&&h(new Xr(f)),(0,P.of)(!0)}(C.route.parent,m),function mo(f,h){return null!==f&&h&&h(new Si(f)),(0,P.of)(!0)}(C.route,m),function zo(f,h,c){const m=h[h.length-1],L=h.slice(0,h.length-1).reverse().map(V=>function rs(f){const h=f.routeConfig?f.routeConfig.canActivateChild:null;return h&&0!==h.length?{node:f,guards:h}:null}(V)).filter(V=>null!==V).map(V=>(0,J.P)(()=>{const Re=V.guards.map(at=>{const Tt=li(V.node)??c,kt=mi(at,Tt);return mn(function is(f){return f&&en(f.canActivateChild)}(kt)?kt.canActivateChild(m,f):Tt.runInContext(()=>kt(m,f))).pipe((0,se.P)())});return(0,P.of)(Re).pipe(Ji())}));return(0,P.of)(L).pipe(Ji())}(f,C.path,c),function Xi(f,h,c){const m=h.routeConfig?h.routeConfig.canActivate:null;if(!m||0===m.length)return(0,P.of)(!0);const C=m.map(L=>(0,J.P)(()=>{const V=li(h)??c,Re=mi(L,V);return mn(function go(f){return f&&en(f.canActivate)}(Re)?Re.canActivate(h,f):V.runInContext(()=>Re(h,f))).pipe((0,se.P)())}));return(0,P.of)(C).pipe(Ji())}(f,C.route,c))),(0,se.P)(C=>!0!==C,!0))}(m,L,f,h):(0,P.of)(Re)),(0,Ee.U)(Re=>({...c,guardsResult:Re})))})}(this.environmentInjector,V=>this.events.next(V)),(0,q.b)(V=>{if(m.guardsResult=V.guardsResult,$(V.guardsResult))throw Be(0,V.guardsResult);const Re=new Zi(V.id,this.urlSerializer.serialize(V.extractedUrl),this.urlSerializer.serialize(V.urlAfterRedirects),V.targetSnapshot,!!V.guardsResult);this.events.next(Re)}),(0,ce.h)(V=>!!V.guardsResult||(c.restoreHistory(V),this.cancelNavigationTransition(V,"",3),!1)),pn(V=>{if(V.guards.canActivateChecks.length)return(0,P.of)(V).pipe((0,q.b)(Re=>{const at=new Sr(Re.id,this.urlSerializer.serialize(Re.extractedUrl),this.urlSerializer.serialize(Re.urlAfterRedirects),Re.targetSnapshot);this.events.next(at)}),(0,Ce.w)(Re=>{let at=!1;return(0,P.of)(Re).pipe(function Ve(f,h){return(0,me.z)(c=>{const{targetSnapshot:m,guards:{canActivateChecks:C}}=c;if(!C.length)return(0,P.of)(c);let L=0;return(0,d.D)(C).pipe((0,ge.b)(V=>function Ze(f,h,c,m){const C=f.routeConfig,L=f._resolve;return void 0!==C?.title&&!Nn(C)&&(L[Le]=C.title),function wt(f,h,c,m){const C=function Fn(f){return[...Object.keys(f),...Object.getOwnPropertySymbols(f)]}(f);if(0===C.length)return(0,P.of)({});const L={};return(0,d.D)(C).pipe((0,me.z)(V=>function Sn(f,h,c,m){const C=li(h)??m,L=mi(f,C);return mn(L.resolve?L.resolve(h,c):C.runInContext(()=>L(h,c)))}(f[V],h,c,m).pipe((0,se.P)(),(0,q.b)(Re=>{L[V]=Re}))),_e(1),function Rt(f){return(0,Ee.U)(()=>f)}(L),(0,oe.K)(V=>Xe(V)?K.E:(0,H._)(V)))}(L,f,h,m).pipe((0,Ee.U)(V=>(f._resolvedData=V,f.data=co(f,c).resolve,C&&Nn(C)&&(f.data[Le]=C.title),null)))}(V.route,m,f,h)),(0,q.b)(()=>L++),_e(1),(0,me.z)(V=>L===C.length?(0,P.of)(c):K.E))})}(c.paramsInheritanceStrategy,this.environmentInjector),(0,q.b)({next:()=>at=!0,complete:()=>{at||(c.restoreHistory(Re),this.cancelNavigationTransition(Re,"",2))}}))}),(0,q.b)(Re=>{const at=new Gn(Re.id,this.urlSerializer.serialize(Re.extractedUrl),this.urlSerializer.serialize(Re.urlAfterRedirects),Re.targetSnapshot);this.events.next(at)}))}),pn(V=>{const Re=at=>{const Tt=[];at.routeConfig?.loadComponent&&!at.routeConfig._loadedComponent&&Tt.push(this.configLoader.loadComponent(at.routeConfig).pipe((0,q.b)(kt=>{at.component=kt}),(0,Ee.U)(()=>{})));for(const kt of at.children)Tt.push(...Re(kt));return Tt};return(0,G.a)(Re(V.targetSnapshot.root)).pipe((0,Je.d)(),(0,j.q)(1))}),pn(()=>this.afterPreactivation()),(0,Ee.U)(V=>{const Re=function ns(f,h,c){const m=Ii(f,h._root,c?c._root:void 0);return new gi(m,h)}(c.routeReuseStrategy,V.targetSnapshot,V.currentRouterState);return m={...V,targetRouterState:Re}}),(0,q.b)(V=>{c.currentUrlTree=V.urlAfterRedirects,c.rawUrlTree=c.urlHandlingStrategy.merge(V.urlAfterRedirects,V.rawUrl),c.routerState=V.targetRouterState,"deferred"===c.urlUpdateStrategy&&(V.extras.skipLocationChange||c.setBrowserUrl(c.rawUrlTree,V),c.browserUrlTree=V.urlAfterRedirects)}),((f,h,c)=>(0,Ee.U)(m=>(new Vo(h,m.targetRouterState,m.currentRouterState,c).activate(f),m)))(this.rootContexts,c.routeReuseStrategy,V=>this.events.next(V)),(0,q.b)({next:V=>{C=!0,this.lastSuccessfulNavigation=this.currentNavigation,c.navigated=!0,this.events.next(new hn(V.id,this.urlSerializer.serialize(V.extractedUrl),this.urlSerializer.serialize(c.currentUrlTree))),c.titleStrategy?.updateTitle(V.targetRouterState.snapshot),V.resolve(!0)},complete:()=>{C=!0}}),(0,Ot.x)(()=>{C||L||this.cancelNavigationTransition(m,"",1),this.currentNavigation?.id===m.id&&(this.currentNavigation=null)}),(0,oe.K)(V=>{if(L=!0,vt(V)){ft(V)||(c.navigated=!0,c.restoreHistory(m,!0));const Re=new zr(m.id,this.urlSerializer.serialize(m.extractedUrl),V.message,V.cancellationCode);if(this.events.next(Re),ft(V)){const at=c.urlHandlingStrategy.merge(V.url,c.rawUrlTree),Tt={skipLocationChange:m.extras.skipLocationChange,replaceUrl:"eager"===c.urlUpdateStrategy||Eo(m.source)};c.scheduleNavigation(at,Rr,null,Tt,{resolve:m.resolve,reject:m.reject,promise:m.promise})}else m.resolve(!1)}else{c.restoreHistory(m,!0);const Re=new rn(m.id,this.urlSerializer.serialize(m.extractedUrl),V,m.targetSnapshot??void 0);this.events.next(Re);try{m.resolve(c.errorHandler(V))}catch(at){m.reject(at)}}return K.E}))}))}cancelNavigationTransition(c,m,C){const L=new zr(c.id,this.urlSerializer.serialize(c.extractedUrl),m,C);this.events.next(L),c.resolve(!1)}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Eo(f){return f!==Rr}let ro=(()=>{class f{buildTitle(c){let m,C=c.root;for(;void 0!==C;)m=this.getResolvedTitleForRoute(C)??m,C=C.children.find(L=>L.outlet===he);return m}getResolvedTitleForRoute(c){return c.data[Le]}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:function(){return(0,s.f3M)(Ts)},providedIn:"root"}),f})(),Ts=(()=>{class f extends ro{constructor(c){super(),this.title=c}updateTitle(c){const m=this.buildTitle(c);void 0!==m&&this.title.setTitle(m)}}return f.\u0275fac=function(c){return new(c||f)(s.LFG(it.Dx))},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),Yo=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:function(){return(0,s.f3M)(cs)},providedIn:"root"}),f})();class Zo{shouldDetach(h){return!1}store(h,c){}shouldAttach(h){return!1}retrieve(h){return null}shouldReuseRoute(h,c){return h.routeConfig===c.routeConfig}}let cs=(()=>{class f extends Zo{}return f.\u0275fac=function(){let h;return function(m){return(h||(h=s.n5z(f)))(m||f)}}(),f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const Qo=new s.OlP("",{providedIn:"root",factory:()=>({})});let io=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:function(){return(0,s.f3M)($s)},providedIn:"root"}),f})(),$s=(()=>{class f{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,m){return c}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Vs(f){throw f}function Do(f,h,c){return h.parse("/")}const Jo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ms={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let kr=(()=>{class f{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,s.f3M)(s.c2e),this.isNgZoneEnabled=!1,this.options=(0,s.f3M)(Qo,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Vs,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Do,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,s.f3M)(io),this.routeReuseStrategy=(0,s.f3M)(Yo),this.urlCreationStrategy=(0,s.f3M)(lr),this.titleStrategy=(0,s.f3M)(ro),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=rt((0,s.f3M)(tr,{optional:!0})??[]),this.navigationTransitions=(0,s.f3M)(ci),this.urlSerializer=(0,s.f3M)($t),this.location=(0,s.f3M)(Pe.Ye),this.isNgZoneEnabled=(0,s.f3M)(s.R0b)instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new gt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lo(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(c=>{this.lastSuccessfulId=c.id,this.currentPageId=c.targetPageId},c=>{this.console.warn(`Unhandled Navigation Error: ${c}`)})}resetRootComponentType(c){this.routerState.root.component=c,this.navigationTransitions.rootComponentType=c}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const c=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Rr,c)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(c=>{const m="popstate"===c.type?"popstate":"hashchange";"popstate"===m&&setTimeout(()=>{this.navigateToSyncWithBrowser(c.url,m,c.state)},0)}))}navigateToSyncWithBrowser(c,m,C){const L={replaceUrl:!0},V=C?.navigationId?C:null;if(C){const at={...C};delete at.navigationId,delete at.\u0275routerPageId,0!==Object.keys(at).length&&(L.state=at)}const Re=this.parseUrl(c);this.scheduleNavigation(Re,m,V,L)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(c){this.config=c.map(qr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(c,m={}){const{relativeTo:C,queryParams:L,fragment:V,queryParamsHandling:Re,preserveFragment:at}=m,Tt=at?this.currentUrlTree.fragment:V;let kt=null;switch(Re){case"merge":kt={...this.currentUrlTree.queryParams,...L};break;case"preserve":kt=this.currentUrlTree.queryParams;break;default:kt=L||null}return null!==kt&&(kt=this.removeEmptyProps(kt)),this.urlCreationStrategy.createUrlTree(C,this.routerState,this.currentUrlTree,c,kt,Tt??null)}navigateByUrl(c,m={skipLocationChange:!1}){const C=$(c)?c:this.parseUrl(c),L=this.urlHandlingStrategy.merge(C,this.rawUrlTree);return this.scheduleNavigation(L,Rr,null,m)}navigate(c,m={skipLocationChange:!1}){return function oo(f){for(let h=0;h<f.length;h++){if(null==f[h])throw new s.vHH(4008,!1)}}(c),this.navigateByUrl(this.createUrlTree(c,m),m)}serializeUrl(c){return this.urlSerializer.serialize(c)}parseUrl(c){let m;try{m=this.urlSerializer.parse(c)}catch(C){m=this.malformedUriErrorHandler(C,this.urlSerializer,c)}return m}isActive(c,m){let C;if(C=!0===m?{...Jo}:!1===m?{...Ms}:m,$(c))return an(this.currentUrlTree,c,C);const L=this.parseUrl(c);return an(this.currentUrlTree,L,C)}removeEmptyProps(c){return Object.keys(c).reduce((m,C)=>{const L=c[C];return null!=L&&(m[C]=L),m},{})}scheduleNavigation(c,m,C,L,V){if(this.disposed)return Promise.resolve(!1);let Re,at,Tt,kt;return V?(Re=V.resolve,at=V.reject,Tt=V.promise):Tt=new Promise((Cn,jr)=>{Re=Cn,at=jr}),kt="computed"===this.canceledNavigationResolution?C&&C.\u0275routerPageId?C.\u0275routerPageId:L.replaceUrl||L.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:kt,source:m,restoredState:C,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:c,extras:L,resolve:Re,reject:at,promise:Tt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Tt.catch(Cn=>Promise.reject(Cn))}setBrowserUrl(c,m){const C=this.urlSerializer.serialize(c),L={...m.extras.state,...this.generateNgRouterState(m.id,m.targetPageId)};this.location.isCurrentPathEqualTo(C)||m.extras.replaceUrl?this.location.replaceState(C,"",L):this.location.go(C,"",L)}restoreHistory(c,m=!1){if("computed"===this.canceledNavigationResolution){const C=this.currentPageId-c.targetPageId;"popstate"!==c.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===C?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===C&&(this.resetState(c),this.browserUrlTree=c.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(C)}else"replace"===this.canceledNavigationResolution&&(m&&this.resetState(c),this.resetUrlToCurrentUrlTree())}resetState(c){this.routerState=c.currentRouterState,this.currentUrlTree=c.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,c.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(c,m){return"computed"===this.canceledNavigationResolution?{navigationId:c,\u0275routerPageId:m}:{navigationId:c}}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),D=(()=>{class f{constructor(c,m,C,L,V,Re){this.router=c,this.route=m,this.tabIndexAttribute=C,this.renderer=L,this.el=V,this.locationStrategy=Re,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Ne.x;const at=V.nativeElement.tagName;this.isAnchorElement="A"===at||"AREA"===at,this.isAnchorElement?this.subscription=c.events.subscribe(Tt=>{Tt instanceof hn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(c){this._preserveFragment=(0,s.D6c)(c)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(c){this._skipLocationChange=(0,s.D6c)(c)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(c){this._replaceUrl=(0,s.D6c)(c)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(c){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",c)}ngOnChanges(c){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(c){null!=c?(this.commands=Array.isArray(c)?c:[c],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(c,m,C,L,V){return!!(null===this.urlTree||this.isAnchorElement&&(0!==c||m||C||L||V||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const c=null===this.href?null:(0,s.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",c)}applyAttributeValue(c,m){const C=this.renderer,L=this.el.nativeElement;null!==m?C.setAttribute(L,c,m):C.removeAttribute(L,c)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return f.\u0275fac=function(c){return new(c||f)(s.Y36(kr),s.Y36(xi),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(Pe.S$))},f.\u0275dir=s.lG2({type:f,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(c,m){1&c&&s.NdJ("click",function(L){return m.onClick(L.button,L.ctrlKey,L.shiftKey,L.altKey,L.metaKey)}),2&c&&s.uIk("target",m.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[s.TTD]}),f})(),a=(()=>{class f{get isActive(){return this._isActive}constructor(c,m,C,L,V){this.router=c,this.element=m,this.renderer=C,this.cdr=L,this.link=V,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new s.vpe,this.routerEventsSubscription=c.events.subscribe(Re=>{Re instanceof hn&&this.update()})}ngAfterContentInit(){(0,P.of)(this.links.changes,(0,P.of)(null)).pipe((0,Ue.J)()).subscribe(c=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const c=[...this.links.toArray(),this.link].filter(m=>!!m).map(m=>m.onChanges);this.linkInputChangesSubscription=(0,d.D)(c).pipe((0,Ue.J)()).subscribe(m=>{this._isActive!==this.isLinkActive(this.router)(m)&&this.update()})}set routerLinkActive(c){const m=Array.isArray(c)?c:c.split(" ");this.classes=m.filter(C=>!!C)}ngOnChanges(c){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const c=this.hasActiveLinks();this._isActive!==c&&(this._isActive=c,this.cdr.markForCheck(),this.classes.forEach(m=>{c?this.renderer.addClass(this.element.nativeElement,m):this.renderer.removeClass(this.element.nativeElement,m)}),c&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(c))})}isLinkActive(c){const m=function l(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return C=>!!C.urlTree&&c.isActive(C.urlTree,m)}hasActiveLinks(){const c=this.isLinkActive(this.router);return this.link&&c(this.link)||this.links.some(c)}}return f.\u0275fac=function(c){return new(c||f)(s.Y36(kr),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.sBO),s.Y36(D,8))},f.\u0275dir=s.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(c,m,C){if(1&c&&s.Suo(C,D,5),2&c){let L;s.iGM(L=s.CRH())&&(m.links=L)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[s.TTD]}),f})();class y{}let fe=(()=>{class f{constructor(c,m,C,L,V){this.router=c,this.injector=C,this.preloadingStrategy=L,this.loader=V}setUpPreloading(){this.subscription=this.router.events.pipe((0,ce.h)(c=>c instanceof hn),(0,ge.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(c,m){const C=[];for(const L of m){L.providers&&!L._injector&&(L._injector=(0,s.MMx)(L.providers,c,`Route: ${L.path}`));const V=L._injector??c,Re=L._loadedInjector??V;L.loadChildren&&!L._loadedRoutes&&void 0===L.canLoad||L.loadComponent&&!L._loadedComponent?C.push(this.preloadConfig(V,L)):(L.children||L._loadedRoutes)&&C.push(this.processRoutes(Re,L.children??L._loadedRoutes))}return(0,d.D)(C).pipe((0,Ue.J)())}preloadConfig(c,m){return this.preloadingStrategy.preload(m,()=>{let C;C=m.loadChildren&&void 0===m.canLoad?this.loader.loadChildren(c,m):(0,P.of)(null);const L=C.pipe((0,me.z)(V=>null===V?(0,P.of)(void 0):(m._loadedRoutes=V.routes,m._loadedInjector=V.injector,this.processRoutes(V.injector??c,V.routes))));if(m.loadComponent&&!m._loadedComponent){const V=this.loader.loadComponent(m);return(0,d.D)([L,V]).pipe((0,Ue.J)())}return L})}}return f.\u0275fac=function(c){return new(c||f)(s.LFG(kr),s.LFG(s.Sil),s.LFG(s.lqb),s.LFG(y),s.LFG(yi))},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const ue=new s.OlP("");let je=(()=>{class f{constructor(c,m,C,L,V={}){this.urlSerializer=c,this.transitions=m,this.viewportScroller=C,this.zone=L,this.options=V,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},V.scrollPositionRestoration=V.scrollPositionRestoration||"disabled",V.anchorScrolling=V.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(c=>{c instanceof Mr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=c.navigationTrigger,this.restoredId=c.restoredState?c.restoredState.navigationId:0):c instanceof hn&&(this.lastId=c.id,this.scheduleScrollEvent(c,this.urlSerializer.parse(c.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(c=>{c instanceof Kr&&(c.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(c.position):c.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(c.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(c,m){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Kr(c,"popstate"===this.lastSource?this.store[this.restoredId]:null,m))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return f.\u0275fac=function(c){s.$Z()},f.\u0275prov=s.Yz7({token:f,factory:f.\u0275fac}),f})();function fn(f,h){return{\u0275kind:f,\u0275providers:h}}function zn(){const f=(0,s.f3M)(s.zs3);return h=>{const c=f.get(s.z2F);if(h!==c.components[0])return;const m=f.get(kr),C=f.get(Jn);1===f.get(hr)&&m.initialNavigation(),f.get(br,null,s.XFs.Optional)?.setUpPreloading(),f.get(ue,null,s.XFs.Optional)?.init(),m.resetRootComponentType(c.componentTypes[0]),C.closed||(C.next(),C.unsubscribe())}}const Jn=new s.OlP("",{factory:()=>new Ne.x}),hr=new s.OlP("",{providedIn:"root",factory:()=>1});const br=new s.OlP("");function so(f){return fn(0,[{provide:br,useExisting:fe},{provide:y,useExisting:f}])}const wo=new s.OlP("ROUTER_FORROOT_GUARD"),zs=[Pe.Ye,{provide:$t,useClass:Nt},kr,Ln,{provide:xi,useFactory:function St(f){return f.routerState.root},deps:[kr]},yi,[]];function Ws(){return new s.PXZ("Router",kr)}let Ht=(()=>{class f{constructor(c){}static forRoot(c,m){return{ngModule:f,providers:[zs,[],{provide:tr,multi:!0,useValue:c},{provide:wo,useFactory:Lr,deps:[[kr,new s.FiY,new s.tp0]]},{provide:Qo,useValue:m||{}},m?.useHash?{provide:Pe.S$,useClass:Pe.Do}:{provide:Pe.S$,useClass:Pe.b0},{provide:ue,useFactory:()=>{const f=(0,s.f3M)(Pe.EM),h=(0,s.f3M)(s.R0b),c=(0,s.f3M)(Qo),m=(0,s.f3M)(ci),C=(0,s.f3M)($t);return c.scrollOffset&&f.setOffset(c.scrollOffset),new je(C,m,f,h,c)}},m?.preloadingStrategy?so(m.preloadingStrategy).\u0275providers:[],{provide:s.PXZ,multi:!0,useFactory:Ws},m?.initialNavigation?Wn(m):[],[{provide:Hr,useFactory:zn},{provide:s.tb,multi:!0,useExisting:Hr}]]}}static forChild(c){return{ngModule:f,providers:[{provide:tr,multi:!0,useValue:c}]}}}return f.\u0275fac=function(c){return new(c||f)(s.LFG(wo,8))},f.\u0275mod=s.oAB({type:f}),f.\u0275inj=s.cJS({imports:[ii]}),f})();function Lr(f){return"guarded"}function Wn(f){return["disabled"===f.initialNavigation?fn(3,[{provide:s.ip1,multi:!0,useFactory:()=>{const h=(0,s.f3M)(kr);return()=>{h.setUpLocationChangeListener()}}},{provide:hr,useValue:2}]).\u0275providers:[],"enabledBlocking"===f.initialNavigation?fn(2,[{provide:hr,useValue:0},{provide:s.ip1,multi:!0,deps:[s.zs3],useFactory:h=>{const c=h.get(Pe.V_,Promise.resolve());return()=>c.then(()=>new Promise(C=>{const L=h.get(kr),V=h.get(Jn);(function m(C){h.get(kr).events.pipe((0,ce.h)(V=>V instanceof hn||V instanceof zr||V instanceof rn),(0,Ee.U)(V=>V instanceof hn||V instanceof zr&&(0===V.code||1===V.code)&&null),(0,ce.h)(V=>null!==V),(0,j.q)(1)).subscribe(()=>{C()})})(()=>{C(!0)}),h.get(ci).afterPreactivation=()=>(C(!0),V.closed?(0,P.of)(void 0):V),L.initialNavigation()}))}}]).\u0275providers:[]]}const Hr=new s.OlP("")},3942:(st,ye,_)=>{_.d(ye,{Z:()=>ke});var s=_(2090),d=_(4859),P=_(9681),Y=_(1877);class W{constructor(Se,Ne){this._delegate=Se,this.firebase=Ne,(0,P._addComponent)(Se,new d.wA("app-compat",()=>this,"PUBLIC")),this.container=Se.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Se){this._delegate.automaticDataCollectionEnabled=Se}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Se=>{this._delegate.checkDestroyed(),Se()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,P.deleteApp)(this._delegate)))}_getService(Se,Ne=P._DEFAULT_ENTRY_NAME){var Pe;this._delegate.checkDestroyed();const Ee=this._delegate.container.getProvider(Se);return!Ee.isInitialized()&&"EXPLICIT"===(null===(Pe=Ee.getComponent())||void 0===Pe?void 0:Pe.instantiationMode)&&Ee.initialize(),Ee.getImmediate({identifier:Ne})}_removeServiceInstance(Se,Ne=P._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Se).clearInstance(Ne)}_addComponent(Se){(0,P._addComponent)(this._delegate,Se)}_addOrOverwriteComponent(Se){(0,P._addOrOverwriteComponent)(this._delegate,Se)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const ee=new s.LL("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),H=function X(){const ze=function J(ze){const Se={},Ne={__esModule:!0,initializeApp:function Ce(me,se={}){const ge=P.initializeApp(me,se);if((0,s.r3)(Se,ge.name))return Se[ge.name];const q=new ze(ge,Ne);return Se[ge.name]=q,q},app:Ee,registerVersion:P.registerVersion,setLogLevel:P.setLogLevel,onLog:P.onLog,apps:null,SDK_VERSION:P.SDK_VERSION,INTERNAL:{registerComponent:function le(me){const se=me.name,ge=se.replace("-compat","");if(P._registerComponent(me)&&"PUBLIC"===me.type){const q=(oe=Ee())=>{if("function"!=typeof oe[ge])throw ee.create("invalid-app-argument",{appName:se});return oe[ge]()};void 0!==me.serviceProps&&(0,s.ZB)(q,me.serviceProps),Ne[ge]=q,ze.prototype[ge]=function(...oe){return this._getService.bind(this,se).apply(this,me.multipleInstances?oe:[])}}return"PUBLIC"===me.type?Ne[ge]:null},removeApp:function Pe(me){delete Se[me]},useAsService:function ce(me,se){return"serverAuth"===se?null:se},modularAPIs:P}};function Ee(me){if(!(0,s.r3)(Se,me=me||P._DEFAULT_ENTRY_NAME))throw ee.create("no-app",{appName:me});return Se[me]}return Ne.default=Ne,Object.defineProperty(Ne,"apps",{get:function j(){return Object.keys(Se).map(me=>Se[me])}}),Ee.App=ze,Ne}(W);return ze.INTERNAL=Object.assign(Object.assign({},ze.INTERNAL),{createFirebaseNamespace:X,extendNamespace:function Se(Ne){(0,s.ZB)(ze,Ne)},createSubscribe:s.ne,ErrorFactory:s.LL,deepExtend:s.ZB}),ze}(),Z=new Y.Yd("@firebase/app-compat");if((0,s.jU)()&&void 0!==self.firebase){Z.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const ze=self.firebase.SDK_VERSION;ze&&ze.indexOf("LITE")>=0&&Z.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const ke=H;!function ve(ze){(0,P.registerVersion)("@firebase/app-compat","0.1.37",ze)}()},9681:(st,ye,_)=>{_.r(ye),_.d(ye,{FirebaseError:()=>Y.ZR,SDK_VERSION:()=>rt,_DEFAULT_ENTRY_NAME:()=>Qt,_addComponent:()=>it,_addOrOverwriteComponent:()=>he,_apps:()=>Ot,_clearComponents:()=>Ye,_components:()=>Ue,_getProvider:()=>ct,_registerComponent:()=>Le,_removeServiceInstance:()=>jt,deleteApp:()=>mn,getApp:()=>Dt,getApps:()=>Pt,initializeApp:()=>Mt,onLog:()=>lt,registerVersion:()=>_n,setLogLevel:()=>an});var s=_(5861),d=_(4859),P=_(1877),Y=_(2090),W=_(8766);class G{constructor(ie){this.container=ie}getPlatformInfoString(){return this.container.getProviders().map(N=>{if(function ee(ht){return"VERSION"===ht.getComponent()?.type}(N)){const M=N.getImmediate();return`${M.library}/${M.version}`}return null}).filter(N=>N).join(" ")}}const J="@firebase/app",X="0.8.2",H=new P.Yd("@firebase/app"),Qt="[DEFAULT]",Rt={[J]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Ot=new Map,Ue=new Map;function it(ht,ie){try{ht.container.addComponent(ie)}catch(N){H.debug(`Component ${ie.name} failed to register with FirebaseApp ${ht.name}`,N)}}function he(ht,ie){ht.container.addOrOverwriteComponent(ie)}function Le(ht){const ie=ht.name;if(Ue.has(ie))return H.debug(`There were multiple attempts to register component ${ie}.`),!1;Ue.set(ie,ht);for(const N of Ot.values())it(N,ht);return!0}function ct(ht,ie){const N=ht.container.getProvider("heartbeat").getImmediate({optional:!0});return N&&N.triggerHeartbeat(),ht.container.getProvider(ie)}function jt(ht,ie,N=Qt){ct(ht,ie).clearInstance(N)}function Ye(){Ue.clear()}const ne=new Y.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class Qe{constructor(ie,N,M){this._isDeleted=!1,this._options=Object.assign({},ie),this._config=Object.assign({},N),this._name=N.name,this._automaticDataCollectionEnabled=N.automaticDataCollectionEnabled,this._container=M,this.container.addComponent(new d.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ie){this.checkDestroyed(),this._automaticDataCollectionEnabled=ie}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ie){this._isDeleted=ie}checkDestroyed(){if(this.isDeleted)throw ne.create("app-deleted",{appName:this._name})}}const rt="9.12.1";function Mt(ht,ie={}){let N=ht;"object"!=typeof ie&&(ie={name:ie});const M=Object.assign({name:Qt,automaticDataCollectionEnabled:!1},ie),F=M.name;if("string"!=typeof F||!F)throw ne.create("bad-app-name",{appName:String(F)});if(N||(N=(0,Y.aH)()),!N)throw ne.create("no-options");const we=Ot.get(F);if(we){if((0,Y.vZ)(N,we.options)&&(0,Y.vZ)(M,we.config))return we;throw ne.create("duplicate-app",{appName:F})}const B=new d.H0(F);for(const pe of Ue.values())B.addComponent(pe);const Q=new Qe(N,M,B);return Ot.set(F,Q),Q}function Dt(ht=Qt){const ie=Ot.get(ht);if(!ie&&ht===Qt)return Mt();if(!ie)throw ne.create("no-app",{appName:ht});return ie}function Pt(){return Array.from(Ot.values())}function mn(ht){return qt.apply(this,arguments)}function qt(){return(qt=(0,s.Z)(function*(ht){const ie=ht.name;Ot.has(ie)&&(Ot.delete(ie),yield Promise.all(ht.container.getProviders().map(N=>N.delete())),ht.isDeleted=!0)})).apply(this,arguments)}function _n(ht,ie,N){var M;let F=null!==(M=Rt[ht])&&void 0!==M?M:ht;N&&(F+=`-${N}`);const we=F.match(/\s|\//),B=ie.match(/\s|\//);if(we||B){const Q=[`Unable to register library "${F}" with version "${ie}":`];return we&&Q.push(`library name "${F}" contains illegal characters (whitespace or "/")`),we&&B&&Q.push("and"),B&&Q.push(`version name "${ie}" contains illegal characters (whitespace or "/")`),void H.warn(Q.join(" "))}Le(new d.wA(`${F}-version`,()=>({library:F,version:ie}),"VERSION"))}function lt(ht,ie){if(null!==ht&&"function"!=typeof ht)throw ne.create("invalid-log-argument");(0,P.Am)(ht,ie)}function an(ht){(0,P.Ub)(ht)}const wn="firebase-heartbeat-store";let Hn=null;function Bt(){return Hn||(Hn=(0,W.X3)("firebase-heartbeat-database",1,{upgrade:(ht,ie)=>{0===ie&&ht.createObjectStore(wn)}}).catch(ht=>{throw ne.create("idb-open",{originalErrorMessage:ht.message})})),Hn}function gt(){return(gt=(0,s.Z)(function*(ht){var ie;try{return(yield Bt()).transaction(wn).objectStore(wn).get(yt(ht))}catch(N){if(N instanceof Y.ZR)H.warn(N.message);else{const M=ne.create("idb-get",{originalErrorMessage:null===(ie=N)||void 0===ie?void 0:ie.message});H.warn(M.message)}}})).apply(this,arguments)}function Lt(ht,ie){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,s.Z)(function*(ht,ie){var N;try{const F=(yield Bt()).transaction(wn,"readwrite");return yield F.objectStore(wn).put(ie,yt(ht)),F.done}catch(M){if(M instanceof Y.ZR)H.warn(M.message);else{const F=ne.create("idb-set",{originalErrorMessage:null===(N=M)||void 0===N?void 0:N.message});H.warn(F.message)}}})).apply(this,arguments)}function yt(ht){return`${ht.name}!${ht.options.appId}`}class $t{constructor(ie){this.container=ie,this._heartbeatsCache=null;const N=this.container.getProvider("app").getImmediate();this._storage=new Ut(N),this._heartbeatsCachePromise=this._storage.read().then(M=>(this._heartbeatsCache=M,M))}triggerHeartbeat(){var ie=this;return(0,s.Z)(function*(){const M=ie.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),F=Nt();if(null===ie._heartbeatsCache&&(ie._heartbeatsCache=yield ie._heartbeatsCachePromise),ie._heartbeatsCache.lastSentHeartbeatDate!==F&&!ie._heartbeatsCache.heartbeats.some(we=>we.date===F))return ie._heartbeatsCache.heartbeats.push({date:F,agent:M}),ie._heartbeatsCache.heartbeats=ie._heartbeatsCache.heartbeats.filter(we=>{const B=new Date(we.date).valueOf();return Date.now()-B<=2592e6}),ie._storage.overwrite(ie._heartbeatsCache)})()}getHeartbeatsHeader(){var ie=this;return(0,s.Z)(function*(){if(null===ie._heartbeatsCache&&(yield ie._heartbeatsCachePromise),null===ie._heartbeatsCache||0===ie._heartbeatsCache.heartbeats.length)return"";const N=Nt(),{heartbeatsToSend:M,unsentEntries:F}=function Kn(ht,ie=1024){const N=[];let M=ht.slice();for(const F of ht){const we=N.find(B=>B.agent===F.agent);if(we){if(we.dates.push(F.date),An(N)>ie){we.dates.pop();break}}else if(N.push({agent:F.agent,dates:[F.date]}),An(N)>ie){N.pop();break}M=M.slice(1)}return{heartbeatsToSend:N,unsentEntries:M}}(ie._heartbeatsCache.heartbeats),we=(0,Y.L)(JSON.stringify({version:2,heartbeats:M}));return ie._heartbeatsCache.lastSentHeartbeatDate=N,F.length>0?(ie._heartbeatsCache.heartbeats=F,yield ie._storage.overwrite(ie._heartbeatsCache)):(ie._heartbeatsCache.heartbeats=[],ie._storage.overwrite(ie._heartbeatsCache)),we})()}}function Nt(){return(new Date).toISOString().substring(0,10)}class Ut{constructor(ie){this.app=ie,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,s.Z)(function*(){return!!(0,Y.hl)()&&(0,Y.eu)().then(()=>!0).catch(()=>!1)})()}read(){var ie=this;return(0,s.Z)(function*(){return(yield ie._canUseIndexedDBPromise)&&(yield function Ft(ht){return gt.apply(this,arguments)}(ie.app))||{heartbeats:[]}})()}overwrite(ie){var N=this;return(0,s.Z)(function*(){var M;if(yield N._canUseIndexedDBPromise){const we=yield N.read();return Lt(N.app,{lastSentHeartbeatDate:null!==(M=ie.lastSentHeartbeatDate)&&void 0!==M?M:we.lastSentHeartbeatDate,heartbeats:ie.heartbeats})}})()}add(ie){var N=this;return(0,s.Z)(function*(){var M;if(yield N._canUseIndexedDBPromise){const we=yield N.read();return Lt(N.app,{lastSentHeartbeatDate:null!==(M=ie.lastSentHeartbeatDate)&&void 0!==M?M:we.lastSentHeartbeatDate,heartbeats:[...we.heartbeats,...ie.heartbeats]})}})()}}function An(ht){return(0,Y.L)(JSON.stringify({version:2,heartbeats:ht})).length}!function Yn(ht){Le(new d.wA("platform-logger",ie=>new G(ie),"PRIVATE")),Le(new d.wA("heartbeat",ie=>new $t(ie),"PRIVATE")),_n(J,X,ht),_n(J,X,"esm2017"),_n("fire-js","")}("")},4859:(st,ye,_)=>{_.d(ye,{H0:()=>J,wA:()=>P});var s=_(5861),d=_(2090);class P{constructor(H,Z,K){this.name=H,this.instanceFactory=Z,this.type=K,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(H){return this.instantiationMode=H,this}setMultipleInstances(H){return this.multipleInstances=H,this}setServiceProps(H){return this.serviceProps=H,this}setInstanceCreatedCallback(H){return this.onInstanceCreated=H,this}}const Y="[DEFAULT]";class W{constructor(H,Z){this.name=H,this.container=Z,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(H){const Z=this.normalizeInstanceIdentifier(H);if(!this.instancesDeferred.has(Z)){const K=new d.BH;if(this.instancesDeferred.set(Z,K),this.isInitialized(Z)||this.shouldAutoInitialize())try{const Ie=this.getOrInitializeService({instanceIdentifier:Z});Ie&&K.resolve(Ie)}catch{}}return this.instancesDeferred.get(Z).promise}getImmediate(H){var Z;const K=this.normalizeInstanceIdentifier(H?.identifier),Ie=null!==(Z=H?.optional)&&void 0!==Z&&Z;if(!this.isInitialized(K)&&!this.shouldAutoInitialize()){if(Ie)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:K})}catch(ve){if(Ie)return null;throw ve}}getComponent(){return this.component}setComponent(H){if(H.name!==this.name)throw Error(`Mismatching Component ${H.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=H,this.shouldAutoInitialize()){if(function ee(X){return"EAGER"===X.instantiationMode}(H))try{this.getOrInitializeService({instanceIdentifier:Y})}catch{}for(const[Z,K]of this.instancesDeferred.entries()){const Ie=this.normalizeInstanceIdentifier(Z);try{const ve=this.getOrInitializeService({instanceIdentifier:Ie});K.resolve(ve)}catch{}}}}clearInstance(H=Y){this.instancesDeferred.delete(H),this.instancesOptions.delete(H),this.instances.delete(H)}delete(){var H=this;return(0,s.Z)(function*(){const Z=Array.from(H.instances.values());yield Promise.all([...Z.filter(K=>"INTERNAL"in K).map(K=>K.INTERNAL.delete()),...Z.filter(K=>"_delete"in K).map(K=>K._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(H=Y){return this.instances.has(H)}getOptions(H=Y){return this.instancesOptions.get(H)||{}}initialize(H={}){const{options:Z={}}=H,K=this.normalizeInstanceIdentifier(H.instanceIdentifier);if(this.isInitialized(K))throw Error(`${this.name}(${K}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ie=this.getOrInitializeService({instanceIdentifier:K,options:Z});for(const[ve,ke]of this.instancesDeferred.entries())K===this.normalizeInstanceIdentifier(ve)&&ke.resolve(Ie);return Ie}onInit(H,Z){var K;const Ie=this.normalizeInstanceIdentifier(Z),ve=null!==(K=this.onInitCallbacks.get(Ie))&&void 0!==K?K:new Set;ve.add(H),this.onInitCallbacks.set(Ie,ve);const ke=this.instances.get(Ie);return ke&&H(ke,Ie),()=>{ve.delete(H)}}invokeOnInitCallbacks(H,Z){const K=this.onInitCallbacks.get(Z);if(K)for(const Ie of K)try{Ie(H,Z)}catch{}}getOrInitializeService({instanceIdentifier:H,options:Z={}}){let K=this.instances.get(H);if(!K&&this.component&&(K=this.component.instanceFactory(this.container,{instanceIdentifier:(X=H,X===Y?void 0:X),options:Z}),this.instances.set(H,K),this.instancesOptions.set(H,Z),this.invokeOnInitCallbacks(K,H),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,H,K)}catch{}var X;return K||null}normalizeInstanceIdentifier(H=Y){return this.component?this.component.multipleInstances?H:Y:H}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class J{constructor(H){this.name=H,this.providers=new Map}addComponent(H){const Z=this.getProvider(H.name);if(Z.isComponentSet())throw new Error(`Component ${H.name} has already been registered with ${this.name}`);Z.setComponent(H)}addOrOverwriteComponent(H){this.getProvider(H.name).isComponentSet()&&this.providers.delete(H.name),this.addComponent(H)}getProvider(H){if(this.providers.has(H))return this.providers.get(H);const Z=new W(H,this);return this.providers.set(H,Z),Z}getProviders(){return Array.from(this.providers.values())}}},1877:(st,ye,_)=>{_.d(ye,{Am:()=>X,Ub:()=>J,Yd:()=>ee,in:()=>d});const s=[];var d=(()=>{return(H=d||(d={}))[H.DEBUG=0]="DEBUG",H[H.VERBOSE=1]="VERBOSE",H[H.INFO=2]="INFO",H[H.WARN=3]="WARN",H[H.ERROR=4]="ERROR",H[H.SILENT=5]="SILENT",d;var H})();const P={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Y=d.INFO,W={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},G=(H,Z,...K)=>{if(Z<H.logLevel)return;const Ie=(new Date).toISOString(),ve=W[Z];if(!ve)throw new Error(`Attempted to log a message with an invalid logType (value: ${Z})`);console[ve](`[${Ie}] ${H.name}:`,...K)};class ee{constructor(Z){this.name=Z,this._logLevel=Y,this._logHandler=G,this._userLogHandler=null,s.push(this)}get logLevel(){return this._logLevel}set logLevel(Z){if(!(Z in d))throw new TypeError(`Invalid value "${Z}" assigned to \`logLevel\``);this._logLevel=Z}setLogLevel(Z){this._logLevel="string"==typeof Z?P[Z]:Z}get logHandler(){return this._logHandler}set logHandler(Z){if("function"!=typeof Z)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=Z}get userLogHandler(){return this._userLogHandler}set userLogHandler(Z){this._userLogHandler=Z}debug(...Z){this._userLogHandler&&this._userLogHandler(this,d.DEBUG,...Z),this._logHandler(this,d.DEBUG,...Z)}log(...Z){this._userLogHandler&&this._userLogHandler(this,d.VERBOSE,...Z),this._logHandler(this,d.VERBOSE,...Z)}info(...Z){this._userLogHandler&&this._userLogHandler(this,d.INFO,...Z),this._logHandler(this,d.INFO,...Z)}warn(...Z){this._userLogHandler&&this._userLogHandler(this,d.WARN,...Z),this._logHandler(this,d.WARN,...Z)}error(...Z){this._userLogHandler&&this._userLogHandler(this,d.ERROR,...Z),this._logHandler(this,d.ERROR,...Z)}}function J(H){s.forEach(Z=>{Z.setLogLevel(H)})}function X(H,Z){for(const K of s){let Ie=null;Z&&Z.level&&(Ie=P[Z.level]),K.userLogHandler=null===H?null:(ve,ke,...ze)=>{const Se=ze.map(Ne=>{if(null==Ne)return null;if("string"==typeof Ne)return Ne;if("number"==typeof Ne||"boolean"==typeof Ne)return Ne.toString();if(Ne instanceof Error)return Ne.message;try{return JSON.stringify(Ne)}catch{return null}}).filter(Ne=>Ne).join(" ");ke>=(Ie??ve.logLevel)&&H({level:d[ke].toLowerCase(),message:Se,args:ze,type:ve.name})}}}},8766:(st,ye,_)=>{_.d(ye,{Lj:()=>Ce,X3:()=>Ee});var s=_(5861);let P,Y;const ee=new WeakMap,J=new WeakMap,X=new WeakMap,H=new WeakMap,Z=new WeakMap;let ve={get(se,ge,q){if(se instanceof IDBTransaction){if("done"===ge)return J.get(se);if("objectStoreNames"===ge)return se.objectStoreNames||X.get(se);if("store"===ge)return q.objectStoreNames[1]?void 0:q.objectStore(q.objectStoreNames[0])}return Ne(se[ge])},set:(se,ge,q)=>(se[ge]=q,!0),has:(se,ge)=>se instanceof IDBTransaction&&("done"===ge||"store"===ge)||ge in se};function Se(se){return"function"==typeof se?function ze(se){return se!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function G(){return Y||(Y=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(se)?function(...ge){return se.apply(Pe(this),ge),Ne(ee.get(this))}:function(...ge){return Ne(se.apply(Pe(this),ge))}:function(ge,...q){const oe=se.call(Pe(this),ge,...q);return X.set(oe,ge.sort?ge.sort():[ge]),Ne(oe)}}(se):(se instanceof IDBTransaction&&function Ie(se){if(J.has(se))return;const ge=new Promise((q,oe)=>{const Ae=()=>{se.removeEventListener("complete",_e),se.removeEventListener("error",Ke),se.removeEventListener("abort",Ke)},_e=()=>{q(),Ae()},Ke=()=>{oe(se.error||new DOMException("AbortError","AbortError")),Ae()};se.addEventListener("complete",_e),se.addEventListener("error",Ke),se.addEventListener("abort",Ke)});J.set(se,ge)}(se),((se,ge)=>ge.some(q=>se instanceof q))(se,function W(){return P||(P=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(se,ve):se)}function Ne(se){if(se instanceof IDBRequest)return function K(se){const ge=new Promise((q,oe)=>{const Ae=()=>{se.removeEventListener("success",_e),se.removeEventListener("error",Ke)},_e=()=>{q(Ne(se.result)),Ae()},Ke=()=>{oe(se.error),Ae()};se.addEventListener("success",_e),se.addEventListener("error",Ke)});return ge.then(q=>{q instanceof IDBCursor&&ee.set(q,se)}).catch(()=>{}),Z.set(ge,se),ge}(se);if(H.has(se))return H.get(se);const ge=Se(se);return ge!==se&&(H.set(se,ge),Z.set(ge,se)),ge}const Pe=se=>Z.get(se);function Ee(se,ge,{blocked:q,upgrade:oe,blocking:Ae,terminated:_e}={}){const Ke=indexedDB.open(se,ge),Je=Ne(Ke);return oe&&Ke.addEventListener("upgradeneeded",_t=>{oe(Ne(Ke.result),_t.oldVersion,_t.newVersion,Ne(Ke.transaction))}),q&&Ke.addEventListener("blocked",()=>q()),Je.then(_t=>{_e&&_t.addEventListener("close",()=>_e()),Ae&&_t.addEventListener("versionchange",()=>Ae())}).catch(()=>{}),Je}function Ce(se,{blocked:ge}={}){const q=indexedDB.deleteDatabase(se);return ge&&q.addEventListener("blocked",()=>ge()),Ne(q).then(()=>{})}const j=["get","getKey","getAll","getAllKeys","count"],le=["put","add","delete","clear"],ce=new Map;function me(se,ge){if(!(se instanceof IDBDatabase)||ge in se||"string"!=typeof ge)return;if(ce.get(ge))return ce.get(ge);const q=ge.replace(/FromIndex$/,""),oe=ge!==q,Ae=le.includes(q);if(!(q in(oe?IDBIndex:IDBObjectStore).prototype)||!Ae&&!j.includes(q))return;const _e=function(){var Ke=(0,s.Z)(function*(Je,..._t){const Wt=this.transaction(Je,Ae?"readwrite":"readonly");let Qt=Wt.store;return oe&&(Qt=Qt.index(_t.shift())),(yield Promise.all([Qt[q](..._t),Ae&&Wt.done]))[0]});return function(_t){return Ke.apply(this,arguments)}}();return ce.set(ge,_e),_e}!function ke(se){ve=se(ve)}(se=>({...se,get:(ge,q,oe)=>me(ge,q)||se.get(ge,q,oe),has:(ge,q)=>!!me(ge,q)||se.has(ge,q)}))},5421:(st,ye,_)=>{_.d(ye,{Cz:()=>Pe,ys:()=>Ne});var s=_(5861),d=_(4650),P=_(6895),Y=_(9751),W=_(8996),G=_(9841),ee=_(7579),J=_(5698);function X(Ee,Ce,j,le){return new Promise((ce,me)=>{Ee||me("IndexedDB not available");const se=Ee.open(Ce,j);let ge;se.onsuccess=q=>{ge=se.result,ce(ge)},se.onerror=q=>{me(`IndexedDB error: ${se.error}`)},"function"==typeof le&&(se.onupgradeneeded=q=>{le(q,ge)})})}function H(Ee,Ce,j,le,ce){if(!Ee)return;const me=Ee.open(Ce,j);me.onupgradeneeded=se=>{const ge=se.target.result;le.forEach(oe=>{if(!ge.objectStoreNames.contains(oe.store)){const Ae=ge.createObjectStore(oe.store,oe.storeConfig);oe.storeSchema.forEach(_e=>{Ae.createIndex(_e.name,_e.keypath,_e.options)})}});const q=ce&&ce();q&&Object.keys(q).map(oe=>parseInt(oe,10)).filter(oe=>oe>se.oldVersion).sort((oe,Ae)=>oe-Ae).forEach(oe=>{q[oe](ge,me.transaction)}),ge.close()},me.onsuccess=se=>{se.target.result.close()}}function Ie(Ee,Ce,j){Ee||j("You need to use the openDatabase function to create a database before you query it!"),function K(Ee,Ce){return Ee.objectStoreNames.contains(Ce)}(Ee,Ce)||j(`objectStore does not exists: ${Ce}`)}function ve(Ee,Ce){const j=Ee.transaction(Ce.storeName,Ce.dbMode);return j.onerror=Ce.error,j.onabort=Ce.abort,j}function ke(Ee,Ce,j,le){return{storeName:Ce,dbMode:Ee,error:ce=>{j(ce)},abort:ce=>{j(ce)}}}var ze=(()=>{return(Ee=ze||(ze={})).readonly="readonly",Ee.readwrite="readwrite",ze;var Ee})();const Se=new d.OlP(null);let Ne=(()=>{class Ee{constructor(j,le){if(this.dbConfig=j,this.platformId=le,!j.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!j.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=(0,P.NF)(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,H(this.indexedDB,j.name,j.version,j.objectStoresMeta,j.migrationFactory),X(this.indexedDB,j.name).then(ce=>{ce.version!==j.version&&(this.dbConfig.version=ce.version)}))}createObjectStore(j,le){const ce=[j];H(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,ce,le)}add(j,le,ce){return new Y.y(me=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(se=>{const q=ve(se,ke(ze.readwrite,j,Ae=>me.error(Ae))).objectStore(j);(Boolean(ce)?q.add(le,ce):q.add(le)).onsuccess=function(){var Ae=(0,s.Z)(function*(_e){q.get(_e.target.result).onsuccess=_t=>{me.next(_t.target.result),me.complete()}});return function(_e){return Ae.apply(this,arguments)}}()}).catch(se=>me.error(se))})}bulkAdd(j,le){const ce=new Promise((me,se)=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{const oe=ve(ge,ke(ze.readwrite,j,me)).objectStore(j),Ae=le.map(_e=>new Promise((Ke,Je)=>{const _t=_e.key;delete _e.key,(Boolean(_t)?oe.add(_e,_t):oe.add(_e)).onsuccess=Qt=>{Ke(Qt.target.result)}}));me(Promise.all(Ae))}).catch(ge=>se(ge))});return(0,W.D)(ce)}bulkDelete(j,le){const ce=le.map(me=>new Promise((se,ge)=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(q=>{const oe=ve(q,ke(ze.readwrite,j,ge));oe.objectStore(j).delete(me),oe.oncomplete=()=>{this.getAll(j).pipe((0,J.q)(1)).subscribe(_e=>{se(_e)})}}).catch(q=>ge(q))}));return(0,W.D)(Promise.all(ce))}getByKey(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{const q=ve(me,ke(ze.readonly,j,ce.error)).objectStore(j).get(le);q.onsuccess=oe=>{ce.next(oe.target.result),ce.complete()},q.onerror=oe=>{ce.error(oe)}}).catch(me=>ce.error(me))})}bulkGet(j,le){const ce=le.map(me=>this.getByKey(j,me));return new Y.y(me=>{(0,G.a)(ce).subscribe(se=>{me.next(se),me.complete()})})}getByID(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{Ie(me,j,oe=>ce.error(oe)),ve(me,ke(ze.readonly,j,ce.error)).objectStore(j).get(le).onsuccess=oe=>{ce.next(oe.target.result)}}).catch(me=>ce.error(me))})}getByIndex(j,le,ce){return new Y.y(me=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(se=>{Ie(se,j,_e=>me.error(_e)),ve(se,ke(ze.readonly,j,me.error)).objectStore(j).index(le).get(ce).onsuccess=_e=>{me.next(_e.target.result),me.complete()}}).catch(se=>me.error(se))})}getAll(j){return new Y.y(le=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ce=>{Ie(ce,j,q=>le.error(q));const ge=ve(ce,ke(ze.readonly,j,le.error)).objectStore(j).getAll();ge.onerror=q=>{le.error(q)},ge.onsuccess=({target:{result:q}})=>{le.next(q),le.complete()}}).catch(ce=>le.error(ce))})}update(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{Ie(me,j,oe=>ce.error(oe));const ge=ve(me,ke(ze.readwrite,j,oe=>ce.error(oe))).objectStore(j);ge.put(le).onsuccess=function(){var oe=(0,s.Z)(function*(Ae){ge.get(Ae.target.result).onsuccess=Je=>{ce.next(Je.target.result),ce.complete()}});return function(Ae){return oe.apply(this,arguments)}}()}).catch(me=>ce.error(me))})}delete(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{Ie(me,j,q=>ce.error(q));const se=ve(me,ke(ze.readwrite,j,q=>ce.error(q)));se.objectStore(j).delete(le),se.oncomplete=()=>{this.getAll(j).pipe((0,J.q)(1)).subscribe(q=>{ce.next(q),ce.complete()})}}).catch(me=>ce.error(me))})}deleteByKey(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{Ie(me,j,q=>ce.error(q));const se=ve(me,ke(ze.readwrite,j,q=>ce.error(q))),ge=se.objectStore(j);se.oncomplete=()=>{ce.next(!0),ce.complete()},ge.delete(le)}).catch(me=>ce.error(me))})}clear(j){return new Y.y(le=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ce=>{Ie(ce,j,ge=>le.error(ge));const me=ve(ce,ke(ze.readwrite,j,ge=>le.error(ge)));me.objectStore(j).clear(),me.oncomplete=()=>{le.next(!0),le.complete()}}).catch(ce=>le.error(ce))})}deleteDatabase(){var j=this;return new Y.y(le=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(function(){var ce=(0,s.Z)(function*(me){yield me.close();const se=j.indexedDB.deleteDatabase(j.dbConfig.name);se.onsuccess=()=>{le.next(!0),le.complete()},se.onerror=ge=>le.error(ge),se.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}});return function(me){return ce.apply(this,arguments)}}()).catch(ce=>le.error(ce))})}openCursor(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{Ie(me,j,oe=>ce.error(oe));const ge=ve(me,ke(ze.readonly,j,ce.error)).objectStore(j);(void 0===le?ge.openCursor():ge.openCursor(le)).onsuccess=oe=>{ce.next(oe),ce.complete()}}).catch(me=>ce.error(me))})}openCursorByIndex(j,le,ce,me=ze.readonly){const se=new ee.x;return X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{Ie(ge,j,Ke=>{se.error(Ke)}),ve(ge,ke(me,j,Ke=>{se.error(Ke)})).objectStore(j).index(le).openCursor(ce).onsuccess=Ke=>{se.next(Ke)}}).catch(ge=>se.error(ge)),se}getAllByIndex(j,le,ce){const me=[];return new Y.y(se=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{Ie(ge,j,Ke=>se.error(Ke)),ve(ge,ke(ze.readonly,j,se.error)).objectStore(j).index(le).openCursor(ce).onsuccess=Ke=>{const Je=Ke.target.result;Je?(me.push(Je.value),Je.continue()):(se.next(me),se.complete())}}).catch(ge=>se.error(ge))})}getAllKeysByIndex(j,le,ce){const me=[];return new Y.y(se=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{Ie(ge,j,Ke=>se.error(Ke)),ve(ge,ke(ze.readonly,j,se.error)).objectStore(j).index(le).openKeyCursor(ce).onsuccess=Ke=>{const Je=Ke.target.result;Je?(me.push({primaryKey:Je.primaryKey,key:Je.key}),Je.continue()):(se.next(me),se.complete())}}).catch(ge=>se.error(ge))})}count(j,le){return new Y.y(ce=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(me=>{Ie(me,j,oe=>ce.error(oe));const q=ve(me,ke(ze.readonly,j,ce.error)).objectStore(j).count(le);q.onerror=oe=>ce.error(oe),q.onsuccess=oe=>{ce.next(oe.target.result),ce.complete()}}).catch(me=>ce.error(me))})}countByIndex(j,le,ce){return new Y.y(me=>{X(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(se=>{Ie(se,j,_e=>me.error(_e));const Ae=ve(se,ke(ze.readonly,j,me.error)).objectStore(j).index(le).count(ce);Ae.onerror=_e=>me.error(_e),Ae.onsuccess=_e=>{me.next(_e.target.result),me.complete()}}).catch(se=>me.error(se))})}deleteObjectStore(j){return function Z(Ee,Ce,j){if(!Ee||!Ce||!j)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new Y.y(le=>{try{const me=indexedDB.open(Ee,Ce+1);me.onupgradeneeded=se=>{const ge=se.target.result;ge.deleteObjectStore(j),ge.close(),console.log("onupgradeneeded"),le.next(!0),le.complete()},me.onerror=se=>le.error(se)}catch(ce){le.error(ce)}})}(this.dbConfig.name,++this.dbConfig.version,j)}}return Ee.\u0275fac=function(j){return new(j||Ee)(d.LFG(Se),d.LFG(d.Lbi))},Ee.\u0275prov=d.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),Pe=(()=>{class Ee{static forRoot(j){return{ngModule:Ee,providers:[Ne,{provide:Se,useValue:j}]}}}return Ee.\u0275fac=function(j){return new(j||Ee)},Ee.\u0275mod=d.oAB({type:Ee}),Ee.\u0275inj=d.cJS({imports:[[P.ez]]}),Ee})()},4954:(st,ye,_)=>{_.d(ye,{gE:()=>Rt,VI:()=>Le,YI:()=>Ae});var s=_(4650),d=_(1135),P=_(9646),Y=_(8996),W=_(6451),G=_(4128),ee=_(4004),J=_(3900),X=_(262),H=_(8189),Z=_(590),K=_(5577),Ie=_(4482),ve=_(5403),ze=_(5684),Se=_(5698),Ne=_(8505),Pe=_(284);function Ce(Ye){return"function"==typeof Ye}function j(Ye){if("[object Object]"!==Object.prototype.toString.call(Ye))return!1;{const At=Object.getPrototypeOf(Ye);return null===At||At===Object.prototype}}function le(Ye){return!!Ye&&"string"==typeof Ye}function ce(Ye){return"boolean"==typeof Ye}function se(Ye){return Array.isArray(Ye)?Ye.length>0:!!Ye}function ge(Ye){return le(Ye)?[Ye]:Ye}let q=(()=>{class Ye{constructor(){this.permissionsSource=new d.X({}),this.permissions$=this.permissionsSource.asObservable()}}return Ye.\u0275fac=function(ne){return new(ne||Ye)},Ye.\u0275prov=s.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const oe=new s.OlP("USE_PERMISSIONS_STORE");let Ae=(()=>{class Ye{constructor(ne=!1,Qe){this.isolate=ne,this.permissionsStore=Qe,this.permissionsSource=ne?new d.X({}):Qe.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(ne){return!ne||Array.isArray(ne)&&0===ne.length?Promise.resolve(!0):(ne=ge(ne),this.hasArrayPermission(ne))}loadPermissions(ne,Qe){const rt=ne.reduce((Mt,Dt)=>this.reducePermission(Mt,Dt,Qe),{});this.permissionsSource.next(rt)}addPermission(ne,Qe){if(Array.isArray(ne)){const rt=ne.reduce((Mt,Dt)=>this.reducePermission(Mt,Dt,Qe),this.permissionsSource.value);this.permissionsSource.next(rt)}else{const rt=this.reducePermission(this.permissionsSource.value,ne,Qe);this.permissionsSource.next(rt)}}removePermission(ne){const Qe={...this.permissionsSource.value};delete Qe[ne],this.permissionsSource.next(Qe)}getPermission(ne){return this.permissionsSource.value[ne]}getPermissions(){return this.permissionsSource.value}reducePermission(ne,Qe,rt){return rt&&Ce(rt)?{...ne,[Qe]:{name:Qe,validationFunction:rt}}:{...ne,[Qe]:{name:Qe}}}hasArrayPermission(ne){const Qe=ne.map(rt=>{if(this.hasPermissionValidationFunction(rt)){const Mt=this.permissionsSource.value[rt].validationFunction,Dt={...this.permissionsSource.value};return(0,P.of)(null).pipe((0,ee.U)(()=>Mt(rt,Dt)),(0,J.w)(Pt=>ce(Pt)?(0,P.of)(Pt):Pt),(0,X.K)(()=>(0,P.of)(!1)))}return(0,P.of)(!!this.permissionsSource.value[rt])});return(0,Y.D)(Qe).pipe((0,H.J)(),(0,Z.P)(rt=>!1!==rt,!1),(0,ee.U)(rt=>!1!==rt)).toPromise().then(rt=>rt)}hasPermissionValidationFunction(ne){return!!this.permissionsSource.value[ne]&&!!this.permissionsSource.value[ne].validationFunction&&Ce(this.permissionsSource.value[ne].validationFunction)}}return Ye.\u0275fac=function(ne){return new(ne||Ye)(s.LFG(oe),s.LFG(q))},Ye.\u0275prov=s.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),_e=(()=>{class Ye{constructor(){this.strategiesSource=new d.X({}),this.strategies$=this.strategiesSource.asObservable()}}return Ye.\u0275fac=function(ne){return new(ne||Ye)},Ye.\u0275prov=s.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();const Ke=new s.OlP("USE_CONFIGURATION_STORE");let Je=(()=>{class Ye{constructor(ne=!1,Qe){this.isolate=ne,this.configurationStore=Qe,this.strategiesSource=this.isolate?new d.X({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(ne){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(ne):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(ne),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(ne){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(ne):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(ne),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(ne,Qe){this.strategiesSource.value[ne]=Qe}getStrategy(ne){return this.strategiesSource.value[ne]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(ne){if(this.strategiesSource.value[ne]||this.isPredefinedStrategy(ne))return ne;throw new Error(`No ' ${ne} ' strategy is found please define one`)}isPredefinedStrategy(ne){return"show"===ne||"remove"===ne}}return Ye.\u0275fac=function(ne){return new(ne||Ye)(s.LFG(Ke),s.LFG(_e))},Ye.\u0275prov=s.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class _t{constructor(){this.rolesSource=new d.X({}),this.roles$=this.rolesSource.asObservable()}}const Wt=new s.OlP("USE_ROLES_STORE");let Qt=(()=>{class Ye{constructor(ne=!1,Qe,rt){this.isolate=ne,this.rolesStore=Qe,this.permissionsService=rt,this.rolesSource=this.isolate?new d.X({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(ne,Qe){const rt={...this.rolesSource.value,[ne]:{name:ne,validationFunction:Qe}};this.rolesSource.next(rt)}addRoleWithPermissions(ne,Qe){this.permissionsService.addPermission(Qe),this.addRole(ne,Qe)}addRoles(ne){Object.keys(ne).forEach((Qe,rt)=>{this.addRole(Qe,ne[Qe])})}addRolesWithPermissions(ne){Object.keys(ne).forEach((Qe,rt)=>{this.addRoleWithPermissions(Qe,ne[Qe])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(ne){const Qe={...this.rolesSource.value};delete Qe[ne],this.rolesSource.next(Qe)}getRoles(){return this.rolesSource.value}getRole(ne){return this.rolesSource.value[ne]}hasOnlyRoles(ne){return!ne||Array.isArray(ne)&&0===ne.length?Promise.resolve(!0):(ne=ge(ne),Promise.all([this.hasRoleKey(ne),this.hasRolePermission(this.rolesSource.value,ne)]).then(([rt,Mt])=>rt||Mt))}hasRoleKey(ne){const Qe=ne.map(rt=>{if(this.rolesSource.value[rt]&&this.rolesSource.value[rt].validationFunction&&Ce(this.rolesSource.value[rt].validationFunction)&&!function me(Ye){return"[object Promise]"===Object.prototype.toString.call(Ye)}(this.rolesSource.value[rt].validationFunction)){const Dt=this.rolesSource.value[rt].validationFunction,Pt={...this.rolesSource.value};return(0,P.of)(null).pipe((0,ee.U)(()=>Dt(rt,Pt)),(0,J.w)(mn=>ce(mn)?(0,P.of)(mn):mn),(0,X.K)(()=>(0,P.of)(!1)))}return(0,P.of)(!1)});return(0,Y.D)(Qe).pipe((0,H.J)(),(0,Z.P)(rt=>!1!==rt,!1),(0,ee.U)(rt=>!1!==rt)).toPromise().then(rt=>rt)}hasRolePermission(ne,Qe){return(0,Y.D)(Qe).pipe((0,K.z)(rt=>ne[rt]&&Array.isArray(ne[rt].validationFunction)?(0,Y.D)(ne[rt].validationFunction).pipe((0,K.z)(Mt=>this.permissionsService.hasPermission(Mt)),function ke(Ye,At){return(0,Ie.e)((ne,Qe)=>{let rt=0;ne.subscribe((0,ve.x)(Qe,Mt=>{Ye.call(At,Mt,rt++,ne)||(Qe.next(!1),Qe.complete())},()=>{Qe.next(!0),Qe.complete()}))})}(Mt=>!0===Mt)):(0,P.of)(!1)),(0,Z.P)(rt=>!0===rt,!1)).toPromise()}}return Ye.\u0275fac=function(ne){return new(ne||Ye)(s.LFG(Wt),s.LFG(_t),s.LFG(Ae))},Ye.\u0275prov=s.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),Rt=(()=>{class Ye{constructor(ne,Qe,rt,Mt,Dt,Pt){this.permissionsService=ne,this.configurationService=Qe,this.rolesService=rt,this.viewContainer=Mt,this.changeDetector=Dt,this.templateRef=Pt,this.permissionsAuthorized=new s.vpe,this.permissionsUnauthorized=new s.vpe,this.firstMergeUnusedRun=1}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(ne){const Qe=ne.ngxPermissionsOnly,rt=ne.ngxPermissionsExcept;if(Qe||rt){if(Qe&&Qe.firstChange||rt&&rt.firstChange)return;(0,W.T)(this.permissionsService.permissions$,this.rolesService.roles$).pipe((0,ze.T)(this.firstMergeUnusedRun),(0,Se.q)(1)).subscribe(()=>{se(this.ngxPermissionsExcept)?this.validateExceptAndOnlyPermissions():se(this.ngxPermissionsOnly)?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return(0,W.T)(this.permissionsService.permissions$,this.rolesService.roles$).pipe((0,ze.T)(this.firstMergeUnusedRun)).subscribe(()=>{se(this.ngxPermissionsExcept)?this.validateExceptAndOnlyPermissions():se(this.ngxPermissionsOnly)?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([ne,Qe])=>{if(ne||Qe)this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);else{if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([ne,Qe])=>{ne||Qe?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(ne){if(!ce(this.currentAuthorizedState)||this.currentAuthorizedState){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput())return void this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(ne)}}handleAuthorisedPermission(ne){if(!ce(this.currentAuthorizedState)||!this.currentAuthorizedState){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput())return void this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(ne)}}applyStrategyAccordingToStrategyType(ne){if(!le(ne))return Ce(ne)?(this.showTemplateBlockInView(this.templateRef),void ne(this.templateRef)):void 0;this.applyStrategy(ne)}showTemplateBlockInView(ne){this.viewContainer.clear(),ne&&(this.viewContainer.createEmbeddedView(ne),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(ne){if("show"===ne)return void this.showTemplateBlockInView(this.templateRef);if("remove"===ne)return void this.viewContainer.clear();const Qe=this.configurationService.getStrategy(ne);this.showTemplateBlockInView(this.templateRef),Qe(this.templateRef)}}return Ye.\u0275fac=function(ne){return new(ne||Ye)(s.Y36(Ae),s.Y36(Je),s.Y36(Qt),s.Y36(s.s_b),s.Y36(s.sBO),s.Y36(s.Rgc))},Ye.\u0275dir=s.lG2({type:Ye,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},features:[s.TTD]}),Ye})(),Ue=(()=>{class Ye{constructor(ne,Qe,rt){this.permissionsService=ne,this.rolesService=Qe,this.router=rt}canActivate(ne,Qe){return this.hasPermissions(ne,Qe)}canActivateChild(ne,Qe){return this.hasPermissions(ne,Qe)}canLoad(ne){return this.hasPermissions(ne)}canMatch(ne){return this.hasPermissions(ne)}hasPermissions(ne,Qe){const Mt=this.transformPermission(ne&&ne.data?ne.data.permissions:{},ne,Qe);return this.isParameterAvailable(Mt.except)?this.passingExceptPermissionsValidation(Mt,ne,Qe):!this.isParameterAvailable(Mt.only)||this.passingOnlyPermissionsValidation(Mt,ne,Qe)}transformPermission(ne,Qe,rt){return{only:Ce(ne.only)?ne.only(Qe,rt):ge(ne.only),except:Ce(ne.except)?ne.except(Qe,rt):ge(ne.except),redirectTo:ne.redirectTo}}isParameterAvailable(ne){return!!ne&&ne.length>0}passingExceptPermissionsValidation(ne,Qe,rt){if(ne.redirectTo&&(Ce(ne.redirectTo)||j(ne.redirectTo)&&!this.isRedirectionWithParameters(ne.redirectTo))){let Mt="";return(0,Y.D)(ne.except).pipe((0,K.z)(Dt=>(0,G.D)([this.permissionsService.hasPermission(Dt),this.rolesService.hasOnlyRoles(Dt)]).pipe((0,Ne.b)(Pt=>{Pt.every(qt=>!1===qt)||(Mt=Dt)}))),(0,Z.P)(Dt=>Dt.some(Pt=>!0===Pt),!1),(0,K.z)(Dt=>Mt?(this.handleRedirectOfFailedPermission(ne,Mt,Qe,rt),(0,P.of)(!1)):!Dt&&ne.only?this.onlyRedirectCheck(ne,Qe,rt):(0,P.of)(!Dt))).toPromise()}return Promise.all([this.permissionsService.hasPermission(ne.except),this.rolesService.hasOnlyRoles(ne.except)]).then(([Mt,Dt])=>Mt||Dt?(ne.redirectTo&&this.redirectToAnotherRoute(ne.redirectTo,Qe,rt),!1):!ne.only||this.checkOnlyPermissions(ne,Qe,rt))}redirectToAnotherRoute(ne,Qe,rt,Mt){const Dt=Ce(ne)?ne(Mt,Qe,rt):ne;if(this.isRedirectionWithParameters(Dt))return Dt.navigationCommands=this.transformNavigationCommands(Dt.navigationCommands,Qe,rt),Dt.navigationExtras=this.transformNavigationExtras(Dt.navigationExtras,Qe,rt),void this.router.navigate(Dt.navigationCommands,Dt.navigationExtras);Array.isArray(Dt)?this.router.navigate(Dt):this.router.navigate([Dt])}isRedirectionWithParameters(ne){return j(ne)&&(!!ne.navigationCommands||!!ne.navigationExtras)}transformNavigationCommands(ne,Qe,rt){return Ce(ne)?ne(Qe,rt):ne}transformNavigationExtras(ne,Qe,rt){return Ce(ne)?ne(Qe,rt):ne}onlyRedirectCheck(ne,Qe,rt){let Mt="";return(0,Y.D)(ne.only).pipe((0,K.z)(Dt=>(0,G.D)([this.permissionsService.hasPermission(Dt),this.rolesService.hasOnlyRoles(Dt)]).pipe((0,Ne.b)(Pt=>{Pt.every(qt=>!1===qt)&&(Mt=Dt)}))),(0,Z.P)(Dt=>Ce(ne.redirectTo)?Dt.some(Pt=>!0===Pt):Dt.every(Pt=>!1===Pt),!1),(0,K.z)(Dt=>Ce(ne.redirectTo)?Dt?(0,P.of)(!0):(this.handleRedirectOfFailedPermission(ne,Mt,Qe,rt),(0,P.of)(!1)):(Mt&&this.handleRedirectOfFailedPermission(ne,Mt,Qe,rt),(0,P.of)(!Dt)))).toPromise()}handleRedirectOfFailedPermission(ne,Qe,rt,Mt){this.isFailedPermissionPropertyOfRedirectTo(ne,Qe)?this.redirectToAnotherRoute(ne.redirectTo[Qe],rt,Mt,Qe):Ce(ne.redirectTo)?this.redirectToAnotherRoute(ne.redirectTo,rt,Mt,Qe):this.redirectToAnotherRoute(ne.redirectTo.default,rt,Mt,Qe)}isFailedPermissionPropertyOfRedirectTo(ne,Qe){return!!ne.redirectTo&&ne.redirectTo[Qe]}checkOnlyPermissions(ne,Qe,rt){const Mt={...ne};return Promise.all([this.permissionsService.hasPermission(Mt.only),this.rolesService.hasOnlyRoles(Mt.only)]).then(([Dt,Pt])=>!(!Dt&&!Pt&&(Mt.redirectTo&&this.redirectToAnotherRoute(Mt.redirectTo,Qe,rt),1)))}passingOnlyPermissionsValidation(ne,Qe,rt){return Ce(ne.redirectTo)||j(ne.redirectTo)&&!this.isRedirectionWithParameters(ne.redirectTo)?this.onlyRedirectCheck(ne,Qe,rt):this.checkOnlyPermissions(ne,Qe,rt)}}return Ye.\u0275fac=function(ne){return new(ne||Ye)(s.LFG(Ae),s.LFG(Qt),s.LFG(Pe.F0))},Ye.\u0275prov=s.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),Le=(()=>{class Ye{static forRoot(ne={}){return{ngModule:Ye,providers:[q,_t,_e,Ae,Ue,Qt,Je,{provide:oe,useValue:ne.permissionsIsolate},{provide:Wt,useValue:ne.rolesIsolate},{provide:Ke,useValue:ne.configurationIsolate}]}}static forChild(ne={}){return{ngModule:Ye,providers:[{provide:oe,useValue:ne.permissionsIsolate},{provide:Wt,useValue:ne.rolesIsolate},{provide:Ke,useValue:ne.configurationIsolate},Je,Ae,Qt,Ue]}}}return Ye.\u0275fac=function(ne){return new(ne||Ye)},Ye.\u0275mod=s.oAB({type:Ye}),Ye.\u0275inj=s.cJS({}),Ye})()},7185:(st,ye,_)=>{_.d(ye,{FN:()=>Ke,PR:()=>ce,Rh:()=>_t,_W:()=>_e});var s=_(4650),d=_(7340),P=_(7579),Y=_(6895),W=_(1481);const G=["toast-component",""];function ee(Ue,it){if(1&Ue){const he=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){s.CHM(he);const ct=s.oxw();return s.KtG(ct.remove())}),s.TgZ(1,"span",6),s._uU(2,"\xd7"),s.qZA()()}}function J(Ue,it){if(1&Ue&&(s.ynx(0),s._uU(1),s.BQk()),2&Ue){const he=s.oxw(2);s.xp6(1),s.hij("[",he.duplicatesCount+1,"]")}}function X(Ue,it){if(1&Ue&&(s.TgZ(0,"div"),s._uU(1),s.YNc(2,J,2,1,"ng-container",4),s.qZA()),2&Ue){const he=s.oxw();s.Tol(he.options.titleClass),s.uIk("aria-label",he.title),s.xp6(1),s.hij(" ",he.title," "),s.xp6(1),s.Q6J("ngIf",he.duplicatesCount)}}function H(Ue,it){if(1&Ue&&s._UZ(0,"div",7),2&Ue){const he=s.oxw();s.Tol(he.options.messageClass),s.Q6J("innerHTML",he.message,s.oJD)}}function Z(Ue,it){if(1&Ue&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&Ue){const he=s.oxw();s.Tol(he.options.messageClass),s.uIk("aria-label",he.message),s.xp6(1),s.hij(" ",he.message," ")}}function K(Ue,it){if(1&Ue&&(s.TgZ(0,"div"),s._UZ(1,"div",9),s.qZA()),2&Ue){const he=s.oxw();s.xp6(1),s.Udp("width",he.width+"%")}}class Ce{constructor(it,he){this.component=it,this.injector=he}attach(it,he){return this._attachedHost=it,it.attach(this,he)}detach(){const it=this._attachedHost;if(it)return this._attachedHost=void 0,it.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(it){this._attachedHost=it}}class j{attach(it,he){return this._attachedPortal=it,this.attachComponentPortal(it,he)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(it){this._disposeFn=it}}class le{constructor(it){this._overlayRef=it,this.duplicatesCount=0,this._afterClosed=new P.x,this._activate=new P.x,this._manualClose=new P.x,this._resetTimeout=new P.x,this._countDuplicate=new P.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(it,he){it&&this._resetTimeout.next(),he&&this._countDuplicate.next(++this.duplicatesCount)}}class ce{constructor(it,he,Le,ct,jt,Ye){this.toastId=it,this.config=he,this.message=Le,this.title=ct,this.toastType=jt,this.toastRef=Ye,this._onTap=new P.x,this._onAction=new P.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(it){this._onAction.next(it)}onAction(){return this._onAction.asObservable()}}const se=new s.OlP("ToastConfig");class ge extends j{constructor(it,he,Le){super(),this._hostDomElement=it,this._componentFactoryResolver=he,this._appRef=Le}attachComponentPortal(it,he){const Le=this._componentFactoryResolver.resolveComponentFactory(it.component);let ct;return ct=Le.create(it.injector),this._appRef.attachView(ct.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ct.hostView),ct.destroy()}),he?this._hostDomElement.insertBefore(this._getComponentRootNode(ct),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ct)),ct}_getComponentRootNode(it){return it.hostView.rootNodes[0]}}class q{constructor(it){this._portalHost=it}attach(it,he=!0){return this._portalHost.attach(it,he)}detach(){return this._portalHost.detach()}}let oe=(()=>{class Ue{constructor(he){this._document=he}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const he=this._document.createElement("div");he.classList.add("overlay-container"),he.setAttribute("aria-live","polite"),this._document.body.appendChild(he),this._containerElement=he}}return Ue.\u0275fac=function(he){return new(he||Ue)(s.LFG(Y.K0))},Ue.\u0275prov=s.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),Ae=(()=>{class Ue{constructor(he,Le,ct,jt){this._overlayContainer=he,this._componentFactoryResolver=Le,this._appRef=ct,this._document=jt,this._paneElements=new Map}create(he,Le){return this._createOverlayRef(this.getPaneElement(he,Le))}getPaneElement(he="",Le){return this._paneElements.get(Le)||this._paneElements.set(Le,{}),this._paneElements.get(Le)[he]||(this._paneElements.get(Le)[he]=this._createPaneElement(he,Le)),this._paneElements.get(Le)[he]}_createPaneElement(he,Le){const ct=this._document.createElement("div");return ct.id="toast-container",ct.classList.add(he),ct.classList.add("toast-container"),Le?Le.getContainerElement().appendChild(ct):this._overlayContainer.getContainerElement().appendChild(ct),ct}_createPortalHost(he){return new ge(he,this._componentFactoryResolver,this._appRef)}_createOverlayRef(he){return new q(this._createPortalHost(he))}}return Ue.\u0275fac=function(he){return new(he||Ue)(s.LFG(oe),s.LFG(s._Vd),s.LFG(s.z2F),s.LFG(Y.K0))},Ue.\u0275prov=s.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),_e=(()=>{class Ue{constructor(he,Le,ct,jt,Ye){this.overlay=Le,this._injector=ct,this.sanitizer=jt,this.ngZone=Ye,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...he.default,...he.config},he.config.iconClasses&&(this.toastrConfig.iconClasses={...he.default.iconClasses,...he.config.iconClasses})}show(he,Le,ct={},jt=""){return this._preBuildNotification(jt,he,Le,this.applyConfig(ct))}success(he,Le,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",he,Le,this.applyConfig(ct))}error(he,Le,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",he,Le,this.applyConfig(ct))}info(he,Le,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",he,Le,this.applyConfig(ct))}warning(he,Le,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",he,Le,this.applyConfig(ct))}clear(he){for(const Le of this.toasts)if(void 0!==he){if(Le.toastId===he)return void Le.toastRef.manualClose()}else Le.toastRef.manualClose()}remove(he){const Le=this._findToast(he);if(!Le||(Le.activeToast.toastRef.close(),this.toasts.splice(Le.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const ct=this.toasts[this.currentlyActive].toastRef;ct.isInactive()||(this.currentlyActive=this.currentlyActive+1,ct.activate())}return!0}findDuplicate(he="",Le="",ct,jt){const{includeTitleDuplicates:Ye}=this.toastrConfig;for(const At of this.toasts)if((!Ye||Ye&&At.title===he)&&At.message===Le)return At.toastRef.onDuplicate(ct,jt),At;return null}applyConfig(he={}){return{...this.toastrConfig,...he}}_findToast(he){for(let Le=0;Le<this.toasts.length;Le++)if(this.toasts[Le].toastId===he)return{index:Le,activeToast:this.toasts[Le]};return null}_preBuildNotification(he,Le,ct,jt){return jt.onActivateTick?this.ngZone.run(()=>this._buildNotification(he,Le,ct,jt)):this._buildNotification(he,Le,ct,jt)}_buildNotification(he,Le,ct,jt){if(!jt.toastComponent)throw new Error("toastComponent required");const Ye=this.findDuplicate(ct,Le,this.toastrConfig.resetTimeoutOnDuplicate&&jt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&ct||Le)&&this.toastrConfig.preventDuplicates&&null!==Ye)return Ye;this.previousToastMessage=Le;let At=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(At=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ne=this.overlay.create(jt.positionClass,this.overlayContainer);this.index=this.index+1;let Qe=Le;Le&&jt.enableHtml&&(Qe=this.sanitizer.sanitize(s.q3G.HTML,Le));const rt=new le(ne),Mt=new ce(this.index,jt,Qe,ct,he,rt),Pt=s.zs3.create({providers:[{provide:ce,useValue:Mt}],parent:this._injector}),mn=new Ce(jt.toastComponent,Pt),qt=ne.attach(mn,jt.newestOnTop);rt.componentInstance=qt.instance;const _n={toastId:this.index,title:ct||"",message:Le||"",toastRef:rt,onShown:rt.afterActivate(),onHidden:rt.afterClosed(),onTap:Mt.onTap(),onAction:Mt.onAction(),portal:qt};return At||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{_n.toastRef.activate()})),this.toasts.push(_n),_n}}return Ue.\u0275fac=function(he){return new(he||Ue)(s.LFG(se),s.LFG(Ae),s.LFG(s.zs3),s.LFG(W.H7),s.LFG(s.R0b))},Ue.\u0275prov=s.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})(),Ke=(()=>{class Ue{constructor(he,Le,ct){this.toastrService=he,this.toastPackage=Le,this.ngZone=ct,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=Le.message,this.title=Le.title,this.options=Le.config,this.originalTimeout=Le.config.timeOut,this.toastClasses=`${Le.toastType} ${Le.config.toastClass}`,this.sub=Le.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Le.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Le.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Le.toastRef.countDuplicate().subscribe(jt=>{this.duplicatesCount=jt})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const he=(new Date).getTime();this.width=(this.hideTime-he)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(he,Le){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(he),Le)):this.timeout=setTimeout(()=>he(),Le)}outsideInterval(he,Le){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(he),Le)):this.intervalId=setInterval(()=>he(),Le)}runInsideAngular(he){this.ngZone?this.ngZone.run(()=>he()):he()}}return Ue.\u0275fac=function(he){return new(he||Ue)(s.Y36(_e),s.Y36(ce),s.Y36(s.R0b))},Ue.\u0275cmp=s.Xpm({type:Ue,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(he,Le){1&he&&s.NdJ("click",function(){return Le.tapToast()})("mouseenter",function(){return Le.stickAround()})("mouseleave",function(){return Le.delayedHideToast()}),2&he&&(s.d8E("@flyInOut",Le.state),s.Tol(Le.toastClasses),s.Udp("display",Le.displayStyle))},attrs:G,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(he,Le){1&he&&(s.YNc(0,ee,3,0,"button",0),s.YNc(1,X,3,5,"div",1),s.YNc(2,H,1,3,"div",2),s.YNc(3,Z,2,4,"div",3),s.YNc(4,K,2,2,"div",4)),2&he&&(s.Q6J("ngIf",Le.options.closeButton),s.xp6(1),s.Q6J("ngIf",Le.title),s.xp6(1),s.Q6J("ngIf",Le.message&&Le.options.enableHtml),s.xp6(1),s.Q6J("ngIf",Le.message&&!Le.options.enableHtml),s.xp6(1),s.Q6J("ngIf",Le.options.progressBar))},dependencies:[Y.O5],encapsulation:2,data:{animation:[(0,d.X$)("flyInOut",[(0,d.SB)("inactive",(0,d.oB)({opacity:0})),(0,d.SB)("active",(0,d.oB)({opacity:1})),(0,d.SB)("removed",(0,d.oB)({opacity:0})),(0,d.eR)("inactive => active",(0,d.jt)("{{ easeTime }}ms {{ easing }}")),(0,d.eR)("active => removed",(0,d.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Ue})();const Je={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null,toastComponent:Ke};let _t=(()=>{class Ue{static forRoot(he={}){return{ngModule:Ue,providers:[{provide:se,useValue:{default:Je,config:he}}]}}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275mod=s.oAB({type:Ue}),Ue.\u0275inj=s.cJS({imports:[Y.ez]}),Ue})()},5861:(st,ye,_)=>{function s(P,Y,W,G,ee,J,X){try{var H=P[J](X),Z=H.value}catch(K){return void W(K)}H.done?Y(Z):Promise.resolve(Z).then(G,ee)}function d(P){return function(){var Y=this,W=arguments;return new Promise(function(G,ee){var J=P.apply(Y,W);function X(Z){s(J,G,ee,X,H,"next",Z)}function H(Z){s(J,G,ee,X,H,"throw",Z)}X(void 0)})}}_.d(ye,{Z:()=>d})}},st=>{st(st.s=5059)}]);