marketplacepos 2.5.9 → 2.6.1

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 +1 @@
1
- "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{7899:(it,De,b)=>{b.d(De,{zQ:()=>ns,ww:()=>Ei});var m=b(4650),c=b(7579),F=b(9646),z=b(8306),U=b(8996),J=b(6451),ee=b(3900),ie=b(576);function te(Z,ae){return(0,ie.m)(ae)?(0,ee.w)(()=>Z,ae):(0,ee.w)(()=>Z)}var R=b(5363),L=b(4004),de=b(4782),je=b(590),Oe=b(9468),xe=b(9300),Be=b(5813),Ie=b(2011),Te=b(6895);b(5867);var lt=b(5861),dn=b(9681),tn=b(4859),$e=b(2090),Ye=b(1877);const ye=new Map,Fe={activated:!1,tokenObservers:[]},ct={initialized:!1,enabled:!1};function Tt(Z){return ye.get(Z)||Fe}function nn(Z,ae){ye.set(Z,ae)}function vn(){return ct}class Hn{constructor(ae,Ae,ze,nt,ft){if(this.operation=ae,this.retryPolicy=Ae,this.getWaitDuration=ze,this.lowerBound=nt,this.upperBound=ft,this.pending=null,this.nextErrorWaitInterval=nt,nt>ft)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(ae){var Ae=this;return(0,lt.Z)(function*(){Ae.stop();try{Ae.pending=new $e.BH,yield function _t(Z){return new Promise(ae=>{setTimeout(ae,Z)})}(Ae.getNextRun(ae)),Ae.pending.resolve(),yield Ae.pending.promise,Ae.pending=new $e.BH,yield Ae.operation(),Ae.pending.resolve(),yield Ae.pending.promise,Ae.process(!0).catch(()=>{})}catch(ze){Ae.retryPolicy(ze)?Ae.process(!1).catch(()=>{}):Ae.stop()}})()}getNextRun(ae){if(ae)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Ae=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Ae}}}const St=new $e.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 wn(Z){if(!Tt(Z).activated)throw St.create("use-before-activation",{appName:Z.name})}function fe(Z,ae){return Ke.apply(this,arguments)}function Ke(){return(Ke=(0,lt.Z)(function*({url:Z,body:ae},Ae){var ze,nt;const ft={"Content-Type":"application/json"},ht=Ae.getImmediate({optional:!0});if(ht){const Vn=yield ht.getHeartbeatsHeader();Vn&&(ft["X-Firebase-Client"]=Vn)}const Tn={method:"POST",body:JSON.stringify(ae),headers:ft};let sn,Kn;try{sn=yield fetch(Z,Tn)}catch(Vn){throw St.create("fetch-network-error",{originalErrorMessage:null===(ze=Vn)||void 0===ze?void 0:ze.message})}if(200!==sn.status)throw St.create("fetch-status-error",{httpStatus:sn.status});try{Kn=yield sn.json()}catch(Vn){throw St.create("fetch-parse-error",{originalErrorMessage:null===(nt=Vn)||void 0===nt?void 0:nt.message})}const Dn=Kn.ttl.match(/^([\d.]+)(s)$/);if(!Dn||!Dn[2]||isNaN(Number(Dn[1])))throw St.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Kn.ttl}`});const Pr=1e3*Number(Dn[1]),jr=Date.now();return{token:Kn.token,expireTimeMillis:jr+Pr,issuedAtTimeMillis:jr}})).apply(this,arguments)}function Gt(Z,ae){const{projectId:Ae,appId:ze,apiKey:nt}=Z.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${Ae}/apps/${ze}:exchangeDebugToken?key=${nt}`,body:{debug_token:ae}}}const an="firebase-app-check-store";let Jt=null;function Nt(){return Jt||(Jt=new Promise((Z,ae)=>{var Ae;try{const ze=indexedDB.open("firebase-app-check-database",1);ze.onsuccess=nt=>{Z(nt.target.result)},ze.onerror=nt=>{var ft;ae(St.create("storage-open",{originalErrorMessage:null===(ft=nt.target.error)||void 0===ft?void 0:ft.message}))},ze.onupgradeneeded=nt=>{0===nt.oldVersion&&nt.target.result.createObjectStore(an,{keyPath:"compositeKey"})}}catch(ze){ae(St.create("storage-open",{originalErrorMessage:null===(Ae=ze)||void 0===Ae?void 0:Ae.message}))}}),Jt)}function gt(){return(gt=(0,lt.Z)(function*(Z,ae){const ze=(yield Nt()).transaction(an,"readwrite"),ft=ze.objectStore(an).put({compositeKey:Z,value:ae});return new Promise((ht,Tn)=>{ft.onsuccess=sn=>{ht()},ze.onerror=sn=>{var Kn;Tn(St.create("storage-set",{originalErrorMessage:null===(Kn=sn.target.error)||void 0===Kn?void 0:Kn.message}))}})})).apply(this,arguments)}const Y=new Ye.Yd("@firebase/app-check");function Re(Z,ae){return(0,$e.hl)()?function Pt(Z,ae){return function Ge(Z,ae){return gt.apply(this,arguments)}(function rn(Z){return`${Z.options.appId}-${Z.name}`}(Z),ae)}(Z,ae).catch(Ae=>{Y.warn(`Failed to write token to IndexedDB. Error: ${Ae}`)}):Promise.resolve()}function At(){return vn().enabled}function Kt(){return hn.apply(this,arguments)}function hn(){return(hn=(0,lt.Z)(function*(){const Z=vn();if(Z.enabled&&Z.token)return Z.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const xt={error:"UNKNOWN_ERROR"};function Q(Z){return $e.US.encodeString(JSON.stringify(Z),!1)}function G(Z){return j.apply(this,arguments)}function j(){return(j=(0,lt.Z)(function*(Z,ae=!1){const Ae=Z.app;wn(Ae);const ze=Tt(Ae);let ft,nt=ze.token;if(nt&&!Dt(nt)&&(nn(Ae,Object.assign(Object.assign({},ze),{token:void 0})),nt=void 0),!nt){const sn=yield ze.cachedTokenPromise;sn&&(Dt(sn)?nt=sn:yield Re(Ae,void 0))}if(!ae&&nt&&Dt(nt))return{token:nt.token};let Tn,ht=!1;if(At()){ze.exchangeTokenPromise||(ze.exchangeTokenPromise=fe(Gt(Ae,yield Kt()),Z.heartbeatServiceProvider).finally(()=>{ze.exchangeTokenPromise=void 0}),ht=!0);const sn=yield ze.exchangeTokenPromise;return yield Re(Ae,sn),nn(Ae,Object.assign(Object.assign({},ze),{token:sn})),{token:sn.token}}try{ze.exchangeTokenPromise||(ze.exchangeTokenPromise=ze.provider.getToken().finally(()=>{ze.exchangeTokenPromise=void 0}),ht=!0),nt=yield ze.exchangeTokenPromise}catch(sn){"appCheck/throttled"===sn.code?Y.warn(sn.message):Y.error(sn),ft=sn}return nt?ft?Tn=Dt(nt)?{token:nt.token,internalError:ft}:Sr(ft):(Tn={token:nt.token},nn(Ae,Object.assign(Object.assign({},ze),{token:nt})),yield Re(Ae,nt)):Tn=Sr(ft),ht&&mn(Ae,Tn),Tn})).apply(this,arguments)}function Qe(Z,ae){const Ae=Tt(Z),ze=Ae.tokenObservers.filter(nt=>nt.next!==ae);0===ze.length&&Ae.tokenRefresher&&Ae.tokenRefresher.isRunning()&&Ae.tokenRefresher.stop(),nn(Z,Object.assign(Object.assign({},Ae),{tokenObservers:ze}))}function yt(Z){const{app:ae}=Z,Ae=Tt(ae);let ze=Ae.tokenRefresher;ze||(ze=function Zt(Z){const{app:ae}=Z;return new Hn((0,lt.Z)(function*(){let ze;if(ze=Tt(ae).token?yield G(Z,!0):yield G(Z),ze.error)throw ze.error;if(ze.internalError)throw ze.internalError}),()=>!0,()=>{const Ae=Tt(ae);if(Ae.token){let ze=Ae.token.issuedAtTimeMillis+.5*(Ae.token.expireTimeMillis-Ae.token.issuedAtTimeMillis)+3e5;return ze=Math.min(ze,Ae.token.expireTimeMillis-3e5),Math.max(0,ze-Date.now())}return 0},3e4,96e4)}(Z),nn(ae,Object.assign(Object.assign({},Ae),{tokenRefresher:ze}))),!ze.isRunning()&&Ae.isTokenAutoRefreshEnabled&&ze.start()}function mn(Z,ae){const Ae=Tt(Z).tokenObservers;for(const ze of Ae)try{"EXTERNAL"===ze.type&&null!=ae.error?ze.error(ae.error):ze.next(ae)}catch{}}function Dt(Z){return Z.expireTimeMillis-Date.now()>0}function Sr(Z){return{token:Q(xt),error:Z}}class xr{constructor(ae,Ae){this.app=ae,this.heartbeatServiceProvider=Ae}_delete(){const{tokenObservers:ae}=Tt(this.app);for(const Ae of ae)Qe(this.app,Ae.next);return Promise.resolve()}}const ji="app-check-internal";!function Ur(){(0,dn._registerComponent)(new tn.wA("app-check",Z=>function zr(Z,ae){return new xr(Z,ae)}(Z.getProvider("app").getImmediate(),Z.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Z,ae,Ae)=>{Z.getProvider(ji).initialize()})),(0,dn._registerComponent)(new tn.wA(ji,Z=>function gr(Z){return{getToken:ae=>G(Z,ae),addTokenListener:ae=>function he(Z,ae,Ae,ze){const{app:nt}=Z,ft=Tt(nt),ht={next:Ae,error:ze,type:ae};if(nn(nt,Object.assign(Object.assign({},ft),{tokenObservers:[...ft.tokenObservers,ht]})),ft.token&&Dt(ft.token)){const Tn=ft.token;Promise.resolve().then(()=>{Ae({token:Tn.token}),yt(Z)}).catch(()=>{})}ft.cachedTokenPromise.then(()=>yt(Z))}(Z,"INTERNAL",ae),removeTokenListener:ae=>Qe(Z.app,ae)}}(Z.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,dn.registerVersion)("@firebase/app-check","0.5.15")}();class Qn{constructor(){return(0,Be.vb)("app-check")}}typeof window<"u"&&window;var Ar=b(127);const Br=new m.OlP("angularfire2.auth.use-emulator"),Mr=new m.OlP("angularfire2.auth.settings"),Di=new m.OlP("angularfire2.auth.tenant-id"),Ui=new m.OlP("angularfire2.auth.langugage-code"),ri=new m.OlP("angularfire2.auth.use-device-language"),ii=new m.OlP("angularfire.auth.persistence");let ns=(()=>{class Z{constructor(Ae,ze,nt,ft,ht,Tn,sn,Kn,Dn,Pr,jr,Vn){const qn=new c.x,D=(0,F.of)(void 0).pipe((0,R.Q)(ht.outsideAngular),(0,ee.w)(()=>ft.runOutsideAngular(()=>b.e(545).then(b.bind(b,9545)))),(0,L.U)(()=>(0,Ie.on)(Ae,ft,ze)),(0,L.U)(A=>((Z,ae,Ae,ze,nt,ft,ht,Tn)=>(0,Ie.cc)(`${Z.name}.auth`,"AngularFireAuth",Z.name,()=>{const sn=ae.runOutsideAngular(()=>Z.auth());if(Ae&&sn.useEmulator(...Ae),ze&&(sn.tenantId=ze),sn.languageCode=nt,ft&&sn.useDeviceLanguage(),ht)for(const[Kn,Dn]of Object.entries(ht))sn.settings[Kn]=Dn;return Tn&&sn.setPersistence(Tn),sn},[Ae,ze,nt,ft,ht,Tn]))(A,ft,Tn,Kn,Dn,Pr,sn,jr)),(0,de.d)({bufferSize:1,refCount:!1}));if((0,Te.PM)(nt))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,F.of)(null);else{D.pipe((0,je.P)()).subscribe();const E=D.pipe((0,ee.w)(Ne=>Ne.getRedirectResult().then(we=>we,()=>null)),Be.iC,(0,de.d)({bufferSize:1,refCount:!1})),O=D.pipe((0,ee.w)(Ne=>new z.y(we=>({unsubscribe:ft.runOutsideAngular(()=>Ne.onAuthStateChanged(bt=>we.next(bt),bt=>we.error(bt),()=>we.complete()))})))),re=D.pipe((0,ee.w)(Ne=>new z.y(we=>({unsubscribe:ft.runOutsideAngular(()=>Ne.onIdTokenChanged(bt=>we.next(bt),bt=>we.error(bt),()=>we.complete()))}))));this.authState=E.pipe(te(O),(0,Oe.R)(ht.outsideAngular),(0,R.Q)(ht.insideAngular)),this.user=E.pipe(te(re),(0,Oe.R)(ht.outsideAngular),(0,R.Q)(ht.insideAngular)),this.idToken=this.user.pipe((0,ee.w)(Ne=>Ne?(0,U.D)(Ne.getIdToken()):(0,F.of)(null))),this.idTokenResult=this.user.pipe((0,ee.w)(Ne=>Ne?(0,U.D)(Ne.getIdTokenResult()):(0,F.of)(null))),this.credential=(0,J.T)(E,qn,this.authState.pipe((0,xe.h)(Ne=>!Ne))).pipe((0,L.U)(Ne=>Ne?.user?Ne:null),(0,Oe.R)(ht.outsideAngular),(0,R.Q)(ht.insideAngular))}return(0,Ie.pX)(this,D,ft,{spy:{apply:(A,E,O)=>{(A.startsWith("signIn")||A.startsWith("createUser"))&&O.then(re=>qn.next(re))}}})}}return Z.\u0275fac=function(Ae){return new(Ae||Z)(m.LFG(Ie.Dh),m.LFG(Ie.xv,8),m.LFG(m.Lbi),m.LFG(m.R0b),m.LFG(Be.HU),m.LFG(Br,8),m.LFG(Mr,8),m.LFG(Di,8),m.LFG(Ui,8),m.LFG(ri,8),m.LFG(ii,8),m.LFG(Qn,8))},Z.\u0275prov=m.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"any"}),Z})(),Ei=(()=>{class Z{constructor(){Ar.Z.registerVersion("angularfire",Be.q4.full,"auth-compat")}}return Z.\u0275fac=function(Ae){return new(Ae||Z)},Z.\u0275mod=m.oAB({type:Z}),Z.\u0275inj=m.cJS({providers:[ns]}),Z})()},2011:(it,De,b)=>{b.d(De,{Dh:()=>ie,GT:()=>J,cc:()=>Oe,hO:()=>je,on:()=>R,pX:()=>U,xv:()=>te});var m=b(4650),c=b(127),F=b(5813);it=b.hmd(it);const z=["ngOnDestroy"],U=(Te,Je,ke,Ce={})=>new Proxy(Te,{get:(x,K)=>ke.runOutsideAngular(()=>{var le;if(Te[K])return!(null===(le=Ce?.spy)||void 0===le)&&le.get&&Ce.spy.get(K,Te[K]),Te[K];if(z.indexOf(K)>-1)return()=>{};const ue=Je.toPromise().then(W=>{const ge=W&&W[K];return"function"==typeof ge?ge.bind(W):ge&&ge.then?ge.then(H=>ke.run(()=>H)):ke.run(()=>ge)});return new Proxy(()=>{},{get:(W,ge)=>ue[ge],apply:(W,ge,H)=>ue.then(ne=>{var me;const ve=ne&&ne(...H);return!(null===(me=Ce?.spy)||void 0===me)&&me.apply&&Ce.spy.apply(K,H,ve),ve})})})}),J=(Te,Je)=>{Je.forEach(ke=>{Object.getOwnPropertyNames(ke.prototype||ke).forEach(Ce=>{Object.defineProperty(Te.prototype,Ce,Object.getOwnPropertyDescriptor(ke.prototype||ke,Ce))})})};class ee{constructor(Je){return Je}}const ie=new m.OlP("angularfire2.app.options"),te=new m.OlP("angularfire2.app.name");function R(Te,Je,ke){const x="object"==typeof ke&&ke||{};x.name=x.name||"string"==typeof ke&&ke||"[DEFAULT]";const le=c.Z.apps.filter(ue=>ue&&ue.name===x.name)[0]||Je.runOutsideAngular(()=>c.Z.initializeApp(Te,x));try{JSON.stringify(Te)!==JSON.stringify(le.options)&&L("error",`${le.name} Firebase App already initialized with different options${it.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new ee(le)}const L=(Te,...Je)=>{(0,m.X6Q)()&&typeof console<"u"&&console[Te](...Je)},de={provide:ee,useFactory:R,deps:[ie,m.R0b,[new m.FiY,te]]};let je=(()=>{class Te{constructor(ke){c.Z.registerVersion("angularfire",F.q4.full,"core"),c.Z.registerVersion("angularfire",F.q4.full,"app-compat"),c.Z.registerVersion("angular",m.q4F.full,ke.toString())}static initializeApp(ke,Ce){return{ngModule:Te,providers:[{provide:ie,useValue:ke},{provide:te,useValue:Ce}]}}}return Te.\u0275fac=function(ke){return new(ke||Te)(m.LFG(m.Lbi))},Te.\u0275mod=m.oAB({type:Te}),Te.\u0275inj=m.cJS({providers:[de]}),Te})();function Oe(Te,Je,ke,Ce,x){const[,K,le]=globalThis.\u0275AngularfireInstanceCache.find(ue=>ue[0]===Te)||[];if(K)return function xe(Te,Je){try{return Te.toString()===Je.toString()}catch{return Te===Je}}(x,le)||(Ie("error",`${Je} was already initialized on the ${ke} Firebase App with different settings.${Be?" You may need to reload as Firebase is not HMR aware.":""}`),Ie("warn",{is:x,was:le})),K;{const ue=Ce();return globalThis.\u0275AngularfireInstanceCache.push([Te,ue,x]),ue}}const Be=!!it.hot,Ie=(Te,...Je)=>{(0,m.X6Q)()&&typeof console<"u"&&console[Te](...Je)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},5813:(it,De,b)=>{b.d(De,{q4:()=>Ni,iC:()=>nl,HU:()=>zl,vb:()=>_d,JM:()=>Ko});var m=b(4650),c=b(5867),F=b(5861),z=b(9681),U=b(2090),J=b(4859),ee=b(1877),ie=b(8766);const te="@firebase/installations",R="0.5.15",de=`w:${R}`,je="FIS_v2",Je=new U.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 ke(v){return v instanceof U.ZR&&v.code.includes("request-failed")}function Ce({projectId:v}){return`https://firebaseinstallations.googleapis.com/v1/projects/${v}/installations`}function x(v){return{token:v.token,requestStatus:2,expiresIn:ne(v.expiresIn),creationTime:Date.now()}}function K(v,C){return le.apply(this,arguments)}function le(){return(le=(0,F.Z)(function*(v,C){const $=(yield C.json()).error;return Je.create("request-failed",{requestName:v,serverCode:$.code,serverMessage:$.message,serverStatus:$.status})})).apply(this,arguments)}function ue({apiKey:v}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":v})}function W(v,{refreshToken:C}){const I=ue(v);return I.append("Authorization",function me(v){return`${je} ${v}`}(C)),I}function ge(v){return H.apply(this,arguments)}function H(){return(H=(0,F.Z)(function*(v){const C=yield v();return C.status>=500&&C.status<600?v():C})).apply(this,arguments)}function ne(v){return Number(v.replace("s","000"))}function ve(v,C){return _e.apply(this,arguments)}function _e(){return(_e=(0,F.Z)(function*({appConfig:v,heartbeatServiceProvider:C},{fid:I}){const $=Ce(v),be=ue(v),Le=C.getImmediate({optional:!0});if(Le){const ln=yield Le.getHeartbeatsHeader();ln&&be.append("x-firebase-client",ln)}const Et={method:"POST",headers:be,body:JSON.stringify({fid:I,authVersion:je,appId:v.appId,sdkVersion:de})},Ft=yield ge(()=>fetch($,Et));if(Ft.ok){const ln=yield Ft.json();return{fid:ln.fid||I,registrationStatus:2,refreshToken:ln.refreshToken,authToken:x(ln.authToken)}}throw yield K("Create Installation",Ft)})).apply(this,arguments)}function Ve(v){return new Promise(C=>{setTimeout(C,v)})}const qt=/^[cdef][\w-]{21}$/;function lt(){try{const v=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(v),v[0]=112+v[0]%16;const I=function dn(v){return function ut(v){return btoa(String.fromCharCode(...v)).replace(/\+/g,"-").replace(/\//g,"_")}(v).substr(0,22)}(v);return qt.test(I)?I:""}catch{return""}}function tn(v){return`${v.appName}!${v.appId}`}const $e=new Map;function Ye(v,C){const I=tn(v);ct(I,C),function Tt(v,C){const I=function vn(){return!nn&&"BroadcastChannel"in self&&(nn=new BroadcastChannel("[Firebase] FID Change"),nn.onmessage=v=>{ct(v.data.key,v.data.fid)}),nn}();I&&I.postMessage({key:v,fid:C}),function Wn(){0===$e.size&&nn&&(nn.close(),nn=null)}()}(I,C)}function ct(v,C){const I=$e.get(v);if(I)for(const $ of I)$(C)}let nn=null;const Nn="firebase-installations-store";let Un=null;function Mt(){return Un||(Un=(0,ie.X3)("firebase-installations-database",1,{upgrade:(v,C)=>{0===C&&v.createObjectStore(Nn)}})),Un}function Hn(v,C){return _t.apply(this,arguments)}function _t(){return(_t=(0,F.Z)(function*(v,C){const I=tn(v),be=(yield Mt()).transaction(Nn,"readwrite"),Le=be.objectStore(Nn),Xe=yield Le.get(I);return yield Le.put(C,I),yield be.done,(!Xe||Xe.fid!==C.fid)&&Ye(v,C.fid),C})).apply(this,arguments)}function Rn(v){return St.apply(this,arguments)}function St(){return(St=(0,F.Z)(function*(v){const C=tn(v),$=(yield Mt()).transaction(Nn,"readwrite");yield $.objectStore(Nn).delete(C),yield $.done})).apply(this,arguments)}function ar(v,C){return wn.apply(this,arguments)}function wn(){return(wn=(0,F.Z)(function*(v,C){const I=tn(v),be=(yield Mt()).transaction(Nn,"readwrite"),Le=be.objectStore(Nn),Xe=yield Le.get(I),Et=C(Xe);return void 0===Et?yield Le.delete(I):yield Le.put(Et,I),yield be.done,Et&&(!Xe||Xe.fid!==Et.fid)&&Ye(v,Et.fid),Et})).apply(this,arguments)}function He(v){return se.apply(this,arguments)}function se(){return(se=(0,F.Z)(function*(v){let C;const I=yield ar(v.appConfig,$=>{const be=fe($),Le=Ke(v,be);return C=Le.registrationPromise,Le.installationEntry});return""===I.fid?{installationEntry:yield C}:{installationEntry:I,registrationPromise:C}})).apply(this,arguments)}function fe(v){return an(v||{fid:lt(),registrationStatus:0})}function Ke(v,C){if(0===C.registrationStatus){if(!navigator.onLine)return{installationEntry:C,registrationPromise:Promise.reject(Je.create("app-offline"))};const I={fid:C.fid,registrationStatus:1,registrationTime:Date.now()},$=function Se(v,C){return tt.apply(this,arguments)}(v,I);return{installationEntry:I,registrationPromise:$}}return 1===C.registrationStatus?{installationEntry:C,registrationPromise:Gt(v)}:{installationEntry:C}}function tt(){return(tt=(0,F.Z)(function*(v,C){try{const I=yield ve(v,C);return Hn(v.appConfig,I)}catch(I){throw ke(I)&&409===I.customData.serverCode?yield Rn(v.appConfig):yield Hn(v.appConfig,{fid:C.fid,registrationStatus:0}),I}})).apply(this,arguments)}function Gt(v){return $t.apply(this,arguments)}function $t(){return($t=(0,F.Z)(function*(v){let C=yield st(v.appConfig);for(;1===C.registrationStatus;)yield Ve(100),C=yield st(v.appConfig);if(0===C.registrationStatus){const{installationEntry:I,registrationPromise:$}=yield He(v);return $||I}return C})).apply(this,arguments)}function st(v){return ar(v,C=>{if(!C)throw Je.create("installation-not-found");return an(C)})}function an(v){return function Cn(v){return 1===v.registrationStatus&&v.registrationTime+1e4<Date.now()}(v)?{fid:v.fid,registrationStatus:0}:v}function Jt(v,C){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,F.Z)(function*({appConfig:v,heartbeatServiceProvider:C},I){const $=Xt(v,I),be=W(v,I),Le=C.getImmediate({optional:!0});if(Le){const ln=yield Le.getHeartbeatsHeader();ln&&be.append("x-firebase-client",ln)}const Et={method:"POST",headers:be,body:JSON.stringify({installation:{sdkVersion:de,appId:v.appId}})},Ft=yield ge(()=>fetch($,Et));if(Ft.ok)return x(yield Ft.json());throw yield K("Generate Auth Token",Ft)})).apply(this,arguments)}function Xt(v,{fid:C}){return`${Ce(v)}/${C}/authTokens:generate`}function Pt(v){return er.apply(this,arguments)}function er(){return(er=(0,F.Z)(function*(v,C=!1){let I;const $=yield ar(v.appConfig,Le=>{if(!rn(Le))throw Je.create("not-registered");const Xe=Le.authToken;if(!C&&Y(Xe))return Le;if(1===Xe.requestStatus)return I=pt(v,C),Le;{if(!navigator.onLine)throw Je.create("app-offline");const Et=pe(Le);return I=kt(v,Et),Et}});return I?yield I:$.authToken})).apply(this,arguments)}function pt(v,C){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,F.Z)(function*(v,C){let I=yield gt(v.appConfig);for(;1===I.authToken.requestStatus;)yield Ve(100),I=yield gt(v.appConfig);const $=I.authToken;return 0===$.requestStatus?Pt(v,C):$})).apply(this,arguments)}function gt(v){return ar(v,C=>{if(!rn(C))throw Je.create("not-registered");return function Re(v){return 1===v.requestStatus&&v.requestTime+1e4<Date.now()}(C.authToken)?Object.assign(Object.assign({},C),{authToken:{requestStatus:0}}):C})}function kt(v,C){return jt.apply(this,arguments)}function jt(){return(jt=(0,F.Z)(function*(v,C){try{const I=yield Jt(v,C),$=Object.assign(Object.assign({},C),{authToken:I});return yield Hn(v.appConfig,$),I}catch(I){if(!ke(I)||401!==I.customData.serverCode&&404!==I.customData.serverCode){const $=Object.assign(Object.assign({},C),{authToken:{requestStatus:0}});yield Hn(v.appConfig,$)}else yield Rn(v.appConfig);throw I}})).apply(this,arguments)}function rn(v){return void 0!==v&&2===v.registrationStatus}function Y(v){return 2===v.requestStatus&&!function V(v){const C=Date.now();return C<v.creationTime||v.creationTime+v.expiresIn<C+36e5}(v)}function pe(v){const C={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},v),{authToken:C})}function dt(){return(dt=(0,F.Z)(function*(v){const C=v,{installationEntry:I,registrationPromise:$}=yield He(C);return $?$.catch(console.error):Pt(C).catch(console.error),I.fid})).apply(this,arguments)}function Kt(){return(Kt=(0,F.Z)(function*(v,C=!1){const I=v;return yield hn(I),(yield Pt(I,C)).token})).apply(this,arguments)}function hn(v){return rt.apply(this,arguments)}function rt(){return(rt=(0,F.Z)(function*(v){const{registrationPromise:C}=yield He(v);C&&(yield C)})).apply(this,arguments)}function mn(v){return Je.create("missing-app-config-values",{valueName:v})}const Dt="installations",xr=v=>{const C=v.getProvider("app").getImmediate(),I=function Zt(v){if(!v||!v.options)throw mn("App Configuration");if(!v.name)throw mn("App Name");const C=["projectId","apiKey","appId"];for(const I of C)if(!v.options[I])throw mn(I);return{appName:v.name,projectId:v.options.projectId,apiKey:v.options.apiKey,appId:v.options.appId}}(C);return{app:C,appConfig:I,heartbeatServiceProvider:(0,z._getProvider)(C,"heartbeat"),_delete:()=>Promise.resolve()}},zr=v=>{const C=v.getProvider("app").getImmediate(),I=(0,z._getProvider)(C,Dt).getImmediate();return{getId:()=>function Ee(v){return dt.apply(this,arguments)}(I),getToken:be=>function At(v){return Kt.apply(this,arguments)}(I,be)}};(function gr(){(0,z._registerComponent)(new J.wA(Dt,xr,"PUBLIC")),(0,z._registerComponent)(new J.wA("installations-internal",zr,"PRIVATE"))})(),(0,z.registerVersion)(te,R),(0,z.registerVersion)(te,R,"esm2017");const kn="@firebase/remote-config",Yn=new U.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 ji{constructor(C,I,$,be){this.client=C,this.storage=I,this.storageCache=$,this.logger=be}isCachedDataFresh(C,I){if(!I)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const $=Date.now()-I,be=$<=C;return this.logger.debug(`Config fetch cache check. Cache age millis: ${$}. Cache max age millis (minimumFetchIntervalMillis setting): ${C}. Is cache hit: ${be}.`),be}fetch(C){var I=this;return(0,F.Z)(function*(){const[$,be]=yield Promise.all([I.storage.getLastSuccessfulFetchTimestampMillis(),I.storage.getLastSuccessfulFetchResponse()]);if(be&&I.isCachedDataFresh(C.cacheMaxAgeMillis,$))return be;C.eTag=be&&be.eTag;const Le=yield I.client.fetch(C),Xe=[I.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Le.status&&Xe.push(I.storage.setLastSuccessfulFetchResponse(Le)),yield Promise.all(Xe),Le})()}}function Ur(v=navigator){return v.languages&&v.languages[0]||v.language}class Ii{constructor(C,I,$,be,Le,Xe){this.firebaseInstallations=C,this.sdkVersion=I,this.namespace=$,this.projectId=be,this.apiKey=Le,this.appId=Xe}fetch(C){var I=this;return(0,F.Z)(function*(){var $,be,Le;const[Xe,Et]=yield Promise.all([I.firebaseInstallations.getId(),I.firebaseInstallations.getToken()]),ln=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${I.projectId}/namespaces/${I.namespace}:fetch?key=${I.apiKey}`,fn={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":C.eTag||"*"},Lt={sdk_version:I.sdkVersion,app_instance_id:Xe,app_instance_id_token:Et,app_id:I.appId,language_code:Ur()},Dr={method:"POST",headers:fn,body:JSON.stringify(Lt)},Qr=fetch(ln,Dr),qo=new Promise((Fs,wo)=>{C.signal.addEventListener(()=>{const Kl=new Error("The operation was aborted.");Kl.name="AbortError",wo(Kl)})});let No;try{yield Promise.race([Qr,qo]),No=yield Qr}catch(Fs){let wo="fetch-client-network";throw"AbortError"===(null===($=Fs)||void 0===$?void 0:$.name)&&(wo="fetch-timeout"),Yn.create(wo,{originalErrorMessage:null===(be=Fs)||void 0===be?void 0:be.message})}let ki=No.status;const ko=No.headers.get("ETag")||void 0;let Ra,Jo;if(200===No.status){let Fs;try{Fs=yield No.json()}catch(wo){throw Yn.create("fetch-client-parse",{originalErrorMessage:null===(Le=wo)||void 0===Le?void 0:Le.message})}Ra=Fs.entries,Jo=Fs.state}if("INSTANCE_STATE_UNSPECIFIED"===Jo?ki=500:"NO_CHANGE"===Jo?ki=304:("NO_TEMPLATE"===Jo||"EMPTY_CONFIG"===Jo)&&(Ra={}),304!==ki&&200!==ki)throw Yn.create("fetch-status",{httpStatus:ki});return{status:ki,eTag:ko,config:Ra}})()}}class Lr{constructor(C,I){this.client=C,this.storage=I}fetch(C){var I=this;return(0,F.Z)(function*(){const $=(yield I.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return I.attemptFetch(C,$)})()}attemptFetch(C,{throttleEndTimeMillis:I,backoffCount:$}){var be=this;return(0,F.Z)(function*(){yield function yi(v,C){return new Promise((I,$)=>{const be=Math.max(C-Date.now(),0),Le=setTimeout(I,be);v.addEventListener(()=>{clearTimeout(Le),$(Yn.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}(C.signal,I);try{const Le=yield be.client.fetch(C);return yield be.storage.deleteThrottleMetadata(),Le}catch(Le){if(!function Qn(v){if(!(v instanceof U.ZR&&v.customData))return!1;const C=Number(v.customData.httpStatus);return 429===C||500===C||503===C||504===C}(Le))throw Le;const Xe={throttleEndTimeMillis:Date.now()+(0,U.$s)($),backoffCount:$+1};return yield be.storage.setThrottleMetadata(Xe),be.attemptFetch(C,Xe)}})()}}class Ir{constructor(C,I,$,be,Le){this.app=C,this._client=I,this._storageCache=$,this._storage=be,this._logger=Le,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 mr(v,C){var I;const $=v.target.error||void 0;return Yn.create(C,{originalErrorMessage:$&&(null===(I=$)||void 0===I?void 0:I.message)})}const wr="app_namespace_store";class Wr{constructor(C,I,$,be=function es(){return new Promise((v,C)=>{var I;try{const $=indexedDB.open("firebase_remote_config",1);$.onerror=be=>{C(mr(be,"storage-open"))},$.onsuccess=be=>{v(be.target.result)},$.onupgradeneeded=be=>{0===be.oldVersion&&be.target.result.createObjectStore(wr,{keyPath:"compositeKey"})}}catch($){C(Yn.create("storage-open",{originalErrorMessage:null===(I=$)||void 0===I?void 0:I.message}))}})}()){this.appId=C,this.appName=I,this.namespace=$,this.openDbPromise=be}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(C){return this.set("last_fetch_status",C)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(C){return this.set("last_successful_fetch_timestamp_millis",C)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(C){return this.set("last_successful_fetch_response",C)}getActiveConfig(){return this.get("active_config")}setActiveConfig(C){return this.set("active_config",C)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(C){return this.set("active_config_etag",C)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(C){return this.set("throttle_metadata",C)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(C){var I=this;return(0,F.Z)(function*(){const $=yield I.openDbPromise;return new Promise((be,Le)=>{var Xe;const Ft=$.transaction([wr],"readonly").objectStore(wr),ln=I.createCompositeKey(C);try{const fn=Ft.get(ln);fn.onerror=Lt=>{Le(mr(Lt,"storage-get"))},fn.onsuccess=Lt=>{const Dr=Lt.target.result;be(Dr?Dr.value:void 0)}}catch(fn){Le(Yn.create("storage-get",{originalErrorMessage:null===(Xe=fn)||void 0===Xe?void 0:Xe.message}))}})})()}set(C,I){var $=this;return(0,F.Z)(function*(){const be=yield $.openDbPromise;return new Promise((Le,Xe)=>{var Et;const ln=be.transaction([wr],"readwrite").objectStore(wr),fn=$.createCompositeKey(C);try{const Lt=ln.put({compositeKey:fn,value:I});Lt.onerror=Dr=>{Xe(mr(Dr,"storage-set"))},Lt.onsuccess=()=>{Le()}}catch(Lt){Xe(Yn.create("storage-set",{originalErrorMessage:null===(Et=Lt)||void 0===Et?void 0:Et.message}))}})})()}delete(C){var I=this;return(0,F.Z)(function*(){const $=yield I.openDbPromise;return new Promise((be,Le)=>{var Xe;const Ft=$.transaction([wr],"readwrite").objectStore(wr),ln=I.createCompositeKey(C);try{const fn=Ft.delete(ln);fn.onerror=Lt=>{Le(mr(Lt,"storage-delete"))},fn.onsuccess=()=>{be()}}catch(fn){Le(Yn.create("storage-delete",{originalErrorMessage:null===(Xe=fn)||void 0===Xe?void 0:Xe.message}))}})})()}createCompositeKey(C){return[this.appId,this.appName,this.namespace,C].join()}}class ni{constructor(C){this.storage=C}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var C=this;return(0,F.Z)(function*(){const I=C.storage.getLastFetchStatus(),$=C.storage.getLastSuccessfulFetchTimestampMillis(),be=C.storage.getActiveConfig(),Le=yield I;Le&&(C.lastFetchStatus=Le);const Xe=yield $;Xe&&(C.lastSuccessfulFetchTimestampMillis=Xe);const Et=yield be;Et&&(C.activeConfig=Et)})()}setLastFetchStatus(C){return this.lastFetchStatus=C,this.storage.setLastFetchStatus(C)}setLastSuccessfulFetchTimestampMillis(C){return this.lastSuccessfulFetchTimestampMillis=C,this.storage.setLastSuccessfulFetchTimestampMillis(C)}setActiveConfig(C){return this.activeConfig=C,this.storage.setActiveConfig(C)}}function ts(){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,F.Z)(function*(){if(!(0,U.hl)())return!1;try{return yield(0,U.eu)()}catch{return!1}})).apply(this,arguments)}!function _i(){(0,z._registerComponent)(new J.wA("remote-config",function v(C,{instanceIdentifier:I}){const $=C.getProvider("app").getImmediate(),be=C.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Yn.create("registration-window");if(!(0,U.hl)())throw Yn.create("indexed-db-unavailable");const{projectId:Le,apiKey:Xe,appId:Et}=$.options;if(!Le)throw Yn.create("registration-project-id");if(!Xe)throw Yn.create("registration-api-key");if(!Et)throw Yn.create("registration-app-id");const Ft=new Wr(Et,$.name,I=I||"firebase"),ln=new ni(Ft),fn=new ee.Yd(kn);fn.logLevel=ee.in.ERROR;const Lt=new Ii(be,z.SDK_VERSION,I,Le,Xe,Et),Dr=new Lr(Lt,Ft),Qr=new ji(Dr,Ft,ln,fn),qo=new Ir($,Qr,ln,Ft,fn);return function Bi(v){const C=(0,U.m9)(v);C._initializePromise||(C._initializePromise=C._storageCache.loadFromStorage().then(()=>{C._isInitializationComplete=!0}))}(qo),qo},"PUBLIC").setMultipleInstances(!0)),(0,z.registerVersion)(kn,"0.3.14"),(0,z.registerVersion)(kn,"0.3.14","esm2017")}();const Gn="/firebase-messaging-sw.js",Br="/firebase-cloud-messaging-push-scope",Mr="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ui="google.c.a.c_id",ri="google.c.a.c_l",ii="google.c.a.ts",Ws="google.c.a.e";var Ei=(()=>{return(v=Ei||(Ei={})).PUSH_RECEIVED="push-received",v.NOTIFICATION_CLICKED="notification-clicked",Ei;var v})();function Z(v){const C=new Uint8Array(v);return btoa(String.fromCharCode(...C)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ae(v){const I=(v+"=".repeat((4-v.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),$=atob(I),be=new Uint8Array($.length);for(let Le=0;Le<$.length;++Le)be[Le]=$.charCodeAt(Le);return be}const Ae="fcm_token_details_db",nt="fcm_token_object_Store";function ft(v){return ht.apply(this,arguments)}function ht(){return ht=(0,F.Z)(function*(v){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Le=>Le.name).includes(Ae))return null;let C=null;return(yield(0,ie.X3)(Ae,5,{upgrade:($=(0,F.Z)(function*(be,Le,Xe,Et){var Ft;if(Le<2||!be.objectStoreNames.contains(nt))return;const ln=Et.objectStore(nt),fn=yield ln.index("fcmSenderId").get(v);if(yield ln.clear(),fn)if(2===Le){const Lt=fn;if(!Lt.auth||!Lt.p256dh||!Lt.endpoint)return;C={token:Lt.fcmToken,createTime:null!==(Ft=Lt.createTime)&&void 0!==Ft?Ft:Date.now(),subscriptionOptions:{auth:Lt.auth,p256dh:Lt.p256dh,endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:"string"==typeof Lt.vapidKey?Lt.vapidKey:Z(Lt.vapidKey)}}}else if(3===Le){const Lt=fn;C={token:Lt.fcmToken,createTime:Lt.createTime,subscriptionOptions:{auth:Z(Lt.auth),p256dh:Z(Lt.p256dh),endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:Z(Lt.vapidKey)}}}else if(4===Le){const Lt=fn;C={token:Lt.fcmToken,createTime:Lt.createTime,subscriptionOptions:{auth:Z(Lt.auth),p256dh:Z(Lt.p256dh),endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:Z(Lt.vapidKey)}}}}),function(Le,Xe,Et,Ft){return $.apply(this,arguments)})})).close(),yield(0,ie.Lj)(Ae),yield(0,ie.Lj)("fcm_vapid_details_db"),yield(0,ie.Lj)("undefined"),Tn(C)?C:null;var $}),ht.apply(this,arguments)}function Tn(v){if(!v||!v.subscriptionOptions)return!1;const{subscriptionOptions:C}=v;return"number"==typeof v.createTime&&v.createTime>0&&"string"==typeof v.token&&v.token.length>0&&"string"==typeof C.auth&&C.auth.length>0&&"string"==typeof C.p256dh&&C.p256dh.length>0&&"string"==typeof C.endpoint&&C.endpoint.length>0&&"string"==typeof C.swScope&&C.swScope.length>0&&"string"==typeof C.vapidKey&&C.vapidKey.length>0}const Dn="firebase-messaging-store";let Pr=null;function jr(){return Pr||(Pr=(0,ie.X3)("firebase-messaging-database",1,{upgrade:(v,C)=>{0===C&&v.createObjectStore(Dn)}})),Pr}function Vn(v){return qn.apply(this,arguments)}function qn(){return(qn=(0,F.Z)(function*(v){const C=re(v),$=yield(yield jr()).transaction(Dn).objectStore(Dn).get(C);if($)return $;{const be=yield ft(v.appConfig.senderId);if(be)return yield D(v,be),be}})).apply(this,arguments)}function D(v,C){return A.apply(this,arguments)}function A(){return(A=(0,F.Z)(function*(v,C){const I=re(v),be=(yield jr()).transaction(Dn,"readwrite");return yield be.objectStore(Dn).put(C,I),yield be.done,C})).apply(this,arguments)}function E(v){return O.apply(this,arguments)}function O(){return(O=(0,F.Z)(function*(v){const C=re(v),$=(yield jr()).transaction(Dn,"readwrite");yield $.objectStore(Dn).delete(C),yield $.done})).apply(this,arguments)}function re({appConfig:v}){return v.appId}const we=new U.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 bt(v,C){return Sn.apply(this,arguments)}function Sn(){return(Sn=(0,F.Z)(function*(v,C){var I;const $=yield zn(v),be=Vt(C),Le={method:"POST",headers:$,body:JSON.stringify(be)};let Xe;try{Xe=yield(yield fetch(_n(v.appConfig),Le)).json()}catch(Et){throw we.create("token-subscribe-failed",{errorInfo:null===(I=Et)||void 0===I?void 0:I.toString()})}if(Xe.error)throw we.create("token-subscribe-failed",{errorInfo:Xe.error.message});if(!Xe.token)throw we.create("token-subscribe-no-token");return Xe.token})).apply(this,arguments)}function Mn(v,C){return bn.apply(this,arguments)}function bn(){return(bn=(0,F.Z)(function*(v,C){var I;const $=yield zn(v),be=Vt(C.subscriptionOptions),Le={method:"PATCH",headers:$,body:JSON.stringify(be)};let Xe;try{Xe=yield(yield fetch(`${_n(v.appConfig)}/${C.token}`,Le)).json()}catch(Et){throw we.create("token-update-failed",{errorInfo:null===(I=Et)||void 0===I?void 0:I.toString()})}if(Xe.error)throw we.create("token-update-failed",{errorInfo:Xe.error.message});if(!Xe.token)throw we.create("token-update-no-token");return Xe.token})).apply(this,arguments)}function cn(v,C){return Ln.apply(this,arguments)}function Ln(){return(Ln=(0,F.Z)(function*(v,C){var I;const be={method:"DELETE",headers:yield zn(v)};try{const Xe=yield(yield fetch(`${_n(v.appConfig)}/${C}`,be)).json();if(Xe.error)throw we.create("token-unsubscribe-failed",{errorInfo:Xe.error.message})}catch(Le){throw we.create("token-unsubscribe-failed",{errorInfo:null===(I=Le)||void 0===I?void 0:I.toString()})}})).apply(this,arguments)}function _n({projectId:v}){return`https://fcmregistrations.googleapis.com/v1/projects/${v}/registrations`}function zn(v){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,F.Z)(function*({appConfig:v,installations:C}){const I=yield C.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":v.apiKey,"x-goog-firebase-installations-auth":`FIS ${I}`})})).apply(this,arguments)}function Vt({p256dh:v,auth:C,endpoint:I,vapidKey:$}){const be={web:{endpoint:I,auth:C,p256dh:v}};return $!==Mr&&(be.web.applicationPubKey=$),be}const si=6048e5;function Or(v){return Bn.apply(this,arguments)}function Bn(){return(Bn=(0,F.Z)(function*(v){const C=yield po(v.swRegistration,v.vapidKey),I={vapidKey:v.vapidKey,swScope:v.swRegistration.scope,endpoint:C.endpoint,auth:Z(C.getKey("auth")),p256dh:Z(C.getKey("p256dh"))},$=yield Vn(v.firebaseDependencies);if($){if(Ai($.subscriptionOptions,I))return Date.now()>=$.createTime+si?Gr(v,{token:$.token,createTime:Date.now(),subscriptionOptions:I}):$.token;try{yield cn(v.firebaseDependencies,$.token)}catch(be){console.warn(be)}return is(v.firebaseDependencies,I)}return is(v.firebaseDependencies,I)})).apply(this,arguments)}function oi(v){return ai.apply(this,arguments)}function ai(){return(ai=(0,F.Z)(function*(v){const C=yield Vn(v.firebaseDependencies);C&&(yield cn(v.firebaseDependencies,C.token),yield E(v.firebaseDependencies));const I=yield v.swRegistration.pushManager.getSubscription();return!I||I.unsubscribe()})).apply(this,arguments)}function Gr(v,C){return rs.apply(this,arguments)}function rs(){return(rs=(0,F.Z)(function*(v,C){try{const I=yield Mn(v.firebaseDependencies,C),$=Object.assign(Object.assign({},C),{token:I,createTime:Date.now()});return yield D(v.firebaseDependencies,$),I}catch(I){throw yield oi(v),I}})).apply(this,arguments)}function is(v,C){return $i.apply(this,arguments)}function $i(){return($i=(0,F.Z)(function*(v,C){const $={token:yield bt(v,C),createTime:Date.now(),subscriptionOptions:C};return yield D(v,$),$.token})).apply(this,arguments)}function po(v,C){return Gs.apply(this,arguments)}function Gs(){return(Gs=(0,F.Z)(function*(v,C){return(yield v.pushManager.getSubscription())||v.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:ae(C)})})).apply(this,arguments)}function Ai(v,C){return C.vapidKey===v.vapidKey&&C.endpoint===v.endpoint&&C.auth===v.auth&&C.p256dh===v.p256dh}function dr(v){const C={from:v.from,collapseKey:v.collapse_key,messageId:v.fcmMessageId};return function li(v,C){if(!C.notification)return;v.notification={};const I=C.notification.title;I&&(v.notification.title=I);const $=C.notification.body;$&&(v.notification.body=$);const be=C.notification.image;be&&(v.notification.image=be)}(C,v),function ss(v,C){!C.data||(v.data=C.data)}(C,v),function Kr(v,C){var I,$,be,Le,Xe;if(!(C.fcmOptions||null!==(I=C.notification)&&void 0!==I&&I.click_action))return;v.fcmOptions={};const Et=null!==(be=null===($=C.fcmOptions)||void 0===$?void 0:$.link)&&void 0!==be?be:null===(Le=C.notification)||void 0===Le?void 0:Le.click_action;Et&&(v.fcmOptions.link=Et);const Ft=null===(Xe=C.fcmOptions)||void 0===Xe?void 0:Xe.analytics_label;Ft&&(v.fcmOptions.analyticsLabel=Ft)}(C,v),C}function Zr(v){return"object"==typeof v&&!!v&&Ui in v}function go(v,C){const I=[];for(let $=0;$<v.length;$++)I.push(v.charAt($)),$<C.length&&I.push(C.charAt($));return I.join("")}function Cs(v){return we.create("missing-app-config-values",{valueName:v})}go("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),go("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Ao{constructor(C,I,$){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const be=function Vi(v){if(!v||!v.options)throw Cs("App Configuration Object");if(!v.name)throw Cs("App Name");const C=["projectId","apiKey","appId","messagingSenderId"],{options:I}=v;for(const $ of C)if(!I[$])throw Cs($);return{appName:v.name,projectId:I.projectId,apiKey:I.apiKey,appId:I.appId,senderId:I.messagingSenderId}}(C);this.firebaseDependencies={app:C,appConfig:be,installations:I,analyticsProvider:$}}_delete(){return Promise.resolve()}}function zi(v){return os.apply(this,arguments)}function os(){return(os=(0,F.Z)(function*(v){var C;try{v.swRegistration=yield navigator.serviceWorker.register(Gn,{scope:Br}),v.swRegistration.update().catch(()=>{})}catch(I){throw we.create("failed-service-worker-registration",{browserErrorMessage:null===(C=I)||void 0===C?void 0:C.message})}})).apply(this,arguments)}function mo(v,C){return as.apply(this,arguments)}function as(){return(as=(0,F.Z)(function*(v,C){if(!C&&!v.swRegistration&&(yield zi(v)),C||!v.swRegistration){if(!(C instanceof ServiceWorkerRegistration))throw we.create("invalid-sw-registration");v.swRegistration=C}})).apply(this,arguments)}function Mo(v,C){return ls.apply(this,arguments)}function ls(){return(ls=(0,F.Z)(function*(v,C){C?v.vapidKey=C:v.vapidKey||(v.vapidKey=Mr)})).apply(this,arguments)}function yr(){return(yr=(0,F.Z)(function*(v,C){if(!navigator)throw we.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw we.create("permission-blocked");return yield Mo(v,C?.vapidKey),yield mo(v,C?.serviceWorkerRegistration),Or(v)})).apply(this,arguments)}function us(v,C,I){return Ci.apply(this,arguments)}function Ci(){return(Ci=(0,F.Z)(function*(v,C,I){const $=bs(C);(yield v.firebaseDependencies.analyticsProvider.get()).logEvent($,{message_id:I[Ui],message_name:I[ri],message_time:I[ii],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function bs(v){switch(v){case Ei.NOTIFICATION_CLICKED:return"notification_open";case Ei.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Zs(){return(Zs=(0,F.Z)(function*(v,C){const I=C.data;if(!I.isFirebaseMessaging)return;v.onMessageHandler&&I.messageType===Ei.PUSH_RECEIVED&&("function"==typeof v.onMessageHandler?v.onMessageHandler(dr(I)):v.onMessageHandler.next(dr(I)));const $=I.data;Zr($)&&"1"===$[Ws]&&(yield us(v,I.messageType,$))})).apply(this,arguments)}const ws="@firebase/messaging",Mi=v=>{const C=new Ao(v.getProvider("app").getImmediate(),v.getProvider("installations-internal").getImmediate(),v.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",I=>function Ks(v,C){return Zs.apply(this,arguments)}(C,I)),C},Pn=v=>{const C=v.getProvider("messaging").getImmediate();return{getToken:$=>function Wi(v,C){return yr.apply(this,arguments)}(C,$)}};function Ts(){return Gi.apply(this,arguments)}function Gi(){return(Gi=(0,F.Z)(function*(){try{yield(0,U.eu)()}catch{return!1}return typeof window<"u"&&(0,U.hl)()&&(0,U.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 Ys(){(0,z._registerComponent)(new J.wA("messaging",Mi,"PUBLIC")),(0,z._registerComponent)(new J.wA("messaging-internal",Pn,"PRIVATE")),(0,z.registerVersion)(ws,"0.9.19"),(0,z.registerVersion)(ws,"0.9.19","esm2017")}();const wi="analytics",Yr="firebase_id",Po="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Ti="https://www.googletagmanager.com/gtag/js",Zn=new ee.Yd("@firebase/analytics");function Ss(v){return Promise.all(v.map(C=>C.catch(I=>I)))}function Oo(v,C){const I=document.createElement("script");I.src=`${Ti}?l=${v}&id=${C}`,I.async=!0,document.head.appendChild(I)}function _o(v,C,I,$,be,Le){return ui.apply(this,arguments)}function ui(){return(ui=(0,F.Z)(function*(v,C,I,$,be,Le){const Xe=$[be];try{if(Xe)yield C[Xe];else{const Ft=(yield Ss(I)).find(ln=>ln.measurementId===be);Ft&&(yield C[Ft.appId])}}catch(Et){Zn.error(Et)}v("config",be,Le)})).apply(this,arguments)}function eo(v,C,I,$,be){return Is.apply(this,arguments)}function Is(){return(Is=(0,F.Z)(function*(v,C,I,$,be){try{let Le=[];if(be&&be.send_to){let Xe=be.send_to;Array.isArray(Xe)||(Xe=[Xe]);const Et=yield Ss(I);for(const Ft of Xe){const ln=Et.find(Lt=>Lt.measurementId===Ft),fn=ln&&C[ln.appId];if(!fn){Le=[];break}Le.push(fn)}}0===Le.length&&(Le=Object.values(C)),yield Promise.all(Le),v("event",$,be||{})}catch(Le){Zn.error(Le)}})).apply(this,arguments)}function Do(v){const C=window.document.getElementsByTagName("script");for(const I of Object.values(C))if(I.src&&I.src.includes(Ti)&&I.src.includes(v))return I;return null}const vr=new U.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.'}),to=new class fs{constructor(C={},I=1e3){this.throttleMetadata=C,this.intervalMillis=I}getThrottleMetadata(C){return this.throttleMetadata[C]}setThrottleMetadata(C,I){this.throttleMetadata[C]=I}deleteThrottleMetadata(C){delete this.throttleMetadata[C]}};function Eo(v){return new Headers({Accept:"application/json","x-goog-api-key":v})}function no(v){return Ro.apply(this,arguments)}function Ro(){return(Ro=(0,F.Z)(function*(v){var C;const{appId:I,apiKey:$}=v,be={method:"GET",headers:Eo($)},Le=Po.replace("{app-id}",I),Xe=yield fetch(Le,be);if(200!==Xe.status&&304!==Xe.status){let Et="";try{const Ft=yield Xe.json();null!==(C=Ft.error)&&void 0!==C&&C.message&&(Et=Ft.error.message)}catch{}throw vr.create("config-fetch-failed",{httpStatus:Xe.status,responseMessage:Et})}return Xe.json()})).apply(this,arguments)}function di(v){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,F.Z)(function*(v,C=to,I){const{appId:$,apiKey:be,measurementId:Le}=v.options;if(!$)throw vr.create("no-app-id");if(!be){if(Le)return{measurementId:Le,appId:$};throw vr.create("no-api-key")}const Xe=C.getThrottleMetadata($)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Et=new Ki;return setTimeout((0,F.Z)(function*(){Et.abort()}),void 0!==I?I:6e4),xi({appId:$,apiKey:be,measurementId:Le},Xe,Et,C)})).apply(this,arguments)}function xi(v,C,I){return hs.apply(this,arguments)}function hs(){return(hs=(0,F.Z)(function*(v,{throttleEndTimeMillis:C,backoffCount:I},$,be=to){var Le,Xe;const{appId:Et,measurementId:Ft}=v;try{yield $r($,C)}catch(ln){if(Ft)return Zn.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Ft} provided in the "measurementId" field in the local Firebase config. [${null===(Le=ln)||void 0===Le?void 0:Le.message}]`),{appId:Et,measurementId:Ft};throw ln}try{const ln=yield no(v);return be.deleteThrottleMetadata(Et),ln}catch(ln){const fn=ln;if(!Ms(fn)){if(be.deleteThrottleMetadata(Et),Ft)return Zn.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Ft} provided in the "measurementId" field in the local Firebase config. [${fn?.message}]`),{appId:Et,measurementId:Ft};throw ln}const Lt=503===Number(null===(Xe=fn?.customData)||void 0===Xe?void 0:Xe.httpStatus)?(0,U.$s)(I,be.intervalMillis,30):(0,U.$s)(I,be.intervalMillis),Dr={throttleEndTimeMillis:Date.now()+Lt,backoffCount:I+1};return be.setThrottleMetadata(Et,Dr),Zn.debug(`Calling attemptFetch again in ${Lt} millis`),xi(v,Dr,$,be)}})).apply(this,arguments)}function $r(v,C){return new Promise((I,$)=>{const be=Math.max(C-Date.now(),0),Le=setTimeout(I,be);v.addEventListener(()=>{clearTimeout(Le),$(vr.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}function Ms(v){if(!(v instanceof U.ZR&&v.customData))return!1;const C=Number(v.customData.httpStatus);return 429===C||500===C||503===C||504===C}class Ki{constructor(){this.listeners=[]}addEventListener(C){this.listeners.push(C)}abort(){this.listeners.forEach(C=>C())}}let Ps,a;function Os(){return(Os=(0,F.Z)(function*(v,C,I,$,be){if(be&&be.global)v("event",I,$);else{const Le=yield C;v("event",I,Object.assign(Object.assign({},$),{send_to:Le}))}})).apply(this,arguments)}function o(v){a=v}function p(v){Ps=v}function S(){return N.apply(this,arguments)}function N(){return(N=(0,F.Z)(function*(){var v;if(!(0,U.hl)())return Zn.warn(vr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,U.eu)()}catch(C){return Zn.warn(vr.create("indexeddb-unavailable",{errorInfo:null===(v=C)||void 0===v?void 0:v.toString()}).message),!1}return!0})).apply(this,arguments)}function q(){return(q=(0,F.Z)(function*(v,C,I,$,be,Le,Xe){var Et;const Ft=di(v);Ft.then(Qr=>{I[Qr.measurementId]=Qr.appId,v.options.measurementId&&Qr.measurementId!==v.options.measurementId&&Zn.warn(`The measurement ID in the local Firebase config (${v.options.measurementId}) does not match the measurement ID fetched from the server (${Qr.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(Qr=>Zn.error(Qr)),C.push(Ft);const ln=S().then(Qr=>{if(Qr)return $.getId()}),[fn,Lt]=yield Promise.all([Ft,ln]);Do(Le)||Oo(Le,fn.measurementId),a&&(be("consent","default",a),o(void 0)),be("js",new Date);const Dr=null!==(Et=Xe?.config)&&void 0!==Et?Et:{};return Dr.origin="firebase",Dr.update=!0,null!=Lt&&(Dr[Yr]=Lt),be("config",fn.measurementId,Dr),Ps&&(be("set",Ps),p(void 0)),fn.measurementId})).apply(this,arguments)}class Me{constructor(C){this.app=C}_delete(){return delete Ue[this.app.options.appId],Promise.resolve()}}let Ue={},vt=[];const It={};let f,d,en="dataLayer",u=!1;function P(v,C,I){!function w(){const v=[];if((0,U.ru)()&&v.push("This is a browser extension environment."),(0,U.zI)()||v.push("Cookies are not available."),v.length>0){const C=v.map(($,be)=>`(${be+1}) ${$}`).join(" "),I=vr.create("invalid-analytics-context",{errorInfo:C});Zn.warn(I.message)}}();const $=v.options.appId;if(!$)throw vr.create("no-app-id");if(!v.options.apiKey){if(!v.options.measurementId)throw vr.create("no-api-key");Zn.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 ${v.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Ue[$])throw vr.create("already-exists",{id:$});if(!u){!function Wo(v){let C=[];Array.isArray(window[v])?C=window[v]:window[v]=C}(en);const{wrappedGtag:Le,gtagCore:Xe}=function or(v,C,I,$,be){let Le=function(...Xe){window[$].push(arguments)};return window[be]&&"function"==typeof window[be]&&(Le=window[be]),window[be]=function ds(v,C,I,$){function Le(){return(Le=(0,F.Z)(function*(Xe,Et,Ft){try{"event"===Xe?yield eo(v,C,I,Et,Ft):"config"===Xe?yield _o(v,C,I,$,Et,Ft):"consent"===Xe?v("consent","update",Ft):v("set",Et)}catch(ln){Zn.error(ln)}})).apply(this,arguments)}return function be(Xe,Et,Ft){return Le.apply(this,arguments)}}(Le,v,C,I),{gtagCore:Le,wrappedGtag:window[be]}}(Ue,vt,It,en,"gtag");d=Le,f=Xe,u=!0}return Ue[$]=function X(v,C,I,$,be,Le,Xe){return q.apply(this,arguments)}(v,vt,It,C,f,en,I),new Me(v)}function We(){return ot.apply(this,arguments)}function ot(){return(ot=(0,F.Z)(function*(){if((0,U.ru)()||!(0,U.zI)()||!(0,U.hl)())return!1;try{return yield(0,U.eu)()}catch{return!1}})).apply(this,arguments)}const xs="@firebase/analytics";!function Ot(){(0,z._registerComponent)(new J.wA(wi,(C,{options:I})=>P(C.getProvider("app").getImmediate(),C.getProvider("installations-internal").getImmediate(),I),"PUBLIC")),(0,z._registerComponent)(new J.wA("analytics-internal",function v(C){try{const I=C.getProvider(wi).getImmediate();return{logEvent:($,be,Le)=>function _r(v,C,I,$){v=(0,U.m9)(v),function ro(v,C,I,$,be){return Os.apply(this,arguments)}(d,Ue[v.app.options.appId],C,I,$).catch(be=>Zn.error(be))}(I,$,be,Le)}}catch(I){throw vr.create("interop-component-reg-failed",{reason:I})}},"PRIVATE")),(0,z.registerVersion)(xs,"0.8.3"),(0,z.registerVersion)(xs,"0.8.3","esm2017")}();var Ut=b(4408),Jn=b(7565);const Vr=new class fi extends Jn.v{}(class pn extends Ut.o{constructor(C,I){super(C,I),this.scheduler=C,this.work=I}schedule(C,I=0){return I>0?super.schedule(C,I):(this.delay=I,this.state=C,this.scheduler.flush(this),this)}execute(C,I){return I>0||this.closed?super.execute(C,I):this._execute(C,I)}requestAsyncId(C,I,$=0){return null!=$&&$>0||null==$&&this.delay>0?super.requestAsyncId(C,I,$):C.flush(this)}});var Xn=b(4986),Sa=b(8505),Go=b(9468),On=b(5363);const Ni=new m.GfV("7.4.1"),ur="__angularfire_symbol__analyticsIsSupportedValue",oo="__angularfire_symbol__analyticsIsSupported",Ns="__angularfire_symbol__remoteConfigIsSupportedValue",Ia="__angularfire_symbol__remoteConfigIsSupported",Aa="__angularfire_symbol__messagingIsSupportedValue",Ma="__angularfire_symbol__messagingIsSupported";function Ko(v,C,I){if(C){if(1===C.length)return C[0];const Le=C.filter(Xe=>Xe.app===I);if(1===Le.length)return Le[0]}return I.container.getProvider(v).getImmediate({optional:!0})}globalThis[oo]||(globalThis[oo]=We().then(v=>globalThis[ur]=v).catch(()=>globalThis[ur]=!1)),globalThis[Ma]||(globalThis[Ma]=Ts().then(v=>globalThis[Aa]=v).catch(()=>globalThis[Aa]=!1)),globalThis[Ia]||(globalThis[Ia]=ts().then(v=>globalThis[Ns]=v).catch(()=>globalThis[Ns]=!1));const _d=(v,C)=>{const I=C?[C]:(0,c.C6)(),$=[];return I.forEach(be=>{be.container.getProvider(v).instances.forEach(Xe=>{$.includes(Xe)||$.push(Xe)})}),$};function Qi(){}class Zo{constructor(C,I=Vr){this.zone=C,this.delegate=I}now(){return this.delegate.now()}schedule(C,I,$){const be=this.zone;return this.delegate.schedule(function(Xe){be.runGuarded(()=>{C.apply(this,[Xe])})},I,$)}}class Yo{constructor(C){this.zone=C,this.task=null}call(C,I){const $=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Qi,{},Qi,Qi)),I.pipe((0,Sa.b)({next:$,complete:$,error:$})).subscribe(C).add($)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let zl=(()=>{class v{constructor(I){this.ngZone=I,this.outsideAngular=I.runOutsideAngular(()=>new Zo(Zone.current)),this.insideAngular=I.run(()=>new Zo(Zone.current,Xn.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return v.\u0275fac=function(I){return new(I||v)(m.LFG(m.R0b))},v.\u0275prov=m.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();function ao(){const v=globalThis.\u0275AngularFireScheduler;if(!v)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 v}function nl(v){return ao(),function hr(v){return function(I){return(I=I.lift(new Yo(v.ngZone))).pipe((0,Go.R)(v.outsideAngular),(0,On.Q)(v.insideAngular))}}(ao())(v)}},2090:(it,De,b)=>{b.d(De,{$s:()=>gt,BH:()=>Bt,L:()=>ie,LL:()=>$e,Pz:()=>qt,UG:()=>xe,US:()=>J,ZB:()=>L,ZR:()=>tn,aH:()=>ut,b$:()=>Te,eu:()=>ue,hl:()=>le,jU:()=>Be,m9:()=>rn,ne:()=>se,pd:()=>wn,r3:()=>jn,ru:()=>Ie,tV:()=>te,uI:()=>Oe,vZ:()=>Hn,w1:()=>ke,xO:()=>St,xb:()=>Un,z$:()=>je,zI:()=>W,zd:()=>ar});const z=function(Y){const V=[];let pe=0;for(let Re=0;Re<Y.length;Re++){let Ee=Y.charCodeAt(Re);Ee<128?V[pe++]=Ee:Ee<2048?(V[pe++]=Ee>>6|192,V[pe++]=63&Ee|128):55296==(64512&Ee)&&Re+1<Y.length&&56320==(64512&Y.charCodeAt(Re+1))?(Ee=65536+((1023&Ee)<<10)+(1023&Y.charCodeAt(++Re)),V[pe++]=Ee>>18|240,V[pe++]=Ee>>12&63|128,V[pe++]=Ee>>6&63|128,V[pe++]=63&Ee|128):(V[pe++]=Ee>>12|224,V[pe++]=Ee>>6&63|128,V[pe++]=63&Ee|128)}return V},J={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(Y,V){if(!Array.isArray(Y))throw Error("encodeByteArray takes an array as a parameter");this.init_();const pe=V?this.byteToCharMapWebSafe_:this.byteToCharMap_,Re=[];for(let Ee=0;Ee<Y.length;Ee+=3){const dt=Y[Ee],At=Ee+1<Y.length,Kt=At?Y[Ee+1]:0,hn=Ee+2<Y.length,rt=hn?Y[Ee+2]:0;let G=(15&Kt)<<2|rt>>6,j=63&rt;hn||(j=64,At||(G=64)),Re.push(pe[dt>>2],pe[(3&dt)<<4|Kt>>4],pe[G],pe[j])}return Re.join("")},encodeString(Y,V){return this.HAS_NATIVE_SUPPORT&&!V?btoa(Y):this.encodeByteArray(z(Y),V)},decodeString(Y,V){return this.HAS_NATIVE_SUPPORT&&!V?atob(Y):function(Y){const V=[];let pe=0,Re=0;for(;pe<Y.length;){const Ee=Y[pe++];if(Ee<128)V[Re++]=String.fromCharCode(Ee);else if(Ee>191&&Ee<224){const dt=Y[pe++];V[Re++]=String.fromCharCode((31&Ee)<<6|63&dt)}else if(Ee>239&&Ee<365){const hn=((7&Ee)<<18|(63&Y[pe++])<<12|(63&Y[pe++])<<6|63&Y[pe++])-65536;V[Re++]=String.fromCharCode(55296+(hn>>10)),V[Re++]=String.fromCharCode(56320+(1023&hn))}else{const dt=Y[pe++],At=Y[pe++];V[Re++]=String.fromCharCode((15&Ee)<<12|(63&dt)<<6|63&At)}}return V.join("")}(this.decodeStringToByteArray(Y,V))},decodeStringToByteArray(Y,V){this.init_();const pe=V?this.charToByteMapWebSafe_:this.charToByteMap_,Re=[];for(let Ee=0;Ee<Y.length;){const dt=pe[Y.charAt(Ee++)],Kt=Ee<Y.length?pe[Y.charAt(Ee)]:0;++Ee;const rt=Ee<Y.length?pe[Y.charAt(Ee)]:64;++Ee;const Q=Ee<Y.length?pe[Y.charAt(Ee)]:64;if(++Ee,null==dt||null==Kt||null==rt||null==Q)throw Error();Re.push(dt<<2|Kt>>4),64!==rt&&(Re.push(Kt<<4&240|rt>>2),64!==Q&&Re.push(rt<<6&192|Q))}return Re},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let Y=0;Y<this.ENCODED_VALS.length;Y++)this.byteToCharMap_[Y]=this.ENCODED_VALS.charAt(Y),this.charToByteMap_[this.byteToCharMap_[Y]]=Y,this.byteToCharMapWebSafe_[Y]=this.ENCODED_VALS_WEBSAFE.charAt(Y),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[Y]]=Y,Y>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(Y)]=Y,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(Y)]=Y)}}},ie=function(Y){return function(Y){const V=z(Y);return J.encodeByteArray(V,!0)}(Y).replace(/\./g,"")},te=function(Y){try{return J.decodeString(Y,!0)}catch(V){console.error("base64Decode failed: ",V)}return null};function L(Y,V){if(!(V instanceof Object))return V;switch(V.constructor){case Date:return new Date(V.getTime());case Object:void 0===Y&&(Y={});break;case Array:Y=[];break;default:return V}for(const pe in V)!V.hasOwnProperty(pe)||!de(pe)||(Y[pe]=L(Y[pe],V[pe]));return Y}function de(Y){return"__proto__"!==Y}function je(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Oe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(je())}function xe(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function Be(){return"object"==typeof self&&self.self===self}function Ie(){const Y="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof Y&&void 0!==Y.id}function Te(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function ke(){const Y=je();return Y.indexOf("MSIE ")>=0||Y.indexOf("Trident/")>=0}function le(){return"object"==typeof indexedDB}function ue(){return new Promise((Y,V)=>{try{let pe=!0;const Re="validate-browser-context-for-indexeddb-analytics-module",Ee=self.indexedDB.open(Re);Ee.onsuccess=()=>{Ee.result.close(),pe||self.indexedDB.deleteDatabase(Re),Y(!0)},Ee.onupgradeneeded=()=>{pe=!1},Ee.onerror=()=>{var dt;V((null===(dt=Ee.error)||void 0===dt?void 0:dt.message)||"")}}catch(pe){V(pe)}})}function W(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const ve=()=>{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 Y=process.env.__FIREBASE_DEFAULTS__;return Y?JSON.parse(Y):void 0})()||(()=>{if(typeof document>"u")return;let Y;try{Y=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const V=Y&&te(Y[1]);return V&&JSON.parse(V)})()}catch(Y){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${Y}`)}},ut=()=>{var Y;return null===(Y=ve())||void 0===Y?void 0:Y.config},qt=Y=>{var V;return null===(V=ve())||void 0===V?void 0:V[`_${Y}`]};class Bt{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((V,pe)=>{this.resolve=V,this.reject=pe})}wrapCallback(V){return(pe,Re)=>{pe?this.reject(pe):this.resolve(Re),"function"==typeof V&&(this.promise.catch(()=>{}),1===V.length?V(pe):V(pe,Re))}}}class tn extends Error{constructor(V,pe,Re){super(pe),this.code=V,this.customData=Re,this.name="FirebaseError",Object.setPrototypeOf(this,tn.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,$e.prototype.create)}}class $e{constructor(V,pe,Re){this.service=V,this.serviceName=pe,this.errors=Re}create(V,...pe){const Re=pe[0]||{},Ee=`${this.service}/${V}`,dt=this.errors[V],At=dt?function Ye(Y,V){return Y.replace(ye,(pe,Re)=>{const Ee=V[Re];return null!=Ee?String(Ee):`<${Re}?>`})}(dt,Re):"Error";return new tn(Ee,`${this.serviceName}: ${At} (${Ee}).`,Re)}}const ye=/\{\$([^}]+)}/g;function jn(Y,V){return Object.prototype.hasOwnProperty.call(Y,V)}function Un(Y){for(const V in Y)if(Object.prototype.hasOwnProperty.call(Y,V))return!1;return!0}function Hn(Y,V){if(Y===V)return!0;const pe=Object.keys(Y),Re=Object.keys(V);for(const Ee of pe){if(!Re.includes(Ee))return!1;const dt=Y[Ee],At=V[Ee];if(_t(dt)&&_t(At)){if(!Hn(dt,At))return!1}else if(dt!==At)return!1}for(const Ee of Re)if(!pe.includes(Ee))return!1;return!0}function _t(Y){return null!==Y&&"object"==typeof Y}function St(Y){const V=[];for(const[pe,Re]of Object.entries(Y))Array.isArray(Re)?Re.forEach(Ee=>{V.push(encodeURIComponent(pe)+"="+encodeURIComponent(Ee))}):V.push(encodeURIComponent(pe)+"="+encodeURIComponent(Re));return V.length?"&"+V.join("&"):""}function ar(Y){const V={};return Y.replace(/^\?/,"").split("&").forEach(Re=>{if(Re){const[Ee,dt]=Re.split("=");V[decodeURIComponent(Ee)]=decodeURIComponent(dt)}}),V}function wn(Y){const V=Y.indexOf("?");if(!V)return"";const pe=Y.indexOf("#",V);return Y.substring(V,pe>0?pe:void 0)}function se(Y,V){const pe=new fe(Y,V);return pe.subscribe.bind(pe)}class fe{constructor(V,pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=pe,this.task.then(()=>{V(this)}).catch(Re=>{this.error(Re)})}next(V){this.forEachObserver(pe=>{pe.next(V)})}error(V){this.forEachObserver(pe=>{pe.error(V)}),this.close(V)}complete(){this.forEachObserver(V=>{V.complete()}),this.close()}subscribe(V,pe,Re){let Ee;if(void 0===V&&void 0===pe&&void 0===Re)throw new Error("Missing Observer.");Ee=function Se(Y,V){if("object"!=typeof Y||null===Y)return!1;for(const pe of V)if(pe in Y&&"function"==typeof Y[pe])return!0;return!1}(V,["next","error","complete"])?V:{next:V,error:pe,complete:Re},void 0===Ee.next&&(Ee.next=tt),void 0===Ee.error&&(Ee.error=tt),void 0===Ee.complete&&(Ee.complete=tt);const dt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?Ee.error(this.finalError):Ee.complete()}catch{}}),this.observers.push(Ee),dt}unsubscribeOne(V){void 0===this.observers||void 0===this.observers[V]||(delete this.observers[V],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(V){if(!this.finalized)for(let pe=0;pe<this.observers.length;pe++)this.sendOne(pe,V)}sendOne(V,pe){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[V])try{pe(this.observers[V])}catch(Re){typeof console<"u"&&console.error&&console.error(Re)}})}close(V){this.finalized||(this.finalized=!0,void 0!==V&&(this.finalError=V),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function tt(){}function gt(Y,V=1e3,pe=2){const Re=V*Math.pow(pe,Y),Ee=Math.round(.5*Re*(Math.random()-.5)*2);return Math.min(144e5,Re+Ee)}function rn(Y){return Y&&Y._delegate?Y._delegate:Y}},1318:(it,De,b)=>{b.d(De,{O:()=>Ie});var m=b(515),c=b(8306),F=b(4986),z=b(1165),U=b(4482),J=b(8421),ee=b(3888),ie=b(5403),te=b(9672);const R=(0,ee.d)(Te=>function(ke=null){Te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ke});function de(Te){throw new R(Te)}var je=b(262),Oe=b(4650),xe=b(529),Be=b(7185);let Ie=(()=>{class Te{constructor(ke,Ce){this.http=ke,this.toastr=Ce}get(ke){return this.http.get(ke).pipe((0,je.K)(Ce=>{let x=this.errorMessageHandling(Ce);return this.toastr.error(""!=x.message?x.message:"An unknown error has occured!",x.header),m.E}))}post(ke,Ce,x=1e5){return new c.y(K=>{this.http.post(ke,Ce).pipe(function L(Te,Je){const{first:ke,each:Ce,with:x=de,scheduler:K=Je??F.z,meta:le=null}=(0,z.q)(Te)?{first:Te}:"number"==typeof Te?{each:Te}:Te;if(null==ke&&null==Ce)throw new TypeError("No timeout provided.");return(0,U.e)((ue,W)=>{let ge,H,ne=null,me=0;const ve=_e=>{H=(0,te.f)(W,K,()=>{try{ge.unsubscribe(),(0,J.Xf)(x({meta:le,lastValue:ne,seen:me})).subscribe(W)}catch(Ve){W.error(Ve)}},_e)};ge=ue.subscribe((0,ie.x)(W,_e=>{H?.unsubscribe(),me++,W.next(ne=_e),Ce>0&&ve(Ce)},void 0,void 0,()=>{H?.closed||H?.unsubscribe(),ne=null})),!me&&ve(null!=ke?"number"==typeof ke?ke:+ke-K.now():Ce)})}(x)).subscribe({next:le=>{K.next(le),K.complete()},error:le=>{if(200==le.status)K.next(le.error.text),K.complete();else{if(!this.unauthorizedErrorHandling(le)&&!Array.isArray(le?.error?.Message)){let W=this.errorMessageHandling(le);this.toastr.error(""!=W.message?W.message:"An unknown error has occured!",W.header,{enableHtml:!0})}K.error(le)}}})})}unauthorizedErrorHandling(ke){let Ce=!1;return 401==ke.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Ce=!0),Ce}errorMessageHandling(ke){let Ce="API Error",x="Exception Message";return ke.error?(Ce="API Error - "+ke.status,ke.error.Message&&(x=-1!=ke.error.Message.indexOf("Message")?JSON.parse(ke.error.Message).Message:ke.error.Message)):ke.message&&(Ce="API Error - "+ke.name,x=ke.message),{header:Ce,message:x}}}return Te.\u0275fac=function(ke){return new(ke||Te)(Oe.LFG(xe.eN),Oe.LFG(Be._W))},Te.\u0275prov=Oe.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})()},8002:(it,De,b)=>{b.d(De,{e:()=>c});var m=b(4650);let c=(()=>{class F{constructor(){}getParseToken(){let U=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(U.Token.access_token)}GetRoles(){return this.getParseToken().Role}ParseToken(U){try{const ee=U.split(".")[0].replace("-","+").replace("_","/"),ie=JSON.parse(window.atob(ee)),R=U.split(".")[1].replace("-","+").replace("_","/"),L=JSON.parse(window.atob(R));return L.header=ie,L}catch{return!1}}}return F.\u0275fac=function(U){return new(U||F)},F.\u0275prov=m.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},2340:(it,De,b)=>{b.d(De,{N:()=>m});const m={production:!0,version:"2.5.8",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:(it,De,b)=>{var m=b(1481),c=b(4650),F=b(529),z=b(4707);function U(_,a){return(o,p)=>!_.call(a,o,p)}var J=b(9300),ee=b(8421),te=b(6451),R=b(2805),L=b(8746),de=b(3900),je=b(4482),Oe=b(5032),xe=b(5403);function Be(_){return(0,je.e)((a,o)=>{let p=!1,S=null,N=null;const X=()=>{if(N?.unsubscribe(),N=null,p){p=!1;const q=S;S=null,o.next(q)}};a.subscribe((0,xe.x)(o,q=>{N?.unsubscribe(),p=!0,S=q,N=(0,xe.x)(o,X,Oe.Z),(0,ee.Xf)(_(q)).subscribe(N)},()=>{X(),o.complete()},void 0,()=>{S=N=null}))})}var Ie=b(1884),Te=b(8505),Je=b(6895);function ke(_,a){1&_&&c.GkF(0)}function Ce(_,a){if(1&_&&c._UZ(0,"sk-cube-grid",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function x(_,a){if(1&_&&c._UZ(0,"sk-chasing-dots",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function K(_,a){if(1&_&&c._UZ(0,"sk-double-bounce",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function le(_,a){if(1&_&&c._UZ(0,"sk-rotating-plane",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function ue(_,a){if(1&_&&c._UZ(0,"sk-spinner-pulse",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function W(_,a){if(1&_&&c._UZ(0,"sk-three-bounce",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function ge(_,a){if(1&_&&c._UZ(0,"sk-wandering-cubes",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function H(_,a){if(1&_&&c._UZ(0,"sk-wave",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}const ne=function(_){return{"background-color":_}};function me(_,a){if(1&_&&(c.TgZ(0,"div",1),c.YNc(1,ke,1,0,"ng-container",2),c.YNc(2,Ce,1,1,"sk-cube-grid",3),c.YNc(3,x,1,1,"sk-chasing-dots",3),c.YNc(4,K,1,1,"sk-double-bounce",3),c.YNc(5,le,1,1,"sk-rotating-plane",3),c.YNc(6,ue,1,1,"sk-spinner-pulse",3),c.YNc(7,W,1,1,"sk-three-bounce",3),c.YNc(8,ge,1,1,"sk-wandering-cubes",3),c.YNc(9,H,1,1,"sk-wave",3),c.qZA()),2&_){const o=c.oxw();c.Udp("opacity",o.opacity),c.ekj("backdrop",o.backdrop),c.Q6J("ngStyle",c.VKq(14,ne,o.backdrop?o.backdropBackgroundColor:"transparent")),c.xp6(1),c.Q6J("ngComponentOutlet",o.entryComponent),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skCubeGrid),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skChasingDots),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skDoubleBounce),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skRotatingPlane),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skSpinnerPulse),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skThreeBounce),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skWanderingCubes),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skWave)}}let ve=(()=>{class _{}return _.\u0275fac=function(o){return new(o||_)},_.\u0275dir=c.lG2({type:_,inputs:{backgroundColor:"backgroundColor"}}),_})(),_e=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-chasing-dots"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation: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:sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),_})(),Ve=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-cube-grid"]],features:[c.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(o,p){1&o&&(c.TgZ(0,"div",0),c._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),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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: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 sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),_})(),ut=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-double-bounce"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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:sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),_})(),qt=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-rotating-plane"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(o,p){1&o&&c._UZ(0,"div",0),2&o&&c.Udp("background-color",p.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:sk-rotatePlane 1.2s infinite ease-in-out}@keyframes 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)}}"]}),_})(),Bt=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-spinner-pulse"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(o,p){1&o&&c._UZ(0,"div",0),2&o&&c.Udp("background-color",p.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:sk-pulseScaleOut 1s infinite ease-in-out}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),_})(),lt=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-three-bounce"]],features:[c.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(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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: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 sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),_})(),dn=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-wandering-cubes"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes 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)}}"]}),_})(),tn=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-wave"]],features:[c.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(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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: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 sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),_})();const $e={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 ye=(()=>{class _{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new z.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(o){this._filteredMethods=o}set filteredHeaders(o){this._filteredHeaders=o}set forceByPass(o){this._forceByPass=o}shouldBypassUrl(o){return this._filteredUrlPatterns.some(p=>p.test(o))}shouldBypassMethod(o){return this._filteredMethods.some(p=>p.toUpperCase()===o.method.toUpperCase())}shouldBypassHeader(o){return this._filteredHeaders.some(p=>o.headers.has(p))}shouldBypass(o){return this._forceByPass||this.shouldBypassUrl(o.urlWithParams)||this.shouldBypassMethod(o)||this.shouldBypassHeader(o)}intercept(o,p){const S=this.shouldBypass(o);return S||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),p.handle(o).pipe((0,L.x)(()=>{S||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Fe=[{provide:F.TP,useExisting:ye,multi:!0}];let ct=(()=>{class _{constructor(o){this.pendingRequestsInterceptor=o,this._visibility$=new z.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 _.\u0275fac=function(o){return new(o||_)(c.LFG(ye))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),Tt=(()=>{class _{constructor(o,p){this.pendingRequestsInterceptor=o,this.spinnerVisibility=p,this.spinkit=$e,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=$e.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[o,p]=function ie(_,a,o){return[(0,J.h)(a,o)((0,ee.Xf)(_)),(0,J.h)(U(a,o))((0,ee.Xf)(_))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,S=>S);this.isVisible$=(0,te.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,de.w)(()=>o.pipe(Be(()=>(0,R.H)(this.debounceDelay))))),o.pipe((0,de.w)(()=>p.pipe(Be(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Ie.x)(),(0,Te.b)(S=>this.updateExpirationDelay(S)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(o=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(o)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(o){o&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,R.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return _.\u0275fac=function(o){return new(o||_)(c.Y36(ye),c.Y36(ct))},_.\u0275cmp=c.Xpm({type:_,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(o,p){1&o&&(c.YNc(0,me,10,16,"div",0),c.ALo(1,"async")),2&o&&c.Q6J("ngIf",c.lcZ(1,1,p.isVisible$))},dependencies:[Je.$G,Je.O5,Je.PC,Ve,_e,ut,qt,Bt,lt,dn,tn,Je.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}"]}),_})(),nn=(()=>{class _{static forRoot(){return{ngModule:_,providers:[Fe]}}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[Je.ez]}),_})();var vn=b(1318),Wn=b(8002),In=b(6806);const jn=[{path:"",loadChildren:()=>Promise.all([b.e(796),b.e(291),b.e(117)]).then(b.bind(b,4117)).then(_=>_.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([b.e(291),b.e(397)]).then(b.bind(b,2397)).then(_=>_.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let Nn=(()=>{class _{}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[In.Bz.forRoot(jn,{relativeLinkResolution:"legacy"}),In.Bz]}),_})();var Un=b(4004),Mt=b(5577);let Hn=(()=>{class _{constructor(o,p,S){this._router=o,this.titleService=p,this.activatedRoute=S}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,J.h)(o=>o instanceof In.m2)).pipe((0,Un.U)(()=>this.activatedRoute),(0,Un.U)(o=>{for(;o.firstChild;)o=o.firstChild;return o}),(0,J.h)(o=>"primary"===o.outlet),(0,Mt.z)(o=>o.data)).subscribe(o=>{let p=" | Marketplace";"Dealpos x Marketplace"==o.title&&(p=""),this.titleService.setTitle(o.title+p)})}overrideDateToJsonFunction(){function o(p){return p<10?"0"+p:p}Date.prototype.toJSON=function(){return this.getFullYear()+"-"+o(this.getMonth()+1)+"-"+o(this.getDate())+"T"+o(this.getHours())+":"+o(this.getMinutes())+":"+o(this.getSeconds())+".000"}}}return _.\u0275fac=function(o){return new(o||_)(c.Y36(In.F0),c.Y36(m.Dx),c.Y36(In.gz))},_.\u0275cmp=c.Xpm({type:_,selectors:[["app-root"]],decls:2,vars:0,template:function(o,p){1&o&&c._UZ(0,"router-outlet")(1,"ng-http-loader")},dependencies:[In.lC,Tt]}),_})();var _t=b(7340);function St(_){return new c.vHH(3e3,!1)}function G(){return typeof window<"u"&&typeof window.document<"u"}function j(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function he(_){switch(_.length){case 0:return new _t.ZN;case 1:return _[0];default:return new _t.ZE(_)}}function Qe(_,a,o,p,S=new Map,N=new Map){const X=[],q=[];let Me=-1,Ue=null;if(p.forEach(vt=>{const It=vt.get("offset"),en=It==Me,Yt=en&&Ue||new Map;vt.forEach((f,d)=>{let u=d,y=f;if("offset"!==d)switch(u=a.normalizePropertyName(u,X),y){case _t.k1:y=S.get(d);break;case _t.l3:y=N.get(d);break;default:y=a.normalizeStyleValue(d,u,y,X)}Yt.set(u,y)}),en||q.push(Yt),Ue=Yt,Me=It}),X.length)throw function rn(_){return new c.vHH(3502,!1)}();return q}function yt(_,a,o,p){switch(a){case"start":_.onStart(()=>p(o&&Zt(o,"start",_)));break;case"done":_.onDone(()=>p(o&&Zt(o,"done",_)));break;case"destroy":_.onDestroy(()=>p(o&&Zt(o,"destroy",_)))}}function Zt(_,a,o){const N=mn(_.element,_.triggerName,_.fromState,_.toState,a||_.phaseName,o.totalTime??_.totalTime,!!o.disabled),X=_._data;return null!=X&&(N._data=X),N}function mn(_,a,o,p,S="",N=0,X){return{element:_,triggerName:a,fromState:o,toState:p,phaseName:S,totalTime:N,disabled:!!X}}function Dt(_,a,o){let p=_.get(a);return p||_.set(a,p=o),p}function Sr(_){const a=_.indexOf(":");return[_.substring(1,a),_.slice(a+1)]}let xr=(_,a)=>!1,zr=(_,a,o)=>[],gr=null;function kn(_){const a=_.parentNode||_.host;return a===gr?null:a}(j()||typeof Element<"u")&&(G()?(gr=(()=>document.documentElement)(),xr=(_,a)=>{for(;a;){if(a===_)return!0;a=kn(a)}return!1}):xr=(_,a)=>_.contains(a),zr=(_,a,o)=>{if(o)return Array.from(_.querySelectorAll(a));const p=_.querySelector(a);return p?[p]:[]});let Fn=null,kr=!1;const cr=xr,rr=zr;let Cr=(()=>{class _{validateStyleProperty(o){return function Yn(_){Fn||(Fn=function gi(){return typeof document<"u"?document.body:null}()||{},kr=!!Fn.style&&"WebkitAppearance"in Fn.style);let a=!0;return Fn.style&&!function Nr(_){return"ebkit"==_.substring(1,6)}(_)&&(a=_ in Fn.style,!a&&kr&&(a="Webkit"+_.charAt(0).toUpperCase()+_.slice(1)in Fn.style)),a}(o)}matchesElement(o,p){return!1}containsElement(o,p){return cr(o,p)}getParentElement(o){return kn(o)}query(o,p,S){return rr(o,p,S)}computeStyle(o,p,S){return S||""}animate(o,p,S,N,X,q=[],Me){return new _t.ZN(S,N)}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})(),ei=(()=>{class _{}return _.NOOP=new Cr,_})();const xn="ng-enter",$n="ng-leave",Hr="ng-trigger",br=".ng-trigger",Fr="ng-animating",ir=".ng-animating";function sr(_){if("number"==typeof _)return _;const a=_.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Si(parseFloat(a[1]),a[2])}function Si(_,a){return"s"===a?1e3*_:_}function ti(_,a,o){return _.hasOwnProperty("duration")?_:function ji(_,a,o){let S,N=0,X="";if("string"==typeof _){const q=_.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===q)return a.push(St()),{duration:0,delay:0,easing:""};S=Si(parseFloat(q[1]),q[2]);const Me=q[3];null!=Me&&(N=Si(parseFloat(Me),q[4]));const Ue=q[5];Ue&&(X=Ue)}else S=_;if(!o){let q=!1,Me=a.length;S<0&&(a.push(function ar(){return new c.vHH(3100,!1)}()),q=!0),N<0&&(a.push(function wn(){return new c.vHH(3101,!1)}()),q=!0),q&&a.splice(Me,0,St())}return{duration:S,delay:N,easing:X}}(_,a,o)}function Ur(_,a={}){return Object.keys(_).forEach(o=>{a[o]=_[o]}),a}function Ii(_){const a=new Map;return Object.keys(_).forEach(o=>{a.set(o,_[o])}),a}function Lr(_,a=new Map,o){if(o)for(let[p,S]of o)a.set(p,S);for(let[p,S]of _)a.set(p,S);return a}function vi(_,a,o){return o?a+":"+o+";":""}function Ji(_){let a="";for(let o=0;o<_.style.length;o++){const p=_.style.item(o);a+=vi(0,p,_.style.getPropertyValue(p))}for(const o in _.style)_.style.hasOwnProperty(o)&&!o.startsWith("_")&&(a+=vi(0,Hi(o),_.style[o]));_.setAttribute("style",a)}function Ir(_,a,o){_.style&&(a.forEach((p,S)=>{const N=Es(S);o&&!o.has(S)&&o.set(S,_.style[N]),_.style[N]=p}),j()&&Ji(_))}function mr(_,a){_.style&&(a.forEach((o,p)=>{const S=Es(p);_.style[S]=""}),j()&&Ji(_))}function wr(_){return Array.isArray(_)?1==_.length?_[0]:(0,_t.vP)(_):_}const Xi=new RegExp("{{\\s*(.+?)\\s*}}","g");function es(_){let a=[];if("string"==typeof _){let o;for(;o=Xi.exec(_);)a.push(o[1]);Xi.lastIndex=0}return a}function Wr(_,a,o){const p=_.toString(),S=p.replace(Xi,(N,X)=>{let q=a[X];return null==q&&(o.push(function se(_){return new c.vHH(3003,!1)}()),q=""),q.toString()});return S==p?_:S}function ni(_){const a=[];let o=_.next();for(;!o.done;)a.push(o.value),o=_.next();return a}const _i=/-+([a-z0-9])/g;function Es(_){return _.replace(_i,(...a)=>a[1].toUpperCase())}function Hi(_){return _.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gn(_,a,o){switch(a.type){case 7:return _.visitTrigger(a,o);case 0:return _.visitState(a,o);case 1:return _.visitTransition(a,o);case 2:return _.visitSequence(a,o);case 3:return _.visitGroup(a,o);case 4:return _.visitAnimate(a,o);case 5:return _.visitKeyframes(a,o);case 6:return _.visitStyle(a,o);case 8:return _.visitReference(a,o);case 9:return _.visitAnimateChild(a,o);case 10:return _.visitAnimateRef(a,o);case 11:return _.visitQuery(a,o);case 12:return _.visitStagger(a,o);default:throw function fe(_){return new c.vHH(3004,!1)}()}}function Br(_,a){return window.getComputedStyle(_)[a]}const Z="*";function ae(_,a){const o=[];return"string"==typeof _?_.split(/\s*,\s*/).forEach(p=>function Ae(_,a,o){if(":"==_[0]){const Me=function ze(_,a){switch(_){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,p)=>parseFloat(p)>parseFloat(o);case":decrement":return(o,p)=>parseFloat(p)<parseFloat(o);default:return a.push(function Ge(_){return new c.vHH(3016,!1)}()),"* => *"}}(_,o);if("function"==typeof Me)return void a.push(Me);_=Me}const p=_.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return o.push(function pt(_){return new c.vHH(3015,!1)}()),a;const S=p[1],N=p[2],X=p[3];a.push(ht(S,X));"<"==N[0]&&!(S==Z&&X==Z)&&a.push(ht(X,S))}(p,o,a)):o.push(_),o}const nt=new Set(["true","1"]),ft=new Set(["false","0"]);function ht(_,a){const o=nt.has(_)||ft.has(_),p=nt.has(a)||ft.has(a);return(S,N)=>{let X=_==Z||_==S,q=a==Z||a==N;return!X&&o&&"boolean"==typeof S&&(X=S?nt.has(_):ft.has(_)),!q&&p&&"boolean"==typeof N&&(q=N?nt.has(a):ft.has(a)),X&&q}}const sn=new RegExp("s*:selfs*,?","g");function Kn(_,a,o,p){return new Pr(_).build(a,o,p)}class Pr{constructor(a){this._driver=a}build(a,o,p){const S=new qn(o);return this._resetContextStyleTimingState(S),Gn(this,wr(a),S)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,o){let p=o.queryCount=0,S=o.depCount=0;const N=[],X=[];return"@"==a.name.charAt(0)&&o.errors.push(function Se(){return new c.vHH(3006,!1)}()),a.definitions.forEach(q=>{if(this._resetContextStyleTimingState(o),0==q.type){const Me=q,Ue=Me.name;Ue.toString().split(/\s*,\s*/).forEach(vt=>{Me.name=vt,N.push(this.visitState(Me,o))}),Me.name=Ue}else if(1==q.type){const Me=this.visitTransition(q,o);p+=Me.queryCount,S+=Me.depCount,X.push(Me)}else o.errors.push(function tt(){return new c.vHH(3007,!1)}())}),{type:7,name:a.name,states:N,transitions:X,queryCount:p,depCount:S,options:null}}visitState(a,o){const p=this.visitStyle(a.styles,o),S=a.options&&a.options.params||null;if(p.containsDynamicStyles){const N=new Set,X=S||{};p.styles.forEach(q=>{q instanceof Map&&q.forEach(Me=>{es(Me).forEach(Ue=>{X.hasOwnProperty(Ue)||N.add(Ue)})})}),N.size&&(ni(N.values()),o.errors.push(function Gt(_,a){return new c.vHH(3008,!1)}()))}return{type:0,name:a.name,style:p,options:S?{params:S}:null}}visitTransition(a,o){o.queryCount=0,o.depCount=0;const p=Gn(this,wr(a.animation),o);return{type:1,matchers:ae(a.expr,o.errors),animation:p,queryCount:o.queryCount,depCount:o.depCount,options:E(a.options)}}visitSequence(a,o){return{type:2,steps:a.steps.map(p=>Gn(this,p,o)),options:E(a.options)}}visitGroup(a,o){const p=o.currentTime;let S=0;const N=a.steps.map(X=>{o.currentTime=p;const q=Gn(this,X,o);return S=Math.max(S,o.currentTime),q});return o.currentTime=S,{type:3,steps:N,options:E(a.options)}}visitAnimate(a,o){const p=function A(_,a){if(_.hasOwnProperty("duration"))return _;if("number"==typeof _)return O(ti(_,a).duration,0,"");const o=_;if(o.split(/\s+/).some(N=>"{"==N.charAt(0)&&"{"==N.charAt(1))){const N=O(0,0,"");return N.dynamic=!0,N.strValue=o,N}const S=ti(o,a);return O(S.duration,S.delay,S.easing)}(a.timings,o.errors);o.currentAnimateTimings=p;let S,N=a.styles?a.styles:(0,_t.oB)({});if(5==N.type)S=this.visitKeyframes(N,o);else{let X=a.styles,q=!1;if(!X){q=!0;const Ue={};p.easing&&(Ue.easing=p.easing),X=(0,_t.oB)(Ue)}o.currentTime+=p.duration+p.delay;const Me=this.visitStyle(X,o);Me.isEmptyStep=q,S=Me}return o.currentAnimateTimings=null,{type:4,timings:p,style:S,options:null}}visitStyle(a,o){const p=this._makeStyleAst(a,o);return this._validateStyleAst(p,o),p}_makeStyleAst(a,o){const p=[],S=Array.isArray(a.styles)?a.styles:[a.styles];for(let q of S)"string"==typeof q?q===_t.l3?p.push(q):o.errors.push(new c.vHH(3002,!1)):p.push(Ii(q));let N=!1,X=null;return p.forEach(q=>{if(q instanceof Map&&(q.has("easing")&&(X=q.get("easing"),q.delete("easing")),!N))for(let Me of q.values())if(Me.toString().indexOf("{{")>=0){N=!0;break}}),{type:6,styles:p,easing:X,offset:a.offset,containsDynamicStyles:N,options:null}}_validateStyleAst(a,o){const p=o.currentAnimateTimings;let S=o.currentTime,N=o.currentTime;p&&N>0&&(N-=p.duration+p.delay),a.styles.forEach(X=>{"string"!=typeof X&&X.forEach((q,Me)=>{const Ue=o.collectedStyles.get(o.currentQuerySelector),vt=Ue.get(Me);let It=!0;vt&&(N!=S&&N>=vt.startTime&&S<=vt.endTime&&(o.errors.push(function an(_,a,o,p,S){return new c.vHH(3010,!1)}()),It=!1),N=vt.startTime),It&&Ue.set(Me,{startTime:N,endTime:S}),o.options&&function Ds(_,a,o){const p=a.params||{},S=es(_);S.length&&S.forEach(N=>{p.hasOwnProperty(N)||o.push(function He(_){return new c.vHH(3001,!1)}())})}(q,o.options,o.errors)})})}visitKeyframes(a,o){const p={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function Cn(){return new c.vHH(3011,!1)}()),p;let N=0;const X=[];let q=!1,Me=!1,Ue=0;const vt=a.steps.map(y=>{const w=this._makeStyleAst(y,o);let P=null!=w.offset?w.offset:function D(_){if("string"==typeof _)return null;let a=null;if(Array.isArray(_))_.forEach(o=>{if(o instanceof Map&&o.has("offset")){const p=o;a=parseFloat(p.get("offset")),p.delete("offset")}});else if(_ instanceof Map&&_.has("offset")){const o=_;a=parseFloat(o.get("offset")),o.delete("offset")}return a}(w.styles),B=0;return null!=P&&(N++,B=w.offset=P),Me=Me||B<0||B>1,q=q||B<Ue,Ue=B,X.push(B),w});Me&&o.errors.push(function Jt(){return new c.vHH(3012,!1)}()),q&&o.errors.push(function Nt(){return new c.vHH(3200,!1)}());const It=a.steps.length;let en=0;N>0&&N<It?o.errors.push(function Xt(){return new c.vHH(3202,!1)}()):0==N&&(en=1/(It-1));const Yt=It-1,f=o.currentTime,d=o.currentAnimateTimings,u=d.duration;return vt.forEach((y,w)=>{const P=en>0?w==Yt?1:en*w:X[w],B=P*u;o.currentTime=f+d.delay+B,d.duration=B,this._validateStyleAst(y,o),y.offset=P,p.styles.push(y)}),p}visitReference(a,o){return{type:8,animation:Gn(this,wr(a.animation),o),options:E(a.options)}}visitAnimateChild(a,o){return o.depCount++,{type:9,options:E(a.options)}}visitAnimateRef(a,o){return{type:10,animation:this.visitReference(a.animation,o),options:E(a.options)}}visitQuery(a,o){const p=o.currentQuerySelector,S=a.options||{};o.queryCount++,o.currentQuery=a;const[N,X]=function jr(_){const a=!!_.split(/\s*,\s*/).find(o=>":self"==o);return a&&(_=_.replace(sn,"")),_=_.replace(/@\*/g,br).replace(/@\w+/g,o=>br+"-"+o.slice(1)).replace(/:animating/g,ir),[_,a]}(a.selector);o.currentQuerySelector=p.length?p+" "+N:N,Dt(o.collectedStyles,o.currentQuerySelector,new Map);const q=Gn(this,wr(a.animation),o);return o.currentQuery=null,o.currentQuerySelector=p,{type:11,selector:N,limit:S.limit||0,optional:!!S.optional,includeSelf:X,animation:q,originalSelector:a.selector,options:E(a.options)}}visitStagger(a,o){o.currentQuery||o.errors.push(function Pt(){return new c.vHH(3013,!1)}());const p="full"===a.timings?{duration:0,delay:0,easing:"full"}:ti(a.timings,o.errors,!0);return{type:12,animation:Gn(this,wr(a.animation),o),timings:p,options:null}}}class qn{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,this.nonAnimatableCSSPropertiesFound=new Set}}function E(_){return _?(_=Ur(_)).params&&(_.params=function Vn(_){return _?Ur(_):null}(_.params)):_={},_}function O(_,a,o){return{duration:_,delay:a,easing:o}}function re(_,a,o,p,S,N,X=null,q=!1){return{type:1,element:_,keyframes:a,preStyleProps:o,postStyleProps:p,duration:S,delay:N,totalTime:S+N,easing:X,subTimeline:q}}class Ne{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,o){let p=this._map.get(a);p||this._map.set(a,p=[]),p.push(...o)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Sn=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function cn(_,a,o,p,S,N=new Map,X=new Map,q,Me,Ue=[]){return(new Ln).buildKeyframes(_,a,o,p,S,N,X,q,Me,Ue)}class Ln{buildKeyframes(a,o,p,S,N,X,q,Me,Ue,vt=[]){Ue=Ue||new Ne;const It=new zn(a,o,Ue,S,N,vt,[]);It.options=Me;const en=Me.delay?sr(Me.delay):0;It.currentTimeline.delayNextStep(en),It.currentTimeline.setStyles([X],null,It.errors,Me),Gn(this,p,It);const Yt=It.timelines.filter(f=>f.containsAnimation());if(Yt.length&&q.size){let f;for(let d=Yt.length-1;d>=0;d--){const u=Yt[d];if(u.element===o){f=u;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([q],null,It.errors,Me)}return Yt.length?Yt.map(f=>f.buildKeyframes()):[re(o,[],[],[],0,en,"",!1)]}visitTrigger(a,o){}visitState(a,o){}visitTransition(a,o){}visitAnimateChild(a,o){const p=o.subInstructions.get(o.element);if(p){const S=o.createSubContext(a.options),N=o.currentTimeline.currentTime,X=this._visitSubInstructions(p,S,S.options);N!=X&&o.transformIntoNewTimeline(X)}o.previousNode=a}visitAnimateRef(a,o){const p=o.createSubContext(a.options);p.transformIntoNewTimeline(),this.visitReference(a.animation,p),o.transformIntoNewTimeline(p.currentTimeline.currentTime),o.previousNode=a}_visitSubInstructions(a,o,p){let N=o.currentTimeline.currentTime;const X=null!=p.duration?sr(p.duration):null,q=null!=p.delay?sr(p.delay):null;return 0!==X&&a.forEach(Me=>{const Ue=o.appendInstructionToTimeline(Me,X,q);N=Math.max(N,Ue.duration+Ue.delay)}),N}visitReference(a,o){o.updateOptions(a.options,!0),Gn(this,a.animation,o),o.previousNode=a}visitSequence(a,o){const p=o.subContextCount;let S=o;const N=a.options;if(N&&(N.params||N.delay)&&(S=o.createSubContext(N),S.transformIntoNewTimeline(),null!=N.delay)){6==S.previousNode.type&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=_n);const X=sr(N.delay);S.delayNextStep(X)}a.steps.length&&(a.steps.forEach(X=>Gn(this,X,S)),S.currentTimeline.applyStylesToKeyframe(),S.subContextCount>p&&S.transformIntoNewTimeline()),o.previousNode=a}visitGroup(a,o){const p=[];let S=o.currentTimeline.currentTime;const N=a.options&&a.options.delay?sr(a.options.delay):0;a.steps.forEach(X=>{const q=o.createSubContext(a.options);N&&q.delayNextStep(N),Gn(this,X,q),S=Math.max(S,q.currentTimeline.currentTime),p.push(q.currentTimeline)}),p.forEach(X=>o.currentTimeline.mergeTimelineCollectedStyles(X)),o.transformIntoNewTimeline(S),o.previousNode=a}_visitTiming(a,o){if(a.dynamic){const p=a.strValue;return ti(o.params?Wr(p,o.params,o.errors):p,o.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,o){const p=o.currentAnimateTimings=this._visitTiming(a.timings,o),S=o.currentTimeline;p.delay&&(o.incrementTime(p.delay),S.snapshotCurrentStyles());const N=a.style;5==N.type?this.visitKeyframes(N,o):(o.incrementTime(p.duration),this.visitStyle(N,o),S.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=a}visitStyle(a,o){const p=o.currentTimeline,S=o.currentAnimateTimings;!S&&p.hasCurrentStyleProperties()&&p.forwardFrame();const N=S&&S.easing||a.easing;a.isEmptyStep?p.applyEmptyStep(N):p.setStyles(a.styles,N,o.errors,o.options),o.previousNode=a}visitKeyframes(a,o){const p=o.currentAnimateTimings,S=o.currentTimeline.duration,N=p.duration,q=o.createSubContext().currentTimeline;q.easing=p.easing,a.styles.forEach(Me=>{q.forwardTime((Me.offset||0)*N),q.setStyles(Me.styles,Me.easing,o.errors,o.options),q.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(q),o.transformIntoNewTimeline(S+N),o.previousNode=a}visitQuery(a,o){const p=o.currentTimeline.currentTime,S=a.options||{},N=S.delay?sr(S.delay):0;N&&(6===o.previousNode.type||0==p&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=_n);let X=p;const q=o.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!S.optional,o.errors);o.currentQueryTotal=q.length;let Me=null;q.forEach((Ue,vt)=>{o.currentQueryIndex=vt;const It=o.createSubContext(a.options,Ue);N&&It.delayNextStep(N),Ue===o.element&&(Me=It.currentTimeline),Gn(this,a.animation,It),It.currentTimeline.applyStylesToKeyframe(),X=Math.max(X,It.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(X),Me&&(o.currentTimeline.mergeTimelineCollectedStyles(Me),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=a}visitStagger(a,o){const p=o.parentContext,S=o.currentTimeline,N=a.timings,X=Math.abs(N.duration),q=X*(o.currentQueryTotal-1);let Me=X*o.currentQueryIndex;switch(N.duration<0?"reverse":N.easing){case"reverse":Me=q-Me;break;case"full":Me=p.currentStaggerTime}const vt=o.currentTimeline;Me&&vt.delayNextStep(Me);const It=vt.currentTime;Gn(this,a.animation,o),o.previousNode=a,p.currentStaggerTime=S.currentTime-It+(S.startTime-p.currentTimeline.startTime)}}const _n={};class zn{constructor(a,o,p,S,N,X,q,Me){this._driver=a,this.element=o,this.subInstructions=p,this._enterClassName=S,this._leaveClassName=N,this.errors=X,this.timelines=q,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_n,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Me||new Ze(this._driver,o,0),q.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,o){if(!a)return;const p=a;let S=this.options;null!=p.duration&&(S.duration=sr(p.duration)),null!=p.delay&&(S.delay=sr(p.delay));const N=p.params;if(N){let X=S.params;X||(X=this.options.params={}),Object.keys(N).forEach(q=>{(!o||!X.hasOwnProperty(q))&&(X[q]=Wr(N[q],X,this.errors))})}}_copyOptions(){const a={};if(this.options){const o=this.options.params;if(o){const p=a.params={};Object.keys(o).forEach(S=>{p[S]=o[S]})}}return a}createSubContext(a=null,o,p){const S=o||this.element,N=new zn(this._driver,S,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(S,p||0));return N.previousNode=this.previousNode,N.currentAnimateTimings=this.currentAnimateTimings,N.options=this._copyOptions(),N.updateOptions(a),N.currentQueryIndex=this.currentQueryIndex,N.currentQueryTotal=this.currentQueryTotal,N.parentContext=this,this.subContextCount++,N}transformIntoNewTimeline(a){return this.previousNode=_n,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,o,p){const S={duration:o??a.duration,delay:this.currentTimeline.currentTime+(p??0)+a.delay,easing:""},N=new Vt(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,S,a.stretchStartingKeyframe);return this.timelines.push(N),S}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,o,p,S,N,X){let q=[];if(S&&q.push(this.element),a.length>0){a=(a=a.replace(Sn,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let Ue=this._driver.query(this.element,a,1!=p);0!==p&&(Ue=p<0?Ue.slice(Ue.length+p,Ue.length):Ue.slice(0,p)),q.push(...Ue)}return!N&&0==q.length&&X.push(function er(_){return new c.vHH(3014,!1)}()),q}}class Ze{constructor(a,o,p,S){this._driver=a,this.element=o,this.startTime=p,this._elementTimelineStylesLookup=S,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(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,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 o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+a),o&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,o){return this.applyStylesToKeyframe(),new Ze(this._driver,a,o||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,o){this._localTimelineStyles.set(a,o),this._globalTimelineStyles.set(a,o),this._styleSummary.set(a,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[o,p]of this._globalTimelineStyles)this._backFill.set(o,p||_t.l3),this._currentKeyframe.set(o,_t.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,o,p,S){o&&this._previousKeyframe.set("easing",o);const N=S&&S.params||{},X=function Or(_,a){const o=new Map;let p;return _.forEach(S=>{if("*"===S){p=p||a.keys();for(let N of p)o.set(N,_t.l3)}else Lr(S,o)}),o}(a,this._globalTimelineStyles);for(let[q,Me]of X){const Ue=Wr(Me,N,p);this._pendingStyles.set(q,Ue),this._localTimelineStyles.has(q)||this._backFill.set(q,this._globalTimelineStyles.get(q)||_t.l3),this._updateStyle(q,Ue)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,o)=>{this._currentKeyframe.set(o,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,a)}))}snapshotCurrentStyles(){for(let[a,o]of this._localTimelineStyles)this._pendingStyles.set(a,o),this._updateStyle(a,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let o in this._currentKeyframe)a.push(o);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((o,p)=>{const S=this._styleSummary.get(p);(!S||o.time>S.time)&&this._updateStyle(p,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,o=new Set,p=1===this._keyframes.size&&0===this.duration;let S=[];this._keyframes.forEach((q,Me)=>{const Ue=Lr(q,new Map,this._backFill);Ue.forEach((vt,It)=>{vt===_t.k1?a.add(It):vt===_t.l3&&o.add(It)}),p||Ue.set("offset",Me/this.duration),S.push(Ue)});const N=a.size?ni(a.values()):[],X=o.size?ni(o.values()):[];if(p){const q=S[0],Me=new Map(q);q.set("offset",0),Me.set("offset",1),S=[q,Me]}return re(this.element,S,N,X,this.duration,this.startTime,this.easing,!1)}}class Vt extends Ze{constructor(a,o,p,S,N,X,q=!1){super(a,o,X.delay),this.keyframes=p,this.preStyleProps=S,this.postStyleProps=N,this._stretchStartingKeyframe=q,this.timings={duration:X.duration,delay:X.delay,easing:X.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:o,duration:p,easing:S}=this.timings;if(this._stretchStartingKeyframe&&o){const N=[],X=p+o,q=o/X,Me=Lr(a[0]);Me.set("offset",0),N.push(Me);const Ue=Lr(a[0]);Ue.set("offset",si(q)),N.push(Ue);const vt=a.length-1;for(let It=1;It<=vt;It++){let en=Lr(a[It]);const Yt=en.get("offset");en.set("offset",si((o+Yt*p)/X)),N.push(en)}p=X,o=0,S="",a=N}return re(this.element,a,this.preStyleProps,this.postStyleProps,p,o,S,!0)}}function si(_,a=3){const o=Math.pow(10,a-1);return Math.round(_*o)/o}class oi{}const Gr=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 rs extends oi{normalizePropertyName(a,o){return Es(a)}normalizeStyleValue(a,o,p,S){let N="";const X=p.toString().trim();if(Gr.has(o)&&0!==p&&"0"!==p)if("number"==typeof p)N="px";else{const q=p.match(/^[+-]?[\d\.]+([a-z]*)$/);q&&0==q[1].length&&S.push(function Ke(_,a){return new c.vHH(3005,!1)}())}return X+N}}function is(_,a,o,p,S,N,X,q,Me,Ue,vt,It,en){return{type:0,element:_,triggerName:a,isRemovalTransition:S,fromState:o,fromStyles:N,toState:p,toStyles:X,timelines:q,queriedElements:Me,preStyleProps:Ue,postStyleProps:vt,totalTime:It,errors:en}}const $i={};class po{constructor(a,o,p){this._triggerName=a,this.ast=o,this._stateStyles=p}match(a,o,p,S){return function Gs(_,a,o,p,S){return _.some(N=>N(a,o,p,S))}(this.ast.matchers,a,o,p,S)}buildStyles(a,o,p){let S=this._stateStyles.get("*");return void 0!==a&&(S=this._stateStyles.get(a?.toString())||S),S?S.buildStyles(o,p):new Map}build(a,o,p,S,N,X,q,Me,Ue,vt){const It=[],en=this.ast.options&&this.ast.options.params||$i,f=this.buildStyles(p,q&&q.params||$i,It),d=Me&&Me.params||$i,u=this.buildStyles(S,d,It),y=new Set,w=new Map,P=new Map,B="void"===S,oe={params:Ai(d,en),delay:this.ast.options?.delay},We=vt?[]:cn(a,o,this.ast.animation,N,X,f,u,oe,Ue,It);let ot=0;if(We.forEach(wt=>{ot=Math.max(wt.duration+wt.delay,ot)}),It.length)return is(o,this._triggerName,p,S,B,f,u,[],[],w,P,ot,It);We.forEach(wt=>{const yn=wt.element,on=Dt(w,yn,new Set);wt.preStyleProps.forEach(_r=>on.add(_r));const fr=Dt(P,yn,new Set);wt.postStyleProps.forEach(_r=>fr.add(_r)),yn!==o&&y.add(yn)});const zt=ni(y.values());return is(o,this._triggerName,p,S,B,f,u,We,zt,w,P,ot)}}function Ai(_,a){const o=Ur(a);for(const p in _)_.hasOwnProperty(p)&&null!=_[p]&&(o[p]=_[p]);return o}class dr{constructor(a,o,p){this.styles=a,this.defaultParams=o,this.normalizer=p}buildStyles(a,o){const p=new Map,S=Ur(this.defaultParams);return Object.keys(a).forEach(N=>{const X=a[N];null!==X&&(S[N]=X)}),this.styles.styles.forEach(N=>{"string"!=typeof N&&N.forEach((X,q)=>{X&&(X=Wr(X,S,o));const Me=this.normalizer.normalizePropertyName(q,o);X=this.normalizer.normalizeStyleValue(q,Me,X,o),p.set(Me,X)})}),p}}class ss{constructor(a,o,p){this.name=a,this.ast=o,this._normalizer=p,this.transitionFactories=[],this.states=new Map,o.states.forEach(S=>{this.states.set(S.name,new dr(S.style,S.options&&S.options.params||{},p))}),Zr(this.states,"true","1"),Zr(this.states,"false","0"),o.transitions.forEach(S=>{this.transitionFactories.push(new po(a,S,this.states))}),this.fallbackTransition=function Kr(_,a,o){return new po(_,{type:1,animation:{type:2,steps:[],options:null},matchers:[(X,q)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,o,p,S){return this.transitionFactories.find(X=>X.match(a,o,p,S))||null}matchStyles(a,o,p){return this.fallbackTransition.buildStyles(a,o,p)}}function Zr(_,a,o){_.has(a)?_.has(o)||_.set(o,_.get(a)):_.has(o)&&_.set(a,_.get(o))}const go=new Ne;class Vi{constructor(a,o,p){this.bodyNode=a,this._driver=o,this._normalizer=p,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,o){const p=[],N=Kn(this._driver,o,p,[]);if(p.length)throw function Y(_){return new c.vHH(3503,!1)}();this._animations.set(a,N)}_buildPlayer(a,o,p){const S=a.element,N=Qe(0,this._normalizer,0,a.keyframes,o,p);return this._driver.animate(S,N,a.duration,a.delay,a.easing,[],!0)}create(a,o,p={}){const S=[],N=this._animations.get(a);let X;const q=new Map;if(N?(X=cn(this._driver,o,N,xn,$n,new Map,new Map,p,go,S),X.forEach(vt=>{const It=Dt(q,vt.element,new Map);vt.postStyleProps.forEach(en=>It.set(en,null))})):(S.push(function V(){return new c.vHH(3300,!1)}()),X=[]),S.length)throw function pe(_){return new c.vHH(3504,!1)}();q.forEach((vt,It)=>{vt.forEach((en,Yt)=>{vt.set(Yt,this._driver.computeStyle(It,Yt,_t.l3))})});const Ue=he(X.map(vt=>{const It=q.get(vt.element);return this._buildPlayer(vt,new Map,It)}));return this._playersById.set(a,Ue),Ue.onDestroy(()=>this.destroy(a)),this.players.push(Ue),Ue}destroy(a){const o=this._getPlayer(a);o.destroy(),this._playersById.delete(a);const p=this.players.indexOf(o);p>=0&&this.players.splice(p,1)}_getPlayer(a){const o=this._playersById.get(a);if(!o)throw function Re(_){return new c.vHH(3301,!1)}();return o}listen(a,o,p,S){const N=mn(o,"","","");return yt(this._getPlayer(a),p,N,S),()=>{}}command(a,o,p,S){if("register"==p)return void this.register(a,S[0]);if("create"==p)return void this.create(a,o,S[0]||{});const N=this._getPlayer(a);switch(p){case"play":N.play();break;case"pause":N.pause();break;case"reset":N.reset();break;case"restart":N.restart();break;case"finish":N.finish();break;case"init":N.init();break;case"setPosition":N.setPosition(parseFloat(S[0]));break;case"destroy":this.destroy(a)}}}const Cs="ng-animate-queued",zi="ng-animate-disabled",Mo=[],ls={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wi={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yr="__ng_removed";class us{constructor(a,o=""){this.namespaceId=o;const p=a&&a.hasOwnProperty("value");if(this.value=function Mi(_){return _??null}(p?a.value:a),p){const N=Ur(a);delete N.value,this.options=N}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const o=a.params;if(o){const p=this.options.params;Object.keys(o).forEach(S=>{null==p[S]&&(p[S]=o[S])})}}}const Ci="void",bs=new us(Ci);class Ks{constructor(a,o,p){this.id=a,this.hostElement=o,this._engine=p,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Tr(o,this._hostClassName)}listen(a,o,p,S){if(!this._triggers.has(o))throw function Ee(_,a){return new c.vHH(3302,!1)}();if(null==p||0==p.length)throw function dt(_){return new c.vHH(3303,!1)}();if(!function Ys(_){return"start"==_||"done"==_}(p))throw function At(_,a){return new c.vHH(3400,!1)}();const N=Dt(this._elementListeners,a,[]),X={name:o,phase:p,callback:S};N.push(X);const q=Dt(this._engine.statesByElement,a,new Map);return q.has(o)||(Tr(a,Hr),Tr(a,Hr+"-"+o),q.set(o,bs)),()=>{this._engine.afterFlush(()=>{const Me=N.indexOf(X);Me>=0&&N.splice(Me,1),this._triggers.has(o)||q.delete(o)})}}register(a,o){return!this._triggers.has(a)&&(this._triggers.set(a,o),!0)}_getTrigger(a){const o=this._triggers.get(a);if(!o)throw function Kt(_){return new c.vHH(3401,!1)}();return o}trigger(a,o,p,S=!0){const N=this._getTrigger(o),X=new ws(this.id,o,a);let q=this._engine.statesByElement.get(a);q||(Tr(a,Hr),Tr(a,Hr+"-"+o),this._engine.statesByElement.set(a,q=new Map));let Me=q.get(o);const Ue=new us(p,this.id);if(!(p&&p.hasOwnProperty("value"))&&Me&&Ue.absorbOptions(Me.options),q.set(o,Ue),Me||(Me=bs),Ue.value!==Ci&&Me.value===Ue.value){if(!function yo(_,a){const o=Object.keys(_),p=Object.keys(a);if(o.length!=p.length)return!1;for(let S=0;S<o.length;S++){const N=o[S];if(!a.hasOwnProperty(N)||_[N]!==a[N])return!1}return!0}(Me.params,Ue.params)){const d=[],u=N.matchStyles(Me.value,Me.params,d),y=N.matchStyles(Ue.value,Ue.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(()=>{mr(a,u),Ir(a,y)})}return}const en=Dt(this._engine.playersByElement,a,[]);en.forEach(d=>{d.namespaceId==this.id&&d.triggerName==o&&d.queued&&d.destroy()});let Yt=N.matchTransition(Me.value,Ue.value,a,Ue.params),f=!1;if(!Yt){if(!S)return;Yt=N.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:o,transition:Yt,fromState:Me,toState:Ue,player:X,isFallbackTransition:f}),f||(Tr(a,Cs),X.onStart(()=>{bi(a,Cs)})),X.onDone(()=>{let d=this.players.indexOf(X);d>=0&&this.players.splice(d,1);const u=this._engine.playersByElement.get(a);if(u){let y=u.indexOf(X);y>=0&&u.splice(y,1)}}),this.players.push(X),en.push(X),X}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(o=>o.delete(a)),this._elementListeners.forEach((o,p)=>{this._elementListeners.set(p,o.filter(S=>S.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const o=this._engine.playersByElement.get(a);o&&(o.forEach(p=>p.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,o){const p=this._engine.driver.query(a,br,!0),S=a.shadowRoot?this._engine.driver.query(a.shadowRoot,br,!0):[];[...p,...S].forEach(N=>{if(N[yr])return;const X=this._engine.fetchNamespacesByElement(N);X.size?X.forEach(q=>q.triggerLeaveAnimation(N,o,!1,!0)):this.clearElementCache(N)}),this._engine.afterFlushAnimationsDone(()=>p.forEach(N=>this.clearElementCache(N)))}triggerLeaveAnimation(a,o,p,S){const N=this._engine.statesByElement.get(a),X=new Map;if(N){const q=[];if(N.forEach((Me,Ue)=>{if(X.set(Ue,Me.value),this._triggers.has(Ue)){const vt=this.trigger(a,Ue,Ci,S);vt&&q.push(vt)}}),q.length)return this._engine.markElementAsRemoved(this.id,a,!0,o,X),p&&he(q).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const o=this._elementListeners.get(a),p=this._engine.statesByElement.get(a);if(o&&p){const S=new Set;o.forEach(N=>{const X=N.name;if(S.has(X))return;S.add(X);const Me=this._triggers.get(X).fallbackTransition,Ue=p.get(X)||bs,vt=new us(Ci),It=new ws(this.id,X,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:X,transition:Me,fromState:Ue,toState:vt,player:It,isFallbackTransition:!0})})}}removeNode(a,o){const p=this._engine;if((!!a.childElementCount||!(!a.shadowRoot||!a.shadowRoot.childElementCount))&&this._signalRemovalForInnerTriggers(a,o),this.triggerLeaveAnimation(a,o,!0))return;let X=!1;if(p.totalAnimations){const q=p.players.length?p.playersByQueriedElement.get(a):[];if(q&&q.length)X=!0;else{let Me=a;for(;Me=Me.parentNode;)if(p.statesByElement.get(Me)){X=!0;break}}}if(this.prepareLeaveAnimationListeners(a),X)p.markElementAsRemoved(this.id,a,!1,o);else{const q=a[yr];(!q||q===ls)&&(p.afterFlush(()=>this.clearElementCache(a)),p.destroyInnerAnimations(a),p._onRemovalComplete(a,o))}}insertNode(a,o){Tr(a,this._hostClassName)}drainQueuedTransitions(a){const o=[];return this._queue.forEach(p=>{const S=p.player;if(S.destroyed)return;const N=p.element,X=this._elementListeners.get(N);X&&X.forEach(q=>{if(q.name==p.triggerName){const Me=mn(N,p.triggerName,p.fromState.value,p.toState.value);Me._data=a,yt(p.player,q.phase,Me,q.callback)}}),S.markedForDestroy?this._engine.afterFlush(()=>{S.destroy()}):o.push(p)}),this._queue=[],o.sort((p,S)=>{const N=p.transition.ast.depCount,X=S.transition.ast.depCount;return 0==N||0==X?N-X:this._engine.driver.containsElement(p.element,S.element)?1:-1})}destroy(a){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let o=!1;return this._elementListeners.has(a)&&(o=!0),o=!!this._queue.find(p=>p.element===a)||o,o}}class Zs{constructor(a,o,p){this.bodyNode=a,this.driver=o,this._normalizer=p,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=(S,N)=>{}}_onRemovalComplete(a,o){this.onRemovalComplete(a,o)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(o=>{o.players.forEach(p=>{p.queued&&a.push(p)})}),a}createNamespace(a,o){const p=new Ks(a,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(p,o):(this.newHostElements.set(o,p),this.collectEnterElement(o)),this._namespaceLookup[a]=p}_balanceNamespaceList(a,o){const p=this._namespaceList,S=this.namespacesByHostElement;if(p.length-1>=0){let X=!1,q=this.driver.getParentElement(o);for(;q;){const Me=S.get(q);if(Me){const Ue=p.indexOf(Me);p.splice(Ue+1,0,a),X=!0;break}q=this.driver.getParentElement(q)}X||p.unshift(a)}else p.push(a);return S.set(o,a),a}register(a,o){let p=this._namespaceLookup[a];return p||(p=this.createNamespace(a,o)),p}registerTrigger(a,o,p){let S=this._namespaceLookup[a];S&&S.register(o,p)&&this.totalAnimations++}destroy(a,o){if(!a)return;const p=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(p.hostElement),delete this._namespaceLookup[a];const S=this._namespaceList.indexOf(p);S>=0&&this._namespaceList.splice(S,1)}),this.afterFlushAnimationsDone(()=>p.destroy(o))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const o=new Set,p=this.statesByElement.get(a);if(p)for(let S of p.values())if(S.namespaceId){const N=this._fetchNamespace(S.namespaceId);N&&o.add(N)}return o}trigger(a,o,p,S){if(Pn(o)){const N=this._fetchNamespace(a);if(N)return N.trigger(o,p,S),!0}return!1}insertNode(a,o,p,S){if(!Pn(o))return;const N=o[yr];if(N&&N.setForRemoval){N.setForRemoval=!1,N.setForMove=!0;const X=this.collectedLeaveElements.indexOf(o);X>=0&&this.collectedLeaveElements.splice(X,1)}if(a){const X=this._fetchNamespace(a);X&&X.insertNode(o,p)}S&&this.collectEnterElement(o)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,o){o?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Tr(a,zi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),bi(a,zi))}removeNode(a,o,p,S){if(Pn(o)){const N=a?this._fetchNamespace(a):null;if(N?N.removeNode(o,S):this.markElementAsRemoved(a,o,!1,S),p){const X=this.namespacesByHostElement.get(o);X&&X.id!==a&&X.removeNode(o,S)}}else this._onRemovalComplete(o,S)}markElementAsRemoved(a,o,p,S,N){this.collectedLeaveElements.push(o),o[yr]={namespaceId:a,setForRemoval:S,hasAnimation:p,removedBeforeQueried:!1,previousTriggersValues:N}}listen(a,o,p,S,N){return Pn(o)?this._fetchNamespace(a).listen(o,p,S,N):()=>{}}_buildInstruction(a,o,p,S,N){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,p,S,a.fromState.options,a.toState.options,o,N)}destroyInnerAnimations(a){let o=this.driver.query(a,br,!0);o.forEach(p=>this.destroyActiveAnimationsForElement(p)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(a,ir,!0),o.forEach(p=>this.finishActiveQueriedAnimationOnElement(p)))}destroyActiveAnimationsForElement(a){const o=this.playersByElement.get(a);o&&o.forEach(p=>{p.queued?p.markedForDestroy=!0:p.destroy()})}finishActiveQueriedAnimationOnElement(a){const o=this.playersByQueriedElement.get(a);o&&o.forEach(p=>p.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return he(this.players).onDone(()=>a());a()})}processLeaveNode(a){const o=a[yr];if(o&&o.setForRemoval){if(a[yr]=ls,o.namespaceId){this.destroyInnerAnimations(a);const p=this._fetchNamespace(o.namespaceId);p&&p.clearElementCache(a)}this._onRemovalComplete(a,o.setForRemoval)}a.classList?.contains(zi)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(p=>{this.markElementAsDisabled(p,!1)})}flush(a=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((p,S)=>this._balanceNamespaceList(p,S)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let p=0;p<this.collectedEnterElements.length;p++)Tr(this.collectedEnterElements[p],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const p=[];try{o=this._flushAnimations(p,a)}finally{for(let S=0;S<p.length;S++)p[S]()}}else for(let p=0;p<this.collectedLeaveElements.length;p++)this.processLeaveNode(this.collectedLeaveElements[p]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(p=>p()),this._flushFns=[],this._whenQuietFns.length){const p=this._whenQuietFns;this._whenQuietFns=[],o.length?he(o).onDone(()=>{p.forEach(S=>S())}):p.forEach(S=>S())}}reportError(a){throw function hn(_){return new c.vHH(3402,!1)}()}_flushAnimations(a,o){const p=new Ne,S=[],N=new Map,X=[],q=new Map,Me=new Map,Ue=new Map,vt=new Set;this.disabledNodes.forEach(mt=>{vt.add(mt);const Ot=this.driver.query(mt,".ng-animate-queued",!0);for(let Ut=0;Ut<Ot.length;Ut++)vt.add(Ot[Ut])});const It=this.bodyNode,en=Array.from(this.statesByElement.keys()),Yt=Qs(en,this.collectedEnterElements),f=new Map;let d=0;Yt.forEach((mt,Ot)=>{const Ut=xn+d++;f.set(Ot,Ut),mt.forEach(pn=>Tr(pn,Ut))});const u=[],y=new Set,w=new Set;for(let mt=0;mt<this.collectedLeaveElements.length;mt++){const Ot=this.collectedLeaveElements[mt],Ut=Ot[yr];Ut&&Ut.setForRemoval&&(u.push(Ot),y.add(Ot),Ut.hasAnimation?this.driver.query(Ot,".ng-star-inserted",!0).forEach(pn=>y.add(pn)):w.add(Ot))}const P=new Map,B=Qs(en,Array.from(y));B.forEach((mt,Ot)=>{const Ut=$n+d++;P.set(Ot,Ut),mt.forEach(pn=>Tr(pn,Ut))}),a.push(()=>{Yt.forEach((mt,Ot)=>{const Ut=f.get(Ot);mt.forEach(pn=>bi(pn,Ut))}),B.forEach((mt,Ot)=>{const Ut=P.get(Ot);mt.forEach(pn=>bi(pn,Ut))}),u.forEach(mt=>{this.processLeaveNode(mt)})});const oe=[],We=[];for(let mt=this._namespaceList.length-1;mt>=0;mt--)this._namespaceList[mt].drainQueuedTransitions(o).forEach(Ut=>{const pn=Ut.player,Jn=Ut.element;if(oe.push(pn),this.collectedEnterElements.length){const On=Jn[yr];if(On&&On.setForMove){if(On.previousTriggersValues&&On.previousTriggersValues.has(Ut.triggerName)){const Ni=On.previousTriggersValues.get(Ut.triggerName),ur=this.statesByElement.get(Ut.element);if(ur&&ur.has(Ut.triggerName)){const oo=ur.get(Ut.triggerName);oo.value=Ni,ur.set(Ut.triggerName,oo)}}return void pn.destroy()}}const fi=!It||!this.driver.containsElement(It,Jn),Vr=P.get(Jn),ps=f.get(Jn),Xn=this._buildInstruction(Ut,p,ps,Vr,fi);if(Xn.errors&&Xn.errors.length)return void We.push(Xn);if(fi)return pn.onStart(()=>mr(Jn,Xn.fromStyles)),pn.onDestroy(()=>Ir(Jn,Xn.toStyles)),void S.push(pn);if(Ut.isFallbackTransition)return pn.onStart(()=>mr(Jn,Xn.fromStyles)),pn.onDestroy(()=>Ir(Jn,Xn.toStyles)),void S.push(pn);const Sa=[];Xn.timelines.forEach(On=>{On.stretchStartingKeyframe=!0,this.disabledNodes.has(On.element)||Sa.push(On)}),Xn.timelines=Sa,p.append(Jn,Xn.timelines),X.push({instruction:Xn,player:pn,element:Jn}),Xn.queriedElements.forEach(On=>Dt(q,On,[]).push(pn)),Xn.preStyleProps.forEach((On,Ni)=>{if(On.size){let ur=Me.get(Ni);ur||Me.set(Ni,ur=new Set),On.forEach((oo,Ns)=>ur.add(Ns))}}),Xn.postStyleProps.forEach((On,Ni)=>{let ur=Ue.get(Ni);ur||Ue.set(Ni,ur=new Set),On.forEach((oo,Ns)=>ur.add(Ns))})});if(We.length){const mt=[];We.forEach(Ot=>{mt.push(function xt(_,a){return new c.vHH(3505,!1)}())}),oe.forEach(Ot=>Ot.destroy()),this.reportError(mt)}const ot=new Map,zt=new Map;X.forEach(mt=>{const Ot=mt.element;p.has(Ot)&&(zt.set(Ot,Ot),this._beforeAnimationBuild(mt.player.namespaceId,mt.instruction,ot))}),S.forEach(mt=>{const Ot=mt.element;this._getPreviousPlayers(Ot,!1,mt.namespaceId,mt.triggerName,null).forEach(pn=>{Dt(ot,Ot,[]).push(pn),pn.destroy()})});const wt=u.filter(mt=>vo(mt,Me,Ue)),yn=new Map;Gi(yn,this.driver,w,Ue,_t.l3).forEach(mt=>{vo(mt,Me,Ue)&&wt.push(mt)});const fr=new Map;Yt.forEach((mt,Ot)=>{Gi(fr,this.driver,new Set(mt),Me,_t.k1)}),wt.forEach(mt=>{const Ot=yn.get(mt),Ut=fr.get(mt);yn.set(mt,new Map([...Array.from(Ot?.entries()??[]),...Array.from(Ut?.entries()??[])]))});const _r=[],bo=[],xs={};X.forEach(mt=>{const{element:Ot,player:Ut,instruction:pn}=mt;if(p.has(Ot)){if(vt.has(Ot))return Ut.onDestroy(()=>Ir(Ot,pn.toStyles)),Ut.disabled=!0,Ut.overrideTotalTime(pn.totalTime),void S.push(Ut);let Jn=xs;if(zt.size>1){let Vr=Ot;const ps=[];for(;Vr=Vr.parentNode;){const Xn=zt.get(Vr);if(Xn){Jn=Xn;break}ps.push(Vr)}ps.forEach(Xn=>zt.set(Xn,Jn))}const fi=this._buildAnimation(Ut.namespaceId,pn,ot,N,fr,yn);if(Ut.setRealPlayer(fi),Jn===xs)_r.push(Ut);else{const Vr=this.playersByElement.get(Jn);Vr&&Vr.length&&(Ut.parentPlayer=he(Vr)),S.push(Ut)}}else mr(Ot,pn.fromStyles),Ut.onDestroy(()=>Ir(Ot,pn.toStyles)),bo.push(Ut),vt.has(Ot)&&S.push(Ut)}),bo.forEach(mt=>{const Ot=N.get(mt.element);if(Ot&&Ot.length){const Ut=he(Ot);mt.setRealPlayer(Ut)}}),S.forEach(mt=>{mt.parentPlayer?mt.syncPlayerEvents(mt.parentPlayer):mt.destroy()});for(let mt=0;mt<u.length;mt++){const Ot=u[mt],Ut=Ot[yr];if(bi(Ot,$n),Ut&&Ut.hasAnimation)continue;let pn=[];if(q.size){let fi=q.get(Ot);fi&&fi.length&&pn.push(...fi);let Vr=this.driver.query(Ot,ir,!0);for(let ps=0;ps<Vr.length;ps++){let Xn=q.get(Vr[ps]);Xn&&Xn.length&&pn.push(...Xn)}}const Jn=pn.filter(fi=>!fi.destroyed);Jn.length?qs(this,Ot,Jn):this.processLeaveNode(Ot)}return u.length=0,_r.forEach(mt=>{this.players.push(mt),mt.onDone(()=>{mt.destroy();const Ot=this.players.indexOf(mt);this.players.splice(Ot,1)}),mt.play()}),_r}elementContainsData(a,o){let p=!1;const S=o[yr];return S&&S.setForRemoval&&(p=!0),this.playersByElement.has(o)&&(p=!0),this.playersByQueriedElement.has(o)&&(p=!0),this.statesByElement.has(o)&&(p=!0),this._fetchNamespace(a).elementContainsData(o)||p}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,o,p,S,N){let X=[];if(o){const q=this.playersByQueriedElement.get(a);q&&(X=q)}else{const q=this.playersByElement.get(a);if(q){const Me=!N||N==Ci;q.forEach(Ue=>{Ue.queued||!Me&&Ue.triggerName!=S||X.push(Ue)})}}return(p||S)&&(X=X.filter(q=>!(p&&p!=q.namespaceId||S&&S!=q.triggerName))),X}_beforeAnimationBuild(a,o,p){const N=o.element,X=o.isRemovalTransition?void 0:a,q=o.isRemovalTransition?void 0:o.triggerName;for(const Me of o.timelines){const Ue=Me.element,vt=Ue!==N,It=Dt(p,Ue,[]);this._getPreviousPlayers(Ue,vt,X,q,o.toState).forEach(Yt=>{const f=Yt.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),Yt.destroy(),It.push(Yt)})}mr(N,o.fromStyles)}_buildAnimation(a,o,p,S,N,X){const q=o.triggerName,Me=o.element,Ue=[],vt=new Set,It=new Set,en=o.timelines.map(f=>{const d=f.element;vt.add(d);const u=d[yr];if(u&&u.removedBeforeQueried)return new _t.ZN(f.duration,f.delay);const y=d!==Me,w=function Js(_){const a=[];return Pi(_,a),a}((p.get(d)||Mo).map(ot=>ot.getRealPlayer())).filter(ot=>!!ot.element&&ot.element===d),P=N.get(d),B=X.get(d),oe=Qe(0,this._normalizer,0,f.keyframes,P,B),We=this._buildPlayer(f,oe,w);if(f.subTimeline&&S&&It.add(d),y){const ot=new ws(a,q,d);ot.setRealPlayer(We),Ue.push(ot)}return We});Ue.forEach(f=>{Dt(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function lr(_,a,o){let p=_.get(a);if(p){if(p.length){const S=p.indexOf(o);p.splice(S,1)}0==p.length&&_.delete(a)}return p}(this.playersByQueriedElement,f.element,f))}),vt.forEach(f=>Tr(f,Fr));const Yt=he(en);return Yt.onDestroy(()=>{vt.forEach(f=>bi(f,Fr)),Ir(Me,o.toStyles)}),It.forEach(f=>{Dt(S,f,[]).push(Yt)}),Yt}_buildPlayer(a,o,p){return o.length>0?this.driver.animate(a.element,o,a.duration,a.delay,a.easing,p):new _t.ZN(a.duration,a.delay)}}class ws{constructor(a,o,p){this.namespaceId=a,this.triggerName=o,this.element=p,this._player=new _t.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((o,p)=>{o.forEach(S=>yt(a,p,void 0,S))}),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 o=this._player;o.triggerCallback&&a.onStart(()=>o.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,o){Dt(this._queuedCallbacks,a,[]).push(o)}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 o=this._player;o.triggerCallback&&o.triggerCallback(a)}}function Pn(_){return _&&1===_.nodeType}function Ts(_,a){const o=_.style.display;return _.style.display=a??"none",o}function Gi(_,a,o,p,S){const N=[];o.forEach(Me=>N.push(Ts(Me)));const X=[];p.forEach((Me,Ue)=>{const vt=new Map;Me.forEach(It=>{const en=a.computeStyle(Ue,It,S);vt.set(It,en),(!en||0==en.length)&&(Ue[yr]=Wi,X.push(Ue))}),_.set(Ue,vt)});let q=0;return o.forEach(Me=>Ts(Me,N[q++])),X}function Qs(_,a){const o=new Map;if(_.forEach(q=>o.set(q,[])),0==a.length)return o;const S=new Set(a),N=new Map;function X(q){if(!q)return 1;let Me=N.get(q);if(Me)return Me;const Ue=q.parentNode;return Me=o.has(Ue)?Ue:S.has(Ue)?1:X(Ue),N.set(q,Me),Me}return a.forEach(q=>{const Me=X(q);1!==Me&&o.get(Me).push(q)}),o}function Tr(_,a){_.classList?.add(a)}function bi(_,a){_.classList?.remove(a)}function qs(_,a,o){he(o).onDone(()=>_.processLeaveNode(a))}function Pi(_,a){for(let o=0;o<_.length;o++){const p=_[o];p instanceof _t.ZE?Pi(p.players,a):a.push(p)}}function vo(_,a,o){const p=o.get(_);if(!p)return!1;let S=a.get(_);return S?p.forEach(N=>S.add(N)):a.set(_,p),o.delete(_),!0}class wi{constructor(a,o,p){this.bodyNode=a,this._driver=o,this._normalizer=p,this._triggerCache={},this.onRemovalComplete=(S,N)=>{},this._transitionEngine=new Zs(a,o,p),this._timelineEngine=new Vi(a,o,p),this._transitionEngine.onRemovalComplete=(S,N)=>this.onRemovalComplete(S,N)}registerTrigger(a,o,p,S,N){const X=a+"-"+S;let q=this._triggerCache[X];if(!q){const Me=[],vt=Kn(this._driver,N,Me,[]);if(Me.length)throw function jt(_,a){return new c.vHH(3404,!1)}();q=function li(_,a,o){return new ss(_,a,o)}(S,vt,this._normalizer),this._triggerCache[X]=q}this._transitionEngine.registerTrigger(o,S,q)}register(a,o){this._transitionEngine.register(a,o)}destroy(a,o){this._transitionEngine.destroy(a,o)}onInsert(a,o,p,S){this._transitionEngine.insertNode(a,o,p,S)}onRemove(a,o,p,S){this._transitionEngine.removeNode(a,o,S||!1,p)}disableAnimations(a,o){this._transitionEngine.markElementAsDisabled(a,o)}process(a,o,p,S){if("@"==p.charAt(0)){const[N,X]=Sr(p);this._timelineEngine.command(N,o,X,S)}else this._transitionEngine.trigger(a,o,p,S)}listen(a,o,p,S,N){if("@"==p.charAt(0)){const[X,q]=Sr(p);return this._timelineEngine.listen(X,o,q,N)}return this._transitionEngine.listen(a,o,p,S,N)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cs=(()=>{class _{constructor(o,p,S){this._element=o,this._startStyles=p,this._endStyles=S,this._state=0;let N=_.initialStylesByElement.get(o);N||_.initialStylesByElement.set(o,N=new Map),this._initialStyles=N}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_.initialStylesByElement.delete(this._element),this._startStyles&&(mr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(mr(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return _.initialStylesByElement=new WeakMap,_})();function Xs(_){let a=null;return _.forEach((o,p)=>{(function Po(_){return"display"===_||"position"===_})(p)&&(a=a||new Map,a.set(p,o))}),a}class Ti{constructor(a,o,p,S){this.element=a,this.keyframes=o,this.options=p,this._specialStyles=S,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=p.duration,this._delay=p.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 o=[];return a.forEach(p=>{o.push(Object.fromEntries(p))}),o}_triggerWebAnimation(a,o,p){return a.animate(this._convertKeyframesToObject(o),p)}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((p,S)=>{"offset"!==S&&a.set(S,this._finished?p:Br(this.element,S))}),this.currentSnapshot=a}triggerCallback(a){const o="start"===a?this._onStartFns:this._onDoneFns;o.forEach(p=>p()),o.length=0}}class Zn{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,o){return!1}containsElement(a,o){return cr(a,o)}getParentElement(a){return kn(a)}query(a,o,p){return rr(a,o,p)}computeStyle(a,o,p){return window.getComputedStyle(a)[o]}animate(a,o,p,S,N,X=[]){const Me={duration:p,delay:S,fill:0==S?"both":"forwards"};N&&(Me.easing=N);const Ue=new Map,vt=X.filter(Yt=>Yt instanceof Ti);(function ts(_,a){return 0===_||0===a})(p,S)&&vt.forEach(Yt=>{Yt.currentSnapshot.forEach((f,d)=>Ue.set(d,f))});let It=function yi(_){return _.length?_[0]instanceof Map?_:_.map(a=>Ii(a)):[]}(o).map(Yt=>Lr(Yt));It=function Ar(_,a,o){if(o.size&&a.length){let p=a[0],S=[];if(o.forEach((N,X)=>{p.has(X)||S.push(X),p.set(X,N)}),S.length)for(let N=1;N<a.length;N++){let X=a[N];S.forEach(q=>X.set(q,Br(_,q)))}}return a}(a,It,Ue);const en=function Yr(_,a){let o=null,p=null;return Array.isArray(a)&&a.length?(o=Xs(a[0]),a.length>1&&(p=Xs(a[a.length-1]))):a instanceof Map&&(o=Xs(a)),o||p?new cs(_,o,p):null}(a,It);return new Ti(a,It,Me,en)}}let Ss=(()=>{class _ extends _t._j{constructor(o,p){super(),this._nextAnimationId=0,this._renderer=o.createRenderer(p.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(o){const p=this._nextAnimationId.toString();this._nextAnimationId++;const S=Array.isArray(o)?(0,_t.vP)(o):o;return _o(this._renderer,null,p,"register",[S]),new Oo(p,this._renderer)}}return _.\u0275fac=function(o){return new(o||_)(c.LFG(c.FYo),c.LFG(Je.K0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();class Oo extends _t.LC{constructor(a,o){super(),this._id=a,this._renderer=o}create(a,o){return new Wo(this._id,a,o||{},this._renderer)}}class Wo{constructor(a,o,p,S){this.id=a,this.element=o,this._renderer=S,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",p)}_listen(a,o){return this._renderer.listen(this.element,`@@${this.id}:${a}`,o)}_command(a,...o){return _o(this._renderer,this.element,this.id,a,o)}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 _o(_,a,o,p,S){return _.setProperty(a,`@@${o}:${p}`,S)}const eo="@.disabled";let Is=(()=>{class _{constructor(o,p,S){this.delegate=o,this.engine=p,this._zone=S,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),p.onRemovalComplete=(N,X)=>{const q=X?.parentNode(N);q&&X.removeChild(q,N)}}createRenderer(o,p){const N=this.delegate.createRenderer(o,p);if(!(o&&p&&p.data&&p.data.animation)){let vt=this._rendererCache.get(N);return vt||(vt=new ds("",N,this.engine),this._rendererCache.set(N,vt)),vt}const X=p.id,q=p.id+"-"+this._currentId;this._currentId++,this.engine.register(q,o);const Me=vt=>{Array.isArray(vt)?vt.forEach(Me):this.engine.registerTrigger(X,q,o,vt.name,vt)};return p.data.animation.forEach(Me),new or(this,q,N,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(o,p,S){o>=0&&o<this._microtaskId?this._zone.run(()=>p(S)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(N=>{const[X,q]=N;X(q)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([p,S]))}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 _.\u0275fac=function(o){return new(o||_)(c.LFG(c.FYo),c.LFG(wi),c.LFG(c.R0b))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();class ds{constructor(a,o,p){this.namespaceId=a,this.delegate=o,this.engine=p,this.destroyNode=this.delegate.destroyNode?S=>o.destroyNode(S):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,o){return this.delegate.createElement(a,o)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,o){this.delegate.appendChild(a,o),this.engine.onInsert(this.namespaceId,o,a,!1)}insertBefore(a,o,p,S=!0){this.delegate.insertBefore(a,o,p),this.engine.onInsert(this.namespaceId,o,a,S)}removeChild(a,o,p){this.engine.onRemove(this.namespaceId,o,this.delegate,p)}selectRootElement(a,o){return this.delegate.selectRootElement(a,o)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,o,p,S){this.delegate.setAttribute(a,o,p,S)}removeAttribute(a,o,p){this.delegate.removeAttribute(a,o,p)}addClass(a,o){this.delegate.addClass(a,o)}removeClass(a,o){this.delegate.removeClass(a,o)}setStyle(a,o,p,S){this.delegate.setStyle(a,o,p,S)}removeStyle(a,o,p){this.delegate.removeStyle(a,o,p)}setProperty(a,o,p){"@"==o.charAt(0)&&o==eo?this.disableAnimations(a,!!p):this.delegate.setProperty(a,o,p)}setValue(a,o){this.delegate.setValue(a,o)}listen(a,o,p){return this.delegate.listen(a,o,p)}disableAnimations(a,o){this.engine.disableAnimations(a,o)}}class or extends ds{constructor(a,o,p,S){super(o,p,S),this.factory=a,this.namespaceId=o}setProperty(a,o,p){"@"==o.charAt(0)?"."==o.charAt(1)&&o==eo?this.disableAnimations(a,p=void 0===p||!!p):this.engine.process(this.namespaceId,a,o.slice(1),p):this.delegate.setProperty(a,o,p)}listen(a,o,p){if("@"==o.charAt(0)){const S=function Do(_){switch(_){case"body":return document.body;case"document":return document;case"window":return window;default:return _}}(a);let N=o.slice(1),X="";return"@"!=N.charAt(0)&&([N,X]=function Oi(_){const a=_.indexOf(".");return[_.substring(0,a),_.slice(a+1)]}(N)),this.engine.listen(this.namespaceId,S,N,X,q=>{this.factory.scheduleListenerCallback(q._data||-1,p,q)})}return this.delegate.listen(a,o,p)}}const fs=[{provide:_t._j,useClass:Ss},{provide:oi,useFactory:function ci(){return new rs}},{provide:wi,useClass:(()=>{class _ extends wi{constructor(o,p,S,N){super(o.body,p,S)}ngOnDestroy(){this.flush()}}return _.\u0275fac=function(o){return new(o||_)(c.LFG(Je.K0),c.LFG(ei),c.LFG(oi),c.LFG(c.z2F))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})()},{provide:c.FYo,useFactory:function As(_,a,o){return new Is(_,a,o)},deps:[m.se,wi,c.R0b]}],to=[{provide:ei,useFactory:()=>new Zn},{provide:c.QbO,useValue:"BrowserAnimations"},...fs],Eo=[{provide:ei,useClass:Cr},{provide:c.QbO,useValue:"NoopAnimations"},...fs];let no=(()=>{class _{static withConfig(o){return{ngModule:_,providers:o.disableAnimations?Eo:to}}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({providers:to,imports:[m.b2]}),_})(),di=(()=>{class _{constructor(o){this._router=o}intercept(o,p){let S=JSON.parse(window.localStorage.getItem("user")),N=new Date;if(null!=S){let X=new Date(S.Token.expiredAt);o=o.clone(N<X?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${S.Token.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else o=o.clone({setHeaders:{"Content-Type":"application/json"}});return p.handle(o)}}return _.\u0275fac=function(o){return new(o||_)(c.LFG(In.F0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();var Ri=b(7185);const xi=["custom-toast-component",""];function hs(_,a){if(1&_){const o=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(o);const S=c.oxw(2);return c.KtG(S.remove())}),c._uU(1," x "),c.qZA()}}function $r(_,a){if(1&_&&(c.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),c._uU(4),c.qZA()()(),c.TgZ(5,"div",8),c.YNc(6,hs,2,0,"a",9),c.qZA()()),2&_){const o=c.oxw();c.Udp("display","inactive"===o.state.value?"none":""),c.xp6(2),c.Tol(o.options.titleClass),c.uIk("aria-label",o.title),c.xp6(2),c.Oqu(o.title),c.xp6(2),c.Q6J("ngIf",o.options.closeButton)}}const Ms=function(_){return{notitle:_}};function Ki(_,a){if(1&_&&c._UZ(0,"div",11),2&_){const o=c.oxw();c.Tol(o.options.messageClass),c.Q6J("ngClass",c.VKq(4,Ms,null==o.title))("innerHTML",o.message,c.oJD)}}function Ps(_,a){if(1&_&&(c.TgZ(0,"div",12),c._uU(1),c.qZA()),2&_){const o=c.oxw();c.Tol(o.options.messageClass),c.Q6J("ngClass",c.VKq(5,Ms,null==o.title)),c.uIk("aria-label",o.message),c.xp6(1),c.hij(" ",o.message," ")}}function ro(_,a){if(1&_){const o=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(o);const S=c.oxw();return c.KtG(S.remove())}),c._uU(1," x "),c.qZA()}}function Os(_,a){if(1&_&&(c.TgZ(0,"div"),c._UZ(1,"div",13),c.qZA()),2&_){const o=c.oxw();c.xp6(1),c.Udp("width",o.width+"%")}}let Co=(()=>{class _ extends Ri.FN{constructor(o,p){super(o,p),this.toastrService=o,this.toastPackage=p}ngOnInit(){}action(o){return o.stopPropagation(),this.toastPackage.triggerAction(),!1}}return _.\u0275fac=function(o){return new(o||_)(c.Y36(Ri._W),c.Y36(Ri.PR))},_.\u0275cmp=c.Xpm({type:_,selectors:[["","custom-toast-component",""]],features:[c.qOj],attrs:xi,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(o,p){1&o&&(c.TgZ(0,"div",0),c.YNc(1,$r,7,7,"div",1),c.YNc(2,Ki,1,6,"div",2),c.YNc(3,Ps,2,7,"div",3),c.YNc(4,ro,2,0,"a",4),c.YNc(5,Os,2,2,"div",5),c.qZA()),2&o&&(c.xp6(1),c.Q6J("ngIf",p.title),c.xp6(1),c.Q6J("ngIf",p.message&&p.options.enableHtml),c.xp6(1),c.Q6J("ngIf",p.message&&!p.options.enableHtml),c.xp6(1),c.Q6J("ngIf",p.options.closeButton&&null==p.title),c.xp6(1),c.Q6J("ngIf",p.options.progressBar))},dependencies:[Je.mk,Je.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,_t.X$)("flyInOut",[(0,_t.SB)("inactive",(0,_t.oB)({opacity:0})),(0,_t.eR)("inactive => active",(0,_t.jt)("400ms ease-out",(0,_t.F4)([(0,_t.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,_t.oB)({transform:"skewX(20deg)",opacity:1}),(0,_t.oB)({transform:"skewX(-5deg)",opacity:1}),(0,_t.oB)({transform:"none",opacity:1})]))),(0,_t.eR)("active => removed",(0,_t.jt)("400ms ease-out",(0,_t.F4)([(0,_t.oB)({opacity:1}),(0,_t.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),_})();var Rs=b(5421),xo=b(2011),Zi=b(7899),Yi=b(2340);const io={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]};let so=(()=>{class _{}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_,bootstrap:[Hn]}),_.\u0275inj=c.cJS({providers:[{provide:F.TP,useClass:di,multi:!0},vn.O,Wn.e],imports:[m.b2,Nn,no,Ri.Rh.forRoot({toastComponent:Co,positionClass:"toast-bottom-right",closeButton:!0}),F.JF,Rs.Cz.forRoot(io),nn.forRoot(),xo.hO.initializeApp(Yi.N.firebaseConfig),Zi.ww]}),_})();Yi.N.production&&(0,c.G48)(),m.q6().bootstrapModule(so).catch(_=>console.error(_))},5867:(it,De,b)=>{b.d(De,{C6:()=>m.getApps,Mq:()=>m.getApp});var m=b(9681);(0,m.registerVersion)("firebase","9.12.1","app")},127:(it,De,b)=>{b.d(De,{Z:()=>m.Z});var m=b(3942);m.Z.registerVersion("firebase","9.12.1","app-compat")},1135:(it,De,b)=>{b.d(De,{X:()=>c});var m=b(7579);class c extends m.x{constructor(z){super(),this._value=z}get value(){return this.getValue()}_subscribe(z){const U=super._subscribe(z);return!U.closed&&z.next(this._value),U}getValue(){const{hasError:z,thrownError:U,_value:J}=this;if(z)throw U;return this._throwIfClosed(),J}next(z){super.next(this._value=z)}}},8306:(it,De,b)=>{b.d(De,{y:()=>R});var m=b(930),c=b(727),F=b(8822),z=b(4671);var ee=b(2416),ie=b(576),te=b(2806);let R=(()=>{class Oe{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const Ie=new Oe;return Ie.source=this,Ie.operator=Be,Ie}subscribe(Be,Ie,Te){const Je=function je(Oe){return Oe&&Oe instanceof m.Lv||function de(Oe){return Oe&&(0,ie.m)(Oe.next)&&(0,ie.m)(Oe.error)&&(0,ie.m)(Oe.complete)}(Oe)&&(0,c.Nn)(Oe)}(Be)?Be:new m.Hp(Be,Ie,Te);return(0,te.x)(()=>{const{operator:ke,source:Ce}=this;Je.add(ke?ke.call(Je,Ce):Ce?this._subscribe(Je):this._trySubscribe(Je))}),Je}_trySubscribe(Be){try{return this._subscribe(Be)}catch(Ie){Be.error(Ie)}}forEach(Be,Ie){return new(Ie=L(Ie))((Te,Je)=>{const ke=new m.Hp({next:Ce=>{try{Be(Ce)}catch(x){Je(x),ke.unsubscribe()}},error:Je,complete:Te});this.subscribe(ke)})}_subscribe(Be){var Ie;return null===(Ie=this.source)||void 0===Ie?void 0:Ie.subscribe(Be)}[F.L](){return this}pipe(...Be){return function J(Oe){return 0===Oe.length?z.y:1===Oe.length?Oe[0]:function(Be){return Oe.reduce((Ie,Te)=>Te(Ie),Be)}}(Be)(this)}toPromise(Be){return new(Be=L(Be))((Ie,Te)=>{let Je;this.subscribe(ke=>Je=ke,ke=>Te(ke),()=>Ie(Je))})}}return Oe.create=xe=>new Oe(xe),Oe})();function L(Oe){var xe;return null!==(xe=Oe??ee.v.Promise)&&void 0!==xe?xe:Promise}},4707:(it,De,b)=>{b.d(De,{t:()=>F});var m=b(7579),c=b(6063);class F extends m.x{constructor(U=1/0,J=1/0,ee=c.l){super(),this._bufferSize=U,this._windowTime=J,this._timestampProvider=ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=J===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,J)}next(U){const{isStopped:J,_buffer:ee,_infiniteTimeWindow:ie,_timestampProvider:te,_windowTime:R}=this;J||(ee.push(U),!ie&&ee.push(te.now()+R)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const J=this._innerSubscribe(U),{_infiniteTimeWindow:ee,_buffer:ie}=this,te=ie.slice();for(let R=0;R<te.length&&!U.closed;R+=ee?1:2)U.next(te[R]);return this._checkFinalizedStatuses(U),J}_trimBuffer(){const{_bufferSize:U,_timestampProvider:J,_buffer:ee,_infiniteTimeWindow:ie}=this,te=(ie?1:2)*U;if(U<1/0&&te<ee.length&&ee.splice(0,ee.length-te),!ie){const R=J.now();let L=0;for(let de=1;de<ee.length&&ee[de]<=R;de+=2)L=de;L&&ee.splice(0,L+1)}}}},7579:(it,De,b)=>{b.d(De,{x:()=>ee});var m=b(8306),c=b(727);const z=(0,b(3888).d)(te=>function(){te(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=b(8737),J=b(2806);let ee=(()=>{class te extends m.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L){const de=new ie(this,this);return de.operator=L,de}_throwIfClosed(){if(this.closed)throw new z}next(L){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const de of this.currentObservers)de.next(L)}})}error(L){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L;const{observers:de}=this;for(;de.length;)de.shift().error(L)}})}complete(){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L}=this;for(;L.length;)L.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L;return(null===(L=this.observers)||void 0===L?void 0:L.length)>0}_trySubscribe(L){return this._throwIfClosed(),super._trySubscribe(L)}_subscribe(L){return this._throwIfClosed(),this._checkFinalizedStatuses(L),this._innerSubscribe(L)}_innerSubscribe(L){const{hasError:de,isStopped:je,observers:Oe}=this;return de||je?c.Lc:(this.currentObservers=null,Oe.push(L),new c.w0(()=>{this.currentObservers=null,(0,U.P)(Oe,L)}))}_checkFinalizedStatuses(L){const{hasError:de,thrownError:je,isStopped:Oe}=this;de?L.error(je):Oe&&L.complete()}asObservable(){const L=new m.y;return L.source=this,L}}return te.create=(R,L)=>new ie(R,L),te})();class ie extends ee{constructor(R,L){super(),this.destination=R,this.source=L}next(R){var L,de;null===(de=null===(L=this.destination)||void 0===L?void 0:L.next)||void 0===de||de.call(L,R)}error(R){var L,de;null===(de=null===(L=this.destination)||void 0===L?void 0:L.error)||void 0===de||de.call(L,R)}complete(){var R,L;null===(L=null===(R=this.destination)||void 0===R?void 0:R.complete)||void 0===L||L.call(R)}_subscribe(R){var L,de;return null!==(de=null===(L=this.source)||void 0===L?void 0:L.subscribe(R))&&void 0!==de?de:c.Lc}}},930:(it,De,b)=>{b.d(De,{Hp:()=>Be,Lv:()=>de});var m=b(576),c=b(727),F=b(2416),z=b(7849),U=b(5032);const J=te("C",void 0,void 0);function te(Ce,x,K){return{kind:Ce,value:x,error:K}}var R=b(3410),L=b(2806);class de extends c.w0{constructor(x){super(),this.isStopped=!1,x?(this.destination=x,(0,c.Nn)(x)&&x.add(this)):this.destination=ke}static create(x,K,le){return new Be(x,K,le)}next(x){this.isStopped?Je(function ie(Ce){return te("N",Ce,void 0)}(x),this):this._next(x)}error(x){this.isStopped?Je(function ee(Ce){return te("E",void 0,Ce)}(x),this):(this.isStopped=!0,this._error(x))}complete(){this.isStopped?Je(J,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(x){this.destination.next(x)}_error(x){try{this.destination.error(x)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const je=Function.prototype.bind;function Oe(Ce,x){return je.call(Ce,x)}class xe{constructor(x){this.partialObserver=x}next(x){const{partialObserver:K}=this;if(K.next)try{K.next(x)}catch(le){Ie(le)}}error(x){const{partialObserver:K}=this;if(K.error)try{K.error(x)}catch(le){Ie(le)}else Ie(x)}complete(){const{partialObserver:x}=this;if(x.complete)try{x.complete()}catch(K){Ie(K)}}}class Be extends de{constructor(x,K,le){let ue;if(super(),(0,m.m)(x)||!x)ue={next:x??void 0,error:K??void 0,complete:le??void 0};else{let W;this&&F.v.useDeprecatedNextContext?(W=Object.create(x),W.unsubscribe=()=>this.unsubscribe(),ue={next:x.next&&Oe(x.next,W),error:x.error&&Oe(x.error,W),complete:x.complete&&Oe(x.complete,W)}):ue=x}this.destination=new xe(ue)}}function Ie(Ce){F.v.useDeprecatedSynchronousErrorHandling?(0,L.O)(Ce):(0,z.h)(Ce)}function Je(Ce,x){const{onStoppedNotification:K}=F.v;K&&R.z.setTimeout(()=>K(Ce,x))}const ke={closed:!0,next:U.Z,error:function Te(Ce){throw Ce},complete:U.Z}},727:(it,De,b)=>{b.d(De,{Lc:()=>J,w0:()=>U,Nn:()=>ee});var m=b(576);const F=(0,b(3888).d)(te=>function(L){te(this),this.message=L?`${L.length} errors occurred during unsubscription:\n${L.map((de,je)=>`${je+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=L});var z=b(8737);class U{constructor(R){this.initialTeardown=R,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let R;if(!this.closed){this.closed=!0;const{_parentage:L}=this;if(L)if(this._parentage=null,Array.isArray(L))for(const Oe of L)Oe.remove(this);else L.remove(this);const{initialTeardown:de}=this;if((0,m.m)(de))try{de()}catch(Oe){R=Oe instanceof F?Oe.errors:[Oe]}const{_finalizers:je}=this;if(je){this._finalizers=null;for(const Oe of je)try{ie(Oe)}catch(xe){R=R??[],xe instanceof F?R=[...R,...xe.errors]:R.push(xe)}}if(R)throw new F(R)}}add(R){var L;if(R&&R!==this)if(this.closed)ie(R);else{if(R instanceof U){if(R.closed||R._hasParent(this))return;R._addParent(this)}(this._finalizers=null!==(L=this._finalizers)&&void 0!==L?L:[]).push(R)}}_hasParent(R){const{_parentage:L}=this;return L===R||Array.isArray(L)&&L.includes(R)}_addParent(R){const{_parentage:L}=this;this._parentage=Array.isArray(L)?(L.push(R),L):L?[L,R]:R}_removeParent(R){const{_parentage:L}=this;L===R?this._parentage=null:Array.isArray(L)&&(0,z.P)(L,R)}remove(R){const{_finalizers:L}=this;L&&(0,z.P)(L,R),R instanceof U&&R._removeParent(this)}}U.EMPTY=(()=>{const te=new U;return te.closed=!0,te})();const J=U.EMPTY;function ee(te){return te instanceof U||te&&"closed"in te&&(0,m.m)(te.remove)&&(0,m.m)(te.add)&&(0,m.m)(te.unsubscribe)}function ie(te){(0,m.m)(te)?te():te.unsubscribe()}},2416:(it,De,b)=>{b.d(De,{v:()=>m});const m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(it,De,b)=>{b.d(De,{a:()=>R});var m=b(8306),c=b(4742),F=b(8996),z=b(4671),U=b(3268),J=b(3269),ee=b(1810),ie=b(5403),te=b(9672);function R(...je){const Oe=(0,J.yG)(je),xe=(0,J.jO)(je),{args:Be,keys:Ie}=(0,c.D)(je);if(0===Be.length)return(0,F.D)([],Oe);const Te=new m.y(function L(je,Oe,xe=z.y){return Be=>{de(Oe,()=>{const{length:Ie}=je,Te=new Array(Ie);let Je=Ie,ke=Ie;for(let Ce=0;Ce<Ie;Ce++)de(Oe,()=>{const x=(0,F.D)(je[Ce],Oe);let K=!1;x.subscribe((0,ie.x)(Be,le=>{Te[Ce]=le,K||(K=!0,ke--),ke||Be.next(xe(Te.slice()))},()=>{--Je||Be.complete()}))},Be)},Be)}}(Be,Oe,Ie?Je=>(0,ee.n)(Ie,Je):z.y));return xe?Te.pipe((0,U.Z)(xe)):Te}function de(je,Oe,xe){je?(0,te.f)(xe,je,Oe):Oe()}},7272:(it,De,b)=>{b.d(De,{z:()=>U});var m=b(8189),F=b(3269),z=b(8996);function U(...J){return function c(){return(0,m.J)(1)}()((0,z.D)(J,(0,F.yG)(J)))}},9770:(it,De,b)=>{b.d(De,{P:()=>F});var m=b(8306),c=b(8421);function F(z){return new m.y(U=>{(0,c.Xf)(z()).subscribe(U)})}},515:(it,De,b)=>{b.d(De,{E:()=>c});const c=new(b(8306).y)(U=>U.complete())},8996:(it,De,b)=>{b.d(De,{D:()=>x});var m=b(8421),c=b(5363),F=b(9468),J=b(8306),ie=b(2202),te=b(576),R=b(9672);function de(K,le){if(!K)throw new Error("Iterable cannot be null");return new J.y(ue=>{(0,R.f)(ue,le,()=>{const W=K[Symbol.asyncIterator]();(0,R.f)(ue,le,()=>{W.next().then(ge=>{ge.done?ue.complete():ue.next(ge.value)})},0,!0)})})}var je=b(3670),Oe=b(8239),xe=b(1144),Be=b(6495),Ie=b(2206),Te=b(4532),Je=b(3260);function x(K,le){return le?function Ce(K,le){if(null!=K){if((0,je.c)(K))return function z(K,le){return(0,m.Xf)(K).pipe((0,F.R)(le),(0,c.Q)(le))}(K,le);if((0,xe.z)(K))return function ee(K,le){return new J.y(ue=>{let W=0;return le.schedule(function(){W===K.length?ue.complete():(ue.next(K[W++]),ue.closed||this.schedule())})})}(K,le);if((0,Oe.t)(K))return function U(K,le){return(0,m.Xf)(K).pipe((0,F.R)(le),(0,c.Q)(le))}(K,le);if((0,Ie.D)(K))return de(K,le);if((0,Be.T)(K))return function L(K,le){return new J.y(ue=>{let W;return(0,R.f)(ue,le,()=>{W=K[ie.h](),(0,R.f)(ue,le,()=>{let ge,H;try{({value:ge,done:H}=W.next())}catch(ne){return void ue.error(ne)}H?ue.complete():ue.next(ge)},0,!0)}),()=>(0,te.m)(W?.return)&&W.return()})}(K,le);if((0,Je.L)(K))return function ke(K,le){return de((0,Je.Q)(K),le)}(K,le)}throw(0,Te.z)(K)}(K,le):(0,m.Xf)(K)}},8421:(it,De,b)=>{b.d(De,{Xf:()=>je});var m=b(655),c=b(1144),F=b(8239),z=b(8306),U=b(3670),J=b(2206),ee=b(4532),ie=b(6495),te=b(3260),R=b(576),L=b(7849),de=b(8822);function je(Ce){if(Ce instanceof z.y)return Ce;if(null!=Ce){if((0,U.c)(Ce))return function Oe(Ce){return new z.y(x=>{const K=Ce[de.L]();if((0,R.m)(K.subscribe))return K.subscribe(x);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ce);if((0,c.z)(Ce))return function xe(Ce){return new z.y(x=>{for(let K=0;K<Ce.length&&!x.closed;K++)x.next(Ce[K]);x.complete()})}(Ce);if((0,F.t)(Ce))return function Be(Ce){return new z.y(x=>{Ce.then(K=>{x.closed||(x.next(K),x.complete())},K=>x.error(K)).then(null,L.h)})}(Ce);if((0,J.D)(Ce))return Te(Ce);if((0,ie.T)(Ce))return function Ie(Ce){return new z.y(x=>{for(const K of Ce)if(x.next(K),x.closed)return;x.complete()})}(Ce);if((0,te.L)(Ce))return function Je(Ce){return Te((0,te.Q)(Ce))}(Ce)}throw(0,ee.z)(Ce)}function Te(Ce){return new z.y(x=>{(function ke(Ce,x){var K,le,ue,W;return(0,m.mG)(this,void 0,void 0,function*(){try{for(K=(0,m.KL)(Ce);!(le=yield K.next()).done;)if(x.next(le.value),x.closed)return}catch(ge){ue={error:ge}}finally{try{le&&!le.done&&(W=K.return)&&(yield W.call(K))}finally{if(ue)throw ue.error}}x.complete()})})(Ce,x).catch(K=>x.error(K))})}},6451:(it,De,b)=>{b.d(De,{T:()=>J});var m=b(8189),c=b(8421),F=b(515),z=b(3269),U=b(8996);function J(...ee){const ie=(0,z.yG)(ee),te=(0,z._6)(ee,1/0),R=ee;return R.length?1===R.length?(0,c.Xf)(R[0]):(0,m.J)(te)((0,U.D)(R,ie)):F.E}},9646:(it,De,b)=>{b.d(De,{of:()=>F});var m=b(3269),c=b(8996);function F(...z){const U=(0,m.yG)(z);return(0,c.D)(z,U)}},2843:(it,De,b)=>{b.d(De,{_:()=>F});var m=b(8306),c=b(576);function F(z,U){const J=(0,c.m)(z)?z:()=>z,ee=ie=>ie.error(J());return new m.y(U?ie=>U.schedule(ee,0,ie):ee)}},2805:(it,De,b)=>{b.d(De,{H:()=>U});var m=b(8306),c=b(4986),F=b(3532),z=b(1165);function U(J=0,ee,ie=c.P){let te=-1;return null!=ee&&((0,F.K)(ee)?ie=ee:te=ee),new m.y(R=>{let L=(0,z.q)(J)?+J-ie.now():J;L<0&&(L=0);let de=0;return ie.schedule(function(){R.closed||(R.next(de++),0<=te?this.schedule(void 0,te):R.complete())},L)})}},5403:(it,De,b)=>{b.d(De,{x:()=>c});var m=b(930);function c(z,U,J,ee,ie){return new F(z,U,J,ee,ie)}class F extends m.Lv{constructor(U,J,ee,ie,te,R){super(U),this.onFinalize=te,this.shouldUnsubscribe=R,this._next=J?function(L){try{J(L)}catch(de){U.error(de)}}:super._next,this._error=ie?function(L){try{ie(L)}catch(de){U.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=ee?function(){try{ee()}catch(L){U.error(L)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:J}=this;super.unsubscribe(),!J&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},262:(it,De,b)=>{b.d(De,{K:()=>z});var m=b(8421),c=b(5403),F=b(4482);function z(U){return(0,F.e)((J,ee)=>{let R,ie=null,te=!1;ie=J.subscribe((0,c.x)(ee,void 0,void 0,L=>{R=(0,m.Xf)(U(L,z(U)(J))),ie?(ie.unsubscribe(),ie=null,R.subscribe(ee)):te=!0})),te&&(ie.unsubscribe(),ie=null,R.subscribe(ee))})}},4351:(it,De,b)=>{b.d(De,{b:()=>F});var m=b(5577),c=b(576);function F(z,U){return(0,c.m)(U)?(0,m.z)(z,U,1):(0,m.z)(z,1)}},6590:(it,De,b)=>{b.d(De,{d:()=>F});var m=b(4482),c=b(5403);function F(z){return(0,m.e)((U,J)=>{let ee=!1;U.subscribe((0,c.x)(J,ie=>{ee=!0,J.next(ie)},()=>{ee||J.next(z),J.complete()}))})}},1884:(it,De,b)=>{b.d(De,{x:()=>z});var m=b(4671),c=b(4482),F=b(5403);function z(J,ee=m.y){return J=J??U,(0,c.e)((ie,te)=>{let R,L=!0;ie.subscribe((0,F.x)(te,de=>{const je=ee(de);(L||!J(R,je))&&(L=!1,R=je,te.next(de))}))})}function U(J,ee){return J===ee}},9300:(it,De,b)=>{b.d(De,{h:()=>F});var m=b(4482),c=b(5403);function F(z,U){return(0,m.e)((J,ee)=>{let ie=0;J.subscribe((0,c.x)(ee,te=>z.call(U,te,ie++)&&ee.next(te)))})}},8746:(it,De,b)=>{b.d(De,{x:()=>c});var m=b(4482);function c(F){return(0,m.e)((z,U)=>{try{z.subscribe(U)}finally{U.add(F)}})}},590:(it,De,b)=>{b.d(De,{P:()=>ee});var m=b(6805),c=b(9300),F=b(5698),z=b(6590),U=b(8068),J=b(4671);function ee(ie,te){const R=arguments.length>=2;return L=>L.pipe(ie?(0,c.h)((de,je)=>ie(de,je,L)):J.y,(0,F.q)(1),R?(0,z.d)(te):(0,U.T)(()=>new m.K))}},4004:(it,De,b)=>{b.d(De,{U:()=>F});var m=b(4482),c=b(5403);function F(z,U){return(0,m.e)((J,ee)=>{let ie=0;J.subscribe((0,c.x)(ee,te=>{ee.next(z.call(U,te,ie++))}))})}},9718:(it,De,b)=>{b.d(De,{h:()=>c});var m=b(4004);function c(F){return(0,m.U)(()=>F)}},8189:(it,De,b)=>{b.d(De,{J:()=>F});var m=b(5577),c=b(4671);function F(z=1/0){return(0,m.z)(c.y,z)}},5577:(it,De,b)=>{b.d(De,{z:()=>ie});var m=b(4004),c=b(8421),F=b(4482),z=b(9672),U=b(5403),ee=b(576);function ie(te,R,L=1/0){return(0,ee.m)(R)?ie((de,je)=>(0,m.U)((Oe,xe)=>R(de,Oe,je,xe))((0,c.Xf)(te(de,je))),L):("number"==typeof R&&(L=R),(0,F.e)((de,je)=>function J(te,R,L,de,je,Oe,xe,Be){const Ie=[];let Te=0,Je=0,ke=!1;const Ce=()=>{ke&&!Ie.length&&!Te&&R.complete()},x=le=>Te<de?K(le):Ie.push(le),K=le=>{Oe&&R.next(le),Te++;let ue=!1;(0,c.Xf)(L(le,Je++)).subscribe((0,U.x)(R,W=>{je?.(W),Oe?x(W):R.next(W)},()=>{ue=!0},void 0,()=>{if(ue)try{for(Te--;Ie.length&&Te<de;){const W=Ie.shift();xe?(0,z.f)(R,xe,()=>K(W)):K(W)}Ce()}catch(W){R.error(W)}}))};return te.subscribe((0,U.x)(R,x,()=>{ke=!0,Ce()})),()=>{Be?.()}}(de,je,te,L)))}},5363:(it,De,b)=>{b.d(De,{Q:()=>z});var m=b(9672),c=b(4482),F=b(5403);function z(U,J=0){return(0,c.e)((ee,ie)=>{ee.subscribe((0,F.x)(ie,te=>(0,m.f)(ie,U,()=>ie.next(te),J),()=>(0,m.f)(ie,U,()=>ie.complete(),J),te=>(0,m.f)(ie,U,()=>ie.error(te),J)))})}},5026:(it,De,b)=>{b.d(De,{R:()=>z});var m=b(4482),c=b(5403);function F(U,J,ee,ie,te){return(R,L)=>{let de=ee,je=J,Oe=0;R.subscribe((0,c.x)(L,xe=>{const Be=Oe++;je=de?U(je,xe,Be):(de=!0,xe),ie&&L.next(je)},te&&(()=>{de&&L.next(je),L.complete()})))}}function z(U,J){return(0,m.e)(F(U,J,arguments.length>=2,!0))}},3099:(it,De,b)=>{b.d(De,{B:()=>U});var m=b(8421),c=b(7579),F=b(930),z=b(4482);function U(ee={}){const{connector:ie=(()=>new c.x),resetOnError:te=!0,resetOnComplete:R=!0,resetOnRefCountZero:L=!0}=ee;return de=>{let je,Oe,xe,Be=0,Ie=!1,Te=!1;const Je=()=>{Oe?.unsubscribe(),Oe=void 0},ke=()=>{Je(),je=xe=void 0,Ie=Te=!1},Ce=()=>{const x=je;ke(),x?.unsubscribe()};return(0,z.e)((x,K)=>{Be++,!Te&&!Ie&&Je();const le=xe=xe??ie();K.add(()=>{Be--,0===Be&&!Te&&!Ie&&(Oe=J(Ce,L))}),le.subscribe(K),!je&&Be>0&&(je=new F.Hp({next:ue=>le.next(ue),error:ue=>{Te=!0,Je(),Oe=J(ke,te,ue),le.error(ue)},complete:()=>{Ie=!0,Je(),Oe=J(ke,R),le.complete()}}),(0,m.Xf)(x).subscribe(je))})(de)}}function J(ee,ie,...te){if(!0===ie)return void ee();if(!1===ie)return;const R=new F.Hp({next:()=>{R.unsubscribe(),ee()}});return ie(...te).subscribe(R)}},4782:(it,De,b)=>{b.d(De,{d:()=>F});var m=b(4707),c=b(3099);function F(z,U,J){let ee,ie=!1;return z&&"object"==typeof z?({bufferSize:ee=1/0,windowTime:U=1/0,refCount:ie=!1,scheduler:J}=z):ee=z??1/0,(0,c.B)({connector:()=>new m.t(ee,U,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ie})}},8675:(it,De,b)=>{b.d(De,{O:()=>z});var m=b(7272),c=b(3269),F=b(4482);function z(...U){const J=(0,c.yG)(U);return(0,F.e)((ee,ie)=>{(J?(0,m.z)(U,ee,J):(0,m.z)(U,ee)).subscribe(ie)})}},9468:(it,De,b)=>{b.d(De,{R:()=>c});var m=b(4482);function c(F,z=0){return(0,m.e)((U,J)=>{J.add(F.schedule(()=>U.subscribe(J),z))})}},3900:(it,De,b)=>{b.d(De,{w:()=>z});var m=b(8421),c=b(4482),F=b(5403);function z(U,J){return(0,c.e)((ee,ie)=>{let te=null,R=0,L=!1;const de=()=>L&&!te&&ie.complete();ee.subscribe((0,F.x)(ie,je=>{te?.unsubscribe();let Oe=0;const xe=R++;(0,m.Xf)(U(je,xe)).subscribe(te=(0,F.x)(ie,Be=>ie.next(J?J(je,Be,xe,Oe++):Be),()=>{te=null,de()}))},()=>{L=!0,de()}))})}},5698:(it,De,b)=>{b.d(De,{q:()=>z});var m=b(515),c=b(4482),F=b(5403);function z(U){return U<=0?()=>m.E:(0,c.e)((J,ee)=>{let ie=0;J.subscribe((0,F.x)(ee,te=>{++ie<=U&&(ee.next(te),U<=ie&&ee.complete())}))})}},8505:(it,De,b)=>{b.d(De,{b:()=>U});var m=b(576),c=b(4482),F=b(5403),z=b(4671);function U(J,ee,ie){const te=(0,m.m)(J)||ee||ie?{next:J,error:ee,complete:ie}:J;return te?(0,c.e)((R,L)=>{var de;null===(de=te.subscribe)||void 0===de||de.call(te);let je=!0;R.subscribe((0,F.x)(L,Oe=>{var xe;null===(xe=te.next)||void 0===xe||xe.call(te,Oe),L.next(Oe)},()=>{var Oe;je=!1,null===(Oe=te.complete)||void 0===Oe||Oe.call(te),L.complete()},Oe=>{var xe;je=!1,null===(xe=te.error)||void 0===xe||xe.call(te,Oe),L.error(Oe)},()=>{var Oe,xe;je&&(null===(Oe=te.unsubscribe)||void 0===Oe||Oe.call(te)),null===(xe=te.finalize)||void 0===xe||xe.call(te)}))}):z.y}},8068:(it,De,b)=>{b.d(De,{T:()=>z});var m=b(6805),c=b(4482),F=b(5403);function z(J=U){return(0,c.e)((ee,ie)=>{let te=!1;ee.subscribe((0,F.x)(ie,R=>{te=!0,ie.next(R)},()=>te?ie.complete():ie.error(J())))})}function U(){return new m.K}},4408:(it,De,b)=>{b.d(De,{o:()=>U});var m=b(727);class c extends m.w0{constructor(ee,ie){super()}schedule(ee,ie=0){return this}}const F={setInterval(J,ee,...ie){const{delegate:te}=F;return te?.setInterval?te.setInterval(J,ee,...ie):setInterval(J,ee,...ie)},clearInterval(J){const{delegate:ee}=F;return(ee?.clearInterval||clearInterval)(J)},delegate:void 0};var z=b(8737);class U extends c{constructor(ee,ie){super(ee,ie),this.scheduler=ee,this.work=ie,this.pending=!1}schedule(ee,ie=0){if(this.closed)return this;this.state=ee;const te=this.id,R=this.scheduler;return null!=te&&(this.id=this.recycleAsyncId(R,te,ie)),this.pending=!0,this.delay=ie,this.id=this.id||this.requestAsyncId(R,this.id,ie),this}requestAsyncId(ee,ie,te=0){return F.setInterval(ee.flush.bind(ee,this),te)}recycleAsyncId(ee,ie,te=0){if(null!=te&&this.delay===te&&!1===this.pending)return ie;F.clearInterval(ie)}execute(ee,ie){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const te=this._execute(ee,ie);if(te)return te;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ee,ie){let R,te=!1;try{this.work(ee)}catch(L){te=!0,R=L||new Error("Scheduled action threw falsy error")}if(te)return this.unsubscribe(),R}unsubscribe(){if(!this.closed){const{id:ee,scheduler:ie}=this,{actions:te}=ie;this.work=this.state=this.scheduler=null,this.pending=!1,(0,z.P)(te,this),null!=ee&&(this.id=this.recycleAsyncId(ie,ee,null)),this.delay=null,super.unsubscribe()}}}},7565:(it,De,b)=>{b.d(De,{v:()=>F});var m=b(6063);class c{constructor(U,J=c.now){this.schedulerActionCtor=U,this.now=J}schedule(U,J=0,ee){return new this.schedulerActionCtor(this,U).schedule(ee,J)}}c.now=m.l.now;class F extends c{constructor(U,J=c.now){super(U,J),this.actions=[],this._active=!1,this._scheduled=void 0}flush(U){const{actions:J}=this;if(this._active)return void J.push(U);let ee;this._active=!0;do{if(ee=U.execute(U.state,U.delay))break}while(U=J.shift());if(this._active=!1,ee){for(;U=J.shift();)U.unsubscribe();throw ee}}}},4986:(it,De,b)=>{b.d(De,{P:()=>z,z:()=>F});var m=b(4408);const F=new(b(7565).v)(m.o),z=F},6063:(it,De,b)=>{b.d(De,{l:()=>m});const m={now:()=>(m.delegate||Date).now(),delegate:void 0}},3410:(it,De,b)=>{b.d(De,{z:()=>m});const m={setTimeout(c,F,...z){const{delegate:U}=m;return U?.setTimeout?U.setTimeout(c,F,...z):setTimeout(c,F,...z)},clearTimeout(c){const{delegate:F}=m;return(F?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(it,De,b)=>{b.d(De,{h:()=>c});const c=function m(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(it,De,b)=>{b.d(De,{L:()=>m});const m="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(it,De,b)=>{b.d(De,{K:()=>c});const c=(0,b(3888).d)(F=>function(){F(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(it,De,b)=>{b.d(De,{_6:()=>J,jO:()=>z,yG:()=>U});var m=b(576),c=b(3532);function F(ee){return ee[ee.length-1]}function z(ee){return(0,m.m)(F(ee))?ee.pop():void 0}function U(ee){return(0,c.K)(F(ee))?ee.pop():void 0}function J(ee,ie){return"number"==typeof F(ee)?ee.pop():ie}},4742:(it,De,b)=>{b.d(De,{D:()=>U});const{isArray:m}=Array,{getPrototypeOf:c,prototype:F,keys:z}=Object;function U(ee){if(1===ee.length){const ie=ee[0];if(m(ie))return{args:ie,keys:null};if(function J(ee){return ee&&"object"==typeof ee&&c(ee)===F}(ie)){const te=z(ie);return{args:te.map(R=>ie[R]),keys:te}}}return{args:ee,keys:null}}},8737:(it,De,b)=>{function m(c,F){if(c){const z=c.indexOf(F);0<=z&&c.splice(z,1)}}b.d(De,{P:()=>m})},3888:(it,De,b)=>{function m(c){const z=c(U=>{Error.call(U),U.stack=(new Error).stack});return z.prototype=Object.create(Error.prototype),z.prototype.constructor=z,z}b.d(De,{d:()=>m})},1810:(it,De,b)=>{function m(c,F){return c.reduce((z,U,J)=>(z[U]=F[J],z),{})}b.d(De,{n:()=>m})},2806:(it,De,b)=>{b.d(De,{O:()=>z,x:()=>F});var m=b(2416);let c=null;function F(U){if(m.v.useDeprecatedSynchronousErrorHandling){const J=!c;if(J&&(c={errorThrown:!1,error:null}),U(),J){const{errorThrown:ee,error:ie}=c;if(c=null,ee)throw ie}}else U()}function z(U){m.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},9672:(it,De,b)=>{function m(c,F,z,U=0,J=!1){const ee=F.schedule(function(){z(),J?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(ee),!J)return ee}b.d(De,{f:()=>m})},4671:(it,De,b)=>{function m(c){return c}b.d(De,{y:()=>m})},1144:(it,De,b)=>{b.d(De,{z:()=>m});const m=c=>c&&"number"==typeof c.length&&"function"!=typeof c},2206:(it,De,b)=>{b.d(De,{D:()=>c});var m=b(576);function c(F){return Symbol.asyncIterator&&(0,m.m)(F?.[Symbol.asyncIterator])}},1165:(it,De,b)=>{function m(c){return c instanceof Date&&!isNaN(c)}b.d(De,{q:()=>m})},576:(it,De,b)=>{function m(c){return"function"==typeof c}b.d(De,{m:()=>m})},3670:(it,De,b)=>{b.d(De,{c:()=>F});var m=b(8822),c=b(576);function F(z){return(0,c.m)(z[m.L])}},6495:(it,De,b)=>{b.d(De,{T:()=>F});var m=b(2202),c=b(576);function F(z){return(0,c.m)(z?.[m.h])}},8239:(it,De,b)=>{b.d(De,{t:()=>c});var m=b(576);function c(F){return(0,m.m)(F?.then)}},3260:(it,De,b)=>{b.d(De,{L:()=>z,Q:()=>F});var m=b(655),c=b(576);function F(U){return(0,m.FC)(this,arguments,function*(){const ee=U.getReader();try{for(;;){const{value:ie,done:te}=yield(0,m.qq)(ee.read());if(te)return yield(0,m.qq)(void 0);yield yield(0,m.qq)(ie)}}finally{ee.releaseLock()}})}function z(U){return(0,c.m)(U?.getReader)}},3532:(it,De,b)=>{b.d(De,{K:()=>c});var m=b(576);function c(F){return F&&(0,m.m)(F.schedule)}},4482:(it,De,b)=>{b.d(De,{A:()=>c,e:()=>F});var m=b(576);function c(z){return(0,m.m)(z?.lift)}function F(z){return U=>{if(c(U))return U.lift(function(J){try{return z(J,this)}catch(ee){this.error(ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(it,De,b)=>{b.d(De,{Z:()=>z});var m=b(4004);const{isArray:c}=Array;function z(U){return(0,m.U)(J=>function F(U,J){return c(J)?U(...J):U(J)}(U,J))}},5032:(it,De,b)=>{function m(){}b.d(De,{Z:()=>m})},7849:(it,De,b)=>{b.d(De,{h:()=>F});var m=b(2416),c=b(3410);function F(z){c.z.setTimeout(()=>{const{onUnhandledError:U}=m.v;if(!U)throw z;U(z)})}},4532:(it,De,b)=>{function m(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(De,{z:()=>m})},655:(it,De,b)=>{function z(H,ne){var me={};for(var ve in H)Object.prototype.hasOwnProperty.call(H,ve)&&ne.indexOf(ve)<0&&(me[ve]=H[ve]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var _e=0;for(ve=Object.getOwnPropertySymbols(H);_e<ve.length;_e++)ne.indexOf(ve[_e])<0&&Object.prototype.propertyIsEnumerable.call(H,ve[_e])&&(me[ve[_e]]=H[ve[_e]])}return me}function ie(H,ne,me,ve){return new(me||(me=Promise))(function(Ve,ut){function qt(dn){try{lt(ve.next(dn))}catch(tn){ut(tn)}}function Bt(dn){try{lt(ve.throw(dn))}catch(tn){ut(tn)}}function lt(dn){dn.done?Ve(dn.value):function _e(Ve){return Ve instanceof me?Ve:new me(function(ut){ut(Ve)})}(dn.value).then(qt,Bt)}lt((ve=ve.apply(H,ne||[])).next())})}function Ie(H){return this instanceof Ie?(this.v=H,this):new Ie(H)}function Te(H,ne,me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,ve=me.apply(H,ne||[]),Ve=[];return _e={},ut("next"),ut("throw"),ut("return"),_e[Symbol.asyncIterator]=function(){return this},_e;function ut($e){ve[$e]&&(_e[$e]=function(Ye){return new Promise(function(ye,Fe){Ve.push([$e,Ye,ye,Fe])>1||qt($e,Ye)})})}function qt($e,Ye){try{!function Bt($e){$e.value instanceof Ie?Promise.resolve($e.value.v).then(lt,dn):tn(Ve[0][2],$e)}(ve[$e](Ye))}catch(ye){tn(Ve[0][3],ye)}}function lt($e){qt("next",$e)}function dn($e){qt("throw",$e)}function tn($e,Ye){$e(Ye),Ve.shift(),Ve.length&&qt(Ve[0][0],Ve[0][1])}}function ke(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var me,ne=H[Symbol.asyncIterator];return ne?ne.call(H):(H=function de(H){var ne="function"==typeof Symbol&&Symbol.iterator,me=ne&&H[ne],ve=0;if(me)return me.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&ve>=H.length&&(H=void 0),{value:H&&H[ve++],done:!H}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),me={},ve("next"),ve("throw"),ve("return"),me[Symbol.asyncIterator]=function(){return this},me);function ve(Ve){me[Ve]=H[Ve]&&function(ut){return new Promise(function(qt,Bt){!function _e(Ve,ut,qt,Bt){Promise.resolve(Bt).then(function(lt){Ve({value:lt,done:qt})},ut)}(qt,Bt,(ut=H[Ve](ut)).done,ut.value)})}}}b.d(De,{FC:()=>Te,KL:()=>ke,_T:()=>z,mG:()=>ie,qq:()=>Ie})},7340:(it,De,b)=>{b.d(De,{F4:()=>R,IO:()=>xe,LC:()=>c,SB:()=>te,X$:()=>z,ZE:()=>Je,ZN:()=>Te,_j:()=>m,eR:()=>L,jt:()=>U,k1:()=>ke,l3:()=>F,oB:()=>ie,pV:()=>je,ru:()=>J,vP:()=>ee});class m{}class c{}const F="*";function z(Ce,x){return{type:7,name:Ce,definitions:x,options:{}}}function U(Ce,x=null){return{type:4,styles:x,timings:Ce}}function J(Ce,x=null){return{type:3,steps:Ce,options:x}}function ee(Ce,x=null){return{type:2,steps:Ce,options:x}}function ie(Ce){return{type:6,styles:Ce,offset:null}}function te(Ce,x,K){return{type:0,name:Ce,styles:x,options:K}}function R(Ce){return{type:5,steps:Ce}}function L(Ce,x,K=null){return{type:1,expr:Ce,animation:x,options:K}}function je(Ce=null){return{type:9,options:Ce}}function xe(Ce,x,K=null){return{type:11,selector:Ce,animation:x,options:K}}function Ie(Ce){Promise.resolve(null).then(Ce)}class Te{constructor(x=0,K=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=x+K}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(x=>x()),this._onDoneFns=[])}onStart(x){this._originalOnStartFns.push(x),this._onStartFns.push(x)}onDone(x){this._originalOnDoneFns.push(x),this._onDoneFns.push(x)}onDestroy(x){this._onDestroyFns.push(x)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ie(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(x=>x()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(x=>x()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(x){this._position=this.totalTime?x*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(x){const K="start"==x?this._onStartFns:this._onDoneFns;K.forEach(le=>le()),K.length=0}}class Je{constructor(x){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=x;let K=0,le=0,ue=0;const W=this.players.length;0==W?Ie(()=>this._onFinish()):this.players.forEach(ge=>{ge.onDone(()=>{++K==W&&this._onFinish()}),ge.onDestroy(()=>{++le==W&&this._onDestroy()}),ge.onStart(()=>{++ue==W&&this._onStart()})}),this.totalTime=this.players.reduce((ge,H)=>Math.max(ge,H.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(x=>x()),this._onDoneFns=[])}init(){this.players.forEach(x=>x.init())}onStart(x){this._onStartFns.push(x)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(x=>x()),this._onStartFns=[])}onDone(x){this._onDoneFns.push(x)}onDestroy(x){this._onDestroyFns.push(x)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(x=>x.play())}pause(){this.players.forEach(x=>x.pause())}restart(){this.players.forEach(x=>x.restart())}finish(){this._onFinish(),this.players.forEach(x=>x.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(x=>x.destroy()),this._onDestroyFns.forEach(x=>x()),this._onDestroyFns=[])}reset(){this.players.forEach(x=>x.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(x){const K=x*this.totalTime;this.players.forEach(le=>{const ue=le.totalTime?Math.min(1,K/le.totalTime):1;le.setPosition(ue)})}getPosition(){const x=this.players.reduce((K,le)=>null===K||le.totalTime>K.totalTime?le:K,null);return null!=x?x.getPosition():0}beforeDestroy(){this.players.forEach(x=>{x.beforeDestroy&&x.beforeDestroy()})}triggerCallback(x){const K="start"==x?this._onStartFns:this._onDoneFns;K.forEach(le=>le()),K.length=0}}const ke="!"},6895:(it,De,b)=>{b.d(De,{$G:()=>rr,Do:()=>Ce,ED:()=>sr,EM:()=>Kn,HT:()=>U,JF:()=>qn,JJ:()=>Mr,K0:()=>ee,Mx:()=>gi,NF:()=>nt,O5:()=>xn,Ov:()=>mr,PC:()=>Ur,PM:()=>ft,RF:()=>Fr,S$:()=>Ie,Ts:()=>ts,V_:()=>R,Ye:()=>x,b0:()=>ke,bD:()=>Z,ez:()=>Ei,mk:()=>cr,n9:()=>ir,q:()=>F,sg:()=>tr,tP:()=>Ii,uU:()=>ni,w_:()=>J});var m=b(4650);let c=null;function F(){return c}function U(D){c||(c=D)}class J{}const ee=new m.OlP("DocumentToken");let ie=(()=>{class D{historyGo(E){throw new Error("Not implemented")}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275prov=m.Yz7({token:D,factory:function(){return function te(){return(0,m.LFG)(L)}()},providedIn:"platform"}),D})();const R=new m.OlP("Location Initialized");let L=(()=>{class D extends ie{constructor(E){super(),this._doc=E,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return F().getBaseHref(this._doc)}onPopState(E){const O=F().getGlobalEventTarget(this._doc,"window");return O.addEventListener("popstate",E,!1),()=>O.removeEventListener("popstate",E)}onHashChange(E){const O=F().getGlobalEventTarget(this._doc,"window");return O.addEventListener("hashchange",E,!1),()=>O.removeEventListener("hashchange",E)}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(E){this.location.pathname=E}pushState(E,O,re){de()?this._history.pushState(E,O,re):this.location.hash=re}replaceState(E,O,re){de()?this._history.replaceState(E,O,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(E=0){this._history.go(E)}getState(){return this._history.state}}return D.\u0275fac=function(E){return new(E||D)(m.LFG(ee))},D.\u0275prov=m.Yz7({token:D,factory:function(){return function je(){return new L((0,m.LFG)(ee))}()},providedIn:"platform"}),D})();function de(){return!!window.history.pushState}function Oe(D,A){if(0==D.length)return A;if(0==A.length)return D;let E=0;return D.endsWith("/")&&E++,A.startsWith("/")&&E++,2==E?D+A.substring(1):1==E?D+A:D+"/"+A}function xe(D){const A=D.match(/#|\?|$/),E=A&&A.index||D.length;return D.slice(0,E-("/"===D[E-1]?1:0))+D.slice(E)}function Be(D){return D&&"?"!==D[0]?"?"+D:D}let Ie=(()=>{class D{historyGo(E){throw new Error("Not implemented")}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275prov=m.Yz7({token:D,factory:function(){return function Te(){const D=(0,m.LFG)(ee).location;return new ke((0,m.LFG)(ie),D&&D.origin||"")}()},providedIn:"root"}),D})();const Je=new m.OlP("appBaseHref");let ke=(()=>{class D extends Ie{constructor(E,O){if(super(),this._platformLocation=E,this._removeListenerFns=[],null==O&&(O=this._platformLocation.getBaseHrefFromDOM()),null==O)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=O}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}prepareExternalUrl(E){return Oe(this._baseHref,E)}path(E=!1){const O=this._platformLocation.pathname+Be(this._platformLocation.search),re=this._platformLocation.hash;return re&&E?`${O}${re}`:O}pushState(E,O,re,Ne){const we=this.prepareExternalUrl(re+Be(Ne));this._platformLocation.pushState(E,O,we)}replaceState(E,O,re,Ne){const we=this.prepareExternalUrl(re+Be(Ne));this._platformLocation.replaceState(E,O,we)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}}return D.\u0275fac=function(E){return new(E||D)(m.LFG(ie),m.LFG(Je,8))},D.\u0275prov=m.Yz7({token:D,factory:D.\u0275fac}),D})(),Ce=(()=>{class D extends Ie{constructor(E,O){super(),this._platformLocation=E,this._baseHref="",this._removeListenerFns=[],null!=O&&(this._baseHref=O)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}path(E=!1){let O=this._platformLocation.hash;return null==O&&(O="#"),O.length>0?O.substring(1):O}prepareExternalUrl(E){const O=Oe(this._baseHref,E);return O.length>0?"#"+O:O}pushState(E,O,re,Ne){let we=this.prepareExternalUrl(re+Be(Ne));0==we.length&&(we=this._platformLocation.pathname),this._platformLocation.pushState(E,O,we)}replaceState(E,O,re,Ne){let we=this.prepareExternalUrl(re+Be(Ne));0==we.length&&(we=this._platformLocation.pathname),this._platformLocation.replaceState(E,O,we)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}}return D.\u0275fac=function(E){return new(E||D)(m.LFG(ie),m.LFG(Je,8))},D.\u0275prov=m.Yz7({token:D,factory:D.\u0275fac}),D})(),x=(()=>{class D{constructor(E){this._subject=new m.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=E;const O=this._locationStrategy.getBaseHref();this._baseHref=xe(ue(O)),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(E=!1){return this.normalize(this._locationStrategy.path(E))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(E,O=""){return this.path()==this.normalize(E+Be(O))}normalize(E){return D.stripTrailingSlash(function le(D,A){return D&&A.startsWith(D)?A.substring(D.length):A}(this._baseHref,ue(E)))}prepareExternalUrl(E){return E&&"/"!==E[0]&&(E="/"+E),this._locationStrategy.prepareExternalUrl(E)}go(E,O="",re=null){this._locationStrategy.pushState(re,"",E,O),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+Be(O)),re)}replaceState(E,O="",re=null){this._locationStrategy.replaceState(re,"",E,O),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+Be(O)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(E=0){this._locationStrategy.historyGo?.(E)}onUrlChange(E){return this._urlChangeListeners.push(E),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(O=>{this._notifyUrlChangeListeners(O.url,O.state)})),()=>{const O=this._urlChangeListeners.indexOf(E);this._urlChangeListeners.splice(O,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(E="",O){this._urlChangeListeners.forEach(re=>re(E,O))}subscribe(E,O,re){return this._subject.subscribe({next:E,error:O,complete:re})}}return D.normalizeQueryParams=Be,D.joinWithSlash=Oe,D.stripTrailingSlash=xe,D.\u0275fac=function(E){return new(E||D)(m.LFG(Ie))},D.\u0275prov=m.Yz7({token:D,factory:function(){return function K(){return new x((0,m.LFG)(Ie))}()},providedIn:"root"}),D})();function ue(D){return D.replace(/\/index.html$/,"")}var ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Percent=1]="Percent",ge[ge.Currency=2]="Currency",ge[ge.Scientific=3]="Scientific",ge))(),ne=(()=>((ne=ne||{})[ne.Format=0]="Format",ne[ne.Standalone=1]="Standalone",ne))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),ve=(()=>((ve=ve||{})[ve.Short=0]="Short",ve[ve.Medium=1]="Medium",ve[ve.Long=2]="Long",ve[ve.Full=3]="Full",ve))(),_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 Ye(D,A){return _t((0,m.cg1)(D)[m.wAp.DateFormat],A)}function ye(D,A){return _t((0,m.cg1)(D)[m.wAp.TimeFormat],A)}function Fe(D,A){return _t((0,m.cg1)(D)[m.wAp.DateTimeFormat],A)}function ct(D,A){const E=(0,m.cg1)(D),O=E[m.wAp.NumberSymbols][A];if(typeof O>"u"){if(A===_e.CurrencyDecimal)return E[m.wAp.NumberSymbols][_e.Decimal];if(A===_e.CurrencyGroup)return E[m.wAp.NumberSymbols][_e.Group]}return O}function Nn(D){if(!D[m.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${D[m.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _t(D,A){for(let E=A;E>-1;E--)if(typeof D[E]<"u")return D[E];throw new Error("Locale data API: locale data undefined")}function Rn(D){const[A,E]=D.split(":");return{hours:+A,minutes:+E}}const He=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},fe=/((?:[^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 Ke=(()=>((Ke=Ke||{})[Ke.Short=0]="Short",Ke[Ke.ShortGMT=1]="ShortGMT",Ke[Ke.Long=2]="Long",Ke[Ke.Extended=3]="Extended",Ke))(),Se=(()=>((Se=Se||{})[Se.FullYear=0]="FullYear",Se[Se.Month=1]="Month",Se[Se.Date=2]="Date",Se[Se.Hours=3]="Hours",Se[Se.Minutes=4]="Minutes",Se[Se.Seconds=5]="Seconds",Se[Se.FractionalSeconds=6]="FractionalSeconds",Se[Se.Day=7]="Day",Se))(),tt=(()=>((tt=tt||{})[tt.DayPeriods=0]="DayPeriods",tt[tt.Days=1]="Days",tt[tt.Months=2]="Months",tt[tt.Eras=3]="Eras",tt))();function Gt(D,A,E,O){let re=function At(D){if(hn(D))return D;if("number"==typeof D&&!isNaN(D))return new Date(D);if("string"==typeof D){if(D=D.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(D)){const[re,Ne=1,we=1]=D.split("-").map(bt=>+bt);return $t(re,Ne-1,we)}const E=parseFloat(D);if(!isNaN(D-E))return new Date(E);let O;if(O=D.match(He))return function Kt(D){const A=new Date(0);let E=0,O=0;const re=D[8]?A.setUTCFullYear:A.setFullYear,Ne=D[8]?A.setUTCHours:A.setHours;D[9]&&(E=Number(D[9]+D[10]),O=Number(D[9]+D[11])),re.call(A,Number(D[1]),Number(D[2])-1,Number(D[3]));const we=Number(D[4]||0)-E,bt=Number(D[5]||0)-O,Sn=Number(D[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(D[7]||0)));return Ne.call(A,we,bt,Sn,Mn),A}(O)}const A=new Date(D);if(!hn(A))throw new Error(`Unable to convert "${D}" into a date`);return A}(D);A=st(E,A)||A;let bt,we=[];for(;A;){if(bt=fe.exec(A),!bt){we.push(A);break}{we=we.concat(bt.slice(1));const bn=we.pop();if(!bn)break;A=bn}}let Sn=re.getTimezoneOffset();O&&(Sn=Re(O,Sn),re=function dt(D,A,E){const O=E?-1:1,re=D.getTimezoneOffset();return function Ee(D,A){return(D=new Date(D.getTime())).setMinutes(D.getMinutes()+A),D}(D,O*(Re(A,re)-re))}(re,O,!0));let Mn="";return we.forEach(bn=>{const cn=function pe(D){if(V[D])return V[D];let A;switch(D){case"G":case"GG":case"GGG":A=Pt(tt.Eras,me.Abbreviated);break;case"GGGG":A=Pt(tt.Eras,me.Wide);break;case"GGGGG":A=Pt(tt.Eras,me.Narrow);break;case"y":A=Nt(Se.FullYear,1,0,!1,!0);break;case"yy":A=Nt(Se.FullYear,2,0,!0,!0);break;case"yyy":A=Nt(Se.FullYear,3,0,!1,!0);break;case"yyyy":A=Nt(Se.FullYear,4,0,!1,!0);break;case"Y":A=Y(1);break;case"YY":A=Y(2,!0);break;case"YYY":A=Y(3);break;case"YYYY":A=Y(4);break;case"M":case"L":A=Nt(Se.Month,1,1);break;case"MM":case"LL":A=Nt(Se.Month,2,1);break;case"MMM":A=Pt(tt.Months,me.Abbreviated);break;case"MMMM":A=Pt(tt.Months,me.Wide);break;case"MMMMM":A=Pt(tt.Months,me.Narrow);break;case"LLL":A=Pt(tt.Months,me.Abbreviated,ne.Standalone);break;case"LLLL":A=Pt(tt.Months,me.Wide,ne.Standalone);break;case"LLLLL":A=Pt(tt.Months,me.Narrow,ne.Standalone);break;case"w":A=rn(1);break;case"ww":A=rn(2);break;case"W":A=rn(1,!0);break;case"d":A=Nt(Se.Date,1);break;case"dd":A=Nt(Se.Date,2);break;case"c":case"cc":A=Nt(Se.Day,1);break;case"ccc":A=Pt(tt.Days,me.Abbreviated,ne.Standalone);break;case"cccc":A=Pt(tt.Days,me.Wide,ne.Standalone);break;case"ccccc":A=Pt(tt.Days,me.Narrow,ne.Standalone);break;case"cccccc":A=Pt(tt.Days,me.Short,ne.Standalone);break;case"E":case"EE":case"EEE":A=Pt(tt.Days,me.Abbreviated);break;case"EEEE":A=Pt(tt.Days,me.Wide);break;case"EEEEE":A=Pt(tt.Days,me.Narrow);break;case"EEEEEE":A=Pt(tt.Days,me.Short);break;case"a":case"aa":case"aaa":A=Pt(tt.DayPeriods,me.Abbreviated);break;case"aaaa":A=Pt(tt.DayPeriods,me.Wide);break;case"aaaaa":A=Pt(tt.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":A=Pt(tt.DayPeriods,me.Abbreviated,ne.Standalone,!0);break;case"bbbb":A=Pt(tt.DayPeriods,me.Wide,ne.Standalone,!0);break;case"bbbbb":A=Pt(tt.DayPeriods,me.Narrow,ne.Standalone,!0);break;case"B":case"BB":case"BBB":A=Pt(tt.DayPeriods,me.Abbreviated,ne.Format,!0);break;case"BBBB":A=Pt(tt.DayPeriods,me.Wide,ne.Format,!0);break;case"BBBBB":A=Pt(tt.DayPeriods,me.Narrow,ne.Format,!0);break;case"h":A=Nt(Se.Hours,1,-12);break;case"hh":A=Nt(Se.Hours,2,-12);break;case"H":A=Nt(Se.Hours,1);break;case"HH":A=Nt(Se.Hours,2);break;case"m":A=Nt(Se.Minutes,1);break;case"mm":A=Nt(Se.Minutes,2);break;case"s":A=Nt(Se.Seconds,1);break;case"ss":A=Nt(Se.Seconds,2);break;case"S":A=Nt(Se.FractionalSeconds,1);break;case"SS":A=Nt(Se.FractionalSeconds,2);break;case"SSS":A=Nt(Se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":A=pt(Ke.Short);break;case"ZZZZZ":A=pt(Ke.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":A=pt(Ke.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":A=pt(Ke.Long);break;default:return null}return V[D]=A,A}(bn);Mn+=cn?cn(re,E,Sn):"''"===bn?"'":bn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function $t(D,A,E){const O=new Date(0);return O.setFullYear(D,A,E),O.setHours(0,0,0),O}function st(D,A){const E=function ut(D){return(0,m.cg1)(D)[m.wAp.LocaleId]}(D);if(se[E]=se[E]||{},se[E][A])return se[E][A];let O="";switch(A){case"shortDate":O=Ye(D,ve.Short);break;case"mediumDate":O=Ye(D,ve.Medium);break;case"longDate":O=Ye(D,ve.Long);break;case"fullDate":O=Ye(D,ve.Full);break;case"shortTime":O=ye(D,ve.Short);break;case"mediumTime":O=ye(D,ve.Medium);break;case"longTime":O=ye(D,ve.Long);break;case"fullTime":O=ye(D,ve.Full);break;case"short":const re=st(D,"shortTime"),Ne=st(D,"shortDate");O=an(Fe(D,ve.Short),[re,Ne]);break;case"medium":const we=st(D,"mediumTime"),bt=st(D,"mediumDate");O=an(Fe(D,ve.Medium),[we,bt]);break;case"long":const Sn=st(D,"longTime"),Mn=st(D,"longDate");O=an(Fe(D,ve.Long),[Sn,Mn]);break;case"full":const bn=st(D,"fullTime"),cn=st(D,"fullDate");O=an(Fe(D,ve.Full),[bn,cn])}return O&&(se[E][A]=O),O}function an(D,A){return A&&(D=D.replace(/\{([^}]+)}/g,function(E,O){return null!=A&&O in A?A[O]:E})),D}function Cn(D,A,E="-",O,re){let Ne="";(D<0||re&&D<=0)&&(re?D=1-D:(D=-D,Ne=E));let we=String(D);for(;we.length<A;)we="0"+we;return O&&(we=we.slice(we.length-A)),Ne+we}function Nt(D,A,E=0,O=!1,re=!1){return function(Ne,we){let bt=function Xt(D,A){switch(D){case Se.FullYear:return A.getFullYear();case Se.Month:return A.getMonth();case Se.Date:return A.getDate();case Se.Hours:return A.getHours();case Se.Minutes:return A.getMinutes();case Se.Seconds:return A.getSeconds();case Se.FractionalSeconds:return A.getMilliseconds();case Se.Day:return A.getDay();default:throw new Error(`Unknown DateType value "${D}".`)}}(D,Ne);if((E>0||bt>-E)&&(bt+=E),D===Se.Hours)0===bt&&-12===E&&(bt=12);else if(D===Se.FractionalSeconds)return function Jt(D,A){return Cn(D,3).substring(0,A)}(bt,A);const Sn=ct(we,_e.MinusSign);return Cn(bt,A,Sn,O,re)}}function Pt(D,A,E=ne.Format,O=!1){return function(re,Ne){return function er(D,A,E,O,re,Ne){switch(E){case tt.Months:return function lt(D,A,E){const O=(0,m.cg1)(D),Ne=_t([O[m.wAp.MonthsFormat],O[m.wAp.MonthsStandalone]],A);return _t(Ne,E)}(A,re,O)[D.getMonth()];case tt.Days:return function Bt(D,A,E){const O=(0,m.cg1)(D),Ne=_t([O[m.wAp.DaysFormat],O[m.wAp.DaysStandalone]],A);return _t(Ne,E)}(A,re,O)[D.getDay()];case tt.DayPeriods:const we=D.getHours(),bt=D.getMinutes();if(Ne){const Mn=function Un(D){const A=(0,m.cg1)(D);return Nn(A),(A[m.wAp.ExtraData][2]||[]).map(O=>"string"==typeof O?Rn(O):[Rn(O[0]),Rn(O[1])])}(A),bn=function Mt(D,A,E){const O=(0,m.cg1)(D);Nn(O);const Ne=_t([O[m.wAp.ExtraData][0],O[m.wAp.ExtraData][1]],A)||[];return _t(Ne,E)||[]}(A,re,O),cn=Mn.findIndex(Ln=>{if(Array.isArray(Ln)){const[_n,zn]=Ln,Ze=we>=_n.hours&&bt>=_n.minutes,Vt=we<zn.hours||we===zn.hours&&bt<zn.minutes;if(_n.hours<zn.hours){if(Ze&&Vt)return!0}else if(Ze||Vt)return!0}else if(Ln.hours===we&&Ln.minutes===bt)return!0;return!1});if(-1!==cn)return bn[cn]}return function qt(D,A,E){const O=(0,m.cg1)(D),Ne=_t([O[m.wAp.DayPeriodsFormat],O[m.wAp.DayPeriodsStandalone]],A);return _t(Ne,E)}(A,re,O)[we<12?0:1];case tt.Eras:return function dn(D,A){return _t((0,m.cg1)(D)[m.wAp.Eras],A)}(A,O)[D.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${E}`)}}(re,Ne,D,A,E,O)}}function pt(D){return function(A,E,O){const re=-1*O,Ne=ct(E,_e.MinusSign),we=re>0?Math.floor(re/60):Math.ceil(re/60);switch(D){case Ke.Short:return(re>=0?"+":"")+Cn(we,2,Ne)+Cn(Math.abs(re%60),2,Ne);case Ke.ShortGMT:return"GMT"+(re>=0?"+":"")+Cn(we,1,Ne);case Ke.Long:return"GMT"+(re>=0?"+":"")+Cn(we,2,Ne)+":"+Cn(Math.abs(re%60),2,Ne);case Ke.Extended:return 0===O?"Z":(re>=0?"+":"")+Cn(we,2,Ne)+":"+Cn(Math.abs(re%60),2,Ne);default:throw new Error(`Unknown zone width "${D}"`)}}}function jt(D){return $t(D.getFullYear(),D.getMonth(),D.getDate()+(4-D.getDay()))}function rn(D,A=!1){return function(E,O){let re;if(A){const Ne=new Date(E.getFullYear(),E.getMonth(),1).getDay()-1,we=E.getDate();re=1+Math.floor((we+Ne)/7)}else{const Ne=jt(E),we=function kt(D){const A=$t(D,0,1).getDay();return $t(D,0,1+(A<=4?4:11)-A)}(Ne.getFullYear()),bt=Ne.getTime()-we.getTime();re=1+Math.round(bt/6048e5)}return Cn(re,D,ct(O,_e.MinusSign))}}function Y(D,A=!1){return function(E,O){return Cn(jt(E).getFullYear(),D,ct(O,_e.MinusSign),A)}}const V={};function Re(D,A){D=D.replace(/:/g,"");const E=Date.parse("Jan 01, 1970 00:00:00 "+D)/6e4;return isNaN(E)?A:E}function hn(D){return D instanceof Date&&!isNaN(D.valueOf())}const rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Q=".",G="0";function Nr(D){const A=parseInt(D);if(isNaN(A))throw new Error("Invalid integer literal when parsing "+D);return A}function gi(D,A){A=encodeURIComponent(A);for(const E of D.split(";")){const O=E.indexOf("="),[re,Ne]=-1==O?[E,""]:[E.slice(0,O),E.slice(O+1)];if(re.trim()===A)return decodeURIComponent(Ne)}return null}let cr=(()=>{class D{constructor(E,O,re,Ne){this._iterableDiffers=E,this._keyValueDiffers=O,this._ngEl=re,this._renderer=Ne,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(E){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof E?E.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(E){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof E?E.split(/\s+/):E,this._rawClass&&((0,m.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const E=this._iterableDiffer.diff(this._rawClass);E&&this._applyIterableChanges(E)}else if(this._keyValueDiffer){const E=this._keyValueDiffer.diff(this._rawClass);E&&this._applyKeyValueChanges(E)}}_applyKeyValueChanges(E){E.forEachAddedItem(O=>this._toggleClass(O.key,O.currentValue)),E.forEachChangedItem(O=>this._toggleClass(O.key,O.currentValue)),E.forEachRemovedItem(O=>{O.previousValue&&this._toggleClass(O.key,!1)})}_applyIterableChanges(E){E.forEachAddedItem(O=>{if("string"!=typeof O.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,m.AaK)(O.item)}`);this._toggleClass(O.item,!0)}),E.forEachRemovedItem(O=>this._toggleClass(O.item,!1))}_applyClasses(E){E&&(Array.isArray(E)||E instanceof Set?E.forEach(O=>this._toggleClass(O,!0)):Object.keys(E).forEach(O=>this._toggleClass(O,!!E[O])))}_removeClasses(E){E&&(Array.isArray(E)||E instanceof Set?E.forEach(O=>this._toggleClass(O,!1)):Object.keys(E).forEach(O=>this._toggleClass(O,!1)))}_toggleClass(E,O){(E=E.trim())&&E.split(/\s+/g).forEach(re=>{O?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.ZZ4),m.Y36(m.aQg),m.Y36(m.SBq),m.Y36(m.Qsj))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),D})(),rr=(()=>{class D{constructor(E){this._viewContainerRef=E,this.ngComponentOutlet=null}ngOnChanges(E){const{_viewContainerRef:O,ngComponentOutletNgModule:re,ngComponentOutletNgModuleFactory:Ne}=this;if(O.clear(),this._componentRef=void 0,this.ngComponentOutlet){const we=this.ngComponentOutletInjector||O.parentInjector;(E.ngComponentOutletNgModule||E.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=re?(0,m.hM9)(re,mi(we)):Ne?Ne.create(mi(we)):void 0),this._componentRef=O.createComponent(this.ngComponentOutlet,{index:O.length,injector:we,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[m.TTD]}),D})();function mi(D){return D.get(m.h0i).injector}class ei{constructor(A,E,O,re){this.$implicit=A,this.ngForOf=E,this.index=O,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 tr=(()=>{class D{constructor(E,O,re){this._viewContainer=E,this._template=O,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(E){this._ngForOf=E,this._ngForOfDirty=!0}set ngForTrackBy(E){this._trackByFn=E}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(E){E&&(this._template=E)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const E=this._ngForOf;!this._differ&&E&&(this._differ=this._differs.find(E).create(this.ngForTrackBy))}if(this._differ){const E=this._differ.diff(this._ngForOf);E&&this._applyChanges(E)}}_applyChanges(E){const O=this._viewContainer;E.forEachOperation((re,Ne,we)=>{if(null==re.previousIndex)O.createEmbeddedView(this._template,new ei(re.item,this._ngForOf,-1,-1),null===we?void 0:we);else if(null==we)O.remove(null===Ne?void 0:Ne);else if(null!==Ne){const bt=O.get(Ne);O.move(bt,we),An(bt,re)}});for(let re=0,Ne=O.length;re<Ne;re++){const bt=O.get(re).context;bt.index=re,bt.count=Ne,bt.ngForOf=this._ngForOf}E.forEachIdentityChange(re=>{An(O.get(re.currentIndex),re)})}static ngTemplateContextGuard(E,O){return!0}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(m.ZZ4))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),D})();function An(D,A){D.context.$implicit=A.item}let xn=(()=>{class D{constructor(E,O){this._viewContainer=E,this._context=new $n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=O}set ngIf(E){this._context.$implicit=this._context.ngIf=E,this._updateView()}set ngIfThen(E){Hr("ngIfThen",E),this._thenTemplateRef=E,this._thenViewRef=null,this._updateView()}set ngIfElse(E){Hr("ngIfElse",E),this._elseTemplateRef=E,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(E,O){return!0}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),D})();class $n{constructor(){this.$implicit=null,this.ngIf=null}}function Hr(D,A){if(A&&!A.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,m.AaK)(A)}'.`)}class br{constructor(A,E){this._viewContainerRef=A,this._templateRef=E,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 Fr=(()=>{class D{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(E){this._ngSwitch=E,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(E){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(E)}_matchCase(E){const O=E==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||O,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),O}_updateDefaultCases(E){if(this._defaultViews&&E!==this._defaultUsed){this._defaultUsed=E;for(let O=0;O<this._defaultViews.length;O++)this._defaultViews[O].enforceState(E)}}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275dir=m.lG2({type:D,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),D})(),ir=(()=>{class D{constructor(E,O,re){this.ngSwitch=re,re._addCase(),this._view=new br(E,O)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(Fr,9))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),D})(),sr=(()=>{class D{constructor(E,O,re){re._addDefault(new br(E,O))}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(Fr,9))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngSwitchDefault",""]]}),D})(),Ur=(()=>{class D{constructor(E,O,re){this._ngEl=E,this._differs=O,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(E){this._ngStyle=E,!this._differ&&E&&(this._differ=this._differs.find(E).create())}ngDoCheck(){if(this._differ){const E=this._differ.diff(this._ngStyle);E&&this._applyChanges(E)}}_setStyle(E,O){const[re,Ne]=E.split("."),we=-1===re.indexOf("-")?void 0:m.JOm.DashCase;null!=O?this._renderer.setStyle(this._ngEl.nativeElement,re,Ne?`${O}${Ne}`:O,we):this._renderer.removeStyle(this._ngEl.nativeElement,re,we)}_applyChanges(E){E.forEachRemovedItem(O=>this._setStyle(O.key,null)),E.forEachAddedItem(O=>this._setStyle(O.key,O.currentValue)),E.forEachChangedItem(O=>this._setStyle(O.key,O.currentValue))}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.SBq),m.Y36(m.aQg),m.Y36(m.Qsj))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),D})(),Ii=(()=>{class D{constructor(E){this._viewContainerRef=E,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(E){if(E.ngTemplateOutlet||E.ngTemplateOutletInjector){const O=this._viewContainerRef;if(this._viewRef&&O.remove(O.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:re,ngTemplateOutletContext:Ne,ngTemplateOutletInjector:we}=this;this._viewRef=O.createEmbeddedView(re,Ne,we?{injector:we}:void 0)}else this._viewRef=null}else this._viewRef&&E.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[m.TTD]}),D})();function Qn(D,A){return new m.vHH(2100,!1)}class Lr{createSubscription(A,E){return A.subscribe({next:E,error:O=>{throw O}})}dispose(A){A.unsubscribe()}}class vi{createSubscription(A,E){return A.then(E,O=>{throw O})}dispose(A){}}const Ji=new vi,Ir=new Lr;let mr=(()=>{class D{constructor(E){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=E}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(E){return this._obj?E!==this._obj?(this._dispose(),this.transform(E)):this._latestValue:(E&&this._subscribe(E),this._latestValue)}_subscribe(E){this._obj=E,this._strategy=this._selectStrategy(E),this._subscription=this._strategy.createSubscription(E,O=>this._updateLatestValue(E,O))}_selectStrategy(E){if((0,m.QGY)(E))return Ji;if((0,m.F4k)(E))return Ir;throw Qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(E,O){E===this._obj&&(this._latestValue=O,this._ref.markForCheck())}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.sBO,16))},D.\u0275pipe=m.Yjl({name:"async",type:D,pure:!1}),D})();const Wr=new m.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ni=(()=>{class D{constructor(E,O){this.locale=E,this.defaultTimezone=O}transform(E,O="mediumDate",re,Ne){if(null==E||""===E||E!=E)return null;try{return Gt(E,O,Ne||this.locale,re??this.defaultTimezone??void 0)}catch(we){throw Qn()}}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.soG,16),m.Y36(Wr,24))},D.\u0275pipe=m.Yjl({name:"date",type:D,pure:!0}),D})(),ts=(()=>{class D{transform(E){return JSON.stringify(E,null,2)}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275pipe=m.Yjl({name:"json",type:D,pure:!1}),D})(),Mr=(()=>{class D{constructor(E){this._locale=E}transform(E,O,re){if(!function ri(D){return!(null==D||""===D||D!=D)}(E))return null;re=re||this._locale;try{return function xr(D,A,E){return function mn(D,A,E,O,re,Ne,we=!1){let bt="",Sn=!1;if(isFinite(D)){let Mn=function kn(D){let O,re,Ne,we,bt,A=Math.abs(D)+"",E=0;for((re=A.indexOf(Q))>-1&&(A=A.replace(Q,"")),(Ne=A.search(/e/i))>0?(re<0&&(re=Ne),re+=+A.slice(Ne+1),A=A.substring(0,Ne)):re<0&&(re=A.length),Ne=0;A.charAt(Ne)===G;Ne++);if(Ne===(bt=A.length))O=[0],re=1;else{for(bt--;A.charAt(bt)===G;)bt--;for(re-=Ne,O=[],we=0;Ne<=bt;Ne++,we++)O[we]=Number(A.charAt(Ne))}return re>22&&(O=O.splice(0,21),E=re-1,re=1),{digits:O,exponent:E,integerLen:re}}(D);we&&(Mn=function gr(D){if(0===D.digits[0])return D;const A=D.digits.length-D.integerLen;return D.exponent?D.exponent+=2:(0===A?D.digits.push(0,0):1===A&&D.digits.push(0),D.integerLen+=2),D}(Mn));let bn=A.minInt,cn=A.minFrac,Ln=A.maxFrac;if(Ne){const Or=Ne.match(rt);if(null===Or)throw new Error(`${Ne} is not a valid digit info`);const Bn=Or[1],oi=Or[3],ai=Or[5];null!=Bn&&(bn=Nr(Bn)),null!=oi&&(cn=Nr(oi)),null!=ai?Ln=Nr(ai):null!=oi&&cn>Ln&&(Ln=cn)}!function Xr(D,A,E){if(A>E)throw new Error(`The minimum number of digits after fraction (${A}) is higher than the maximum (${E}).`);let O=D.digits,re=O.length-D.integerLen;const Ne=Math.min(Math.max(A,re),E);let we=Ne+D.integerLen,bt=O[we];if(we>0){O.splice(Math.max(D.integerLen,we));for(let cn=we;cn<O.length;cn++)O[cn]=0}else{re=Math.max(0,re),D.integerLen=1,O.length=Math.max(1,we=Ne+1),O[0]=0;for(let cn=1;cn<we;cn++)O[cn]=0}if(bt>=5)if(we-1<0){for(let cn=0;cn>we;cn--)O.unshift(0),D.integerLen++;O.unshift(1),D.integerLen++}else O[we-1]++;for(;re<Math.max(0,Ne);re++)O.push(0);let Sn=0!==Ne;const Mn=A+D.integerLen,bn=O.reduceRight(function(cn,Ln,_n,zn){return zn[_n]=(Ln+=cn)<10?Ln:Ln-10,Sn&&(0===zn[_n]&&_n>=Mn?zn.pop():Sn=!1),Ln>=10?1:0},0);bn&&(O.unshift(bn),D.integerLen++)}(Mn,cn,Ln);let _n=Mn.digits,zn=Mn.integerLen;const Ze=Mn.exponent;let Vt=[];for(Sn=_n.every(Or=>!Or);zn<bn;zn++)_n.unshift(0);for(;zn<0;zn++)_n.unshift(0);zn>0?Vt=_n.splice(zn,_n.length):(Vt=_n,_n=[0]);const si=[];for(_n.length>=A.lgSize&&si.unshift(_n.splice(-A.lgSize,_n.length).join(""));_n.length>A.gSize;)si.unshift(_n.splice(-A.gSize,_n.length).join(""));_n.length&&si.unshift(_n.join("")),bt=si.join(ct(E,O)),Vt.length&&(bt+=ct(E,re)+Vt.join("")),Ze&&(bt+=ct(E,_e.Exponential)+"+"+Ze)}else bt=ct(E,_e.Infinity);return bt=D<0&&!Sn?A.negPre+bt+A.negSuf:A.posPre+bt+A.posSuf,bt}(D,function zr(D,A="-"){const E={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},O=D.split(";"),re=O[0],Ne=O[1],we=-1!==re.indexOf(Q)?re.split(Q):[re.substring(0,re.lastIndexOf(G)+1),re.substring(re.lastIndexOf(G)+1)],bt=we[0],Sn=we[1]||"";E.posPre=bt.substring(0,bt.indexOf("#"));for(let bn=0;bn<Sn.length;bn++){const cn=Sn.charAt(bn);cn===G?E.minFrac=E.maxFrac=bn+1:"#"===cn?E.maxFrac=bn+1:E.posSuf+=cn}const Mn=bt.split(",");if(E.gSize=Mn[1]?Mn[1].length:0,E.lgSize=Mn[2]||Mn[1]?(Mn[2]||Mn[1]).length:0,Ne){const bn=re.length-E.posPre.length-E.posSuf.length,cn=Ne.indexOf("#");E.negPre=Ne.substring(0,cn).replace(/'/g,""),E.negSuf=Ne.slice(cn+bn).replace(/'/g,"")}else E.negPre=A+E.posPre,E.negSuf=E.posSuf;return E}(function Tt(D,A){return(0,m.cg1)(D)[m.wAp.NumberFormats][A]}(A,ge.Decimal),ct(A,_e.MinusSign)),A,_e.Group,_e.Decimal,E)}(function ii(D){if("string"==typeof D&&!isNaN(Number(D)-parseFloat(D)))return Number(D);if("number"!=typeof D)throw new Error(`${D} is not a number`);return D}(E),re,O)}catch(Ne){throw Qn()}}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.soG,16))},D.\u0275pipe=m.Yjl({name:"number",type:D,pure:!0}),D})();let Ei=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=m.oAB({type:D}),D.\u0275inj=m.cJS({}),D})();const Z="browser";function nt(D){return D===Z}function ft(D){return"server"===D}let Kn=(()=>{class D{}return D.\u0275prov=(0,m.Yz7)({token:D,providedIn:"root",factory:()=>new Dn((0,m.LFG)(ee),window)}),D})();class Dn{constructor(A,E){this.document=A,this.window=E,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 E=function jr(D,A){const E=D.getElementById(A)||D.getElementsByName(A)[0];if(E)return E;if("function"==typeof D.createTreeWalker&&D.body&&(D.body.createShadowRoot||D.body.attachShadow)){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let re=O.currentNode;for(;re;){const Ne=re.shadowRoot;if(Ne){const we=Ne.getElementById(A)||Ne.querySelector(`[name="${A}"]`);if(we)return we}re=O.nextNode()}}return null}(this.document,A);E&&(this.scrollToElement(E),E.focus())}setHistoryScrollRestoration(A){if(this.supportScrollRestoration()){const E=this.window.history;E&&E.scrollRestoration&&(E.scrollRestoration=A)}}scrollToElement(A){const E=A.getBoundingClientRect(),O=E.left+this.window.pageXOffset,re=E.top+this.window.pageYOffset,Ne=this.offset();this.window.scrollTo(O-Ne[0],re-Ne[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const A=Pr(this.window.history)||Pr(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 Pr(D){return Object.getOwnPropertyDescriptor(D,"scrollRestoration")}class qn{}},529:(it,De,b)=>{b.d(De,{JF:()=>St,TP:()=>ut,eN:()=>_e});var m=b(6895),c=b(4650),F=b(9646),z=b(8306),U=b(4351),J=b(9300),ee=b(4004);class ie{}class te{}class R{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(fe=>{const Ke=fe.indexOf(":");if(Ke>0){const Se=fe.slice(0,Ke),tt=Se.toLowerCase(),Gt=fe.slice(Ke+1).trim();this.maybeSetNormalizedName(Se,tt),this.headers.has(tt)?this.headers.get(tt).push(Gt):this.headers.set(tt,[Gt])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(fe=>{let Ke=se[fe];const Se=fe.toLowerCase();"string"==typeof Ke&&(Ke=[Ke]),Ke.length>0&&(this.headers.set(Se,Ke),this.maybeSetNormalizedName(fe,Se))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const fe=this.headers.get(se.toLowerCase());return fe&&fe.length>0?fe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,fe){return this.clone({name:se,value:fe,op:"a"})}set(se,fe){return this.clone({name:se,value:fe,op:"s"})}delete(se,fe){return this.clone({name:se,value:fe,op:"d"})}maybeSetNormalizedName(se,fe){this.normalizedNames.has(fe)||this.normalizedNames.set(fe,se)}init(){this.lazyInit&&(this.lazyInit instanceof R?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(fe=>{this.headers.set(fe,se.headers.get(fe)),this.normalizedNames.set(fe,se.normalizedNames.get(fe))})}clone(se){const fe=new R;return fe.lazyInit=this.lazyInit&&this.lazyInit instanceof R?this.lazyInit:this,fe.lazyUpdate=(this.lazyUpdate||[]).concat([se]),fe}applyUpdate(se){const fe=se.name.toLowerCase();switch(se.op){case"a":case"s":let Ke=se.value;if("string"==typeof Ke&&(Ke=[Ke]),0===Ke.length)return;this.maybeSetNormalizedName(se.name,fe);const Se=("a"===se.op?this.headers.get(fe):void 0)||[];Se.push(...Ke),this.headers.set(fe,Se);break;case"d":const tt=se.value;if(tt){let Gt=this.headers.get(fe);if(!Gt)return;Gt=Gt.filter($t=>-1===tt.indexOf($t)),0===Gt.length?(this.headers.delete(fe),this.normalizedNames.delete(fe)):this.headers.set(fe,Gt)}else this.headers.delete(fe),this.normalizedNames.delete(fe)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(fe=>se(this.normalizedNames.get(fe),this.headers.get(fe)))}}class L{encodeKey(se){return xe(se)}encodeValue(se){return xe(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const je=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xe(He){return encodeURIComponent(He).replace(je,(se,fe)=>Oe[fe]??se)}function Be(He){return`${He}`}class Ie{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new L,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(He,se){const fe=new Map;return He.length>0&&He.replace(/^\?/,"").split("&").forEach(Se=>{const tt=Se.indexOf("="),[Gt,$t]=-1==tt?[se.decodeKey(Se),""]:[se.decodeKey(Se.slice(0,tt)),se.decodeValue(Se.slice(tt+1))],st=fe.get(Gt)||[];st.push($t),fe.set(Gt,st)}),fe}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(fe=>{const Ke=se.fromObject[fe],Se=Array.isArray(Ke)?Ke.map(Be):[Be(Ke)];this.map.set(fe,Se)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const fe=this.map.get(se);return fe?fe[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,fe){return this.clone({param:se,value:fe,op:"a"})}appendAll(se){const fe=[];return Object.keys(se).forEach(Ke=>{const Se=se[Ke];Array.isArray(Se)?Se.forEach(tt=>{fe.push({param:Ke,value:tt,op:"a"})}):fe.push({param:Ke,value:Se,op:"a"})}),this.clone(fe)}set(se,fe){return this.clone({param:se,value:fe,op:"s"})}delete(se,fe){return this.clone({param:se,value:fe,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const fe=this.encoder.encodeKey(se);return this.map.get(se).map(Ke=>fe+"="+this.encoder.encodeValue(Ke)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const fe=new Ie({encoder:this.encoder});return fe.cloneFrom=this.cloneFrom||this,fe.updates=(this.updates||[]).concat(se),fe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const fe=("a"===se.op?this.map.get(se.param):void 0)||[];fe.push(Be(se.value)),this.map.set(se.param,fe);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let Ke=this.map.get(se.param)||[];const Se=Ke.indexOf(Be(se.value));-1!==Se&&Ke.splice(Se,1),Ke.length>0?this.map.set(se.param,Ke):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(se,fe){return this.map.set(se,fe),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Ce(He){return typeof ArrayBuffer<"u"&&He instanceof ArrayBuffer}function x(He){return typeof Blob<"u"&&He instanceof Blob}function K(He){return typeof FormData<"u"&&He instanceof FormData}class ue{constructor(se,fe,Ke,Se){let tt;if(this.url=fe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function ke(He){switch(He){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==Ke?Ke:null,tt=Se):tt=Ke,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new R),this.context||(this.context=new Je),this.params){const Gt=this.params.toString();if(0===Gt.length)this.urlWithParams=fe;else{const $t=fe.indexOf("?");this.urlWithParams=fe+(-1===$t?"?":$t<fe.length-1?"&":"")+Gt}}else this.params=new Ie,this.urlWithParams=fe}serializeBody(){return null===this.body?null:Ce(this.body)||x(this.body)||K(this.body)||function le(He){return typeof URLSearchParams<"u"&&He instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ie?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||K(this.body)?null:x(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ie?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(se={}){const fe=se.method||this.method,Ke=se.url||this.url,Se=se.responseType||this.responseType,tt=void 0!==se.body?se.body:this.body,Gt=void 0!==se.withCredentials?se.withCredentials:this.withCredentials,$t=void 0!==se.reportProgress?se.reportProgress:this.reportProgress;let st=se.headers||this.headers,an=se.params||this.params;const Cn=se.context??this.context;return void 0!==se.setHeaders&&(st=Object.keys(se.setHeaders).reduce((Jt,Nt)=>Jt.set(Nt,se.setHeaders[Nt]),st)),se.setParams&&(an=Object.keys(se.setParams).reduce((Jt,Nt)=>Jt.set(Nt,se.setParams[Nt]),an)),new ue(fe,Ke,tt,{params:an,headers:st,context:Cn,reportProgress:$t,responseType:Se,withCredentials:Gt})}}var W=(()=>((W=W||{})[W.Sent=0]="Sent",W[W.UploadProgress=1]="UploadProgress",W[W.ResponseHeader=2]="ResponseHeader",W[W.DownloadProgress=3]="DownloadProgress",W[W.Response=4]="Response",W[W.User=5]="User",W))();class ge{constructor(se,fe=200,Ke="OK"){this.headers=se.headers||new R,this.status=void 0!==se.status?se.status:fe,this.statusText=se.statusText||Ke,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class H extends ge{constructor(se={}){super(se),this.type=W.ResponseHeader}clone(se={}){return new H({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ne extends ge{constructor(se={}){super(se),this.type=W.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new ne({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class me extends ge{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function ve(He,se){return{body:se,headers:He.headers,context:He.context,observe:He.observe,params:He.params,reportProgress:He.reportProgress,responseType:He.responseType,withCredentials:He.withCredentials}}let _e=(()=>{class He{constructor(fe){this.handler=fe}request(fe,Ke,Se={}){let tt;if(fe instanceof ue)tt=fe;else{let st,an;st=Se.headers instanceof R?Se.headers:new R(Se.headers),Se.params&&(an=Se.params instanceof Ie?Se.params:new Ie({fromObject:Se.params})),tt=new ue(fe,Ke,void 0!==Se.body?Se.body:null,{headers:st,context:Se.context,params:an,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const Gt=(0,F.of)(tt).pipe((0,U.b)(st=>this.handler.handle(st)));if(fe instanceof ue||"events"===Se.observe)return Gt;const $t=Gt.pipe((0,J.h)(st=>st instanceof ne));switch(Se.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return $t.pipe((0,ee.U)(st=>{if(null!==st.body&&!(st.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return st.body}));case"blob":return $t.pipe((0,ee.U)(st=>{if(null!==st.body&&!(st.body instanceof Blob))throw new Error("Response is not a Blob.");return st.body}));case"text":return $t.pipe((0,ee.U)(st=>{if(null!==st.body&&"string"!=typeof st.body)throw new Error("Response is not a string.");return st.body}));default:return $t.pipe((0,ee.U)(st=>st.body))}case"response":return $t;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete(fe,Ke={}){return this.request("DELETE",fe,Ke)}get(fe,Ke={}){return this.request("GET",fe,Ke)}head(fe,Ke={}){return this.request("HEAD",fe,Ke)}jsonp(fe,Ke){return this.request("JSONP",fe,{params:(new Ie).append(Ke,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(fe,Ke={}){return this.request("OPTIONS",fe,Ke)}patch(fe,Ke,Se={}){return this.request("PATCH",fe,ve(Se,Ke))}post(fe,Ke,Se={}){return this.request("POST",fe,ve(Se,Ke))}put(fe,Ke,Se={}){return this.request("PUT",fe,ve(Se,Ke))}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(ie))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})();class Ve{constructor(se,fe){this.next=se,this.interceptor=fe}handle(se){return this.interceptor.intercept(se,this.next)}}const ut=new c.OlP("HTTP_INTERCEPTORS");let qt=(()=>{class He{intercept(fe,Ke){return Ke.handle(fe)}}return He.\u0275fac=function(fe){return new(fe||He)},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})();const Tt=/^\)\]\}',?\n/;let vn=(()=>{class He{constructor(fe){this.xhrFactory=fe}handle(fe){if("JSONP"===fe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new z.y(Ke=>{const Se=this.xhrFactory.build();if(Se.open(fe.method,fe.urlWithParams),fe.withCredentials&&(Se.withCredentials=!0),fe.headers.forEach((Xt,Pt)=>Se.setRequestHeader(Xt,Pt.join(","))),fe.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!fe.headers.has("Content-Type")){const Xt=fe.detectContentTypeHeader();null!==Xt&&Se.setRequestHeader("Content-Type",Xt)}if(fe.responseType){const Xt=fe.responseType.toLowerCase();Se.responseType="json"!==Xt?Xt:"text"}const tt=fe.serializeBody();let Gt=null;const $t=()=>{if(null!==Gt)return Gt;const Xt=Se.statusText||"OK",Pt=new R(Se.getAllResponseHeaders()),er=function nn(He){return"responseURL"in He&&He.responseURL?He.responseURL:/^X-Request-URL:/m.test(He.getAllResponseHeaders())?He.getResponseHeader("X-Request-URL"):null}(Se)||fe.url;return Gt=new H({headers:Pt,status:Se.status,statusText:Xt,url:er}),Gt},st=()=>{let{headers:Xt,status:Pt,statusText:er,url:pt}=$t(),Ge=null;204!==Pt&&(Ge=typeof Se.response>"u"?Se.responseText:Se.response),0===Pt&&(Pt=Ge?200:0);let gt=Pt>=200&&Pt<300;if("json"===fe.responseType&&"string"==typeof Ge){const kt=Ge;Ge=Ge.replace(Tt,"");try{Ge=""!==Ge?JSON.parse(Ge):null}catch(jt){Ge=kt,gt&&(gt=!1,Ge={error:jt,text:Ge})}}gt?(Ke.next(new ne({body:Ge,headers:Xt,status:Pt,statusText:er,url:pt||void 0})),Ke.complete()):Ke.error(new me({error:Ge,headers:Xt,status:Pt,statusText:er,url:pt||void 0}))},an=Xt=>{const{url:Pt}=$t(),er=new me({error:Xt,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:Pt||void 0});Ke.error(er)};let Cn=!1;const Jt=Xt=>{Cn||(Ke.next($t()),Cn=!0);let Pt={type:W.DownloadProgress,loaded:Xt.loaded};Xt.lengthComputable&&(Pt.total=Xt.total),"text"===fe.responseType&&!!Se.responseText&&(Pt.partialText=Se.responseText),Ke.next(Pt)},Nt=Xt=>{let Pt={type:W.UploadProgress,loaded:Xt.loaded};Xt.lengthComputable&&(Pt.total=Xt.total),Ke.next(Pt)};return Se.addEventListener("load",st),Se.addEventListener("error",an),Se.addEventListener("timeout",an),Se.addEventListener("abort",an),fe.reportProgress&&(Se.addEventListener("progress",Jt),null!==tt&&Se.upload&&Se.upload.addEventListener("progress",Nt)),Se.send(tt),Ke.next({type:W.Sent}),()=>{Se.removeEventListener("error",an),Se.removeEventListener("abort",an),Se.removeEventListener("load",st),Se.removeEventListener("timeout",an),fe.reportProgress&&(Se.removeEventListener("progress",Jt),null!==tt&&Se.upload&&Se.upload.removeEventListener("progress",Nt)),Se.readyState!==Se.DONE&&Se.abort()}})}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(m.JF))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})();const Wn=new c.OlP("XSRF_COOKIE_NAME"),In=new c.OlP("XSRF_HEADER_NAME");class jn{}let Nn=(()=>{class He{constructor(fe,Ke,Se){this.doc=fe,this.platform=Ke,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const fe=this.doc.cookie||"";return fe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,m.Mx)(fe,this.cookieName),this.lastCookieString=fe),this.lastToken}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(m.K0),c.LFG(c.Lbi),c.LFG(Wn))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})(),Un=(()=>{class He{constructor(fe,Ke){this.tokenService=fe,this.headerName=Ke}intercept(fe,Ke){const Se=fe.url.toLowerCase();if("GET"===fe.method||"HEAD"===fe.method||Se.startsWith("http://")||Se.startsWith("https://"))return Ke.handle(fe);const tt=this.tokenService.getToken();return null!==tt&&!fe.headers.has(this.headerName)&&(fe=fe.clone({headers:fe.headers.set(this.headerName,tt)})),Ke.handle(fe)}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(jn),c.LFG(In))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})(),Mt=(()=>{class He{constructor(fe,Ke){this.backend=fe,this.injector=Ke,this.chain=null}handle(fe){if(null===this.chain){const Ke=this.injector.get(ut,[]);this.chain=Ke.reduceRight((Se,tt)=>new Ve(Se,tt),this.backend)}return this.chain.handle(fe)}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(te),c.LFG(c.zs3))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})(),Rn=(()=>{class He{static disable(){return{ngModule:He,providers:[{provide:Un,useClass:qt}]}}static withOptions(fe={}){return{ngModule:He,providers:[fe.cookieName?{provide:Wn,useValue:fe.cookieName}:[],fe.headerName?{provide:In,useValue:fe.headerName}:[]]}}}return He.\u0275fac=function(fe){return new(fe||He)},He.\u0275mod=c.oAB({type:He}),He.\u0275inj=c.cJS({providers:[Un,{provide:ut,useExisting:Un,multi:!0},{provide:jn,useClass:Nn},{provide:Wn,useValue:"XSRF-TOKEN"},{provide:In,useValue:"X-XSRF-TOKEN"}]}),He})(),St=(()=>{class He{}return He.\u0275fac=function(fe){return new(fe||He)},He.\u0275mod=c.oAB({type:He}),He.\u0275inj=c.cJS({providers:[_e,{provide:ie,useClass:Mt},vn,{provide:te,useExisting:vn}],imports:[Rn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),He})()},4650:(it,De,b)=>{b.d(De,{$8M:()=>q,$Z:()=>Lf,AFp:()=>nm,ALo:()=>Eg,AaK:()=>ie,AsE:()=>Cc,BQk:()=>Tl,CHM:()=>si,CRH:()=>Rg,CZH:()=>Bl,CqO:()=>Mh,D6c:()=>OC,DdM:()=>cg,EJc:()=>WE,EiD:()=>Nd,EpF:()=>Ih,F$t:()=>Nh,F4k:()=>Ah,FYo:()=>Xp,FiY:()=>Xe,G48:()=>hC,Gf:()=>Pg,GfV:()=>eg,GkF:()=>dc,Gpc:()=>L,Gre:()=>dp,Hsn:()=>kh,Ikx:()=>bc,JOm:()=>Bs,JVY:()=>Gm,KtG:()=>Or,L6k:()=>Km,LAX:()=>Ym,LFG:()=>hr,LSH:()=>tu,Lbi:()=>UE,MAs:()=>Sh,MMx:()=>Fc,NdJ:()=>hc,O4$:()=>Ys,OlP:()=>u,Oqu:()=>Ec,PXZ:()=>oC,Q6J:()=>lc,QGY:()=>fc,QP$:()=>wa,QbO:()=>$E,Qsj:()=>x0,R0b:()=>Li,RDi:()=>Lm,Rgc:()=>Xa,SBq:()=>Ya,Sil:()=>KE,Suo:()=>Og,TTD:()=>Br,TgZ:()=>Cl,Tol:()=>Qh,Udp:()=>vc,VKq:()=>dg,W1O:()=>Fg,WFA:()=>pc,WLB:()=>fg,X6Q:()=>fC,XFs:()=>Mt,Xpm:()=>pt,Xts:()=>Du,Y36:()=>oa,YKP:()=>qp,YNc:()=>Th,Yjl:()=>Re,Yz7:()=>Ye,ZZ4:()=>od,_Bn:()=>Yp,_UZ:()=>cc,_Vd:()=>Za,_c5:()=>MC,_uU:()=>rp,aQg:()=>ad,c2e:()=>VE,cJS:()=>Fe,cg1:()=>Tc,d8E:()=>wc,dDg:()=>nC,deG:()=>y,dqk:()=>Se,eBb:()=>Zm,eFA:()=>gm,ekj:()=>_c,eoX:()=>fm,f3M:()=>Gl,g9A:()=>im,h0i:()=>$o,hGG:()=>PC,hM9:()=>U0,hYB:()=>yc,hij:()=>Il,iGM:()=>Mg,ifc:()=>Ke,ip1:()=>tm,kEZ:()=>hg,kL8:()=>Ep,kcU:()=>Gi,l5B:()=>pg,lG2:()=>pe,lcZ:()=>Cg,lqb:()=>ra,lri:()=>cm,mCW:()=>xa,n5z:()=>p,n_E:()=>xl,oAB:()=>rn,oJD:()=>kd,oxw:()=>xh,pB0:()=>Qm,q3G:()=>Er,q4F:()=>tg,qLn:()=>Fa,qOj:()=>ic,qZA:()=>bl,qbA:()=>gg,qzn:()=>ea,rWj:()=>dm,s9C:()=>gc,sBO:()=>pC,sIi:()=>Ua,s_b:()=>kl,soG:()=>jl,tb:()=>sm,tp0:()=>Ft,uIk:()=>ac,vHH:()=>xe,vpe:()=>zs,wAp:()=>Wt,xi3:()=>bg,xp6:()=>mf,ynx:()=>wl,z2F:()=>Hl,z3N:()=>lo,zSh:()=>wu,zs3:()=>js});var m=b(7579),c=b(727),F=b(8306),z=b(6451),U=b(3099);function J(e){for(let t in e)if(e[t]===J)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 ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).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 te(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const R=J({__forward_ref__:J});function L(e){return e.__forward_ref__=L,e.toString=function(){return ie(this())},e}function de(e){return je(e)?e():e}function je(e){return"function"==typeof e&&e.hasOwnProperty(R)&&e.__forward_ref__===L}class xe extends Error{constructor(t,n){super(function Be(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function Ie(e){return"string"==typeof e?e:null==e?"":String(e)}function x(e,t){throw new xe(-201,!1)}function Bt(e,t){null==e&&function lt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Fe(e){return{providers:e.providers||[],imports:e.imports||[]}}function ct(e){return Tt(e,In)||Tt(e,Nn)}function Tt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wn(e){return e&&(e.hasOwnProperty(jn)||e.hasOwnProperty(Un))?e[jn]:null}const In=J({\u0275prov:J}),jn=J({\u0275inj:J}),Nn=J({ngInjectableDef:J}),Un=J({ngInjectorDef:J});var Mt=(()=>((Mt=Mt||{})[Mt.Default=0]="Default",Mt[Mt.Host=1]="Host",Mt[Mt.Self=2]="Self",Mt[Mt.SkipSelf=4]="SkipSelf",Mt[Mt.Optional=8]="Optional",Mt))();let Hn;function Rn(e){const t=Hn;return Hn=e,t}function St(e,t,n){const r=ct(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Mt.Optional?null:void 0!==t?t:void x(ie(e))}function wn(e){return{toString:e}.toString()}var He=(()=>((He=He||{})[He.OnPush=0]="OnPush",He[He.Default=1]="Default",He))(),Ke=(()=>{return(e=Ke||(Ke={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ke;var e})();const Se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),$t={},st=[],an=J({\u0275cmp:J}),Cn=J({\u0275dir:J}),Jt=J({\u0275pipe:J}),Nt=J({\u0275mod:J}),Xt=J({\u0275fac:J}),Pt=J({__NG_ELEMENT_ID__:J});let er=0;function pt(e){return wn(()=>{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===He.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||st,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ke.Emulated,id:"c"+er++,styles:e.styles||st,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.dependencies,l=e.features;return i.inputs=V(e.inputs,r),i.outputs=V(e.outputs),l&&l.forEach(h=>h(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(gt).filter(kt):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(At).filter(kt):null,i})}function gt(e){return Ee(e)||dt(e)}function kt(e){return null!==e}const jt={};function rn(e){return wn(()=>{const t={type:e.type,bootstrap:e.bootstrap||st,declarations:e.declarations||st,imports:e.imports||st,exports:e.exports||st,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(jt[e.id]=e.type),t})}function V(e,t){if(null==e)return $t;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const pe=pt;function Re(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 Ee(e){return e[an]||null}function dt(e){return e[Cn]||null}function At(e){return e[Jt]||null}function Kt(e,t){const n=e[Nt]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function $n(e){return Array.isArray(e)&&!0===e[1]}function Hr(e){return 0!=(8&e.flags)}function br(e){return 2==(2&e.flags)}function Fr(e){return 1==(1&e.flags)}function ir(e){return null!==e.template}function sr(e){return 0!=(256&e[2])}function Ar(e,t){return e.hasOwnProperty(Xt)?e[Xt]:null}class Gn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Br(){return Mr}function Mr(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ui),Di}function Di(){const e=ii(this),t=e?.current;if(t){const n=e.previous;if(n===$t)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ui(e,t,n,r){const i=ii(e)||function Ws(e,t){return e[ri]=t}(e,{previous:$t,current:null}),s=i.current||(i.current={}),l=i.previous,h=this.declaredInputs[n],g=l[h];s[h]=new Gn(g&&g.currentValue,t,l===$t),e[r]=t}Br.ngInherit=!0;const ri="__ngSimpleChanges__";function ii(e){return e[ri]||null}function ht(e){for(;Array.isArray(e);)e=e[0];return e}function Kn(e,t){return ht(t[e])}function Dn(e,t){return ht(t[e.index])}function jr(e,t){return e.data[t]}function Vn(e,t){return e[t]}function qn(e,t){const n=t[e];return xn(n)?n:n[0]}function D(e){return 4==(4&e[2])}function A(e){return 64==(64&e[2])}function O(e,t){return null==t?null:e[t]}function re(e){e[18]=0}function Ne(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 we={lFrame:us(null),bindingsEnabled:!0};function Ln(){return we.bindingsEnabled}function Ze(){return we.lFrame.lView}function Vt(){return we.lFrame.tView}function si(e){return we.lFrame.contextLView=e,e[8]}function Or(e){return we.lFrame.contextLView=null,e}function Bn(){let e=oi();for(;null!==e&&64===e.type;)e=e.parent;return e}function oi(){return we.lFrame.currentTNode}function Gr(e,t){const n=we.lFrame;n.currentTNode=e,n.isParent=t}function rs(){return we.lFrame.isParent}function is(){we.lFrame.isParent=!1}function dr(){const e=we.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Kr(){return we.lFrame.bindingIndex++}function Zr(e){const t=we.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Cs(e,t){const n=we.lFrame;n.bindingIndex=n.bindingRootIndex=e,zi(t)}function zi(e){we.lFrame.currentDirectiveIndex=e}function os(e){const t=we.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function mo(){return we.lFrame.currentQueryIndex}function as(e){we.lFrame.currentQueryIndex=e}function Mo(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ls(e,t,n){if(n&Mt.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&Mt.Host||(i=Mo(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,e=s}const r=we.lFrame=yr();return r.currentTNode=t,r.lView=e,!0}function Wi(e){const t=yr(),n=e[1];we.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yr(){const e=we.lFrame,t=null===e?null:e.child;return null===t?us(e):t}function us(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 Ci(){const e=we.lFrame;return we.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const bs=Ci;function Ks(){const e=Ci();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 lr(){return we.lFrame.selectedIndex}function Mi(e){we.lFrame.selectedIndex=e}function Pn(){const e=we.lFrame;return jr(e.tView,e.selectedIndex)}function Ys(){we.lFrame.currentNamespace="svg"}function Gi(){!function Qs(){we.lFrame.currentNamespace=null}()}function qs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:l,ngAfterContentChecked:h,ngAfterViewInit:g,ngAfterViewChecked:T,ngOnDestroy:M}=s;l&&(e.contentHooks||(e.contentHooks=[])).push(-n,l),h&&((e.contentHooks||(e.contentHooks=[])).push(n,h),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,h)),g&&(e.viewHooks||(e.viewHooks=[])).push(-n,g),T&&((e.viewHooks||(e.viewHooks=[])).push(n,T),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,T)),null!=M&&(e.destroyHooks||(e.destroyHooks=[])).push(n,M)}}function Js(e,t,n){vo(e,t,3,n)}function Pi(e,t,n,r){(3&e[2])===n&&vo(e,t,n,r)}function yo(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vo(e,t,n,r){const s=r??-1,l=t.length-1;let h=0;for(let g=void 0!==r?65535&e[18]:0;g<l;g++)if("number"==typeof t[g+1]){if(h=t[g],null!=r&&h>=r)break}else t[g]<0&&(e[18]+=65536),(h<s||-1==s)&&(wi(e,n,t,g),e[18]=(4294901760&e[18])+g+2),g++}function wi(e,t,n,r){const i=n[r]<0,s=n[r+1],h=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(h)}finally{}}}else try{s.call(h)}finally{}}class cs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ui(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const s=n[r++],l=n[r++],h=n[r++];e.setAttribute(t,l,h,s)}else{const s=i,l=n[++r];Is(s)?e.setProperty(t,s,l):e.setAttribute(t,s,l),r++}}return r}function eo(e){return 3===e||4===e||6===e}function Is(e){return 64===e.charCodeAt(0)}function ds(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||or(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function or(e,t,n,r,i){let s=0,l=e.length;if(-1===t)l=-1;else for(;s<e.length;){const h=e[s++];if("number"==typeof h){if(h===t){l=-1;break}if(h>t){l=s-1;break}}}for(;s<e.length;){const h=e[s];if("number"==typeof h)break;if(h===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==l&&(e.splice(l,0,t),s=l+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}function Do(e){return-1!==e}function Oi(e){return 32767&e}function ci(e,t){let n=function vr(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let As=!0;function fs(e){const t=As;return As=e,t}let Ro=0;const di={};function xi(e,t){const n=$r(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,hs(r.data,e),hs(t,null),hs(r.blueprint,null));const i=Ms(e,t),s=e.injectorIndex;if(Do(i)){const l=Oi(i),h=ci(i,t),g=h[1].data;for(let T=0;T<8;T++)t[s+T]=h[l+T]|g[l+T]}return t[s+8]=i,s}function hs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $r(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ms(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=X(i),null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ki(e,t,n){!function Ri(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pt)&&(r=n[Pt]),null==r&&(r=n[Pt]=Ro++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function ro(e,t,n){if(n&Mt.Optional)return e;x()}function Os(e,t,n,r){if(n&Mt.Optional&&void 0===r&&(r=null),0==(n&(Mt.Self|Mt.Host))){const i=e[9],s=Rn(void 0);try{return i?i.get(t,r,n&Mt.Optional):St(t,r,n&Mt.Optional)}finally{Rn(s)}}return ro(r,0,n)}function Co(e,t,n,r=Mt.Default,i){if(null!==e){if(1024&t[2]){const l=function N(e,t,n,r,i){let s=e,l=t;for(;null!==s&&null!==l&&1024&l[2]&&!(256&l[2]);){const h=Rs(s,l,n,r|Mt.Self,di);if(h!==di)return h;let g=s.parent;if(!g){const T=l[21];if(T){const M=T.get(n,di,r);if(M!==di)return M}g=X(l),l=l[15]}s=g}return i}(e,t,n,r,di);if(l!==di)return l}const s=Rs(e,t,n,r,di);if(s!==di)return s}return Os(t,n,r,i)}function Rs(e,t,n,r,i){const s=function io(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Pt)?e[Pt]:void 0;return"number"==typeof t?t>=0?255&t:o:t}(n);if("function"==typeof s){if(!ls(t,e,r))return r&Mt.Host?ro(i,0,r):Os(t,n,r,i);try{const l=s(r);if(null!=l||r&Mt.Optional)return l;x()}finally{bs()}}else if("number"==typeof s){let l=null,h=$r(e,t),g=-1,T=r&Mt.Host?t[16][6]:null;for((-1===h||r&Mt.SkipSelf)&&(g=-1===h?Ms(e,t):t[h+8],-1!==g&&_(r,!1)?(l=t[1],h=Oi(g),t=ci(g,t)):h=-1);-1!==h;){const M=t[1];if(so(s,h,M.data)){const k=xo(h,t,n,l,r,T);if(k!==di)return k}g=t[h+8],-1!==g&&_(r,t[1].data[h+8]===T)&&so(s,h,t)?(l=M,h=Oi(g),t=ci(g,t)):h=-1}}return i}function xo(e,t,n,r,i,s){const l=t[1],h=l.data[e+8],M=Zi(h,l,n,null==r?br(h)&&As:r!=l&&0!=(3&h.type),i&Mt.Host&&s===h);return null!==M?Yi(t,l,M,h):di}function Zi(e,t,n,r,i){const s=e.providerIndexes,l=t.data,h=1048575&s,g=e.directiveStart,M=s>>20,ce=i?h+M:e.directiveEnd;for(let Pe=r?h:h+M;Pe<ce;Pe++){const qe=l[Pe];if(Pe<g&&n===qe||Pe>=g&&qe.type===n)return Pe}if(i){const Pe=l[g];if(Pe&&ir(Pe)&&Pe.type===n)return g}return null}function Yi(e,t,n,r){let i=e[n];const s=t.data;if(function Xs(e){return e instanceof cs}(i)){const l=i;l.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new xe(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ie(e)}(s[n]));const h=fs(l.canSeeViewProviders);l.resolving=!0;const g=l.injectImpl?Rn(l.injectImpl):null;ls(e,r,Mt.Default);try{i=e[n]=l.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function bi(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const l=Mr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==g&&Rn(g),fs(h),l.resolving=!1,bs()}}return i}function so(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function _(e,t){return!(e&Mt.Self||e&Mt.Host&&t)}class a{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Co(this._tNode,this._lView,t,r,n)}}function o(){return new a(Bn(),Ze())}function p(e){return wn(()=>{const t=e.prototype.constructor,n=t[Xt]||S(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Xt]||S(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function S(e){return je(e)?()=>{const t=S(de(e));return t&&t()}:Ar(e)}function X(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function q(e){return function Ps(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 s=n[i];if(eo(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(Bn(),e)}const Ue="__parameters__";function Yt(e,t,n){return wn(()=>{const r=function en(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const l=new i(...s);return h.annotation=l,h;function h(g,T,M){const k=g.hasOwnProperty(Ue)?g[Ue]:Object.defineProperty(g,Ue,{value:[]})[Ue];for(;k.length<=M;)k.push(null);return(k[M]=k[M]||[]).push(l),g}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class u{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=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const y=new u("AnalyzeForEntryComponents");function mt(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),mt(r,t)):t!==e&&t.push(r)}return t}function Ot(e,t){e.forEach(n=>Array.isArray(n)?Ot(n,t):t(n))}function Ut(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jn(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function On(e,t,n){let r=ur(e,t);return r>=0?e[1|r]=n:(r=~r,function ps(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 Ni(e,t){const n=ur(e,t);if(n>=0)return e[1|n]}function ur(e,t){return function Ns(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),l=e[s<<n];if(t===l)return s<<n;l>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const Qi={},Zo="__NG_DI_FLAG__",Yo="ngTempTokenPath",ao=/\n/gm,ks="__source";let Qo;function Oa(e){const t=Qo;return Qo=e,t}function nl(e,t=Mt.Default){if(void 0===Qo)throw new xe(-203,!1);return null===Qo?St(e,void 0,t):Qo.get(e,t&Mt.Optional?null:void 0,t)}function hr(e,t=Mt.Default){return(function _t(){return Hn}()||nl)(de(e),t)}function Gl(e,t=Mt.Default){return hr(e,t)}function v(e){const t=[];for(let n=0;n<e.length;n++){const r=de(e[n]);if(Array.isArray(r)){if(0===r.length)throw new xe(900,!1);let i,s=Mt.Default;for(let l=0;l<r.length;l++){const h=r[l],g=I(h);"number"==typeof g?-1===g?i=h.token:s|=g:i=h}t.push(hr(i,s))}else t.push(hr(r))}return t}function C(e,t){return e[Zo]=t,e.prototype[Zo]=t,e}function I(e){return e[Zo]}const Xe=C(Yt("Optional"),8),Ft=C(Yt("SkipSelf"),4);let Zl,sl,ol;function Lm(e){Zl=e}function Xo(e){return function Yl(){if(void 0===sl&&(sl=null,Se.trustedTypes))try{sl=Se.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return sl}()?.createHTML(e)||e}function wd(e){return function Ql(){if(void 0===ol&&(ol=null,Se.trustedTypes))try{ol=Se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ol}()?.createHTML(e)||e}class Fo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Hm extends Fo{getTypeName(){return"HTML"}}class Um extends Fo{getTypeName(){return"Style"}}class $m extends Fo{getTypeName(){return"Script"}}class Vm extends Fo{getTypeName(){return"URL"}}class zm extends Fo{getTypeName(){return"ResourceURL"}}function lo(e){return e instanceof Fo?e.changingThisBreaksApplicationSecurity:e}function ea(e,t){const n=function Wm(e){return e instanceof Fo&&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 https://g.co/ng/security#xss)`)}return n===t}function Gm(e){return new Hm(e)}function Km(e){return new Um(e)}function Zm(e){return new $m(e)}function Ym(e){return new Vm(e)}function Qm(e){return new zm(e)}class qm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Xo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Jm{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=Xo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Xo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0<i;i--){const l=n.item(i).name;("xmlns:ns1"===l||0===l.indexOf("ns1:"))&&t.removeAttribute(l)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const ey=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ty=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function xa(e){return(e=String(e)).match(ey)||e.match(ty)?e:"unsafe:"+e}function Ls(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Md=Ls("area,br,col,hr,img,wbr"),Pd=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Od=Ls("rp,rt"),ql=Na(Md,Na(Pd,Ls("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")),Na(Od,Ls("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")),Na(Od,Pd)),Jl=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Xl=Ls("srcset"),Rd=Na(Jl,Xl,Ls("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ls("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")),ny=Ls("script,style,template");class ry{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(!ql.hasOwnProperty(n))return this.sanitizedSomething=!0,!ny.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),l=s.name,h=l.toLowerCase();if(!Rd.hasOwnProperty(h)){this.sanitizedSomething=!0;continue}let g=s.value;Jl[h]&&(g=xa(g)),Xl[h]&&(e=g,g=(e=String(e)).split(",").map(t=>xa(t.trim())).join(", ")),this.buf.push(" ",l,'="',xd(g),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ql.hasOwnProperty(n)&&!Md.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(xd(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 iy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sy=/([^\#-~ |!])/g;function xd(e){return e.replace(/&/g,"&amp;").replace(iy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(sy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let al;function Nd(e,t){let n=null;try{al=al||function Id(e){const t=new Jm(e);return function Xm(){try{return!!(new window.DOMParser).parseFromString(Xo(""),"text/html")}catch{return!1}}()?new qm(t):t}(e);let r=t?String(t):"";n=al.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=al.getInertBodyElement(r)}while(r!==s);return Xo((new ry).sanitizeChildren(eu(n)||n))}finally{if(n){const r=eu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function eu(e){return"content"in e&&function oy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=(()=>((Er=Er||{})[Er.NONE=0]="NONE",Er[Er.HTML=1]="HTML",Er[Er.STYLE=2]="STYLE",Er[Er.SCRIPT=3]="SCRIPT",Er[Er.URL=4]="URL",Er[Er.RESOURCE_URL=5]="RESOURCE_URL",Er))();function kd(e){const t=ka();return t?wd(t.sanitize(Er.HTML,e)||""):ea(e,"HTML")?wd(lo(e)):Nd(function bd(){return void 0!==Zl?Zl:typeof document<"u"?document:void 0}(),Ie(e))}function tu(e){const t=ka();return t?t.sanitize(Er.URL,e)||"":ea(e,"URL")?lo(e):xa(Ie(e))}function ka(){const e=Ze();return e&&e[12]}function ru(e){return e.ngOriginalError}class Fa{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&&ru(t);for(;n&&ru(n);)n=ru(n);return n||null}}const iu=new Map;let Ey=0;const ou="__ngContext__";function qr(e,t){xn(t)?(e[ou]=t[20],function by(e){iu.set(e[20],e)}(t)):e[ou]=t}function La(e){const t=e[ou];return"number"==typeof t?function Bd(e){return iu.get(e)||null}(t):t||null}function au(e){const t=La(e);return t?xn(t)?t:t.lView:null}const Ry=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Se))();function uo(e){return e instanceof Function?e():e}var Bs=(()=>((Bs=Bs||{})[Bs.Important=1]="Important",Bs[Bs.DashCase=2]="DashCase",Bs))();function uu(e,t){return undefined(e,t)}function Ba(e){const t=e[3];return $n(t)?t[3]:t}function cu(e){return Kd(e[13])}function du(e){return Kd(e[4])}function Kd(e){for(;null!==e&&!$n(e);)e=e[4];return e}function na(e,t,n,r,i){if(null!=r){let s,l=!1;$n(r)?s=r:xn(r)&&(l=!0,r=r[0]);const h=ht(r);0===e&&null!==n?null==i?Xd(t,n,h):Lo(t,n,h,i||null,!0):1===e&&null!==n?Lo(t,n,h,i||null,!0):2===e?function lf(e,t,n){const r=ll(e,t);r&&function Zy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,h,l):3===e&&t.destroyNode(h),null!=s&&function qy(e,t,n,r,i){const s=n[7];s!==ht(n)&&na(t,e,r,s,i);for(let h=10;h<n.length;h++){const g=n[h];ja(g[1],g,e,t,r,s)}}(t,e,s,n,i)}}function hu(e,t,n){return e.createElement(t,n)}function Yd(e,t){const n=e[9],r=n.indexOf(t),i=t[3];512&t[2]&&(t[2]&=-513,Ne(i,-1)),n.splice(r,1)}function pu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yd(i,r),t>0&&(e[n-1][4]=r[4]);const s=pn(e,10+t);!function Hy(e,t){ja(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const l=s[19];null!==l&&l.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Qd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&ja(e,t,n,3,null,null),function Vy(e){let t=e[13];if(!t)return gu(e[1],e);for(;t;){let n=null;if(xn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)xn(t)&&gu(t[1],t),t=t[3];null===t&&(t=e),xn(t)&&gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function gu(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Ky(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 cs)){const s=n[r+1];if(Array.isArray(s))for(let l=0;l<s.length;l+=2){const h=i[s[l]],g=s[l+1];try{g.call(h)}finally{}}else try{s.call(i)}finally{}}}}(e,t),function Gy(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const l=n[s+1],h="function"==typeof l?l(t):ht(t[l]),g=r[i=n[s+2]],T=n[s+3];"boolean"==typeof T?h.removeEventListener(n[s],g,T):T>=0?r[i=T]():r[i=-T].unsubscribe(),s+=2}else{const l=r[i=n[s+1]];n[s].call(l)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&$n(t[3])){n!==t[3]&&Yd(n,t);const r=t[19];null!==r&&r.detachView(e)}!function wy(e){iu.delete(e[20])}(t)}}function qd(e,t,n){return function Jd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const i=e.data[r.directiveStart].encapsulation;if(i===Ke.None||i===Ke.Emulated)return null}return Dn(r,n)}(e,t.parent,n)}function Lo(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Xd(e,t,n){e.appendChild(t,n)}function ef(e,t,n,r,i){null!==r?Lo(e,t,n,r,i):Xd(e,t,n)}function ll(e,t){return e.parentNode(t)}function tf(e,t,n){return rf(e,t,n)}let rf=function nf(e,t,n){return 40&e.type?Dn(e,n):null};function ul(e,t,n,r){const i=qd(e,r,t),s=t[11],h=tf(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let g=0;g<n.length;g++)ef(s,i,n[g],h,!1);else ef(s,i,n,h,!1)}function cl(e,t){if(null!==t){const n=t.type;if(3&n)return Dn(t,e);if(4&n)return yu(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return cl(e,r);{const i=e[t.index];return $n(i)?yu(-1,i):ht(i)}}if(32&n)return uu(t,e)()||ht(e[t.index]);{const r=af(e,t);return null!==r?Array.isArray(r)?r[0]:cl(Ba(e[16]),r):cl(e,t.next)}}return null}function af(e,t){return null!==t?e[16][6].projection[t.projection]:null}function yu(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return cl(r,i)}return t[7]}function vu(e,t,n,r,i,s,l){for(;null!=n;){const h=r[n.index],g=n.type;if(l&&0===t&&(h&&qr(ht(h),r),n.flags|=4),64!=(64&n.flags))if(8&g)vu(e,t,n.child,r,i,s,!1),na(t,e,i,h,s);else if(32&g){const T=uu(n,r);let M;for(;M=T();)na(t,e,i,M,s);na(t,e,i,h,s)}else 16&g?uf(e,t,r,n,i,s):na(t,e,i,h,s);n=l?n.projectionNext:n.next}}function ja(e,t,n,r,i,s){vu(n,r,e.firstChild,t,i,s,!1)}function uf(e,t,n,r,i,s){const l=n[16],g=l[6].projection[r.projection];if(Array.isArray(g))for(let T=0;T<g.length;T++)na(t,e,i,g[T],s);else vu(e,t,g,l[3],i,s,!0)}function cf(e,t,n){e.setAttribute(t,"style",n)}function _u(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function df(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 s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}const ff="ng-template";function Xy(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==df(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 hf(e){return 4===e.type&&e.value!==ff}function ev(e,t,n){return t===(4!==e.type||n?e.value:ff)}function tv(e,t,n){let r=4;const i=e.attrs||[],s=function iv(e){for(let t=0;t<e.length;t++)if(eo(e[t]))return t;return e.length}(i);let l=!1;for(let h=0;h<t.length;h++){const g=t[h];if("number"!=typeof g){if(!l)if(4&r){if(r=2|1&r,""!==g&&!ev(e,g,n)||""===g&&1===t.length){if(gs(r))return!1;l=!0}}else{const T=8&r?g:t[++h];if(8&r&&null!==e.attrs){if(!Xy(e.attrs,T,n)){if(gs(r))return!1;l=!0}continue}const k=nv(8&r?"class":g,i,hf(e),n);if(-1===k){if(gs(r))return!1;l=!0;continue}if(""!==T){let ce;ce=k>s?"":i[k+1].toLowerCase();const Pe=8&r?ce:null;if(Pe&&-1!==df(Pe,T,0)||2&r&&T!==ce){if(gs(r))return!1;l=!0}}}}else{if(!l&&!gs(r)&&!gs(g))return!1;if(l&&gs(g))continue;l=!1,r=g|1&r}}return gs(r)||l}function gs(e){return 0==(1&e)}function nv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const l=t[i];if(l===e)return i;if(3===l||6===l)s=!0;else{if(1===l||2===l){let h=t[++i];for(;"string"==typeof h;)h=t[++i];continue}if(4===l)break;if(0===l){i+=4;continue}}i+=s?1:2}return-1}return function sv(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 pf(e,t,n=!1){for(let r=0;r<t.length;r++)if(tv(e,t[r],n))return!0;return!1}function ov(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 gf(e,t){return e?":not("+t.trim()+")":t}function av(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let l=e[n];if("string"==typeof l)if(2&r){const h=e[++n];i+="["+l+(h.length>0?'="'+h+'"':"")+"]"}else 8&r?i+="."+l:4&r&&(i+=" "+l);else""!==i&&!gs(l)&&(t+=gf(s,i),i=""),r=l,s=s||!gs(r);n++}return""!==i&&(t+=gf(s,i)),t}const un={};function mf(e){yf(Vt(),Ze(),lr()+e,!1)}function yf(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Js(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Pi(t,s,0,n)}Mi(n)}const Du=new u("ENVIRONMENT_INITIALIZER"),Ef=new u("INJECTOR_DEF_TYPES");function gv(...e){return{\u0275providers:Cf(0,e)}}function Cf(e,...t){const n=[],r=new Set;let i;return Ot(t,s=>{const l=s;Eu(l,n,[],r)&&(i||(i=[]),i.push(l))}),void 0!==i&&bf(i,n),n}function bf(e,t){for(let n=0;n<e.length;n++){const{providers:i}=e[n];Ot(i,s=>{t.push(s)})}}function Eu(e,t,n,r){if(!(e=de(e)))return!1;let i=null,s=Wn(e);const l=!s&&Ee(e);if(s||l){if(l&&!l.standalone)return!1;i=e}else{const g=e.ngModule;if(s=Wn(g),!s)return!1;i=g}const h=r.has(i);if(l){if(h)return!1;if(r.add(i),l.dependencies){const g="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const T of g)Eu(T,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!h){let T;r.add(i);try{Ot(s.imports,M=>{Eu(M,t,n,r)&&(T||(T=[]),T.push(M))})}finally{}void 0!==T&&bf(T,t)}if(!h){const T=Ar(i)||(()=>new i);t.push({provide:i,useFactory:T,deps:st},{provide:Ef,useValue:i,multi:!0},{provide:Du,useValue:()=>hr(i),multi:!0})}const g=s.providers;null==g||h||Ot(g,M=>{t.push(M)})}}return i!==e&&void 0!==e.providers}const mv=J({provide:String,useValue:J});function Cu(e){return null!==e&&"object"==typeof e&&mv in e}function Bo(e){return"function"==typeof e}const bu=new u("INJECTOR",-1);class Sf{get(t,n=Qi){if(n===Qi){const r=new Error(`NullInjectorError: No provider for ${ie(t)}!`);throw r.name="NullInjectorError",r}return n}}const wu=new u("Set Injector scope."),dl={},vv={};let Tu;function Su(){return void 0===Tu&&(Tu=new Sf),Tu}class ra{}class If extends ra{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,Au(t,l=>this.processProvider(l)),this.records.set(bu,ia(void 0,this)),i.has("environment")&&this.records.set(ra,ia(void 0,this));const s=this.records.get(wu);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ef.multi,st,Mt.Self))}get destroyed(){return this._destroyed}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)}get(t,n=Qi,r=Mt.Default){this.assertNotDestroyed();const i=Oa(this),s=Rn(void 0);try{if(!(r&Mt.SkipSelf)){let h=this.records.get(t);if(void 0===h){const g=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof u}(t)&&ct(t);h=g&&this.injectableDefInScope(g)?ia(Iu(t),dl):null,this.records.set(t,h)}if(null!=h)return this.hydrate(t,h)}return(r&Mt.Self?Su():this.parent).get(t,n=r&Mt.Optional&&n===Qi?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[Yo]=l[Yo]||[]).unshift(ie(t)),i)throw l;return function $(e,t,n,r){const i=e[Yo];throw t[ks]&&i.unshift(t[ks]),e.message=function be(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).join(" -> ");else if("object"==typeof t){let s=[];for(let l in t)if(t.hasOwnProperty(l)){let h=t[l];s.push(l+":"+("string"==typeof h?JSON.stringify(h):ie(h)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ao,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}(l,t,"R3InjectorError",this.source)}throw l}finally{Rn(s),Oa(i)}}resolveInjectorInitializers(){const t=Oa(this),n=Rn(void 0);try{const r=this.get(Du.multi,st,Mt.Self);for(const i of r)i()}finally{Oa(t),Rn(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new xe(205,!1)}processProvider(t){let n=Bo(t=de(t))?t:de(t&&t.provide);const r=function Dv(e){return Cu(e)?ia(void 0,e.useValue):ia(Af(e),dl)}(t);if(Bo(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=ia(void 0,dl,!0),i.factory=()=>v(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=vv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Cv(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=de(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Iu(e){const t=ct(e),n=null!==t?t.factory:Ar(e);if(null!==n)return n;if(e instanceof u)throw new xe(204,!1);if(e instanceof Function)return function _v(e){const t=e.length;if(t>0)throw Jn(t,"?"),new xe(204,!1);const n=function nn(e){const t=e&&(e[In]||e[Nn]);if(t){const n=function vn(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 xe(204,!1)}function Af(e,t,n){let r;if(Bo(e)){const i=de(e);return Ar(i)||Iu(i)}if(Cu(e))r=()=>de(e.useValue);else if(function Tf(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...v(e.deps||[]));else if(function wf(e){return!(!e||!e.useExisting)}(e))r=()=>hr(de(e.useExisting));else{const i=de(e&&(e.useClass||e.provide));if(!function Ev(e){return!!e.deps}(e))return Ar(i)||Iu(i);r=()=>new i(...v(e.deps))}return r}function ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wv(e){return!!e.\u0275providers}function Au(e,t){for(const n of e)Array.isArray(n)?Au(n,t):wv(n)?Au(n.\u0275providers,t):t(n)}function Mf(e,t=null,n=null,r){const i=Pf(e,t,n,r);return i.resolveInjectorInitializers(),i}function Pf(e,t=null,n=null,r,i=new Set){const s=[n||st,gv(e)];return r=r||("object"==typeof e?void 0:ie(e)),new If(s,t||Su(),r||null,i)}let js=(()=>{class e{static create(n,r){if(Array.isArray(n))return Mf({name:""},r,n,"");{const i=n.name??"";return Mf({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Qi,e.NULL=new Sf,e.\u0275prov=Ye({token:e,providedIn:"any",factory:()=>hr(bu)}),e.__NG_ELEMENT_ID__=-1,e})();function oa(e,t=Mt.Default){const n=Ze();return null===n?hr(e,t):Co(Bn(),n,de(e),t)}function Lf(){throw new Error("invalid")}function hl(e,t){return e<<17|t<<2}function ms(e){return e>>17&32767}function Fu(e){return 2|e}function co(e){return(131068&e)>>2}function Lu(e,t){return-131069&e|t<<2}function Bu(e){return 1|e}function qf(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const l=e.data[s];as(i),l.contentQueries(2,t[s],s)}}}function ml(e,t,n,r,i,s,l,h,g,T,M){const k=t.blueprint.slice();return k[0]=i,k[2]=76|r,(null!==M||e&&1024&e[2])&&(k[2]|=1024),re(k),k[3]=k[15]=e,k[8]=n,k[10]=l||e&&e[10],k[11]=h||e&&e[11],k[12]=g||e&&e[12]||null,k[9]=T||e&&e[9]||null,k[6]=s,k[20]=function Cy(){return Ey++}(),k[21]=M,k[16]=2==t.type?e[16]:k,k}function aa(e,t,n,r,i){let s=e.data[t];if(null===s)s=function Ku(e,t,n,r,i){const s=oi(),l=rs(),g=e.data[t]=function r_(e,t,n,r,i,s){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,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,l?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=g),null!==s&&(l?null==s.child&&null!==g.parent&&(s.child=g):null===s.next&&(s.next=g)),g}(e,t,n,r,i),function go(){return we.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const l=function ai(){const e=we.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===l?-1:l.injectorIndex}return Gr(s,!0),s}function la(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function yl(e,t,n){Wi(t);try{const r=e.viewQuery;null!==r&&rc(1,r,n);const i=e.template;null!==i&&Jf(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&qf(e,t),e.staticViewQueries&&rc(2,e.viewQuery,n);const s=e.components;null!==s&&function Xv(e,t){for(let n=0;n<t.length;n++)E_(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Ks()}}function Ha(e,t,n,r){const i=t[2];if(128!=(128&i)){Wi(t);try{re(t),function ss(e){return we.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Jf(e,t,n,2,r);const l=3==(3&i);if(l){const T=e.preOrderCheckHooks;null!==T&&Js(t,T,null)}else{const T=e.preOrderHooks;null!==T&&Pi(t,T,0,null),yo(t,0)}if(function __(e){for(let t=cu(e);null!==t;t=du(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r],s=i[3];0==(512&i[2])&&Ne(s,1),i[2]|=512}}}(t),function v_(e){for(let t=cu(e);null!==t;t=du(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];A(r)&&Ha(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&qf(e,t),l){const T=e.contentCheckHooks;null!==T&&Js(t,T)}else{const T=e.contentHooks;null!==T&&Pi(t,T,1),yo(t,1)}!function qv(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)Mi(~i);else{const s=i,l=n[++r],h=n[++r];Cs(l,s),h(2,t[s])}}}finally{Mi(-1)}}(e,t);const h=e.components;null!==h&&function Jv(e,t){for(let n=0;n<t.length;n++)D_(e,t[n])}(t,h);const g=e.viewQuery;if(null!==g&&rc(2,g,r),l){const T=e.viewCheckHooks;null!==T&&Js(t,T)}else{const T=e.viewHooks;null!==T&&Pi(t,T,2),yo(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Ne(t[3],-1))}finally{Ks()}}}function e_(e,t,n,r){const i=t[10],l=D(t);try{!l&&i.begin&&i.begin(),l&&yl(e,t,r),Ha(e,t,n,r)}finally{!l&&i.end&&i.end()}}function Jf(e,t,n,r,i){const s=lr(),l=2&r;try{Mi(-1),l&&t.length>22&&yf(e,t,22,!1),n(r,i)}finally{Mi(s)}}function Xf(e,t,n){if(Hr(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const l=e.data[s];l.contentQueries&&l.contentQueries(1,n[s],s)}}}function Zu(e,t,n){!Ln()||(function c_(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||xi(n,t),qr(r,t);const l=n.initialInputs;for(let h=i;h<s;h++){const g=e.data[h],T=ir(g);T&&g_(t,n,g);const M=Yi(t,e,h,n);qr(M,t),null!==l&&m_(0,h-i,M,g,0,l),T&&(qn(n.index,t)[8]=M)}}(e,t,n,Dn(n,t)),128==(128&n.flags)&&function d_(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,l=function Ao(){return we.lFrame.currentDirectiveIndex}();try{Mi(s);for(let h=r;h<i;h++){const g=e.data[h],T=t[h];zi(h),(null!==g.hostBindings||0!==g.hostVars||null!==g.hostAttrs)&&ih(g,T)}}finally{Mi(-1),zi(l)}}(e,t,n))}function Yu(e,t,n=Dn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const l=r[s+1],h=-1===l?n(t,e):e[l];e[i++]=h}}}function eh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Qu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Qu(e,t,n,r,i,s,l,h,g,T){const M=22+r,k=M+i,ce=function t_(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:un);return n}(M,k),Pe="function"==typeof T?T():T;return ce[1]={type:e,blueprint:ce,template:n,queries:null,viewQuery:h,declTNode:t,data:ce.slice().fill(null,M),bindingStartIndex:M,expandoStartIndex:k,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 s?s():s,pipeRegistry:"function"==typeof l?l():l,firstChild:null,schemas:g,consts:Pe,incompleteFirstPass:!1}}function th(e,t,n,r){const i=ch(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&dh(e).push(r,i.length-1))}function nh(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Fi(e,t,n,r,i,s,l,h){const g=Dn(t,n);let M,T=t.inputs;!h&&null!=T&&(M=T[r])?(ph(e,n,M,r,i),br(t)&&function o_(e,t){const n=qn(t,e);16&n[2]||(n[2]|=32)}(n,t.index)):3&t.type&&(r=function s_(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=l?l(i,t.value||"",r):i,s.setProperty(g,r,i))}function qu(e,t,n,r){let i=!1;if(Ln()){const s=function f_(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const l=r[s];pf(n,l.selectors,!1)&&(i||(i=[]),Ki(xi(n,t),e,l.type),ir(l)?(sh(e,n),i.unshift(l)):i.push(l))}return i}(e,t,n),l=null===r?null:{"":-1};if(null!==s){i=!0,oh(n,e.data.length,s.length);for(let M=0;M<s.length;M++){const k=s[M];k.providersResolver&&k.providersResolver(k)}let h=!1,g=!1,T=la(e,t,s.length,null);for(let M=0;M<s.length;M++){const k=s[M];n.mergedAttrs=ds(n.mergedAttrs,k.hostAttrs),ah(e,n,t,T,k),p_(T,k,l),null!==k.contentQueries&&(n.flags|=8),(null!==k.hostBindings||null!==k.hostAttrs||0!==k.hostVars)&&(n.flags|=128);const ce=k.type.prototype;!h&&(ce.ngOnChanges||ce.ngOnInit||ce.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),h=!0),!g&&(ce.ngOnChanges||ce.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),g=!0),T++}!function i_(e,t){const r=t.directiveEnd,i=e.data,s=t.attrs,l=[];let h=null,g=null;for(let T=t.directiveStart;T<r;T++){const M=i[T],k=M.inputs,ce=null===s||hf(t)?null:y_(k,s);l.push(ce),h=nh(k,T,h),g=nh(M.outputs,T,g)}null!==h&&(h.hasOwnProperty("class")&&(t.flags|=16),h.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=l,t.inputs=h,t.outputs=g}(e,n)}l&&function h_(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new xe(-301,!1);r.push(t[i],s)}}}(n,r,l)}return n.mergedAttrs=ds(n.mergedAttrs,n.attrs),i}function rh(e,t,n,r,i,s){const l=s.hostBindings;if(l){let h=e.hostBindingOpCodes;null===h&&(h=e.hostBindingOpCodes=[]);const g=~t.index;(function u_(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(h)!=g&&h.push(g),h.push(r,i,l)}}function ih(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function sh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function p_(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ir(t)&&(n[""]=e)}}function oh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ah(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=Ar(i.type)),l=new cs(s,ir(i),oa);e.blueprint[r]=l,n[r]=l,rh(e,t,0,r,la(e,n,i.hostVars,un),i)}function g_(e,t,n){const r=Dn(t,e),i=eh(n),s=e[10],l=vl(e,ml(e,i,null,n.onPush?32:16,r,t,s,s.createRenderer(r,n),null,null,null));e[t.index]=l}function Hs(e,t,n,r,i,s){const l=Dn(e,t);!function Ju(e,t,n,r,i,s,l){if(null==s)e.removeAttribute(t,i,n);else{const h=null==l?Ie(s):l(s,r||"",i);e.setAttribute(t,i,h,n)}}(t[11],l,s,e.value,n,r,i)}function m_(e,t,n,r,i,s){const l=s[t];if(null!==l){const h=r.setInput;for(let g=0;g<l.length;){const T=l[g++],M=l[g++],k=l[g++];null!==h?r.setInput(n,k,T,M):n[M]=k}}}function y_(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function lh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function D_(e,t){const n=qn(t,e);if(A(n)){const r=n[1];48&n[2]?Ha(r,n,r.template,n[8]):n[5]>0&&Xu(n)}}function Xu(e){for(let r=cu(e);null!==r;r=du(r))for(let i=10;i<r.length;i++){const s=r[i];if(512&s[2]){const l=s[1];Ha(l,s,l.template,s[8])}else s[5]>0&&Xu(s)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=qn(n[r],e);A(i)&&i[5]>0&&Xu(i)}}function E_(e,t){const n=qn(t,e),r=n[1];(function C_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),yl(r,n,n[8])}function vl(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ec(e){for(;e;){e[2]|=32;const t=Ba(e);if(sr(e)&&!t)return e;e=t}return null}function uh(e){!function tc(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=au(n);if(null!==r){const i=r[1];e_(i,r,i.template,n)}}}(e[8])}function rc(e,t,n){as(0),t(e,n)}const w_=(()=>Promise.resolve(null))();function ch(e){return e[7]||(e[7]=[])}function dh(e){return e.cleanup||(e.cleanup=[])}function fh(e,t,n){return(null===e||ir(e))&&(n=function Tn(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function hh(e,t){const n=e[9],r=n?n.get(Fa,null):null;r&&r.handleError(t)}function ph(e,t,n,r,i){for(let s=0;s<n.length;){const l=n[s++],h=n[s++],g=t[l],T=e.data[l];null!==T.setInput?T.setInput(g,i,r,h):g[h]=i}}function fo(e,t,n){const r=Kn(t,e);!function Zd(e,t,n){e.setValue(t,n)}(e[11],r,n)}function _l(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let l=0;l<t.length;l++){const h=t[l];"number"==typeof h?s=h:1==s?i=te(i,h):2==s&&(r=te(r,h+": "+t[++l]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function A_(){const e=Bn();qs(Ze()[1],e)}function ic(e){let t=function gh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(ir(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new xe(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const l=e;l.inputs=sc(e.inputs),l.declaredInputs=sc(e.declaredInputs),l.outputs=sc(e.outputs);const h=i.hostBindings;h&&R_(e,h);const g=i.viewQuery,T=i.contentQueries;if(g&&P_(e,g),T&&O_(e,T),ee(e.inputs,i.inputs),ee(e.declaredInputs,i.declaredInputs),ee(e.outputs,i.outputs),ir(i)&&i.data.animation){const M=e.data;M.animation=(M.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let l=0;l<s.length;l++){const h=s[l];h&&h.ngInherit&&h(e),h===ic&&(n=!1)}}t=Object.getPrototypeOf(t)}!function M_(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=ds(i.hostAttrs,n=ds(n,i.hostAttrs))}}(r)}function sc(e){return e===$t?{}:e===st?[]:e}function P_(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function O_(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function R_(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}let Dl=null;function jo(){if(!Dl){const e=Se.Symbol;if(e&&e.iterator)Dl=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&&(Dl=r)}}}return Dl}function Ua(e){return!!oc(e)&&(Array.isArray(e)||!(e instanceof Map)&&jo()in e)}function oc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Us(e,t,n){return e[t]=n}function $a(e,t){return e[t]}function Jr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ho(e,t,n,r){const i=Jr(e,t,n);return Jr(e,t+1,r)||i}function qi(e,t,n,r,i,s){const l=Ho(e,t,n,r);return Ho(e,t+2,i,s)||l}function ac(e,t,n,r){const i=Ze();return Jr(i,Kr(),t)&&(Vt(),Hs(Pn(),i,e,t,n,r)),ac}function ca(e,t,n,r){return Jr(e,Kr(),n)?t+Ie(n)+r:un}function da(e,t,n,r,i,s){const h=Ho(e,function li(){return we.lFrame.bindingIndex}(),n,i);return Zr(2),h?t+Ie(n)+r+Ie(i)+s:un}function Th(e,t,n,r,i,s,l,h){const g=Ze(),T=Vt(),M=e+22,k=T.firstCreatePass?function U_(e,t,n,r,i,s,l,h,g){const T=t.consts,M=aa(t,e,4,l||null,O(T,h));qu(t,n,M,O(T,g)),qs(t,M);const k=M.tViews=Qu(2,M,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,T);return null!==t.queries&&(t.queries.template(t,M),k.queries=t.queries.embeddedTView(M)),M}(M,T,g,t,n,r,i,s,l):T.data[M];Gr(k,!1);const ce=g[11].createComment("");ul(T,g,ce,k),qr(ce,g),vl(g,g[M]=lh(ce,g,ce,k)),Fr(k)&&Zu(T,g,k),null!=l&&Yu(g,k,h)}function Sh(e){return Vn(function po(){return we.lFrame.contextLView}(),22+e)}function lc(e,t,n){const r=Ze();return Jr(r,Kr(),t)&&Fi(Vt(),Pn(),r,e,t,r[11],n,!1),lc}function uc(e,t,n,r,i){const l=i?"class":"style";ph(e,n,t.inputs[l],l,r)}function Cl(e,t,n,r){const i=Ze(),s=Vt(),l=22+e,h=i[11],g=i[l]=hu(h,t,function Tr(){return we.lFrame.currentNamespace}()),T=s.firstCreatePass?function V_(e,t,n,r,i,s,l){const h=t.consts,T=aa(t,e,2,i,O(h,s));return qu(t,n,T,O(h,l)),null!==T.attrs&&_l(T,T.attrs,!1),null!==T.mergedAttrs&&_l(T,T.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,T),T}(l,s,i,0,t,n,r):s.data[l];Gr(T,!0);const M=T.mergedAttrs;null!==M&&ui(h,g,M);const k=T.classes;null!==k&&_u(h,g,k);const ce=T.styles;return null!==ce&&cf(h,g,ce),64!=(64&T.flags)&&ul(s,i,g,T),0===function Mn(){return we.lFrame.elementDepthCount}()&&qr(g,i),function bn(){we.lFrame.elementDepthCount++}(),Fr(T)&&(Zu(s,i,T),Xf(s,T,i)),null!==r&&Yu(i,T),Cl}function bl(){let e=Bn();rs()?is():(e=e.parent,Gr(e,!1));const t=e;!function cn(){we.lFrame.elementDepthCount--}();const n=Vt();return n.firstCreatePass&&(qs(n,e),Hr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ss(e){return 0!=(16&e.flags)}(t)&&uc(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Oo(e){return 0!=(32&e.flags)}(t)&&uc(n,t,Ze(),t.stylesWithoutHost,!1),bl}function cc(e,t,n,r){return Cl(e,t,n,r),bl(),cc}function wl(e,t,n){const r=Ze(),i=Vt(),s=e+22,l=i.firstCreatePass?function z_(e,t,n,r,i){const s=t.consts,l=O(s,r),h=aa(t,e,8,"ng-container",l);return null!==l&&_l(h,l,!0),qu(t,n,h,O(s,i)),null!==t.queries&&t.queries.elementStart(t,h),h}(s,i,r,t,n):i.data[s];Gr(l,!0);const h=r[s]=r[11].createComment("");return ul(i,r,h,l),qr(h,r),Fr(l)&&(Zu(i,r,l),Xf(i,l,r)),null!=n&&Yu(r,l),wl}function Tl(){let e=Bn();const t=Vt();return rs()?is():(e=e.parent,Gr(e,!1)),t.firstCreatePass&&(qs(t,e),Hr(e)&&t.queries.elementEnd(e)),Tl}function dc(e,t,n){return wl(e,t,n),Tl(),dc}function Ih(){return Ze()}function fc(e){return!!e&&"function"==typeof e.then}function Ah(e){return!!e&&"function"==typeof e.subscribe}const Mh=Ah;function hc(e,t,n,r){const i=Ze(),s=Vt(),l=Bn();return Ph(s,i,i[11],l,e,t,0,r),hc}function pc(e,t){const n=Bn(),r=Ze(),i=Vt();return Ph(i,r,fh(os(i.data),n,r),n,e,t),pc}function Ph(e,t,n,r,i,s,l,h){const g=Fr(r),M=e.firstCreatePass&&dh(e),k=t[8],ce=ch(t);let Pe=!0;if(3&r.type||h){const Ct=Dn(r,t),Rt=h?h(Ct):Ct,Qt=ce.length,et=h?En=>h(ht(En[r.index])):r.index;let Ht=null;if(!h&&g&&(Ht=function W_(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const l=i[s];if(l===n&&i[s+1]===r){const h=t[7],g=i[s+2];return h.length>g?h[g]:null}"string"==typeof l&&(s+=2)}return null}(e,t,i,r.index)),null!==Ht)(Ht.__ngLastListenerFn__||Ht).__ngNextListenerFn__=s,Ht.__ngLastListenerFn__=s,Pe=!1;else{s=Rh(r,t,k,s,!1);const En=n.listen(Rt,i,s);ce.push(s,En),M&&M.push(i,et,Qt,Qt+1)}}else s=Rh(r,t,k,s,!1);const qe=r.outputs;let at;if(Pe&&null!==qe&&(at=qe[i])){const Ct=at.length;if(Ct)for(let Rt=0;Rt<Ct;Rt+=2){const nr=t[at[Rt]][at[Rt+1]].subscribe(s),zo=ce.length;ce.push(s,nr),M&&M.push(i,r.index,zo,-(zo+1))}}}function Oh(e,t,n,r){try{return!1!==n(r)}catch(i){return hh(e,i),!1}}function Rh(e,t,n,r,i){return function s(l){if(l===Function)return r;ec(2&e.flags?qn(e.index,t):t);let g=Oh(t,0,r,l),T=s.__ngNextListenerFn__;for(;T;)g=Oh(t,0,T,l)&&g,T=T.__ngNextListenerFn__;return i&&!1===g&&(l.preventDefault(),l.returnValue=!1),g}}function xh(e=1){return function Zs(e){return(we.lFrame.contextLView=function ws(e,t){for(;e>0;)t=t[15],e--;return t}(e,we.lFrame.contextLView))[8]}(e)}function G_(e,t){let n=null;const r=function rv(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?pf(e,s,!0):ov(r,s))return i}else n=i}return n}function Nh(e){const t=Ze()[16][6];if(!t.projection){const r=t.projection=Jn(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const l=e?G_(s,e):0;null!==l&&(i[l]?i[l].projectionNext=s:r[l]=s,i[l]=s),s=s.next}}}function kh(e,t=0,n){const r=Ze(),i=Vt(),s=aa(i,22+e,16,null,n||null);null===s.projection&&(s.projection=t),is(),64!=(64&s.flags)&&function Qy(e,t,n){uf(t[11],0,t,n,qd(e,n,t),tf(n.parent||t[6],n,t))}(i,r,s)}function gc(e,t,n){return mc(e,"",t,"",n),gc}function mc(e,t,n,r,i){const s=Ze(),l=ca(s,t,n,r);return l!==un&&Fi(Vt(),Pn(),s,e,l,s[11],i,!1),mc}function yc(e,t,n,r,i,s,l){const h=Ze(),g=da(h,t,n,r,i,s);return g!==un&&Fi(Vt(),Pn(),h,e,g,h[11],l,!1),yc}function Vh(e,t,n,r,i){const s=e[n+1],l=null===t;let h=r?ms(s):co(s),g=!1;for(;0!==h&&(!1===g||l);){const M=e[h+1];Y_(e[h],t)&&(g=!0,e[h+1]=r?Bu(M):Fu(M)),h=r?ms(M):co(M)}g&&(e[n+1]=r?Fu(s):Bu(s))}function Y_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ur(e,t)>=0}const Rr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zh(e){return e.substring(Rr.key,Rr.keyEnd)}function Wh(e,t){const n=Rr.textEnd;return n===t?-1:(t=Rr.keyEnd=function X_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Rr.key=t,n),va(e,t,n))}function va(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function vc(e,t,n){return ys(e,t,n,!1),vc}function _c(e,t){return ys(e,t,null,!0),_c}function Qh(e){vs(On,Vs,e,!0)}function Vs(e,t){for(let n=function q_(e){return function Kh(e){Rr.key=0,Rr.keyEnd=0,Rr.value=0,Rr.valueEnd=0,Rr.textEnd=e.length}(e),Wh(e,va(e,0,Rr.textEnd))}(t);n>=0;n=Wh(t,n))On(e,zh(t),!0)}function ys(e,t,n,r){const i=Ze(),s=Vt(),l=Zr(2);s.firstUpdatePass&&Jh(s,e,l,r),t!==un&&Jr(i,l,t)&&ep(s,s.data[lr()],i,i[11],e,i[l+1]=function uD(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(lo(e)))),e}(t,n),r,l)}function vs(e,t,n,r){const i=Vt(),s=Zr(2);i.firstUpdatePass&&Jh(i,null,s,r);const l=Ze();if(n!==un&&Jr(l,s,n)){const h=i.data[lr()];if(np(h,r)&&!qh(i,s)){let g=r?h.classesWithoutHost:h.stylesWithoutHost;null!==g&&(n=te(g,n||"")),uc(i,h,l,n,r)}else!function lD(e,t,n,r,i,s,l,h){i===un&&(i=st);let g=0,T=0,M=0<i.length?i[0]:null,k=0<s.length?s[0]:null;for(;null!==M||null!==k;){const ce=g<i.length?i[g+1]:void 0,Pe=T<s.length?s[T+1]:void 0;let at,qe=null;M===k?(g+=2,T+=2,ce!==Pe&&(qe=k,at=Pe)):null===k||null!==M&&M<k?(g+=2,qe=M):(T+=2,qe=k,at=Pe),null!==qe&&ep(e,t,n,r,qe,at,l,h),M=g<i.length?i[g]:null,k=T<s.length?s[T]:null}}(i,h,l,l[11],l[s+1],l[s+1]=function aD(e,t,n){if(null==n||""===n)return st;const r=[],i=lo(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}function qh(e,t){return t>=e.expandoStartIndex}function Jh(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[lr()],l=qh(e,n);np(s,r)&&null===t&&!l&&(t=!1),t=function rD(e,t,n,r){const i=os(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Va(n=Dc(null,e,t,n,r),t.attrs,r),s=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==i)if(n=Dc(i,e,t,n,r),null===s){let g=function iD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==co(r))return e[ms(r)]}(e,t,r);void 0!==g&&Array.isArray(g)&&(g=Dc(null,e,t,g[1],r),g=Va(g,t.attrs,r),function sD(e,t,n,r){e[ms(n?t.classBindings:t.styleBindings)]=r}(e,t,r,g))}else s=function oD(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Va(r,e[s].hostAttrs,n);return Va(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function K_(e,t,n,r,i,s){let l=s?t.classBindings:t.styleBindings,h=ms(l),g=co(l);e[r]=n;let M,T=!1;if(Array.isArray(n)){const k=n;M=k[1],(null===M||ur(k,M)>0)&&(T=!0)}else M=n;if(i)if(0!==g){const ce=ms(e[h+1]);e[r+1]=hl(ce,h),0!==ce&&(e[ce+1]=Lu(e[ce+1],r)),e[h+1]=function Uv(e,t){return 131071&e|t<<17}(e[h+1],r)}else e[r+1]=hl(h,0),0!==h&&(e[h+1]=Lu(e[h+1],r)),h=r;else e[r+1]=hl(g,0),0===h?h=r:e[g+1]=Lu(e[g+1],r),g=r;T&&(e[r+1]=Fu(e[r+1])),Vh(e,M,r,!0),Vh(e,M,r,!1),function Z_(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&ur(s,t)>=0&&(n[r+1]=Bu(n[r+1]))}(t,M,e,r,s),l=hl(h,g),s?t.classBindings=l:t.styleBindings=l}(i,s,t,n,l,r)}}function Dc(e,t,n,r,i){let s=null;const l=n.directiveEnd;let h=n.directiveStylingLast;for(-1===h?h=n.directiveStart:h++;h<l&&(s=t[h],r=Va(r,s.hostAttrs,i),s!==e);)h++;return null!==e&&(n.directiveStylingLast=h),r}function Va(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const l=t[s];"number"==typeof l?i=l:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),On(e,l,!!n||t[++s]))}return void 0===e?null:e}function ep(e,t,n,r,i,s,l,h){if(!(3&t.type))return;const g=e.data,T=g[h+1];Sl(function Vf(e){return 1==(1&e)}(T)?tp(g,t,n,i,co(T),l):void 0)||(Sl(s)||function $f(e){return 2==(2&e)}(T)&&(s=tp(g,null,n,i,h,l)),function Jy(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=-1===r.indexOf("-")?void 0:Bs.DashCase;null==i?e.removeStyle(n,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Bs.Important),e.setStyle(n,r,i,s))}}(r,l,Kn(lr(),n),i,s))}function tp(e,t,n,r,i,s){const l=null===t;let h;for(;i>0;){const g=e[i],T=Array.isArray(g),M=T?g[1]:g,k=null===M;let ce=n[i+1];ce===un&&(ce=k?st:void 0);let Pe=k?Ni(ce,r):M===r?ce:void 0;if(T&&!Sl(Pe)&&(Pe=Ni(g,r)),Sl(Pe)&&(h=Pe,l))return h;const qe=e[i+1];i=l?ms(qe):co(qe)}if(null!==t){let g=s?t.residualClasses:t.residualStyles;null!=g&&(h=Ni(g,r))}return h}function Sl(e){return void 0!==e}function np(e,t){return 0!=(e.flags&(t?16:32))}function rp(e,t=""){const n=Ze(),r=Vt(),i=e+22,s=r.firstCreatePass?aa(r,i,1,t,null):r.data[i],l=n[i]=function fu(e,t){return e.createText(t)}(n[11],t);ul(r,n,l,s),Gr(s,!1)}function Ec(e){return Il("",e,""),Ec}function Il(e,t,n){const r=Ze(),i=ca(r,e,t,n);return i!==un&&fo(r,lr(),i),Il}function Cc(e,t,n,r,i){const s=Ze(),l=da(s,e,t,n,r,i);return l!==un&&fo(s,lr(),l),Cc}function dp(e,t,n){vs(On,Vs,ca(Ze(),e,t,n),!0)}function bc(e,t,n){const r=Ze();return Jr(r,Kr(),t)&&Fi(Vt(),Pn(),r,e,t,r[11],n,!0),bc}function wc(e,t,n){const r=Ze();if(Jr(r,Kr(),t)){const s=Vt(),l=Pn();Fi(s,l,r,e,t,fh(os(s.data),l,r),n,!0)}return wc}const Uo=void 0;var AD=["en",[["a","p"],["AM","PM"],Uo],[["AM","PM"],Uo,Uo],[["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"]],Uo,[["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"]],Uo,[["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}",Uo,"{1} 'at' {0}",Uo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ID(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let _a={};function Tc(e){const t=function MD(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Cp(t);if(n)return n;const r=t.split("-")[0];if(n=Cp(r),n)return n;if("en"===r)return AD;throw new xe(701,!1)}function Ep(e){return Tc(e)[Wt.PluralCase]}function Cp(e){return e in _a||(_a[e]=Se.ng&&Se.ng.common&&Se.ng.common.locales&&Se.ng.common.locales[e]),_a[e]}var Wt=(()=>((Wt=Wt||{})[Wt.LocaleId=0]="LocaleId",Wt[Wt.DayPeriodsFormat=1]="DayPeriodsFormat",Wt[Wt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Wt[Wt.DaysFormat=3]="DaysFormat",Wt[Wt.DaysStandalone=4]="DaysStandalone",Wt[Wt.MonthsFormat=5]="MonthsFormat",Wt[Wt.MonthsStandalone=6]="MonthsStandalone",Wt[Wt.Eras=7]="Eras",Wt[Wt.FirstDayOfWeek=8]="FirstDayOfWeek",Wt[Wt.WeekendRange=9]="WeekendRange",Wt[Wt.DateFormat=10]="DateFormat",Wt[Wt.TimeFormat=11]="TimeFormat",Wt[Wt.DateTimeFormat=12]="DateTimeFormat",Wt[Wt.NumberSymbols=13]="NumberSymbols",Wt[Wt.NumberFormats=14]="NumberFormats",Wt[Wt.CurrencyCode=15]="CurrencyCode",Wt[Wt.CurrencySymbol=16]="CurrencySymbol",Wt[Wt.CurrencyName=17]="CurrencyName",Wt[Wt.Currencies=18]="Currencies",Wt[Wt.Directionality=19]="Directionality",Wt[Wt.PluralCase=20]="PluralCase",Wt[Wt.ExtraData=21]="ExtraData",Wt))();const Da="en-US";let bp=Da;function Ac(e,t,n,r,i){if(e=de(e),Array.isArray(e))for(let s=0;s<e.length;s++)Ac(e[s],t,n,r,i);else{const s=Vt(),l=Ze();let h=Bo(e)?e:de(e.provide),g=Af(e);const T=Bn(),M=1048575&T.providerIndexes,k=T.directiveStart,ce=T.providerIndexes>>20;if(Bo(e)||!e.multi){const Pe=new cs(g,i,oa),qe=Pc(h,t,i?M:M+ce,k);-1===qe?(Ki(xi(T,l),s,h),Mc(s,e,t.length),t.push(h),T.directiveStart++,T.directiveEnd++,i&&(T.providerIndexes+=1048576),n.push(Pe),l.push(Pe)):(n[qe]=Pe,l[qe]=Pe)}else{const Pe=Pc(h,t,M+ce,k),qe=Pc(h,t,M,M+ce),at=Pe>=0&&n[Pe],Ct=qe>=0&&n[qe];if(i&&!Ct||!i&&!at){Ki(xi(T,l),s,h);const Rt=function I0(e,t,n,r,i){const s=new cs(e,n,oa);return s.multi=[],s.index=t,s.componentProviders=0,Zp(s,i,r&&!n),s}(i?S0:T0,n.length,i,r,g);!i&&Ct&&(n[qe].providerFactory=Rt),Mc(s,e,t.length,0),t.push(h),T.directiveStart++,T.directiveEnd++,i&&(T.providerIndexes+=1048576),n.push(Rt),l.push(Rt)}else Mc(s,e,Pe>-1?Pe:qe,Zp(n[i?qe:Pe],g,!i&&r));!i&&r&&Ct&&n[qe].componentProviders++}}}function Mc(e,t,n,r){const i=Bo(t),s=function yv(e){return!!e.useClass}(t);if(i||s){const g=(s?de(t.useClass):t).prototype.ngOnDestroy;if(g){const T=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const M=T.indexOf(n);-1===M?T.push(n,[r,g]):T[M+1].push(r,g)}else T.push(n,g)}}}function Zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Pc(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function T0(e,t,n,r){return Oc(this.multi,[])}function S0(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const l=this.providerFactory.componentProviders,h=Yi(n,n[1],this.providerFactory.index,r);s=h.slice(0,l),Oc(i,s);for(let g=l;g<h.length;g++)s.push(h[g])}else s=[],Oc(i,s);return s}function Oc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Yp(e,t=[]){return n=>{n.providersResolver=(r,i)=>function w0(e,t,n){const r=Vt();if(r.firstCreatePass){const i=ir(e);Ac(n,r.data,r.blueprint,i,!0),Ac(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class M0{resolveComponentFactory(t){throw function A0(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Za=(()=>{class e{}return e.NULL=new M0,e})();class $o{}class qp{}class Jp{}function O0(){return Ca(Bn(),Ze())}function Ca(e,t){return new Ya(Dn(e,t))}let Ya=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=O0,e})();function R0(e){return e instanceof Ya?e.nativeElement:e}class Xp{}let x0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function N0(){const e=Ze(),n=qn(Bn().index,e);return(xn(n)?n:e)[11]}(),e})(),k0=(()=>{class e{}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:()=>null}),e})();class eg{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const tg=new eg("14.0.5"),Rc={};function Rl(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(ht(s)),$n(s))for(let h=10;h<s.length;h++){const g=s[h],T=g[1].firstChild;null!==T&&Rl(g[1],g,T,r)}const l=n.type;if(8&l)Rl(e,t,n.child,r);else if(32&l){const h=uu(n,t);let g;for(;g=h();)r.push(g)}else if(16&l){const h=af(t,n);if(Array.isArray(h))r.push(...h);else{const g=Ba(t[16]);Rl(g[1],g,h,r,!0)}}n=i?n.projectionNext:n.next}return r}class Qa{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Rl(n,t,n.firstChild,[])}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($n(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(pu(t,r),pn(n,r))}this._attachedToViewContainer=!1}Qd(this._lView[1],this._lView)}onDestroy(t){th(this._lView[1],this._lView,null,t)}markForCheck(){ec(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function nc(e,t,n){const r=t[10];r.begin&&r.begin();try{Ha(e,t,e.template,n)}catch(i){throw hh(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new xe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $y(e,t){ja(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new xe(902,!1);this._appRef=t}}class F0 extends Qa{constructor(t){super(t),this._view=t}detectChanges(){uh(this._view)}checkNoChanges(){}get context(){return null}}class xc extends Za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ee(t);return new Nc(n,this.ngModule)}}function ng(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class B0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const i=this.injector.get(t,Rc,r);return i!==Rc||n===Rc?i:this.parentInjector.get(t,n,r)}}class Nc extends Jp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function lv(e){return e.map(av).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ng(this.componentDef.inputs)}get outputs(){return ng(this.componentDef.outputs)}create(t,n,r,i){let s=(i=i||this.ngModule)instanceof ra?i:i?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const l=s?new B0(t,s):t,h=l.get(Xp,null);if(null===h)throw new xe(407,!1);const g=l.get(k0,null),T=h.createRenderer(null,this.componentDef),M=this.componentDef.selectors[0][0]||"div",k=r?function n_(e,t,n){return e.selectRootElement(t,n===Ke.ShadowDom)}(T,r,this.componentDef.encapsulation):hu(h.createRenderer(null,this.componentDef),M,function L0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(M)),ce=this.componentDef.onPush?288:272,Pe=function I_(e,t){return{components:[],scheduler:e||Ry,clean:w_,playerHandler:t||null,flags:0}}(),qe=Qu(0,null,null,1,0,null,null,null,null,null),at=ml(null,qe,Pe,ce,null,null,h,T,g,l,null);let Ct,Rt;Wi(at);try{const Qt=function T_(e,t,n,r,i,s){const l=n[1];n[22]=e;const g=aa(l,22,2,"#host",null),T=g.mergedAttrs=t.hostAttrs;null!==T&&(_l(g,T,!0),null!==e&&(ui(i,e,T),null!==g.classes&&_u(i,e,g.classes),null!==g.styles&&cf(i,e,g.styles)));const M=r.createRenderer(e,t),k=ml(n,eh(t),null,t.onPush?32:16,n[22],g,r,M,s||null,null,null);return l.firstCreatePass&&(Ki(xi(g,n),l,t.type),sh(l,g),oh(g,n.length,1)),vl(n,k),n[22]=k}(k,this.componentDef,at,h,T);if(k)if(r)ui(T,k,["ng-version",tg.full]);else{const{attrs:et,classes:Ht}=function uv(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!gs(i))break;i=s}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);et&&ui(T,k,et),Ht&&Ht.length>0&&_u(T,k,Ht.join(" "))}if(Rt=jr(qe,22),void 0!==n){const et=Rt.projection=[];for(let Ht=0;Ht<this.ngContentSelectors.length;Ht++){const En=n[Ht];et.push(null!=En?Array.from(En):null)}}Ct=function S_(e,t,n,r,i){const s=n[1],l=function l_(e,t,n){const r=Bn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ah(e,r,t,la(e,t,1,null),n));const i=Yi(t,e,r.directiveStart,r);qr(i,t);const s=Dn(r,t);return s&&qr(s,t),i}(s,n,t);if(r.components.push(l),e[8]=l,null!==i)for(const g of i)g(l,t);if(t.contentQueries){const g=Bn();t.contentQueries(1,l,g.directiveStart)}const h=Bn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Mi(h.index),rh(n[1],h,0,h.directiveStart,h.directiveEnd,t),ih(t,l)),l}(Qt,this.componentDef,at,Pe,[A_]),yl(qe,at,null)}finally{Ks()}return new H0(this.componentType,Ct,Ca(Rt,at),at,Rt)}}class H0 extends class P0{}{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new F0(i),this.componentType=t}get injector(){return new a(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function U0(e,t){return new rg(e,t??null)}class rg extends $o{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new xc(this);const r=Kt(t);this._bootstrapComponents=uo(r.bootstrap),this._r3Injector=Pf(t,n,[{provide:$o,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this.get(t)}get(t,n=js.THROW_IF_NOT_FOUND,r=Mt.Default){return t===js||t===$o||t===bu?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class kc extends qp{constructor(t){super(),this.moduleType=t}create(t){return new rg(this.moduleType,t)}}class $0 extends $o{constructor(t,n,r){super(),this.componentFactoryResolver=new xc(this),this.instance=null;const i=new If([...t,{provide:$o,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],n||Su(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Fc(e,t=null,n=null){return new $0(e,t,n).injector}function cg(e,t,n){const r=dr()+e,i=Ze();return i[r]===un?Us(i,r,n?t.call(n):t()):$a(i,r)}function dg(e,t,n,r){return mg(Ze(),dr(),e,t,n,r)}function fg(e,t,n,r,i){return yg(Ze(),dr(),e,t,n,r,i)}function hg(e,t,n,r,i,s){return function vg(e,t,n,r,i,s,l,h){const g=t+n;return function El(e,t,n,r,i){const s=Ho(e,t,n,r);return Jr(e,t+2,i)||s}(e,g,i,s,l)?Us(e,g+3,h?r.call(h,i,s,l):r(i,s,l)):qa(e,g+3)}(Ze(),dr(),e,t,n,r,i,s)}function pg(e,t,n,r,i,s,l){return function _g(e,t,n,r,i,s,l,h,g){const T=t+n;return qi(e,T,i,s,l,h)?Us(e,T+4,g?r.call(g,i,s,l,h):r(i,s,l,h)):qa(e,T+4)}(Ze(),dr(),e,t,n,r,i,s,l)}function gg(e,t,n,r,i,s,l,h){const g=dr()+e,T=Ze(),M=qi(T,g,n,r,i,s);return Jr(T,g+4,l)||M?Us(T,g+5,h?t.call(h,n,r,i,s,l):t(n,r,i,s,l)):$a(T,g+5)}function qa(e,t){const n=e[t];return n===un?void 0:n}function mg(e,t,n,r,i,s){const l=t+n;return Jr(e,l,i)?Us(e,l+1,s?r.call(s,i):r(i)):qa(e,l+1)}function yg(e,t,n,r,i,s,l){const h=t+n;return Ho(e,h,i,s)?Us(e,h+2,l?r.call(l,i,s):r(i,s)):qa(e,h+2)}function Eg(e,t){const n=Vt();let r;const i=e+22;n.firstCreatePass?(r=function rE(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 s=r.factory||(r.factory=Ar(r.type)),l=Rn(oa);try{const h=fs(!1),g=s();return fs(h),function $_(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ze(),i,g),g}finally{Rn(l)}}function Cg(e,t,n){const r=e+22,i=Ze(),s=Vn(i,r);return Ja(i,r)?mg(i,dr(),t,s.transform,n,s):s.transform(n)}function bg(e,t,n,r){const i=e+22,s=Ze(),l=Vn(s,i);return Ja(s,i)?yg(s,dr(),t,l.transform,n,r,l):l.transform(n,r)}function Ja(e,t){return e[1].data[t].pure}function Bc(e){return t=>{setTimeout(e,void 0,t)}}const zs=class aE extends m.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,s=n||(()=>null),l=r;if(t&&"object"==typeof t){const g=t;i=g.next?.bind(g),s=g.error?.bind(g),l=g.complete?.bind(g)}this.__isAsync&&(s=Bc(s),i&&(i=Bc(i)),l&&(l=Bc(l)));const h=super.subscribe({next:i,error:s,complete:l});return t instanceof c.w0&&t.add(h),h}};function lE(){return this._results[jo()]()}class xl{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=jo(),r=xl.prototype;r[n]||(r[n]=lE)}get changes(){return this._changes||(this._changes=new zs)}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=mt(t);(this._changesDetected=!function xs(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==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 Xa=(()=>{class e{}return e.__NG_ELEMENT_ID__=dE,e})();const uE=Xa,cE=class extends uE{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,i=ml(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);i[17]=this._declarationLView[this._declarationTContainer.index];const l=this._declarationLView[19];return null!==l&&(i[19]=l.createEmbeddedView(r)),yl(r,i,t),new Qa(i)}};function dE(){return Nl(Bn(),Ze())}function Nl(e,t){return 4&e.type?new cE(t,e,Ca(e,t)):null}let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=fE,e})();function fE(){return Sg(Bn(),Ze())}const hE=kl,wg=class extends hE{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ca(this._hostTNode,this._hostLView)}get injector(){return new a(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ms(this._hostTNode,this._hostLView);if(Do(t)){const n=ci(t,this._hostLView),r=Oi(t);return new a(n[1].data[r+8],n)}return new a(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Tg(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const l=t.createEmbeddedView(n||{},s);return this.insert(l,i),l}createComponent(t,n,r,i,s){const l=t&&!function _r(e){return"function"==typeof e}(t);let h;if(l)h=n;else{const k=n||{};h=k.index,r=k.injector,i=k.projectableNodes,s=k.environmentInjector||k.ngModuleRef}const g=l?t:new Nc(Ee(t)),T=r||this.parentInjector;if(!s&&null==g.ngModule){const ce=(l?T:this.parentInjector).get(ra,null);ce&&(s=ce)}const M=g.create(T,i,void 0,s);return this.insert(M.hostView,h),M}insert(t,n){const r=t._lView,i=r[1];if(function E(e){return $n(e[3])}(r)){const M=this.indexOf(t);if(-1!==M)this.detach(M);else{const k=r[3],ce=new wg(k,k[6],k[3]);ce.detach(ce.indexOf(t))}}const s=this._adjustIndex(n),l=this._lContainer;!function zy(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r<s-10?(t[4]=n[i],Ut(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const l=t[17];null!==l&&n!==l&&function Wy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(l,t);const h=t[19];null!==h&&h.insertView(e),t[2]|=64}(i,r,l,s);const h=yu(s,l),g=r[11],T=ll(g,l[7]);return null!==T&&function Uy(e,t,n,r,i,s){r[0]=i,r[6]=t,ja(e,r,n,1,i,s)}(i,l[6],g,r,T,h),t.attachToViewContainerRef(),Ut(jc(l),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Tg(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=pu(this._lContainer,n);r&&(pn(jc(this._lContainer),n),Qd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=pu(this._lContainer,n);return r&&null!=pn(jc(this._lContainer),n)?new Qa(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Tg(e){return e[8]}function jc(e){return e[8]||(e[8]=[])}function Sg(e,t){let n;const r=t[e.index];if($n(r))n=r;else{let i;if(8&e.type)i=ht(r);else{const s=t[11];i=s.createComment("");const l=Dn(e,t);Lo(s,ll(s,l),i,function Yy(e,t){return e.nextSibling(t)}(s,l),!1)}t[e.index]=n=lh(r,t,i,e),vl(t,n)}return new wg(n,e,t)}class Hc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Hc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Uc{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 s=0;s<r;s++){const l=n.getByIndex(s);i.push(this.queries[l.indexInDeclarationView].clone())}return new Uc(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!==kg(t,n).matches&&this.queries[n].setDirty()}}class Ig{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class $c{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,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new $c(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 Vc{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 Vc(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 s=r[i];this.matchTNodeWithReadOption(t,n,mE(n,s)),this.matchTNodeWithReadOption(t,n,Zi(n,t,s,!1,!1))}else r===Xa?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Zi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Ya||i===kl||i===Xa&&4&n.type)this.addMatch(n.index,-2);else{const s=Zi(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function mE(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 vE(e,t,n,r){return-1===n?function yE(e,t){return 11&e.type?Ca(e,t):4&e.type?Nl(e,t):null}(t,e):-2===n?function _E(e,t,n){return n===Ya?Ca(t,e):n===Xa?Nl(t,e):n===kl?Sg(t,e):void 0}(e,t,r):Yi(e,e[1],n,t)}function Ag(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const s=e.data,l=n.matches,h=[];for(let g=0;g<l.length;g+=2){const T=l[g];h.push(T<0?null:vE(t,s[T],l[g+1],n.metadata.read))}i.matches=h}return i.matches}function zc(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const l=Ag(e,t,i,n);for(let h=0;h<s.length;h+=2){const g=s[h];if(g>0)r.push(l[h/2]);else{const T=s[h+1],M=t[-g];for(let k=10;k<M.length;k++){const ce=M[k];ce[17]===ce[3]&&zc(ce[1],ce,T,r)}if(null!==M[9]){const k=M[9];for(let ce=0;ce<k.length;ce++){const Pe=k[ce];zc(Pe[1],Pe,T,r)}}}}}return r}function Mg(e){const t=Ze(),n=Vt(),r=mo();as(r+1);const i=kg(n,r);if(e.dirty&&D(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?zc(n,t,r,[]):Ag(n,t,i,r);e.reset(s,R0),e.notifyOnChanges()}return!0}return!1}function Pg(e,t,n){const r=Vt();r.firstCreatePass&&(Ng(r,new Ig(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),xg(r,Ze(),t)}function Og(e,t,n,r){const i=Vt();if(i.firstCreatePass){const s=Bn();Ng(i,new Ig(t,n,r),s.index),function EE(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)}xg(i,Ze(),n)}function Rg(){return function DE(e,t){return e[19].queries[t].queryList}(Ze(),mo())}function xg(e,t,n){const r=new xl(4==(4&n));th(e,t,r,r.destroy),null===t[19]&&(t[19]=new Uc),t[19].queries.push(new Hc(r))}function Ng(e,t,n){null===e.queries&&(e.queries=new $c),e.queries.track(new Vc(t,n))}function kg(e,t){return e.queries.getByIndex(t)}function Fg(e,t){return Nl(e,t)}function wa(e){const t=Ee(e)||dt(e)||At(e);return null!==t&&t.standalone}function Ll(...e){}const tm=new u("Application Initializer");let Bl=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ll,this.reject=Ll,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 s=this.appInits[i]();if(fc(s))n.push(s);else if(Mh(s)){const l=new Promise((h,g)=>{s.subscribe({complete:h,error:g})});n.push(l)}}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)(hr(tm,8))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const nm=new u("AppId",{providedIn:"root",factory:function rm(){return`${Yc()}${Yc()}${Yc()}`}});function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const im=new u("Platform Initializer"),UE=new u("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),sm=new u("appBootstrapListener"),$E=new u("AnimationModuleType");let VE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const jl=new u("LocaleId",{providedIn:"root",factory:()=>Gl(jl,Mt.Optional|Mt.SkipSelf)||function zE(){return typeof $localize<"u"&&$localize.locale||Da}()}),WE=new u("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class GE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let KE=(()=>{class e{compileModuleSync(n){return new kc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=uo(Kt(n).declarations).reduce((l,h)=>{const g=Ee(h);return g&&l.push(new Nc(g)),l},[]);return new GE(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const QE=(()=>Promise.resolve(0))();function Qc(e){typeof Zone>"u"?QE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Li{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zs(!1),this.onMicrotaskEmpty=new zs(!1),this.onStable=new zs(!1),this.onError=new zs(!1),typeof Zone>"u")throw new xe(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 qE(){let e=Se.requestAnimationFrame,t=Se.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 eC(e){const t=()=>{!function XE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jc(e),e.isCheckStableRunning=!0,qc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,l,h)=>{try{return lm(e),n.invokeTask(i,s,l,h)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,r,i,s,l,h,g)=>{try{return lm(e),n.invoke(i,s,l,h,g)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Jc(e),qc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Li.isInAngularZone())throw new xe(909,!1)}static assertNotInAngularZone(){if(Li.isInAngularZone())throw new xe(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,l=s.scheduleEventTask("NgZoneEvent: "+i,t,JE,Ll,Ll);try{return s.runTask(l,n,r)}finally{s.cancelTask(l)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const JE={};function qc(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 Jc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function lm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,qc(e)}class tC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zs,this.onMicrotaskEmpty=new zs,this.onStable=new zs,this.onError=new zs}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 cm=new u(""),dm=new u("");let Xc,nC=(()=>{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,Xc||(function rC(e){Xc=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:()=>{Li.assertNotInAngularZone(),Qc(()=>{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())Qc(()=>{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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(l=>l.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,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)(hr(Li),hr(fm),hr(dm))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})(),fm=(()=>{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 Xc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Io=null;const hm=new u("AllowMultipleToken"),ed=new u("PlatformDestroyListeners");class oC{constructor(t,n){this.name=t,this.token=n}}function gm(e,t,n=[]){const r=`Platform: ${t}`,i=new u(r);return(s=[])=>{let l=td();if(!l||l.injector.get(hm,!1)){const h=[...n,...s,{provide:i,useValue:!0}];e?e(h):function aC(e){if(Io&&!Io.get(hm,!1))throw new xe(400,!1);Io=e;const t=e.get(ym);(function pm(e){const t=e.get(im,null);t&&t.forEach(n=>n())})(e)}(function mm(e=[],t){return js.create({name:t,providers:[{provide:wu,useValue:"platform"},{provide:ed,useValue:new Set([()=>Io=null])},...e]})}(h,r))}return function uC(e){const t=td();if(!t)throw new xe(401,!1);return t}()}}function td(){return Io?.get(ym)??null}let ym=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function cC(e,t){let n;return n="noop"===e?new tC:("zone.js"===e?void 0:e)||new Li(t),n}(r?.ngZone,function vm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),s=[{provide:Li,useValue:i}];return i.run(()=>{const l=js.create({providers:s,parent:this.injector,name:n.moduleType.name}),h=n.create(l),g=h.injector.get(Fa,null);if(!g)throw new xe(402,!1);return i.runOutsideAngular(()=>{const T=i.onError.subscribe({next:M=>{g.handleError(M)}});h.onDestroy(()=>{Ul(this._modules,h),T.unsubscribe()})}),function _m(e,t,n){try{const r=n();return fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(g,i,()=>{const T=h.injector.get(Bl);return T.runInitializers(),T.donePromise.then(()=>(function wp(e){Bt(e,"Expected localeId to be defined"),"string"==typeof e&&(bp=e.toLowerCase().replace(/_/g,"-"))}(h.injector.get(jl,Da)||Da),this._moduleDoBootstrap(h),h))})})}bootstrapModule(n,r=[]){const i=Dm({},r);return function iC(e,t,n){const r=new kc(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(Hl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new xe(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 xe(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ed,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)(hr(js))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Dm(e,t){return Array.isArray(t)?t.reduce(Dm,e):{...e,...t}}let Hl=(()=>{class e{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 s=new F.y(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),l=new F.y(h=>{let g;this._zone.runOutsideAngular(()=>{g=this._zone.onStable.subscribe(()=>{Li.assertNotInAngularZone(),Qc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{Li.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{g.unsubscribe(),T.unsubscribe()}});this.isStable=(0,z.T)(s,l.pipe((0,U.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Jp;if(!this._injector.get(Bl).done)throw!i&&wa(n),new xe(405,false);let l;l=i?n:this._injector.get(Za).resolveComponentFactory(n),this.componentTypes.push(l.componentType);const h=function sC(e){return e.isBoundToModule}(l)?void 0:this._injector.get($o),T=l.create(js.NULL,[],r||l.selector,h),M=T.location.nativeElement,k=T.injector.get(cm,null);return k?.registerApplication(M),T.onDestroy(()=>{this.detachView(T.hostView),Ul(this.components,T),k?.unregisterApplication(M)}),this._loadComponent(T),T}tick(){if(this._runningTick)throw new xe(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;Ul(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sm,[]).concat(this._bootstrapListeners).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),()=>Ul(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new xe(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)(hr(Li),hr(js),hr(Fa))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ul(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Cm=!0,bm=!1;function fC(){return bm=!0,Cm}function hC(){if(bm)throw new Error("Cannot enable prod mode after platform setup.");Cm=!1}let pC=(()=>{class e{}return e.__NG_ELEMENT_ID__=gC,e})();function gC(e){return function mC(e,t,n){if(br(e)&&!n){const r=qn(e.index,t);return new Qa(r,r)}return 47&e.type?new Qa(t[16],t):null}(Bn(),Ze(),16==(16&e))}class Im{constructor(){}supports(t){return Ua(t)}create(t){return new CC(t)}}const EC=(e,t)=>t;class CC{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||EC}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,s=null;for(;n||r;){const l=!r||n&&n.currentIndex<Mm(r,i,s)?n:r,h=Mm(l,i,s),g=l.currentIndex;if(l===r)i--,r=r._nextRemoved;else if(n=n._next,null==l.previousIndex)i++;else{s||(s=[]);const T=h-i,M=g-i;if(T!=M){for(let ce=0;ce<T;ce++){const Pe=ce<s.length?s[ce]:s[ce]=0,qe=Pe+ce;M<=qe&&qe<T&&(s[ce]=Pe+1)}s[l.previousIndex]=M-T}}h!==g&&t(l,h,g)}}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=[]),!Ua(t))throw new xe(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,l,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let h=0;h<this.length;h++)s=t[h],l=this._trackByFn(h,s),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,s,l,h)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,l,h),r=!0),n=n._next}else i=0,function L_(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[jo()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,h=>{l=this._trackByFn(i,h),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,h,l,i)),Object.is(n.item,h)||this._addIdentityChange(n,h)):(n=this._mismatch(n,h,l,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 s;return null===t?s=this._itTail:(s=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,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new bC(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,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,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._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 Am),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 Am),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 bC{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 wC{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 Am{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new wC,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 Mm(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 Pm{constructor(){}supports(t){return t instanceof Map||oc(t)}create(){return new TC}}class TC{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||oc(t)))throw new xe(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 s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),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 s=i._prev,l=i._next;return s&&(s._next=l),l&&(l._prev=s),i._next=null,i._prev=null,i}const r=new SC(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 SC{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 Om(){return new od([new Im])}let od=(()=>{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||Om()),deps:[[e,new Ft,new Xe]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new xe(901,!1)}}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:Om}),e})();function Rm(){return new ad([new Pm])}let ad=(()=>{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||Rm()),deps:[[e,new Ft,new Xe]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new xe(901,!1)}}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:Rm}),e})();const MC=gm(null,"core",[]);let PC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(hr(Hl))},e.\u0275mod=rn({type:e}),e.\u0275inj=Fe({}),e})();function OC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},1481:(it,De,b)=>{b.d(De,{Dx:()=>fe,H7:()=>Kt,b2:()=>St,q6:()=>Mt,se:()=>ve});var m=b(6895),c=b(4650);class F extends m.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class z extends F{static makeCurrent(){(0,m.HT)(new z)}onAndCancel(G,j,he){return G.addEventListener(j,he,!1),()=>{G.removeEventListener(j,he,!1)}}dispatchEvent(G,j){G.dispatchEvent(j)}remove(G){G.parentNode&&G.parentNode.removeChild(G)}createElement(G,j){return(j=j||this.getDefaultDocument()).createElement(G)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(G){return G.nodeType===Node.ELEMENT_NODE}isShadowRoot(G){return G instanceof DocumentFragment}getGlobalEventTarget(G,j){return"window"===j?window:"document"===j?G:"body"===j?G.body:null}getBaseHref(G){const j=function J(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==j?null:function ie(Q){ee=ee||document.createElement("a"),ee.setAttribute("href",Q);const G=ee.pathname;return"/"===G.charAt(0)?G:`/${G}`}(j)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(G){return(0,m.Mx)(document.cookie,G)}}let ee,U=null;const te=new c.OlP("TRANSITION_ID"),L=[{provide:c.ip1,useFactory:function R(Q,G,j){return()=>{j.get(c.CZH).donePromise.then(()=>{const he=(0,m.q)(),Qe=G.querySelectorAll(`style[ng-transition="${Q}"]`);for(let yt=0;yt<Qe.length;yt++)he.remove(Qe[yt])})}},deps:[te,m.K0,c.zs3],multi:!0}];let je=(()=>{class Q{build(){return new XMLHttpRequest}}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Oe=new c.OlP("EventManagerPlugins");let xe=(()=>{class Q{constructor(j,he){this._zone=he,this._eventNameToPlugin=new Map,j.forEach(Qe=>Qe.manager=this),this._plugins=j.slice().reverse()}addEventListener(j,he,Qe){return this._findPluginFor(he).addEventListener(j,he,Qe)}addGlobalEventListener(j,he,Qe){return this._findPluginFor(he).addGlobalEventListener(j,he,Qe)}getZone(){return this._zone}_findPluginFor(j){const he=this._eventNameToPlugin.get(j);if(he)return he;const Qe=this._plugins;for(let yt=0;yt<Qe.length;yt++){const Zt=Qe[yt];if(Zt.supports(j))return this._eventNameToPlugin.set(j,Zt),Zt}throw new Error(`No event manager plugin found for event ${j}`)}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(Oe),c.LFG(c.R0b))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();class Be{constructor(G){this._doc=G}addGlobalEventListener(G,j,he){const Qe=(0,m.q)().getGlobalEventTarget(this._doc,G);if(!Qe)throw new Error(`Unsupported event target ${Qe} for event ${j}`);return this.addEventListener(Qe,j,he)}}let Ie=(()=>{class Q{constructor(){this._stylesSet=new Set}addStyles(j){const he=new Set;j.forEach(Qe=>{this._stylesSet.has(Qe)||(this._stylesSet.add(Qe),he.add(Qe))}),this.onStylesAdded(he)}onStylesAdded(j){}getAllStyles(){return Array.from(this._stylesSet)}}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})(),Te=(()=>{class Q extends Ie{constructor(j){super(),this._doc=j,this._hostNodes=new Map,this._hostNodes.set(j.head,[])}_addStylesToHost(j,he,Qe){j.forEach(yt=>{const Zt=this._doc.createElement("style");Zt.textContent=yt,Qe.push(he.appendChild(Zt))})}addHost(j){const he=[];this._addStylesToHost(this._stylesSet,j,he),this._hostNodes.set(j,he)}removeHost(j){const he=this._hostNodes.get(j);he&&he.forEach(Je),this._hostNodes.delete(j)}onStylesAdded(j){this._hostNodes.forEach((he,Qe)=>{this._addStylesToHost(j,Qe,he)})}ngOnDestroy(){this._hostNodes.forEach(j=>j.forEach(Je))}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();function Je(Q){(0,m.q)().remove(Q)}const ke={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,K="%COMP%",le=`_nghost-${K}`,ue=`_ngcontent-${K}`;function H(Q,G,j){for(let he=0;he<G.length;he++){let Qe=G[he];Array.isArray(Qe)?H(Q,Qe,j):(Qe=Qe.replace(Ce,Q),j.push(Qe))}return j}function ne(Q){return G=>{if("__ngUnwrap__"===G)return Q;!1===Q(G)&&(G.preventDefault(),G.returnValue=!1)}}let ve=(()=>{class Q{constructor(j,he,Qe){this.eventManager=j,this.sharedStylesHost=he,this.appId=Qe,this.rendererByCompId=new Map,this.defaultRenderer=new _e(j)}createRenderer(j,he){if(!j||!he)return this.defaultRenderer;switch(he.encapsulation){case c.ifc.Emulated:{let Qe=this.rendererByCompId.get(he.id);return Qe||(Qe=new Bt(this.eventManager,this.sharedStylesHost,he,this.appId),this.rendererByCompId.set(he.id,Qe)),Qe.applyToHost(j),Qe}case 1:case c.ifc.ShadowDom:return new lt(this.eventManager,this.sharedStylesHost,j,he);default:if(!this.rendererByCompId.has(he.id)){const Qe=H(he.id,he.styles,[]);this.sharedStylesHost.addStyles(Qe),this.rendererByCompId.set(he.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(xe),c.LFG(Te),c.LFG(c.AFp))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();class _e{constructor(G){this.eventManager=G,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(G,j){return j?document.createElementNS(ke[j]||j,G):document.createElement(G)}createComment(G){return document.createComment(G)}createText(G){return document.createTextNode(G)}appendChild(G,j){(qt(G)?G.content:G).appendChild(j)}insertBefore(G,j,he){G&&(qt(G)?G.content:G).insertBefore(j,he)}removeChild(G,j){G&&G.removeChild(j)}selectRootElement(G,j){let he="string"==typeof G?document.querySelector(G):G;if(!he)throw new Error(`The selector "${G}" did not match any elements`);return j||(he.textContent=""),he}parentNode(G){return G.parentNode}nextSibling(G){return G.nextSibling}setAttribute(G,j,he,Qe){if(Qe){j=Qe+":"+j;const yt=ke[Qe];yt?G.setAttributeNS(yt,j,he):G.setAttribute(j,he)}else G.setAttribute(j,he)}removeAttribute(G,j,he){if(he){const Qe=ke[he];Qe?G.removeAttributeNS(Qe,j):G.removeAttribute(`${he}:${j}`)}else G.removeAttribute(j)}addClass(G,j){G.classList.add(j)}removeClass(G,j){G.classList.remove(j)}setStyle(G,j,he,Qe){Qe&(c.JOm.DashCase|c.JOm.Important)?G.style.setProperty(j,he,Qe&c.JOm.Important?"important":""):G.style[j]=he}removeStyle(G,j,he){he&c.JOm.DashCase?G.style.removeProperty(j):G.style[j]=""}setProperty(G,j,he){G[j]=he}setValue(G,j){G.nodeValue=j}listen(G,j,he){return"string"==typeof G?this.eventManager.addGlobalEventListener(G,j,ne(he)):this.eventManager.addEventListener(G,j,ne(he))}}function qt(Q){return"TEMPLATE"===Q.tagName&&void 0!==Q.content}class Bt extends _e{constructor(G,j,he,Qe){super(G),this.component=he;const yt=H(Qe+"-"+he.id,he.styles,[]);j.addStyles(yt),this.contentAttr=function W(Q){return ue.replace(Ce,Q)}(Qe+"-"+he.id),this.hostAttr=function ge(Q){return le.replace(Ce,Q)}(Qe+"-"+he.id)}applyToHost(G){super.setAttribute(G,this.hostAttr,"")}createElement(G,j){const he=super.createElement(G,j);return super.setAttribute(he,this.contentAttr,""),he}}class lt extends _e{constructor(G,j,he,Qe){super(G),this.sharedStylesHost=j,this.hostEl=he,this.shadowRoot=he.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const yt=H(Qe.id,Qe.styles,[]);for(let Zt=0;Zt<yt.length;Zt++){const mn=document.createElement("style");mn.textContent=yt[Zt],this.shadowRoot.appendChild(mn)}}nodeOrShadowRoot(G){return G===this.hostEl?this.shadowRoot:G}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(G,j){return super.appendChild(this.nodeOrShadowRoot(G),j)}insertBefore(G,j,he){return super.insertBefore(this.nodeOrShadowRoot(G),j,he)}removeChild(G,j){return super.removeChild(this.nodeOrShadowRoot(G),j)}parentNode(G){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(G)))}}let dn=(()=>{class Q extends Be{constructor(j){super(j)}supports(j){return!0}addEventListener(j,he,Qe){return j.addEventListener(he,Qe,!1),()=>this.removeEventListener(j,he,Qe)}removeEventListener(j,he,Qe){return j.removeEventListener(he,Qe)}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const tn=["alt","control","meta","shift"],Ye={"\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"},ye={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Fe={alt:Q=>Q.altKey,control:Q=>Q.ctrlKey,meta:Q=>Q.metaKey,shift:Q=>Q.shiftKey};let ct=(()=>{class Q extends Be{constructor(j){super(j)}supports(j){return null!=Q.parseEventName(j)}addEventListener(j,he,Qe){const yt=Q.parseEventName(he),Zt=Q.eventCallback(yt.fullKey,Qe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,m.q)().onAndCancel(j,yt.domEventName,Zt))}static parseEventName(j){const he=j.toLowerCase().split("."),Qe=he.shift();if(0===he.length||"keydown"!==Qe&&"keyup"!==Qe)return null;const yt=Q._normalizeKey(he.pop());let Zt="";if(tn.forEach(Dt=>{const Sr=he.indexOf(Dt);Sr>-1&&(he.splice(Sr,1),Zt+=Dt+".")}),Zt+=yt,0!=he.length||0===yt.length)return null;const mn={};return mn.domEventName=Qe,mn.fullKey=Zt,mn}static getEventFullKey(j){let he="",Qe=function Tt(Q){let G=Q.key;if(null==G){if(G=Q.keyIdentifier,null==G)return"Unidentified";G.startsWith("U+")&&(G=String.fromCharCode(parseInt(G.substring(2),16)),3===Q.location&&ye.hasOwnProperty(G)&&(G=ye[G]))}return Ye[G]||G}(j);return Qe=Qe.toLowerCase()," "===Qe?Qe="space":"."===Qe&&(Qe="dot"),tn.forEach(yt=>{yt!=Qe&&Fe[yt](j)&&(he+=yt+".")}),he+=Qe,he}static eventCallback(j,he,Qe){return yt=>{Q.getEventFullKey(yt)===j&&Qe.runGuarded(()=>he(yt))}}static _normalizeKey(j){return"esc"===j?"escape":j}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Mt=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:m.bD},{provide:c.g9A,useValue:function In(){z.makeCurrent()},multi:!0},{provide:m.K0,useFactory:function Nn(){return(0,c.RDi)(document),document},deps:[]}]),Hn=new c.OlP(""),_t=[{provide:c.rWj,useClass:class de{addToWindow(G){c.dqk.getAngularTestability=(he,Qe=!0)=>{const yt=G.findTestabilityInTree(he,Qe);if(null==yt)throw new Error("Could not find testability for element.");return yt},c.dqk.getAllAngularTestabilities=()=>G.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>G.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(he=>{const Qe=c.dqk.getAllAngularTestabilities();let yt=Qe.length,Zt=!1;const mn=function(Dt){Zt=Zt||Dt,yt--,0==yt&&he(Zt)};Qe.forEach(function(Dt){Dt.whenStable(mn)})})}findTestabilityInTree(G,j,he){return null==j?null:G.getTestability(j)??(he?(0,m.q)().isShadowRoot(j)?this.findTestabilityInTree(G,j.host,!0):this.findTestabilityInTree(G,j.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],Rn=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function jn(){return new c.qLn},deps:[]},{provide:Oe,useClass:dn,multi:!0,deps:[m.K0,c.R0b,c.Lbi]},{provide:Oe,useClass:ct,multi:!0,deps:[m.K0]},{provide:ve,useClass:ve,deps:[xe,Te,c.AFp]},{provide:c.FYo,useExisting:ve},{provide:Ie,useExisting:Te},{provide:Te,useClass:Te,deps:[m.K0]},{provide:xe,useClass:xe,deps:[Oe,c.R0b]},{provide:m.JF,useClass:je,deps:[]},[]];let St=(()=>{class Q{constructor(j){}static withServerTransition(j){return{ngModule:Q,providers:[{provide:c.AFp,useValue:j.appId},{provide:te,useExisting:c.AFp},L]}}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(Hn,12))},Q.\u0275mod=c.oAB({type:Q}),Q.\u0275inj=c.cJS({providers:[...Rn,..._t],imports:[m.ez,c.hGG]}),Q})(),fe=(()=>{class Q{constructor(j){this._doc=j}getTitle(){return this._doc.title}setTitle(j){this._doc.title=j||""}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:function(j){let he=null;return he=j?new j:function se(){return new fe((0,c.LFG)(m.K0))}(),he},providedIn:"root"}),Q})();typeof window<"u"&&window;let Kt=(()=>{class Q{}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275prov=c.Yz7({token:Q,factory:function(j){let he=null;return he=j?new(j||Q):c.LFG(rt),he},providedIn:"root"}),Q})(),rt=(()=>{class Q extends Kt{constructor(j){super(),this._doc=j}sanitize(j,he){if(null==he)return null;switch(j){case c.q3G.NONE:return he;case c.q3G.HTML:return(0,c.qzn)(he,"HTML")?(0,c.z3N)(he):(0,c.EiD)(this._doc,String(he)).toString();case c.q3G.STYLE:return(0,c.qzn)(he,"Style")?(0,c.z3N)(he):he;case c.q3G.SCRIPT:if((0,c.qzn)(he,"Script"))return(0,c.z3N)(he);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(he,"URL")?(0,c.z3N)(he):(0,c.mCW)(String(he));case c.q3G.RESOURCE_URL:if((0,c.qzn)(he,"ResourceURL"))return(0,c.z3N)(he);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${j} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(j){return(0,c.JVY)(j)}bypassSecurityTrustStyle(j){return(0,c.L6k)(j)}bypassSecurityTrustScript(j){return(0,c.eBb)(j)}bypassSecurityTrustUrl(j){return(0,c.LAX)(j)}bypassSecurityTrustResourceUrl(j){return(0,c.pB0)(j)}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:function(j){let he=null;return he=j?new j:function hn(Q){return new rt(Q.get(m.K0))}(c.LFG(c.zs3)),he},providedIn:"root"}),Q})()},6806:(it,De,b)=>{b.d(De,{gz:()=>tr,m2:()=>Ye,F0:()=>or,Od:()=>As,yS:()=>ci,Bz:()=>Rs,lC:()=>Mr});var m=b(6895),c=b(4650),F=b(8306),z=b(727),U=b(4482),J=b(5403);function ee(){return(0,U.e)((f,d)=>{let u=null;f._refCount++;const y=(0,J.x)(d,void 0,void 0,void 0,()=>{if(!f||f._refCount<=0||0<--f._refCount)return void(u=null);const w=f._connection,P=u;u=null,w&&(!P||w===P)&&w.unsubscribe(),d.unsubscribe()});f.subscribe(y),y.closed||(u=f.connect())})}class ie extends F.y{constructor(d,u){super(),this.source=d,this.subjectFactory=u,this._subject=null,this._refCount=0,this._connection=null,(0,U.A)(d)&&(this.lift=d.lift)}_subscribe(d){return this.getSubject().subscribe(d)}getSubject(){const d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:d}=this;this._subject=this._connection=null,d?.unsubscribe()}connect(){let d=this._connection;if(!d){d=this._connection=new z.w0;const u=this.getSubject();d.add(this.source.subscribe((0,J.x)(u,void 0,()=>{this._teardown(),u.complete()},y=>{this._teardown(),u.error(y)},()=>this._teardown()))),d.closed&&(this._connection=null,d=z.w0.EMPTY)}return d}refCount(){return ee()(this)}}var te=b(8996),R=b(9646),L=b(1135),de=b(9841),je=b(2843),Oe=b(6805),xe=b(7272),Be=b(9770),Ie=b(515),Te=b(7579),Je=b(9300);function ke(f){return f<=0?()=>Ie.E:(0,U.e)((d,u)=>{let y=[];d.subscribe((0,J.x)(u,w=>{y.push(w),f<y.length&&y.shift()},()=>{for(const w of y)u.next(w);u.complete()},void 0,()=>{y=null}))})}var Ce=b(8068),x=b(6590),K=b(4671),ue=b(4004),W=b(3900),ge=b(5698),H=b(8675),ne=b(5026),me=b(262),ve=b(4351),_e=b(590),Ve=b(5577),ut=b(8505),qt=b(9718),Bt=b(8746),lt=b(8189),dn=b(1481);class tn{constructor(d,u){this.id=d,this.url=u}}class $e extends tn{constructor(d,u,y="imperative",w=null){super(d,u),this.type=0,this.navigationTrigger=y,this.restoredState=w}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ye extends tn{constructor(d,u,y){super(d,u),this.urlAfterRedirects=y,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ye extends tn{constructor(d,u,y){super(d,u),this.reason=y,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fe extends tn{constructor(d,u,y){super(d,u),this.error=y,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ct extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tt extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nn extends tn{constructor(d,u,y,w,P){super(d,u),this.urlAfterRedirects=y,this.state=w,this.shouldActivate=P,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vn extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wn extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class In{constructor(d){this.route=d,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jn{constructor(d){this.route=d,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nn{constructor(d){this.snapshot=d,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Un{constructor(d){this.snapshot=d,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mt{constructor(d){this.snapshot=d,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hn{constructor(d){this.snapshot=d,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _t{constructor(d,u,y){this.routerEvent=d,this.position=u,this.anchor=y,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const St="primary";class ar{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const u=this.params[d];return Array.isArray(u)?u[0]:u}return null}getAll(d){if(this.has(d)){const u=this.params[d];return Array.isArray(u)?u:[u]}return[]}get keys(){return Object.keys(this.params)}}function wn(f){return new ar(f)}const He="Redirecting to ",se="ngNavigationCancelingError";function fe(f){const d=Error("NavigationCancelingError: "+(f||""));return d[se]=!0,d}function Se(f,d,u){const y=u.path.split("/");if(y.length>f.length||"full"===u.pathMatch&&(d.hasChildren()||y.length<f.length))return null;const w={};for(let P=0;P<y.length;P++){const B=y[P],oe=f[P];if(B.startsWith(":"))w[B.substring(1)]=oe;else if(B!==oe.path)return null}return{consumed:f.slice(0,y.length),posParams:w}}function Gt(f,d){const u=f?Object.keys(f):void 0,y=d?Object.keys(d):void 0;if(!u||!y||u.length!=y.length)return!1;let w;for(let P=0;P<u.length;P++)if(w=u[P],!$t(f[w],d[w]))return!1;return!0}function $t(f,d){if(Array.isArray(f)&&Array.isArray(d)){if(f.length!==d.length)return!1;const u=[...f].sort(),y=[...d].sort();return u.every((w,P)=>y[P]===w)}return f===d}function st(f){return Array.prototype.concat.apply([],f)}function an(f){return f.length>0?f[f.length-1]:null}function Jt(f,d){for(const u in f)f.hasOwnProperty(u)&&d(f[u],u)}function Nt(f){return(0,c.CqO)(f)?f:(0,c.QGY)(f)?(0,te.D)(Promise.resolve(f)):(0,R.of)(f)}const er={exact:function kt(f,d,u){if(!At(f.segments,d.segments)||!V(f.segments,d.segments,u)||f.numberOfChildren!==d.numberOfChildren)return!1;for(const y in d.children)if(!f.children[y]||!kt(f.children[y],d.children[y],u))return!1;return!0},subset:rn},pt={exact:function gt(f,d){return Gt(f,d)},subset:function jt(f,d){return Object.keys(d).length<=Object.keys(f).length&&Object.keys(d).every(u=>$t(f[u],d[u]))},ignored:()=>!0};function Ge(f,d,u){return er[u.paths](f.root,d.root,u.matrixParams)&&pt[u.queryParams](f.queryParams,d.queryParams)&&!("exact"===u.fragment&&f.fragment!==d.fragment)}function rn(f,d,u){return Y(f,d,d.segments,u)}function Y(f,d,u,y){if(f.segments.length>u.length){const w=f.segments.slice(0,u.length);return!(!At(w,u)||d.hasChildren()||!V(w,u,y))}if(f.segments.length===u.length){if(!At(f.segments,u)||!V(f.segments,u,y))return!1;for(const w in d.children)if(!f.children[w]||!rn(f.children[w],d.children[w],y))return!1;return!0}{const w=u.slice(0,f.segments.length),P=u.slice(f.segments.length);return!!(At(f.segments,w)&&V(f.segments,w,y)&&f.children[St])&&Y(f.children[St],d,P,y)}}function V(f,d,u){return d.every((y,w)=>pt[u](f[w].parameters,y.parameters))}class pe{constructor(d,u,y){this.root=d,this.queryParams=u,this.fragment=y}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return xt.serialize(this)}}class Re{constructor(d,u){this.segments=d,this.children=u,this.parent=null,Jt(u,(y,w)=>y.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Q(this)}}class Ee{constructor(d,u){this.path=d,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function At(f,d){return f.length===d.length&&f.every((u,y)=>u.path===d[y].path)}class hn{}class rt{parse(d){const u=new kr(d);return new pe(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(d){const u=`/${G(d.root,!0)}`,y=function xr(f){const d=Object.keys(f).map(u=>{const y=f[u];return Array.isArray(y)?y.map(w=>`${he(u)}=${he(w)}`).join("&"):`${he(u)}=${he(y)}`}).filter(u=>!!u);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${u}${y}${"string"==typeof d.fragment?`#${function Qe(f){return encodeURI(f)}(d.fragment)}`:""}`}}const xt=new rt;function Q(f){return f.segments.map(d=>Dt(d)).join("/")}function G(f,d){if(!f.hasChildren())return Q(f);if(d){const u=f.children[St]?G(f.children[St],!1):"",y=[];return Jt(f.children,(w,P)=>{P!==St&&y.push(`${P}:${G(w,!1)}`)}),y.length>0?`${u}(${y.join("//")})`:u}{const u=function Kt(f,d){let u=[];return Jt(f.children,(y,w)=>{w===St&&(u=u.concat(d(y,w)))}),Jt(f.children,(y,w)=>{w!==St&&(u=u.concat(d(y,w)))}),u}(f,(y,w)=>w===St?[G(f.children[St],!1)]:[`${w}:${G(y,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[St]?`${Q(f)}/${u[0]}`:`${Q(f)}/(${u.join("//")})`}}function j(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function he(f){return j(f).replace(/%3B/gi,";")}function yt(f){return j(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(f){return decodeURIComponent(f)}function mn(f){return Zt(f.replace(/\+/g,"%20"))}function Dt(f){return`${yt(f.path)}${function Sr(f){return Object.keys(f).map(d=>`;${yt(d)}=${yt(f[d])}`).join("")}(f.parameters)}`}const zr=/^[^\/()?;=#]+/;function gr(f){const d=f.match(zr);return d?d[0]:""}const kn=/^[^=?&#]+/,Nr=/^[^&#]+/;class kr{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let u={};this.peekStartsWith("/(")&&(this.capture("/"),u=this.parseParens(!0));let y={};return this.peekStartsWith("(")&&(y=this.parseParens(!1)),(d.length>0||Object.keys(u).length>0)&&(y[St]=new Re(d,u)),y}parseSegment(){const d=gr(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new c.vHH(4009,!1);return this.capture(d),new Ee(Zt(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const u=gr(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const w=gr(this.remaining);w&&(y=w,this.capture(y))}d[Zt(u)]=Zt(y)}parseQueryParam(d){const u=function Xr(f){const d=f.match(kn);return d?d[0]:""}(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const B=function Fn(f){const d=f.match(Nr);return d?d[0]:""}(this.remaining);B&&(y=B,this.capture(y))}const w=mn(u),P=mn(y);if(d.hasOwnProperty(w)){let B=d[w];Array.isArray(B)||(B=[B],d[w]=B),B.push(P)}else d[w]=P}parseParens(d){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const y=gr(this.remaining),w=this.remaining[y.length];if("/"!==w&&")"!==w&&";"!==w)throw new c.vHH(4010,!1);let P;y.indexOf(":")>-1?(P=y.slice(0,y.indexOf(":")),this.capture(P),this.capture(":")):d&&(P=St);const B=this.parseChildren();u[P]=1===Object.keys(B).length?B[St]:new Re([],B),this.consumeOptional("//")}return u}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new c.vHH(4011,!1)}}class Yn{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const u=this.pathFromRoot(d);return u.length>1?u[u.length-2]:null}children(d){const u=gn(d,this._root);return u?u.children.map(y=>y.value):[]}firstChild(d){const u=gn(d,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(d){const u=gi(d,this._root);return u.length<2?[]:u[u.length-2].children.map(w=>w.value).filter(w=>w!==d)}pathFromRoot(d){return gi(d,this._root).map(u=>u.value)}}function gn(f,d){if(f===d.value)return d;for(const u of d.children){const y=gn(f,u);if(y)return y}return null}function gi(f,d){if(f===d.value)return[d];for(const u of d.children){const y=gi(f,u);if(y.length)return y.unshift(d),y}return[]}class cr{constructor(d,u){this.value=d,this.children=u}toString(){return`TreeNode(${this.value})`}}function rr(f){const d={};return f&&f.children.forEach(u=>d[u.value.outlet]=u),d}class mi extends Yn{constructor(d,u){super(d),this.snapshot=u,Hr(this,d)}toString(){return this.snapshot.toString()}}function Cr(f,d){const u=function ei(f,d){const B=new xn([],{},{},"",{},St,d,null,f.root,-1,{});return new $n("",new cr(B,[]))}(f,d),y=new L.X([new Ee("",{})]),w=new L.X({}),P=new L.X({}),B=new L.X({}),oe=new L.X(""),We=new tr(y,w,B,oe,P,St,d,u.root);return We.snapshot=u.root,new mi(new cr(We,[]),u)}class tr{constructor(d,u,y,w,P,B,oe,We){this.url=d,this.params=u,this.queryParams=y,this.fragment=w,this.data=P,this.outlet=B,this.component=oe,this._futureSnapshot=We}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,ue.U)(d=>wn(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ue.U)(d=>wn(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function An(f,d="emptyOnly"){const u=f.pathFromRoot;let y=0;if("always"!==d)for(y=u.length-1;y>=1;){const w=u[y],P=u[y-1];if(w.routeConfig&&""===w.routeConfig.path)y--;else{if(P.component)break;y--}}return function Bi(f){return f.reduce((d,u)=>({params:{...d.params,...u.params},data:{...d.data,...u.data},resolve:{...u.data,...d.resolve,...u.routeConfig?.data,...u._resolvedData}}),{params:{},data:{},resolve:{}})}(u.slice(y))}class xn{constructor(d,u,y,w,P,B,oe,We,ot,zt,wt,yn){this.url=d,this.params=u,this.queryParams=y,this.fragment=w,this.data=P,this.outlet=B,this.component=oe,this.routeConfig=We,this._urlSegment=ot,this._lastPathIndex=zt,this._correctedLastPathIndex=yn??zt,this._resolve=wt}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=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(y=>y.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $n extends Yn{constructor(d,u){super(u),this.url=d,Hr(this,u)}toString(){return br(this._root)}}function Hr(f,d){d.value._routerState=f,d.children.forEach(u=>Hr(f,u))}function br(f){const d=f.children.length>0?` { ${f.children.map(br).join(", ")} } `:"";return`${f.value}${d}`}function Fr(f){if(f.snapshot){const d=f.snapshot,u=f._futureSnapshot;f.snapshot=u,Gt(d.queryParams,u.queryParams)||f.queryParams.next(u.queryParams),d.fragment!==u.fragment&&f.fragment.next(u.fragment),Gt(d.params,u.params)||f.params.next(u.params),function tt(f,d){if(f.length!==d.length)return!1;for(let u=0;u<f.length;++u)if(!Gt(f[u],d[u]))return!1;return!0}(d.url,u.url)||f.url.next(u.url),Gt(d.data,u.data)||f.data.next(u.data)}else f.snapshot=f._futureSnapshot,f.data.next(f._futureSnapshot.data)}function ir(f,d){const u=Gt(f.params,d.params)&&function dt(f,d){return At(f,d)&&f.every((u,y)=>Gt(u.parameters,d[y].parameters))}(f.url,d.url);return u&&!(!f.parent!=!d.parent)&&(!f.parent||ir(f.parent,d.parent))}function Si(f,d,u){if(u&&f.shouldReuseRoute(d.value,u.value.snapshot)){const y=u.value;y._futureSnapshot=d.value;const w=function ti(f,d,u){return d.children.map(y=>{for(const w of u.children)if(f.shouldReuseRoute(y.value,w.value.snapshot))return Si(f,y,w);return Si(f,y)})}(f,d,u);return new cr(y,w)}{if(f.shouldAttach(d.value)){const P=f.retrieve(d.value);if(null!==P){const B=P.route;return B.value._futureSnapshot=d.value,B.children=d.children.map(oe=>Si(f,oe)),B}}const y=function ji(f){return new tr(new L.X(f.url),new L.X(f.params),new L.X(f.queryParams),new L.X(f.fragment),new L.X(f.data),f.outlet,f.component,f)}(d.value),w=d.children.map(P=>Si(f,P));return new cr(y,w)}}function yi(f){return"object"==typeof f&&null!=f&&!f.outlets&&!f.segmentPath}function Qn(f){return"object"==typeof f&&null!=f&&f.outlets}function Lr(f,d,u,y,w){let P={};if(y&&Jt(y,(oe,We)=>{P[We]=Array.isArray(oe)?oe.map(ot=>`${ot}`):`${oe}`}),f===d)return new pe(u,P,w);const B=vi(f,d,u);return new pe(B,P,w)}function vi(f,d,u){const y={};return Jt(f.children,(w,P)=>{y[P]=w===d?u:vi(w,d,u)}),new Re(f.segments,y)}class Ji{constructor(d,u,y){if(this.isAbsolute=d,this.numberOfDoubleDots=u,this.commands=y,d&&y.length>0&&yi(y[0]))throw new c.vHH(4003,false);const w=y.find(Qn);if(w&&w!==an(y))throw new c.vHH(4004,false)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mr{constructor(d,u,y){this.segmentGroup=d,this.processChildren=u,this.index=y}}function es(f,d,u){if(f||(f=new Re([],{})),0===f.segments.length&&f.hasChildren())return Wr(f,d,u);const y=function ni(f,d,u){let y=0,w=d;const P={match:!1,pathIndex:0,commandIndex:0};for(;w<f.segments.length;){if(y>=u.length)return P;const B=f.segments[w],oe=u[y];if(Qn(oe))break;const We=`${oe}`,ot=y<u.length-1?u[y+1]:null;if(w>0&&void 0===We)break;if(We&&ot&&"object"==typeof ot&&void 0===ot.outlets){if(!ts(We,ot,B))return P;y+=2}else{if(!ts(We,{},B))return P;y++}w++}return{match:!0,pathIndex:w,commandIndex:y}}(f,d,u),w=u.slice(y.commandIndex);if(y.match&&y.pathIndex<f.segments.length){const P=new Re(f.segments.slice(0,y.pathIndex),{});return P.children[St]=new Re(f.segments.slice(y.pathIndex),f.children),Wr(P,0,w)}return y.match&&0===w.length?new Re(f.segments,{}):y.match&&!f.hasChildren()?_i(f,d,u):y.match?Wr(f,0,w):_i(f,d,u)}function Wr(f,d,u){if(0===u.length)return new Re(f.segments,{});{const y=function Xi(f){return Qn(f[0])?f[0].outlets:{[St]:f}}(u),w={};return Jt(y,(P,B)=>{"string"==typeof P&&(P=[P]),null!==P&&(w[B]=es(f.children[B],d,P))}),Jt(f.children,(P,B)=>{void 0===y[B]&&(w[B]=P)}),new Re(f.segments,w)}}function _i(f,d,u){const y=f.segments.slice(0,d);let w=0;for(;w<u.length;){const P=u[w];if(Qn(P)){const We=Es(P.outlets);return new Re(y,We)}if(0===w&&yi(u[0])){y.push(new Ee(f.segments[d].path,Hi(u[0]))),w++;continue}const B=Qn(P)?P.outlets[St]:`${P}`,oe=w<u.length-1?u[w+1]:null;B&&oe&&yi(oe)?(y.push(new Ee(B,Hi(oe))),w+=2):(y.push(new Ee(B,{})),w++)}return new Re(y,{})}function Es(f){const d={};return Jt(f,(u,y)=>{"string"==typeof u&&(u=[u]),null!==u&&(d[y]=_i(new Re([],{}),0,u))}),d}function Hi(f){const d={};return Jt(f,(u,y)=>d[y]=`${u}`),d}function ts(f,d,u){return f==u.path&&Gt(d,u.parameters)}class Ar{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Gn,this.attachRef=null}}class Gn{constructor(){this.contexts=new Map}onChildOutletCreated(d,u){const y=this.getOrCreateContext(d);y.outlet=u,this.contexts.set(d,y)}onChildOutletDestroyed(d){const u=this.getContext(d);u&&(u.outlet=null,u.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let u=this.getContext(d);return u||(u=new Ar,this.contexts.set(d,u)),u}getContext(d){return this.contexts.get(d)||null}}const Br=!1;let Mr=(()=>{class f{constructor(u,y,w,P,B){this.parentContexts=u,this.location=y,this.changeDetector=P,this.environmentInjector=B,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=w||St,u.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const u=this.parentContexts.getContext(this.name);u&&u.route&&(u.attachRef?this.attach(u.attachRef,u.route):this.activateWith(u.route,u.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.vHH(4012,Br);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.vHH(4012,Br);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.vHH(4012,Br);this.location.detach();const u=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(u.instance),u}attach(u,y){this.activated=u,this._activatedRoute=y,this.location.insert(u.hostView),this.attachEvents.emit(u.instance)}deactivate(){if(this.activated){const u=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(u)}}activateWith(u,y){if(this.isActivated)throw new c.vHH(4013,Br);this._activatedRoute=u;const w=this.location,B=u._futureSnapshot.component,oe=this.parentContexts.getOrCreateContext(this.name).children,We=new Di(u,oe,w.injector);if(y&&function Ui(f){return!!f.resolveComponentFactory}(y)){const ot=y.resolveComponentFactory(B);this.activated=w.createComponent(ot,w.length,We)}else this.activated=w.createComponent(B,{index:w.length,injector:We,environmentInjector:y??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(Gn),c.Y36(c.s_b),c.$8M("name"),c.Y36(c.sBO),c.Y36(c.lqb))},f.\u0275dir=c.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),f})();class Di{constructor(d,u,y){this.route=d,this.childContexts=u,this.parent=y}get(d,u){return d===tr?this.route:d===Gn?this.childContexts:this.parent.get(d,u)}}let ri=(()=>{class f{}return f.\u0275fac=function(u){return new(u||f)},f.\u0275cmp=c.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(u,y){1&u&&c._UZ(0,"router-outlet")},dependencies:[Mr],encapsulation:2}),f})();function ii(f,d){return f.providers&&!f._injector&&(f._injector=(0,c.MMx)(f.providers,d,`Route: ${f.path}`)),f._injector??d}function ft(f){const d=f.children&&f.children.map(ft),u=d?{...f,children:d}:{...f};return!u.component&&!u.loadComponent&&(d||u.loadChildren)&&u.outlet&&u.outlet!==St&&(u.component=ri),u}function ht(f){return f.outlet||St}function Tn(f,d){const u=f.filter(y=>ht(y)===d);return u.push(...f.filter(y=>ht(y)!==d)),u}function sn(f){if(!f)return null;if(f.routeConfig?._injector)return f.routeConfig._injector;for(let d=f.parent;d;d=d.parent){const u=d.routeConfig;if(u?._loadedInjector)return u._loadedInjector;if(u?._injector)return u._injector}return null}class Dn{constructor(d,u,y,w){this.routeReuseStrategy=d,this.futureState=u,this.currState=y,this.forwardEvent=w}activate(d){const u=this.futureState._root,y=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,y,d),Fr(this.futureState.root),this.activateChildRoutes(u,y,d)}deactivateChildRoutes(d,u,y){const w=rr(u);d.children.forEach(P=>{const B=P.value.outlet;this.deactivateRoutes(P,w[B],y),delete w[B]}),Jt(w,(P,B)=>{this.deactivateRouteAndItsChildren(P,y)})}deactivateRoutes(d,u,y){const w=d.value,P=u?u.value:null;if(w===P)if(w.component){const B=y.getContext(w.outlet);B&&this.deactivateChildRoutes(d,u,B.children)}else this.deactivateChildRoutes(d,u,y);else P&&this.deactivateRouteAndItsChildren(u,y)}deactivateRouteAndItsChildren(d,u){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,u):this.deactivateRouteAndOutlet(d,u)}detachAndStoreRouteSubtree(d,u){const y=u.getContext(d.value.outlet),w=y&&d.value.component?y.children:u,P=rr(d);for(const B of Object.keys(P))this.deactivateRouteAndItsChildren(P[B],w);if(y&&y.outlet){const B=y.outlet.detach(),oe=y.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:B,route:d,contexts:oe})}}deactivateRouteAndOutlet(d,u){const y=u.getContext(d.value.outlet),w=y&&d.value.component?y.children:u,P=rr(d);for(const B of Object.keys(P))this.deactivateRouteAndItsChildren(P[B],w);y&&y.outlet&&(y.outlet.deactivate(),y.children.onOutletDeactivated(),y.attachRef=null,y.resolver=null,y.route=null)}activateChildRoutes(d,u,y){const w=rr(u);d.children.forEach(P=>{this.activateRoutes(P,w[P.value.outlet],y),this.forwardEvent(new Hn(P.value.snapshot))}),d.children.length&&this.forwardEvent(new Un(d.value.snapshot))}activateRoutes(d,u,y){const w=d.value,P=u?u.value:null;if(Fr(w),w===P)if(w.component){const B=y.getOrCreateContext(w.outlet);this.activateChildRoutes(d,u,B.children)}else this.activateChildRoutes(d,u,y);else if(w.component){const B=y.getOrCreateContext(w.outlet);if(this.routeReuseStrategy.shouldAttach(w.snapshot)){const oe=this.routeReuseStrategy.retrieve(w.snapshot);this.routeReuseStrategy.store(w.snapshot,null),B.children.onOutletReAttached(oe.contexts),B.attachRef=oe.componentRef,B.route=oe.route.value,B.outlet&&B.outlet.attach(oe.componentRef,oe.route.value),Fr(oe.route.value),this.activateChildRoutes(d,null,B.children)}else{const oe=sn(w.snapshot),We=oe?.get(c._Vd)??null;B.attachRef=null,B.route=w,B.resolver=We,B.injector=oe,B.outlet&&B.outlet.activateWith(w,B.injector),this.activateChildRoutes(d,null,B.children)}}else this.activateChildRoutes(d,null,y)}}function Pr(f){return"function"==typeof f}function Vn(f){return f instanceof pe}const O=Symbol("INITIAL_VALUE");function re(){return(0,W.w)(f=>(0,de.a)(f.map(d=>d.pipe((0,ge.q)(1),(0,H.O)(O)))).pipe((0,ne.R)((d,u)=>{let y=!1;return u.reduce((w,P,B)=>w!==O?w:(P===O&&(y=!0),y||!1!==P&&B!==u.length-1&&!Vn(P)?w:P),d)},O),(0,Je.h)(d=>d!==O),(0,ue.U)(d=>Vn(d)?d:!0===d),(0,ge.q)(1)))}const Ne={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function we(f,d,u){if(""===d.path)return"full"===d.pathMatch&&(f.hasChildren()||u.length>0)?{...Ne}:{matched:!0,consumedSegments:[],remainingSegments:u,parameters:{},positionalParamSegments:{}};const w=(d.matcher||Se)(u,f,d);if(!w)return{...Ne};const P={};Jt(w.posParams,(oe,We)=>{P[We]=oe.path});const B=w.consumed.length>0?{...P,...w.consumed[w.consumed.length-1].parameters}:P;return{matched:!0,consumedSegments:w.consumed,remainingSegments:u.slice(w.consumed.length),parameters:B,positionalParamSegments:w.posParams??{}}}function bt(f,d,u,y,w="corrected"){if(u.length>0&&function bn(f,d,u){return u.some(y=>Ln(f,d,y)&&ht(y)!==St)}(f,u,y)){const B=new Re(d,function Mn(f,d,u,y){const w={};w[St]=y,y._sourceSegment=f,y._segmentIndexShift=d.length;for(const P of u)if(""===P.path&&ht(P)!==St){const B=new Re([],{});B._sourceSegment=f,B._segmentIndexShift=d.length,w[ht(P)]=B}return w}(f,d,y,new Re(u,f.children)));return B._sourceSegment=f,B._segmentIndexShift=d.length,{segmentGroup:B,slicedSegments:[]}}if(0===u.length&&function cn(f,d,u){return u.some(y=>Ln(f,d,y))}(f,u,y)){const B=new Re(f.segments,function Sn(f,d,u,y,w,P){const B={};for(const oe of y)if(Ln(f,u,oe)&&!w[ht(oe)]){const We=new Re([],{});We._sourceSegment=f,We._segmentIndexShift="legacy"===P?f.segments.length:d.length,B[ht(oe)]=We}return{...w,...B}}(f,d,u,y,f.children,w));return B._sourceSegment=f,B._segmentIndexShift=d.length,{segmentGroup:B,slicedSegments:u}}const P=new Re(f.segments,f.children);return P._sourceSegment=f,P._segmentIndexShift=d.length,{segmentGroup:P,slicedSegments:u}}function Ln(f,d,u){return(!(f.hasChildren()||d.length>0)||"full"!==u.pathMatch)&&""===u.path}function _n(f,d,u,y){return!!(ht(f)===y||y!==St&&Ln(d,u,f))&&("**"===f.path||we(d,f,u).matched)}function zn(f,d,u){return 0===d.length&&!f.children[u]}const Ze=!1;class Vt{constructor(d){this.segmentGroup=d||null}}class si{constructor(d){this.urlTree=d}}function Or(f){return(0,je._)(new Vt(f))}function Bn(f){return(0,je._)(new si(f))}class rs{constructor(d,u,y,w,P){this.injector=d,this.configLoader=u,this.urlSerializer=y,this.urlTree=w,this.config=P,this.allowRedirects=!0}apply(){const d=bt(this.urlTree.root,[],[],this.config).segmentGroup,u=new Re(d.segments,d.children);return this.expandSegmentGroup(this.injector,this.config,u,St).pipe((0,ue.U)(P=>this.createUrlTree($i(P),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,me.K)(P=>{if(P instanceof si)return this.allowRedirects=!1,this.match(P.urlTree);throw P instanceof Vt?this.noMatchError(P):P}))}match(d){return this.expandSegmentGroup(this.injector,this.config,d.root,St).pipe((0,ue.U)(w=>this.createUrlTree($i(w),d.queryParams,d.fragment))).pipe((0,me.K)(w=>{throw w instanceof Vt?this.noMatchError(w):w}))}noMatchError(d){return new c.vHH(4002,Ze)}createUrlTree(d,u,y){const w=d.segments.length>0?new Re([],{[St]:d}):d;return new pe(w,u,y)}expandSegmentGroup(d,u,y,w){return 0===y.segments.length&&y.hasChildren()?this.expandChildren(d,u,y).pipe((0,ue.U)(P=>new Re([],P))):this.expandSegment(d,y,u,y.segments,w,!0)}expandChildren(d,u,y){const w=[];for(const P of Object.keys(y.children))"primary"===P?w.unshift(P):w.push(P);return(0,te.D)(w).pipe((0,ve.b)(P=>{const B=y.children[P],oe=Tn(u,P);return this.expandSegmentGroup(d,oe,B,P).pipe((0,ue.U)(We=>({segment:We,outlet:P})))}),(0,ne.R)((P,B)=>(P[B.outlet]=B.segment,P),{}),function le(f,d){const u=arguments.length>=2;return y=>y.pipe(f?(0,Je.h)((w,P)=>f(w,P,y)):K.y,ke(1),u?(0,x.d)(d):(0,Ce.T)(()=>new Oe.K))}())}expandSegment(d,u,y,w,P,B){return(0,te.D)(y).pipe((0,ve.b)(oe=>this.expandSegmentAgainstRoute(d,u,y,oe,w,P,B).pipe((0,me.K)(ot=>{if(ot instanceof Vt)return(0,R.of)(null);throw ot}))),(0,_e.P)(oe=>!!oe),(0,me.K)((oe,We)=>{if(oe instanceof Oe.K||"EmptyError"===oe.name)return zn(u,w,P)?(0,R.of)(new Re([],{})):Or(u);throw oe}))}expandSegmentAgainstRoute(d,u,y,w,P,B,oe){return _n(w,u,P,B)?void 0===w.redirectTo?this.matchSegmentAgainstRoute(d,u,w,P,B):oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B):Or(u):Or(u)}expandSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B){return"**"===w.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,y,w,B):this.expandRegularSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,u,y,w){const P=this.applyRedirectCommands([],y.redirectTo,{});return y.redirectTo.startsWith("/")?Bn(P):this.lineralizeSegments(y,P).pipe((0,Ve.z)(B=>{const oe=new Re(B,{});return this.expandSegment(d,oe,u,B,w,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B){const{matched:oe,consumedSegments:We,remainingSegments:ot,positionalParamSegments:zt}=we(u,w,P);if(!oe)return Or(u);const wt=this.applyRedirectCommands(We,w.redirectTo,zt);return w.redirectTo.startsWith("/")?Bn(wt):this.lineralizeSegments(w,wt).pipe((0,Ve.z)(yn=>this.expandSegment(d,u,y,yn.concat(ot),B,!1)))}matchSegmentAgainstRoute(d,u,y,w,P){if("**"===y.path)return d=ii(y,d),y.loadChildren?(y._loadedRoutes?(0,R.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):this.configLoader.loadChildren(d,y)).pipe((0,ue.U)(wt=>(y._loadedRoutes=wt.routes,y._loadedInjector=wt.injector,new Re(w,{})))):(0,R.of)(new Re(w,{}));const{matched:B,consumedSegments:oe,remainingSegments:We}=we(u,y,w);return B?(d=ii(y,d),this.getChildConfig(d,y,w).pipe((0,Ve.z)(zt=>{const wt=zt.injector??d,yn=zt.routes,{segmentGroup:on,slicedSegments:fr}=bt(u,oe,We,yn),_r=new Re(on.segments,on.children);if(0===fr.length&&_r.hasChildren())return this.expandChildren(wt,yn,_r).pipe((0,ue.U)(Ot=>new Re(oe,Ot)));if(0===yn.length&&0===fr.length)return(0,R.of)(new Re(oe,{}));const bo=ht(y)===P;return this.expandSegment(wt,_r,yn,fr,bo?St:P,!0).pipe((0,ue.U)(mt=>new Re(oe.concat(mt.segments),mt.children)))}))):Or(u)}getChildConfig(d,u,y){return u.children?(0,R.of)({routes:u.children,injector:d}):u.loadChildren?void 0!==u._loadedRoutes?(0,R.of)({routes:u._loadedRoutes,injector:u._loadedInjector}):this.runCanLoadGuards(d,u,y).pipe((0,Ve.z)(w=>w?this.configLoader.loadChildren(d,u).pipe((0,ut.b)(P=>{u._loadedRoutes=P.routes,u._loadedInjector=P.injector})):function ai(f){return(0,je._)(fe(Ze))}())):(0,R.of)({routes:[],injector:d})}runCanLoadGuards(d,u,y){const w=u.canLoad;if(!w||0===w.length)return(0,R.of)(!0);const P=w.map(B=>{const oe=d.get(B);return Nt(function qn(f){return f&&Pr(f.canLoad)}(oe)?oe.canLoad(u,y):oe(u,y))});return(0,R.of)(P).pipe(re(),(0,ut.b)(B=>{if(!Vn(B))return;const oe=fe(He+this.urlSerializer.serialize(B));throw oe.url=B,oe}),(0,ue.U)(B=>!0===B))}lineralizeSegments(d,u){let y=[],w=u.root;for(;;){if(y=y.concat(w.segments),0===w.numberOfChildren)return(0,R.of)(y);if(w.numberOfChildren>1||!w.children[St])return(0,je._)(new c.vHH(4e3,Ze));w=w.children[St]}}applyRedirectCommands(d,u,y){return this.applyRedirectCreatreUrlTree(u,this.urlSerializer.parse(u),d,y)}applyRedirectCreatreUrlTree(d,u,y,w){const P=this.createSegmentGroup(d,u.root,y,w);return new pe(P,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(d,u){const y={};return Jt(d,(w,P)=>{if("string"==typeof w&&w.startsWith(":")){const oe=w.substring(1);y[P]=u[oe]}else y[P]=w}),y}createSegmentGroup(d,u,y,w){const P=this.createSegments(d,u.segments,y,w);let B={};return Jt(u.children,(oe,We)=>{B[We]=this.createSegmentGroup(d,oe,y,w)}),new Re(P,B)}createSegments(d,u,y,w){return u.map(P=>P.path.startsWith(":")?this.findPosParam(d,P,w):this.findOrReturn(P,y))}findPosParam(d,u,y){const w=y[u.path.substring(1)];if(!w)throw new c.vHH(4001,Ze);return w}findOrReturn(d,u){let y=0;for(const w of u){if(w.path===d.path)return u.splice(y),w;y++}return d}}function $i(f){const d={};for(const y of Object.keys(f.children)){const P=$i(f.children[y]);(P.segments.length>0||P.hasChildren())&&(d[y]=P)}return function is(f){if(1===f.numberOfChildren&&f.children[St]){const d=f.children[St];return new Re(f.segments.concat(d.segments),d.children)}return f}(new Re(f.segments,d))}class Gs{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class Ai{constructor(d,u){this.component=d,this.route=u}}function dr(f,d,u){const y=f._root;return Kr(y,d?d._root:null,u,[y.value])}function ss(f,d,u){return(sn(d)??u).get(f)}function Kr(f,d,u,y,w={canDeactivateChecks:[],canActivateChecks:[]}){const P=rr(d);return f.children.forEach(B=>{(function Zr(f,d,u,y,w={canDeactivateChecks:[],canActivateChecks:[]}){const P=f.value,B=d?d.value:null,oe=u?u.getContext(f.value.outlet):null;if(B&&P.routeConfig===B.routeConfig){const We=function go(f,d,u){if("function"==typeof u)return u(f,d);switch(u){case"pathParamsChange":return!At(f.url,d.url);case"pathParamsOrQueryParamsChange":return!At(f.url,d.url)||!Gt(f.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(f,d)||!Gt(f.queryParams,d.queryParams);default:return!ir(f,d)}}(B,P,P.routeConfig.runGuardsAndResolvers);We?w.canActivateChecks.push(new Gs(y)):(P.data=B.data,P._resolvedData=B._resolvedData),Kr(f,d,P.component?oe?oe.children:null:u,y,w),We&&oe&&oe.outlet&&oe.outlet.isActivated&&w.canDeactivateChecks.push(new Ai(oe.outlet.component,B))}else B&&Vi(d,oe,w),w.canActivateChecks.push(new Gs(y)),Kr(f,null,P.component?oe?oe.children:null:u,y,w)})(B,P[B.value.outlet],u,y.concat([B.value]),w),delete P[B.value.outlet]}),Jt(P,(B,oe)=>Vi(B,u.getContext(oe),w)),w}function Vi(f,d,u){const y=rr(f),w=f.value;Jt(y,(P,B)=>{Vi(P,w.component?d?d.children.getContext(B):null:d,u)}),u.canDeactivateChecks.push(new Ai(w.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,w))}class yr{}function us(f){return new F.y(d=>d.error(f))}class bs{constructor(d,u,y,w,P,B){this.rootComponentType=d,this.config=u,this.urlTree=y,this.url=w,this.paramsInheritanceStrategy=P,this.relativeLinkResolution=B}recognize(){const d=bt(this.urlTree.root,[],[],this.config.filter(B=>void 0===B.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,d,St);if(null===u)return null;const y=new xn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),w=new cr(y,u),P=new $n(this.url,w);return this.inheritParamsAndData(P._root),P}inheritParamsAndData(d){const u=d.value,y=An(u,this.paramsInheritanceStrategy);u.params=Object.freeze(y.params),u.data=Object.freeze(y.data),d.children.forEach(w=>this.inheritParamsAndData(w))}processSegmentGroup(d,u,y){return 0===u.segments.length&&u.hasChildren()?this.processChildren(d,u):this.processSegment(d,u,u.segments,y)}processChildren(d,u){const y=[];for(const P of Object.keys(u.children)){const B=u.children[P],oe=Tn(d,P),We=this.processSegmentGroup(oe,B,P);if(null===We)return null;y.push(...We)}const w=lr(y);return function Ks(f){f.sort((d,u)=>d.value.outlet===St?-1:u.value.outlet===St?1:d.value.outlet.localeCompare(u.value.outlet))}(w),w}processSegment(d,u,y,w){for(const P of d){const B=this.processSegmentAgainstRoute(P,u,y,w);if(null!==B)return B}return zn(u,y,w)?[]:null}processSegmentAgainstRoute(d,u,y,w){if(d.redirectTo||!_n(d,u,y,w))return null;let P,B=[],oe=[];if("**"===d.path){const on=y.length>0?an(y).parameters:{},fr=Ys(u)+y.length;P=new xn(y,on,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(d),ht(d),d.component??d._loadedComponent??null,d,Pn(u),fr,Qs(d),fr)}else{const on=we(u,d,y);if(!on.matched)return null;B=on.consumedSegments,oe=on.remainingSegments;const fr=Ys(u)+B.length;P=new xn(B,on.parameters,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(d),ht(d),d.component??d._loadedComponent??null,d,Pn(u),fr,Qs(d),fr)}const We=function Zs(f){return f.children?f.children:f.loadChildren?f._loadedRoutes:[]}(d),{segmentGroup:ot,slicedSegments:zt}=bt(u,B,oe,We.filter(on=>void 0===on.redirectTo),this.relativeLinkResolution);if(0===zt.length&&ot.hasChildren()){const on=this.processChildren(We,ot);return null===on?null:[new cr(P,on)]}if(0===We.length&&0===zt.length)return[new cr(P,[])];const wt=ht(d)===w,yn=this.processSegment(We,ot,zt,wt?St:w);return null===yn?null:[new cr(P,yn)]}}function ws(f){const d=f.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function lr(f){const d=[],u=new Set;for(const y of f){if(!ws(y)){d.push(y);continue}const w=d.find(P=>y.value.routeConfig===P.value.routeConfig);void 0!==w?(w.children.push(...y.children),u.add(w)):d.push(y)}for(const y of u){const w=lr(y.children);d.push(new cr(y.value,w))}return d.filter(y=>!u.has(y))}function Pn(f){let d=f;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Ys(f){let d=f,u=d._segmentIndexShift??0;for(;d._sourceSegment;)d=d._sourceSegment,u+=d._segmentIndexShift??0;return u-1}function Gi(f){return f.data||{}}function Qs(f){return f.resolve||{}}const bi=Symbol("RouteTitle");function wi(f){return"string"==typeof f.title||null===f.title}function Yr(f){return(0,W.w)(d=>{const u=f(d);return u?(0,te.D)(u).pipe((0,ue.U)(()=>d)):(0,R.of)(d)})}class Po extends class Xs{shouldDetach(d){return!1}store(d,u){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,u){return d.routeConfig===u.routeConfig}}{}const Zn=new c.OlP("ROUTES");let Ss=(()=>{class f{constructor(u,y){this.injector=u,this.compiler=y,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(u){if(this.componentLoaders.get(u))return this.componentLoaders.get(u);if(u._loadedComponent)return(0,R.of)(u._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(u);const y=Nt(u.loadComponent()).pipe((0,ut.b)(P=>{this.onLoadEndListener&&this.onLoadEndListener(u),u._loadedComponent=P}),(0,Bt.x)(()=>{this.componentLoaders.delete(u)})),w=new ie(y,()=>new Te.x).pipe(ee());return this.componentLoaders.set(u,w),w}loadChildren(u,y){if(this.childrenLoaders.get(y))return this.childrenLoaders.get(y);if(y._loadedRoutes)return(0,R.of)({routes:y._loadedRoutes,injector:y._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(y);const P=this.loadModuleFactoryOrRoutes(y.loadChildren).pipe((0,ue.U)(oe=>{this.onLoadEndListener&&this.onLoadEndListener(y);let We,ot,zt=!1;Array.isArray(oe)?ot=oe:(We=oe.create(u).injector,ot=st(We.get(Zn,[],c.XFs.Self|c.XFs.Optional)));return{routes:ot.map(ft),injector:We}}),(0,Bt.x)(()=>{this.childrenLoaders.delete(y)})),B=new ie(P,()=>new Te.x).pipe(ee());return this.childrenLoaders.set(y,B),B}loadModuleFactoryOrRoutes(u){return Nt(u()).pipe((0,Ve.z)(y=>y instanceof c.YKP||Array.isArray(y)?(0,R.of)(y):(0,te.D)(this.compiler.compileModuleAsync(y))))}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(c.zs3),c.LFG(c.Sil))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class Wo{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,u){return d}}function ui(f){throw f}function eo(f,d,u){return d.parse("/")}const Is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ds={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let or=(()=>{class f{constructor(u,y,w,P,B,oe,We){this.rootComponentType=u,this.urlSerializer=y,this.rootContexts=w,this.location=P,this.config=We,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.x,this.errorHandler=ui,this.malformedUriErrorHandler=eo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new Wo,this.routeReuseStrategy=new Po,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=B.get(Ss),this.configLoader.onLoadEndListener=yn=>this.triggerEvent(new jn(yn)),this.configLoader.onLoadStartListener=yn=>this.triggerEvent(new In(yn)),this.ngModule=B.get(c.h0i),this.console=B.get(c.c2e);const wt=B.get(c.R0b);this.isNgZoneEnabled=wt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(We),this.currentUrlTree=function Pt(){return new pe(new Re([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Cr(this.currentUrlTree,this.rootComponentType),this.transitions=new L.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(u){const y=this.events;return u.pipe((0,Je.h)(w=>0!==w.id),(0,ue.U)(w=>({...w,extractedUrl:this.urlHandlingStrategy.extract(w.rawUrl)})),(0,W.w)(w=>{let P=!1,B=!1;return(0,R.of)(w).pipe((0,ut.b)(oe=>{this.currentNavigation={id:oe.id,initialUrl:oe.rawUrl,extractedUrl:oe.extractedUrl,trigger:oe.source,extras:oe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,W.w)(oe=>{const We=this.browserUrlTree.toString(),ot=!this.navigated||oe.extractedUrl.toString()!==We||We!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||ot)&&this.urlHandlingStrategy.shouldProcessUrl(oe.rawUrl))return Oi(oe.source)&&(this.browserUrlTree=oe.extractedUrl),(0,R.of)(oe).pipe((0,W.w)(wt=>{const yn=this.transitions.getValue();return y.next(new $e(wt.id,this.serializeUrl(wt.extractedUrl),wt.source,wt.restoredState)),yn!==this.transitions.getValue()?Ie.E:Promise.resolve(wt)}),function po(f,d,u,y){return(0,W.w)(w=>function Gr(f,d,u,y,w){return new rs(f,d,u,y,w).apply()}(f,d,u,w.extractedUrl,y).pipe((0,ue.U)(P=>({...w,urlAfterRedirects:P}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ut.b)(wt=>{this.currentNavigation={...this.currentNavigation,finalUrl:wt.urlAfterRedirects}}),function Tr(f,d,u,y,w){return(0,Ve.z)(P=>function Ci(f,d,u,y,w="emptyOnly",P="legacy"){try{const B=new bs(f,d,u,y,w,P).recognize();return null===B?us(new yr):(0,R.of)(B)}catch(B){return us(B)}}(f,d,P.urlAfterRedirects,u(P.urlAfterRedirects),y,w).pipe((0,ue.U)(B=>({...P,targetSnapshot:B}))))}(this.rootComponentType,this.config,wt=>this.serializeUrl(wt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ut.b)(wt=>{if("eager"===this.urlUpdateStrategy){if(!wt.extras.skipLocationChange){const on=this.urlHandlingStrategy.merge(wt.urlAfterRedirects,wt.rawUrl);this.setBrowserUrl(on,wt)}this.browserUrlTree=wt.urlAfterRedirects}const yn=new ct(wt.id,this.serializeUrl(wt.extractedUrl),this.serializeUrl(wt.urlAfterRedirects),wt.targetSnapshot);y.next(yn)}));if(ot&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:yn,extractedUrl:on,source:fr,restoredState:_r,extras:bo}=oe,xs=new $e(yn,this.serializeUrl(on),fr,_r);y.next(xs);const mt=Cr(on,this.rootComponentType).snapshot;return(0,R.of)({...oe,targetSnapshot:mt,urlAfterRedirects:on,extras:{...bo,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=oe.rawUrl,oe.resolve(null),Ie.E}),(0,ut.b)(oe=>{const We=new Tt(oe.id,this.serializeUrl(oe.extractedUrl),this.serializeUrl(oe.urlAfterRedirects),oe.targetSnapshot);this.triggerEvent(We)}),(0,ue.U)(oe=>({...oe,guards:dr(oe.targetSnapshot,oe.currentSnapshot,this.rootContexts)})),function Cs(f,d){return(0,Ve.z)(u=>{const{targetSnapshot:y,currentSnapshot:w,guards:{canActivateChecks:P,canDeactivateChecks:B}}=u;return 0===B.length&&0===P.length?(0,R.of)({...u,guardsResult:!0}):function Ao(f,d,u,y){return(0,te.D)(f).pipe((0,Ve.z)(w=>function ls(f,d,u,y,w){const P=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!P||0===P.length)return(0,R.of)(!0);const B=P.map(oe=>{const We=ss(oe,d,w);return Nt(function E(f){return f&&Pr(f.canDeactivate)}(We)?We.canDeactivate(f,d,u,y):We(f,d,u,y)).pipe((0,_e.P)())});return(0,R.of)(B).pipe(re())}(w.component,w.route,u,d,y)),(0,_e.P)(w=>!0!==w,!0))}(B,y,w,f).pipe((0,Ve.z)(oe=>oe&&function jr(f){return"boolean"==typeof f}(oe)?function zi(f,d,u,y){return(0,te.D)(d).pipe((0,ve.b)(w=>(0,xe.z)(function mo(f,d){return null!==f&&d&&d(new Nn(f)),(0,R.of)(!0)}(w.route.parent,y),function os(f,d){return null!==f&&d&&d(new Mt(f)),(0,R.of)(!0)}(w.route,y),function Mo(f,d,u){const y=d[d.length-1],P=d.slice(0,d.length-1).reverse().map(B=>function li(f){const d=f.routeConfig?f.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:f,guards:d}:null}(B)).filter(B=>null!==B).map(B=>(0,Be.P)(()=>{const oe=B.guards.map(We=>{const ot=ss(We,B.node,u);return Nt(function A(f){return f&&Pr(f.canActivateChild)}(ot)?ot.canActivateChild(y,f):ot(y,f)).pipe((0,_e.P)())});return(0,R.of)(oe).pipe(re())}));return(0,R.of)(P).pipe(re())}(f,w.path,u),function as(f,d,u){const y=d.routeConfig?d.routeConfig.canActivate:null;if(!y||0===y.length)return(0,R.of)(!0);const w=y.map(P=>(0,Be.P)(()=>{const B=ss(P,d,u);return Nt(function D(f){return f&&Pr(f.canActivate)}(B)?B.canActivate(d,f):B(d,f)).pipe((0,_e.P)())}));return(0,R.of)(w).pipe(re())}(f,w.route,u))),(0,_e.P)(w=>!0!==w,!0))}(y,P,f,d):(0,R.of)(oe)),(0,ue.U)(oe=>({...u,guardsResult:oe})))})}(this.ngModule.injector,oe=>this.triggerEvent(oe)),(0,ut.b)(oe=>{if(Vn(oe.guardsResult)){const ot=fe(`Redirecting to "${this.serializeUrl(oe.guardsResult)}"`);throw ot.url=oe.guardsResult,ot}const We=new nn(oe.id,this.serializeUrl(oe.extractedUrl),this.serializeUrl(oe.urlAfterRedirects),oe.targetSnapshot,!!oe.guardsResult);this.triggerEvent(We)}),(0,Je.h)(oe=>!!oe.guardsResult||(this.restoreHistory(oe),this.cancelNavigationTransition(oe,""),!1)),Yr(oe=>{if(oe.guards.canActivateChecks.length)return(0,R.of)(oe).pipe((0,ut.b)(We=>{const ot=new vn(We.id,this.serializeUrl(We.extractedUrl),this.serializeUrl(We.urlAfterRedirects),We.targetSnapshot);this.triggerEvent(ot)}),(0,W.w)(We=>{let ot=!1;return(0,R.of)(We).pipe(function qs(f,d){return(0,Ve.z)(u=>{const{targetSnapshot:y,guards:{canActivateChecks:w}}=u;if(!w.length)return(0,R.of)(u);let P=0;return(0,te.D)(w).pipe((0,ve.b)(B=>function Js(f,d,u,y){const w=f.routeConfig,P=f._resolve;return void 0!==w?.title&&!wi(w)&&(P[bi]=w.title),function Pi(f,d,u,y){const w=function yo(f){return[...Object.keys(f),...Object.getOwnPropertySymbols(f)]}(f);if(0===w.length)return(0,R.of)({});const P={};return(0,te.D)(w).pipe((0,Ve.z)(B=>function vo(f,d,u,y){const w=ss(f,d,y);return Nt(w.resolve?w.resolve(d,u):w(d,u))}(f[B],d,u,y).pipe((0,_e.P)(),(0,ut.b)(oe=>{P[B]=oe}))),ke(1),(0,qt.h)(P),(0,me.K)(B=>B instanceof Oe.K?Ie.E:(0,je._)(B)))}(P,f,d,y).pipe((0,ue.U)(B=>(f._resolvedData=B,f.data=An(f,u).resolve,w&&wi(w)&&(f.data[bi]=w.title),null)))}(B.route,y,f,d)),(0,ut.b)(()=>P++),ke(1),(0,Ve.z)(B=>P===w.length?(0,R.of)(u):Ie.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ut.b)({next:()=>ot=!0,complete:()=>{ot||(this.restoreHistory(We),this.cancelNavigationTransition(We,"At least one route resolver didn't emit any value."))}}))}),(0,ut.b)(We=>{const ot=new Wn(We.id,this.serializeUrl(We.extractedUrl),this.serializeUrl(We.urlAfterRedirects),We.targetSnapshot);this.triggerEvent(ot)}))}),Yr(oe=>{const We=ot=>{const zt=[];ot.routeConfig?.loadComponent&&!ot.routeConfig._loadedComponent&&zt.push(this.configLoader.loadComponent(ot.routeConfig).pipe((0,ut.b)(wt=>{ot.component=wt}),(0,ue.U)(()=>{})));for(const wt of ot.children)zt.push(...We(wt));return zt};return(0,de.a)(We(oe.targetSnapshot.root)).pipe((0,x.d)(),(0,ge.q)(1))}),Yr(()=>this.afterPreactivation()),(0,ue.U)(oe=>{const We=function sr(f,d,u){const y=Si(f,d._root,u?u._root:void 0);return new mi(y,d)}(this.routeReuseStrategy,oe.targetSnapshot,oe.currentRouterState);return{...oe,targetRouterState:We}}),(0,ut.b)(oe=>{this.currentUrlTree=oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(oe.urlAfterRedirects,oe.rawUrl),this.routerState=oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,oe),this.browserUrlTree=oe.urlAfterRedirects)}),((f,d,u)=>(0,ue.U)(y=>(new Dn(d,y.targetRouterState,y.currentRouterState,u).activate(f),y)))(this.rootContexts,this.routeReuseStrategy,oe=>this.triggerEvent(oe)),(0,ut.b)({next(){P=!0},complete(){P=!0}}),(0,Bt.x)(()=>{P||B||this.cancelNavigationTransition(w,`Navigation ID ${w.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation?.id===w.id&&(this.currentNavigation=null)}),(0,me.K)(oe=>{if(B=!0,function Ke(f){return f&&f[se]}(oe)){const We=Vn(oe.url);We||(this.navigated=!0,this.restoreHistory(w,!0));const ot=new ye(w.id,this.serializeUrl(w.extractedUrl),oe.message);if(y.next(ot),We){const zt=this.urlHandlingStrategy.merge(oe.url,this.rawUrlTree),wt={skipLocationChange:w.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Oi(w.source)};this.scheduleNavigation(zt,"imperative",null,wt,{resolve:w.resolve,reject:w.reject,promise:w.promise})}else w.resolve(!1)}else{this.restoreHistory(w,!0);const We=new Fe(w.id,this.serializeUrl(w.extractedUrl),oe);y.next(We);try{w.resolve(this.errorHandler(oe))}catch(ot){w.reject(ot)}}return Ie.E}))}))}resetRootComponentType(u){this.rootComponentType=u,this.routerState.root.component=this.rootComponentType}setTransition(u){this.transitions.next({...this.transitions.value,...u})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(u=>{const y="popstate"===u.type?"popstate":"hashchange";"popstate"===y&&setTimeout(()=>{const w={replaceUrl:!0},P=u.state?.navigationId?u.state:null;if(P){const oe={...P};delete oe.navigationId,delete oe.\u0275routerPageId,0!==Object.keys(oe).length&&(w.state=oe)}const B=this.parseUrl(u.url);this.scheduleNavigation(B,y,P,w)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(u){this.events.next(u)}resetConfig(u){this.config=u.map(ft),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(u,y={}){const{relativeTo:w,queryParams:P,fragment:B,queryParamsHandling:oe,preserveFragment:We}=y,ot=w||this.routerState.root,zt=We?this.currentUrlTree.fragment:B;let wt=null;switch(oe){case"merge":wt={...this.currentUrlTree.queryParams,...P};break;case"preserve":wt=this.currentUrlTree.queryParams;break;default:wt=P||null}return null!==wt&&(wt=this.removeEmptyProps(wt)),function Ii(f,d,u,y,w){if(0===u.length)return Lr(d.root,d.root,d.root,y,w);const P=function Ir(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new Ji(!0,0,f);let d=0,u=!1;const y=f.reduce((w,P,B)=>{if("object"==typeof P&&null!=P){if(P.outlets){const oe={};return Jt(P.outlets,(We,ot)=>{oe[ot]="string"==typeof We?We.split("/"):We}),[...w,{outlets:oe}]}if(P.segmentPath)return[...w,P.segmentPath]}return"string"!=typeof P?[...w,P]:0===B?(P.split("/").forEach((oe,We)=>{0==We&&"."===oe||(0==We&&""===oe?u=!0:".."===oe?d++:""!=oe&&w.push(oe))}),w):[...w,P]},[]);return new Ji(u,d,y)}(u);return P.toRoot()?Lr(d.root,d.root,new Re([],{}),y,w):function B(We){const ot=function wr(f,d,u,y){return f.isAbsolute?new mr(d.root,!0,0):-1===y?new mr(u,u===d.root,0):function Ds(f,d,u){let y=f,w=d,P=u;for(;P>w;){if(P-=w,y=y.parent,!y)throw new c.vHH(4005,!1);w=y.segments.length}return new mr(y,!1,w-P)}(u,y+(yi(f.commands[0])?0:1),f.numberOfDoubleDots)}(P,d,f.snapshot?._urlSegment,We),zt=ot.processChildren?Wr(ot.segmentGroup,ot.index,P.commands):es(ot.segmentGroup,ot.index,P.commands);return Lr(d.root,ot.segmentGroup,zt,y,w)}(f.snapshot?._lastPathIndex)}(ot,this.currentUrlTree,u,wt,zt??null)}navigateByUrl(u,y={skipLocationChange:!1}){const w=Vn(u)?u:this.parseUrl(u),P=this.urlHandlingStrategy.merge(w,this.rawUrlTree);return this.scheduleNavigation(P,"imperative",null,y)}navigate(u,y={skipLocationChange:!1}){return function Do(f){for(let d=0;d<f.length;d++){if(null==f[d])throw new c.vHH(4008,!1)}}(u),this.navigateByUrl(this.createUrlTree(u,y),y)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let y;try{y=this.urlSerializer.parse(u)}catch(w){y=this.malformedUriErrorHandler(w,this.urlSerializer,u)}return y}isActive(u,y){let w;if(w=!0===y?{...Is}:!1===y?{...ds}:y,Vn(u))return Ge(this.currentUrlTree,u,w);const P=this.parseUrl(u);return Ge(this.currentUrlTree,P,w)}removeEmptyProps(u){return Object.keys(u).reduce((y,w)=>{const P=u[w];return null!=P&&(y[w]=P),y},{})}processNavigations(){this.navigations.subscribe(u=>{this.navigated=!0,this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId,this.events.next(new Ye(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),u.resolve(!0)},u=>{this.console.warn(`Unhandled Navigation Error: ${u}`)})}scheduleNavigation(u,y,w,P,B){if(this.disposed)return Promise.resolve(!1);let oe,We,ot;B?(oe=B.resolve,We=B.reject,ot=B.promise):ot=new Promise((yn,on)=>{oe=yn,We=on});const zt=++this.navigationId;let wt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(w=this.location.getState()),wt=w&&w.\u0275routerPageId?w.\u0275routerPageId:P.replaceUrl||P.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):wt=0,this.setTransition({id:zt,targetPageId:wt,source:y,restoredState:w,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:u,extras:P,resolve:oe,reject:We,promise:ot,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ot.catch(yn=>Promise.reject(yn))}setBrowserUrl(u,y){const w=this.urlSerializer.serialize(u),P={...y.extras.state,...this.generateNgRouterState(y.id,y.targetPageId)};this.location.isCurrentPathEqualTo(w)||y.extras.replaceUrl?this.location.replaceState(w,"",P):this.location.go(w,"",P)}restoreHistory(u,y=!1){if("computed"===this.canceledNavigationResolution){const w=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===w?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===w&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(w)}else"replace"===this.canceledNavigationResolution&&(y&&this.resetState(u),this.resetUrlToCurrentUrlTree())}resetState(u){this.routerState=u.currentRouterState,this.currentUrlTree=u.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,u.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(u,y){const w=new ye(u.id,this.serializeUrl(u.extractedUrl),y);this.triggerEvent(w),u.resolve(!1)}generateNgRouterState(u,y){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:y}:{navigationId:u}}}return f.\u0275fac=function(u){c.$Z()},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();function Oi(f){return"imperative"!==f}let vr=(()=>{class f{constructor(u,y,w,P,B){this.router=u,this.route=y,this.tabIndexAttribute=w,this.renderer=P,this.el=B,this.commands=null,this.onChanges=new Te.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(u){if(null!=this.tabIndexAttribute)return;const y=this.renderer,w=this.el.nativeElement;null!==u?y.setAttribute(w,"tabindex",u):y.removeAttribute(w,"tabindex")}ngOnChanges(u){this.onChanges.next(this)}set routerLink(u){null!=u?(this.commands=Array.isArray(u)?u:[u],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const u={skipLocationChange:(0,c.D6c)(this.skipLocationChange),replaceUrl:(0,c.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,u),!0}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:(0,c.D6c)(this.preserveFragment)})}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(or),c.Y36(tr),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},f.\u0275dir=c.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(u,y){1&u&&c.NdJ("click",function(){return y.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),f})(),ci=(()=>{class f{constructor(u,y,w){this.router=u,this.route=y,this.locationStrategy=w,this.commands=null,this.href=null,this.onChanges=new Te.x,this.subscription=u.events.subscribe(P=>{P instanceof Ye&&this.updateTargetUrlAndHref()})}set routerLink(u){this.commands=null!=u?Array.isArray(u)?u:[u]:null}ngOnChanges(u){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(u,y,w,P,B){if(0!==u||y||w||P||B||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const oe={skipLocationChange:(0,c.D6c)(this.skipLocationChange),replaceUrl:(0,c.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:(0,c.D6c)(this.preserveFragment)})}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(or),c.Y36(tr),c.Y36(m.S$))},f.\u0275dir=c.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(u,y){1&u&&c.NdJ("click",function(P){return y.onClick(P.button,P.ctrlKey,P.shiftKey,P.altKey,P.metaKey)}),2&u&&c.uIk("target",y.target)("href",y.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),f})(),As=(()=>{class f{constructor(u,y,w,P,B,oe){this.router=u,this.element=y,this.renderer=w,this.cdr=P,this.link=B,this.linkWithHref=oe,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new c.vpe,this.routerEventsSubscription=u.events.subscribe(We=>{We instanceof Ye&&this.update()})}ngAfterContentInit(){(0,R.of)(this.links.changes,this.linksWithHrefs.changes,(0,R.of)(null)).pipe((0,lt.J)()).subscribe(u=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const u=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(y=>!!y).map(y=>y.onChanges);this.linkInputChangesSubscription=(0,te.D)(u).pipe((0,lt.J)()).subscribe(y=>{this.isActive!==this.isLinkActive(this.router)(y)&&this.update()})}set routerLinkActive(u){const y=Array.isArray(u)?u:u.split(" ");this.classes=y.filter(w=>!!w)}ngOnChanges(u){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const u=this.hasActiveLinks();this.isActive!==u&&(this.isActive=u,this.cdr.markForCheck(),this.classes.forEach(y=>{u?this.renderer.addClass(this.element.nativeElement,y):this.renderer.removeClass(this.element.nativeElement,y)}),u&&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(u))})}isLinkActive(u){const y=function fs(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return w=>!!w.urlTree&&u.isActive(w.urlTree,y)}hasActiveLinks(){const u=this.isLinkActive(this.router);return this.link&&u(this.link)||this.linkWithHref&&u(this.linkWithHref)||this.links.some(u)||this.linksWithHrefs.some(u)}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(or),c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(c.sBO),c.Y36(vr,8),c.Y36(ci,8))},f.\u0275dir=c.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(u,y,w){if(1&u&&(c.Suo(w,vr,5),c.Suo(w,ci,5)),2&u){let P;c.iGM(P=c.CRH())&&(y.links=P),c.iGM(P=c.CRH())&&(y.linksWithHrefs=P)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[c.TTD]}),f})();class to{buildTitle(d){let u,y=d.root;for(;void 0!==y;)u=this.getResolvedTitleForRoute(y)??u,y=y.children.find(w=>w.outlet===St);return u}getResolvedTitleForRoute(d){return d.data[bi]}}let Eo=(()=>{class f extends to{constructor(u){super(),this.title=u}updateTitle(u){const y=this.buildTitle(u);void 0!==y&&this.title.setTitle(y)}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(dn.Dx))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();class no{}let Ri=(()=>{class f{constructor(u,y,w,P,B){this.router=u,this.injector=w,this.preloadingStrategy=P,this.loader=B}setUpPreloading(){this.subscription=this.router.events.pipe((0,Je.h)(u=>u instanceof Ye),(0,ve.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,y){const w=[];for(const P of y){P.providers&&!P._injector&&(P._injector=(0,c.MMx)(P.providers,u,`Route: ${P.path}`));const B=P._injector??u,oe=P._loadedInjector??B;P.loadChildren&&!P._loadedRoutes||P.loadComponent&&!P._loadedComponent?w.push(this.preloadConfig(B,P)):(P.children||P._loadedRoutes)&&w.push(this.processRoutes(oe,P.children??P._loadedRoutes))}return(0,te.D)(w).pipe((0,lt.J)())}preloadConfig(u,y){return this.preloadingStrategy.preload(y,()=>{let w;w=y.loadChildren&&void 0===y.canLoad?this.loader.loadChildren(u,y):(0,R.of)(null);const P=w.pipe((0,Ve.z)(B=>null===B?(0,R.of)(void 0):(y._loadedRoutes=B.routes,y._loadedInjector=B.injector,this.processRoutes(B.injector??u,B.routes))));if(y.loadComponent&&!y._loadedComponent){const B=this.loader.loadComponent(y);return(0,te.D)([P,B]).pipe((0,lt.J)())}return P})}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(or),c.LFG(c.Sil),c.LFG(c.lqb),c.LFG(no),c.LFG(Ss))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();const xi=new c.OlP("");let hs=(()=>{class f{constructor(u,y,w={}){this.router=u,this.viewportScroller=y,this.options=w,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},w.scrollPositionRestoration=w.scrollPositionRestoration||"disabled",w.anchorScrolling=w.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(u=>{u instanceof $e?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof Ye&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof _t&&(u.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(u.position):u.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(u.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(u,y){this.router.triggerEvent(new _t(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,y))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(u){c.$Z()},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();const Ki=new c.OlP("ROUTER_CONFIGURATION",{providedIn:"root",factory:()=>({})}),Ps=new c.OlP("ROUTER_FORROOT_GUARD"),ro=new c.OlP(""),Os=[m.Ye,{provide:hn,useClass:rt},{provide:or,useFactory:function _(f,d,u,y,w,P,B={},oe,We,ot,zt){const wt=new or(null,f,d,u,y,w,st(P));return ot&&(wt.urlHandlingStrategy=ot),zt&&(wt.routeReuseStrategy=zt),wt.titleStrategy=We??oe,function a(f,d){f.errorHandler&&(d.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(d.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(d.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(d.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(d.urlUpdateStrategy=f.urlUpdateStrategy),f.canceledNavigationResolution&&(d.canceledNavigationResolution=f.canceledNavigationResolution)}(B,wt),wt},deps:[hn,Gn,m.Ye,c.zs3,c.Sil,Zn,Ki,Eo,[to,new c.FiY],[class Oo{},new c.FiY],[class cs{},new c.FiY]]},Gn,{provide:tr,useFactory:function o(f){return f.routerState.root},deps:[or]},Ss];function Co(){return new c.PXZ("Router",or)}let Rs=(()=>{class f{constructor(u,y){}static forRoot(u,y){return{ngModule:f,providers:[Os,[],so(u),{provide:Ps,useFactory:io,deps:[[or,new c.FiY,new c.tp0]]},{provide:Ki,useValue:y||{}},y?.useHash?{provide:m.S$,useClass:m.Do}:{provide:m.S$,useClass:m.b0},{provide:xi,useFactory:()=>{const f=(0,c.f3M)(or),d=(0,c.f3M)(m.EM),u=(0,c.f3M)(Ki);return u.scrollOffset&&d.setOffset(u.scrollOffset),new hs(f,d,u)}},y?.preloadingStrategy?en(y.preloadingStrategy):[],{provide:c.PXZ,multi:!0,useFactory:Co},y?.initialNavigation?N(y):[],[{provide:S,useFactory:p},{provide:c.tb,multi:!0,useExisting:S}]]}}static forChild(u){return{ngModule:f,providers:[so(u)]}}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(Ps,8),c.LFG(or,8))},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({}),f})();function io(f){return"guarded"}function so(f){return[{provide:c.deG,multi:!0,useValue:f},{provide:Zn,multi:!0,useValue:f}]}function p(){const f=(0,c.f3M)(c.zs3);return d=>{const u=f.get(c.z2F);if(d!==u.components[0])return;const y=f.get(or),w=f.get(q);null===f.get(Ue,null,c.XFs.Optional)&&y.initialNavigation(),f.get(ro,null,c.XFs.Optional)?.setUpPreloading(),f.get(xi,null,c.XFs.Optional)?.init(),y.resetRootComponentType(u.componentTypes[0]),w.next(),w.complete()}}const S=new c.OlP("");function N(f){return["disabled"===f.initialNavigation?[{provide:c.ip1,multi:!0,useFactory:()=>{const f=(0,c.f3M)(or);return()=>{f.setUpLocationChangeListener()}}},{provide:Ue,useValue:"disabled"}]:[],"enabledBlocking"===f.initialNavigation?[{provide:Ue,useValue:"enabledBlocking"},{provide:c.ip1,multi:!0,deps:[c.zs3],useFactory:f=>{const d=f.get(m.V_,Promise.resolve(null));let u=!1;return()=>d.then(()=>new Promise(w=>{const P=f.get(or),B=f.get(q);(function y(w){const P=f.get(or);P.events.pipe((0,Je.h)(B=>B instanceof Ye||B instanceof ye||B instanceof Fe),(0,ue.U)(B=>{if(B instanceof Ye)return!0;const oe=P.navigationId!==B.id,We=B instanceof ye&&-1!==B.reason.indexOf(He);return!(!oe&&!We)&&null}),(0,Je.h)(B=>null!==B),(0,ge.q)(1)).subscribe(()=>{w()})})(()=>{w(!0),u=!0}),P.afterPreactivation=()=>(w(!0),u||B.closed?(0,R.of)(void 0):B),P.initialNavigation()}))}}]:[]]}const q=new c.OlP("",{factory:()=>new Te.x}),Ue=new c.OlP("");function en(f){return[Ri,{provide:ro,useExisting:Ri},{provide:no,useExisting:f}]}},3942:(it,De,b)=>{b.d(De,{Z:()=>xe});var m=b(2090),c=b(4859),F=b(9681),z=b(1877);class U{constructor(Ie,Te){this._delegate=Ie,this.firebase=Te,(0,F._addComponent)(Ie,new c.wA("app-compat",()=>this,"PUBLIC")),this.container=Ie.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ie){this._delegate.automaticDataCollectionEnabled=Ie}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Ie=>{this._delegate.checkDestroyed(),Ie()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,F.deleteApp)(this._delegate)))}_getService(Ie,Te=F._DEFAULT_ENTRY_NAME){var Je;this._delegate.checkDestroyed();const ke=this._delegate.container.getProvider(Ie);return!ke.isInitialized()&&"EXPLICIT"===(null===(Je=ke.getComponent())||void 0===Je?void 0:Je.instantiationMode)&&ke.initialize(),ke.getImmediate({identifier:Te})}_removeServiceInstance(Ie,Te=F._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Ie).clearInstance(Te)}_addComponent(Ie){(0,F._addComponent)(this._delegate,Ie)}_addOrOverwriteComponent(Ie){(0,F._addOrOverwriteComponent)(this._delegate,Ie)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const ee=new m.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."}),R=function te(){const Be=function ie(Be){const Ie={},Te={__esModule:!0,initializeApp:function Ce(ue,W={}){const ge=F.initializeApp(ue,W);if((0,m.r3)(Ie,ge.name))return Ie[ge.name];const H=new Be(ge,Te);return Ie[ge.name]=H,H},app:ke,registerVersion:F.registerVersion,setLogLevel:F.setLogLevel,onLog:F.onLog,apps:null,SDK_VERSION:F.SDK_VERSION,INTERNAL:{registerComponent:function K(ue){const W=ue.name,ge=W.replace("-compat","");if(F._registerComponent(ue)&&"PUBLIC"===ue.type){const H=(ne=ke())=>{if("function"!=typeof ne[ge])throw ee.create("invalid-app-argument",{appName:W});return ne[ge]()};void 0!==ue.serviceProps&&(0,m.ZB)(H,ue.serviceProps),Te[ge]=H,Be.prototype[ge]=function(...ne){return this._getService.bind(this,W).apply(this,ue.multipleInstances?ne:[])}}return"PUBLIC"===ue.type?Te[ge]:null},removeApp:function Je(ue){delete Ie[ue]},useAsService:function le(ue,W){return"serverAuth"===W?null:W},modularAPIs:F}};function ke(ue){if(!(0,m.r3)(Ie,ue=ue||F._DEFAULT_ENTRY_NAME))throw ee.create("no-app",{appName:ue});return Ie[ue]}return Te.default=Te,Object.defineProperty(Te,"apps",{get:function x(){return Object.keys(Ie).map(ue=>Ie[ue])}}),ke.App=Be,Te}(U);return Be.INTERNAL=Object.assign(Object.assign({},Be.INTERNAL),{createFirebaseNamespace:te,extendNamespace:function Ie(Te){(0,m.ZB)(Be,Te)},createSubscribe:m.ne,ErrorFactory:m.LL,deepExtend:m.ZB}),Be}(),L=new z.Yd("@firebase/app-compat");if((0,m.jU)()&&void 0!==self.firebase){L.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const Be=self.firebase.SDK_VERSION;Be&&Be.indexOf("LITE")>=0&&L.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 xe=R;!function Oe(Be){(0,F.registerVersion)("@firebase/app-compat","0.1.37",Be)}()},9681:(it,De,b)=>{b.r(De),b.d(De,{FirebaseError:()=>z.ZR,SDK_VERSION:()=>In,_DEFAULT_ENTRY_NAME:()=>Bt,_addComponent:()=>$e,_addOrOverwriteComponent:()=>Ye,_apps:()=>dn,_clearComponents:()=>Tt,_components:()=>tn,_getProvider:()=>Fe,_registerComponent:()=>ye,_removeServiceInstance:()=>ct,deleteApp:()=>Mt,getApp:()=>Nn,getApps:()=>Un,initializeApp:()=>jn,onLog:()=>Rn,registerVersion:()=>_t,setLogLevel:()=>St});var m=b(5861),c=b(4859),F=b(1877),z=b(2090),U=b(8766);class J{constructor(Ge){this.container=Ge}getPlatformInfoString(){return this.container.getProviders().map(gt=>{if(function ee(pt){return"VERSION"===pt.getComponent()?.type}(gt)){const kt=gt.getImmediate();return`${kt.library}/${kt.version}`}return null}).filter(gt=>gt).join(" ")}}const ie="@firebase/app",R=new F.Yd("@firebase/app"),Bt="[DEFAULT]",lt={[ie]:"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"},dn=new Map,tn=new Map;function $e(pt,Ge){try{pt.container.addComponent(Ge)}catch(gt){R.debug(`Component ${Ge.name} failed to register with FirebaseApp ${pt.name}`,gt)}}function Ye(pt,Ge){pt.container.addOrOverwriteComponent(Ge)}function ye(pt){const Ge=pt.name;if(tn.has(Ge))return R.debug(`There were multiple attempts to register component ${Ge}.`),!1;tn.set(Ge,pt);for(const gt of dn.values())$e(gt,pt);return!0}function Fe(pt,Ge){const gt=pt.container.getProvider("heartbeat").getImmediate({optional:!0});return gt&&gt.triggerHeartbeat(),pt.container.getProvider(Ge)}function ct(pt,Ge,gt=Bt){Fe(pt,Ge).clearInstance(gt)}function Tt(){tn.clear()}const vn=new z.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 Wn{constructor(Ge,gt,kt){this._isDeleted=!1,this._options=Object.assign({},Ge),this._config=Object.assign({},gt),this._name=gt.name,this._automaticDataCollectionEnabled=gt.automaticDataCollectionEnabled,this._container=kt,this.container.addComponent(new c.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ge){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ge}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(Ge){this._isDeleted=Ge}checkDestroyed(){if(this.isDeleted)throw vn.create("app-deleted",{appName:this._name})}}const In="9.12.1";function jn(pt,Ge={}){let gt=pt;"object"!=typeof Ge&&(Ge={name:Ge});const kt=Object.assign({name:Bt,automaticDataCollectionEnabled:!1},Ge),jt=kt.name;if("string"!=typeof jt||!jt)throw vn.create("bad-app-name",{appName:String(jt)});if(gt||(gt=(0,z.aH)()),!gt)throw vn.create("no-options");const rn=dn.get(jt);if(rn){if((0,z.vZ)(gt,rn.options)&&(0,z.vZ)(kt,rn.config))return rn;throw vn.create("duplicate-app",{appName:jt})}const Y=new c.H0(jt);for(const pe of tn.values())Y.addComponent(pe);const V=new Wn(gt,kt,Y);return dn.set(jt,V),V}function Nn(pt=Bt){const Ge=dn.get(pt);if(!Ge&&pt===Bt)return jn();if(!Ge)throw vn.create("no-app",{appName:pt});return Ge}function Un(){return Array.from(dn.values())}function Mt(pt){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,m.Z)(function*(pt){const Ge=pt.name;dn.has(Ge)&&(dn.delete(Ge),yield Promise.all(pt.container.getProviders().map(gt=>gt.delete())),pt.isDeleted=!0)})).apply(this,arguments)}function _t(pt,Ge,gt){var kt;let jt=null!==(kt=lt[pt])&&void 0!==kt?kt:pt;gt&&(jt+=`-${gt}`);const rn=jt.match(/\s|\//),Y=Ge.match(/\s|\//);if(rn||Y){const V=[`Unable to register library "${jt}" with version "${Ge}":`];return rn&&V.push(`library name "${jt}" contains illegal characters (whitespace or "/")`),rn&&Y&&V.push("and"),Y&&V.push(`version name "${Ge}" contains illegal characters (whitespace or "/")`),void R.warn(V.join(" "))}ye(new c.wA(`${jt}-version`,()=>({library:jt,version:Ge}),"VERSION"))}function Rn(pt,Ge){if(null!==pt&&"function"!=typeof pt)throw vn.create("invalid-log-argument");(0,F.Am)(pt,Ge)}function St(pt){(0,F.Ub)(pt)}const He="firebase-heartbeat-store";let se=null;function fe(){return se||(se=(0,U.X3)("firebase-heartbeat-database",1,{upgrade:(pt,Ge)=>{0===Ge&&pt.createObjectStore(He)}}).catch(pt=>{throw vn.create("idb-open",{originalErrorMessage:pt.message})})),se}function Se(){return(Se=(0,m.Z)(function*(pt){var Ge;try{return(yield fe()).transaction(He).objectStore(He).get($t(pt))}catch(gt){if(gt instanceof z.ZR)R.warn(gt.message);else{const kt=vn.create("idb-get",{originalErrorMessage:null===(Ge=gt)||void 0===Ge?void 0:Ge.message});R.warn(kt.message)}}})).apply(this,arguments)}function tt(pt,Ge){return Gt.apply(this,arguments)}function Gt(){return(Gt=(0,m.Z)(function*(pt,Ge){var gt;try{const jt=(yield fe()).transaction(He,"readwrite");return yield jt.objectStore(He).put(Ge,$t(pt)),jt.done}catch(kt){if(kt instanceof z.ZR)R.warn(kt.message);else{const jt=vn.create("idb-set",{originalErrorMessage:null===(gt=kt)||void 0===gt?void 0:gt.message});R.warn(jt.message)}}})).apply(this,arguments)}function $t(pt){return`${pt.name}!${pt.options.appId}`}class Cn{constructor(Ge){this.container=Ge,this._heartbeatsCache=null;const gt=this.container.getProvider("app").getImmediate();this._storage=new Xt(gt),this._heartbeatsCachePromise=this._storage.read().then(kt=>(this._heartbeatsCache=kt,kt))}triggerHeartbeat(){var Ge=this;return(0,m.Z)(function*(){const kt=Ge.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),jt=Jt();if(null===Ge._heartbeatsCache&&(Ge._heartbeatsCache=yield Ge._heartbeatsCachePromise),Ge._heartbeatsCache.lastSentHeartbeatDate!==jt&&!Ge._heartbeatsCache.heartbeats.some(rn=>rn.date===jt))return Ge._heartbeatsCache.heartbeats.push({date:jt,agent:kt}),Ge._heartbeatsCache.heartbeats=Ge._heartbeatsCache.heartbeats.filter(rn=>{const Y=new Date(rn.date).valueOf();return Date.now()-Y<=2592e6}),Ge._storage.overwrite(Ge._heartbeatsCache)})()}getHeartbeatsHeader(){var Ge=this;return(0,m.Z)(function*(){if(null===Ge._heartbeatsCache&&(yield Ge._heartbeatsCachePromise),null===Ge._heartbeatsCache||0===Ge._heartbeatsCache.heartbeats.length)return"";const gt=Jt(),{heartbeatsToSend:kt,unsentEntries:jt}=function Nt(pt,Ge=1024){const gt=[];let kt=pt.slice();for(const jt of pt){const rn=gt.find(Y=>Y.agent===jt.agent);if(rn){if(rn.dates.push(jt.date),Pt(gt)>Ge){rn.dates.pop();break}}else if(gt.push({agent:jt.agent,dates:[jt.date]}),Pt(gt)>Ge){gt.pop();break}kt=kt.slice(1)}return{heartbeatsToSend:gt,unsentEntries:kt}}(Ge._heartbeatsCache.heartbeats),rn=(0,z.L)(JSON.stringify({version:2,heartbeats:kt}));return Ge._heartbeatsCache.lastSentHeartbeatDate=gt,jt.length>0?(Ge._heartbeatsCache.heartbeats=jt,yield Ge._storage.overwrite(Ge._heartbeatsCache)):(Ge._heartbeatsCache.heartbeats=[],Ge._storage.overwrite(Ge._heartbeatsCache)),rn})()}}function Jt(){return(new Date).toISOString().substring(0,10)}class Xt{constructor(Ge){this.app=Ge,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,m.Z)(function*(){return!!(0,z.hl)()&&(0,z.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ge=this;return(0,m.Z)(function*(){return(yield Ge._canUseIndexedDBPromise)&&(yield function Ke(pt){return Se.apply(this,arguments)}(Ge.app))||{heartbeats:[]}})()}overwrite(Ge){var gt=this;return(0,m.Z)(function*(){var kt;if(yield gt._canUseIndexedDBPromise){const rn=yield gt.read();return tt(gt.app,{lastSentHeartbeatDate:null!==(kt=Ge.lastSentHeartbeatDate)&&void 0!==kt?kt:rn.lastSentHeartbeatDate,heartbeats:Ge.heartbeats})}})()}add(Ge){var gt=this;return(0,m.Z)(function*(){var kt;if(yield gt._canUseIndexedDBPromise){const rn=yield gt.read();return tt(gt.app,{lastSentHeartbeatDate:null!==(kt=Ge.lastSentHeartbeatDate)&&void 0!==kt?kt:rn.lastSentHeartbeatDate,heartbeats:[...rn.heartbeats,...Ge.heartbeats]})}})()}}function Pt(pt){return(0,z.L)(JSON.stringify({version:2,heartbeats:pt})).length}!function er(pt){ye(new c.wA("platform-logger",Ge=>new J(Ge),"PRIVATE")),ye(new c.wA("heartbeat",Ge=>new Cn(Ge),"PRIVATE")),_t(ie,"0.8.2",pt),_t(ie,"0.8.2","esm2017"),_t("fire-js","")}("")},4859:(it,De,b)=>{b.d(De,{H0:()=>ie,wA:()=>F});var m=b(5861),c=b(2090);class F{constructor(R,L,de){this.name=R,this.instanceFactory=L,this.type=de,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(R){return this.instantiationMode=R,this}setMultipleInstances(R){return this.multipleInstances=R,this}setServiceProps(R){return this.serviceProps=R,this}setInstanceCreatedCallback(R){return this.onInstanceCreated=R,this}}const z="[DEFAULT]";class U{constructor(R,L){this.name=R,this.container=L,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(R){const L=this.normalizeInstanceIdentifier(R);if(!this.instancesDeferred.has(L)){const de=new c.BH;if(this.instancesDeferred.set(L,de),this.isInitialized(L)||this.shouldAutoInitialize())try{const je=this.getOrInitializeService({instanceIdentifier:L});je&&de.resolve(je)}catch{}}return this.instancesDeferred.get(L).promise}getImmediate(R){var L;const de=this.normalizeInstanceIdentifier(R?.identifier),je=null!==(L=R?.optional)&&void 0!==L&&L;if(!this.isInitialized(de)&&!this.shouldAutoInitialize()){if(je)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:de})}catch(Oe){if(je)return null;throw Oe}}getComponent(){return this.component}setComponent(R){if(R.name!==this.name)throw Error(`Mismatching Component ${R.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=R,this.shouldAutoInitialize()){if(function ee(te){return"EAGER"===te.instantiationMode}(R))try{this.getOrInitializeService({instanceIdentifier:z})}catch{}for(const[L,de]of this.instancesDeferred.entries()){const je=this.normalizeInstanceIdentifier(L);try{const Oe=this.getOrInitializeService({instanceIdentifier:je});de.resolve(Oe)}catch{}}}}clearInstance(R=z){this.instancesDeferred.delete(R),this.instancesOptions.delete(R),this.instances.delete(R)}delete(){var R=this;return(0,m.Z)(function*(){const L=Array.from(R.instances.values());yield Promise.all([...L.filter(de=>"INTERNAL"in de).map(de=>de.INTERNAL.delete()),...L.filter(de=>"_delete"in de).map(de=>de._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(R=z){return this.instances.has(R)}getOptions(R=z){return this.instancesOptions.get(R)||{}}initialize(R={}){const{options:L={}}=R,de=this.normalizeInstanceIdentifier(R.instanceIdentifier);if(this.isInitialized(de))throw Error(`${this.name}(${de}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const je=this.getOrInitializeService({instanceIdentifier:de,options:L});for(const[Oe,xe]of this.instancesDeferred.entries())de===this.normalizeInstanceIdentifier(Oe)&&xe.resolve(je);return je}onInit(R,L){var de;const je=this.normalizeInstanceIdentifier(L),Oe=null!==(de=this.onInitCallbacks.get(je))&&void 0!==de?de:new Set;Oe.add(R),this.onInitCallbacks.set(je,Oe);const xe=this.instances.get(je);return xe&&R(xe,je),()=>{Oe.delete(R)}}invokeOnInitCallbacks(R,L){const de=this.onInitCallbacks.get(L);if(de)for(const je of de)try{je(R,L)}catch{}}getOrInitializeService({instanceIdentifier:R,options:L={}}){let de=this.instances.get(R);if(!de&&this.component&&(de=this.component.instanceFactory(this.container,{instanceIdentifier:(te=R,te===z?void 0:te),options:L}),this.instances.set(R,de),this.instancesOptions.set(R,L),this.invokeOnInitCallbacks(de,R),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,R,de)}catch{}var te;return de||null}normalizeInstanceIdentifier(R=z){return this.component?this.component.multipleInstances?R:z:R}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ie{constructor(R){this.name=R,this.providers=new Map}addComponent(R){const L=this.getProvider(R.name);if(L.isComponentSet())throw new Error(`Component ${R.name} has already been registered with ${this.name}`);L.setComponent(R)}addOrOverwriteComponent(R){this.getProvider(R.name).isComponentSet()&&this.providers.delete(R.name),this.addComponent(R)}getProvider(R){if(this.providers.has(R))return this.providers.get(R);const L=new U(R,this);return this.providers.set(R,L),L}getProviders(){return Array.from(this.providers.values())}}},1877:(it,De,b)=>{b.d(De,{Am:()=>te,Ub:()=>ie,Yd:()=>ee,in:()=>c});const m=[];var c=(()=>{return(R=c||(c={}))[R.DEBUG=0]="DEBUG",R[R.VERBOSE=1]="VERBOSE",R[R.INFO=2]="INFO",R[R.WARN=3]="WARN",R[R.ERROR=4]="ERROR",R[R.SILENT=5]="SILENT",c;var R})();const F={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},z=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},J=(R,L,...de)=>{if(L<R.logLevel)return;const je=(new Date).toISOString(),Oe=U[L];if(!Oe)throw new Error(`Attempted to log a message with an invalid logType (value: ${L})`);console[Oe](`[${je}] ${R.name}:`,...de)};class ee{constructor(L){this.name=L,this._logLevel=z,this._logHandler=J,this._userLogHandler=null,m.push(this)}get logLevel(){return this._logLevel}set logLevel(L){if(!(L in c))throw new TypeError(`Invalid value "${L}" assigned to \`logLevel\``);this._logLevel=L}setLogLevel(L){this._logLevel="string"==typeof L?F[L]:L}get logHandler(){return this._logHandler}set logHandler(L){if("function"!=typeof L)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=L}get userLogHandler(){return this._userLogHandler}set userLogHandler(L){this._userLogHandler=L}debug(...L){this._userLogHandler&&this._userLogHandler(this,c.DEBUG,...L),this._logHandler(this,c.DEBUG,...L)}log(...L){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...L),this._logHandler(this,c.VERBOSE,...L)}info(...L){this._userLogHandler&&this._userLogHandler(this,c.INFO,...L),this._logHandler(this,c.INFO,...L)}warn(...L){this._userLogHandler&&this._userLogHandler(this,c.WARN,...L),this._logHandler(this,c.WARN,...L)}error(...L){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...L),this._logHandler(this,c.ERROR,...L)}}function ie(R){m.forEach(L=>{L.setLogLevel(R)})}function te(R,L){for(const de of m){let je=null;L&&L.level&&(je=F[L.level]),de.userLogHandler=null===R?null:(Oe,xe,...Be)=>{const Ie=Be.map(Te=>{if(null==Te)return null;if("string"==typeof Te)return Te;if("number"==typeof Te||"boolean"==typeof Te)return Te.toString();if(Te instanceof Error)return Te.message;try{return JSON.stringify(Te)}catch{return null}}).filter(Te=>Te).join(" ");xe>=(je??Oe.logLevel)&&R({level:c[xe].toLowerCase(),message:Ie,args:Be,type:Oe.name})}}}},8766:(it,De,b)=>{b.d(De,{Lj:()=>Ce,X3:()=>ke});var m=b(5861);let F,z;const ee=new WeakMap,ie=new WeakMap,te=new WeakMap,R=new WeakMap,L=new WeakMap;let Oe={get(W,ge,H){if(W instanceof IDBTransaction){if("done"===ge)return ie.get(W);if("objectStoreNames"===ge)return W.objectStoreNames||te.get(W);if("store"===ge)return H.objectStoreNames[1]?void 0:H.objectStore(H.objectStoreNames[0])}return Te(W[ge])},set:(W,ge,H)=>(W[ge]=H,!0),has:(W,ge)=>W instanceof IDBTransaction&&("done"===ge||"store"===ge)||ge in W};function Ie(W){return"function"==typeof W?function Be(W){return W!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function J(){return z||(z=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(W)?function(...ge){return W.apply(Je(this),ge),Te(ee.get(this))}:function(...ge){return Te(W.apply(Je(this),ge))}:function(ge,...H){const ne=W.call(Je(this),ge,...H);return te.set(ne,ge.sort?ge.sort():[ge]),Te(ne)}}(W):(W instanceof IDBTransaction&&function je(W){if(ie.has(W))return;const ge=new Promise((H,ne)=>{const me=()=>{W.removeEventListener("complete",ve),W.removeEventListener("error",_e),W.removeEventListener("abort",_e)},ve=()=>{H(),me()},_e=()=>{ne(W.error||new DOMException("AbortError","AbortError")),me()};W.addEventListener("complete",ve),W.addEventListener("error",_e),W.addEventListener("abort",_e)});ie.set(W,ge)}(W),((W,ge)=>ge.some(H=>W instanceof H))(W,function U(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(W,Oe):W)}function Te(W){if(W instanceof IDBRequest)return function de(W){const ge=new Promise((H,ne)=>{const me=()=>{W.removeEventListener("success",ve),W.removeEventListener("error",_e)},ve=()=>{H(Te(W.result)),me()},_e=()=>{ne(W.error),me()};W.addEventListener("success",ve),W.addEventListener("error",_e)});return ge.then(H=>{H instanceof IDBCursor&&ee.set(H,W)}).catch(()=>{}),L.set(ge,W),ge}(W);if(R.has(W))return R.get(W);const ge=Ie(W);return ge!==W&&(R.set(W,ge),L.set(ge,W)),ge}const Je=W=>L.get(W);function ke(W,ge,{blocked:H,upgrade:ne,blocking:me,terminated:ve}={}){const _e=indexedDB.open(W,ge),Ve=Te(_e);return ne&&_e.addEventListener("upgradeneeded",ut=>{ne(Te(_e.result),ut.oldVersion,ut.newVersion,Te(_e.transaction))}),H&&_e.addEventListener("blocked",()=>H()),Ve.then(ut=>{ve&&ut.addEventListener("close",()=>ve()),me&&ut.addEventListener("versionchange",()=>me())}).catch(()=>{}),Ve}function Ce(W,{blocked:ge}={}){const H=indexedDB.deleteDatabase(W);return ge&&H.addEventListener("blocked",()=>ge()),Te(H).then(()=>{})}const x=["get","getKey","getAll","getAllKeys","count"],K=["put","add","delete","clear"],le=new Map;function ue(W,ge){if(!(W instanceof IDBDatabase)||ge in W||"string"!=typeof ge)return;if(le.get(ge))return le.get(ge);const H=ge.replace(/FromIndex$/,""),ne=ge!==H,me=K.includes(H);if(!(H in(ne?IDBIndex:IDBObjectStore).prototype)||!me&&!x.includes(H))return;const ve=function(){var _e=(0,m.Z)(function*(Ve,...ut){const qt=this.transaction(Ve,me?"readwrite":"readonly");let Bt=qt.store;return ne&&(Bt=Bt.index(ut.shift())),(yield Promise.all([Bt[H](...ut),me&&qt.done]))[0]});return function(ut){return _e.apply(this,arguments)}}();return le.set(ge,ve),ve}!function xe(W){Oe=W(Oe)}(W=>({...W,get:(ge,H,ne)=>ue(ge,H)||W.get(ge,H,ne),has:(ge,H)=>!!ue(ge,H)||W.has(ge,H)}))},5421:(it,De,b)=>{b.d(De,{Cz:()=>Je,ys:()=>Te});var m=b(5861),c=b(4650),F=b(6895),z=b(8306),U=b(8996),J=b(9841),ee=b(7579),ie=b(5698);function te(ke,Ce,x,K){return new Promise((le,ue)=>{ke||ue("IndexedDB not available");const W=ke.open(Ce,x);let ge;W.onsuccess=H=>{ge=W.result,le(ge)},W.onerror=H=>{ue(`IndexedDB error: ${W.error}`)},"function"==typeof K&&(W.onupgradeneeded=H=>{K(H,ge)})})}function R(ke,Ce,x,K,le){if(!ke)return;const ue=ke.open(Ce,x);ue.onupgradeneeded=W=>{const ge=W.target.result;K.forEach(ne=>{if(!ge.objectStoreNames.contains(ne.store)){const me=ge.createObjectStore(ne.store,ne.storeConfig);ne.storeSchema.forEach(ve=>{me.createIndex(ve.name,ve.keypath,ve.options)})}});const H=le&&le();H&&Object.keys(H).map(ne=>parseInt(ne,10)).filter(ne=>ne>W.oldVersion).sort((ne,me)=>ne-me).forEach(ne=>{H[ne](ge,ue.transaction)}),ge.close()},ue.onsuccess=W=>{W.target.result.close()}}function je(ke,Ce,x){ke||x("You need to use the openDatabase function to create a database before you query it!"),function de(ke,Ce){return ke.objectStoreNames.contains(Ce)}(ke,Ce)||x(`objectStore does not exists: ${Ce}`)}function Oe(ke,Ce){const x=ke.transaction(Ce.storeName,Ce.dbMode);return x.onerror=Ce.error,x.onabort=Ce.abort,x}function xe(ke,Ce,x,K){return{storeName:Ce,dbMode:ke,error:le=>{x(le)},abort:le=>{x(le)}}}var Be=(()=>{return(ke=Be||(Be={})).readonly="readonly",ke.readwrite="readwrite",Be;var ke})();const Ie=new c.OlP(null);let Te=(()=>{class ke{constructor(x,K){if(this.dbConfig=x,this.platformId=K,!x.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!x.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=(0,F.NF)(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,R(this.indexedDB,x.name,x.version,x.objectStoresMeta,x.migrationFactory),te(this.indexedDB,x.name).then(le=>{le.version!==x.version&&(this.dbConfig.version=le.version)}))}createObjectStore(x,K){const le=[x];R(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,le,K)}add(x,K,le){return new z.y(ue=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(W=>{const H=Oe(W,xe(Be.readwrite,x,me=>ue.error(me))).objectStore(x);(Boolean(le)?H.add(K,le):H.add(K)).onsuccess=function(){var me=(0,m.Z)(function*(ve){H.get(ve.target.result).onsuccess=ut=>{ue.next(ut.target.result),ue.complete()}});return function(ve){return me.apply(this,arguments)}}()}).catch(W=>ue.error(W))})}bulkAdd(x,K){const le=new Promise((ue,W)=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{const ne=Oe(ge,xe(Be.readwrite,x,ue)).objectStore(x),me=K.map(ve=>new Promise((_e,Ve)=>{const ut=ve.key;delete ve.key,(Boolean(ut)?ne.add(ve,ut):ne.add(ve)).onsuccess=Bt=>{_e(Bt.target.result)}}));ue(Promise.all(me))}).catch(ge=>W(ge))});return(0,U.D)(le)}bulkDelete(x,K){const le=K.map(ue=>new Promise((W,ge)=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(H=>{const ne=Oe(H,xe(Be.readwrite,x,ge));ne.objectStore(x).delete(ue),ne.oncomplete=()=>{this.getAll(x).pipe((0,ie.q)(1)).subscribe(ve=>{W(ve)})}}).catch(H=>ge(H))}));return(0,U.D)(Promise.all(le))}getByKey(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{const H=Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x).get(K);H.onsuccess=ne=>{le.next(ne.target.result),le.complete()},H.onerror=ne=>{le.error(ne)}}).catch(ue=>le.error(ue))})}bulkGet(x,K){const le=K.map(ue=>this.getByKey(x,ue));return new z.y(ue=>{(0,J.a)(le).subscribe(W=>{ue.next(W),ue.complete()})})}getByID(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne)),Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x).get(K).onsuccess=ne=>{le.next(ne.target.result)}}).catch(ue=>le.error(ue))})}getByIndex(x,K,le){return new z.y(ue=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(W=>{je(W,x,ve=>ue.error(ve)),Oe(W,xe(Be.readonly,x,ue.error)).objectStore(x).index(K).get(le).onsuccess=ve=>{ue.next(ve.target.result),ue.complete()}}).catch(W=>ue.error(W))})}getAll(x){return new z.y(K=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(le=>{je(le,x,H=>K.error(H));const ge=Oe(le,xe(Be.readonly,x,K.error)).objectStore(x).getAll();ge.onerror=H=>{K.error(H)},ge.onsuccess=({target:{result:H}})=>{K.next(H),K.complete()}}).catch(le=>K.error(le))})}update(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne));const ge=Oe(ue,xe(Be.readwrite,x,ne=>le.error(ne))).objectStore(x);ge.put(K).onsuccess=function(){var ne=(0,m.Z)(function*(me){ge.get(me.target.result).onsuccess=Ve=>{le.next(Ve.target.result),le.complete()}});return function(me){return ne.apply(this,arguments)}}()}).catch(ue=>le.error(ue))})}delete(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,H=>le.error(H));const W=Oe(ue,xe(Be.readwrite,x,H=>le.error(H)));W.objectStore(x).delete(K),W.oncomplete=()=>{this.getAll(x).pipe((0,ie.q)(1)).subscribe(H=>{le.next(H),le.complete()})}}).catch(ue=>le.error(ue))})}deleteByKey(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,H=>le.error(H));const W=Oe(ue,xe(Be.readwrite,x,H=>le.error(H))),ge=W.objectStore(x);W.oncomplete=()=>{le.next(!0),le.complete()},ge.delete(K)}).catch(ue=>le.error(ue))})}clear(x){return new z.y(K=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(le=>{je(le,x,ge=>K.error(ge));const ue=Oe(le,xe(Be.readwrite,x,ge=>K.error(ge)));ue.objectStore(x).clear(),ue.oncomplete=()=>{K.next(!0),K.complete()}}).catch(le=>K.error(le))})}deleteDatabase(){var x=this;return new z.y(K=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(function(){var le=(0,m.Z)(function*(ue){yield ue.close();const W=x.indexedDB.deleteDatabase(x.dbConfig.name);W.onsuccess=()=>{K.next(!0),K.complete()},W.onerror=ge=>K.error(ge),W.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}});return function(ue){return le.apply(this,arguments)}}()).catch(le=>K.error(le))})}openCursor(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne));const ge=Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x);(void 0===K?ge.openCursor():ge.openCursor(K)).onsuccess=ne=>{le.next(ne),le.complete()}}).catch(ue=>le.error(ue))})}openCursorByIndex(x,K,le,ue=Be.readonly){const W=new ee.x;return te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{je(ge,x,_e=>{W.error(_e)}),Oe(ge,xe(ue,x,_e=>{W.error(_e)})).objectStore(x).index(K).openCursor(le).onsuccess=_e=>{W.next(_e)}}).catch(ge=>W.error(ge)),W}getAllByIndex(x,K,le){const ue=[];return new z.y(W=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{je(ge,x,_e=>W.error(_e)),Oe(ge,xe(Be.readonly,x,W.error)).objectStore(x).index(K).openCursor(le).onsuccess=_e=>{const Ve=_e.target.result;Ve?(ue.push(Ve.value),Ve.continue()):(W.next(ue),W.complete())}}).catch(ge=>W.error(ge))})}getAllKeysByIndex(x,K,le){const ue=[];return new z.y(W=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{je(ge,x,_e=>W.error(_e)),Oe(ge,xe(Be.readonly,x,W.error)).objectStore(x).index(K).openKeyCursor(le).onsuccess=_e=>{const Ve=_e.target.result;Ve?(ue.push({primaryKey:Ve.primaryKey,key:Ve.key}),Ve.continue()):(W.next(ue),W.complete())}}).catch(ge=>W.error(ge))})}count(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne));const H=Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x).count(K);H.onerror=ne=>le.error(ne),H.onsuccess=ne=>{le.next(ne.target.result),le.complete()}}).catch(ue=>le.error(ue))})}countByIndex(x,K,le){return new z.y(ue=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(W=>{je(W,x,ve=>ue.error(ve));const me=Oe(W,xe(Be.readonly,x,ue.error)).objectStore(x).index(K).count(le);me.onerror=ve=>ue.error(ve),me.onsuccess=ve=>{ue.next(ve.target.result),ue.complete()}}).catch(W=>ue.error(W))})}deleteObjectStore(x){return function L(ke,Ce,x){if(!ke||!Ce||!x)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new z.y(K=>{try{const ue=indexedDB.open(ke,Ce+1);ue.onupgradeneeded=W=>{const ge=W.target.result;ge.deleteObjectStore(x),ge.close(),console.log("onupgradeneeded"),K.next(!0),K.complete()},ue.onerror=W=>K.error(W)}catch(le){K.error(le)}})}(this.dbConfig.name,++this.dbConfig.version,x)}}return ke.\u0275fac=function(x){return new(x||ke)(c.LFG(Ie),c.LFG(c.Lbi))},ke.\u0275prov=c.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Je=(()=>{class ke{static forRoot(x){return{ngModule:ke,providers:[Te,{provide:Ie,useValue:x}]}}}return ke.\u0275fac=function(x){return new(x||ke)},ke.\u0275mod=c.oAB({type:ke}),ke.\u0275inj=c.cJS({imports:[[F.ez]]}),ke})()},7185:(it,De,b)=>{b.d(De,{FN:()=>Ve,PR:()=>K,Rh:()=>qt,_W:()=>_e});var m=b(4650),c=b(7340),F=b(7579),z=b(6895),U=b(1481);const J=["toast-component",""];function ee($e,Ye){if(1&$e){const ye=m.EpF();m.TgZ(0,"button",5),m.NdJ("click",function(){m.CHM(ye);const ct=m.oxw();return m.KtG(ct.remove())}),m.TgZ(1,"span",6),m._uU(2,"\xd7"),m.qZA()()}}function ie($e,Ye){if(1&$e&&(m.ynx(0),m._uU(1),m.BQk()),2&$e){const ye=m.oxw(2);m.xp6(1),m.hij("[",ye.duplicatesCount+1,"]")}}function te($e,Ye){if(1&$e&&(m.TgZ(0,"div"),m._uU(1),m.YNc(2,ie,2,1,"ng-container",4),m.qZA()),2&$e){const ye=m.oxw();m.Tol(ye.options.titleClass),m.uIk("aria-label",ye.title),m.xp6(1),m.hij(" ",ye.title," "),m.xp6(1),m.Q6J("ngIf",ye.duplicatesCount)}}function R($e,Ye){if(1&$e&&m._UZ(0,"div",7),2&$e){const ye=m.oxw();m.Tol(ye.options.messageClass),m.Q6J("innerHTML",ye.message,m.oJD)}}function L($e,Ye){if(1&$e&&(m.TgZ(0,"div",8),m._uU(1),m.qZA()),2&$e){const ye=m.oxw();m.Tol(ye.options.messageClass),m.uIk("aria-label",ye.message),m.xp6(1),m.hij(" ",ye.message," ")}}function de($e,Ye){if(1&$e&&(m.TgZ(0,"div"),m._UZ(1,"div",9),m.qZA()),2&$e){const ye=m.oxw();m.xp6(1),m.Udp("width",ye.width+"%")}}class Ce{constructor(Ye,ye){this.component=Ye,this.injector=ye}attach(Ye,ye){return this._attachedHost=Ye,Ye.attach(this,ye)}detach(){const Ye=this._attachedHost;if(Ye)return this._attachedHost=void 0,Ye.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ye){this._attachedHost=Ye}}class K{constructor(Ye,ye,Fe,ct,Tt,nn){this.toastId=Ye,this.config=ye,this.message=Fe,this.title=ct,this.toastType=Tt,this.toastRef=nn,this._onTap=new F.x,this._onAction=new F.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(Ye){this._onAction.next(Ye)}onAction(){return this._onAction.asObservable()}}const ue=new m.OlP("ToastConfig");class W{constructor(Ye){this._overlayRef=Ye,this.duplicatesCount=0,this._afterClosed=new F.x,this._activate=new F.x,this._manualClose=new F.x,this._resetTimeout=new F.x,this._countDuplicate=new F.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(Ye,ye){Ye&&this._resetTimeout.next(),ye&&this._countDuplicate.next(++this.duplicatesCount)}}class ge{constructor(Ye,ye){this._toastPackage=Ye,this._parentInjector=ye}get(Ye,ye,Fe){return Ye===K?this._toastPackage:this._parentInjector.get(Ye,ye,Fe)}}class H extends class x{attach(Ye,ye){return this._attachedPortal=Ye,this.attachComponentPortal(Ye,ye)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ye){this._disposeFn=Ye}}{constructor(Ye,ye,Fe){super(),this._hostDomElement=Ye,this._componentFactoryResolver=ye,this._appRef=Fe}attachComponentPortal(Ye,ye){const Fe=this._componentFactoryResolver.resolveComponentFactory(Ye.component);let ct;return ct=Fe.create(Ye.injector),this._appRef.attachView(ct.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ct.hostView),ct.destroy()}),ye?this._hostDomElement.insertBefore(this._getComponentRootNode(ct),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ct)),ct}_getComponentRootNode(Ye){return Ye.hostView.rootNodes[0]}}class ne{constructor(Ye){this._portalHost=Ye}attach(Ye,ye=!0){return this._portalHost.attach(Ye,ye)}detach(){return this._portalHost.detach()}}let me=(()=>{class $e{constructor(ye){this._document=ye}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ye=this._document.createElement("div");ye.classList.add("overlay-container"),ye.setAttribute("aria-live","polite"),this._document.body.appendChild(ye),this._containerElement=ye}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.LFG(z.K0))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ve=(()=>{class $e{constructor(ye,Fe,ct,Tt){this._overlayContainer=ye,this._componentFactoryResolver=Fe,this._appRef=ct,this._document=Tt,this._paneElements=new Map}create(ye,Fe){return this._createOverlayRef(this.getPaneElement(ye,Fe))}getPaneElement(ye="",Fe){return this._paneElements.get(Fe)||this._paneElements.set(Fe,{}),this._paneElements.get(Fe)[ye]||(this._paneElements.get(Fe)[ye]=this._createPaneElement(ye,Fe)),this._paneElements.get(Fe)[ye]}_createPaneElement(ye,Fe){const ct=this._document.createElement("div");return ct.id="toast-container",ct.classList.add(ye),ct.classList.add("toast-container"),Fe?Fe.getContainerElement().appendChild(ct):this._overlayContainer.getContainerElement().appendChild(ct),ct}_createPortalHost(ye){return new H(ye,this._componentFactoryResolver,this._appRef)}_createOverlayRef(ye){return new ne(this._createPortalHost(ye))}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.LFG(me),m.LFG(m._Vd),m.LFG(m.z2F),m.LFG(z.K0))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),_e=(()=>{class $e{constructor(ye,Fe,ct,Tt,nn){this.overlay=Fe,this._injector=ct,this.sanitizer=Tt,this.ngZone=nn,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...ye.default,...ye.config},ye.config.iconClasses&&(this.toastrConfig.iconClasses={...ye.default.iconClasses,...ye.config.iconClasses})}show(ye,Fe,ct={},Tt=""){return this._preBuildNotification(Tt,ye,Fe,this.applyConfig(ct))}success(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",ye,Fe,this.applyConfig(ct))}error(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",ye,Fe,this.applyConfig(ct))}info(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",ye,Fe,this.applyConfig(ct))}warning(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",ye,Fe,this.applyConfig(ct))}clear(ye){for(const Fe of this.toasts)if(void 0!==ye){if(Fe.toastId===ye)return void Fe.toastRef.manualClose()}else Fe.toastRef.manualClose()}remove(ye){const Fe=this._findToast(ye);if(!Fe||(Fe.activeToast.toastRef.close(),this.toasts.splice(Fe.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(ye="",Fe="",ct,Tt){const{includeTitleDuplicates:nn}=this.toastrConfig;for(const vn of this.toasts){const Wn=nn&&vn.title===ye;if((!nn||Wn)&&vn.message===Fe)return vn.toastRef.onDuplicate(ct,Tt),vn}return null}applyConfig(ye={}){return{...this.toastrConfig,...ye}}_findToast(ye){for(let Fe=0;Fe<this.toasts.length;Fe++)if(this.toasts[Fe].toastId===ye)return{index:Fe,activeToast:this.toasts[Fe]};return null}_preBuildNotification(ye,Fe,ct,Tt){return Tt.onActivateTick?this.ngZone.run(()=>this._buildNotification(ye,Fe,ct,Tt)):this._buildNotification(ye,Fe,ct,Tt)}_buildNotification(ye,Fe,ct,Tt){if(!Tt.toastComponent)throw new Error("toastComponent required");const nn=this.findDuplicate(ct,Fe,this.toastrConfig.resetTimeoutOnDuplicate&&Tt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&ct||Fe)&&this.toastrConfig.preventDuplicates&&null!==nn)return nn;this.previousToastMessage=Fe;let vn=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(vn=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Wn=this.overlay.create(Tt.positionClass,this.overlayContainer);this.index=this.index+1;let In=Fe;Fe&&Tt.enableHtml&&(In=this.sanitizer.sanitize(m.q3G.HTML,Fe));const jn=new W(Wn),Nn=new K(this.index,Tt,In,ct,ye,jn),Un=new ge(Nn,this._injector),Mt=new Ce(Tt.toastComponent,Un),Hn=Wn.attach(Mt,this.toastrConfig.newestOnTop);jn.componentInstance=Hn.instance;const _t={toastId:this.index,title:ct||"",message:Fe||"",toastRef:jn,onShown:jn.afterActivate(),onHidden:jn.afterClosed(),onTap:Nn.onTap(),onAction:Nn.onAction(),portal:Hn};return vn||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{_t.toastRef.activate()})),this.toasts.push(_t),_t}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.LFG(ue),m.LFG(ve),m.LFG(m.zs3),m.LFG(U.H7),m.LFG(m.R0b))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),Ve=(()=>{class $e{constructor(ye,Fe,ct){this.toastrService=ye,this.toastPackage=Fe,this.ngZone=ct,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=Fe.message,this.title=Fe.title,this.options=Fe.config,this.originalTimeout=Fe.config.timeOut,this.toastClasses=`${Fe.toastType} ${Fe.config.toastClass}`,this.sub=Fe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Fe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Fe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Fe.toastRef.countDuplicate().subscribe(Tt=>{this.duplicatesCount=Tt})}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 ye=(new Date).getTime();this.width=(this.hideTime-ye)/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&&(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(ye,Fe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(ye),Fe)):this.timeout=setTimeout(()=>ye(),Fe)}outsideInterval(ye,Fe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(ye),Fe)):this.intervalId=setInterval(()=>ye(),Fe)}runInsideAngular(ye){this.ngZone?this.ngZone.run(()=>ye()):ye()}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.Y36(_e),m.Y36(K),m.Y36(m.R0b))},$e.\u0275cmp=m.Xpm({type:$e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(ye,Fe){1&ye&&m.NdJ("click",function(){return Fe.tapToast()})("mouseenter",function(){return Fe.stickAround()})("mouseleave",function(){return Fe.delayedHideToast()}),2&ye&&(m.d8E("@flyInOut",Fe.state),m.Tol(Fe.toastClasses),m.Udp("display",Fe.displayStyle))},attrs:J,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(ye,Fe){1&ye&&(m.YNc(0,ee,3,0,"button",0),m.YNc(1,te,3,5,"div",1),m.YNc(2,R,1,3,"div",2),m.YNc(3,L,2,4,"div",3),m.YNc(4,de,2,2,"div",4)),2&ye&&(m.Q6J("ngIf",Fe.options.closeButton),m.xp6(1),m.Q6J("ngIf",Fe.title),m.xp6(1),m.Q6J("ngIf",Fe.message&&Fe.options.enableHtml),m.xp6(1),m.Q6J("ngIf",Fe.message&&!Fe.options.enableHtml),m.xp6(1),m.Q6J("ngIf",Fe.options.progressBar))},dependencies:[z.O5],encapsulation:2,data:{animation:[(0,c.X$)("flyInOut",[(0,c.SB)("inactive",(0,c.oB)({opacity:0})),(0,c.SB)("active",(0,c.oB)({opacity:1})),(0,c.SB)("removed",(0,c.oB)({opacity:0})),(0,c.eR)("inactive => active",(0,c.jt)("{{ easeTime }}ms {{ easing }}")),(0,c.eR)("active => removed",(0,c.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),$e})();const ut={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:Ve};let qt=(()=>{class $e{static forRoot(ye={}){return{ngModule:$e,providers:[{provide:ue,useValue:{default:ut,config:ye}}]}}}return $e.\u0275fac=function(ye){return new(ye||$e)},$e.\u0275mod=m.oAB({type:$e}),$e.\u0275inj=m.cJS({imports:[z.ez]}),$e})()},5861:(it,De,b)=>{function m(F,z,U,J,ee,ie,te){try{var R=F[ie](te),L=R.value}catch(de){return void U(de)}R.done?z(L):Promise.resolve(L).then(J,ee)}function c(F){return function(){var z=this,U=arguments;return new Promise(function(J,ee){var ie=F.apply(z,U);function te(L){m(ie,J,ee,te,R,"next",L)}function R(L){m(ie,J,ee,te,R,"throw",L)}te(void 0)})}}b.d(De,{Z:()=>c})}},it=>{it(it.s=5059)}]);
1
+ "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[179],{7899:(it,De,b)=>{b.d(De,{zQ:()=>ns,ww:()=>Ei});var m=b(4650),c=b(7579),F=b(9646),z=b(8306),U=b(8996),J=b(6451),ee=b(3900),ie=b(576);function te(Z,ae){return(0,ie.m)(ae)?(0,ee.w)(()=>Z,ae):(0,ee.w)(()=>Z)}var R=b(5363),L=b(4004),de=b(4782),je=b(590),Oe=b(9468),xe=b(9300),Be=b(5813),Ie=b(2011),Te=b(6895);b(5867);var lt=b(5861),dn=b(9681),tn=b(4859),$e=b(2090),Ye=b(1877);const ye=new Map,Fe={activated:!1,tokenObservers:[]},ct={initialized:!1,enabled:!1};function Tt(Z){return ye.get(Z)||Fe}function nn(Z,ae){ye.set(Z,ae)}function vn(){return ct}class Hn{constructor(ae,Ae,ze,nt,ft){if(this.operation=ae,this.retryPolicy=Ae,this.getWaitDuration=ze,this.lowerBound=nt,this.upperBound=ft,this.pending=null,this.nextErrorWaitInterval=nt,nt>ft)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(ae){var Ae=this;return(0,lt.Z)(function*(){Ae.stop();try{Ae.pending=new $e.BH,yield function _t(Z){return new Promise(ae=>{setTimeout(ae,Z)})}(Ae.getNextRun(ae)),Ae.pending.resolve(),yield Ae.pending.promise,Ae.pending=new $e.BH,yield Ae.operation(),Ae.pending.resolve(),yield Ae.pending.promise,Ae.process(!0).catch(()=>{})}catch(ze){Ae.retryPolicy(ze)?Ae.process(!1).catch(()=>{}):Ae.stop()}})()}getNextRun(ae){if(ae)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Ae=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Ae}}}const St=new $e.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 wn(Z){if(!Tt(Z).activated)throw St.create("use-before-activation",{appName:Z.name})}function fe(Z,ae){return Ke.apply(this,arguments)}function Ke(){return(Ke=(0,lt.Z)(function*({url:Z,body:ae},Ae){var ze,nt;const ft={"Content-Type":"application/json"},ht=Ae.getImmediate({optional:!0});if(ht){const Vn=yield ht.getHeartbeatsHeader();Vn&&(ft["X-Firebase-Client"]=Vn)}const Tn={method:"POST",body:JSON.stringify(ae),headers:ft};let sn,Kn;try{sn=yield fetch(Z,Tn)}catch(Vn){throw St.create("fetch-network-error",{originalErrorMessage:null===(ze=Vn)||void 0===ze?void 0:ze.message})}if(200!==sn.status)throw St.create("fetch-status-error",{httpStatus:sn.status});try{Kn=yield sn.json()}catch(Vn){throw St.create("fetch-parse-error",{originalErrorMessage:null===(nt=Vn)||void 0===nt?void 0:nt.message})}const Dn=Kn.ttl.match(/^([\d.]+)(s)$/);if(!Dn||!Dn[2]||isNaN(Number(Dn[1])))throw St.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Kn.ttl}`});const Pr=1e3*Number(Dn[1]),jr=Date.now();return{token:Kn.token,expireTimeMillis:jr+Pr,issuedAtTimeMillis:jr}})).apply(this,arguments)}function Gt(Z,ae){const{projectId:Ae,appId:ze,apiKey:nt}=Z.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${Ae}/apps/${ze}:exchangeDebugToken?key=${nt}`,body:{debug_token:ae}}}const an="firebase-app-check-store";let Jt=null;function Nt(){return Jt||(Jt=new Promise((Z,ae)=>{var Ae;try{const ze=indexedDB.open("firebase-app-check-database",1);ze.onsuccess=nt=>{Z(nt.target.result)},ze.onerror=nt=>{var ft;ae(St.create("storage-open",{originalErrorMessage:null===(ft=nt.target.error)||void 0===ft?void 0:ft.message}))},ze.onupgradeneeded=nt=>{0===nt.oldVersion&&nt.target.result.createObjectStore(an,{keyPath:"compositeKey"})}}catch(ze){ae(St.create("storage-open",{originalErrorMessage:null===(Ae=ze)||void 0===Ae?void 0:Ae.message}))}}),Jt)}function gt(){return(gt=(0,lt.Z)(function*(Z,ae){const ze=(yield Nt()).transaction(an,"readwrite"),ft=ze.objectStore(an).put({compositeKey:Z,value:ae});return new Promise((ht,Tn)=>{ft.onsuccess=sn=>{ht()},ze.onerror=sn=>{var Kn;Tn(St.create("storage-set",{originalErrorMessage:null===(Kn=sn.target.error)||void 0===Kn?void 0:Kn.message}))}})})).apply(this,arguments)}const Y=new Ye.Yd("@firebase/app-check");function Re(Z,ae){return(0,$e.hl)()?function Pt(Z,ae){return function Ge(Z,ae){return gt.apply(this,arguments)}(function rn(Z){return`${Z.options.appId}-${Z.name}`}(Z),ae)}(Z,ae).catch(Ae=>{Y.warn(`Failed to write token to IndexedDB. Error: ${Ae}`)}):Promise.resolve()}function At(){return vn().enabled}function Kt(){return hn.apply(this,arguments)}function hn(){return(hn=(0,lt.Z)(function*(){const Z=vn();if(Z.enabled&&Z.token)return Z.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const xt={error:"UNKNOWN_ERROR"};function Q(Z){return $e.US.encodeString(JSON.stringify(Z),!1)}function G(Z){return j.apply(this,arguments)}function j(){return(j=(0,lt.Z)(function*(Z,ae=!1){const Ae=Z.app;wn(Ae);const ze=Tt(Ae);let ft,nt=ze.token;if(nt&&!Dt(nt)&&(nn(Ae,Object.assign(Object.assign({},ze),{token:void 0})),nt=void 0),!nt){const sn=yield ze.cachedTokenPromise;sn&&(Dt(sn)?nt=sn:yield Re(Ae,void 0))}if(!ae&&nt&&Dt(nt))return{token:nt.token};let Tn,ht=!1;if(At()){ze.exchangeTokenPromise||(ze.exchangeTokenPromise=fe(Gt(Ae,yield Kt()),Z.heartbeatServiceProvider).finally(()=>{ze.exchangeTokenPromise=void 0}),ht=!0);const sn=yield ze.exchangeTokenPromise;return yield Re(Ae,sn),nn(Ae,Object.assign(Object.assign({},ze),{token:sn})),{token:sn.token}}try{ze.exchangeTokenPromise||(ze.exchangeTokenPromise=ze.provider.getToken().finally(()=>{ze.exchangeTokenPromise=void 0}),ht=!0),nt=yield ze.exchangeTokenPromise}catch(sn){"appCheck/throttled"===sn.code?Y.warn(sn.message):Y.error(sn),ft=sn}return nt?ft?Tn=Dt(nt)?{token:nt.token,internalError:ft}:Sr(ft):(Tn={token:nt.token},nn(Ae,Object.assign(Object.assign({},ze),{token:nt})),yield Re(Ae,nt)):Tn=Sr(ft),ht&&mn(Ae,Tn),Tn})).apply(this,arguments)}function Qe(Z,ae){const Ae=Tt(Z),ze=Ae.tokenObservers.filter(nt=>nt.next!==ae);0===ze.length&&Ae.tokenRefresher&&Ae.tokenRefresher.isRunning()&&Ae.tokenRefresher.stop(),nn(Z,Object.assign(Object.assign({},Ae),{tokenObservers:ze}))}function yt(Z){const{app:ae}=Z,Ae=Tt(ae);let ze=Ae.tokenRefresher;ze||(ze=function Zt(Z){const{app:ae}=Z;return new Hn((0,lt.Z)(function*(){let ze;if(ze=Tt(ae).token?yield G(Z,!0):yield G(Z),ze.error)throw ze.error;if(ze.internalError)throw ze.internalError}),()=>!0,()=>{const Ae=Tt(ae);if(Ae.token){let ze=Ae.token.issuedAtTimeMillis+.5*(Ae.token.expireTimeMillis-Ae.token.issuedAtTimeMillis)+3e5;return ze=Math.min(ze,Ae.token.expireTimeMillis-3e5),Math.max(0,ze-Date.now())}return 0},3e4,96e4)}(Z),nn(ae,Object.assign(Object.assign({},Ae),{tokenRefresher:ze}))),!ze.isRunning()&&Ae.isTokenAutoRefreshEnabled&&ze.start()}function mn(Z,ae){const Ae=Tt(Z).tokenObservers;for(const ze of Ae)try{"EXTERNAL"===ze.type&&null!=ae.error?ze.error(ae.error):ze.next(ae)}catch{}}function Dt(Z){return Z.expireTimeMillis-Date.now()>0}function Sr(Z){return{token:Q(xt),error:Z}}class xr{constructor(ae,Ae){this.app=ae,this.heartbeatServiceProvider=Ae}_delete(){const{tokenObservers:ae}=Tt(this.app);for(const Ae of ae)Qe(this.app,Ae.next);return Promise.resolve()}}const ji="app-check-internal";!function Ur(){(0,dn._registerComponent)(new tn.wA("app-check",Z=>function zr(Z,ae){return new xr(Z,ae)}(Z.getProvider("app").getImmediate(),Z.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Z,ae,Ae)=>{Z.getProvider(ji).initialize()})),(0,dn._registerComponent)(new tn.wA(ji,Z=>function gr(Z){return{getToken:ae=>G(Z,ae),addTokenListener:ae=>function he(Z,ae,Ae,ze){const{app:nt}=Z,ft=Tt(nt),ht={next:Ae,error:ze,type:ae};if(nn(nt,Object.assign(Object.assign({},ft),{tokenObservers:[...ft.tokenObservers,ht]})),ft.token&&Dt(ft.token)){const Tn=ft.token;Promise.resolve().then(()=>{Ae({token:Tn.token}),yt(Z)}).catch(()=>{})}ft.cachedTokenPromise.then(()=>yt(Z))}(Z,"INTERNAL",ae),removeTokenListener:ae=>Qe(Z.app,ae)}}(Z.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,dn.registerVersion)("@firebase/app-check","0.5.15")}();class Qn{constructor(){return(0,Be.vb)("app-check")}}typeof window<"u"&&window;var Ar=b(127);const Br=new m.OlP("angularfire2.auth.use-emulator"),Mr=new m.OlP("angularfire2.auth.settings"),Di=new m.OlP("angularfire2.auth.tenant-id"),Ui=new m.OlP("angularfire2.auth.langugage-code"),ri=new m.OlP("angularfire2.auth.use-device-language"),ii=new m.OlP("angularfire.auth.persistence");let ns=(()=>{class Z{constructor(Ae,ze,nt,ft,ht,Tn,sn,Kn,Dn,Pr,jr,Vn){const qn=new c.x,D=(0,F.of)(void 0).pipe((0,R.Q)(ht.outsideAngular),(0,ee.w)(()=>ft.runOutsideAngular(()=>b.e(545).then(b.bind(b,9545)))),(0,L.U)(()=>(0,Ie.on)(Ae,ft,ze)),(0,L.U)(A=>((Z,ae,Ae,ze,nt,ft,ht,Tn)=>(0,Ie.cc)(`${Z.name}.auth`,"AngularFireAuth",Z.name,()=>{const sn=ae.runOutsideAngular(()=>Z.auth());if(Ae&&sn.useEmulator(...Ae),ze&&(sn.tenantId=ze),sn.languageCode=nt,ft&&sn.useDeviceLanguage(),ht)for(const[Kn,Dn]of Object.entries(ht))sn.settings[Kn]=Dn;return Tn&&sn.setPersistence(Tn),sn},[Ae,ze,nt,ft,ht,Tn]))(A,ft,Tn,Kn,Dn,Pr,sn,jr)),(0,de.d)({bufferSize:1,refCount:!1}));if((0,Te.PM)(nt))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,F.of)(null);else{D.pipe((0,je.P)()).subscribe();const E=D.pipe((0,ee.w)(Ne=>Ne.getRedirectResult().then(we=>we,()=>null)),Be.iC,(0,de.d)({bufferSize:1,refCount:!1})),O=D.pipe((0,ee.w)(Ne=>new z.y(we=>({unsubscribe:ft.runOutsideAngular(()=>Ne.onAuthStateChanged(bt=>we.next(bt),bt=>we.error(bt),()=>we.complete()))})))),re=D.pipe((0,ee.w)(Ne=>new z.y(we=>({unsubscribe:ft.runOutsideAngular(()=>Ne.onIdTokenChanged(bt=>we.next(bt),bt=>we.error(bt),()=>we.complete()))}))));this.authState=E.pipe(te(O),(0,Oe.R)(ht.outsideAngular),(0,R.Q)(ht.insideAngular)),this.user=E.pipe(te(re),(0,Oe.R)(ht.outsideAngular),(0,R.Q)(ht.insideAngular)),this.idToken=this.user.pipe((0,ee.w)(Ne=>Ne?(0,U.D)(Ne.getIdToken()):(0,F.of)(null))),this.idTokenResult=this.user.pipe((0,ee.w)(Ne=>Ne?(0,U.D)(Ne.getIdTokenResult()):(0,F.of)(null))),this.credential=(0,J.T)(E,qn,this.authState.pipe((0,xe.h)(Ne=>!Ne))).pipe((0,L.U)(Ne=>Ne?.user?Ne:null),(0,Oe.R)(ht.outsideAngular),(0,R.Q)(ht.insideAngular))}return(0,Ie.pX)(this,D,ft,{spy:{apply:(A,E,O)=>{(A.startsWith("signIn")||A.startsWith("createUser"))&&O.then(re=>qn.next(re))}}})}}return Z.\u0275fac=function(Ae){return new(Ae||Z)(m.LFG(Ie.Dh),m.LFG(Ie.xv,8),m.LFG(m.Lbi),m.LFG(m.R0b),m.LFG(Be.HU),m.LFG(Br,8),m.LFG(Mr,8),m.LFG(Di,8),m.LFG(Ui,8),m.LFG(ri,8),m.LFG(ii,8),m.LFG(Qn,8))},Z.\u0275prov=m.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"any"}),Z})(),Ei=(()=>{class Z{constructor(){Ar.Z.registerVersion("angularfire",Be.q4.full,"auth-compat")}}return Z.\u0275fac=function(Ae){return new(Ae||Z)},Z.\u0275mod=m.oAB({type:Z}),Z.\u0275inj=m.cJS({providers:[ns]}),Z})()},2011:(it,De,b)=>{b.d(De,{Dh:()=>ie,GT:()=>J,cc:()=>Oe,hO:()=>je,on:()=>R,pX:()=>U,xv:()=>te});var m=b(4650),c=b(127),F=b(5813);it=b.hmd(it);const z=["ngOnDestroy"],U=(Te,Je,ke,Ce={})=>new Proxy(Te,{get:(x,K)=>ke.runOutsideAngular(()=>{var le;if(Te[K])return!(null===(le=Ce?.spy)||void 0===le)&&le.get&&Ce.spy.get(K,Te[K]),Te[K];if(z.indexOf(K)>-1)return()=>{};const ue=Je.toPromise().then(W=>{const ge=W&&W[K];return"function"==typeof ge?ge.bind(W):ge&&ge.then?ge.then(H=>ke.run(()=>H)):ke.run(()=>ge)});return new Proxy(()=>{},{get:(W,ge)=>ue[ge],apply:(W,ge,H)=>ue.then(ne=>{var me;const ve=ne&&ne(...H);return!(null===(me=Ce?.spy)||void 0===me)&&me.apply&&Ce.spy.apply(K,H,ve),ve})})})}),J=(Te,Je)=>{Je.forEach(ke=>{Object.getOwnPropertyNames(ke.prototype||ke).forEach(Ce=>{Object.defineProperty(Te.prototype,Ce,Object.getOwnPropertyDescriptor(ke.prototype||ke,Ce))})})};class ee{constructor(Je){return Je}}const ie=new m.OlP("angularfire2.app.options"),te=new m.OlP("angularfire2.app.name");function R(Te,Je,ke){const x="object"==typeof ke&&ke||{};x.name=x.name||"string"==typeof ke&&ke||"[DEFAULT]";const le=c.Z.apps.filter(ue=>ue&&ue.name===x.name)[0]||Je.runOutsideAngular(()=>c.Z.initializeApp(Te,x));try{JSON.stringify(Te)!==JSON.stringify(le.options)&&L("error",`${le.name} Firebase App already initialized with different options${it.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new ee(le)}const L=(Te,...Je)=>{(0,m.X6Q)()&&typeof console<"u"&&console[Te](...Je)},de={provide:ee,useFactory:R,deps:[ie,m.R0b,[new m.FiY,te]]};let je=(()=>{class Te{constructor(ke){c.Z.registerVersion("angularfire",F.q4.full,"core"),c.Z.registerVersion("angularfire",F.q4.full,"app-compat"),c.Z.registerVersion("angular",m.q4F.full,ke.toString())}static initializeApp(ke,Ce){return{ngModule:Te,providers:[{provide:ie,useValue:ke},{provide:te,useValue:Ce}]}}}return Te.\u0275fac=function(ke){return new(ke||Te)(m.LFG(m.Lbi))},Te.\u0275mod=m.oAB({type:Te}),Te.\u0275inj=m.cJS({providers:[de]}),Te})();function Oe(Te,Je,ke,Ce,x){const[,K,le]=globalThis.\u0275AngularfireInstanceCache.find(ue=>ue[0]===Te)||[];if(K)return function xe(Te,Je){try{return Te.toString()===Je.toString()}catch{return Te===Je}}(x,le)||(Ie("error",`${Je} was already initialized on the ${ke} Firebase App with different settings.${Be?" You may need to reload as Firebase is not HMR aware.":""}`),Ie("warn",{is:x,was:le})),K;{const ue=Ce();return globalThis.\u0275AngularfireInstanceCache.push([Te,ue,x]),ue}}const Be=!!it.hot,Ie=(Te,...Je)=>{(0,m.X6Q)()&&typeof console<"u"&&console[Te](...Je)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},5813:(it,De,b)=>{b.d(De,{q4:()=>Ni,iC:()=>nl,HU:()=>zl,vb:()=>_d,JM:()=>Ko});var m=b(4650),c=b(5867),F=b(5861),z=b(9681),U=b(2090),J=b(4859),ee=b(1877),ie=b(8766);const te="@firebase/installations",R="0.5.15",de=`w:${R}`,je="FIS_v2",Je=new U.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 ke(v){return v instanceof U.ZR&&v.code.includes("request-failed")}function Ce({projectId:v}){return`https://firebaseinstallations.googleapis.com/v1/projects/${v}/installations`}function x(v){return{token:v.token,requestStatus:2,expiresIn:ne(v.expiresIn),creationTime:Date.now()}}function K(v,C){return le.apply(this,arguments)}function le(){return(le=(0,F.Z)(function*(v,C){const $=(yield C.json()).error;return Je.create("request-failed",{requestName:v,serverCode:$.code,serverMessage:$.message,serverStatus:$.status})})).apply(this,arguments)}function ue({apiKey:v}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":v})}function W(v,{refreshToken:C}){const I=ue(v);return I.append("Authorization",function me(v){return`${je} ${v}`}(C)),I}function ge(v){return H.apply(this,arguments)}function H(){return(H=(0,F.Z)(function*(v){const C=yield v();return C.status>=500&&C.status<600?v():C})).apply(this,arguments)}function ne(v){return Number(v.replace("s","000"))}function ve(v,C){return _e.apply(this,arguments)}function _e(){return(_e=(0,F.Z)(function*({appConfig:v,heartbeatServiceProvider:C},{fid:I}){const $=Ce(v),be=ue(v),Le=C.getImmediate({optional:!0});if(Le){const ln=yield Le.getHeartbeatsHeader();ln&&be.append("x-firebase-client",ln)}const Et={method:"POST",headers:be,body:JSON.stringify({fid:I,authVersion:je,appId:v.appId,sdkVersion:de})},Ft=yield ge(()=>fetch($,Et));if(Ft.ok){const ln=yield Ft.json();return{fid:ln.fid||I,registrationStatus:2,refreshToken:ln.refreshToken,authToken:x(ln.authToken)}}throw yield K("Create Installation",Ft)})).apply(this,arguments)}function Ve(v){return new Promise(C=>{setTimeout(C,v)})}const qt=/^[cdef][\w-]{21}$/;function lt(){try{const v=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(v),v[0]=112+v[0]%16;const I=function dn(v){return function ut(v){return btoa(String.fromCharCode(...v)).replace(/\+/g,"-").replace(/\//g,"_")}(v).substr(0,22)}(v);return qt.test(I)?I:""}catch{return""}}function tn(v){return`${v.appName}!${v.appId}`}const $e=new Map;function Ye(v,C){const I=tn(v);ct(I,C),function Tt(v,C){const I=function vn(){return!nn&&"BroadcastChannel"in self&&(nn=new BroadcastChannel("[Firebase] FID Change"),nn.onmessage=v=>{ct(v.data.key,v.data.fid)}),nn}();I&&I.postMessage({key:v,fid:C}),function Wn(){0===$e.size&&nn&&(nn.close(),nn=null)}()}(I,C)}function ct(v,C){const I=$e.get(v);if(I)for(const $ of I)$(C)}let nn=null;const Nn="firebase-installations-store";let Un=null;function Mt(){return Un||(Un=(0,ie.X3)("firebase-installations-database",1,{upgrade:(v,C)=>{0===C&&v.createObjectStore(Nn)}})),Un}function Hn(v,C){return _t.apply(this,arguments)}function _t(){return(_t=(0,F.Z)(function*(v,C){const I=tn(v),be=(yield Mt()).transaction(Nn,"readwrite"),Le=be.objectStore(Nn),Xe=yield Le.get(I);return yield Le.put(C,I),yield be.done,(!Xe||Xe.fid!==C.fid)&&Ye(v,C.fid),C})).apply(this,arguments)}function Rn(v){return St.apply(this,arguments)}function St(){return(St=(0,F.Z)(function*(v){const C=tn(v),$=(yield Mt()).transaction(Nn,"readwrite");yield $.objectStore(Nn).delete(C),yield $.done})).apply(this,arguments)}function ar(v,C){return wn.apply(this,arguments)}function wn(){return(wn=(0,F.Z)(function*(v,C){const I=tn(v),be=(yield Mt()).transaction(Nn,"readwrite"),Le=be.objectStore(Nn),Xe=yield Le.get(I),Et=C(Xe);return void 0===Et?yield Le.delete(I):yield Le.put(Et,I),yield be.done,Et&&(!Xe||Xe.fid!==Et.fid)&&Ye(v,Et.fid),Et})).apply(this,arguments)}function He(v){return se.apply(this,arguments)}function se(){return(se=(0,F.Z)(function*(v){let C;const I=yield ar(v.appConfig,$=>{const be=fe($),Le=Ke(v,be);return C=Le.registrationPromise,Le.installationEntry});return""===I.fid?{installationEntry:yield C}:{installationEntry:I,registrationPromise:C}})).apply(this,arguments)}function fe(v){return an(v||{fid:lt(),registrationStatus:0})}function Ke(v,C){if(0===C.registrationStatus){if(!navigator.onLine)return{installationEntry:C,registrationPromise:Promise.reject(Je.create("app-offline"))};const I={fid:C.fid,registrationStatus:1,registrationTime:Date.now()},$=function Se(v,C){return tt.apply(this,arguments)}(v,I);return{installationEntry:I,registrationPromise:$}}return 1===C.registrationStatus?{installationEntry:C,registrationPromise:Gt(v)}:{installationEntry:C}}function tt(){return(tt=(0,F.Z)(function*(v,C){try{const I=yield ve(v,C);return Hn(v.appConfig,I)}catch(I){throw ke(I)&&409===I.customData.serverCode?yield Rn(v.appConfig):yield Hn(v.appConfig,{fid:C.fid,registrationStatus:0}),I}})).apply(this,arguments)}function Gt(v){return $t.apply(this,arguments)}function $t(){return($t=(0,F.Z)(function*(v){let C=yield st(v.appConfig);for(;1===C.registrationStatus;)yield Ve(100),C=yield st(v.appConfig);if(0===C.registrationStatus){const{installationEntry:I,registrationPromise:$}=yield He(v);return $||I}return C})).apply(this,arguments)}function st(v){return ar(v,C=>{if(!C)throw Je.create("installation-not-found");return an(C)})}function an(v){return function Cn(v){return 1===v.registrationStatus&&v.registrationTime+1e4<Date.now()}(v)?{fid:v.fid,registrationStatus:0}:v}function Jt(v,C){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,F.Z)(function*({appConfig:v,heartbeatServiceProvider:C},I){const $=Xt(v,I),be=W(v,I),Le=C.getImmediate({optional:!0});if(Le){const ln=yield Le.getHeartbeatsHeader();ln&&be.append("x-firebase-client",ln)}const Et={method:"POST",headers:be,body:JSON.stringify({installation:{sdkVersion:de,appId:v.appId}})},Ft=yield ge(()=>fetch($,Et));if(Ft.ok)return x(yield Ft.json());throw yield K("Generate Auth Token",Ft)})).apply(this,arguments)}function Xt(v,{fid:C}){return`${Ce(v)}/${C}/authTokens:generate`}function Pt(v){return er.apply(this,arguments)}function er(){return(er=(0,F.Z)(function*(v,C=!1){let I;const $=yield ar(v.appConfig,Le=>{if(!rn(Le))throw Je.create("not-registered");const Xe=Le.authToken;if(!C&&Y(Xe))return Le;if(1===Xe.requestStatus)return I=pt(v,C),Le;{if(!navigator.onLine)throw Je.create("app-offline");const Et=pe(Le);return I=kt(v,Et),Et}});return I?yield I:$.authToken})).apply(this,arguments)}function pt(v,C){return Ge.apply(this,arguments)}function Ge(){return(Ge=(0,F.Z)(function*(v,C){let I=yield gt(v.appConfig);for(;1===I.authToken.requestStatus;)yield Ve(100),I=yield gt(v.appConfig);const $=I.authToken;return 0===$.requestStatus?Pt(v,C):$})).apply(this,arguments)}function gt(v){return ar(v,C=>{if(!rn(C))throw Je.create("not-registered");return function Re(v){return 1===v.requestStatus&&v.requestTime+1e4<Date.now()}(C.authToken)?Object.assign(Object.assign({},C),{authToken:{requestStatus:0}}):C})}function kt(v,C){return jt.apply(this,arguments)}function jt(){return(jt=(0,F.Z)(function*(v,C){try{const I=yield Jt(v,C),$=Object.assign(Object.assign({},C),{authToken:I});return yield Hn(v.appConfig,$),I}catch(I){if(!ke(I)||401!==I.customData.serverCode&&404!==I.customData.serverCode){const $=Object.assign(Object.assign({},C),{authToken:{requestStatus:0}});yield Hn(v.appConfig,$)}else yield Rn(v.appConfig);throw I}})).apply(this,arguments)}function rn(v){return void 0!==v&&2===v.registrationStatus}function Y(v){return 2===v.requestStatus&&!function V(v){const C=Date.now();return C<v.creationTime||v.creationTime+v.expiresIn<C+36e5}(v)}function pe(v){const C={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},v),{authToken:C})}function dt(){return(dt=(0,F.Z)(function*(v){const C=v,{installationEntry:I,registrationPromise:$}=yield He(C);return $?$.catch(console.error):Pt(C).catch(console.error),I.fid})).apply(this,arguments)}function Kt(){return(Kt=(0,F.Z)(function*(v,C=!1){const I=v;return yield hn(I),(yield Pt(I,C)).token})).apply(this,arguments)}function hn(v){return rt.apply(this,arguments)}function rt(){return(rt=(0,F.Z)(function*(v){const{registrationPromise:C}=yield He(v);C&&(yield C)})).apply(this,arguments)}function mn(v){return Je.create("missing-app-config-values",{valueName:v})}const Dt="installations",xr=v=>{const C=v.getProvider("app").getImmediate(),I=function Zt(v){if(!v||!v.options)throw mn("App Configuration");if(!v.name)throw mn("App Name");const C=["projectId","apiKey","appId"];for(const I of C)if(!v.options[I])throw mn(I);return{appName:v.name,projectId:v.options.projectId,apiKey:v.options.apiKey,appId:v.options.appId}}(C);return{app:C,appConfig:I,heartbeatServiceProvider:(0,z._getProvider)(C,"heartbeat"),_delete:()=>Promise.resolve()}},zr=v=>{const C=v.getProvider("app").getImmediate(),I=(0,z._getProvider)(C,Dt).getImmediate();return{getId:()=>function Ee(v){return dt.apply(this,arguments)}(I),getToken:be=>function At(v){return Kt.apply(this,arguments)}(I,be)}};(function gr(){(0,z._registerComponent)(new J.wA(Dt,xr,"PUBLIC")),(0,z._registerComponent)(new J.wA("installations-internal",zr,"PRIVATE"))})(),(0,z.registerVersion)(te,R),(0,z.registerVersion)(te,R,"esm2017");const kn="@firebase/remote-config",Yn=new U.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 ji{constructor(C,I,$,be){this.client=C,this.storage=I,this.storageCache=$,this.logger=be}isCachedDataFresh(C,I){if(!I)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const $=Date.now()-I,be=$<=C;return this.logger.debug(`Config fetch cache check. Cache age millis: ${$}. Cache max age millis (minimumFetchIntervalMillis setting): ${C}. Is cache hit: ${be}.`),be}fetch(C){var I=this;return(0,F.Z)(function*(){const[$,be]=yield Promise.all([I.storage.getLastSuccessfulFetchTimestampMillis(),I.storage.getLastSuccessfulFetchResponse()]);if(be&&I.isCachedDataFresh(C.cacheMaxAgeMillis,$))return be;C.eTag=be&&be.eTag;const Le=yield I.client.fetch(C),Xe=[I.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Le.status&&Xe.push(I.storage.setLastSuccessfulFetchResponse(Le)),yield Promise.all(Xe),Le})()}}function Ur(v=navigator){return v.languages&&v.languages[0]||v.language}class Ii{constructor(C,I,$,be,Le,Xe){this.firebaseInstallations=C,this.sdkVersion=I,this.namespace=$,this.projectId=be,this.apiKey=Le,this.appId=Xe}fetch(C){var I=this;return(0,F.Z)(function*(){var $,be,Le;const[Xe,Et]=yield Promise.all([I.firebaseInstallations.getId(),I.firebaseInstallations.getToken()]),ln=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${I.projectId}/namespaces/${I.namespace}:fetch?key=${I.apiKey}`,fn={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":C.eTag||"*"},Lt={sdk_version:I.sdkVersion,app_instance_id:Xe,app_instance_id_token:Et,app_id:I.appId,language_code:Ur()},Dr={method:"POST",headers:fn,body:JSON.stringify(Lt)},Qr=fetch(ln,Dr),qo=new Promise((Fs,wo)=>{C.signal.addEventListener(()=>{const Kl=new Error("The operation was aborted.");Kl.name="AbortError",wo(Kl)})});let No;try{yield Promise.race([Qr,qo]),No=yield Qr}catch(Fs){let wo="fetch-client-network";throw"AbortError"===(null===($=Fs)||void 0===$?void 0:$.name)&&(wo="fetch-timeout"),Yn.create(wo,{originalErrorMessage:null===(be=Fs)||void 0===be?void 0:be.message})}let ki=No.status;const ko=No.headers.get("ETag")||void 0;let Ra,Jo;if(200===No.status){let Fs;try{Fs=yield No.json()}catch(wo){throw Yn.create("fetch-client-parse",{originalErrorMessage:null===(Le=wo)||void 0===Le?void 0:Le.message})}Ra=Fs.entries,Jo=Fs.state}if("INSTANCE_STATE_UNSPECIFIED"===Jo?ki=500:"NO_CHANGE"===Jo?ki=304:("NO_TEMPLATE"===Jo||"EMPTY_CONFIG"===Jo)&&(Ra={}),304!==ki&&200!==ki)throw Yn.create("fetch-status",{httpStatus:ki});return{status:ki,eTag:ko,config:Ra}})()}}class Lr{constructor(C,I){this.client=C,this.storage=I}fetch(C){var I=this;return(0,F.Z)(function*(){const $=(yield I.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return I.attemptFetch(C,$)})()}attemptFetch(C,{throttleEndTimeMillis:I,backoffCount:$}){var be=this;return(0,F.Z)(function*(){yield function yi(v,C){return new Promise((I,$)=>{const be=Math.max(C-Date.now(),0),Le=setTimeout(I,be);v.addEventListener(()=>{clearTimeout(Le),$(Yn.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}(C.signal,I);try{const Le=yield be.client.fetch(C);return yield be.storage.deleteThrottleMetadata(),Le}catch(Le){if(!function Qn(v){if(!(v instanceof U.ZR&&v.customData))return!1;const C=Number(v.customData.httpStatus);return 429===C||500===C||503===C||504===C}(Le))throw Le;const Xe={throttleEndTimeMillis:Date.now()+(0,U.$s)($),backoffCount:$+1};return yield be.storage.setThrottleMetadata(Xe),be.attemptFetch(C,Xe)}})()}}class Ir{constructor(C,I,$,be,Le){this.app=C,this._client=I,this._storageCache=$,this._storage=be,this._logger=Le,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 mr(v,C){var I;const $=v.target.error||void 0;return Yn.create(C,{originalErrorMessage:$&&(null===(I=$)||void 0===I?void 0:I.message)})}const wr="app_namespace_store";class Wr{constructor(C,I,$,be=function es(){return new Promise((v,C)=>{var I;try{const $=indexedDB.open("firebase_remote_config",1);$.onerror=be=>{C(mr(be,"storage-open"))},$.onsuccess=be=>{v(be.target.result)},$.onupgradeneeded=be=>{0===be.oldVersion&&be.target.result.createObjectStore(wr,{keyPath:"compositeKey"})}}catch($){C(Yn.create("storage-open",{originalErrorMessage:null===(I=$)||void 0===I?void 0:I.message}))}})}()){this.appId=C,this.appName=I,this.namespace=$,this.openDbPromise=be}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(C){return this.set("last_fetch_status",C)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(C){return this.set("last_successful_fetch_timestamp_millis",C)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(C){return this.set("last_successful_fetch_response",C)}getActiveConfig(){return this.get("active_config")}setActiveConfig(C){return this.set("active_config",C)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(C){return this.set("active_config_etag",C)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(C){return this.set("throttle_metadata",C)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(C){var I=this;return(0,F.Z)(function*(){const $=yield I.openDbPromise;return new Promise((be,Le)=>{var Xe;const Ft=$.transaction([wr],"readonly").objectStore(wr),ln=I.createCompositeKey(C);try{const fn=Ft.get(ln);fn.onerror=Lt=>{Le(mr(Lt,"storage-get"))},fn.onsuccess=Lt=>{const Dr=Lt.target.result;be(Dr?Dr.value:void 0)}}catch(fn){Le(Yn.create("storage-get",{originalErrorMessage:null===(Xe=fn)||void 0===Xe?void 0:Xe.message}))}})})()}set(C,I){var $=this;return(0,F.Z)(function*(){const be=yield $.openDbPromise;return new Promise((Le,Xe)=>{var Et;const ln=be.transaction([wr],"readwrite").objectStore(wr),fn=$.createCompositeKey(C);try{const Lt=ln.put({compositeKey:fn,value:I});Lt.onerror=Dr=>{Xe(mr(Dr,"storage-set"))},Lt.onsuccess=()=>{Le()}}catch(Lt){Xe(Yn.create("storage-set",{originalErrorMessage:null===(Et=Lt)||void 0===Et?void 0:Et.message}))}})})()}delete(C){var I=this;return(0,F.Z)(function*(){const $=yield I.openDbPromise;return new Promise((be,Le)=>{var Xe;const Ft=$.transaction([wr],"readwrite").objectStore(wr),ln=I.createCompositeKey(C);try{const fn=Ft.delete(ln);fn.onerror=Lt=>{Le(mr(Lt,"storage-delete"))},fn.onsuccess=()=>{be()}}catch(fn){Le(Yn.create("storage-delete",{originalErrorMessage:null===(Xe=fn)||void 0===Xe?void 0:Xe.message}))}})})()}createCompositeKey(C){return[this.appId,this.appName,this.namespace,C].join()}}class ni{constructor(C){this.storage=C}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var C=this;return(0,F.Z)(function*(){const I=C.storage.getLastFetchStatus(),$=C.storage.getLastSuccessfulFetchTimestampMillis(),be=C.storage.getActiveConfig(),Le=yield I;Le&&(C.lastFetchStatus=Le);const Xe=yield $;Xe&&(C.lastSuccessfulFetchTimestampMillis=Xe);const Et=yield be;Et&&(C.activeConfig=Et)})()}setLastFetchStatus(C){return this.lastFetchStatus=C,this.storage.setLastFetchStatus(C)}setLastSuccessfulFetchTimestampMillis(C){return this.lastSuccessfulFetchTimestampMillis=C,this.storage.setLastSuccessfulFetchTimestampMillis(C)}setActiveConfig(C){return this.activeConfig=C,this.storage.setActiveConfig(C)}}function ts(){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,F.Z)(function*(){if(!(0,U.hl)())return!1;try{return yield(0,U.eu)()}catch{return!1}})).apply(this,arguments)}!function _i(){(0,z._registerComponent)(new J.wA("remote-config",function v(C,{instanceIdentifier:I}){const $=C.getProvider("app").getImmediate(),be=C.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Yn.create("registration-window");if(!(0,U.hl)())throw Yn.create("indexed-db-unavailable");const{projectId:Le,apiKey:Xe,appId:Et}=$.options;if(!Le)throw Yn.create("registration-project-id");if(!Xe)throw Yn.create("registration-api-key");if(!Et)throw Yn.create("registration-app-id");const Ft=new Wr(Et,$.name,I=I||"firebase"),ln=new ni(Ft),fn=new ee.Yd(kn);fn.logLevel=ee.in.ERROR;const Lt=new Ii(be,z.SDK_VERSION,I,Le,Xe,Et),Dr=new Lr(Lt,Ft),Qr=new ji(Dr,Ft,ln,fn),qo=new Ir($,Qr,ln,Ft,fn);return function Bi(v){const C=(0,U.m9)(v);C._initializePromise||(C._initializePromise=C._storageCache.loadFromStorage().then(()=>{C._isInitializationComplete=!0}))}(qo),qo},"PUBLIC").setMultipleInstances(!0)),(0,z.registerVersion)(kn,"0.3.14"),(0,z.registerVersion)(kn,"0.3.14","esm2017")}();const Gn="/firebase-messaging-sw.js",Br="/firebase-cloud-messaging-push-scope",Mr="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ui="google.c.a.c_id",ri="google.c.a.c_l",ii="google.c.a.ts",Ws="google.c.a.e";var Ei=(()=>{return(v=Ei||(Ei={})).PUSH_RECEIVED="push-received",v.NOTIFICATION_CLICKED="notification-clicked",Ei;var v})();function Z(v){const C=new Uint8Array(v);return btoa(String.fromCharCode(...C)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ae(v){const I=(v+"=".repeat((4-v.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),$=atob(I),be=new Uint8Array($.length);for(let Le=0;Le<$.length;++Le)be[Le]=$.charCodeAt(Le);return be}const Ae="fcm_token_details_db",nt="fcm_token_object_Store";function ft(v){return ht.apply(this,arguments)}function ht(){return ht=(0,F.Z)(function*(v){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Le=>Le.name).includes(Ae))return null;let C=null;return(yield(0,ie.X3)(Ae,5,{upgrade:($=(0,F.Z)(function*(be,Le,Xe,Et){var Ft;if(Le<2||!be.objectStoreNames.contains(nt))return;const ln=Et.objectStore(nt),fn=yield ln.index("fcmSenderId").get(v);if(yield ln.clear(),fn)if(2===Le){const Lt=fn;if(!Lt.auth||!Lt.p256dh||!Lt.endpoint)return;C={token:Lt.fcmToken,createTime:null!==(Ft=Lt.createTime)&&void 0!==Ft?Ft:Date.now(),subscriptionOptions:{auth:Lt.auth,p256dh:Lt.p256dh,endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:"string"==typeof Lt.vapidKey?Lt.vapidKey:Z(Lt.vapidKey)}}}else if(3===Le){const Lt=fn;C={token:Lt.fcmToken,createTime:Lt.createTime,subscriptionOptions:{auth:Z(Lt.auth),p256dh:Z(Lt.p256dh),endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:Z(Lt.vapidKey)}}}else if(4===Le){const Lt=fn;C={token:Lt.fcmToken,createTime:Lt.createTime,subscriptionOptions:{auth:Z(Lt.auth),p256dh:Z(Lt.p256dh),endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:Z(Lt.vapidKey)}}}}),function(Le,Xe,Et,Ft){return $.apply(this,arguments)})})).close(),yield(0,ie.Lj)(Ae),yield(0,ie.Lj)("fcm_vapid_details_db"),yield(0,ie.Lj)("undefined"),Tn(C)?C:null;var $}),ht.apply(this,arguments)}function Tn(v){if(!v||!v.subscriptionOptions)return!1;const{subscriptionOptions:C}=v;return"number"==typeof v.createTime&&v.createTime>0&&"string"==typeof v.token&&v.token.length>0&&"string"==typeof C.auth&&C.auth.length>0&&"string"==typeof C.p256dh&&C.p256dh.length>0&&"string"==typeof C.endpoint&&C.endpoint.length>0&&"string"==typeof C.swScope&&C.swScope.length>0&&"string"==typeof C.vapidKey&&C.vapidKey.length>0}const Dn="firebase-messaging-store";let Pr=null;function jr(){return Pr||(Pr=(0,ie.X3)("firebase-messaging-database",1,{upgrade:(v,C)=>{0===C&&v.createObjectStore(Dn)}})),Pr}function Vn(v){return qn.apply(this,arguments)}function qn(){return(qn=(0,F.Z)(function*(v){const C=re(v),$=yield(yield jr()).transaction(Dn).objectStore(Dn).get(C);if($)return $;{const be=yield ft(v.appConfig.senderId);if(be)return yield D(v,be),be}})).apply(this,arguments)}function D(v,C){return A.apply(this,arguments)}function A(){return(A=(0,F.Z)(function*(v,C){const I=re(v),be=(yield jr()).transaction(Dn,"readwrite");return yield be.objectStore(Dn).put(C,I),yield be.done,C})).apply(this,arguments)}function E(v){return O.apply(this,arguments)}function O(){return(O=(0,F.Z)(function*(v){const C=re(v),$=(yield jr()).transaction(Dn,"readwrite");yield $.objectStore(Dn).delete(C),yield $.done})).apply(this,arguments)}function re({appConfig:v}){return v.appId}const we=new U.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 bt(v,C){return Sn.apply(this,arguments)}function Sn(){return(Sn=(0,F.Z)(function*(v,C){var I;const $=yield zn(v),be=Vt(C),Le={method:"POST",headers:$,body:JSON.stringify(be)};let Xe;try{Xe=yield(yield fetch(_n(v.appConfig),Le)).json()}catch(Et){throw we.create("token-subscribe-failed",{errorInfo:null===(I=Et)||void 0===I?void 0:I.toString()})}if(Xe.error)throw we.create("token-subscribe-failed",{errorInfo:Xe.error.message});if(!Xe.token)throw we.create("token-subscribe-no-token");return Xe.token})).apply(this,arguments)}function Mn(v,C){return bn.apply(this,arguments)}function bn(){return(bn=(0,F.Z)(function*(v,C){var I;const $=yield zn(v),be=Vt(C.subscriptionOptions),Le={method:"PATCH",headers:$,body:JSON.stringify(be)};let Xe;try{Xe=yield(yield fetch(`${_n(v.appConfig)}/${C.token}`,Le)).json()}catch(Et){throw we.create("token-update-failed",{errorInfo:null===(I=Et)||void 0===I?void 0:I.toString()})}if(Xe.error)throw we.create("token-update-failed",{errorInfo:Xe.error.message});if(!Xe.token)throw we.create("token-update-no-token");return Xe.token})).apply(this,arguments)}function cn(v,C){return Ln.apply(this,arguments)}function Ln(){return(Ln=(0,F.Z)(function*(v,C){var I;const be={method:"DELETE",headers:yield zn(v)};try{const Xe=yield(yield fetch(`${_n(v.appConfig)}/${C}`,be)).json();if(Xe.error)throw we.create("token-unsubscribe-failed",{errorInfo:Xe.error.message})}catch(Le){throw we.create("token-unsubscribe-failed",{errorInfo:null===(I=Le)||void 0===I?void 0:I.toString()})}})).apply(this,arguments)}function _n({projectId:v}){return`https://fcmregistrations.googleapis.com/v1/projects/${v}/registrations`}function zn(v){return Ze.apply(this,arguments)}function Ze(){return(Ze=(0,F.Z)(function*({appConfig:v,installations:C}){const I=yield C.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":v.apiKey,"x-goog-firebase-installations-auth":`FIS ${I}`})})).apply(this,arguments)}function Vt({p256dh:v,auth:C,endpoint:I,vapidKey:$}){const be={web:{endpoint:I,auth:C,p256dh:v}};return $!==Mr&&(be.web.applicationPubKey=$),be}const si=6048e5;function Or(v){return Bn.apply(this,arguments)}function Bn(){return(Bn=(0,F.Z)(function*(v){const C=yield po(v.swRegistration,v.vapidKey),I={vapidKey:v.vapidKey,swScope:v.swRegistration.scope,endpoint:C.endpoint,auth:Z(C.getKey("auth")),p256dh:Z(C.getKey("p256dh"))},$=yield Vn(v.firebaseDependencies);if($){if(Ai($.subscriptionOptions,I))return Date.now()>=$.createTime+si?Gr(v,{token:$.token,createTime:Date.now(),subscriptionOptions:I}):$.token;try{yield cn(v.firebaseDependencies,$.token)}catch(be){console.warn(be)}return is(v.firebaseDependencies,I)}return is(v.firebaseDependencies,I)})).apply(this,arguments)}function oi(v){return ai.apply(this,arguments)}function ai(){return(ai=(0,F.Z)(function*(v){const C=yield Vn(v.firebaseDependencies);C&&(yield cn(v.firebaseDependencies,C.token),yield E(v.firebaseDependencies));const I=yield v.swRegistration.pushManager.getSubscription();return!I||I.unsubscribe()})).apply(this,arguments)}function Gr(v,C){return rs.apply(this,arguments)}function rs(){return(rs=(0,F.Z)(function*(v,C){try{const I=yield Mn(v.firebaseDependencies,C),$=Object.assign(Object.assign({},C),{token:I,createTime:Date.now()});return yield D(v.firebaseDependencies,$),I}catch(I){throw yield oi(v),I}})).apply(this,arguments)}function is(v,C){return $i.apply(this,arguments)}function $i(){return($i=(0,F.Z)(function*(v,C){const $={token:yield bt(v,C),createTime:Date.now(),subscriptionOptions:C};return yield D(v,$),$.token})).apply(this,arguments)}function po(v,C){return Gs.apply(this,arguments)}function Gs(){return(Gs=(0,F.Z)(function*(v,C){return(yield v.pushManager.getSubscription())||v.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:ae(C)})})).apply(this,arguments)}function Ai(v,C){return C.vapidKey===v.vapidKey&&C.endpoint===v.endpoint&&C.auth===v.auth&&C.p256dh===v.p256dh}function dr(v){const C={from:v.from,collapseKey:v.collapse_key,messageId:v.fcmMessageId};return function li(v,C){if(!C.notification)return;v.notification={};const I=C.notification.title;I&&(v.notification.title=I);const $=C.notification.body;$&&(v.notification.body=$);const be=C.notification.image;be&&(v.notification.image=be)}(C,v),function ss(v,C){!C.data||(v.data=C.data)}(C,v),function Kr(v,C){var I,$,be,Le,Xe;if(!(C.fcmOptions||null!==(I=C.notification)&&void 0!==I&&I.click_action))return;v.fcmOptions={};const Et=null!==(be=null===($=C.fcmOptions)||void 0===$?void 0:$.link)&&void 0!==be?be:null===(Le=C.notification)||void 0===Le?void 0:Le.click_action;Et&&(v.fcmOptions.link=Et);const Ft=null===(Xe=C.fcmOptions)||void 0===Xe?void 0:Xe.analytics_label;Ft&&(v.fcmOptions.analyticsLabel=Ft)}(C,v),C}function Zr(v){return"object"==typeof v&&!!v&&Ui in v}function go(v,C){const I=[];for(let $=0;$<v.length;$++)I.push(v.charAt($)),$<C.length&&I.push(C.charAt($));return I.join("")}function Cs(v){return we.create("missing-app-config-values",{valueName:v})}go("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),go("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Ao{constructor(C,I,$){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const be=function Vi(v){if(!v||!v.options)throw Cs("App Configuration Object");if(!v.name)throw Cs("App Name");const C=["projectId","apiKey","appId","messagingSenderId"],{options:I}=v;for(const $ of C)if(!I[$])throw Cs($);return{appName:v.name,projectId:I.projectId,apiKey:I.apiKey,appId:I.appId,senderId:I.messagingSenderId}}(C);this.firebaseDependencies={app:C,appConfig:be,installations:I,analyticsProvider:$}}_delete(){return Promise.resolve()}}function zi(v){return os.apply(this,arguments)}function os(){return(os=(0,F.Z)(function*(v){var C;try{v.swRegistration=yield navigator.serviceWorker.register(Gn,{scope:Br}),v.swRegistration.update().catch(()=>{})}catch(I){throw we.create("failed-service-worker-registration",{browserErrorMessage:null===(C=I)||void 0===C?void 0:C.message})}})).apply(this,arguments)}function mo(v,C){return as.apply(this,arguments)}function as(){return(as=(0,F.Z)(function*(v,C){if(!C&&!v.swRegistration&&(yield zi(v)),C||!v.swRegistration){if(!(C instanceof ServiceWorkerRegistration))throw we.create("invalid-sw-registration");v.swRegistration=C}})).apply(this,arguments)}function Mo(v,C){return ls.apply(this,arguments)}function ls(){return(ls=(0,F.Z)(function*(v,C){C?v.vapidKey=C:v.vapidKey||(v.vapidKey=Mr)})).apply(this,arguments)}function yr(){return(yr=(0,F.Z)(function*(v,C){if(!navigator)throw we.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw we.create("permission-blocked");return yield Mo(v,C?.vapidKey),yield mo(v,C?.serviceWorkerRegistration),Or(v)})).apply(this,arguments)}function us(v,C,I){return Ci.apply(this,arguments)}function Ci(){return(Ci=(0,F.Z)(function*(v,C,I){const $=bs(C);(yield v.firebaseDependencies.analyticsProvider.get()).logEvent($,{message_id:I[Ui],message_name:I[ri],message_time:I[ii],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function bs(v){switch(v){case Ei.NOTIFICATION_CLICKED:return"notification_open";case Ei.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Zs(){return(Zs=(0,F.Z)(function*(v,C){const I=C.data;if(!I.isFirebaseMessaging)return;v.onMessageHandler&&I.messageType===Ei.PUSH_RECEIVED&&("function"==typeof v.onMessageHandler?v.onMessageHandler(dr(I)):v.onMessageHandler.next(dr(I)));const $=I.data;Zr($)&&"1"===$[Ws]&&(yield us(v,I.messageType,$))})).apply(this,arguments)}const ws="@firebase/messaging",Mi=v=>{const C=new Ao(v.getProvider("app").getImmediate(),v.getProvider("installations-internal").getImmediate(),v.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",I=>function Ks(v,C){return Zs.apply(this,arguments)}(C,I)),C},Pn=v=>{const C=v.getProvider("messaging").getImmediate();return{getToken:$=>function Wi(v,C){return yr.apply(this,arguments)}(C,$)}};function Ts(){return Gi.apply(this,arguments)}function Gi(){return(Gi=(0,F.Z)(function*(){try{yield(0,U.eu)()}catch{return!1}return typeof window<"u"&&(0,U.hl)()&&(0,U.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 Ys(){(0,z._registerComponent)(new J.wA("messaging",Mi,"PUBLIC")),(0,z._registerComponent)(new J.wA("messaging-internal",Pn,"PRIVATE")),(0,z.registerVersion)(ws,"0.9.19"),(0,z.registerVersion)(ws,"0.9.19","esm2017")}();const wi="analytics",Yr="firebase_id",Po="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Ti="https://www.googletagmanager.com/gtag/js",Zn=new ee.Yd("@firebase/analytics");function Ss(v){return Promise.all(v.map(C=>C.catch(I=>I)))}function Oo(v,C){const I=document.createElement("script");I.src=`${Ti}?l=${v}&id=${C}`,I.async=!0,document.head.appendChild(I)}function _o(v,C,I,$,be,Le){return ui.apply(this,arguments)}function ui(){return(ui=(0,F.Z)(function*(v,C,I,$,be,Le){const Xe=$[be];try{if(Xe)yield C[Xe];else{const Ft=(yield Ss(I)).find(ln=>ln.measurementId===be);Ft&&(yield C[Ft.appId])}}catch(Et){Zn.error(Et)}v("config",be,Le)})).apply(this,arguments)}function eo(v,C,I,$,be){return Is.apply(this,arguments)}function Is(){return(Is=(0,F.Z)(function*(v,C,I,$,be){try{let Le=[];if(be&&be.send_to){let Xe=be.send_to;Array.isArray(Xe)||(Xe=[Xe]);const Et=yield Ss(I);for(const Ft of Xe){const ln=Et.find(Lt=>Lt.measurementId===Ft),fn=ln&&C[ln.appId];if(!fn){Le=[];break}Le.push(fn)}}0===Le.length&&(Le=Object.values(C)),yield Promise.all(Le),v("event",$,be||{})}catch(Le){Zn.error(Le)}})).apply(this,arguments)}function Do(v){const C=window.document.getElementsByTagName("script");for(const I of Object.values(C))if(I.src&&I.src.includes(Ti)&&I.src.includes(v))return I;return null}const vr=new U.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.'}),to=new class fs{constructor(C={},I=1e3){this.throttleMetadata=C,this.intervalMillis=I}getThrottleMetadata(C){return this.throttleMetadata[C]}setThrottleMetadata(C,I){this.throttleMetadata[C]=I}deleteThrottleMetadata(C){delete this.throttleMetadata[C]}};function Eo(v){return new Headers({Accept:"application/json","x-goog-api-key":v})}function no(v){return Ro.apply(this,arguments)}function Ro(){return(Ro=(0,F.Z)(function*(v){var C;const{appId:I,apiKey:$}=v,be={method:"GET",headers:Eo($)},Le=Po.replace("{app-id}",I),Xe=yield fetch(Le,be);if(200!==Xe.status&&304!==Xe.status){let Et="";try{const Ft=yield Xe.json();null!==(C=Ft.error)&&void 0!==C&&C.message&&(Et=Ft.error.message)}catch{}throw vr.create("config-fetch-failed",{httpStatus:Xe.status,responseMessage:Et})}return Xe.json()})).apply(this,arguments)}function di(v){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,F.Z)(function*(v,C=to,I){const{appId:$,apiKey:be,measurementId:Le}=v.options;if(!$)throw vr.create("no-app-id");if(!be){if(Le)return{measurementId:Le,appId:$};throw vr.create("no-api-key")}const Xe=C.getThrottleMetadata($)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Et=new Ki;return setTimeout((0,F.Z)(function*(){Et.abort()}),void 0!==I?I:6e4),xi({appId:$,apiKey:be,measurementId:Le},Xe,Et,C)})).apply(this,arguments)}function xi(v,C,I){return hs.apply(this,arguments)}function hs(){return(hs=(0,F.Z)(function*(v,{throttleEndTimeMillis:C,backoffCount:I},$,be=to){var Le,Xe;const{appId:Et,measurementId:Ft}=v;try{yield $r($,C)}catch(ln){if(Ft)return Zn.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Ft} provided in the "measurementId" field in the local Firebase config. [${null===(Le=ln)||void 0===Le?void 0:Le.message}]`),{appId:Et,measurementId:Ft};throw ln}try{const ln=yield no(v);return be.deleteThrottleMetadata(Et),ln}catch(ln){const fn=ln;if(!Ms(fn)){if(be.deleteThrottleMetadata(Et),Ft)return Zn.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Ft} provided in the "measurementId" field in the local Firebase config. [${fn?.message}]`),{appId:Et,measurementId:Ft};throw ln}const Lt=503===Number(null===(Xe=fn?.customData)||void 0===Xe?void 0:Xe.httpStatus)?(0,U.$s)(I,be.intervalMillis,30):(0,U.$s)(I,be.intervalMillis),Dr={throttleEndTimeMillis:Date.now()+Lt,backoffCount:I+1};return be.setThrottleMetadata(Et,Dr),Zn.debug(`Calling attemptFetch again in ${Lt} millis`),xi(v,Dr,$,be)}})).apply(this,arguments)}function $r(v,C){return new Promise((I,$)=>{const be=Math.max(C-Date.now(),0),Le=setTimeout(I,be);v.addEventListener(()=>{clearTimeout(Le),$(vr.create("fetch-throttle",{throttleEndTimeMillis:C}))})})}function Ms(v){if(!(v instanceof U.ZR&&v.customData))return!1;const C=Number(v.customData.httpStatus);return 429===C||500===C||503===C||504===C}class Ki{constructor(){this.listeners=[]}addEventListener(C){this.listeners.push(C)}abort(){this.listeners.forEach(C=>C())}}let Ps,a;function Os(){return(Os=(0,F.Z)(function*(v,C,I,$,be){if(be&&be.global)v("event",I,$);else{const Le=yield C;v("event",I,Object.assign(Object.assign({},$),{send_to:Le}))}})).apply(this,arguments)}function o(v){a=v}function p(v){Ps=v}function S(){return N.apply(this,arguments)}function N(){return(N=(0,F.Z)(function*(){var v;if(!(0,U.hl)())return Zn.warn(vr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,U.eu)()}catch(C){return Zn.warn(vr.create("indexeddb-unavailable",{errorInfo:null===(v=C)||void 0===v?void 0:v.toString()}).message),!1}return!0})).apply(this,arguments)}function q(){return(q=(0,F.Z)(function*(v,C,I,$,be,Le,Xe){var Et;const Ft=di(v);Ft.then(Qr=>{I[Qr.measurementId]=Qr.appId,v.options.measurementId&&Qr.measurementId!==v.options.measurementId&&Zn.warn(`The measurement ID in the local Firebase config (${v.options.measurementId}) does not match the measurement ID fetched from the server (${Qr.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(Qr=>Zn.error(Qr)),C.push(Ft);const ln=S().then(Qr=>{if(Qr)return $.getId()}),[fn,Lt]=yield Promise.all([Ft,ln]);Do(Le)||Oo(Le,fn.measurementId),a&&(be("consent","default",a),o(void 0)),be("js",new Date);const Dr=null!==(Et=Xe?.config)&&void 0!==Et?Et:{};return Dr.origin="firebase",Dr.update=!0,null!=Lt&&(Dr[Yr]=Lt),be("config",fn.measurementId,Dr),Ps&&(be("set",Ps),p(void 0)),fn.measurementId})).apply(this,arguments)}class Me{constructor(C){this.app=C}_delete(){return delete Ue[this.app.options.appId],Promise.resolve()}}let Ue={},vt=[];const It={};let f,d,en="dataLayer",u=!1;function P(v,C,I){!function w(){const v=[];if((0,U.ru)()&&v.push("This is a browser extension environment."),(0,U.zI)()||v.push("Cookies are not available."),v.length>0){const C=v.map(($,be)=>`(${be+1}) ${$}`).join(" "),I=vr.create("invalid-analytics-context",{errorInfo:C});Zn.warn(I.message)}}();const $=v.options.appId;if(!$)throw vr.create("no-app-id");if(!v.options.apiKey){if(!v.options.measurementId)throw vr.create("no-api-key");Zn.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 ${v.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Ue[$])throw vr.create("already-exists",{id:$});if(!u){!function Wo(v){let C=[];Array.isArray(window[v])?C=window[v]:window[v]=C}(en);const{wrappedGtag:Le,gtagCore:Xe}=function or(v,C,I,$,be){let Le=function(...Xe){window[$].push(arguments)};return window[be]&&"function"==typeof window[be]&&(Le=window[be]),window[be]=function ds(v,C,I,$){function Le(){return(Le=(0,F.Z)(function*(Xe,Et,Ft){try{"event"===Xe?yield eo(v,C,I,Et,Ft):"config"===Xe?yield _o(v,C,I,$,Et,Ft):"consent"===Xe?v("consent","update",Ft):v("set",Et)}catch(ln){Zn.error(ln)}})).apply(this,arguments)}return function be(Xe,Et,Ft){return Le.apply(this,arguments)}}(Le,v,C,I),{gtagCore:Le,wrappedGtag:window[be]}}(Ue,vt,It,en,"gtag");d=Le,f=Xe,u=!0}return Ue[$]=function X(v,C,I,$,be,Le,Xe){return q.apply(this,arguments)}(v,vt,It,C,f,en,I),new Me(v)}function We(){return ot.apply(this,arguments)}function ot(){return(ot=(0,F.Z)(function*(){if((0,U.ru)()||!(0,U.zI)()||!(0,U.hl)())return!1;try{return yield(0,U.eu)()}catch{return!1}})).apply(this,arguments)}const xs="@firebase/analytics";!function Ot(){(0,z._registerComponent)(new J.wA(wi,(C,{options:I})=>P(C.getProvider("app").getImmediate(),C.getProvider("installations-internal").getImmediate(),I),"PUBLIC")),(0,z._registerComponent)(new J.wA("analytics-internal",function v(C){try{const I=C.getProvider(wi).getImmediate();return{logEvent:($,be,Le)=>function _r(v,C,I,$){v=(0,U.m9)(v),function ro(v,C,I,$,be){return Os.apply(this,arguments)}(d,Ue[v.app.options.appId],C,I,$).catch(be=>Zn.error(be))}(I,$,be,Le)}}catch(I){throw vr.create("interop-component-reg-failed",{reason:I})}},"PRIVATE")),(0,z.registerVersion)(xs,"0.8.3"),(0,z.registerVersion)(xs,"0.8.3","esm2017")}();var Ut=b(4408),Jn=b(7565);const Vr=new class fi extends Jn.v{}(class pn extends Ut.o{constructor(C,I){super(C,I),this.scheduler=C,this.work=I}schedule(C,I=0){return I>0?super.schedule(C,I):(this.delay=I,this.state=C,this.scheduler.flush(this),this)}execute(C,I){return I>0||this.closed?super.execute(C,I):this._execute(C,I)}requestAsyncId(C,I,$=0){return null!=$&&$>0||null==$&&this.delay>0?super.requestAsyncId(C,I,$):C.flush(this)}});var Xn=b(4986),Sa=b(8505),Go=b(9468),On=b(5363);const Ni=new m.GfV("7.4.1"),ur="__angularfire_symbol__analyticsIsSupportedValue",oo="__angularfire_symbol__analyticsIsSupported",Ns="__angularfire_symbol__remoteConfigIsSupportedValue",Ia="__angularfire_symbol__remoteConfigIsSupported",Aa="__angularfire_symbol__messagingIsSupportedValue",Ma="__angularfire_symbol__messagingIsSupported";function Ko(v,C,I){if(C){if(1===C.length)return C[0];const Le=C.filter(Xe=>Xe.app===I);if(1===Le.length)return Le[0]}return I.container.getProvider(v).getImmediate({optional:!0})}globalThis[oo]||(globalThis[oo]=We().then(v=>globalThis[ur]=v).catch(()=>globalThis[ur]=!1)),globalThis[Ma]||(globalThis[Ma]=Ts().then(v=>globalThis[Aa]=v).catch(()=>globalThis[Aa]=!1)),globalThis[Ia]||(globalThis[Ia]=ts().then(v=>globalThis[Ns]=v).catch(()=>globalThis[Ns]=!1));const _d=(v,C)=>{const I=C?[C]:(0,c.C6)(),$=[];return I.forEach(be=>{be.container.getProvider(v).instances.forEach(Xe=>{$.includes(Xe)||$.push(Xe)})}),$};function Qi(){}class Zo{constructor(C,I=Vr){this.zone=C,this.delegate=I}now(){return this.delegate.now()}schedule(C,I,$){const be=this.zone;return this.delegate.schedule(function(Xe){be.runGuarded(()=>{C.apply(this,[Xe])})},I,$)}}class Yo{constructor(C){this.zone=C,this.task=null}call(C,I){const $=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Qi,{},Qi,Qi)),I.pipe((0,Sa.b)({next:$,complete:$,error:$})).subscribe(C).add($)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let zl=(()=>{class v{constructor(I){this.ngZone=I,this.outsideAngular=I.runOutsideAngular(()=>new Zo(Zone.current)),this.insideAngular=I.run(()=>new Zo(Zone.current,Xn.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return v.\u0275fac=function(I){return new(I||v)(m.LFG(m.R0b))},v.\u0275prov=m.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();function ao(){const v=globalThis.\u0275AngularFireScheduler;if(!v)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 v}function nl(v){return ao(),function hr(v){return function(I){return(I=I.lift(new Yo(v.ngZone))).pipe((0,Go.R)(v.outsideAngular),(0,On.Q)(v.insideAngular))}}(ao())(v)}},2090:(it,De,b)=>{b.d(De,{$s:()=>gt,BH:()=>Bt,L:()=>ie,LL:()=>$e,Pz:()=>qt,UG:()=>xe,US:()=>J,ZB:()=>L,ZR:()=>tn,aH:()=>ut,b$:()=>Te,eu:()=>ue,hl:()=>le,jU:()=>Be,m9:()=>rn,ne:()=>se,pd:()=>wn,r3:()=>jn,ru:()=>Ie,tV:()=>te,uI:()=>Oe,vZ:()=>Hn,w1:()=>ke,xO:()=>St,xb:()=>Un,z$:()=>je,zI:()=>W,zd:()=>ar});const z=function(Y){const V=[];let pe=0;for(let Re=0;Re<Y.length;Re++){let Ee=Y.charCodeAt(Re);Ee<128?V[pe++]=Ee:Ee<2048?(V[pe++]=Ee>>6|192,V[pe++]=63&Ee|128):55296==(64512&Ee)&&Re+1<Y.length&&56320==(64512&Y.charCodeAt(Re+1))?(Ee=65536+((1023&Ee)<<10)+(1023&Y.charCodeAt(++Re)),V[pe++]=Ee>>18|240,V[pe++]=Ee>>12&63|128,V[pe++]=Ee>>6&63|128,V[pe++]=63&Ee|128):(V[pe++]=Ee>>12|224,V[pe++]=Ee>>6&63|128,V[pe++]=63&Ee|128)}return V},J={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(Y,V){if(!Array.isArray(Y))throw Error("encodeByteArray takes an array as a parameter");this.init_();const pe=V?this.byteToCharMapWebSafe_:this.byteToCharMap_,Re=[];for(let Ee=0;Ee<Y.length;Ee+=3){const dt=Y[Ee],At=Ee+1<Y.length,Kt=At?Y[Ee+1]:0,hn=Ee+2<Y.length,rt=hn?Y[Ee+2]:0;let G=(15&Kt)<<2|rt>>6,j=63&rt;hn||(j=64,At||(G=64)),Re.push(pe[dt>>2],pe[(3&dt)<<4|Kt>>4],pe[G],pe[j])}return Re.join("")},encodeString(Y,V){return this.HAS_NATIVE_SUPPORT&&!V?btoa(Y):this.encodeByteArray(z(Y),V)},decodeString(Y,V){return this.HAS_NATIVE_SUPPORT&&!V?atob(Y):function(Y){const V=[];let pe=0,Re=0;for(;pe<Y.length;){const Ee=Y[pe++];if(Ee<128)V[Re++]=String.fromCharCode(Ee);else if(Ee>191&&Ee<224){const dt=Y[pe++];V[Re++]=String.fromCharCode((31&Ee)<<6|63&dt)}else if(Ee>239&&Ee<365){const hn=((7&Ee)<<18|(63&Y[pe++])<<12|(63&Y[pe++])<<6|63&Y[pe++])-65536;V[Re++]=String.fromCharCode(55296+(hn>>10)),V[Re++]=String.fromCharCode(56320+(1023&hn))}else{const dt=Y[pe++],At=Y[pe++];V[Re++]=String.fromCharCode((15&Ee)<<12|(63&dt)<<6|63&At)}}return V.join("")}(this.decodeStringToByteArray(Y,V))},decodeStringToByteArray(Y,V){this.init_();const pe=V?this.charToByteMapWebSafe_:this.charToByteMap_,Re=[];for(let Ee=0;Ee<Y.length;){const dt=pe[Y.charAt(Ee++)],Kt=Ee<Y.length?pe[Y.charAt(Ee)]:0;++Ee;const rt=Ee<Y.length?pe[Y.charAt(Ee)]:64;++Ee;const Q=Ee<Y.length?pe[Y.charAt(Ee)]:64;if(++Ee,null==dt||null==Kt||null==rt||null==Q)throw Error();Re.push(dt<<2|Kt>>4),64!==rt&&(Re.push(Kt<<4&240|rt>>2),64!==Q&&Re.push(rt<<6&192|Q))}return Re},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let Y=0;Y<this.ENCODED_VALS.length;Y++)this.byteToCharMap_[Y]=this.ENCODED_VALS.charAt(Y),this.charToByteMap_[this.byteToCharMap_[Y]]=Y,this.byteToCharMapWebSafe_[Y]=this.ENCODED_VALS_WEBSAFE.charAt(Y),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[Y]]=Y,Y>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(Y)]=Y,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(Y)]=Y)}}},ie=function(Y){return function(Y){const V=z(Y);return J.encodeByteArray(V,!0)}(Y).replace(/\./g,"")},te=function(Y){try{return J.decodeString(Y,!0)}catch(V){console.error("base64Decode failed: ",V)}return null};function L(Y,V){if(!(V instanceof Object))return V;switch(V.constructor){case Date:return new Date(V.getTime());case Object:void 0===Y&&(Y={});break;case Array:Y=[];break;default:return V}for(const pe in V)!V.hasOwnProperty(pe)||!de(pe)||(Y[pe]=L(Y[pe],V[pe]));return Y}function de(Y){return"__proto__"!==Y}function je(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Oe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(je())}function xe(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function Be(){return"object"==typeof self&&self.self===self}function Ie(){const Y="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof Y&&void 0!==Y.id}function Te(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function ke(){const Y=je();return Y.indexOf("MSIE ")>=0||Y.indexOf("Trident/")>=0}function le(){return"object"==typeof indexedDB}function ue(){return new Promise((Y,V)=>{try{let pe=!0;const Re="validate-browser-context-for-indexeddb-analytics-module",Ee=self.indexedDB.open(Re);Ee.onsuccess=()=>{Ee.result.close(),pe||self.indexedDB.deleteDatabase(Re),Y(!0)},Ee.onupgradeneeded=()=>{pe=!1},Ee.onerror=()=>{var dt;V((null===(dt=Ee.error)||void 0===dt?void 0:dt.message)||"")}}catch(pe){V(pe)}})}function W(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const ve=()=>{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 Y=process.env.__FIREBASE_DEFAULTS__;return Y?JSON.parse(Y):void 0})()||(()=>{if(typeof document>"u")return;let Y;try{Y=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const V=Y&&te(Y[1]);return V&&JSON.parse(V)})()}catch(Y){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${Y}`)}},ut=()=>{var Y;return null===(Y=ve())||void 0===Y?void 0:Y.config},qt=Y=>{var V;return null===(V=ve())||void 0===V?void 0:V[`_${Y}`]};class Bt{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((V,pe)=>{this.resolve=V,this.reject=pe})}wrapCallback(V){return(pe,Re)=>{pe?this.reject(pe):this.resolve(Re),"function"==typeof V&&(this.promise.catch(()=>{}),1===V.length?V(pe):V(pe,Re))}}}class tn extends Error{constructor(V,pe,Re){super(pe),this.code=V,this.customData=Re,this.name="FirebaseError",Object.setPrototypeOf(this,tn.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,$e.prototype.create)}}class $e{constructor(V,pe,Re){this.service=V,this.serviceName=pe,this.errors=Re}create(V,...pe){const Re=pe[0]||{},Ee=`${this.service}/${V}`,dt=this.errors[V],At=dt?function Ye(Y,V){return Y.replace(ye,(pe,Re)=>{const Ee=V[Re];return null!=Ee?String(Ee):`<${Re}?>`})}(dt,Re):"Error";return new tn(Ee,`${this.serviceName}: ${At} (${Ee}).`,Re)}}const ye=/\{\$([^}]+)}/g;function jn(Y,V){return Object.prototype.hasOwnProperty.call(Y,V)}function Un(Y){for(const V in Y)if(Object.prototype.hasOwnProperty.call(Y,V))return!1;return!0}function Hn(Y,V){if(Y===V)return!0;const pe=Object.keys(Y),Re=Object.keys(V);for(const Ee of pe){if(!Re.includes(Ee))return!1;const dt=Y[Ee],At=V[Ee];if(_t(dt)&&_t(At)){if(!Hn(dt,At))return!1}else if(dt!==At)return!1}for(const Ee of Re)if(!pe.includes(Ee))return!1;return!0}function _t(Y){return null!==Y&&"object"==typeof Y}function St(Y){const V=[];for(const[pe,Re]of Object.entries(Y))Array.isArray(Re)?Re.forEach(Ee=>{V.push(encodeURIComponent(pe)+"="+encodeURIComponent(Ee))}):V.push(encodeURIComponent(pe)+"="+encodeURIComponent(Re));return V.length?"&"+V.join("&"):""}function ar(Y){const V={};return Y.replace(/^\?/,"").split("&").forEach(Re=>{if(Re){const[Ee,dt]=Re.split("=");V[decodeURIComponent(Ee)]=decodeURIComponent(dt)}}),V}function wn(Y){const V=Y.indexOf("?");if(!V)return"";const pe=Y.indexOf("#",V);return Y.substring(V,pe>0?pe:void 0)}function se(Y,V){const pe=new fe(Y,V);return pe.subscribe.bind(pe)}class fe{constructor(V,pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=pe,this.task.then(()=>{V(this)}).catch(Re=>{this.error(Re)})}next(V){this.forEachObserver(pe=>{pe.next(V)})}error(V){this.forEachObserver(pe=>{pe.error(V)}),this.close(V)}complete(){this.forEachObserver(V=>{V.complete()}),this.close()}subscribe(V,pe,Re){let Ee;if(void 0===V&&void 0===pe&&void 0===Re)throw new Error("Missing Observer.");Ee=function Se(Y,V){if("object"!=typeof Y||null===Y)return!1;for(const pe of V)if(pe in Y&&"function"==typeof Y[pe])return!0;return!1}(V,["next","error","complete"])?V:{next:V,error:pe,complete:Re},void 0===Ee.next&&(Ee.next=tt),void 0===Ee.error&&(Ee.error=tt),void 0===Ee.complete&&(Ee.complete=tt);const dt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?Ee.error(this.finalError):Ee.complete()}catch{}}),this.observers.push(Ee),dt}unsubscribeOne(V){void 0===this.observers||void 0===this.observers[V]||(delete this.observers[V],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(V){if(!this.finalized)for(let pe=0;pe<this.observers.length;pe++)this.sendOne(pe,V)}sendOne(V,pe){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[V])try{pe(this.observers[V])}catch(Re){typeof console<"u"&&console.error&&console.error(Re)}})}close(V){this.finalized||(this.finalized=!0,void 0!==V&&(this.finalError=V),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function tt(){}function gt(Y,V=1e3,pe=2){const Re=V*Math.pow(pe,Y),Ee=Math.round(.5*Re*(Math.random()-.5)*2);return Math.min(144e5,Re+Ee)}function rn(Y){return Y&&Y._delegate?Y._delegate:Y}},1318:(it,De,b)=>{b.d(De,{O:()=>Ie});var m=b(515),c=b(8306),F=b(4986),z=b(1165),U=b(4482),J=b(8421),ee=b(3888),ie=b(5403),te=b(9672);const R=(0,ee.d)(Te=>function(ke=null){Te(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ke});function de(Te){throw new R(Te)}var je=b(262),Oe=b(4650),xe=b(529),Be=b(7185);let Ie=(()=>{class Te{constructor(ke,Ce){this.http=ke,this.toastr=Ce}get(ke){return this.http.get(ke).pipe((0,je.K)(Ce=>{let x=this.errorMessageHandling(Ce);return this.toastr.error(""!=x.message?x.message:"An unknown error has occured!",x.header),m.E}))}post(ke,Ce,x=1e5){return new c.y(K=>{this.http.post(ke,Ce).pipe(function L(Te,Je){const{first:ke,each:Ce,with:x=de,scheduler:K=Je??F.z,meta:le=null}=(0,z.q)(Te)?{first:Te}:"number"==typeof Te?{each:Te}:Te;if(null==ke&&null==Ce)throw new TypeError("No timeout provided.");return(0,U.e)((ue,W)=>{let ge,H,ne=null,me=0;const ve=_e=>{H=(0,te.f)(W,K,()=>{try{ge.unsubscribe(),(0,J.Xf)(x({meta:le,lastValue:ne,seen:me})).subscribe(W)}catch(Ve){W.error(Ve)}},_e)};ge=ue.subscribe((0,ie.x)(W,_e=>{H?.unsubscribe(),me++,W.next(ne=_e),Ce>0&&ve(Ce)},void 0,void 0,()=>{H?.closed||H?.unsubscribe(),ne=null})),!me&&ve(null!=ke?"number"==typeof ke?ke:+ke-K.now():Ce)})}(x)).subscribe({next:le=>{K.next(le),K.complete()},error:le=>{if(200==le.status)K.next(le.error.text),K.complete();else{if(!this.unauthorizedErrorHandling(le)&&!Array.isArray(le?.error?.Message)){let W=this.errorMessageHandling(le);this.toastr.error(""!=W.message?W.message:"An unknown error has occured!",W.header,{enableHtml:!0})}K.error(le)}}})})}unauthorizedErrorHandling(ke){let Ce=!1;return 401==ke.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Ce=!0),Ce}errorMessageHandling(ke){let Ce="API Error",x="Exception Message";return ke.error?(Ce="API Error - "+ke.status,ke.error.Message&&(x=-1!=ke.error.Message.indexOf("Message")?JSON.parse(ke.error.Message).Message:ke.error.Message)):ke.message&&(Ce="API Error - "+ke.name,x=ke.message),{header:Ce,message:x}}}return Te.\u0275fac=function(ke){return new(ke||Te)(Oe.LFG(xe.eN),Oe.LFG(Be._W))},Te.\u0275prov=Oe.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})()},8002:(it,De,b)=>{b.d(De,{e:()=>c});var m=b(4650);let c=(()=>{class F{constructor(){}getParseToken(){let U=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(U.Token.access_token)}GetRoles(){return this.getParseToken().Role}ParseToken(U){try{const ee=U.split(".")[0].replace("-","+").replace("_","/"),ie=JSON.parse(window.atob(ee)),R=U.split(".")[1].replace("-","+").replace("_","/"),L=JSON.parse(window.atob(R));return L.header=ie,L}catch{return!1}}}return F.\u0275fac=function(U){return new(U||F)},F.\u0275prov=m.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"}),F})()},2340:(it,De,b)=>{b.d(De,{N:()=>m});const m={production:!0,version:"2.5.9",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:(it,De,b)=>{var m=b(1481),c=b(4650),F=b(529),z=b(4707);function U(_,a){return(o,p)=>!_.call(a,o,p)}var J=b(9300),ee=b(8421),te=b(6451),R=b(2805),L=b(8746),de=b(3900),je=b(4482),Oe=b(5032),xe=b(5403);function Be(_){return(0,je.e)((a,o)=>{let p=!1,S=null,N=null;const X=()=>{if(N?.unsubscribe(),N=null,p){p=!1;const q=S;S=null,o.next(q)}};a.subscribe((0,xe.x)(o,q=>{N?.unsubscribe(),p=!0,S=q,N=(0,xe.x)(o,X,Oe.Z),(0,ee.Xf)(_(q)).subscribe(N)},()=>{X(),o.complete()},void 0,()=>{S=N=null}))})}var Ie=b(1884),Te=b(8505),Je=b(6895);function ke(_,a){1&_&&c.GkF(0)}function Ce(_,a){if(1&_&&c._UZ(0,"sk-cube-grid",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function x(_,a){if(1&_&&c._UZ(0,"sk-chasing-dots",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function K(_,a){if(1&_&&c._UZ(0,"sk-double-bounce",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function le(_,a){if(1&_&&c._UZ(0,"sk-rotating-plane",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function ue(_,a){if(1&_&&c._UZ(0,"sk-spinner-pulse",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function W(_,a){if(1&_&&c._UZ(0,"sk-three-bounce",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function ge(_,a){if(1&_&&c._UZ(0,"sk-wandering-cubes",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}function H(_,a){if(1&_&&c._UZ(0,"sk-wave",4),2&_){const o=c.oxw(2);c.Q6J("backgroundColor",o.backgroundColor)}}const ne=function(_){return{"background-color":_}};function me(_,a){if(1&_&&(c.TgZ(0,"div",1),c.YNc(1,ke,1,0,"ng-container",2),c.YNc(2,Ce,1,1,"sk-cube-grid",3),c.YNc(3,x,1,1,"sk-chasing-dots",3),c.YNc(4,K,1,1,"sk-double-bounce",3),c.YNc(5,le,1,1,"sk-rotating-plane",3),c.YNc(6,ue,1,1,"sk-spinner-pulse",3),c.YNc(7,W,1,1,"sk-three-bounce",3),c.YNc(8,ge,1,1,"sk-wandering-cubes",3),c.YNc(9,H,1,1,"sk-wave",3),c.qZA()),2&_){const o=c.oxw();c.Udp("opacity",o.opacity),c.ekj("backdrop",o.backdrop),c.Q6J("ngStyle",c.VKq(14,ne,o.backdrop?o.backdropBackgroundColor:"transparent")),c.xp6(1),c.Q6J("ngComponentOutlet",o.entryComponent),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skCubeGrid),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skChasingDots),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skDoubleBounce),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skRotatingPlane),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skSpinnerPulse),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skThreeBounce),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skWanderingCubes),c.xp6(1),c.Q6J("ngIf",o.spinner===o.spinkit.skWave)}}let ve=(()=>{class _{}return _.\u0275fac=function(o){return new(o||_)},_.\u0275dir=c.lG2({type:_,inputs:{backgroundColor:"backgroundColor"}}),_})(),_e=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-chasing-dots"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation: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:sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),_})(),Ve=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-cube-grid"]],features:[c.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(o,p){1&o&&(c.TgZ(0,"div",0),c._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),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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: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 sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),_})(),ut=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-double-bounce"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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:sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),_})(),qt=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-rotating-plane"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(o,p){1&o&&c._UZ(0,"div",0),2&o&&c.Udp("background-color",p.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:sk-rotatePlane 1.2s infinite ease-in-out}@keyframes 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)}}"]}),_})(),Bt=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-spinner-pulse"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(o,p){1&o&&c._UZ(0,"div",0),2&o&&c.Udp("background-color",p.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:sk-pulseScaleOut 1s infinite ease-in-out}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),_})(),lt=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-three-bounce"]],features:[c.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(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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: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 sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),_})(),dn=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-wandering-cubes"]],features:[c.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes 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)}}"]}),_})(),tn=(()=>{class _ extends ve{}return _.\u0275fac=function(){let a;return function(p){return(a||(a=c.n5z(_)))(p||_)}}(),_.\u0275cmp=c.Xpm({type:_,selectors:[["sk-wave"]],features:[c.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(o,p){1&o&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),c.qZA()),2&o&&(c.ekj("colored",!p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.backgroundColor),c.xp6(1),c.Udp("background-color",p.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: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 sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),_})();const $e={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 ye=(()=>{class _{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new z.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(o){this._filteredMethods=o}set filteredHeaders(o){this._filteredHeaders=o}set forceByPass(o){this._forceByPass=o}shouldBypassUrl(o){return this._filteredUrlPatterns.some(p=>p.test(o))}shouldBypassMethod(o){return this._filteredMethods.some(p=>p.toUpperCase()===o.method.toUpperCase())}shouldBypassHeader(o){return this._filteredHeaders.some(p=>o.headers.has(p))}shouldBypass(o){return this._forceByPass||this.shouldBypassUrl(o.urlWithParams)||this.shouldBypassMethod(o)||this.shouldBypassHeader(o)}intercept(o,p){const S=this.shouldBypass(o);return S||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),p.handle(o).pipe((0,L.x)(()=>{S||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Fe=[{provide:F.TP,useExisting:ye,multi:!0}];let ct=(()=>{class _{constructor(o){this.pendingRequestsInterceptor=o,this._visibility$=new z.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 _.\u0275fac=function(o){return new(o||_)(c.LFG(ye))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),Tt=(()=>{class _{constructor(o,p){this.pendingRequestsInterceptor=o,this.spinnerVisibility=p,this.spinkit=$e,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=$e.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[o,p]=function ie(_,a,o){return[(0,J.h)(a,o)((0,ee.Xf)(_)),(0,J.h)(U(a,o))((0,ee.Xf)(_))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,S=>S);this.isVisible$=(0,te.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,de.w)(()=>o.pipe(Be(()=>(0,R.H)(this.debounceDelay))))),o.pipe((0,de.w)(()=>p.pipe(Be(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Ie.x)(),(0,Te.b)(S=>this.updateExpirationDelay(S)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(o=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(o)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(o){o&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,R.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return _.\u0275fac=function(o){return new(o||_)(c.Y36(ye),c.Y36(ct))},_.\u0275cmp=c.Xpm({type:_,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(o,p){1&o&&(c.YNc(0,me,10,16,"div",0),c.ALo(1,"async")),2&o&&c.Q6J("ngIf",c.lcZ(1,1,p.isVisible$))},dependencies:[Je.$G,Je.O5,Je.PC,Ve,_e,ut,qt,Bt,lt,dn,tn,Je.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}"]}),_})(),nn=(()=>{class _{static forRoot(){return{ngModule:_,providers:[Fe]}}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[Je.ez]}),_})();var vn=b(1318),Wn=b(8002),In=b(6806);const jn=[{path:"",loadChildren:()=>Promise.all([b.e(796),b.e(291),b.e(117)]).then(b.bind(b,4117)).then(_=>_.LoginModule)},{path:"menu",loadChildren:()=>Promise.all([b.e(291),b.e(397)]).then(b.bind(b,2397)).then(_=>_.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let Nn=(()=>{class _{}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[In.Bz.forRoot(jn,{relativeLinkResolution:"legacy"}),In.Bz]}),_})();var Un=b(4004),Mt=b(5577);let Hn=(()=>{class _{constructor(o,p,S){this._router=o,this.titleService=p,this.activatedRoute=S}ngOnInit(){this.overrideDateToJsonFunction(),this._router.events.pipe((0,J.h)(o=>o instanceof In.m2)).pipe((0,Un.U)(()=>this.activatedRoute),(0,Un.U)(o=>{for(;o.firstChild;)o=o.firstChild;return o}),(0,J.h)(o=>"primary"===o.outlet),(0,Mt.z)(o=>o.data)).subscribe(o=>{let p=" | Marketplace";"Dealpos x Marketplace"==o.title&&(p=""),this.titleService.setTitle(o.title+p)})}overrideDateToJsonFunction(){function o(p){return p<10?"0"+p:p}Date.prototype.toJSON=function(){return this.getFullYear()+"-"+o(this.getMonth()+1)+"-"+o(this.getDate())+"T"+o(this.getHours())+":"+o(this.getMinutes())+":"+o(this.getSeconds())+".000"}}}return _.\u0275fac=function(o){return new(o||_)(c.Y36(In.F0),c.Y36(m.Dx),c.Y36(In.gz))},_.\u0275cmp=c.Xpm({type:_,selectors:[["app-root"]],decls:2,vars:0,template:function(o,p){1&o&&c._UZ(0,"router-outlet")(1,"ng-http-loader")},dependencies:[In.lC,Tt]}),_})();var _t=b(7340);function St(_){return new c.vHH(3e3,!1)}function G(){return typeof window<"u"&&typeof window.document<"u"}function j(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function he(_){switch(_.length){case 0:return new _t.ZN;case 1:return _[0];default:return new _t.ZE(_)}}function Qe(_,a,o,p,S=new Map,N=new Map){const X=[],q=[];let Me=-1,Ue=null;if(p.forEach(vt=>{const It=vt.get("offset"),en=It==Me,Yt=en&&Ue||new Map;vt.forEach((f,d)=>{let u=d,y=f;if("offset"!==d)switch(u=a.normalizePropertyName(u,X),y){case _t.k1:y=S.get(d);break;case _t.l3:y=N.get(d);break;default:y=a.normalizeStyleValue(d,u,y,X)}Yt.set(u,y)}),en||q.push(Yt),Ue=Yt,Me=It}),X.length)throw function rn(_){return new c.vHH(3502,!1)}();return q}function yt(_,a,o,p){switch(a){case"start":_.onStart(()=>p(o&&Zt(o,"start",_)));break;case"done":_.onDone(()=>p(o&&Zt(o,"done",_)));break;case"destroy":_.onDestroy(()=>p(o&&Zt(o,"destroy",_)))}}function Zt(_,a,o){const N=mn(_.element,_.triggerName,_.fromState,_.toState,a||_.phaseName,o.totalTime??_.totalTime,!!o.disabled),X=_._data;return null!=X&&(N._data=X),N}function mn(_,a,o,p,S="",N=0,X){return{element:_,triggerName:a,fromState:o,toState:p,phaseName:S,totalTime:N,disabled:!!X}}function Dt(_,a,o){let p=_.get(a);return p||_.set(a,p=o),p}function Sr(_){const a=_.indexOf(":");return[_.substring(1,a),_.slice(a+1)]}let xr=(_,a)=>!1,zr=(_,a,o)=>[],gr=null;function kn(_){const a=_.parentNode||_.host;return a===gr?null:a}(j()||typeof Element<"u")&&(G()?(gr=(()=>document.documentElement)(),xr=(_,a)=>{for(;a;){if(a===_)return!0;a=kn(a)}return!1}):xr=(_,a)=>_.contains(a),zr=(_,a,o)=>{if(o)return Array.from(_.querySelectorAll(a));const p=_.querySelector(a);return p?[p]:[]});let Fn=null,kr=!1;const cr=xr,rr=zr;let Cr=(()=>{class _{validateStyleProperty(o){return function Yn(_){Fn||(Fn=function gi(){return typeof document<"u"?document.body:null}()||{},kr=!!Fn.style&&"WebkitAppearance"in Fn.style);let a=!0;return Fn.style&&!function Nr(_){return"ebkit"==_.substring(1,6)}(_)&&(a=_ in Fn.style,!a&&kr&&(a="Webkit"+_.charAt(0).toUpperCase()+_.slice(1)in Fn.style)),a}(o)}matchesElement(o,p){return!1}containsElement(o,p){return cr(o,p)}getParentElement(o){return kn(o)}query(o,p,S){return rr(o,p,S)}computeStyle(o,p,S){return S||""}animate(o,p,S,N,X,q=[],Me){return new _t.ZN(S,N)}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})(),ei=(()=>{class _{}return _.NOOP=new Cr,_})();const xn="ng-enter",$n="ng-leave",Hr="ng-trigger",br=".ng-trigger",Fr="ng-animating",ir=".ng-animating";function sr(_){if("number"==typeof _)return _;const a=_.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Si(parseFloat(a[1]),a[2])}function Si(_,a){return"s"===a?1e3*_:_}function ti(_,a,o){return _.hasOwnProperty("duration")?_:function ji(_,a,o){let S,N=0,X="";if("string"==typeof _){const q=_.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===q)return a.push(St()),{duration:0,delay:0,easing:""};S=Si(parseFloat(q[1]),q[2]);const Me=q[3];null!=Me&&(N=Si(parseFloat(Me),q[4]));const Ue=q[5];Ue&&(X=Ue)}else S=_;if(!o){let q=!1,Me=a.length;S<0&&(a.push(function ar(){return new c.vHH(3100,!1)}()),q=!0),N<0&&(a.push(function wn(){return new c.vHH(3101,!1)}()),q=!0),q&&a.splice(Me,0,St())}return{duration:S,delay:N,easing:X}}(_,a,o)}function Ur(_,a={}){return Object.keys(_).forEach(o=>{a[o]=_[o]}),a}function Ii(_){const a=new Map;return Object.keys(_).forEach(o=>{a.set(o,_[o])}),a}function Lr(_,a=new Map,o){if(o)for(let[p,S]of o)a.set(p,S);for(let[p,S]of _)a.set(p,S);return a}function vi(_,a,o){return o?a+":"+o+";":""}function Ji(_){let a="";for(let o=0;o<_.style.length;o++){const p=_.style.item(o);a+=vi(0,p,_.style.getPropertyValue(p))}for(const o in _.style)_.style.hasOwnProperty(o)&&!o.startsWith("_")&&(a+=vi(0,Hi(o),_.style[o]));_.setAttribute("style",a)}function Ir(_,a,o){_.style&&(a.forEach((p,S)=>{const N=Es(S);o&&!o.has(S)&&o.set(S,_.style[N]),_.style[N]=p}),j()&&Ji(_))}function mr(_,a){_.style&&(a.forEach((o,p)=>{const S=Es(p);_.style[S]=""}),j()&&Ji(_))}function wr(_){return Array.isArray(_)?1==_.length?_[0]:(0,_t.vP)(_):_}const Xi=new RegExp("{{\\s*(.+?)\\s*}}","g");function es(_){let a=[];if("string"==typeof _){let o;for(;o=Xi.exec(_);)a.push(o[1]);Xi.lastIndex=0}return a}function Wr(_,a,o){const p=_.toString(),S=p.replace(Xi,(N,X)=>{let q=a[X];return null==q&&(o.push(function se(_){return new c.vHH(3003,!1)}()),q=""),q.toString()});return S==p?_:S}function ni(_){const a=[];let o=_.next();for(;!o.done;)a.push(o.value),o=_.next();return a}const _i=/-+([a-z0-9])/g;function Es(_){return _.replace(_i,(...a)=>a[1].toUpperCase())}function Hi(_){return _.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Gn(_,a,o){switch(a.type){case 7:return _.visitTrigger(a,o);case 0:return _.visitState(a,o);case 1:return _.visitTransition(a,o);case 2:return _.visitSequence(a,o);case 3:return _.visitGroup(a,o);case 4:return _.visitAnimate(a,o);case 5:return _.visitKeyframes(a,o);case 6:return _.visitStyle(a,o);case 8:return _.visitReference(a,o);case 9:return _.visitAnimateChild(a,o);case 10:return _.visitAnimateRef(a,o);case 11:return _.visitQuery(a,o);case 12:return _.visitStagger(a,o);default:throw function fe(_){return new c.vHH(3004,!1)}()}}function Br(_,a){return window.getComputedStyle(_)[a]}const Z="*";function ae(_,a){const o=[];return"string"==typeof _?_.split(/\s*,\s*/).forEach(p=>function Ae(_,a,o){if(":"==_[0]){const Me=function ze(_,a){switch(_){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,p)=>parseFloat(p)>parseFloat(o);case":decrement":return(o,p)=>parseFloat(p)<parseFloat(o);default:return a.push(function Ge(_){return new c.vHH(3016,!1)}()),"* => *"}}(_,o);if("function"==typeof Me)return void a.push(Me);_=Me}const p=_.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return o.push(function pt(_){return new c.vHH(3015,!1)}()),a;const S=p[1],N=p[2],X=p[3];a.push(ht(S,X));"<"==N[0]&&!(S==Z&&X==Z)&&a.push(ht(X,S))}(p,o,a)):o.push(_),o}const nt=new Set(["true","1"]),ft=new Set(["false","0"]);function ht(_,a){const o=nt.has(_)||ft.has(_),p=nt.has(a)||ft.has(a);return(S,N)=>{let X=_==Z||_==S,q=a==Z||a==N;return!X&&o&&"boolean"==typeof S&&(X=S?nt.has(_):ft.has(_)),!q&&p&&"boolean"==typeof N&&(q=N?nt.has(a):ft.has(a)),X&&q}}const sn=new RegExp("s*:selfs*,?","g");function Kn(_,a,o,p){return new Pr(_).build(a,o,p)}class Pr{constructor(a){this._driver=a}build(a,o,p){const S=new qn(o);return this._resetContextStyleTimingState(S),Gn(this,wr(a),S)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,o){let p=o.queryCount=0,S=o.depCount=0;const N=[],X=[];return"@"==a.name.charAt(0)&&o.errors.push(function Se(){return new c.vHH(3006,!1)}()),a.definitions.forEach(q=>{if(this._resetContextStyleTimingState(o),0==q.type){const Me=q,Ue=Me.name;Ue.toString().split(/\s*,\s*/).forEach(vt=>{Me.name=vt,N.push(this.visitState(Me,o))}),Me.name=Ue}else if(1==q.type){const Me=this.visitTransition(q,o);p+=Me.queryCount,S+=Me.depCount,X.push(Me)}else o.errors.push(function tt(){return new c.vHH(3007,!1)}())}),{type:7,name:a.name,states:N,transitions:X,queryCount:p,depCount:S,options:null}}visitState(a,o){const p=this.visitStyle(a.styles,o),S=a.options&&a.options.params||null;if(p.containsDynamicStyles){const N=new Set,X=S||{};p.styles.forEach(q=>{q instanceof Map&&q.forEach(Me=>{es(Me).forEach(Ue=>{X.hasOwnProperty(Ue)||N.add(Ue)})})}),N.size&&(ni(N.values()),o.errors.push(function Gt(_,a){return new c.vHH(3008,!1)}()))}return{type:0,name:a.name,style:p,options:S?{params:S}:null}}visitTransition(a,o){o.queryCount=0,o.depCount=0;const p=Gn(this,wr(a.animation),o);return{type:1,matchers:ae(a.expr,o.errors),animation:p,queryCount:o.queryCount,depCount:o.depCount,options:E(a.options)}}visitSequence(a,o){return{type:2,steps:a.steps.map(p=>Gn(this,p,o)),options:E(a.options)}}visitGroup(a,o){const p=o.currentTime;let S=0;const N=a.steps.map(X=>{o.currentTime=p;const q=Gn(this,X,o);return S=Math.max(S,o.currentTime),q});return o.currentTime=S,{type:3,steps:N,options:E(a.options)}}visitAnimate(a,o){const p=function A(_,a){if(_.hasOwnProperty("duration"))return _;if("number"==typeof _)return O(ti(_,a).duration,0,"");const o=_;if(o.split(/\s+/).some(N=>"{"==N.charAt(0)&&"{"==N.charAt(1))){const N=O(0,0,"");return N.dynamic=!0,N.strValue=o,N}const S=ti(o,a);return O(S.duration,S.delay,S.easing)}(a.timings,o.errors);o.currentAnimateTimings=p;let S,N=a.styles?a.styles:(0,_t.oB)({});if(5==N.type)S=this.visitKeyframes(N,o);else{let X=a.styles,q=!1;if(!X){q=!0;const Ue={};p.easing&&(Ue.easing=p.easing),X=(0,_t.oB)(Ue)}o.currentTime+=p.duration+p.delay;const Me=this.visitStyle(X,o);Me.isEmptyStep=q,S=Me}return o.currentAnimateTimings=null,{type:4,timings:p,style:S,options:null}}visitStyle(a,o){const p=this._makeStyleAst(a,o);return this._validateStyleAst(p,o),p}_makeStyleAst(a,o){const p=[],S=Array.isArray(a.styles)?a.styles:[a.styles];for(let q of S)"string"==typeof q?q===_t.l3?p.push(q):o.errors.push(new c.vHH(3002,!1)):p.push(Ii(q));let N=!1,X=null;return p.forEach(q=>{if(q instanceof Map&&(q.has("easing")&&(X=q.get("easing"),q.delete("easing")),!N))for(let Me of q.values())if(Me.toString().indexOf("{{")>=0){N=!0;break}}),{type:6,styles:p,easing:X,offset:a.offset,containsDynamicStyles:N,options:null}}_validateStyleAst(a,o){const p=o.currentAnimateTimings;let S=o.currentTime,N=o.currentTime;p&&N>0&&(N-=p.duration+p.delay),a.styles.forEach(X=>{"string"!=typeof X&&X.forEach((q,Me)=>{const Ue=o.collectedStyles.get(o.currentQuerySelector),vt=Ue.get(Me);let It=!0;vt&&(N!=S&&N>=vt.startTime&&S<=vt.endTime&&(o.errors.push(function an(_,a,o,p,S){return new c.vHH(3010,!1)}()),It=!1),N=vt.startTime),It&&Ue.set(Me,{startTime:N,endTime:S}),o.options&&function Ds(_,a,o){const p=a.params||{},S=es(_);S.length&&S.forEach(N=>{p.hasOwnProperty(N)||o.push(function He(_){return new c.vHH(3001,!1)}())})}(q,o.options,o.errors)})})}visitKeyframes(a,o){const p={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function Cn(){return new c.vHH(3011,!1)}()),p;let N=0;const X=[];let q=!1,Me=!1,Ue=0;const vt=a.steps.map(y=>{const w=this._makeStyleAst(y,o);let P=null!=w.offset?w.offset:function D(_){if("string"==typeof _)return null;let a=null;if(Array.isArray(_))_.forEach(o=>{if(o instanceof Map&&o.has("offset")){const p=o;a=parseFloat(p.get("offset")),p.delete("offset")}});else if(_ instanceof Map&&_.has("offset")){const o=_;a=parseFloat(o.get("offset")),o.delete("offset")}return a}(w.styles),B=0;return null!=P&&(N++,B=w.offset=P),Me=Me||B<0||B>1,q=q||B<Ue,Ue=B,X.push(B),w});Me&&o.errors.push(function Jt(){return new c.vHH(3012,!1)}()),q&&o.errors.push(function Nt(){return new c.vHH(3200,!1)}());const It=a.steps.length;let en=0;N>0&&N<It?o.errors.push(function Xt(){return new c.vHH(3202,!1)}()):0==N&&(en=1/(It-1));const Yt=It-1,f=o.currentTime,d=o.currentAnimateTimings,u=d.duration;return vt.forEach((y,w)=>{const P=en>0?w==Yt?1:en*w:X[w],B=P*u;o.currentTime=f+d.delay+B,d.duration=B,this._validateStyleAst(y,o),y.offset=P,p.styles.push(y)}),p}visitReference(a,o){return{type:8,animation:Gn(this,wr(a.animation),o),options:E(a.options)}}visitAnimateChild(a,o){return o.depCount++,{type:9,options:E(a.options)}}visitAnimateRef(a,o){return{type:10,animation:this.visitReference(a.animation,o),options:E(a.options)}}visitQuery(a,o){const p=o.currentQuerySelector,S=a.options||{};o.queryCount++,o.currentQuery=a;const[N,X]=function jr(_){const a=!!_.split(/\s*,\s*/).find(o=>":self"==o);return a&&(_=_.replace(sn,"")),_=_.replace(/@\*/g,br).replace(/@\w+/g,o=>br+"-"+o.slice(1)).replace(/:animating/g,ir),[_,a]}(a.selector);o.currentQuerySelector=p.length?p+" "+N:N,Dt(o.collectedStyles,o.currentQuerySelector,new Map);const q=Gn(this,wr(a.animation),o);return o.currentQuery=null,o.currentQuerySelector=p,{type:11,selector:N,limit:S.limit||0,optional:!!S.optional,includeSelf:X,animation:q,originalSelector:a.selector,options:E(a.options)}}visitStagger(a,o){o.currentQuery||o.errors.push(function Pt(){return new c.vHH(3013,!1)}());const p="full"===a.timings?{duration:0,delay:0,easing:"full"}:ti(a.timings,o.errors,!0);return{type:12,animation:Gn(this,wr(a.animation),o),timings:p,options:null}}}class qn{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,this.nonAnimatableCSSPropertiesFound=new Set}}function E(_){return _?(_=Ur(_)).params&&(_.params=function Vn(_){return _?Ur(_):null}(_.params)):_={},_}function O(_,a,o){return{duration:_,delay:a,easing:o}}function re(_,a,o,p,S,N,X=null,q=!1){return{type:1,element:_,keyframes:a,preStyleProps:o,postStyleProps:p,duration:S,delay:N,totalTime:S+N,easing:X,subTimeline:q}}class Ne{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,o){let p=this._map.get(a);p||this._map.set(a,p=[]),p.push(...o)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Sn=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function cn(_,a,o,p,S,N=new Map,X=new Map,q,Me,Ue=[]){return(new Ln).buildKeyframes(_,a,o,p,S,N,X,q,Me,Ue)}class Ln{buildKeyframes(a,o,p,S,N,X,q,Me,Ue,vt=[]){Ue=Ue||new Ne;const It=new zn(a,o,Ue,S,N,vt,[]);It.options=Me;const en=Me.delay?sr(Me.delay):0;It.currentTimeline.delayNextStep(en),It.currentTimeline.setStyles([X],null,It.errors,Me),Gn(this,p,It);const Yt=It.timelines.filter(f=>f.containsAnimation());if(Yt.length&&q.size){let f;for(let d=Yt.length-1;d>=0;d--){const u=Yt[d];if(u.element===o){f=u;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([q],null,It.errors,Me)}return Yt.length?Yt.map(f=>f.buildKeyframes()):[re(o,[],[],[],0,en,"",!1)]}visitTrigger(a,o){}visitState(a,o){}visitTransition(a,o){}visitAnimateChild(a,o){const p=o.subInstructions.get(o.element);if(p){const S=o.createSubContext(a.options),N=o.currentTimeline.currentTime,X=this._visitSubInstructions(p,S,S.options);N!=X&&o.transformIntoNewTimeline(X)}o.previousNode=a}visitAnimateRef(a,o){const p=o.createSubContext(a.options);p.transformIntoNewTimeline(),this.visitReference(a.animation,p),o.transformIntoNewTimeline(p.currentTimeline.currentTime),o.previousNode=a}_visitSubInstructions(a,o,p){let N=o.currentTimeline.currentTime;const X=null!=p.duration?sr(p.duration):null,q=null!=p.delay?sr(p.delay):null;return 0!==X&&a.forEach(Me=>{const Ue=o.appendInstructionToTimeline(Me,X,q);N=Math.max(N,Ue.duration+Ue.delay)}),N}visitReference(a,o){o.updateOptions(a.options,!0),Gn(this,a.animation,o),o.previousNode=a}visitSequence(a,o){const p=o.subContextCount;let S=o;const N=a.options;if(N&&(N.params||N.delay)&&(S=o.createSubContext(N),S.transformIntoNewTimeline(),null!=N.delay)){6==S.previousNode.type&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=_n);const X=sr(N.delay);S.delayNextStep(X)}a.steps.length&&(a.steps.forEach(X=>Gn(this,X,S)),S.currentTimeline.applyStylesToKeyframe(),S.subContextCount>p&&S.transformIntoNewTimeline()),o.previousNode=a}visitGroup(a,o){const p=[];let S=o.currentTimeline.currentTime;const N=a.options&&a.options.delay?sr(a.options.delay):0;a.steps.forEach(X=>{const q=o.createSubContext(a.options);N&&q.delayNextStep(N),Gn(this,X,q),S=Math.max(S,q.currentTimeline.currentTime),p.push(q.currentTimeline)}),p.forEach(X=>o.currentTimeline.mergeTimelineCollectedStyles(X)),o.transformIntoNewTimeline(S),o.previousNode=a}_visitTiming(a,o){if(a.dynamic){const p=a.strValue;return ti(o.params?Wr(p,o.params,o.errors):p,o.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,o){const p=o.currentAnimateTimings=this._visitTiming(a.timings,o),S=o.currentTimeline;p.delay&&(o.incrementTime(p.delay),S.snapshotCurrentStyles());const N=a.style;5==N.type?this.visitKeyframes(N,o):(o.incrementTime(p.duration),this.visitStyle(N,o),S.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=a}visitStyle(a,o){const p=o.currentTimeline,S=o.currentAnimateTimings;!S&&p.hasCurrentStyleProperties()&&p.forwardFrame();const N=S&&S.easing||a.easing;a.isEmptyStep?p.applyEmptyStep(N):p.setStyles(a.styles,N,o.errors,o.options),o.previousNode=a}visitKeyframes(a,o){const p=o.currentAnimateTimings,S=o.currentTimeline.duration,N=p.duration,q=o.createSubContext().currentTimeline;q.easing=p.easing,a.styles.forEach(Me=>{q.forwardTime((Me.offset||0)*N),q.setStyles(Me.styles,Me.easing,o.errors,o.options),q.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(q),o.transformIntoNewTimeline(S+N),o.previousNode=a}visitQuery(a,o){const p=o.currentTimeline.currentTime,S=a.options||{},N=S.delay?sr(S.delay):0;N&&(6===o.previousNode.type||0==p&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=_n);let X=p;const q=o.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!S.optional,o.errors);o.currentQueryTotal=q.length;let Me=null;q.forEach((Ue,vt)=>{o.currentQueryIndex=vt;const It=o.createSubContext(a.options,Ue);N&&It.delayNextStep(N),Ue===o.element&&(Me=It.currentTimeline),Gn(this,a.animation,It),It.currentTimeline.applyStylesToKeyframe(),X=Math.max(X,It.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(X),Me&&(o.currentTimeline.mergeTimelineCollectedStyles(Me),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=a}visitStagger(a,o){const p=o.parentContext,S=o.currentTimeline,N=a.timings,X=Math.abs(N.duration),q=X*(o.currentQueryTotal-1);let Me=X*o.currentQueryIndex;switch(N.duration<0?"reverse":N.easing){case"reverse":Me=q-Me;break;case"full":Me=p.currentStaggerTime}const vt=o.currentTimeline;Me&&vt.delayNextStep(Me);const It=vt.currentTime;Gn(this,a.animation,o),o.previousNode=a,p.currentStaggerTime=S.currentTime-It+(S.startTime-p.currentTimeline.startTime)}}const _n={};class zn{constructor(a,o,p,S,N,X,q,Me){this._driver=a,this.element=o,this.subInstructions=p,this._enterClassName=S,this._leaveClassName=N,this.errors=X,this.timelines=q,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_n,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Me||new Ze(this._driver,o,0),q.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,o){if(!a)return;const p=a;let S=this.options;null!=p.duration&&(S.duration=sr(p.duration)),null!=p.delay&&(S.delay=sr(p.delay));const N=p.params;if(N){let X=S.params;X||(X=this.options.params={}),Object.keys(N).forEach(q=>{(!o||!X.hasOwnProperty(q))&&(X[q]=Wr(N[q],X,this.errors))})}}_copyOptions(){const a={};if(this.options){const o=this.options.params;if(o){const p=a.params={};Object.keys(o).forEach(S=>{p[S]=o[S]})}}return a}createSubContext(a=null,o,p){const S=o||this.element,N=new zn(this._driver,S,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(S,p||0));return N.previousNode=this.previousNode,N.currentAnimateTimings=this.currentAnimateTimings,N.options=this._copyOptions(),N.updateOptions(a),N.currentQueryIndex=this.currentQueryIndex,N.currentQueryTotal=this.currentQueryTotal,N.parentContext=this,this.subContextCount++,N}transformIntoNewTimeline(a){return this.previousNode=_n,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,o,p){const S={duration:o??a.duration,delay:this.currentTimeline.currentTime+(p??0)+a.delay,easing:""},N=new Vt(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,S,a.stretchStartingKeyframe);return this.timelines.push(N),S}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,o,p,S,N,X){let q=[];if(S&&q.push(this.element),a.length>0){a=(a=a.replace(Sn,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let Ue=this._driver.query(this.element,a,1!=p);0!==p&&(Ue=p<0?Ue.slice(Ue.length+p,Ue.length):Ue.slice(0,p)),q.push(...Ue)}return!N&&0==q.length&&X.push(function er(_){return new c.vHH(3014,!1)}()),q}}class Ze{constructor(a,o,p,S){this._driver=a,this.element=o,this.startTime=p,this._elementTimelineStylesLookup=S,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(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,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 o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+a),o&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,o){return this.applyStylesToKeyframe(),new Ze(this._driver,a,o||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,o){this._localTimelineStyles.set(a,o),this._globalTimelineStyles.set(a,o),this._styleSummary.set(a,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[o,p]of this._globalTimelineStyles)this._backFill.set(o,p||_t.l3),this._currentKeyframe.set(o,_t.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,o,p,S){o&&this._previousKeyframe.set("easing",o);const N=S&&S.params||{},X=function Or(_,a){const o=new Map;let p;return _.forEach(S=>{if("*"===S){p=p||a.keys();for(let N of p)o.set(N,_t.l3)}else Lr(S,o)}),o}(a,this._globalTimelineStyles);for(let[q,Me]of X){const Ue=Wr(Me,N,p);this._pendingStyles.set(q,Ue),this._localTimelineStyles.has(q)||this._backFill.set(q,this._globalTimelineStyles.get(q)||_t.l3),this._updateStyle(q,Ue)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,o)=>{this._currentKeyframe.set(o,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,a)}))}snapshotCurrentStyles(){for(let[a,o]of this._localTimelineStyles)this._pendingStyles.set(a,o),this._updateStyle(a,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let o in this._currentKeyframe)a.push(o);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((o,p)=>{const S=this._styleSummary.get(p);(!S||o.time>S.time)&&this._updateStyle(p,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,o=new Set,p=1===this._keyframes.size&&0===this.duration;let S=[];this._keyframes.forEach((q,Me)=>{const Ue=Lr(q,new Map,this._backFill);Ue.forEach((vt,It)=>{vt===_t.k1?a.add(It):vt===_t.l3&&o.add(It)}),p||Ue.set("offset",Me/this.duration),S.push(Ue)});const N=a.size?ni(a.values()):[],X=o.size?ni(o.values()):[];if(p){const q=S[0],Me=new Map(q);q.set("offset",0),Me.set("offset",1),S=[q,Me]}return re(this.element,S,N,X,this.duration,this.startTime,this.easing,!1)}}class Vt extends Ze{constructor(a,o,p,S,N,X,q=!1){super(a,o,X.delay),this.keyframes=p,this.preStyleProps=S,this.postStyleProps=N,this._stretchStartingKeyframe=q,this.timings={duration:X.duration,delay:X.delay,easing:X.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:o,duration:p,easing:S}=this.timings;if(this._stretchStartingKeyframe&&o){const N=[],X=p+o,q=o/X,Me=Lr(a[0]);Me.set("offset",0),N.push(Me);const Ue=Lr(a[0]);Ue.set("offset",si(q)),N.push(Ue);const vt=a.length-1;for(let It=1;It<=vt;It++){let en=Lr(a[It]);const Yt=en.get("offset");en.set("offset",si((o+Yt*p)/X)),N.push(en)}p=X,o=0,S="",a=N}return re(this.element,a,this.preStyleProps,this.postStyleProps,p,o,S,!0)}}function si(_,a=3){const o=Math.pow(10,a-1);return Math.round(_*o)/o}class oi{}const Gr=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 rs extends oi{normalizePropertyName(a,o){return Es(a)}normalizeStyleValue(a,o,p,S){let N="";const X=p.toString().trim();if(Gr.has(o)&&0!==p&&"0"!==p)if("number"==typeof p)N="px";else{const q=p.match(/^[+-]?[\d\.]+([a-z]*)$/);q&&0==q[1].length&&S.push(function Ke(_,a){return new c.vHH(3005,!1)}())}return X+N}}function is(_,a,o,p,S,N,X,q,Me,Ue,vt,It,en){return{type:0,element:_,triggerName:a,isRemovalTransition:S,fromState:o,fromStyles:N,toState:p,toStyles:X,timelines:q,queriedElements:Me,preStyleProps:Ue,postStyleProps:vt,totalTime:It,errors:en}}const $i={};class po{constructor(a,o,p){this._triggerName=a,this.ast=o,this._stateStyles=p}match(a,o,p,S){return function Gs(_,a,o,p,S){return _.some(N=>N(a,o,p,S))}(this.ast.matchers,a,o,p,S)}buildStyles(a,o,p){let S=this._stateStyles.get("*");return void 0!==a&&(S=this._stateStyles.get(a?.toString())||S),S?S.buildStyles(o,p):new Map}build(a,o,p,S,N,X,q,Me,Ue,vt){const It=[],en=this.ast.options&&this.ast.options.params||$i,f=this.buildStyles(p,q&&q.params||$i,It),d=Me&&Me.params||$i,u=this.buildStyles(S,d,It),y=new Set,w=new Map,P=new Map,B="void"===S,oe={params:Ai(d,en),delay:this.ast.options?.delay},We=vt?[]:cn(a,o,this.ast.animation,N,X,f,u,oe,Ue,It);let ot=0;if(We.forEach(wt=>{ot=Math.max(wt.duration+wt.delay,ot)}),It.length)return is(o,this._triggerName,p,S,B,f,u,[],[],w,P,ot,It);We.forEach(wt=>{const yn=wt.element,on=Dt(w,yn,new Set);wt.preStyleProps.forEach(_r=>on.add(_r));const fr=Dt(P,yn,new Set);wt.postStyleProps.forEach(_r=>fr.add(_r)),yn!==o&&y.add(yn)});const zt=ni(y.values());return is(o,this._triggerName,p,S,B,f,u,We,zt,w,P,ot)}}function Ai(_,a){const o=Ur(a);for(const p in _)_.hasOwnProperty(p)&&null!=_[p]&&(o[p]=_[p]);return o}class dr{constructor(a,o,p){this.styles=a,this.defaultParams=o,this.normalizer=p}buildStyles(a,o){const p=new Map,S=Ur(this.defaultParams);return Object.keys(a).forEach(N=>{const X=a[N];null!==X&&(S[N]=X)}),this.styles.styles.forEach(N=>{"string"!=typeof N&&N.forEach((X,q)=>{X&&(X=Wr(X,S,o));const Me=this.normalizer.normalizePropertyName(q,o);X=this.normalizer.normalizeStyleValue(q,Me,X,o),p.set(Me,X)})}),p}}class ss{constructor(a,o,p){this.name=a,this.ast=o,this._normalizer=p,this.transitionFactories=[],this.states=new Map,o.states.forEach(S=>{this.states.set(S.name,new dr(S.style,S.options&&S.options.params||{},p))}),Zr(this.states,"true","1"),Zr(this.states,"false","0"),o.transitions.forEach(S=>{this.transitionFactories.push(new po(a,S,this.states))}),this.fallbackTransition=function Kr(_,a,o){return new po(_,{type:1,animation:{type:2,steps:[],options:null},matchers:[(X,q)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,o,p,S){return this.transitionFactories.find(X=>X.match(a,o,p,S))||null}matchStyles(a,o,p){return this.fallbackTransition.buildStyles(a,o,p)}}function Zr(_,a,o){_.has(a)?_.has(o)||_.set(o,_.get(a)):_.has(o)&&_.set(a,_.get(o))}const go=new Ne;class Vi{constructor(a,o,p){this.bodyNode=a,this._driver=o,this._normalizer=p,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,o){const p=[],N=Kn(this._driver,o,p,[]);if(p.length)throw function Y(_){return new c.vHH(3503,!1)}();this._animations.set(a,N)}_buildPlayer(a,o,p){const S=a.element,N=Qe(0,this._normalizer,0,a.keyframes,o,p);return this._driver.animate(S,N,a.duration,a.delay,a.easing,[],!0)}create(a,o,p={}){const S=[],N=this._animations.get(a);let X;const q=new Map;if(N?(X=cn(this._driver,o,N,xn,$n,new Map,new Map,p,go,S),X.forEach(vt=>{const It=Dt(q,vt.element,new Map);vt.postStyleProps.forEach(en=>It.set(en,null))})):(S.push(function V(){return new c.vHH(3300,!1)}()),X=[]),S.length)throw function pe(_){return new c.vHH(3504,!1)}();q.forEach((vt,It)=>{vt.forEach((en,Yt)=>{vt.set(Yt,this._driver.computeStyle(It,Yt,_t.l3))})});const Ue=he(X.map(vt=>{const It=q.get(vt.element);return this._buildPlayer(vt,new Map,It)}));return this._playersById.set(a,Ue),Ue.onDestroy(()=>this.destroy(a)),this.players.push(Ue),Ue}destroy(a){const o=this._getPlayer(a);o.destroy(),this._playersById.delete(a);const p=this.players.indexOf(o);p>=0&&this.players.splice(p,1)}_getPlayer(a){const o=this._playersById.get(a);if(!o)throw function Re(_){return new c.vHH(3301,!1)}();return o}listen(a,o,p,S){const N=mn(o,"","","");return yt(this._getPlayer(a),p,N,S),()=>{}}command(a,o,p,S){if("register"==p)return void this.register(a,S[0]);if("create"==p)return void this.create(a,o,S[0]||{});const N=this._getPlayer(a);switch(p){case"play":N.play();break;case"pause":N.pause();break;case"reset":N.reset();break;case"restart":N.restart();break;case"finish":N.finish();break;case"init":N.init();break;case"setPosition":N.setPosition(parseFloat(S[0]));break;case"destroy":this.destroy(a)}}}const Cs="ng-animate-queued",zi="ng-animate-disabled",Mo=[],ls={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wi={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yr="__ng_removed";class us{constructor(a,o=""){this.namespaceId=o;const p=a&&a.hasOwnProperty("value");if(this.value=function Mi(_){return _??null}(p?a.value:a),p){const N=Ur(a);delete N.value,this.options=N}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const o=a.params;if(o){const p=this.options.params;Object.keys(o).forEach(S=>{null==p[S]&&(p[S]=o[S])})}}}const Ci="void",bs=new us(Ci);class Ks{constructor(a,o,p){this.id=a,this.hostElement=o,this._engine=p,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Tr(o,this._hostClassName)}listen(a,o,p,S){if(!this._triggers.has(o))throw function Ee(_,a){return new c.vHH(3302,!1)}();if(null==p||0==p.length)throw function dt(_){return new c.vHH(3303,!1)}();if(!function Ys(_){return"start"==_||"done"==_}(p))throw function At(_,a){return new c.vHH(3400,!1)}();const N=Dt(this._elementListeners,a,[]),X={name:o,phase:p,callback:S};N.push(X);const q=Dt(this._engine.statesByElement,a,new Map);return q.has(o)||(Tr(a,Hr),Tr(a,Hr+"-"+o),q.set(o,bs)),()=>{this._engine.afterFlush(()=>{const Me=N.indexOf(X);Me>=0&&N.splice(Me,1),this._triggers.has(o)||q.delete(o)})}}register(a,o){return!this._triggers.has(a)&&(this._triggers.set(a,o),!0)}_getTrigger(a){const o=this._triggers.get(a);if(!o)throw function Kt(_){return new c.vHH(3401,!1)}();return o}trigger(a,o,p,S=!0){const N=this._getTrigger(o),X=new ws(this.id,o,a);let q=this._engine.statesByElement.get(a);q||(Tr(a,Hr),Tr(a,Hr+"-"+o),this._engine.statesByElement.set(a,q=new Map));let Me=q.get(o);const Ue=new us(p,this.id);if(!(p&&p.hasOwnProperty("value"))&&Me&&Ue.absorbOptions(Me.options),q.set(o,Ue),Me||(Me=bs),Ue.value!==Ci&&Me.value===Ue.value){if(!function yo(_,a){const o=Object.keys(_),p=Object.keys(a);if(o.length!=p.length)return!1;for(let S=0;S<o.length;S++){const N=o[S];if(!a.hasOwnProperty(N)||_[N]!==a[N])return!1}return!0}(Me.params,Ue.params)){const d=[],u=N.matchStyles(Me.value,Me.params,d),y=N.matchStyles(Ue.value,Ue.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(()=>{mr(a,u),Ir(a,y)})}return}const en=Dt(this._engine.playersByElement,a,[]);en.forEach(d=>{d.namespaceId==this.id&&d.triggerName==o&&d.queued&&d.destroy()});let Yt=N.matchTransition(Me.value,Ue.value,a,Ue.params),f=!1;if(!Yt){if(!S)return;Yt=N.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:o,transition:Yt,fromState:Me,toState:Ue,player:X,isFallbackTransition:f}),f||(Tr(a,Cs),X.onStart(()=>{bi(a,Cs)})),X.onDone(()=>{let d=this.players.indexOf(X);d>=0&&this.players.splice(d,1);const u=this._engine.playersByElement.get(a);if(u){let y=u.indexOf(X);y>=0&&u.splice(y,1)}}),this.players.push(X),en.push(X),X}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(o=>o.delete(a)),this._elementListeners.forEach((o,p)=>{this._elementListeners.set(p,o.filter(S=>S.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const o=this._engine.playersByElement.get(a);o&&(o.forEach(p=>p.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,o){const p=this._engine.driver.query(a,br,!0),S=a.shadowRoot?this._engine.driver.query(a.shadowRoot,br,!0):[];[...p,...S].forEach(N=>{if(N[yr])return;const X=this._engine.fetchNamespacesByElement(N);X.size?X.forEach(q=>q.triggerLeaveAnimation(N,o,!1,!0)):this.clearElementCache(N)}),this._engine.afterFlushAnimationsDone(()=>p.forEach(N=>this.clearElementCache(N)))}triggerLeaveAnimation(a,o,p,S){const N=this._engine.statesByElement.get(a),X=new Map;if(N){const q=[];if(N.forEach((Me,Ue)=>{if(X.set(Ue,Me.value),this._triggers.has(Ue)){const vt=this.trigger(a,Ue,Ci,S);vt&&q.push(vt)}}),q.length)return this._engine.markElementAsRemoved(this.id,a,!0,o,X),p&&he(q).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const o=this._elementListeners.get(a),p=this._engine.statesByElement.get(a);if(o&&p){const S=new Set;o.forEach(N=>{const X=N.name;if(S.has(X))return;S.add(X);const Me=this._triggers.get(X).fallbackTransition,Ue=p.get(X)||bs,vt=new us(Ci),It=new ws(this.id,X,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:X,transition:Me,fromState:Ue,toState:vt,player:It,isFallbackTransition:!0})})}}removeNode(a,o){const p=this._engine;if((!!a.childElementCount||!(!a.shadowRoot||!a.shadowRoot.childElementCount))&&this._signalRemovalForInnerTriggers(a,o),this.triggerLeaveAnimation(a,o,!0))return;let X=!1;if(p.totalAnimations){const q=p.players.length?p.playersByQueriedElement.get(a):[];if(q&&q.length)X=!0;else{let Me=a;for(;Me=Me.parentNode;)if(p.statesByElement.get(Me)){X=!0;break}}}if(this.prepareLeaveAnimationListeners(a),X)p.markElementAsRemoved(this.id,a,!1,o);else{const q=a[yr];(!q||q===ls)&&(p.afterFlush(()=>this.clearElementCache(a)),p.destroyInnerAnimations(a),p._onRemovalComplete(a,o))}}insertNode(a,o){Tr(a,this._hostClassName)}drainQueuedTransitions(a){const o=[];return this._queue.forEach(p=>{const S=p.player;if(S.destroyed)return;const N=p.element,X=this._elementListeners.get(N);X&&X.forEach(q=>{if(q.name==p.triggerName){const Me=mn(N,p.triggerName,p.fromState.value,p.toState.value);Me._data=a,yt(p.player,q.phase,Me,q.callback)}}),S.markedForDestroy?this._engine.afterFlush(()=>{S.destroy()}):o.push(p)}),this._queue=[],o.sort((p,S)=>{const N=p.transition.ast.depCount,X=S.transition.ast.depCount;return 0==N||0==X?N-X:this._engine.driver.containsElement(p.element,S.element)?1:-1})}destroy(a){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let o=!1;return this._elementListeners.has(a)&&(o=!0),o=!!this._queue.find(p=>p.element===a)||o,o}}class Zs{constructor(a,o,p){this.bodyNode=a,this.driver=o,this._normalizer=p,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=(S,N)=>{}}_onRemovalComplete(a,o){this.onRemovalComplete(a,o)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(o=>{o.players.forEach(p=>{p.queued&&a.push(p)})}),a}createNamespace(a,o){const p=new Ks(a,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(p,o):(this.newHostElements.set(o,p),this.collectEnterElement(o)),this._namespaceLookup[a]=p}_balanceNamespaceList(a,o){const p=this._namespaceList,S=this.namespacesByHostElement;if(p.length-1>=0){let X=!1,q=this.driver.getParentElement(o);for(;q;){const Me=S.get(q);if(Me){const Ue=p.indexOf(Me);p.splice(Ue+1,0,a),X=!0;break}q=this.driver.getParentElement(q)}X||p.unshift(a)}else p.push(a);return S.set(o,a),a}register(a,o){let p=this._namespaceLookup[a];return p||(p=this.createNamespace(a,o)),p}registerTrigger(a,o,p){let S=this._namespaceLookup[a];S&&S.register(o,p)&&this.totalAnimations++}destroy(a,o){if(!a)return;const p=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(p.hostElement),delete this._namespaceLookup[a];const S=this._namespaceList.indexOf(p);S>=0&&this._namespaceList.splice(S,1)}),this.afterFlushAnimationsDone(()=>p.destroy(o))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const o=new Set,p=this.statesByElement.get(a);if(p)for(let S of p.values())if(S.namespaceId){const N=this._fetchNamespace(S.namespaceId);N&&o.add(N)}return o}trigger(a,o,p,S){if(Pn(o)){const N=this._fetchNamespace(a);if(N)return N.trigger(o,p,S),!0}return!1}insertNode(a,o,p,S){if(!Pn(o))return;const N=o[yr];if(N&&N.setForRemoval){N.setForRemoval=!1,N.setForMove=!0;const X=this.collectedLeaveElements.indexOf(o);X>=0&&this.collectedLeaveElements.splice(X,1)}if(a){const X=this._fetchNamespace(a);X&&X.insertNode(o,p)}S&&this.collectEnterElement(o)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,o){o?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Tr(a,zi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),bi(a,zi))}removeNode(a,o,p,S){if(Pn(o)){const N=a?this._fetchNamespace(a):null;if(N?N.removeNode(o,S):this.markElementAsRemoved(a,o,!1,S),p){const X=this.namespacesByHostElement.get(o);X&&X.id!==a&&X.removeNode(o,S)}}else this._onRemovalComplete(o,S)}markElementAsRemoved(a,o,p,S,N){this.collectedLeaveElements.push(o),o[yr]={namespaceId:a,setForRemoval:S,hasAnimation:p,removedBeforeQueried:!1,previousTriggersValues:N}}listen(a,o,p,S,N){return Pn(o)?this._fetchNamespace(a).listen(o,p,S,N):()=>{}}_buildInstruction(a,o,p,S,N){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,p,S,a.fromState.options,a.toState.options,o,N)}destroyInnerAnimations(a){let o=this.driver.query(a,br,!0);o.forEach(p=>this.destroyActiveAnimationsForElement(p)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(a,ir,!0),o.forEach(p=>this.finishActiveQueriedAnimationOnElement(p)))}destroyActiveAnimationsForElement(a){const o=this.playersByElement.get(a);o&&o.forEach(p=>{p.queued?p.markedForDestroy=!0:p.destroy()})}finishActiveQueriedAnimationOnElement(a){const o=this.playersByQueriedElement.get(a);o&&o.forEach(p=>p.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return he(this.players).onDone(()=>a());a()})}processLeaveNode(a){const o=a[yr];if(o&&o.setForRemoval){if(a[yr]=ls,o.namespaceId){this.destroyInnerAnimations(a);const p=this._fetchNamespace(o.namespaceId);p&&p.clearElementCache(a)}this._onRemovalComplete(a,o.setForRemoval)}a.classList?.contains(zi)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(p=>{this.markElementAsDisabled(p,!1)})}flush(a=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((p,S)=>this._balanceNamespaceList(p,S)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let p=0;p<this.collectedEnterElements.length;p++)Tr(this.collectedEnterElements[p],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const p=[];try{o=this._flushAnimations(p,a)}finally{for(let S=0;S<p.length;S++)p[S]()}}else for(let p=0;p<this.collectedLeaveElements.length;p++)this.processLeaveNode(this.collectedLeaveElements[p]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(p=>p()),this._flushFns=[],this._whenQuietFns.length){const p=this._whenQuietFns;this._whenQuietFns=[],o.length?he(o).onDone(()=>{p.forEach(S=>S())}):p.forEach(S=>S())}}reportError(a){throw function hn(_){return new c.vHH(3402,!1)}()}_flushAnimations(a,o){const p=new Ne,S=[],N=new Map,X=[],q=new Map,Me=new Map,Ue=new Map,vt=new Set;this.disabledNodes.forEach(mt=>{vt.add(mt);const Ot=this.driver.query(mt,".ng-animate-queued",!0);for(let Ut=0;Ut<Ot.length;Ut++)vt.add(Ot[Ut])});const It=this.bodyNode,en=Array.from(this.statesByElement.keys()),Yt=Qs(en,this.collectedEnterElements),f=new Map;let d=0;Yt.forEach((mt,Ot)=>{const Ut=xn+d++;f.set(Ot,Ut),mt.forEach(pn=>Tr(pn,Ut))});const u=[],y=new Set,w=new Set;for(let mt=0;mt<this.collectedLeaveElements.length;mt++){const Ot=this.collectedLeaveElements[mt],Ut=Ot[yr];Ut&&Ut.setForRemoval&&(u.push(Ot),y.add(Ot),Ut.hasAnimation?this.driver.query(Ot,".ng-star-inserted",!0).forEach(pn=>y.add(pn)):w.add(Ot))}const P=new Map,B=Qs(en,Array.from(y));B.forEach((mt,Ot)=>{const Ut=$n+d++;P.set(Ot,Ut),mt.forEach(pn=>Tr(pn,Ut))}),a.push(()=>{Yt.forEach((mt,Ot)=>{const Ut=f.get(Ot);mt.forEach(pn=>bi(pn,Ut))}),B.forEach((mt,Ot)=>{const Ut=P.get(Ot);mt.forEach(pn=>bi(pn,Ut))}),u.forEach(mt=>{this.processLeaveNode(mt)})});const oe=[],We=[];for(let mt=this._namespaceList.length-1;mt>=0;mt--)this._namespaceList[mt].drainQueuedTransitions(o).forEach(Ut=>{const pn=Ut.player,Jn=Ut.element;if(oe.push(pn),this.collectedEnterElements.length){const On=Jn[yr];if(On&&On.setForMove){if(On.previousTriggersValues&&On.previousTriggersValues.has(Ut.triggerName)){const Ni=On.previousTriggersValues.get(Ut.triggerName),ur=this.statesByElement.get(Ut.element);if(ur&&ur.has(Ut.triggerName)){const oo=ur.get(Ut.triggerName);oo.value=Ni,ur.set(Ut.triggerName,oo)}}return void pn.destroy()}}const fi=!It||!this.driver.containsElement(It,Jn),Vr=P.get(Jn),ps=f.get(Jn),Xn=this._buildInstruction(Ut,p,ps,Vr,fi);if(Xn.errors&&Xn.errors.length)return void We.push(Xn);if(fi)return pn.onStart(()=>mr(Jn,Xn.fromStyles)),pn.onDestroy(()=>Ir(Jn,Xn.toStyles)),void S.push(pn);if(Ut.isFallbackTransition)return pn.onStart(()=>mr(Jn,Xn.fromStyles)),pn.onDestroy(()=>Ir(Jn,Xn.toStyles)),void S.push(pn);const Sa=[];Xn.timelines.forEach(On=>{On.stretchStartingKeyframe=!0,this.disabledNodes.has(On.element)||Sa.push(On)}),Xn.timelines=Sa,p.append(Jn,Xn.timelines),X.push({instruction:Xn,player:pn,element:Jn}),Xn.queriedElements.forEach(On=>Dt(q,On,[]).push(pn)),Xn.preStyleProps.forEach((On,Ni)=>{if(On.size){let ur=Me.get(Ni);ur||Me.set(Ni,ur=new Set),On.forEach((oo,Ns)=>ur.add(Ns))}}),Xn.postStyleProps.forEach((On,Ni)=>{let ur=Ue.get(Ni);ur||Ue.set(Ni,ur=new Set),On.forEach((oo,Ns)=>ur.add(Ns))})});if(We.length){const mt=[];We.forEach(Ot=>{mt.push(function xt(_,a){return new c.vHH(3505,!1)}())}),oe.forEach(Ot=>Ot.destroy()),this.reportError(mt)}const ot=new Map,zt=new Map;X.forEach(mt=>{const Ot=mt.element;p.has(Ot)&&(zt.set(Ot,Ot),this._beforeAnimationBuild(mt.player.namespaceId,mt.instruction,ot))}),S.forEach(mt=>{const Ot=mt.element;this._getPreviousPlayers(Ot,!1,mt.namespaceId,mt.triggerName,null).forEach(pn=>{Dt(ot,Ot,[]).push(pn),pn.destroy()})});const wt=u.filter(mt=>vo(mt,Me,Ue)),yn=new Map;Gi(yn,this.driver,w,Ue,_t.l3).forEach(mt=>{vo(mt,Me,Ue)&&wt.push(mt)});const fr=new Map;Yt.forEach((mt,Ot)=>{Gi(fr,this.driver,new Set(mt),Me,_t.k1)}),wt.forEach(mt=>{const Ot=yn.get(mt),Ut=fr.get(mt);yn.set(mt,new Map([...Array.from(Ot?.entries()??[]),...Array.from(Ut?.entries()??[])]))});const _r=[],bo=[],xs={};X.forEach(mt=>{const{element:Ot,player:Ut,instruction:pn}=mt;if(p.has(Ot)){if(vt.has(Ot))return Ut.onDestroy(()=>Ir(Ot,pn.toStyles)),Ut.disabled=!0,Ut.overrideTotalTime(pn.totalTime),void S.push(Ut);let Jn=xs;if(zt.size>1){let Vr=Ot;const ps=[];for(;Vr=Vr.parentNode;){const Xn=zt.get(Vr);if(Xn){Jn=Xn;break}ps.push(Vr)}ps.forEach(Xn=>zt.set(Xn,Jn))}const fi=this._buildAnimation(Ut.namespaceId,pn,ot,N,fr,yn);if(Ut.setRealPlayer(fi),Jn===xs)_r.push(Ut);else{const Vr=this.playersByElement.get(Jn);Vr&&Vr.length&&(Ut.parentPlayer=he(Vr)),S.push(Ut)}}else mr(Ot,pn.fromStyles),Ut.onDestroy(()=>Ir(Ot,pn.toStyles)),bo.push(Ut),vt.has(Ot)&&S.push(Ut)}),bo.forEach(mt=>{const Ot=N.get(mt.element);if(Ot&&Ot.length){const Ut=he(Ot);mt.setRealPlayer(Ut)}}),S.forEach(mt=>{mt.parentPlayer?mt.syncPlayerEvents(mt.parentPlayer):mt.destroy()});for(let mt=0;mt<u.length;mt++){const Ot=u[mt],Ut=Ot[yr];if(bi(Ot,$n),Ut&&Ut.hasAnimation)continue;let pn=[];if(q.size){let fi=q.get(Ot);fi&&fi.length&&pn.push(...fi);let Vr=this.driver.query(Ot,ir,!0);for(let ps=0;ps<Vr.length;ps++){let Xn=q.get(Vr[ps]);Xn&&Xn.length&&pn.push(...Xn)}}const Jn=pn.filter(fi=>!fi.destroyed);Jn.length?qs(this,Ot,Jn):this.processLeaveNode(Ot)}return u.length=0,_r.forEach(mt=>{this.players.push(mt),mt.onDone(()=>{mt.destroy();const Ot=this.players.indexOf(mt);this.players.splice(Ot,1)}),mt.play()}),_r}elementContainsData(a,o){let p=!1;const S=o[yr];return S&&S.setForRemoval&&(p=!0),this.playersByElement.has(o)&&(p=!0),this.playersByQueriedElement.has(o)&&(p=!0),this.statesByElement.has(o)&&(p=!0),this._fetchNamespace(a).elementContainsData(o)||p}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,o,p,S,N){let X=[];if(o){const q=this.playersByQueriedElement.get(a);q&&(X=q)}else{const q=this.playersByElement.get(a);if(q){const Me=!N||N==Ci;q.forEach(Ue=>{Ue.queued||!Me&&Ue.triggerName!=S||X.push(Ue)})}}return(p||S)&&(X=X.filter(q=>!(p&&p!=q.namespaceId||S&&S!=q.triggerName))),X}_beforeAnimationBuild(a,o,p){const N=o.element,X=o.isRemovalTransition?void 0:a,q=o.isRemovalTransition?void 0:o.triggerName;for(const Me of o.timelines){const Ue=Me.element,vt=Ue!==N,It=Dt(p,Ue,[]);this._getPreviousPlayers(Ue,vt,X,q,o.toState).forEach(Yt=>{const f=Yt.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),Yt.destroy(),It.push(Yt)})}mr(N,o.fromStyles)}_buildAnimation(a,o,p,S,N,X){const q=o.triggerName,Me=o.element,Ue=[],vt=new Set,It=new Set,en=o.timelines.map(f=>{const d=f.element;vt.add(d);const u=d[yr];if(u&&u.removedBeforeQueried)return new _t.ZN(f.duration,f.delay);const y=d!==Me,w=function Js(_){const a=[];return Pi(_,a),a}((p.get(d)||Mo).map(ot=>ot.getRealPlayer())).filter(ot=>!!ot.element&&ot.element===d),P=N.get(d),B=X.get(d),oe=Qe(0,this._normalizer,0,f.keyframes,P,B),We=this._buildPlayer(f,oe,w);if(f.subTimeline&&S&&It.add(d),y){const ot=new ws(a,q,d);ot.setRealPlayer(We),Ue.push(ot)}return We});Ue.forEach(f=>{Dt(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function lr(_,a,o){let p=_.get(a);if(p){if(p.length){const S=p.indexOf(o);p.splice(S,1)}0==p.length&&_.delete(a)}return p}(this.playersByQueriedElement,f.element,f))}),vt.forEach(f=>Tr(f,Fr));const Yt=he(en);return Yt.onDestroy(()=>{vt.forEach(f=>bi(f,Fr)),Ir(Me,o.toStyles)}),It.forEach(f=>{Dt(S,f,[]).push(Yt)}),Yt}_buildPlayer(a,o,p){return o.length>0?this.driver.animate(a.element,o,a.duration,a.delay,a.easing,p):new _t.ZN(a.duration,a.delay)}}class ws{constructor(a,o,p){this.namespaceId=a,this.triggerName=o,this.element=p,this._player=new _t.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((o,p)=>{o.forEach(S=>yt(a,p,void 0,S))}),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 o=this._player;o.triggerCallback&&a.onStart(()=>o.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,o){Dt(this._queuedCallbacks,a,[]).push(o)}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 o=this._player;o.triggerCallback&&o.triggerCallback(a)}}function Pn(_){return _&&1===_.nodeType}function Ts(_,a){const o=_.style.display;return _.style.display=a??"none",o}function Gi(_,a,o,p,S){const N=[];o.forEach(Me=>N.push(Ts(Me)));const X=[];p.forEach((Me,Ue)=>{const vt=new Map;Me.forEach(It=>{const en=a.computeStyle(Ue,It,S);vt.set(It,en),(!en||0==en.length)&&(Ue[yr]=Wi,X.push(Ue))}),_.set(Ue,vt)});let q=0;return o.forEach(Me=>Ts(Me,N[q++])),X}function Qs(_,a){const o=new Map;if(_.forEach(q=>o.set(q,[])),0==a.length)return o;const S=new Set(a),N=new Map;function X(q){if(!q)return 1;let Me=N.get(q);if(Me)return Me;const Ue=q.parentNode;return Me=o.has(Ue)?Ue:S.has(Ue)?1:X(Ue),N.set(q,Me),Me}return a.forEach(q=>{const Me=X(q);1!==Me&&o.get(Me).push(q)}),o}function Tr(_,a){_.classList?.add(a)}function bi(_,a){_.classList?.remove(a)}function qs(_,a,o){he(o).onDone(()=>_.processLeaveNode(a))}function Pi(_,a){for(let o=0;o<_.length;o++){const p=_[o];p instanceof _t.ZE?Pi(p.players,a):a.push(p)}}function vo(_,a,o){const p=o.get(_);if(!p)return!1;let S=a.get(_);return S?p.forEach(N=>S.add(N)):a.set(_,p),o.delete(_),!0}class wi{constructor(a,o,p){this.bodyNode=a,this._driver=o,this._normalizer=p,this._triggerCache={},this.onRemovalComplete=(S,N)=>{},this._transitionEngine=new Zs(a,o,p),this._timelineEngine=new Vi(a,o,p),this._transitionEngine.onRemovalComplete=(S,N)=>this.onRemovalComplete(S,N)}registerTrigger(a,o,p,S,N){const X=a+"-"+S;let q=this._triggerCache[X];if(!q){const Me=[],vt=Kn(this._driver,N,Me,[]);if(Me.length)throw function jt(_,a){return new c.vHH(3404,!1)}();q=function li(_,a,o){return new ss(_,a,o)}(S,vt,this._normalizer),this._triggerCache[X]=q}this._transitionEngine.registerTrigger(o,S,q)}register(a,o){this._transitionEngine.register(a,o)}destroy(a,o){this._transitionEngine.destroy(a,o)}onInsert(a,o,p,S){this._transitionEngine.insertNode(a,o,p,S)}onRemove(a,o,p,S){this._transitionEngine.removeNode(a,o,S||!1,p)}disableAnimations(a,o){this._transitionEngine.markElementAsDisabled(a,o)}process(a,o,p,S){if("@"==p.charAt(0)){const[N,X]=Sr(p);this._timelineEngine.command(N,o,X,S)}else this._transitionEngine.trigger(a,o,p,S)}listen(a,o,p,S,N){if("@"==p.charAt(0)){const[X,q]=Sr(p);return this._timelineEngine.listen(X,o,q,N)}return this._transitionEngine.listen(a,o,p,S,N)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cs=(()=>{class _{constructor(o,p,S){this._element=o,this._startStyles=p,this._endStyles=S,this._state=0;let N=_.initialStylesByElement.get(o);N||_.initialStylesByElement.set(o,N=new Map),this._initialStyles=N}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_.initialStylesByElement.delete(this._element),this._startStyles&&(mr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(mr(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return _.initialStylesByElement=new WeakMap,_})();function Xs(_){let a=null;return _.forEach((o,p)=>{(function Po(_){return"display"===_||"position"===_})(p)&&(a=a||new Map,a.set(p,o))}),a}class Ti{constructor(a,o,p,S){this.element=a,this.keyframes=o,this.options=p,this._specialStyles=S,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=p.duration,this._delay=p.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 o=[];return a.forEach(p=>{o.push(Object.fromEntries(p))}),o}_triggerWebAnimation(a,o,p){return a.animate(this._convertKeyframesToObject(o),p)}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((p,S)=>{"offset"!==S&&a.set(S,this._finished?p:Br(this.element,S))}),this.currentSnapshot=a}triggerCallback(a){const o="start"===a?this._onStartFns:this._onDoneFns;o.forEach(p=>p()),o.length=0}}class Zn{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,o){return!1}containsElement(a,o){return cr(a,o)}getParentElement(a){return kn(a)}query(a,o,p){return rr(a,o,p)}computeStyle(a,o,p){return window.getComputedStyle(a)[o]}animate(a,o,p,S,N,X=[]){const Me={duration:p,delay:S,fill:0==S?"both":"forwards"};N&&(Me.easing=N);const Ue=new Map,vt=X.filter(Yt=>Yt instanceof Ti);(function ts(_,a){return 0===_||0===a})(p,S)&&vt.forEach(Yt=>{Yt.currentSnapshot.forEach((f,d)=>Ue.set(d,f))});let It=function yi(_){return _.length?_[0]instanceof Map?_:_.map(a=>Ii(a)):[]}(o).map(Yt=>Lr(Yt));It=function Ar(_,a,o){if(o.size&&a.length){let p=a[0],S=[];if(o.forEach((N,X)=>{p.has(X)||S.push(X),p.set(X,N)}),S.length)for(let N=1;N<a.length;N++){let X=a[N];S.forEach(q=>X.set(q,Br(_,q)))}}return a}(a,It,Ue);const en=function Yr(_,a){let o=null,p=null;return Array.isArray(a)&&a.length?(o=Xs(a[0]),a.length>1&&(p=Xs(a[a.length-1]))):a instanceof Map&&(o=Xs(a)),o||p?new cs(_,o,p):null}(a,It);return new Ti(a,It,Me,en)}}let Ss=(()=>{class _ extends _t._j{constructor(o,p){super(),this._nextAnimationId=0,this._renderer=o.createRenderer(p.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(o){const p=this._nextAnimationId.toString();this._nextAnimationId++;const S=Array.isArray(o)?(0,_t.vP)(o):o;return _o(this._renderer,null,p,"register",[S]),new Oo(p,this._renderer)}}return _.\u0275fac=function(o){return new(o||_)(c.LFG(c.FYo),c.LFG(Je.K0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();class Oo extends _t.LC{constructor(a,o){super(),this._id=a,this._renderer=o}create(a,o){return new Wo(this._id,a,o||{},this._renderer)}}class Wo{constructor(a,o,p,S){this.id=a,this.element=o,this._renderer=S,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",p)}_listen(a,o){return this._renderer.listen(this.element,`@@${this.id}:${a}`,o)}_command(a,...o){return _o(this._renderer,this.element,this.id,a,o)}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 _o(_,a,o,p,S){return _.setProperty(a,`@@${o}:${p}`,S)}const eo="@.disabled";let Is=(()=>{class _{constructor(o,p,S){this.delegate=o,this.engine=p,this._zone=S,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),p.onRemovalComplete=(N,X)=>{const q=X?.parentNode(N);q&&X.removeChild(q,N)}}createRenderer(o,p){const N=this.delegate.createRenderer(o,p);if(!(o&&p&&p.data&&p.data.animation)){let vt=this._rendererCache.get(N);return vt||(vt=new ds("",N,this.engine),this._rendererCache.set(N,vt)),vt}const X=p.id,q=p.id+"-"+this._currentId;this._currentId++,this.engine.register(q,o);const Me=vt=>{Array.isArray(vt)?vt.forEach(Me):this.engine.registerTrigger(X,q,o,vt.name,vt)};return p.data.animation.forEach(Me),new or(this,q,N,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(o,p,S){o>=0&&o<this._microtaskId?this._zone.run(()=>p(S)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(N=>{const[X,q]=N;X(q)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([p,S]))}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 _.\u0275fac=function(o){return new(o||_)(c.LFG(c.FYo),c.LFG(wi),c.LFG(c.R0b))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();class ds{constructor(a,o,p){this.namespaceId=a,this.delegate=o,this.engine=p,this.destroyNode=this.delegate.destroyNode?S=>o.destroyNode(S):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,o){return this.delegate.createElement(a,o)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,o){this.delegate.appendChild(a,o),this.engine.onInsert(this.namespaceId,o,a,!1)}insertBefore(a,o,p,S=!0){this.delegate.insertBefore(a,o,p),this.engine.onInsert(this.namespaceId,o,a,S)}removeChild(a,o,p){this.engine.onRemove(this.namespaceId,o,this.delegate,p)}selectRootElement(a,o){return this.delegate.selectRootElement(a,o)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,o,p,S){this.delegate.setAttribute(a,o,p,S)}removeAttribute(a,o,p){this.delegate.removeAttribute(a,o,p)}addClass(a,o){this.delegate.addClass(a,o)}removeClass(a,o){this.delegate.removeClass(a,o)}setStyle(a,o,p,S){this.delegate.setStyle(a,o,p,S)}removeStyle(a,o,p){this.delegate.removeStyle(a,o,p)}setProperty(a,o,p){"@"==o.charAt(0)&&o==eo?this.disableAnimations(a,!!p):this.delegate.setProperty(a,o,p)}setValue(a,o){this.delegate.setValue(a,o)}listen(a,o,p){return this.delegate.listen(a,o,p)}disableAnimations(a,o){this.engine.disableAnimations(a,o)}}class or extends ds{constructor(a,o,p,S){super(o,p,S),this.factory=a,this.namespaceId=o}setProperty(a,o,p){"@"==o.charAt(0)?"."==o.charAt(1)&&o==eo?this.disableAnimations(a,p=void 0===p||!!p):this.engine.process(this.namespaceId,a,o.slice(1),p):this.delegate.setProperty(a,o,p)}listen(a,o,p){if("@"==o.charAt(0)){const S=function Do(_){switch(_){case"body":return document.body;case"document":return document;case"window":return window;default:return _}}(a);let N=o.slice(1),X="";return"@"!=N.charAt(0)&&([N,X]=function Oi(_){const a=_.indexOf(".");return[_.substring(0,a),_.slice(a+1)]}(N)),this.engine.listen(this.namespaceId,S,N,X,q=>{this.factory.scheduleListenerCallback(q._data||-1,p,q)})}return this.delegate.listen(a,o,p)}}const fs=[{provide:_t._j,useClass:Ss},{provide:oi,useFactory:function ci(){return new rs}},{provide:wi,useClass:(()=>{class _ extends wi{constructor(o,p,S,N){super(o.body,p,S)}ngOnDestroy(){this.flush()}}return _.\u0275fac=function(o){return new(o||_)(c.LFG(Je.K0),c.LFG(ei),c.LFG(oi),c.LFG(c.z2F))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})()},{provide:c.FYo,useFactory:function As(_,a,o){return new Is(_,a,o)},deps:[m.se,wi,c.R0b]}],to=[{provide:ei,useFactory:()=>new Zn},{provide:c.QbO,useValue:"BrowserAnimations"},...fs],Eo=[{provide:ei,useClass:Cr},{provide:c.QbO,useValue:"NoopAnimations"},...fs];let no=(()=>{class _{static withConfig(o){return{ngModule:_,providers:o.disableAnimations?Eo:to}}}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({providers:to,imports:[m.b2]}),_})(),di=(()=>{class _{constructor(o){this._router=o}intercept(o,p){let S=JSON.parse(window.localStorage.getItem("user")),N=new Date;if(null!=S){let X=new Date(S.Token.expiredAt);o=o.clone(N<X?{setHeaders:{"Content-Type":"application/json",Authorization:`Bearer ${S.Token.access_token}`}}:{setHeaders:{"Content-Type":"application/json"}})}else o=o.clone({setHeaders:{"Content-Type":"application/json"}});return p.handle(o)}}return _.\u0275fac=function(o){return new(o||_)(c.LFG(In.F0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();var Ri=b(7185);const xi=["custom-toast-component",""];function hs(_,a){if(1&_){const o=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(o);const S=c.oxw(2);return c.KtG(S.remove())}),c._uU(1," x "),c.qZA()}}function $r(_,a){if(1&_&&(c.TgZ(0,"div",6)(1,"div",7)(2,"div")(3,"h4"),c._uU(4),c.qZA()()(),c.TgZ(5,"div",8),c.YNc(6,hs,2,0,"a",9),c.qZA()()),2&_){const o=c.oxw();c.Udp("display","inactive"===o.state.value?"none":""),c.xp6(2),c.Tol(o.options.titleClass),c.uIk("aria-label",o.title),c.xp6(2),c.Oqu(o.title),c.xp6(2),c.Q6J("ngIf",o.options.closeButton)}}const Ms=function(_){return{notitle:_}};function Ki(_,a){if(1&_&&c._UZ(0,"div",11),2&_){const o=c.oxw();c.Tol(o.options.messageClass),c.Q6J("ngClass",c.VKq(4,Ms,null==o.title))("innerHTML",o.message,c.oJD)}}function Ps(_,a){if(1&_&&(c.TgZ(0,"div",12),c._uU(1),c.qZA()),2&_){const o=c.oxw();c.Tol(o.options.messageClass),c.Q6J("ngClass",c.VKq(5,Ms,null==o.title)),c.uIk("aria-label",o.message),c.xp6(1),c.hij(" ",o.message," ")}}function ro(_,a){if(1&_){const o=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(o);const S=c.oxw();return c.KtG(S.remove())}),c._uU(1," x "),c.qZA()}}function Os(_,a){if(1&_&&(c.TgZ(0,"div"),c._UZ(1,"div",13),c.qZA()),2&_){const o=c.oxw();c.xp6(1),c.Udp("width",o.width+"%")}}let Co=(()=>{class _ extends Ri.FN{constructor(o,p){super(o,p),this.toastrService=o,this.toastPackage=p}ngOnInit(){}action(o){return o.stopPropagation(),this.toastPackage.triggerAction(),!1}}return _.\u0275fac=function(o){return new(o||_)(c.Y36(Ri._W),c.Y36(Ri.PR))},_.\u0275cmp=c.Xpm({type:_,selectors:[["","custom-toast-component",""]],features:[c.qOj],attrs:xi,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(o,p){1&o&&(c.TgZ(0,"div",0),c.YNc(1,$r,7,7,"div",1),c.YNc(2,Ki,1,6,"div",2),c.YNc(3,Ps,2,7,"div",3),c.YNc(4,ro,2,0,"a",4),c.YNc(5,Os,2,2,"div",5),c.qZA()),2&o&&(c.xp6(1),c.Q6J("ngIf",p.title),c.xp6(1),c.Q6J("ngIf",p.message&&p.options.enableHtml),c.xp6(1),c.Q6J("ngIf",p.message&&!p.options.enableHtml),c.xp6(1),c.Q6J("ngIf",p.options.closeButton&&null==p.title),c.xp6(1),c.Q6J("ngIf",p.options.progressBar))},dependencies:[Je.mk,Je.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,_t.X$)("flyInOut",[(0,_t.SB)("inactive",(0,_t.oB)({opacity:0})),(0,_t.eR)("inactive => active",(0,_t.jt)("400ms ease-out",(0,_t.F4)([(0,_t.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,_t.oB)({transform:"skewX(20deg)",opacity:1}),(0,_t.oB)({transform:"skewX(-5deg)",opacity:1}),(0,_t.oB)({transform:"none",opacity:1})]))),(0,_t.eR)("active => removed",(0,_t.jt)("400ms ease-out",(0,_t.F4)([(0,_t.oB)({opacity:1}),(0,_t.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),_})();var Rs=b(5421),xo=b(2011),Zi=b(7899),Yi=b(2340);const io={name:"MarketplaceDB",version:1,objectStoresMeta:[{store:"Categories",storeConfig:{keyPath:null,autoIncrement:!1},storeSchema:[]}]};let so=(()=>{class _{}return _.\u0275fac=function(o){return new(o||_)},_.\u0275mod=c.oAB({type:_,bootstrap:[Hn]}),_.\u0275inj=c.cJS({providers:[{provide:F.TP,useClass:di,multi:!0},vn.O,Wn.e],imports:[m.b2,Nn,no,Ri.Rh.forRoot({toastComponent:Co,positionClass:"toast-bottom-right",closeButton:!0}),F.JF,Rs.Cz.forRoot(io),nn.forRoot(),xo.hO.initializeApp(Yi.N.firebaseConfig),Zi.ww]}),_})();Yi.N.production&&(0,c.G48)(),m.q6().bootstrapModule(so).catch(_=>console.error(_))},5867:(it,De,b)=>{b.d(De,{C6:()=>m.getApps,Mq:()=>m.getApp});var m=b(9681);(0,m.registerVersion)("firebase","9.12.1","app")},127:(it,De,b)=>{b.d(De,{Z:()=>m.Z});var m=b(3942);m.Z.registerVersion("firebase","9.12.1","app-compat")},1135:(it,De,b)=>{b.d(De,{X:()=>c});var m=b(7579);class c extends m.x{constructor(z){super(),this._value=z}get value(){return this.getValue()}_subscribe(z){const U=super._subscribe(z);return!U.closed&&z.next(this._value),U}getValue(){const{hasError:z,thrownError:U,_value:J}=this;if(z)throw U;return this._throwIfClosed(),J}next(z){super.next(this._value=z)}}},8306:(it,De,b)=>{b.d(De,{y:()=>R});var m=b(930),c=b(727),F=b(8822),z=b(4671);var ee=b(2416),ie=b(576),te=b(2806);let R=(()=>{class Oe{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const Ie=new Oe;return Ie.source=this,Ie.operator=Be,Ie}subscribe(Be,Ie,Te){const Je=function je(Oe){return Oe&&Oe instanceof m.Lv||function de(Oe){return Oe&&(0,ie.m)(Oe.next)&&(0,ie.m)(Oe.error)&&(0,ie.m)(Oe.complete)}(Oe)&&(0,c.Nn)(Oe)}(Be)?Be:new m.Hp(Be,Ie,Te);return(0,te.x)(()=>{const{operator:ke,source:Ce}=this;Je.add(ke?ke.call(Je,Ce):Ce?this._subscribe(Je):this._trySubscribe(Je))}),Je}_trySubscribe(Be){try{return this._subscribe(Be)}catch(Ie){Be.error(Ie)}}forEach(Be,Ie){return new(Ie=L(Ie))((Te,Je)=>{const ke=new m.Hp({next:Ce=>{try{Be(Ce)}catch(x){Je(x),ke.unsubscribe()}},error:Je,complete:Te});this.subscribe(ke)})}_subscribe(Be){var Ie;return null===(Ie=this.source)||void 0===Ie?void 0:Ie.subscribe(Be)}[F.L](){return this}pipe(...Be){return function J(Oe){return 0===Oe.length?z.y:1===Oe.length?Oe[0]:function(Be){return Oe.reduce((Ie,Te)=>Te(Ie),Be)}}(Be)(this)}toPromise(Be){return new(Be=L(Be))((Ie,Te)=>{let Je;this.subscribe(ke=>Je=ke,ke=>Te(ke),()=>Ie(Je))})}}return Oe.create=xe=>new Oe(xe),Oe})();function L(Oe){var xe;return null!==(xe=Oe??ee.v.Promise)&&void 0!==xe?xe:Promise}},4707:(it,De,b)=>{b.d(De,{t:()=>F});var m=b(7579),c=b(6063);class F extends m.x{constructor(U=1/0,J=1/0,ee=c.l){super(),this._bufferSize=U,this._windowTime=J,this._timestampProvider=ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=J===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,J)}next(U){const{isStopped:J,_buffer:ee,_infiniteTimeWindow:ie,_timestampProvider:te,_windowTime:R}=this;J||(ee.push(U),!ie&&ee.push(te.now()+R)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const J=this._innerSubscribe(U),{_infiniteTimeWindow:ee,_buffer:ie}=this,te=ie.slice();for(let R=0;R<te.length&&!U.closed;R+=ee?1:2)U.next(te[R]);return this._checkFinalizedStatuses(U),J}_trimBuffer(){const{_bufferSize:U,_timestampProvider:J,_buffer:ee,_infiniteTimeWindow:ie}=this,te=(ie?1:2)*U;if(U<1/0&&te<ee.length&&ee.splice(0,ee.length-te),!ie){const R=J.now();let L=0;for(let de=1;de<ee.length&&ee[de]<=R;de+=2)L=de;L&&ee.splice(0,L+1)}}}},7579:(it,De,b)=>{b.d(De,{x:()=>ee});var m=b(8306),c=b(727);const z=(0,b(3888).d)(te=>function(){te(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=b(8737),J=b(2806);let ee=(()=>{class te extends m.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L){const de=new ie(this,this);return de.operator=L,de}_throwIfClosed(){if(this.closed)throw new z}next(L){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const de of this.currentObservers)de.next(L)}})}error(L){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L;const{observers:de}=this;for(;de.length;)de.shift().error(L)}})}complete(){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L}=this;for(;L.length;)L.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L;return(null===(L=this.observers)||void 0===L?void 0:L.length)>0}_trySubscribe(L){return this._throwIfClosed(),super._trySubscribe(L)}_subscribe(L){return this._throwIfClosed(),this._checkFinalizedStatuses(L),this._innerSubscribe(L)}_innerSubscribe(L){const{hasError:de,isStopped:je,observers:Oe}=this;return de||je?c.Lc:(this.currentObservers=null,Oe.push(L),new c.w0(()=>{this.currentObservers=null,(0,U.P)(Oe,L)}))}_checkFinalizedStatuses(L){const{hasError:de,thrownError:je,isStopped:Oe}=this;de?L.error(je):Oe&&L.complete()}asObservable(){const L=new m.y;return L.source=this,L}}return te.create=(R,L)=>new ie(R,L),te})();class ie extends ee{constructor(R,L){super(),this.destination=R,this.source=L}next(R){var L,de;null===(de=null===(L=this.destination)||void 0===L?void 0:L.next)||void 0===de||de.call(L,R)}error(R){var L,de;null===(de=null===(L=this.destination)||void 0===L?void 0:L.error)||void 0===de||de.call(L,R)}complete(){var R,L;null===(L=null===(R=this.destination)||void 0===R?void 0:R.complete)||void 0===L||L.call(R)}_subscribe(R){var L,de;return null!==(de=null===(L=this.source)||void 0===L?void 0:L.subscribe(R))&&void 0!==de?de:c.Lc}}},930:(it,De,b)=>{b.d(De,{Hp:()=>Be,Lv:()=>de});var m=b(576),c=b(727),F=b(2416),z=b(7849),U=b(5032);const J=te("C",void 0,void 0);function te(Ce,x,K){return{kind:Ce,value:x,error:K}}var R=b(3410),L=b(2806);class de extends c.w0{constructor(x){super(),this.isStopped=!1,x?(this.destination=x,(0,c.Nn)(x)&&x.add(this)):this.destination=ke}static create(x,K,le){return new Be(x,K,le)}next(x){this.isStopped?Je(function ie(Ce){return te("N",Ce,void 0)}(x),this):this._next(x)}error(x){this.isStopped?Je(function ee(Ce){return te("E",void 0,Ce)}(x),this):(this.isStopped=!0,this._error(x))}complete(){this.isStopped?Je(J,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(x){this.destination.next(x)}_error(x){try{this.destination.error(x)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const je=Function.prototype.bind;function Oe(Ce,x){return je.call(Ce,x)}class xe{constructor(x){this.partialObserver=x}next(x){const{partialObserver:K}=this;if(K.next)try{K.next(x)}catch(le){Ie(le)}}error(x){const{partialObserver:K}=this;if(K.error)try{K.error(x)}catch(le){Ie(le)}else Ie(x)}complete(){const{partialObserver:x}=this;if(x.complete)try{x.complete()}catch(K){Ie(K)}}}class Be extends de{constructor(x,K,le){let ue;if(super(),(0,m.m)(x)||!x)ue={next:x??void 0,error:K??void 0,complete:le??void 0};else{let W;this&&F.v.useDeprecatedNextContext?(W=Object.create(x),W.unsubscribe=()=>this.unsubscribe(),ue={next:x.next&&Oe(x.next,W),error:x.error&&Oe(x.error,W),complete:x.complete&&Oe(x.complete,W)}):ue=x}this.destination=new xe(ue)}}function Ie(Ce){F.v.useDeprecatedSynchronousErrorHandling?(0,L.O)(Ce):(0,z.h)(Ce)}function Je(Ce,x){const{onStoppedNotification:K}=F.v;K&&R.z.setTimeout(()=>K(Ce,x))}const ke={closed:!0,next:U.Z,error:function Te(Ce){throw Ce},complete:U.Z}},727:(it,De,b)=>{b.d(De,{Lc:()=>J,w0:()=>U,Nn:()=>ee});var m=b(576);const F=(0,b(3888).d)(te=>function(L){te(this),this.message=L?`${L.length} errors occurred during unsubscription:\n${L.map((de,je)=>`${je+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=L});var z=b(8737);class U{constructor(R){this.initialTeardown=R,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let R;if(!this.closed){this.closed=!0;const{_parentage:L}=this;if(L)if(this._parentage=null,Array.isArray(L))for(const Oe of L)Oe.remove(this);else L.remove(this);const{initialTeardown:de}=this;if((0,m.m)(de))try{de()}catch(Oe){R=Oe instanceof F?Oe.errors:[Oe]}const{_finalizers:je}=this;if(je){this._finalizers=null;for(const Oe of je)try{ie(Oe)}catch(xe){R=R??[],xe instanceof F?R=[...R,...xe.errors]:R.push(xe)}}if(R)throw new F(R)}}add(R){var L;if(R&&R!==this)if(this.closed)ie(R);else{if(R instanceof U){if(R.closed||R._hasParent(this))return;R._addParent(this)}(this._finalizers=null!==(L=this._finalizers)&&void 0!==L?L:[]).push(R)}}_hasParent(R){const{_parentage:L}=this;return L===R||Array.isArray(L)&&L.includes(R)}_addParent(R){const{_parentage:L}=this;this._parentage=Array.isArray(L)?(L.push(R),L):L?[L,R]:R}_removeParent(R){const{_parentage:L}=this;L===R?this._parentage=null:Array.isArray(L)&&(0,z.P)(L,R)}remove(R){const{_finalizers:L}=this;L&&(0,z.P)(L,R),R instanceof U&&R._removeParent(this)}}U.EMPTY=(()=>{const te=new U;return te.closed=!0,te})();const J=U.EMPTY;function ee(te){return te instanceof U||te&&"closed"in te&&(0,m.m)(te.remove)&&(0,m.m)(te.add)&&(0,m.m)(te.unsubscribe)}function ie(te){(0,m.m)(te)?te():te.unsubscribe()}},2416:(it,De,b)=>{b.d(De,{v:()=>m});const m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(it,De,b)=>{b.d(De,{a:()=>R});var m=b(8306),c=b(4742),F=b(8996),z=b(4671),U=b(3268),J=b(3269),ee=b(1810),ie=b(5403),te=b(9672);function R(...je){const Oe=(0,J.yG)(je),xe=(0,J.jO)(je),{args:Be,keys:Ie}=(0,c.D)(je);if(0===Be.length)return(0,F.D)([],Oe);const Te=new m.y(function L(je,Oe,xe=z.y){return Be=>{de(Oe,()=>{const{length:Ie}=je,Te=new Array(Ie);let Je=Ie,ke=Ie;for(let Ce=0;Ce<Ie;Ce++)de(Oe,()=>{const x=(0,F.D)(je[Ce],Oe);let K=!1;x.subscribe((0,ie.x)(Be,le=>{Te[Ce]=le,K||(K=!0,ke--),ke||Be.next(xe(Te.slice()))},()=>{--Je||Be.complete()}))},Be)},Be)}}(Be,Oe,Ie?Je=>(0,ee.n)(Ie,Je):z.y));return xe?Te.pipe((0,U.Z)(xe)):Te}function de(je,Oe,xe){je?(0,te.f)(xe,je,Oe):Oe()}},7272:(it,De,b)=>{b.d(De,{z:()=>U});var m=b(8189),F=b(3269),z=b(8996);function U(...J){return function c(){return(0,m.J)(1)}()((0,z.D)(J,(0,F.yG)(J)))}},9770:(it,De,b)=>{b.d(De,{P:()=>F});var m=b(8306),c=b(8421);function F(z){return new m.y(U=>{(0,c.Xf)(z()).subscribe(U)})}},515:(it,De,b)=>{b.d(De,{E:()=>c});const c=new(b(8306).y)(U=>U.complete())},8996:(it,De,b)=>{b.d(De,{D:()=>x});var m=b(8421),c=b(5363),F=b(9468),J=b(8306),ie=b(2202),te=b(576),R=b(9672);function de(K,le){if(!K)throw new Error("Iterable cannot be null");return new J.y(ue=>{(0,R.f)(ue,le,()=>{const W=K[Symbol.asyncIterator]();(0,R.f)(ue,le,()=>{W.next().then(ge=>{ge.done?ue.complete():ue.next(ge.value)})},0,!0)})})}var je=b(3670),Oe=b(8239),xe=b(1144),Be=b(6495),Ie=b(2206),Te=b(4532),Je=b(3260);function x(K,le){return le?function Ce(K,le){if(null!=K){if((0,je.c)(K))return function z(K,le){return(0,m.Xf)(K).pipe((0,F.R)(le),(0,c.Q)(le))}(K,le);if((0,xe.z)(K))return function ee(K,le){return new J.y(ue=>{let W=0;return le.schedule(function(){W===K.length?ue.complete():(ue.next(K[W++]),ue.closed||this.schedule())})})}(K,le);if((0,Oe.t)(K))return function U(K,le){return(0,m.Xf)(K).pipe((0,F.R)(le),(0,c.Q)(le))}(K,le);if((0,Ie.D)(K))return de(K,le);if((0,Be.T)(K))return function L(K,le){return new J.y(ue=>{let W;return(0,R.f)(ue,le,()=>{W=K[ie.h](),(0,R.f)(ue,le,()=>{let ge,H;try{({value:ge,done:H}=W.next())}catch(ne){return void ue.error(ne)}H?ue.complete():ue.next(ge)},0,!0)}),()=>(0,te.m)(W?.return)&&W.return()})}(K,le);if((0,Je.L)(K))return function ke(K,le){return de((0,Je.Q)(K),le)}(K,le)}throw(0,Te.z)(K)}(K,le):(0,m.Xf)(K)}},8421:(it,De,b)=>{b.d(De,{Xf:()=>je});var m=b(655),c=b(1144),F=b(8239),z=b(8306),U=b(3670),J=b(2206),ee=b(4532),ie=b(6495),te=b(3260),R=b(576),L=b(7849),de=b(8822);function je(Ce){if(Ce instanceof z.y)return Ce;if(null!=Ce){if((0,U.c)(Ce))return function Oe(Ce){return new z.y(x=>{const K=Ce[de.L]();if((0,R.m)(K.subscribe))return K.subscribe(x);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ce);if((0,c.z)(Ce))return function xe(Ce){return new z.y(x=>{for(let K=0;K<Ce.length&&!x.closed;K++)x.next(Ce[K]);x.complete()})}(Ce);if((0,F.t)(Ce))return function Be(Ce){return new z.y(x=>{Ce.then(K=>{x.closed||(x.next(K),x.complete())},K=>x.error(K)).then(null,L.h)})}(Ce);if((0,J.D)(Ce))return Te(Ce);if((0,ie.T)(Ce))return function Ie(Ce){return new z.y(x=>{for(const K of Ce)if(x.next(K),x.closed)return;x.complete()})}(Ce);if((0,te.L)(Ce))return function Je(Ce){return Te((0,te.Q)(Ce))}(Ce)}throw(0,ee.z)(Ce)}function Te(Ce){return new z.y(x=>{(function ke(Ce,x){var K,le,ue,W;return(0,m.mG)(this,void 0,void 0,function*(){try{for(K=(0,m.KL)(Ce);!(le=yield K.next()).done;)if(x.next(le.value),x.closed)return}catch(ge){ue={error:ge}}finally{try{le&&!le.done&&(W=K.return)&&(yield W.call(K))}finally{if(ue)throw ue.error}}x.complete()})})(Ce,x).catch(K=>x.error(K))})}},6451:(it,De,b)=>{b.d(De,{T:()=>J});var m=b(8189),c=b(8421),F=b(515),z=b(3269),U=b(8996);function J(...ee){const ie=(0,z.yG)(ee),te=(0,z._6)(ee,1/0),R=ee;return R.length?1===R.length?(0,c.Xf)(R[0]):(0,m.J)(te)((0,U.D)(R,ie)):F.E}},9646:(it,De,b)=>{b.d(De,{of:()=>F});var m=b(3269),c=b(8996);function F(...z){const U=(0,m.yG)(z);return(0,c.D)(z,U)}},2843:(it,De,b)=>{b.d(De,{_:()=>F});var m=b(8306),c=b(576);function F(z,U){const J=(0,c.m)(z)?z:()=>z,ee=ie=>ie.error(J());return new m.y(U?ie=>U.schedule(ee,0,ie):ee)}},2805:(it,De,b)=>{b.d(De,{H:()=>U});var m=b(8306),c=b(4986),F=b(3532),z=b(1165);function U(J=0,ee,ie=c.P){let te=-1;return null!=ee&&((0,F.K)(ee)?ie=ee:te=ee),new m.y(R=>{let L=(0,z.q)(J)?+J-ie.now():J;L<0&&(L=0);let de=0;return ie.schedule(function(){R.closed||(R.next(de++),0<=te?this.schedule(void 0,te):R.complete())},L)})}},5403:(it,De,b)=>{b.d(De,{x:()=>c});var m=b(930);function c(z,U,J,ee,ie){return new F(z,U,J,ee,ie)}class F extends m.Lv{constructor(U,J,ee,ie,te,R){super(U),this.onFinalize=te,this.shouldUnsubscribe=R,this._next=J?function(L){try{J(L)}catch(de){U.error(de)}}:super._next,this._error=ie?function(L){try{ie(L)}catch(de){U.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=ee?function(){try{ee()}catch(L){U.error(L)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:J}=this;super.unsubscribe(),!J&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},262:(it,De,b)=>{b.d(De,{K:()=>z});var m=b(8421),c=b(5403),F=b(4482);function z(U){return(0,F.e)((J,ee)=>{let R,ie=null,te=!1;ie=J.subscribe((0,c.x)(ee,void 0,void 0,L=>{R=(0,m.Xf)(U(L,z(U)(J))),ie?(ie.unsubscribe(),ie=null,R.subscribe(ee)):te=!0})),te&&(ie.unsubscribe(),ie=null,R.subscribe(ee))})}},4351:(it,De,b)=>{b.d(De,{b:()=>F});var m=b(5577),c=b(576);function F(z,U){return(0,c.m)(U)?(0,m.z)(z,U,1):(0,m.z)(z,1)}},6590:(it,De,b)=>{b.d(De,{d:()=>F});var m=b(4482),c=b(5403);function F(z){return(0,m.e)((U,J)=>{let ee=!1;U.subscribe((0,c.x)(J,ie=>{ee=!0,J.next(ie)},()=>{ee||J.next(z),J.complete()}))})}},1884:(it,De,b)=>{b.d(De,{x:()=>z});var m=b(4671),c=b(4482),F=b(5403);function z(J,ee=m.y){return J=J??U,(0,c.e)((ie,te)=>{let R,L=!0;ie.subscribe((0,F.x)(te,de=>{const je=ee(de);(L||!J(R,je))&&(L=!1,R=je,te.next(de))}))})}function U(J,ee){return J===ee}},9300:(it,De,b)=>{b.d(De,{h:()=>F});var m=b(4482),c=b(5403);function F(z,U){return(0,m.e)((J,ee)=>{let ie=0;J.subscribe((0,c.x)(ee,te=>z.call(U,te,ie++)&&ee.next(te)))})}},8746:(it,De,b)=>{b.d(De,{x:()=>c});var m=b(4482);function c(F){return(0,m.e)((z,U)=>{try{z.subscribe(U)}finally{U.add(F)}})}},590:(it,De,b)=>{b.d(De,{P:()=>ee});var m=b(6805),c=b(9300),F=b(5698),z=b(6590),U=b(8068),J=b(4671);function ee(ie,te){const R=arguments.length>=2;return L=>L.pipe(ie?(0,c.h)((de,je)=>ie(de,je,L)):J.y,(0,F.q)(1),R?(0,z.d)(te):(0,U.T)(()=>new m.K))}},4004:(it,De,b)=>{b.d(De,{U:()=>F});var m=b(4482),c=b(5403);function F(z,U){return(0,m.e)((J,ee)=>{let ie=0;J.subscribe((0,c.x)(ee,te=>{ee.next(z.call(U,te,ie++))}))})}},9718:(it,De,b)=>{b.d(De,{h:()=>c});var m=b(4004);function c(F){return(0,m.U)(()=>F)}},8189:(it,De,b)=>{b.d(De,{J:()=>F});var m=b(5577),c=b(4671);function F(z=1/0){return(0,m.z)(c.y,z)}},5577:(it,De,b)=>{b.d(De,{z:()=>ie});var m=b(4004),c=b(8421),F=b(4482),z=b(9672),U=b(5403),ee=b(576);function ie(te,R,L=1/0){return(0,ee.m)(R)?ie((de,je)=>(0,m.U)((Oe,xe)=>R(de,Oe,je,xe))((0,c.Xf)(te(de,je))),L):("number"==typeof R&&(L=R),(0,F.e)((de,je)=>function J(te,R,L,de,je,Oe,xe,Be){const Ie=[];let Te=0,Je=0,ke=!1;const Ce=()=>{ke&&!Ie.length&&!Te&&R.complete()},x=le=>Te<de?K(le):Ie.push(le),K=le=>{Oe&&R.next(le),Te++;let ue=!1;(0,c.Xf)(L(le,Je++)).subscribe((0,U.x)(R,W=>{je?.(W),Oe?x(W):R.next(W)},()=>{ue=!0},void 0,()=>{if(ue)try{for(Te--;Ie.length&&Te<de;){const W=Ie.shift();xe?(0,z.f)(R,xe,()=>K(W)):K(W)}Ce()}catch(W){R.error(W)}}))};return te.subscribe((0,U.x)(R,x,()=>{ke=!0,Ce()})),()=>{Be?.()}}(de,je,te,L)))}},5363:(it,De,b)=>{b.d(De,{Q:()=>z});var m=b(9672),c=b(4482),F=b(5403);function z(U,J=0){return(0,c.e)((ee,ie)=>{ee.subscribe((0,F.x)(ie,te=>(0,m.f)(ie,U,()=>ie.next(te),J),()=>(0,m.f)(ie,U,()=>ie.complete(),J),te=>(0,m.f)(ie,U,()=>ie.error(te),J)))})}},5026:(it,De,b)=>{b.d(De,{R:()=>z});var m=b(4482),c=b(5403);function F(U,J,ee,ie,te){return(R,L)=>{let de=ee,je=J,Oe=0;R.subscribe((0,c.x)(L,xe=>{const Be=Oe++;je=de?U(je,xe,Be):(de=!0,xe),ie&&L.next(je)},te&&(()=>{de&&L.next(je),L.complete()})))}}function z(U,J){return(0,m.e)(F(U,J,arguments.length>=2,!0))}},3099:(it,De,b)=>{b.d(De,{B:()=>U});var m=b(8421),c=b(7579),F=b(930),z=b(4482);function U(ee={}){const{connector:ie=(()=>new c.x),resetOnError:te=!0,resetOnComplete:R=!0,resetOnRefCountZero:L=!0}=ee;return de=>{let je,Oe,xe,Be=0,Ie=!1,Te=!1;const Je=()=>{Oe?.unsubscribe(),Oe=void 0},ke=()=>{Je(),je=xe=void 0,Ie=Te=!1},Ce=()=>{const x=je;ke(),x?.unsubscribe()};return(0,z.e)((x,K)=>{Be++,!Te&&!Ie&&Je();const le=xe=xe??ie();K.add(()=>{Be--,0===Be&&!Te&&!Ie&&(Oe=J(Ce,L))}),le.subscribe(K),!je&&Be>0&&(je=new F.Hp({next:ue=>le.next(ue),error:ue=>{Te=!0,Je(),Oe=J(ke,te,ue),le.error(ue)},complete:()=>{Ie=!0,Je(),Oe=J(ke,R),le.complete()}}),(0,m.Xf)(x).subscribe(je))})(de)}}function J(ee,ie,...te){if(!0===ie)return void ee();if(!1===ie)return;const R=new F.Hp({next:()=>{R.unsubscribe(),ee()}});return ie(...te).subscribe(R)}},4782:(it,De,b)=>{b.d(De,{d:()=>F});var m=b(4707),c=b(3099);function F(z,U,J){let ee,ie=!1;return z&&"object"==typeof z?({bufferSize:ee=1/0,windowTime:U=1/0,refCount:ie=!1,scheduler:J}=z):ee=z??1/0,(0,c.B)({connector:()=>new m.t(ee,U,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ie})}},8675:(it,De,b)=>{b.d(De,{O:()=>z});var m=b(7272),c=b(3269),F=b(4482);function z(...U){const J=(0,c.yG)(U);return(0,F.e)((ee,ie)=>{(J?(0,m.z)(U,ee,J):(0,m.z)(U,ee)).subscribe(ie)})}},9468:(it,De,b)=>{b.d(De,{R:()=>c});var m=b(4482);function c(F,z=0){return(0,m.e)((U,J)=>{J.add(F.schedule(()=>U.subscribe(J),z))})}},3900:(it,De,b)=>{b.d(De,{w:()=>z});var m=b(8421),c=b(4482),F=b(5403);function z(U,J){return(0,c.e)((ee,ie)=>{let te=null,R=0,L=!1;const de=()=>L&&!te&&ie.complete();ee.subscribe((0,F.x)(ie,je=>{te?.unsubscribe();let Oe=0;const xe=R++;(0,m.Xf)(U(je,xe)).subscribe(te=(0,F.x)(ie,Be=>ie.next(J?J(je,Be,xe,Oe++):Be),()=>{te=null,de()}))},()=>{L=!0,de()}))})}},5698:(it,De,b)=>{b.d(De,{q:()=>z});var m=b(515),c=b(4482),F=b(5403);function z(U){return U<=0?()=>m.E:(0,c.e)((J,ee)=>{let ie=0;J.subscribe((0,F.x)(ee,te=>{++ie<=U&&(ee.next(te),U<=ie&&ee.complete())}))})}},8505:(it,De,b)=>{b.d(De,{b:()=>U});var m=b(576),c=b(4482),F=b(5403),z=b(4671);function U(J,ee,ie){const te=(0,m.m)(J)||ee||ie?{next:J,error:ee,complete:ie}:J;return te?(0,c.e)((R,L)=>{var de;null===(de=te.subscribe)||void 0===de||de.call(te);let je=!0;R.subscribe((0,F.x)(L,Oe=>{var xe;null===(xe=te.next)||void 0===xe||xe.call(te,Oe),L.next(Oe)},()=>{var Oe;je=!1,null===(Oe=te.complete)||void 0===Oe||Oe.call(te),L.complete()},Oe=>{var xe;je=!1,null===(xe=te.error)||void 0===xe||xe.call(te,Oe),L.error(Oe)},()=>{var Oe,xe;je&&(null===(Oe=te.unsubscribe)||void 0===Oe||Oe.call(te)),null===(xe=te.finalize)||void 0===xe||xe.call(te)}))}):z.y}},8068:(it,De,b)=>{b.d(De,{T:()=>z});var m=b(6805),c=b(4482),F=b(5403);function z(J=U){return(0,c.e)((ee,ie)=>{let te=!1;ee.subscribe((0,F.x)(ie,R=>{te=!0,ie.next(R)},()=>te?ie.complete():ie.error(J())))})}function U(){return new m.K}},4408:(it,De,b)=>{b.d(De,{o:()=>U});var m=b(727);class c extends m.w0{constructor(ee,ie){super()}schedule(ee,ie=0){return this}}const F={setInterval(J,ee,...ie){const{delegate:te}=F;return te?.setInterval?te.setInterval(J,ee,...ie):setInterval(J,ee,...ie)},clearInterval(J){const{delegate:ee}=F;return(ee?.clearInterval||clearInterval)(J)},delegate:void 0};var z=b(8737);class U extends c{constructor(ee,ie){super(ee,ie),this.scheduler=ee,this.work=ie,this.pending=!1}schedule(ee,ie=0){if(this.closed)return this;this.state=ee;const te=this.id,R=this.scheduler;return null!=te&&(this.id=this.recycleAsyncId(R,te,ie)),this.pending=!0,this.delay=ie,this.id=this.id||this.requestAsyncId(R,this.id,ie),this}requestAsyncId(ee,ie,te=0){return F.setInterval(ee.flush.bind(ee,this),te)}recycleAsyncId(ee,ie,te=0){if(null!=te&&this.delay===te&&!1===this.pending)return ie;F.clearInterval(ie)}execute(ee,ie){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const te=this._execute(ee,ie);if(te)return te;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ee,ie){let R,te=!1;try{this.work(ee)}catch(L){te=!0,R=L||new Error("Scheduled action threw falsy error")}if(te)return this.unsubscribe(),R}unsubscribe(){if(!this.closed){const{id:ee,scheduler:ie}=this,{actions:te}=ie;this.work=this.state=this.scheduler=null,this.pending=!1,(0,z.P)(te,this),null!=ee&&(this.id=this.recycleAsyncId(ie,ee,null)),this.delay=null,super.unsubscribe()}}}},7565:(it,De,b)=>{b.d(De,{v:()=>F});var m=b(6063);class c{constructor(U,J=c.now){this.schedulerActionCtor=U,this.now=J}schedule(U,J=0,ee){return new this.schedulerActionCtor(this,U).schedule(ee,J)}}c.now=m.l.now;class F extends c{constructor(U,J=c.now){super(U,J),this.actions=[],this._active=!1,this._scheduled=void 0}flush(U){const{actions:J}=this;if(this._active)return void J.push(U);let ee;this._active=!0;do{if(ee=U.execute(U.state,U.delay))break}while(U=J.shift());if(this._active=!1,ee){for(;U=J.shift();)U.unsubscribe();throw ee}}}},4986:(it,De,b)=>{b.d(De,{P:()=>z,z:()=>F});var m=b(4408);const F=new(b(7565).v)(m.o),z=F},6063:(it,De,b)=>{b.d(De,{l:()=>m});const m={now:()=>(m.delegate||Date).now(),delegate:void 0}},3410:(it,De,b)=>{b.d(De,{z:()=>m});const m={setTimeout(c,F,...z){const{delegate:U}=m;return U?.setTimeout?U.setTimeout(c,F,...z):setTimeout(c,F,...z)},clearTimeout(c){const{delegate:F}=m;return(F?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(it,De,b)=>{b.d(De,{h:()=>c});const c=function m(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(it,De,b)=>{b.d(De,{L:()=>m});const m="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(it,De,b)=>{b.d(De,{K:()=>c});const c=(0,b(3888).d)(F=>function(){F(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(it,De,b)=>{b.d(De,{_6:()=>J,jO:()=>z,yG:()=>U});var m=b(576),c=b(3532);function F(ee){return ee[ee.length-1]}function z(ee){return(0,m.m)(F(ee))?ee.pop():void 0}function U(ee){return(0,c.K)(F(ee))?ee.pop():void 0}function J(ee,ie){return"number"==typeof F(ee)?ee.pop():ie}},4742:(it,De,b)=>{b.d(De,{D:()=>U});const{isArray:m}=Array,{getPrototypeOf:c,prototype:F,keys:z}=Object;function U(ee){if(1===ee.length){const ie=ee[0];if(m(ie))return{args:ie,keys:null};if(function J(ee){return ee&&"object"==typeof ee&&c(ee)===F}(ie)){const te=z(ie);return{args:te.map(R=>ie[R]),keys:te}}}return{args:ee,keys:null}}},8737:(it,De,b)=>{function m(c,F){if(c){const z=c.indexOf(F);0<=z&&c.splice(z,1)}}b.d(De,{P:()=>m})},3888:(it,De,b)=>{function m(c){const z=c(U=>{Error.call(U),U.stack=(new Error).stack});return z.prototype=Object.create(Error.prototype),z.prototype.constructor=z,z}b.d(De,{d:()=>m})},1810:(it,De,b)=>{function m(c,F){return c.reduce((z,U,J)=>(z[U]=F[J],z),{})}b.d(De,{n:()=>m})},2806:(it,De,b)=>{b.d(De,{O:()=>z,x:()=>F});var m=b(2416);let c=null;function F(U){if(m.v.useDeprecatedSynchronousErrorHandling){const J=!c;if(J&&(c={errorThrown:!1,error:null}),U(),J){const{errorThrown:ee,error:ie}=c;if(c=null,ee)throw ie}}else U()}function z(U){m.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},9672:(it,De,b)=>{function m(c,F,z,U=0,J=!1){const ee=F.schedule(function(){z(),J?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(ee),!J)return ee}b.d(De,{f:()=>m})},4671:(it,De,b)=>{function m(c){return c}b.d(De,{y:()=>m})},1144:(it,De,b)=>{b.d(De,{z:()=>m});const m=c=>c&&"number"==typeof c.length&&"function"!=typeof c},2206:(it,De,b)=>{b.d(De,{D:()=>c});var m=b(576);function c(F){return Symbol.asyncIterator&&(0,m.m)(F?.[Symbol.asyncIterator])}},1165:(it,De,b)=>{function m(c){return c instanceof Date&&!isNaN(c)}b.d(De,{q:()=>m})},576:(it,De,b)=>{function m(c){return"function"==typeof c}b.d(De,{m:()=>m})},3670:(it,De,b)=>{b.d(De,{c:()=>F});var m=b(8822),c=b(576);function F(z){return(0,c.m)(z[m.L])}},6495:(it,De,b)=>{b.d(De,{T:()=>F});var m=b(2202),c=b(576);function F(z){return(0,c.m)(z?.[m.h])}},8239:(it,De,b)=>{b.d(De,{t:()=>c});var m=b(576);function c(F){return(0,m.m)(F?.then)}},3260:(it,De,b)=>{b.d(De,{L:()=>z,Q:()=>F});var m=b(655),c=b(576);function F(U){return(0,m.FC)(this,arguments,function*(){const ee=U.getReader();try{for(;;){const{value:ie,done:te}=yield(0,m.qq)(ee.read());if(te)return yield(0,m.qq)(void 0);yield yield(0,m.qq)(ie)}}finally{ee.releaseLock()}})}function z(U){return(0,c.m)(U?.getReader)}},3532:(it,De,b)=>{b.d(De,{K:()=>c});var m=b(576);function c(F){return F&&(0,m.m)(F.schedule)}},4482:(it,De,b)=>{b.d(De,{A:()=>c,e:()=>F});var m=b(576);function c(z){return(0,m.m)(z?.lift)}function F(z){return U=>{if(c(U))return U.lift(function(J){try{return z(J,this)}catch(ee){this.error(ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(it,De,b)=>{b.d(De,{Z:()=>z});var m=b(4004);const{isArray:c}=Array;function z(U){return(0,m.U)(J=>function F(U,J){return c(J)?U(...J):U(J)}(U,J))}},5032:(it,De,b)=>{function m(){}b.d(De,{Z:()=>m})},7849:(it,De,b)=>{b.d(De,{h:()=>F});var m=b(2416),c=b(3410);function F(z){c.z.setTimeout(()=>{const{onUnhandledError:U}=m.v;if(!U)throw z;U(z)})}},4532:(it,De,b)=>{function m(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(De,{z:()=>m})},655:(it,De,b)=>{function z(H,ne){var me={};for(var ve in H)Object.prototype.hasOwnProperty.call(H,ve)&&ne.indexOf(ve)<0&&(me[ve]=H[ve]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var _e=0;for(ve=Object.getOwnPropertySymbols(H);_e<ve.length;_e++)ne.indexOf(ve[_e])<0&&Object.prototype.propertyIsEnumerable.call(H,ve[_e])&&(me[ve[_e]]=H[ve[_e]])}return me}function ie(H,ne,me,ve){return new(me||(me=Promise))(function(Ve,ut){function qt(dn){try{lt(ve.next(dn))}catch(tn){ut(tn)}}function Bt(dn){try{lt(ve.throw(dn))}catch(tn){ut(tn)}}function lt(dn){dn.done?Ve(dn.value):function _e(Ve){return Ve instanceof me?Ve:new me(function(ut){ut(Ve)})}(dn.value).then(qt,Bt)}lt((ve=ve.apply(H,ne||[])).next())})}function Ie(H){return this instanceof Ie?(this.v=H,this):new Ie(H)}function Te(H,ne,me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,ve=me.apply(H,ne||[]),Ve=[];return _e={},ut("next"),ut("throw"),ut("return"),_e[Symbol.asyncIterator]=function(){return this},_e;function ut($e){ve[$e]&&(_e[$e]=function(Ye){return new Promise(function(ye,Fe){Ve.push([$e,Ye,ye,Fe])>1||qt($e,Ye)})})}function qt($e,Ye){try{!function Bt($e){$e.value instanceof Ie?Promise.resolve($e.value.v).then(lt,dn):tn(Ve[0][2],$e)}(ve[$e](Ye))}catch(ye){tn(Ve[0][3],ye)}}function lt($e){qt("next",$e)}function dn($e){qt("throw",$e)}function tn($e,Ye){$e(Ye),Ve.shift(),Ve.length&&qt(Ve[0][0],Ve[0][1])}}function ke(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var me,ne=H[Symbol.asyncIterator];return ne?ne.call(H):(H=function de(H){var ne="function"==typeof Symbol&&Symbol.iterator,me=ne&&H[ne],ve=0;if(me)return me.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&ve>=H.length&&(H=void 0),{value:H&&H[ve++],done:!H}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),me={},ve("next"),ve("throw"),ve("return"),me[Symbol.asyncIterator]=function(){return this},me);function ve(Ve){me[Ve]=H[Ve]&&function(ut){return new Promise(function(qt,Bt){!function _e(Ve,ut,qt,Bt){Promise.resolve(Bt).then(function(lt){Ve({value:lt,done:qt})},ut)}(qt,Bt,(ut=H[Ve](ut)).done,ut.value)})}}}b.d(De,{FC:()=>Te,KL:()=>ke,_T:()=>z,mG:()=>ie,qq:()=>Ie})},7340:(it,De,b)=>{b.d(De,{F4:()=>R,IO:()=>xe,LC:()=>c,SB:()=>te,X$:()=>z,ZE:()=>Je,ZN:()=>Te,_j:()=>m,eR:()=>L,jt:()=>U,k1:()=>ke,l3:()=>F,oB:()=>ie,pV:()=>je,ru:()=>J,vP:()=>ee});class m{}class c{}const F="*";function z(Ce,x){return{type:7,name:Ce,definitions:x,options:{}}}function U(Ce,x=null){return{type:4,styles:x,timings:Ce}}function J(Ce,x=null){return{type:3,steps:Ce,options:x}}function ee(Ce,x=null){return{type:2,steps:Ce,options:x}}function ie(Ce){return{type:6,styles:Ce,offset:null}}function te(Ce,x,K){return{type:0,name:Ce,styles:x,options:K}}function R(Ce){return{type:5,steps:Ce}}function L(Ce,x,K=null){return{type:1,expr:Ce,animation:x,options:K}}function je(Ce=null){return{type:9,options:Ce}}function xe(Ce,x,K=null){return{type:11,selector:Ce,animation:x,options:K}}function Ie(Ce){Promise.resolve(null).then(Ce)}class Te{constructor(x=0,K=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=x+K}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(x=>x()),this._onDoneFns=[])}onStart(x){this._originalOnStartFns.push(x),this._onStartFns.push(x)}onDone(x){this._originalOnDoneFns.push(x),this._onDoneFns.push(x)}onDestroy(x){this._onDestroyFns.push(x)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ie(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(x=>x()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(x=>x()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(x){this._position=this.totalTime?x*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(x){const K="start"==x?this._onStartFns:this._onDoneFns;K.forEach(le=>le()),K.length=0}}class Je{constructor(x){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=x;let K=0,le=0,ue=0;const W=this.players.length;0==W?Ie(()=>this._onFinish()):this.players.forEach(ge=>{ge.onDone(()=>{++K==W&&this._onFinish()}),ge.onDestroy(()=>{++le==W&&this._onDestroy()}),ge.onStart(()=>{++ue==W&&this._onStart()})}),this.totalTime=this.players.reduce((ge,H)=>Math.max(ge,H.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(x=>x()),this._onDoneFns=[])}init(){this.players.forEach(x=>x.init())}onStart(x){this._onStartFns.push(x)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(x=>x()),this._onStartFns=[])}onDone(x){this._onDoneFns.push(x)}onDestroy(x){this._onDestroyFns.push(x)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(x=>x.play())}pause(){this.players.forEach(x=>x.pause())}restart(){this.players.forEach(x=>x.restart())}finish(){this._onFinish(),this.players.forEach(x=>x.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(x=>x.destroy()),this._onDestroyFns.forEach(x=>x()),this._onDestroyFns=[])}reset(){this.players.forEach(x=>x.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(x){const K=x*this.totalTime;this.players.forEach(le=>{const ue=le.totalTime?Math.min(1,K/le.totalTime):1;le.setPosition(ue)})}getPosition(){const x=this.players.reduce((K,le)=>null===K||le.totalTime>K.totalTime?le:K,null);return null!=x?x.getPosition():0}beforeDestroy(){this.players.forEach(x=>{x.beforeDestroy&&x.beforeDestroy()})}triggerCallback(x){const K="start"==x?this._onStartFns:this._onDoneFns;K.forEach(le=>le()),K.length=0}}const ke="!"},6895:(it,De,b)=>{b.d(De,{$G:()=>rr,Do:()=>Ce,ED:()=>sr,EM:()=>Kn,HT:()=>U,JF:()=>qn,JJ:()=>Mr,K0:()=>ee,Mx:()=>gi,NF:()=>nt,O5:()=>xn,Ov:()=>mr,PC:()=>Ur,PM:()=>ft,RF:()=>Fr,S$:()=>Ie,Ts:()=>ts,V_:()=>R,Ye:()=>x,b0:()=>ke,bD:()=>Z,ez:()=>Ei,mk:()=>cr,n9:()=>ir,q:()=>F,sg:()=>tr,tP:()=>Ii,uU:()=>ni,w_:()=>J});var m=b(4650);let c=null;function F(){return c}function U(D){c||(c=D)}class J{}const ee=new m.OlP("DocumentToken");let ie=(()=>{class D{historyGo(E){throw new Error("Not implemented")}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275prov=m.Yz7({token:D,factory:function(){return function te(){return(0,m.LFG)(L)}()},providedIn:"platform"}),D})();const R=new m.OlP("Location Initialized");let L=(()=>{class D extends ie{constructor(E){super(),this._doc=E,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return F().getBaseHref(this._doc)}onPopState(E){const O=F().getGlobalEventTarget(this._doc,"window");return O.addEventListener("popstate",E,!1),()=>O.removeEventListener("popstate",E)}onHashChange(E){const O=F().getGlobalEventTarget(this._doc,"window");return O.addEventListener("hashchange",E,!1),()=>O.removeEventListener("hashchange",E)}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(E){this.location.pathname=E}pushState(E,O,re){de()?this._history.pushState(E,O,re):this.location.hash=re}replaceState(E,O,re){de()?this._history.replaceState(E,O,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(E=0){this._history.go(E)}getState(){return this._history.state}}return D.\u0275fac=function(E){return new(E||D)(m.LFG(ee))},D.\u0275prov=m.Yz7({token:D,factory:function(){return function je(){return new L((0,m.LFG)(ee))}()},providedIn:"platform"}),D})();function de(){return!!window.history.pushState}function Oe(D,A){if(0==D.length)return A;if(0==A.length)return D;let E=0;return D.endsWith("/")&&E++,A.startsWith("/")&&E++,2==E?D+A.substring(1):1==E?D+A:D+"/"+A}function xe(D){const A=D.match(/#|\?|$/),E=A&&A.index||D.length;return D.slice(0,E-("/"===D[E-1]?1:0))+D.slice(E)}function Be(D){return D&&"?"!==D[0]?"?"+D:D}let Ie=(()=>{class D{historyGo(E){throw new Error("Not implemented")}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275prov=m.Yz7({token:D,factory:function(){return function Te(){const D=(0,m.LFG)(ee).location;return new ke((0,m.LFG)(ie),D&&D.origin||"")}()},providedIn:"root"}),D})();const Je=new m.OlP("appBaseHref");let ke=(()=>{class D extends Ie{constructor(E,O){if(super(),this._platformLocation=E,this._removeListenerFns=[],null==O&&(O=this._platformLocation.getBaseHrefFromDOM()),null==O)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=O}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}prepareExternalUrl(E){return Oe(this._baseHref,E)}path(E=!1){const O=this._platformLocation.pathname+Be(this._platformLocation.search),re=this._platformLocation.hash;return re&&E?`${O}${re}`:O}pushState(E,O,re,Ne){const we=this.prepareExternalUrl(re+Be(Ne));this._platformLocation.pushState(E,O,we)}replaceState(E,O,re,Ne){const we=this.prepareExternalUrl(re+Be(Ne));this._platformLocation.replaceState(E,O,we)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}}return D.\u0275fac=function(E){return new(E||D)(m.LFG(ie),m.LFG(Je,8))},D.\u0275prov=m.Yz7({token:D,factory:D.\u0275fac}),D})(),Ce=(()=>{class D extends Ie{constructor(E,O){super(),this._platformLocation=E,this._baseHref="",this._removeListenerFns=[],null!=O&&(this._baseHref=O)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}path(E=!1){let O=this._platformLocation.hash;return null==O&&(O="#"),O.length>0?O.substring(1):O}prepareExternalUrl(E){const O=Oe(this._baseHref,E);return O.length>0?"#"+O:O}pushState(E,O,re,Ne){let we=this.prepareExternalUrl(re+Be(Ne));0==we.length&&(we=this._platformLocation.pathname),this._platformLocation.pushState(E,O,we)}replaceState(E,O,re,Ne){let we=this.prepareExternalUrl(re+Be(Ne));0==we.length&&(we=this._platformLocation.pathname),this._platformLocation.replaceState(E,O,we)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}}return D.\u0275fac=function(E){return new(E||D)(m.LFG(ie),m.LFG(Je,8))},D.\u0275prov=m.Yz7({token:D,factory:D.\u0275fac}),D})(),x=(()=>{class D{constructor(E){this._subject=new m.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=E;const O=this._locationStrategy.getBaseHref();this._baseHref=xe(ue(O)),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(E=!1){return this.normalize(this._locationStrategy.path(E))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(E,O=""){return this.path()==this.normalize(E+Be(O))}normalize(E){return D.stripTrailingSlash(function le(D,A){return D&&A.startsWith(D)?A.substring(D.length):A}(this._baseHref,ue(E)))}prepareExternalUrl(E){return E&&"/"!==E[0]&&(E="/"+E),this._locationStrategy.prepareExternalUrl(E)}go(E,O="",re=null){this._locationStrategy.pushState(re,"",E,O),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+Be(O)),re)}replaceState(E,O="",re=null){this._locationStrategy.replaceState(re,"",E,O),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+Be(O)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(E=0){this._locationStrategy.historyGo?.(E)}onUrlChange(E){return this._urlChangeListeners.push(E),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(O=>{this._notifyUrlChangeListeners(O.url,O.state)})),()=>{const O=this._urlChangeListeners.indexOf(E);this._urlChangeListeners.splice(O,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(E="",O){this._urlChangeListeners.forEach(re=>re(E,O))}subscribe(E,O,re){return this._subject.subscribe({next:E,error:O,complete:re})}}return D.normalizeQueryParams=Be,D.joinWithSlash=Oe,D.stripTrailingSlash=xe,D.\u0275fac=function(E){return new(E||D)(m.LFG(Ie))},D.\u0275prov=m.Yz7({token:D,factory:function(){return function K(){return new x((0,m.LFG)(Ie))}()},providedIn:"root"}),D})();function ue(D){return D.replace(/\/index.html$/,"")}var ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Percent=1]="Percent",ge[ge.Currency=2]="Currency",ge[ge.Scientific=3]="Scientific",ge))(),ne=(()=>((ne=ne||{})[ne.Format=0]="Format",ne[ne.Standalone=1]="Standalone",ne))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),ve=(()=>((ve=ve||{})[ve.Short=0]="Short",ve[ve.Medium=1]="Medium",ve[ve.Long=2]="Long",ve[ve.Full=3]="Full",ve))(),_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 Ye(D,A){return _t((0,m.cg1)(D)[m.wAp.DateFormat],A)}function ye(D,A){return _t((0,m.cg1)(D)[m.wAp.TimeFormat],A)}function Fe(D,A){return _t((0,m.cg1)(D)[m.wAp.DateTimeFormat],A)}function ct(D,A){const E=(0,m.cg1)(D),O=E[m.wAp.NumberSymbols][A];if(typeof O>"u"){if(A===_e.CurrencyDecimal)return E[m.wAp.NumberSymbols][_e.Decimal];if(A===_e.CurrencyGroup)return E[m.wAp.NumberSymbols][_e.Group]}return O}function Nn(D){if(!D[m.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${D[m.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _t(D,A){for(let E=A;E>-1;E--)if(typeof D[E]<"u")return D[E];throw new Error("Locale data API: locale data undefined")}function Rn(D){const[A,E]=D.split(":");return{hours:+A,minutes:+E}}const He=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},fe=/((?:[^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 Ke=(()=>((Ke=Ke||{})[Ke.Short=0]="Short",Ke[Ke.ShortGMT=1]="ShortGMT",Ke[Ke.Long=2]="Long",Ke[Ke.Extended=3]="Extended",Ke))(),Se=(()=>((Se=Se||{})[Se.FullYear=0]="FullYear",Se[Se.Month=1]="Month",Se[Se.Date=2]="Date",Se[Se.Hours=3]="Hours",Se[Se.Minutes=4]="Minutes",Se[Se.Seconds=5]="Seconds",Se[Se.FractionalSeconds=6]="FractionalSeconds",Se[Se.Day=7]="Day",Se))(),tt=(()=>((tt=tt||{})[tt.DayPeriods=0]="DayPeriods",tt[tt.Days=1]="Days",tt[tt.Months=2]="Months",tt[tt.Eras=3]="Eras",tt))();function Gt(D,A,E,O){let re=function At(D){if(hn(D))return D;if("number"==typeof D&&!isNaN(D))return new Date(D);if("string"==typeof D){if(D=D.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(D)){const[re,Ne=1,we=1]=D.split("-").map(bt=>+bt);return $t(re,Ne-1,we)}const E=parseFloat(D);if(!isNaN(D-E))return new Date(E);let O;if(O=D.match(He))return function Kt(D){const A=new Date(0);let E=0,O=0;const re=D[8]?A.setUTCFullYear:A.setFullYear,Ne=D[8]?A.setUTCHours:A.setHours;D[9]&&(E=Number(D[9]+D[10]),O=Number(D[9]+D[11])),re.call(A,Number(D[1]),Number(D[2])-1,Number(D[3]));const we=Number(D[4]||0)-E,bt=Number(D[5]||0)-O,Sn=Number(D[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(D[7]||0)));return Ne.call(A,we,bt,Sn,Mn),A}(O)}const A=new Date(D);if(!hn(A))throw new Error(`Unable to convert "${D}" into a date`);return A}(D);A=st(E,A)||A;let bt,we=[];for(;A;){if(bt=fe.exec(A),!bt){we.push(A);break}{we=we.concat(bt.slice(1));const bn=we.pop();if(!bn)break;A=bn}}let Sn=re.getTimezoneOffset();O&&(Sn=Re(O,Sn),re=function dt(D,A,E){const O=E?-1:1,re=D.getTimezoneOffset();return function Ee(D,A){return(D=new Date(D.getTime())).setMinutes(D.getMinutes()+A),D}(D,O*(Re(A,re)-re))}(re,O,!0));let Mn="";return we.forEach(bn=>{const cn=function pe(D){if(V[D])return V[D];let A;switch(D){case"G":case"GG":case"GGG":A=Pt(tt.Eras,me.Abbreviated);break;case"GGGG":A=Pt(tt.Eras,me.Wide);break;case"GGGGG":A=Pt(tt.Eras,me.Narrow);break;case"y":A=Nt(Se.FullYear,1,0,!1,!0);break;case"yy":A=Nt(Se.FullYear,2,0,!0,!0);break;case"yyy":A=Nt(Se.FullYear,3,0,!1,!0);break;case"yyyy":A=Nt(Se.FullYear,4,0,!1,!0);break;case"Y":A=Y(1);break;case"YY":A=Y(2,!0);break;case"YYY":A=Y(3);break;case"YYYY":A=Y(4);break;case"M":case"L":A=Nt(Se.Month,1,1);break;case"MM":case"LL":A=Nt(Se.Month,2,1);break;case"MMM":A=Pt(tt.Months,me.Abbreviated);break;case"MMMM":A=Pt(tt.Months,me.Wide);break;case"MMMMM":A=Pt(tt.Months,me.Narrow);break;case"LLL":A=Pt(tt.Months,me.Abbreviated,ne.Standalone);break;case"LLLL":A=Pt(tt.Months,me.Wide,ne.Standalone);break;case"LLLLL":A=Pt(tt.Months,me.Narrow,ne.Standalone);break;case"w":A=rn(1);break;case"ww":A=rn(2);break;case"W":A=rn(1,!0);break;case"d":A=Nt(Se.Date,1);break;case"dd":A=Nt(Se.Date,2);break;case"c":case"cc":A=Nt(Se.Day,1);break;case"ccc":A=Pt(tt.Days,me.Abbreviated,ne.Standalone);break;case"cccc":A=Pt(tt.Days,me.Wide,ne.Standalone);break;case"ccccc":A=Pt(tt.Days,me.Narrow,ne.Standalone);break;case"cccccc":A=Pt(tt.Days,me.Short,ne.Standalone);break;case"E":case"EE":case"EEE":A=Pt(tt.Days,me.Abbreviated);break;case"EEEE":A=Pt(tt.Days,me.Wide);break;case"EEEEE":A=Pt(tt.Days,me.Narrow);break;case"EEEEEE":A=Pt(tt.Days,me.Short);break;case"a":case"aa":case"aaa":A=Pt(tt.DayPeriods,me.Abbreviated);break;case"aaaa":A=Pt(tt.DayPeriods,me.Wide);break;case"aaaaa":A=Pt(tt.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":A=Pt(tt.DayPeriods,me.Abbreviated,ne.Standalone,!0);break;case"bbbb":A=Pt(tt.DayPeriods,me.Wide,ne.Standalone,!0);break;case"bbbbb":A=Pt(tt.DayPeriods,me.Narrow,ne.Standalone,!0);break;case"B":case"BB":case"BBB":A=Pt(tt.DayPeriods,me.Abbreviated,ne.Format,!0);break;case"BBBB":A=Pt(tt.DayPeriods,me.Wide,ne.Format,!0);break;case"BBBBB":A=Pt(tt.DayPeriods,me.Narrow,ne.Format,!0);break;case"h":A=Nt(Se.Hours,1,-12);break;case"hh":A=Nt(Se.Hours,2,-12);break;case"H":A=Nt(Se.Hours,1);break;case"HH":A=Nt(Se.Hours,2);break;case"m":A=Nt(Se.Minutes,1);break;case"mm":A=Nt(Se.Minutes,2);break;case"s":A=Nt(Se.Seconds,1);break;case"ss":A=Nt(Se.Seconds,2);break;case"S":A=Nt(Se.FractionalSeconds,1);break;case"SS":A=Nt(Se.FractionalSeconds,2);break;case"SSS":A=Nt(Se.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":A=pt(Ke.Short);break;case"ZZZZZ":A=pt(Ke.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":A=pt(Ke.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":A=pt(Ke.Long);break;default:return null}return V[D]=A,A}(bn);Mn+=cn?cn(re,E,Sn):"''"===bn?"'":bn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function $t(D,A,E){const O=new Date(0);return O.setFullYear(D,A,E),O.setHours(0,0,0),O}function st(D,A){const E=function ut(D){return(0,m.cg1)(D)[m.wAp.LocaleId]}(D);if(se[E]=se[E]||{},se[E][A])return se[E][A];let O="";switch(A){case"shortDate":O=Ye(D,ve.Short);break;case"mediumDate":O=Ye(D,ve.Medium);break;case"longDate":O=Ye(D,ve.Long);break;case"fullDate":O=Ye(D,ve.Full);break;case"shortTime":O=ye(D,ve.Short);break;case"mediumTime":O=ye(D,ve.Medium);break;case"longTime":O=ye(D,ve.Long);break;case"fullTime":O=ye(D,ve.Full);break;case"short":const re=st(D,"shortTime"),Ne=st(D,"shortDate");O=an(Fe(D,ve.Short),[re,Ne]);break;case"medium":const we=st(D,"mediumTime"),bt=st(D,"mediumDate");O=an(Fe(D,ve.Medium),[we,bt]);break;case"long":const Sn=st(D,"longTime"),Mn=st(D,"longDate");O=an(Fe(D,ve.Long),[Sn,Mn]);break;case"full":const bn=st(D,"fullTime"),cn=st(D,"fullDate");O=an(Fe(D,ve.Full),[bn,cn])}return O&&(se[E][A]=O),O}function an(D,A){return A&&(D=D.replace(/\{([^}]+)}/g,function(E,O){return null!=A&&O in A?A[O]:E})),D}function Cn(D,A,E="-",O,re){let Ne="";(D<0||re&&D<=0)&&(re?D=1-D:(D=-D,Ne=E));let we=String(D);for(;we.length<A;)we="0"+we;return O&&(we=we.slice(we.length-A)),Ne+we}function Nt(D,A,E=0,O=!1,re=!1){return function(Ne,we){let bt=function Xt(D,A){switch(D){case Se.FullYear:return A.getFullYear();case Se.Month:return A.getMonth();case Se.Date:return A.getDate();case Se.Hours:return A.getHours();case Se.Minutes:return A.getMinutes();case Se.Seconds:return A.getSeconds();case Se.FractionalSeconds:return A.getMilliseconds();case Se.Day:return A.getDay();default:throw new Error(`Unknown DateType value "${D}".`)}}(D,Ne);if((E>0||bt>-E)&&(bt+=E),D===Se.Hours)0===bt&&-12===E&&(bt=12);else if(D===Se.FractionalSeconds)return function Jt(D,A){return Cn(D,3).substring(0,A)}(bt,A);const Sn=ct(we,_e.MinusSign);return Cn(bt,A,Sn,O,re)}}function Pt(D,A,E=ne.Format,O=!1){return function(re,Ne){return function er(D,A,E,O,re,Ne){switch(E){case tt.Months:return function lt(D,A,E){const O=(0,m.cg1)(D),Ne=_t([O[m.wAp.MonthsFormat],O[m.wAp.MonthsStandalone]],A);return _t(Ne,E)}(A,re,O)[D.getMonth()];case tt.Days:return function Bt(D,A,E){const O=(0,m.cg1)(D),Ne=_t([O[m.wAp.DaysFormat],O[m.wAp.DaysStandalone]],A);return _t(Ne,E)}(A,re,O)[D.getDay()];case tt.DayPeriods:const we=D.getHours(),bt=D.getMinutes();if(Ne){const Mn=function Un(D){const A=(0,m.cg1)(D);return Nn(A),(A[m.wAp.ExtraData][2]||[]).map(O=>"string"==typeof O?Rn(O):[Rn(O[0]),Rn(O[1])])}(A),bn=function Mt(D,A,E){const O=(0,m.cg1)(D);Nn(O);const Ne=_t([O[m.wAp.ExtraData][0],O[m.wAp.ExtraData][1]],A)||[];return _t(Ne,E)||[]}(A,re,O),cn=Mn.findIndex(Ln=>{if(Array.isArray(Ln)){const[_n,zn]=Ln,Ze=we>=_n.hours&&bt>=_n.minutes,Vt=we<zn.hours||we===zn.hours&&bt<zn.minutes;if(_n.hours<zn.hours){if(Ze&&Vt)return!0}else if(Ze||Vt)return!0}else if(Ln.hours===we&&Ln.minutes===bt)return!0;return!1});if(-1!==cn)return bn[cn]}return function qt(D,A,E){const O=(0,m.cg1)(D),Ne=_t([O[m.wAp.DayPeriodsFormat],O[m.wAp.DayPeriodsStandalone]],A);return _t(Ne,E)}(A,re,O)[we<12?0:1];case tt.Eras:return function dn(D,A){return _t((0,m.cg1)(D)[m.wAp.Eras],A)}(A,O)[D.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${E}`)}}(re,Ne,D,A,E,O)}}function pt(D){return function(A,E,O){const re=-1*O,Ne=ct(E,_e.MinusSign),we=re>0?Math.floor(re/60):Math.ceil(re/60);switch(D){case Ke.Short:return(re>=0?"+":"")+Cn(we,2,Ne)+Cn(Math.abs(re%60),2,Ne);case Ke.ShortGMT:return"GMT"+(re>=0?"+":"")+Cn(we,1,Ne);case Ke.Long:return"GMT"+(re>=0?"+":"")+Cn(we,2,Ne)+":"+Cn(Math.abs(re%60),2,Ne);case Ke.Extended:return 0===O?"Z":(re>=0?"+":"")+Cn(we,2,Ne)+":"+Cn(Math.abs(re%60),2,Ne);default:throw new Error(`Unknown zone width "${D}"`)}}}function jt(D){return $t(D.getFullYear(),D.getMonth(),D.getDate()+(4-D.getDay()))}function rn(D,A=!1){return function(E,O){let re;if(A){const Ne=new Date(E.getFullYear(),E.getMonth(),1).getDay()-1,we=E.getDate();re=1+Math.floor((we+Ne)/7)}else{const Ne=jt(E),we=function kt(D){const A=$t(D,0,1).getDay();return $t(D,0,1+(A<=4?4:11)-A)}(Ne.getFullYear()),bt=Ne.getTime()-we.getTime();re=1+Math.round(bt/6048e5)}return Cn(re,D,ct(O,_e.MinusSign))}}function Y(D,A=!1){return function(E,O){return Cn(jt(E).getFullYear(),D,ct(O,_e.MinusSign),A)}}const V={};function Re(D,A){D=D.replace(/:/g,"");const E=Date.parse("Jan 01, 1970 00:00:00 "+D)/6e4;return isNaN(E)?A:E}function hn(D){return D instanceof Date&&!isNaN(D.valueOf())}const rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Q=".",G="0";function Nr(D){const A=parseInt(D);if(isNaN(A))throw new Error("Invalid integer literal when parsing "+D);return A}function gi(D,A){A=encodeURIComponent(A);for(const E of D.split(";")){const O=E.indexOf("="),[re,Ne]=-1==O?[E,""]:[E.slice(0,O),E.slice(O+1)];if(re.trim()===A)return decodeURIComponent(Ne)}return null}let cr=(()=>{class D{constructor(E,O,re,Ne){this._iterableDiffers=E,this._keyValueDiffers=O,this._ngEl=re,this._renderer=Ne,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(E){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof E?E.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(E){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof E?E.split(/\s+/):E,this._rawClass&&((0,m.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const E=this._iterableDiffer.diff(this._rawClass);E&&this._applyIterableChanges(E)}else if(this._keyValueDiffer){const E=this._keyValueDiffer.diff(this._rawClass);E&&this._applyKeyValueChanges(E)}}_applyKeyValueChanges(E){E.forEachAddedItem(O=>this._toggleClass(O.key,O.currentValue)),E.forEachChangedItem(O=>this._toggleClass(O.key,O.currentValue)),E.forEachRemovedItem(O=>{O.previousValue&&this._toggleClass(O.key,!1)})}_applyIterableChanges(E){E.forEachAddedItem(O=>{if("string"!=typeof O.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,m.AaK)(O.item)}`);this._toggleClass(O.item,!0)}),E.forEachRemovedItem(O=>this._toggleClass(O.item,!1))}_applyClasses(E){E&&(Array.isArray(E)||E instanceof Set?E.forEach(O=>this._toggleClass(O,!0)):Object.keys(E).forEach(O=>this._toggleClass(O,!!E[O])))}_removeClasses(E){E&&(Array.isArray(E)||E instanceof Set?E.forEach(O=>this._toggleClass(O,!1)):Object.keys(E).forEach(O=>this._toggleClass(O,!1)))}_toggleClass(E,O){(E=E.trim())&&E.split(/\s+/g).forEach(re=>{O?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.ZZ4),m.Y36(m.aQg),m.Y36(m.SBq),m.Y36(m.Qsj))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),D})(),rr=(()=>{class D{constructor(E){this._viewContainerRef=E,this.ngComponentOutlet=null}ngOnChanges(E){const{_viewContainerRef:O,ngComponentOutletNgModule:re,ngComponentOutletNgModuleFactory:Ne}=this;if(O.clear(),this._componentRef=void 0,this.ngComponentOutlet){const we=this.ngComponentOutletInjector||O.parentInjector;(E.ngComponentOutletNgModule||E.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=re?(0,m.hM9)(re,mi(we)):Ne?Ne.create(mi(we)):void 0),this._componentRef=O.createComponent(this.ngComponentOutlet,{index:O.length,injector:we,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[m.TTD]}),D})();function mi(D){return D.get(m.h0i).injector}class ei{constructor(A,E,O,re){this.$implicit=A,this.ngForOf=E,this.index=O,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 tr=(()=>{class D{constructor(E,O,re){this._viewContainer=E,this._template=O,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(E){this._ngForOf=E,this._ngForOfDirty=!0}set ngForTrackBy(E){this._trackByFn=E}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(E){E&&(this._template=E)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const E=this._ngForOf;!this._differ&&E&&(this._differ=this._differs.find(E).create(this.ngForTrackBy))}if(this._differ){const E=this._differ.diff(this._ngForOf);E&&this._applyChanges(E)}}_applyChanges(E){const O=this._viewContainer;E.forEachOperation((re,Ne,we)=>{if(null==re.previousIndex)O.createEmbeddedView(this._template,new ei(re.item,this._ngForOf,-1,-1),null===we?void 0:we);else if(null==we)O.remove(null===Ne?void 0:Ne);else if(null!==Ne){const bt=O.get(Ne);O.move(bt,we),An(bt,re)}});for(let re=0,Ne=O.length;re<Ne;re++){const bt=O.get(re).context;bt.index=re,bt.count=Ne,bt.ngForOf=this._ngForOf}E.forEachIdentityChange(re=>{An(O.get(re.currentIndex),re)})}static ngTemplateContextGuard(E,O){return!0}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(m.ZZ4))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),D})();function An(D,A){D.context.$implicit=A.item}let xn=(()=>{class D{constructor(E,O){this._viewContainer=E,this._context=new $n,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=O}set ngIf(E){this._context.$implicit=this._context.ngIf=E,this._updateView()}set ngIfThen(E){Hr("ngIfThen",E),this._thenTemplateRef=E,this._thenViewRef=null,this._updateView()}set ngIfElse(E){Hr("ngIfElse",E),this._elseTemplateRef=E,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(E,O){return!0}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),D})();class $n{constructor(){this.$implicit=null,this.ngIf=null}}function Hr(D,A){if(A&&!A.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,m.AaK)(A)}'.`)}class br{constructor(A,E){this._viewContainerRef=A,this._templateRef=E,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 Fr=(()=>{class D{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(E){this._ngSwitch=E,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(E){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(E)}_matchCase(E){const O=E==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||O,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),O}_updateDefaultCases(E){if(this._defaultViews&&E!==this._defaultUsed){this._defaultUsed=E;for(let O=0;O<this._defaultViews.length;O++)this._defaultViews[O].enforceState(E)}}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275dir=m.lG2({type:D,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),D})(),ir=(()=>{class D{constructor(E,O,re){this.ngSwitch=re,re._addCase(),this._view=new br(E,O)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(Fr,9))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),D})(),sr=(()=>{class D{constructor(E,O,re){re._addDefault(new br(E,O))}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b),m.Y36(m.Rgc),m.Y36(Fr,9))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngSwitchDefault",""]]}),D})(),Ur=(()=>{class D{constructor(E,O,re){this._ngEl=E,this._differs=O,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(E){this._ngStyle=E,!this._differ&&E&&(this._differ=this._differs.find(E).create())}ngDoCheck(){if(this._differ){const E=this._differ.diff(this._ngStyle);E&&this._applyChanges(E)}}_setStyle(E,O){const[re,Ne]=E.split("."),we=-1===re.indexOf("-")?void 0:m.JOm.DashCase;null!=O?this._renderer.setStyle(this._ngEl.nativeElement,re,Ne?`${O}${Ne}`:O,we):this._renderer.removeStyle(this._ngEl.nativeElement,re,we)}_applyChanges(E){E.forEachRemovedItem(O=>this._setStyle(O.key,null)),E.forEachAddedItem(O=>this._setStyle(O.key,O.currentValue)),E.forEachChangedItem(O=>this._setStyle(O.key,O.currentValue))}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.SBq),m.Y36(m.aQg),m.Y36(m.Qsj))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),D})(),Ii=(()=>{class D{constructor(E){this._viewContainerRef=E,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(E){if(E.ngTemplateOutlet||E.ngTemplateOutletInjector){const O=this._viewContainerRef;if(this._viewRef&&O.remove(O.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:re,ngTemplateOutletContext:Ne,ngTemplateOutletInjector:we}=this;this._viewRef=O.createEmbeddedView(re,Ne,we?{injector:we}:void 0)}else this._viewRef=null}else this._viewRef&&E.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.s_b))},D.\u0275dir=m.lG2({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[m.TTD]}),D})();function Qn(D,A){return new m.vHH(2100,!1)}class Lr{createSubscription(A,E){return A.subscribe({next:E,error:O=>{throw O}})}dispose(A){A.unsubscribe()}}class vi{createSubscription(A,E){return A.then(E,O=>{throw O})}dispose(A){}}const Ji=new vi,Ir=new Lr;let mr=(()=>{class D{constructor(E){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=E}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(E){return this._obj?E!==this._obj?(this._dispose(),this.transform(E)):this._latestValue:(E&&this._subscribe(E),this._latestValue)}_subscribe(E){this._obj=E,this._strategy=this._selectStrategy(E),this._subscription=this._strategy.createSubscription(E,O=>this._updateLatestValue(E,O))}_selectStrategy(E){if((0,m.QGY)(E))return Ji;if((0,m.F4k)(E))return Ir;throw Qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(E,O){E===this._obj&&(this._latestValue=O,this._ref.markForCheck())}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.sBO,16))},D.\u0275pipe=m.Yjl({name:"async",type:D,pure:!1}),D})();const Wr=new m.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ni=(()=>{class D{constructor(E,O){this.locale=E,this.defaultTimezone=O}transform(E,O="mediumDate",re,Ne){if(null==E||""===E||E!=E)return null;try{return Gt(E,O,Ne||this.locale,re??this.defaultTimezone??void 0)}catch(we){throw Qn()}}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.soG,16),m.Y36(Wr,24))},D.\u0275pipe=m.Yjl({name:"date",type:D,pure:!0}),D})(),ts=(()=>{class D{transform(E){return JSON.stringify(E,null,2)}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275pipe=m.Yjl({name:"json",type:D,pure:!1}),D})(),Mr=(()=>{class D{constructor(E){this._locale=E}transform(E,O,re){if(!function ri(D){return!(null==D||""===D||D!=D)}(E))return null;re=re||this._locale;try{return function xr(D,A,E){return function mn(D,A,E,O,re,Ne,we=!1){let bt="",Sn=!1;if(isFinite(D)){let Mn=function kn(D){let O,re,Ne,we,bt,A=Math.abs(D)+"",E=0;for((re=A.indexOf(Q))>-1&&(A=A.replace(Q,"")),(Ne=A.search(/e/i))>0?(re<0&&(re=Ne),re+=+A.slice(Ne+1),A=A.substring(0,Ne)):re<0&&(re=A.length),Ne=0;A.charAt(Ne)===G;Ne++);if(Ne===(bt=A.length))O=[0],re=1;else{for(bt--;A.charAt(bt)===G;)bt--;for(re-=Ne,O=[],we=0;Ne<=bt;Ne++,we++)O[we]=Number(A.charAt(Ne))}return re>22&&(O=O.splice(0,21),E=re-1,re=1),{digits:O,exponent:E,integerLen:re}}(D);we&&(Mn=function gr(D){if(0===D.digits[0])return D;const A=D.digits.length-D.integerLen;return D.exponent?D.exponent+=2:(0===A?D.digits.push(0,0):1===A&&D.digits.push(0),D.integerLen+=2),D}(Mn));let bn=A.minInt,cn=A.minFrac,Ln=A.maxFrac;if(Ne){const Or=Ne.match(rt);if(null===Or)throw new Error(`${Ne} is not a valid digit info`);const Bn=Or[1],oi=Or[3],ai=Or[5];null!=Bn&&(bn=Nr(Bn)),null!=oi&&(cn=Nr(oi)),null!=ai?Ln=Nr(ai):null!=oi&&cn>Ln&&(Ln=cn)}!function Xr(D,A,E){if(A>E)throw new Error(`The minimum number of digits after fraction (${A}) is higher than the maximum (${E}).`);let O=D.digits,re=O.length-D.integerLen;const Ne=Math.min(Math.max(A,re),E);let we=Ne+D.integerLen,bt=O[we];if(we>0){O.splice(Math.max(D.integerLen,we));for(let cn=we;cn<O.length;cn++)O[cn]=0}else{re=Math.max(0,re),D.integerLen=1,O.length=Math.max(1,we=Ne+1),O[0]=0;for(let cn=1;cn<we;cn++)O[cn]=0}if(bt>=5)if(we-1<0){for(let cn=0;cn>we;cn--)O.unshift(0),D.integerLen++;O.unshift(1),D.integerLen++}else O[we-1]++;for(;re<Math.max(0,Ne);re++)O.push(0);let Sn=0!==Ne;const Mn=A+D.integerLen,bn=O.reduceRight(function(cn,Ln,_n,zn){return zn[_n]=(Ln+=cn)<10?Ln:Ln-10,Sn&&(0===zn[_n]&&_n>=Mn?zn.pop():Sn=!1),Ln>=10?1:0},0);bn&&(O.unshift(bn),D.integerLen++)}(Mn,cn,Ln);let _n=Mn.digits,zn=Mn.integerLen;const Ze=Mn.exponent;let Vt=[];for(Sn=_n.every(Or=>!Or);zn<bn;zn++)_n.unshift(0);for(;zn<0;zn++)_n.unshift(0);zn>0?Vt=_n.splice(zn,_n.length):(Vt=_n,_n=[0]);const si=[];for(_n.length>=A.lgSize&&si.unshift(_n.splice(-A.lgSize,_n.length).join(""));_n.length>A.gSize;)si.unshift(_n.splice(-A.gSize,_n.length).join(""));_n.length&&si.unshift(_n.join("")),bt=si.join(ct(E,O)),Vt.length&&(bt+=ct(E,re)+Vt.join("")),Ze&&(bt+=ct(E,_e.Exponential)+"+"+Ze)}else bt=ct(E,_e.Infinity);return bt=D<0&&!Sn?A.negPre+bt+A.negSuf:A.posPre+bt+A.posSuf,bt}(D,function zr(D,A="-"){const E={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},O=D.split(";"),re=O[0],Ne=O[1],we=-1!==re.indexOf(Q)?re.split(Q):[re.substring(0,re.lastIndexOf(G)+1),re.substring(re.lastIndexOf(G)+1)],bt=we[0],Sn=we[1]||"";E.posPre=bt.substring(0,bt.indexOf("#"));for(let bn=0;bn<Sn.length;bn++){const cn=Sn.charAt(bn);cn===G?E.minFrac=E.maxFrac=bn+1:"#"===cn?E.maxFrac=bn+1:E.posSuf+=cn}const Mn=bt.split(",");if(E.gSize=Mn[1]?Mn[1].length:0,E.lgSize=Mn[2]||Mn[1]?(Mn[2]||Mn[1]).length:0,Ne){const bn=re.length-E.posPre.length-E.posSuf.length,cn=Ne.indexOf("#");E.negPre=Ne.substring(0,cn).replace(/'/g,""),E.negSuf=Ne.slice(cn+bn).replace(/'/g,"")}else E.negPre=A+E.posPre,E.negSuf=E.posSuf;return E}(function Tt(D,A){return(0,m.cg1)(D)[m.wAp.NumberFormats][A]}(A,ge.Decimal),ct(A,_e.MinusSign)),A,_e.Group,_e.Decimal,E)}(function ii(D){if("string"==typeof D&&!isNaN(Number(D)-parseFloat(D)))return Number(D);if("number"!=typeof D)throw new Error(`${D} is not a number`);return D}(E),re,O)}catch(Ne){throw Qn()}}}return D.\u0275fac=function(E){return new(E||D)(m.Y36(m.soG,16))},D.\u0275pipe=m.Yjl({name:"number",type:D,pure:!0}),D})();let Ei=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=m.oAB({type:D}),D.\u0275inj=m.cJS({}),D})();const Z="browser";function nt(D){return D===Z}function ft(D){return"server"===D}let Kn=(()=>{class D{}return D.\u0275prov=(0,m.Yz7)({token:D,providedIn:"root",factory:()=>new Dn((0,m.LFG)(ee),window)}),D})();class Dn{constructor(A,E){this.document=A,this.window=E,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 E=function jr(D,A){const E=D.getElementById(A)||D.getElementsByName(A)[0];if(E)return E;if("function"==typeof D.createTreeWalker&&D.body&&(D.body.createShadowRoot||D.body.attachShadow)){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let re=O.currentNode;for(;re;){const Ne=re.shadowRoot;if(Ne){const we=Ne.getElementById(A)||Ne.querySelector(`[name="${A}"]`);if(we)return we}re=O.nextNode()}}return null}(this.document,A);E&&(this.scrollToElement(E),E.focus())}setHistoryScrollRestoration(A){if(this.supportScrollRestoration()){const E=this.window.history;E&&E.scrollRestoration&&(E.scrollRestoration=A)}}scrollToElement(A){const E=A.getBoundingClientRect(),O=E.left+this.window.pageXOffset,re=E.top+this.window.pageYOffset,Ne=this.offset();this.window.scrollTo(O-Ne[0],re-Ne[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const A=Pr(this.window.history)||Pr(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 Pr(D){return Object.getOwnPropertyDescriptor(D,"scrollRestoration")}class qn{}},529:(it,De,b)=>{b.d(De,{JF:()=>St,TP:()=>ut,eN:()=>_e});var m=b(6895),c=b(4650),F=b(9646),z=b(8306),U=b(4351),J=b(9300),ee=b(4004);class ie{}class te{}class R{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(fe=>{const Ke=fe.indexOf(":");if(Ke>0){const Se=fe.slice(0,Ke),tt=Se.toLowerCase(),Gt=fe.slice(Ke+1).trim();this.maybeSetNormalizedName(Se,tt),this.headers.has(tt)?this.headers.get(tt).push(Gt):this.headers.set(tt,[Gt])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(fe=>{let Ke=se[fe];const Se=fe.toLowerCase();"string"==typeof Ke&&(Ke=[Ke]),Ke.length>0&&(this.headers.set(Se,Ke),this.maybeSetNormalizedName(fe,Se))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const fe=this.headers.get(se.toLowerCase());return fe&&fe.length>0?fe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,fe){return this.clone({name:se,value:fe,op:"a"})}set(se,fe){return this.clone({name:se,value:fe,op:"s"})}delete(se,fe){return this.clone({name:se,value:fe,op:"d"})}maybeSetNormalizedName(se,fe){this.normalizedNames.has(fe)||this.normalizedNames.set(fe,se)}init(){this.lazyInit&&(this.lazyInit instanceof R?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(fe=>{this.headers.set(fe,se.headers.get(fe)),this.normalizedNames.set(fe,se.normalizedNames.get(fe))})}clone(se){const fe=new R;return fe.lazyInit=this.lazyInit&&this.lazyInit instanceof R?this.lazyInit:this,fe.lazyUpdate=(this.lazyUpdate||[]).concat([se]),fe}applyUpdate(se){const fe=se.name.toLowerCase();switch(se.op){case"a":case"s":let Ke=se.value;if("string"==typeof Ke&&(Ke=[Ke]),0===Ke.length)return;this.maybeSetNormalizedName(se.name,fe);const Se=("a"===se.op?this.headers.get(fe):void 0)||[];Se.push(...Ke),this.headers.set(fe,Se);break;case"d":const tt=se.value;if(tt){let Gt=this.headers.get(fe);if(!Gt)return;Gt=Gt.filter($t=>-1===tt.indexOf($t)),0===Gt.length?(this.headers.delete(fe),this.normalizedNames.delete(fe)):this.headers.set(fe,Gt)}else this.headers.delete(fe),this.normalizedNames.delete(fe)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(fe=>se(this.normalizedNames.get(fe),this.headers.get(fe)))}}class L{encodeKey(se){return xe(se)}encodeValue(se){return xe(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const je=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xe(He){return encodeURIComponent(He).replace(je,(se,fe)=>Oe[fe]??se)}function Be(He){return`${He}`}class Ie{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new L,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(He,se){const fe=new Map;return He.length>0&&He.replace(/^\?/,"").split("&").forEach(Se=>{const tt=Se.indexOf("="),[Gt,$t]=-1==tt?[se.decodeKey(Se),""]:[se.decodeKey(Se.slice(0,tt)),se.decodeValue(Se.slice(tt+1))],st=fe.get(Gt)||[];st.push($t),fe.set(Gt,st)}),fe}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(fe=>{const Ke=se.fromObject[fe],Se=Array.isArray(Ke)?Ke.map(Be):[Be(Ke)];this.map.set(fe,Se)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const fe=this.map.get(se);return fe?fe[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,fe){return this.clone({param:se,value:fe,op:"a"})}appendAll(se){const fe=[];return Object.keys(se).forEach(Ke=>{const Se=se[Ke];Array.isArray(Se)?Se.forEach(tt=>{fe.push({param:Ke,value:tt,op:"a"})}):fe.push({param:Ke,value:Se,op:"a"})}),this.clone(fe)}set(se,fe){return this.clone({param:se,value:fe,op:"s"})}delete(se,fe){return this.clone({param:se,value:fe,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const fe=this.encoder.encodeKey(se);return this.map.get(se).map(Ke=>fe+"="+this.encoder.encodeValue(Ke)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const fe=new Ie({encoder:this.encoder});return fe.cloneFrom=this.cloneFrom||this,fe.updates=(this.updates||[]).concat(se),fe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const fe=("a"===se.op?this.map.get(se.param):void 0)||[];fe.push(Be(se.value)),this.map.set(se.param,fe);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let Ke=this.map.get(se.param)||[];const Se=Ke.indexOf(Be(se.value));-1!==Se&&Ke.splice(Se,1),Ke.length>0?this.map.set(se.param,Ke):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(se,fe){return this.map.set(se,fe),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Ce(He){return typeof ArrayBuffer<"u"&&He instanceof ArrayBuffer}function x(He){return typeof Blob<"u"&&He instanceof Blob}function K(He){return typeof FormData<"u"&&He instanceof FormData}class ue{constructor(se,fe,Ke,Se){let tt;if(this.url=fe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function ke(He){switch(He){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==Ke?Ke:null,tt=Se):tt=Ke,tt&&(this.reportProgress=!!tt.reportProgress,this.withCredentials=!!tt.withCredentials,tt.responseType&&(this.responseType=tt.responseType),tt.headers&&(this.headers=tt.headers),tt.context&&(this.context=tt.context),tt.params&&(this.params=tt.params)),this.headers||(this.headers=new R),this.context||(this.context=new Je),this.params){const Gt=this.params.toString();if(0===Gt.length)this.urlWithParams=fe;else{const $t=fe.indexOf("?");this.urlWithParams=fe+(-1===$t?"?":$t<fe.length-1?"&":"")+Gt}}else this.params=new Ie,this.urlWithParams=fe}serializeBody(){return null===this.body?null:Ce(this.body)||x(this.body)||K(this.body)||function le(He){return typeof URLSearchParams<"u"&&He instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ie?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||K(this.body)?null:x(this.body)?this.body.type||null:Ce(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ie?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(se={}){const fe=se.method||this.method,Ke=se.url||this.url,Se=se.responseType||this.responseType,tt=void 0!==se.body?se.body:this.body,Gt=void 0!==se.withCredentials?se.withCredentials:this.withCredentials,$t=void 0!==se.reportProgress?se.reportProgress:this.reportProgress;let st=se.headers||this.headers,an=se.params||this.params;const Cn=se.context??this.context;return void 0!==se.setHeaders&&(st=Object.keys(se.setHeaders).reduce((Jt,Nt)=>Jt.set(Nt,se.setHeaders[Nt]),st)),se.setParams&&(an=Object.keys(se.setParams).reduce((Jt,Nt)=>Jt.set(Nt,se.setParams[Nt]),an)),new ue(fe,Ke,tt,{params:an,headers:st,context:Cn,reportProgress:$t,responseType:Se,withCredentials:Gt})}}var W=(()=>((W=W||{})[W.Sent=0]="Sent",W[W.UploadProgress=1]="UploadProgress",W[W.ResponseHeader=2]="ResponseHeader",W[W.DownloadProgress=3]="DownloadProgress",W[W.Response=4]="Response",W[W.User=5]="User",W))();class ge{constructor(se,fe=200,Ke="OK"){this.headers=se.headers||new R,this.status=void 0!==se.status?se.status:fe,this.statusText=se.statusText||Ke,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class H extends ge{constructor(se={}){super(se),this.type=W.ResponseHeader}clone(se={}){return new H({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ne extends ge{constructor(se={}){super(se),this.type=W.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new ne({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class me extends ge{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function ve(He,se){return{body:se,headers:He.headers,context:He.context,observe:He.observe,params:He.params,reportProgress:He.reportProgress,responseType:He.responseType,withCredentials:He.withCredentials}}let _e=(()=>{class He{constructor(fe){this.handler=fe}request(fe,Ke,Se={}){let tt;if(fe instanceof ue)tt=fe;else{let st,an;st=Se.headers instanceof R?Se.headers:new R(Se.headers),Se.params&&(an=Se.params instanceof Ie?Se.params:new Ie({fromObject:Se.params})),tt=new ue(fe,Ke,void 0!==Se.body?Se.body:null,{headers:st,context:Se.context,params:an,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const Gt=(0,F.of)(tt).pipe((0,U.b)(st=>this.handler.handle(st)));if(fe instanceof ue||"events"===Se.observe)return Gt;const $t=Gt.pipe((0,J.h)(st=>st instanceof ne));switch(Se.observe||"body"){case"body":switch(tt.responseType){case"arraybuffer":return $t.pipe((0,ee.U)(st=>{if(null!==st.body&&!(st.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return st.body}));case"blob":return $t.pipe((0,ee.U)(st=>{if(null!==st.body&&!(st.body instanceof Blob))throw new Error("Response is not a Blob.");return st.body}));case"text":return $t.pipe((0,ee.U)(st=>{if(null!==st.body&&"string"!=typeof st.body)throw new Error("Response is not a string.");return st.body}));default:return $t.pipe((0,ee.U)(st=>st.body))}case"response":return $t;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete(fe,Ke={}){return this.request("DELETE",fe,Ke)}get(fe,Ke={}){return this.request("GET",fe,Ke)}head(fe,Ke={}){return this.request("HEAD",fe,Ke)}jsonp(fe,Ke){return this.request("JSONP",fe,{params:(new Ie).append(Ke,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(fe,Ke={}){return this.request("OPTIONS",fe,Ke)}patch(fe,Ke,Se={}){return this.request("PATCH",fe,ve(Se,Ke))}post(fe,Ke,Se={}){return this.request("POST",fe,ve(Se,Ke))}put(fe,Ke,Se={}){return this.request("PUT",fe,ve(Se,Ke))}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(ie))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})();class Ve{constructor(se,fe){this.next=se,this.interceptor=fe}handle(se){return this.interceptor.intercept(se,this.next)}}const ut=new c.OlP("HTTP_INTERCEPTORS");let qt=(()=>{class He{intercept(fe,Ke){return Ke.handle(fe)}}return He.\u0275fac=function(fe){return new(fe||He)},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})();const Tt=/^\)\]\}',?\n/;let vn=(()=>{class He{constructor(fe){this.xhrFactory=fe}handle(fe){if("JSONP"===fe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new z.y(Ke=>{const Se=this.xhrFactory.build();if(Se.open(fe.method,fe.urlWithParams),fe.withCredentials&&(Se.withCredentials=!0),fe.headers.forEach((Xt,Pt)=>Se.setRequestHeader(Xt,Pt.join(","))),fe.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!fe.headers.has("Content-Type")){const Xt=fe.detectContentTypeHeader();null!==Xt&&Se.setRequestHeader("Content-Type",Xt)}if(fe.responseType){const Xt=fe.responseType.toLowerCase();Se.responseType="json"!==Xt?Xt:"text"}const tt=fe.serializeBody();let Gt=null;const $t=()=>{if(null!==Gt)return Gt;const Xt=Se.statusText||"OK",Pt=new R(Se.getAllResponseHeaders()),er=function nn(He){return"responseURL"in He&&He.responseURL?He.responseURL:/^X-Request-URL:/m.test(He.getAllResponseHeaders())?He.getResponseHeader("X-Request-URL"):null}(Se)||fe.url;return Gt=new H({headers:Pt,status:Se.status,statusText:Xt,url:er}),Gt},st=()=>{let{headers:Xt,status:Pt,statusText:er,url:pt}=$t(),Ge=null;204!==Pt&&(Ge=typeof Se.response>"u"?Se.responseText:Se.response),0===Pt&&(Pt=Ge?200:0);let gt=Pt>=200&&Pt<300;if("json"===fe.responseType&&"string"==typeof Ge){const kt=Ge;Ge=Ge.replace(Tt,"");try{Ge=""!==Ge?JSON.parse(Ge):null}catch(jt){Ge=kt,gt&&(gt=!1,Ge={error:jt,text:Ge})}}gt?(Ke.next(new ne({body:Ge,headers:Xt,status:Pt,statusText:er,url:pt||void 0})),Ke.complete()):Ke.error(new me({error:Ge,headers:Xt,status:Pt,statusText:er,url:pt||void 0}))},an=Xt=>{const{url:Pt}=$t(),er=new me({error:Xt,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:Pt||void 0});Ke.error(er)};let Cn=!1;const Jt=Xt=>{Cn||(Ke.next($t()),Cn=!0);let Pt={type:W.DownloadProgress,loaded:Xt.loaded};Xt.lengthComputable&&(Pt.total=Xt.total),"text"===fe.responseType&&!!Se.responseText&&(Pt.partialText=Se.responseText),Ke.next(Pt)},Nt=Xt=>{let Pt={type:W.UploadProgress,loaded:Xt.loaded};Xt.lengthComputable&&(Pt.total=Xt.total),Ke.next(Pt)};return Se.addEventListener("load",st),Se.addEventListener("error",an),Se.addEventListener("timeout",an),Se.addEventListener("abort",an),fe.reportProgress&&(Se.addEventListener("progress",Jt),null!==tt&&Se.upload&&Se.upload.addEventListener("progress",Nt)),Se.send(tt),Ke.next({type:W.Sent}),()=>{Se.removeEventListener("error",an),Se.removeEventListener("abort",an),Se.removeEventListener("load",st),Se.removeEventListener("timeout",an),fe.reportProgress&&(Se.removeEventListener("progress",Jt),null!==tt&&Se.upload&&Se.upload.removeEventListener("progress",Nt)),Se.readyState!==Se.DONE&&Se.abort()}})}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(m.JF))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})();const Wn=new c.OlP("XSRF_COOKIE_NAME"),In=new c.OlP("XSRF_HEADER_NAME");class jn{}let Nn=(()=>{class He{constructor(fe,Ke,Se){this.doc=fe,this.platform=Ke,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const fe=this.doc.cookie||"";return fe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,m.Mx)(fe,this.cookieName),this.lastCookieString=fe),this.lastToken}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(m.K0),c.LFG(c.Lbi),c.LFG(Wn))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})(),Un=(()=>{class He{constructor(fe,Ke){this.tokenService=fe,this.headerName=Ke}intercept(fe,Ke){const Se=fe.url.toLowerCase();if("GET"===fe.method||"HEAD"===fe.method||Se.startsWith("http://")||Se.startsWith("https://"))return Ke.handle(fe);const tt=this.tokenService.getToken();return null!==tt&&!fe.headers.has(this.headerName)&&(fe=fe.clone({headers:fe.headers.set(this.headerName,tt)})),Ke.handle(fe)}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(jn),c.LFG(In))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})(),Mt=(()=>{class He{constructor(fe,Ke){this.backend=fe,this.injector=Ke,this.chain=null}handle(fe){if(null===this.chain){const Ke=this.injector.get(ut,[]);this.chain=Ke.reduceRight((Se,tt)=>new Ve(Se,tt),this.backend)}return this.chain.handle(fe)}}return He.\u0275fac=function(fe){return new(fe||He)(c.LFG(te),c.LFG(c.zs3))},He.\u0275prov=c.Yz7({token:He,factory:He.\u0275fac}),He})(),Rn=(()=>{class He{static disable(){return{ngModule:He,providers:[{provide:Un,useClass:qt}]}}static withOptions(fe={}){return{ngModule:He,providers:[fe.cookieName?{provide:Wn,useValue:fe.cookieName}:[],fe.headerName?{provide:In,useValue:fe.headerName}:[]]}}}return He.\u0275fac=function(fe){return new(fe||He)},He.\u0275mod=c.oAB({type:He}),He.\u0275inj=c.cJS({providers:[Un,{provide:ut,useExisting:Un,multi:!0},{provide:jn,useClass:Nn},{provide:Wn,useValue:"XSRF-TOKEN"},{provide:In,useValue:"X-XSRF-TOKEN"}]}),He})(),St=(()=>{class He{}return He.\u0275fac=function(fe){return new(fe||He)},He.\u0275mod=c.oAB({type:He}),He.\u0275inj=c.cJS({providers:[_e,{provide:ie,useClass:Mt},vn,{provide:te,useExisting:vn}],imports:[Rn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),He})()},4650:(it,De,b)=>{b.d(De,{$8M:()=>q,$Z:()=>Lf,AFp:()=>nm,ALo:()=>Eg,AaK:()=>ie,AsE:()=>Cc,BQk:()=>Tl,CHM:()=>si,CRH:()=>Rg,CZH:()=>Bl,CqO:()=>Mh,D6c:()=>OC,DdM:()=>cg,EJc:()=>WE,EiD:()=>Nd,EpF:()=>Ih,F$t:()=>Nh,F4k:()=>Ah,FYo:()=>Xp,FiY:()=>Xe,G48:()=>hC,Gf:()=>Pg,GfV:()=>eg,GkF:()=>dc,Gpc:()=>L,Gre:()=>dp,Hsn:()=>kh,Ikx:()=>bc,JOm:()=>Bs,JVY:()=>Gm,KtG:()=>Or,L6k:()=>Km,LAX:()=>Ym,LFG:()=>hr,LSH:()=>tu,Lbi:()=>UE,MAs:()=>Sh,MMx:()=>Fc,NdJ:()=>hc,O4$:()=>Ys,OlP:()=>u,Oqu:()=>Ec,PXZ:()=>oC,Q6J:()=>lc,QGY:()=>fc,QP$:()=>wa,QbO:()=>$E,Qsj:()=>x0,R0b:()=>Li,RDi:()=>Lm,Rgc:()=>Xa,SBq:()=>Ya,Sil:()=>KE,Suo:()=>Og,TTD:()=>Br,TgZ:()=>Cl,Tol:()=>Qh,Udp:()=>vc,VKq:()=>dg,W1O:()=>Fg,WFA:()=>pc,WLB:()=>fg,X6Q:()=>fC,XFs:()=>Mt,Xpm:()=>pt,Xts:()=>Du,Y36:()=>oa,YKP:()=>qp,YNc:()=>Th,Yjl:()=>Re,Yz7:()=>Ye,ZZ4:()=>od,_Bn:()=>Yp,_UZ:()=>cc,_Vd:()=>Za,_c5:()=>MC,_uU:()=>rp,aQg:()=>ad,c2e:()=>VE,cJS:()=>Fe,cg1:()=>Tc,d8E:()=>wc,dDg:()=>nC,deG:()=>y,dqk:()=>Se,eBb:()=>Zm,eFA:()=>gm,ekj:()=>_c,eoX:()=>fm,f3M:()=>Gl,g9A:()=>im,h0i:()=>$o,hGG:()=>PC,hM9:()=>U0,hYB:()=>yc,hij:()=>Il,iGM:()=>Mg,ifc:()=>Ke,ip1:()=>tm,kEZ:()=>hg,kL8:()=>Ep,kcU:()=>Gi,l5B:()=>pg,lG2:()=>pe,lcZ:()=>Cg,lqb:()=>ra,lri:()=>cm,mCW:()=>xa,n5z:()=>p,n_E:()=>xl,oAB:()=>rn,oJD:()=>kd,oxw:()=>xh,pB0:()=>Qm,q3G:()=>Er,q4F:()=>tg,qLn:()=>Fa,qOj:()=>ic,qZA:()=>bl,qbA:()=>gg,qzn:()=>ea,rWj:()=>dm,s9C:()=>gc,sBO:()=>pC,sIi:()=>Ua,s_b:()=>kl,soG:()=>jl,tb:()=>sm,tp0:()=>Ft,uIk:()=>ac,vHH:()=>xe,vpe:()=>zs,wAp:()=>Wt,xi3:()=>bg,xp6:()=>mf,ynx:()=>wl,z2F:()=>Hl,z3N:()=>lo,zSh:()=>wu,zs3:()=>js});var m=b(7579),c=b(727),F=b(8306),z=b(6451),U=b(3099);function J(e){for(let t in e)if(e[t]===J)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 ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).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 te(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const R=J({__forward_ref__:J});function L(e){return e.__forward_ref__=L,e.toString=function(){return ie(this())},e}function de(e){return je(e)?e():e}function je(e){return"function"==typeof e&&e.hasOwnProperty(R)&&e.__forward_ref__===L}class xe extends Error{constructor(t,n){super(function Be(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function Ie(e){return"string"==typeof e?e:null==e?"":String(e)}function x(e,t){throw new xe(-201,!1)}function Bt(e,t){null==e&&function lt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Ye(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Fe(e){return{providers:e.providers||[],imports:e.imports||[]}}function ct(e){return Tt(e,In)||Tt(e,Nn)}function Tt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wn(e){return e&&(e.hasOwnProperty(jn)||e.hasOwnProperty(Un))?e[jn]:null}const In=J({\u0275prov:J}),jn=J({\u0275inj:J}),Nn=J({ngInjectableDef:J}),Un=J({ngInjectorDef:J});var Mt=(()=>((Mt=Mt||{})[Mt.Default=0]="Default",Mt[Mt.Host=1]="Host",Mt[Mt.Self=2]="Self",Mt[Mt.SkipSelf=4]="SkipSelf",Mt[Mt.Optional=8]="Optional",Mt))();let Hn;function Rn(e){const t=Hn;return Hn=e,t}function St(e,t,n){const r=ct(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Mt.Optional?null:void 0!==t?t:void x(ie(e))}function wn(e){return{toString:e}.toString()}var He=(()=>((He=He||{})[He.OnPush=0]="OnPush",He[He.Default=1]="Default",He))(),Ke=(()=>{return(e=Ke||(Ke={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ke;var e})();const Se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),$t={},st=[],an=J({\u0275cmp:J}),Cn=J({\u0275dir:J}),Jt=J({\u0275pipe:J}),Nt=J({\u0275mod:J}),Xt=J({\u0275fac:J}),Pt=J({__NG_ELEMENT_ID__:J});let er=0;function pt(e){return wn(()=>{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===He.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||st,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ke.Emulated,id:"c"+er++,styles:e.styles||st,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.dependencies,l=e.features;return i.inputs=V(e.inputs,r),i.outputs=V(e.outputs),l&&l.forEach(h=>h(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(gt).filter(kt):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(At).filter(kt):null,i})}function gt(e){return Ee(e)||dt(e)}function kt(e){return null!==e}const jt={};function rn(e){return wn(()=>{const t={type:e.type,bootstrap:e.bootstrap||st,declarations:e.declarations||st,imports:e.imports||st,exports:e.exports||st,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(jt[e.id]=e.type),t})}function V(e,t){if(null==e)return $t;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const pe=pt;function Re(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 Ee(e){return e[an]||null}function dt(e){return e[Cn]||null}function At(e){return e[Jt]||null}function Kt(e,t){const n=e[Nt]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function $n(e){return Array.isArray(e)&&!0===e[1]}function Hr(e){return 0!=(8&e.flags)}function br(e){return 2==(2&e.flags)}function Fr(e){return 1==(1&e.flags)}function ir(e){return null!==e.template}function sr(e){return 0!=(256&e[2])}function Ar(e,t){return e.hasOwnProperty(Xt)?e[Xt]:null}class Gn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Br(){return Mr}function Mr(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ui),Di}function Di(){const e=ii(this),t=e?.current;if(t){const n=e.previous;if(n===$t)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ui(e,t,n,r){const i=ii(e)||function Ws(e,t){return e[ri]=t}(e,{previous:$t,current:null}),s=i.current||(i.current={}),l=i.previous,h=this.declaredInputs[n],g=l[h];s[h]=new Gn(g&&g.currentValue,t,l===$t),e[r]=t}Br.ngInherit=!0;const ri="__ngSimpleChanges__";function ii(e){return e[ri]||null}function ht(e){for(;Array.isArray(e);)e=e[0];return e}function Kn(e,t){return ht(t[e])}function Dn(e,t){return ht(t[e.index])}function jr(e,t){return e.data[t]}function Vn(e,t){return e[t]}function qn(e,t){const n=t[e];return xn(n)?n:n[0]}function D(e){return 4==(4&e[2])}function A(e){return 64==(64&e[2])}function O(e,t){return null==t?null:e[t]}function re(e){e[18]=0}function Ne(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 we={lFrame:us(null),bindingsEnabled:!0};function Ln(){return we.bindingsEnabled}function Ze(){return we.lFrame.lView}function Vt(){return we.lFrame.tView}function si(e){return we.lFrame.contextLView=e,e[8]}function Or(e){return we.lFrame.contextLView=null,e}function Bn(){let e=oi();for(;null!==e&&64===e.type;)e=e.parent;return e}function oi(){return we.lFrame.currentTNode}function Gr(e,t){const n=we.lFrame;n.currentTNode=e,n.isParent=t}function rs(){return we.lFrame.isParent}function is(){we.lFrame.isParent=!1}function dr(){const e=we.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Kr(){return we.lFrame.bindingIndex++}function Zr(e){const t=we.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Cs(e,t){const n=we.lFrame;n.bindingIndex=n.bindingRootIndex=e,zi(t)}function zi(e){we.lFrame.currentDirectiveIndex=e}function os(e){const t=we.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function mo(){return we.lFrame.currentQueryIndex}function as(e){we.lFrame.currentQueryIndex=e}function Mo(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ls(e,t,n){if(n&Mt.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&Mt.Host||(i=Mo(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,e=s}const r=we.lFrame=yr();return r.currentTNode=t,r.lView=e,!0}function Wi(e){const t=yr(),n=e[1];we.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yr(){const e=we.lFrame,t=null===e?null:e.child;return null===t?us(e):t}function us(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 Ci(){const e=we.lFrame;return we.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const bs=Ci;function Ks(){const e=Ci();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 lr(){return we.lFrame.selectedIndex}function Mi(e){we.lFrame.selectedIndex=e}function Pn(){const e=we.lFrame;return jr(e.tView,e.selectedIndex)}function Ys(){we.lFrame.currentNamespace="svg"}function Gi(){!function Qs(){we.lFrame.currentNamespace=null}()}function qs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:l,ngAfterContentChecked:h,ngAfterViewInit:g,ngAfterViewChecked:T,ngOnDestroy:M}=s;l&&(e.contentHooks||(e.contentHooks=[])).push(-n,l),h&&((e.contentHooks||(e.contentHooks=[])).push(n,h),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,h)),g&&(e.viewHooks||(e.viewHooks=[])).push(-n,g),T&&((e.viewHooks||(e.viewHooks=[])).push(n,T),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,T)),null!=M&&(e.destroyHooks||(e.destroyHooks=[])).push(n,M)}}function Js(e,t,n){vo(e,t,3,n)}function Pi(e,t,n,r){(3&e[2])===n&&vo(e,t,n,r)}function yo(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vo(e,t,n,r){const s=r??-1,l=t.length-1;let h=0;for(let g=void 0!==r?65535&e[18]:0;g<l;g++)if("number"==typeof t[g+1]){if(h=t[g],null!=r&&h>=r)break}else t[g]<0&&(e[18]+=65536),(h<s||-1==s)&&(wi(e,n,t,g),e[18]=(4294901760&e[18])+g+2),g++}function wi(e,t,n,r){const i=n[r]<0,s=n[r+1],h=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(h)}finally{}}}else try{s.call(h)}finally{}}class cs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ui(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const s=n[r++],l=n[r++],h=n[r++];e.setAttribute(t,l,h,s)}else{const s=i,l=n[++r];Is(s)?e.setProperty(t,s,l):e.setAttribute(t,s,l),r++}}return r}function eo(e){return 3===e||4===e||6===e}function Is(e){return 64===e.charCodeAt(0)}function ds(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||or(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function or(e,t,n,r,i){let s=0,l=e.length;if(-1===t)l=-1;else for(;s<e.length;){const h=e[s++];if("number"==typeof h){if(h===t){l=-1;break}if(h>t){l=s-1;break}}}for(;s<e.length;){const h=e[s];if("number"==typeof h)break;if(h===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==l&&(e.splice(l,0,t),s=l+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}function Do(e){return-1!==e}function Oi(e){return 32767&e}function ci(e,t){let n=function vr(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let As=!0;function fs(e){const t=As;return As=e,t}let Ro=0;const di={};function xi(e,t){const n=$r(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,hs(r.data,e),hs(t,null),hs(r.blueprint,null));const i=Ms(e,t),s=e.injectorIndex;if(Do(i)){const l=Oi(i),h=ci(i,t),g=h[1].data;for(let T=0;T<8;T++)t[s+T]=h[l+T]|g[l+T]}return t[s+8]=i,s}function hs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $r(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ms(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=X(i),null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ki(e,t,n){!function Ri(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pt)&&(r=n[Pt]),null==r&&(r=n[Pt]=Ro++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function ro(e,t,n){if(n&Mt.Optional)return e;x()}function Os(e,t,n,r){if(n&Mt.Optional&&void 0===r&&(r=null),0==(n&(Mt.Self|Mt.Host))){const i=e[9],s=Rn(void 0);try{return i?i.get(t,r,n&Mt.Optional):St(t,r,n&Mt.Optional)}finally{Rn(s)}}return ro(r,0,n)}function Co(e,t,n,r=Mt.Default,i){if(null!==e){if(1024&t[2]){const l=function N(e,t,n,r,i){let s=e,l=t;for(;null!==s&&null!==l&&1024&l[2]&&!(256&l[2]);){const h=Rs(s,l,n,r|Mt.Self,di);if(h!==di)return h;let g=s.parent;if(!g){const T=l[21];if(T){const M=T.get(n,di,r);if(M!==di)return M}g=X(l),l=l[15]}s=g}return i}(e,t,n,r,di);if(l!==di)return l}const s=Rs(e,t,n,r,di);if(s!==di)return s}return Os(t,n,r,i)}function Rs(e,t,n,r,i){const s=function io(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Pt)?e[Pt]:void 0;return"number"==typeof t?t>=0?255&t:o:t}(n);if("function"==typeof s){if(!ls(t,e,r))return r&Mt.Host?ro(i,0,r):Os(t,n,r,i);try{const l=s(r);if(null!=l||r&Mt.Optional)return l;x()}finally{bs()}}else if("number"==typeof s){let l=null,h=$r(e,t),g=-1,T=r&Mt.Host?t[16][6]:null;for((-1===h||r&Mt.SkipSelf)&&(g=-1===h?Ms(e,t):t[h+8],-1!==g&&_(r,!1)?(l=t[1],h=Oi(g),t=ci(g,t)):h=-1);-1!==h;){const M=t[1];if(so(s,h,M.data)){const k=xo(h,t,n,l,r,T);if(k!==di)return k}g=t[h+8],-1!==g&&_(r,t[1].data[h+8]===T)&&so(s,h,t)?(l=M,h=Oi(g),t=ci(g,t)):h=-1}}return i}function xo(e,t,n,r,i,s){const l=t[1],h=l.data[e+8],M=Zi(h,l,n,null==r?br(h)&&As:r!=l&&0!=(3&h.type),i&Mt.Host&&s===h);return null!==M?Yi(t,l,M,h):di}function Zi(e,t,n,r,i){const s=e.providerIndexes,l=t.data,h=1048575&s,g=e.directiveStart,M=s>>20,ce=i?h+M:e.directiveEnd;for(let Pe=r?h:h+M;Pe<ce;Pe++){const qe=l[Pe];if(Pe<g&&n===qe||Pe>=g&&qe.type===n)return Pe}if(i){const Pe=l[g];if(Pe&&ir(Pe)&&Pe.type===n)return g}return null}function Yi(e,t,n,r){let i=e[n];const s=t.data;if(function Xs(e){return e instanceof cs}(i)){const l=i;l.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new xe(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Te(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ie(e)}(s[n]));const h=fs(l.canSeeViewProviders);l.resolving=!0;const g=l.injectImpl?Rn(l.injectImpl):null;ls(e,r,Mt.Default);try{i=e[n]=l.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function bi(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const l=Mr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==g&&Rn(g),fs(h),l.resolving=!1,bs()}}return i}function so(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function _(e,t){return!(e&Mt.Self||e&Mt.Host&&t)}class a{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Co(this._tNode,this._lView,t,r,n)}}function o(){return new a(Bn(),Ze())}function p(e){return wn(()=>{const t=e.prototype.constructor,n=t[Xt]||S(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Xt]||S(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function S(e){return je(e)?()=>{const t=S(de(e));return t&&t()}:Ar(e)}function X(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function q(e){return function Ps(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 s=n[i];if(eo(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(Bn(),e)}const Ue="__parameters__";function Yt(e,t,n){return wn(()=>{const r=function en(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const l=new i(...s);return h.annotation=l,h;function h(g,T,M){const k=g.hasOwnProperty(Ue)?g[Ue]:Object.defineProperty(g,Ue,{value:[]})[Ue];for(;k.length<=M;)k.push(null);return(k[M]=k[M]||[]).push(l),g}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class u{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=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const y=new u("AnalyzeForEntryComponents");function mt(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),mt(r,t)):t!==e&&t.push(r)}return t}function Ot(e,t){e.forEach(n=>Array.isArray(n)?Ot(n,t):t(n))}function Ut(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jn(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function On(e,t,n){let r=ur(e,t);return r>=0?e[1|r]=n:(r=~r,function ps(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 Ni(e,t){const n=ur(e,t);if(n>=0)return e[1|n]}function ur(e,t){return function Ns(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),l=e[s<<n];if(t===l)return s<<n;l>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const Qi={},Zo="__NG_DI_FLAG__",Yo="ngTempTokenPath",ao=/\n/gm,ks="__source";let Qo;function Oa(e){const t=Qo;return Qo=e,t}function nl(e,t=Mt.Default){if(void 0===Qo)throw new xe(-203,!1);return null===Qo?St(e,void 0,t):Qo.get(e,t&Mt.Optional?null:void 0,t)}function hr(e,t=Mt.Default){return(function _t(){return Hn}()||nl)(de(e),t)}function Gl(e,t=Mt.Default){return hr(e,t)}function v(e){const t=[];for(let n=0;n<e.length;n++){const r=de(e[n]);if(Array.isArray(r)){if(0===r.length)throw new xe(900,!1);let i,s=Mt.Default;for(let l=0;l<r.length;l++){const h=r[l],g=I(h);"number"==typeof g?-1===g?i=h.token:s|=g:i=h}t.push(hr(i,s))}else t.push(hr(r))}return t}function C(e,t){return e[Zo]=t,e.prototype[Zo]=t,e}function I(e){return e[Zo]}const Xe=C(Yt("Optional"),8),Ft=C(Yt("SkipSelf"),4);let Zl,sl,ol;function Lm(e){Zl=e}function Xo(e){return function Yl(){if(void 0===sl&&(sl=null,Se.trustedTypes))try{sl=Se.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return sl}()?.createHTML(e)||e}function wd(e){return function Ql(){if(void 0===ol&&(ol=null,Se.trustedTypes))try{ol=Se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ol}()?.createHTML(e)||e}class Fo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Hm extends Fo{getTypeName(){return"HTML"}}class Um extends Fo{getTypeName(){return"Style"}}class $m extends Fo{getTypeName(){return"Script"}}class Vm extends Fo{getTypeName(){return"URL"}}class zm extends Fo{getTypeName(){return"ResourceURL"}}function lo(e){return e instanceof Fo?e.changingThisBreaksApplicationSecurity:e}function ea(e,t){const n=function Wm(e){return e instanceof Fo&&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 https://g.co/ng/security#xss)`)}return n===t}function Gm(e){return new Hm(e)}function Km(e){return new Um(e)}function Zm(e){return new $m(e)}function Ym(e){return new Vm(e)}function Qm(e){return new zm(e)}class qm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Xo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Jm{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=Xo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Xo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0<i;i--){const l=n.item(i).name;("xmlns:ns1"===l||0===l.indexOf("ns1:"))&&t.removeAttribute(l)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const ey=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ty=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function xa(e){return(e=String(e)).match(ey)||e.match(ty)?e:"unsafe:"+e}function Ls(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Md=Ls("area,br,col,hr,img,wbr"),Pd=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Od=Ls("rp,rt"),ql=Na(Md,Na(Pd,Ls("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")),Na(Od,Ls("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")),Na(Od,Pd)),Jl=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Xl=Ls("srcset"),Rd=Na(Jl,Xl,Ls("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ls("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")),ny=Ls("script,style,template");class ry{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(!ql.hasOwnProperty(n))return this.sanitizedSomething=!0,!ny.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),l=s.name,h=l.toLowerCase();if(!Rd.hasOwnProperty(h)){this.sanitizedSomething=!0;continue}let g=s.value;Jl[h]&&(g=xa(g)),Xl[h]&&(e=g,g=(e=String(e)).split(",").map(t=>xa(t.trim())).join(", ")),this.buf.push(" ",l,'="',xd(g),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ql.hasOwnProperty(n)&&!Md.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(xd(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 iy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sy=/([^\#-~ |!])/g;function xd(e){return e.replace(/&/g,"&amp;").replace(iy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(sy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let al;function Nd(e,t){let n=null;try{al=al||function Id(e){const t=new Jm(e);return function Xm(){try{return!!(new window.DOMParser).parseFromString(Xo(""),"text/html")}catch{return!1}}()?new qm(t):t}(e);let r=t?String(t):"";n=al.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=al.getInertBodyElement(r)}while(r!==s);return Xo((new ry).sanitizeChildren(eu(n)||n))}finally{if(n){const r=eu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function eu(e){return"content"in e&&function oy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=(()=>((Er=Er||{})[Er.NONE=0]="NONE",Er[Er.HTML=1]="HTML",Er[Er.STYLE=2]="STYLE",Er[Er.SCRIPT=3]="SCRIPT",Er[Er.URL=4]="URL",Er[Er.RESOURCE_URL=5]="RESOURCE_URL",Er))();function kd(e){const t=ka();return t?wd(t.sanitize(Er.HTML,e)||""):ea(e,"HTML")?wd(lo(e)):Nd(function bd(){return void 0!==Zl?Zl:typeof document<"u"?document:void 0}(),Ie(e))}function tu(e){const t=ka();return t?t.sanitize(Er.URL,e)||"":ea(e,"URL")?lo(e):xa(Ie(e))}function ka(){const e=Ze();return e&&e[12]}function ru(e){return e.ngOriginalError}class Fa{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&&ru(t);for(;n&&ru(n);)n=ru(n);return n||null}}const iu=new Map;let Ey=0;const ou="__ngContext__";function qr(e,t){xn(t)?(e[ou]=t[20],function by(e){iu.set(e[20],e)}(t)):e[ou]=t}function La(e){const t=e[ou];return"number"==typeof t?function Bd(e){return iu.get(e)||null}(t):t||null}function au(e){const t=La(e);return t?xn(t)?t:t.lView:null}const Ry=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(Se))();function uo(e){return e instanceof Function?e():e}var Bs=(()=>((Bs=Bs||{})[Bs.Important=1]="Important",Bs[Bs.DashCase=2]="DashCase",Bs))();function uu(e,t){return undefined(e,t)}function Ba(e){const t=e[3];return $n(t)?t[3]:t}function cu(e){return Kd(e[13])}function du(e){return Kd(e[4])}function Kd(e){for(;null!==e&&!$n(e);)e=e[4];return e}function na(e,t,n,r,i){if(null!=r){let s,l=!1;$n(r)?s=r:xn(r)&&(l=!0,r=r[0]);const h=ht(r);0===e&&null!==n?null==i?Xd(t,n,h):Lo(t,n,h,i||null,!0):1===e&&null!==n?Lo(t,n,h,i||null,!0):2===e?function lf(e,t,n){const r=ll(e,t);r&&function Zy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,h,l):3===e&&t.destroyNode(h),null!=s&&function qy(e,t,n,r,i){const s=n[7];s!==ht(n)&&na(t,e,r,s,i);for(let h=10;h<n.length;h++){const g=n[h];ja(g[1],g,e,t,r,s)}}(t,e,s,n,i)}}function hu(e,t,n){return e.createElement(t,n)}function Yd(e,t){const n=e[9],r=n.indexOf(t),i=t[3];512&t[2]&&(t[2]&=-513,Ne(i,-1)),n.splice(r,1)}function pu(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yd(i,r),t>0&&(e[n-1][4]=r[4]);const s=pn(e,10+t);!function Hy(e,t){ja(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const l=s[19];null!==l&&l.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function Qd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&ja(e,t,n,3,null,null),function Vy(e){let t=e[13];if(!t)return gu(e[1],e);for(;t;){let n=null;if(xn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)xn(t)&&gu(t[1],t),t=t[3];null===t&&(t=e),xn(t)&&gu(t[1],t),n=t&&t[4]}t=n}}(t)}}function gu(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Ky(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 cs)){const s=n[r+1];if(Array.isArray(s))for(let l=0;l<s.length;l+=2){const h=i[s[l]],g=s[l+1];try{g.call(h)}finally{}}else try{s.call(i)}finally{}}}}(e,t),function Gy(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const l=n[s+1],h="function"==typeof l?l(t):ht(t[l]),g=r[i=n[s+2]],T=n[s+3];"boolean"==typeof T?h.removeEventListener(n[s],g,T):T>=0?r[i=T]():r[i=-T].unsubscribe(),s+=2}else{const l=r[i=n[s+1]];n[s].call(l)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&$n(t[3])){n!==t[3]&&Yd(n,t);const r=t[19];null!==r&&r.detachView(e)}!function wy(e){iu.delete(e[20])}(t)}}function qd(e,t,n){return function Jd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const i=e.data[r.directiveStart].encapsulation;if(i===Ke.None||i===Ke.Emulated)return null}return Dn(r,n)}(e,t.parent,n)}function Lo(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Xd(e,t,n){e.appendChild(t,n)}function ef(e,t,n,r,i){null!==r?Lo(e,t,n,r,i):Xd(e,t,n)}function ll(e,t){return e.parentNode(t)}function tf(e,t,n){return rf(e,t,n)}let rf=function nf(e,t,n){return 40&e.type?Dn(e,n):null};function ul(e,t,n,r){const i=qd(e,r,t),s=t[11],h=tf(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let g=0;g<n.length;g++)ef(s,i,n[g],h,!1);else ef(s,i,n,h,!1)}function cl(e,t){if(null!==t){const n=t.type;if(3&n)return Dn(t,e);if(4&n)return yu(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return cl(e,r);{const i=e[t.index];return $n(i)?yu(-1,i):ht(i)}}if(32&n)return uu(t,e)()||ht(e[t.index]);{const r=af(e,t);return null!==r?Array.isArray(r)?r[0]:cl(Ba(e[16]),r):cl(e,t.next)}}return null}function af(e,t){return null!==t?e[16][6].projection[t.projection]:null}function yu(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return cl(r,i)}return t[7]}function vu(e,t,n,r,i,s,l){for(;null!=n;){const h=r[n.index],g=n.type;if(l&&0===t&&(h&&qr(ht(h),r),n.flags|=4),64!=(64&n.flags))if(8&g)vu(e,t,n.child,r,i,s,!1),na(t,e,i,h,s);else if(32&g){const T=uu(n,r);let M;for(;M=T();)na(t,e,i,M,s);na(t,e,i,h,s)}else 16&g?uf(e,t,r,n,i,s):na(t,e,i,h,s);n=l?n.projectionNext:n.next}}function ja(e,t,n,r,i,s){vu(n,r,e.firstChild,t,i,s,!1)}function uf(e,t,n,r,i,s){const l=n[16],g=l[6].projection[r.projection];if(Array.isArray(g))for(let T=0;T<g.length;T++)na(t,e,i,g[T],s);else vu(e,t,g,l[3],i,s,!0)}function cf(e,t,n){e.setAttribute(t,"style",n)}function _u(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function df(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 s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}const ff="ng-template";function Xy(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==df(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 hf(e){return 4===e.type&&e.value!==ff}function ev(e,t,n){return t===(4!==e.type||n?e.value:ff)}function tv(e,t,n){let r=4;const i=e.attrs||[],s=function iv(e){for(let t=0;t<e.length;t++)if(eo(e[t]))return t;return e.length}(i);let l=!1;for(let h=0;h<t.length;h++){const g=t[h];if("number"!=typeof g){if(!l)if(4&r){if(r=2|1&r,""!==g&&!ev(e,g,n)||""===g&&1===t.length){if(gs(r))return!1;l=!0}}else{const T=8&r?g:t[++h];if(8&r&&null!==e.attrs){if(!Xy(e.attrs,T,n)){if(gs(r))return!1;l=!0}continue}const k=nv(8&r?"class":g,i,hf(e),n);if(-1===k){if(gs(r))return!1;l=!0;continue}if(""!==T){let ce;ce=k>s?"":i[k+1].toLowerCase();const Pe=8&r?ce:null;if(Pe&&-1!==df(Pe,T,0)||2&r&&T!==ce){if(gs(r))return!1;l=!0}}}}else{if(!l&&!gs(r)&&!gs(g))return!1;if(l&&gs(g))continue;l=!1,r=g|1&r}}return gs(r)||l}function gs(e){return 0==(1&e)}function nv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const l=t[i];if(l===e)return i;if(3===l||6===l)s=!0;else{if(1===l||2===l){let h=t[++i];for(;"string"==typeof h;)h=t[++i];continue}if(4===l)break;if(0===l){i+=4;continue}}i+=s?1:2}return-1}return function sv(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 pf(e,t,n=!1){for(let r=0;r<t.length;r++)if(tv(e,t[r],n))return!0;return!1}function ov(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 gf(e,t){return e?":not("+t.trim()+")":t}function av(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let l=e[n];if("string"==typeof l)if(2&r){const h=e[++n];i+="["+l+(h.length>0?'="'+h+'"':"")+"]"}else 8&r?i+="."+l:4&r&&(i+=" "+l);else""!==i&&!gs(l)&&(t+=gf(s,i),i=""),r=l,s=s||!gs(r);n++}return""!==i&&(t+=gf(s,i)),t}const un={};function mf(e){yf(Vt(),Ze(),lr()+e,!1)}function yf(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Js(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Pi(t,s,0,n)}Mi(n)}const Du=new u("ENVIRONMENT_INITIALIZER"),Ef=new u("INJECTOR_DEF_TYPES");function gv(...e){return{\u0275providers:Cf(0,e)}}function Cf(e,...t){const n=[],r=new Set;let i;return Ot(t,s=>{const l=s;Eu(l,n,[],r)&&(i||(i=[]),i.push(l))}),void 0!==i&&bf(i,n),n}function bf(e,t){for(let n=0;n<e.length;n++){const{providers:i}=e[n];Ot(i,s=>{t.push(s)})}}function Eu(e,t,n,r){if(!(e=de(e)))return!1;let i=null,s=Wn(e);const l=!s&&Ee(e);if(s||l){if(l&&!l.standalone)return!1;i=e}else{const g=e.ngModule;if(s=Wn(g),!s)return!1;i=g}const h=r.has(i);if(l){if(h)return!1;if(r.add(i),l.dependencies){const g="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const T of g)Eu(T,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!h){let T;r.add(i);try{Ot(s.imports,M=>{Eu(M,t,n,r)&&(T||(T=[]),T.push(M))})}finally{}void 0!==T&&bf(T,t)}if(!h){const T=Ar(i)||(()=>new i);t.push({provide:i,useFactory:T,deps:st},{provide:Ef,useValue:i,multi:!0},{provide:Du,useValue:()=>hr(i),multi:!0})}const g=s.providers;null==g||h||Ot(g,M=>{t.push(M)})}}return i!==e&&void 0!==e.providers}const mv=J({provide:String,useValue:J});function Cu(e){return null!==e&&"object"==typeof e&&mv in e}function Bo(e){return"function"==typeof e}const bu=new u("INJECTOR",-1);class Sf{get(t,n=Qi){if(n===Qi){const r=new Error(`NullInjectorError: No provider for ${ie(t)}!`);throw r.name="NullInjectorError",r}return n}}const wu=new u("Set Injector scope."),dl={},vv={};let Tu;function Su(){return void 0===Tu&&(Tu=new Sf),Tu}class ra{}class If extends ra{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,Au(t,l=>this.processProvider(l)),this.records.set(bu,ia(void 0,this)),i.has("environment")&&this.records.set(ra,ia(void 0,this));const s=this.records.get(wu);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ef.multi,st,Mt.Self))}get destroyed(){return this._destroyed}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)}get(t,n=Qi,r=Mt.Default){this.assertNotDestroyed();const i=Oa(this),s=Rn(void 0);try{if(!(r&Mt.SkipSelf)){let h=this.records.get(t);if(void 0===h){const g=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof u}(t)&&ct(t);h=g&&this.injectableDefInScope(g)?ia(Iu(t),dl):null,this.records.set(t,h)}if(null!=h)return this.hydrate(t,h)}return(r&Mt.Self?Su():this.parent).get(t,n=r&Mt.Optional&&n===Qi?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[Yo]=l[Yo]||[]).unshift(ie(t)),i)throw l;return function $(e,t,n,r){const i=e[Yo];throw t[ks]&&i.unshift(t[ks]),e.message=function be(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).join(" -> ");else if("object"==typeof t){let s=[];for(let l in t)if(t.hasOwnProperty(l)){let h=t[l];s.push(l+":"+("string"==typeof h?JSON.stringify(h):ie(h)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ao,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yo]=null,e}(l,t,"R3InjectorError",this.source)}throw l}finally{Rn(s),Oa(i)}}resolveInjectorInitializers(){const t=Oa(this),n=Rn(void 0);try{const r=this.get(Du.multi,st,Mt.Self);for(const i of r)i()}finally{Oa(t),Rn(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new xe(205,!1)}processProvider(t){let n=Bo(t=de(t))?t:de(t&&t.provide);const r=function Dv(e){return Cu(e)?ia(void 0,e.useValue):ia(Af(e),dl)}(t);if(Bo(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=ia(void 0,dl,!0),i.factory=()=>v(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=vv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Cv(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=de(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Iu(e){const t=ct(e),n=null!==t?t.factory:Ar(e);if(null!==n)return n;if(e instanceof u)throw new xe(204,!1);if(e instanceof Function)return function _v(e){const t=e.length;if(t>0)throw Jn(t,"?"),new xe(204,!1);const n=function nn(e){const t=e&&(e[In]||e[Nn]);if(t){const n=function vn(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 xe(204,!1)}function Af(e,t,n){let r;if(Bo(e)){const i=de(e);return Ar(i)||Iu(i)}if(Cu(e))r=()=>de(e.useValue);else if(function Tf(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...v(e.deps||[]));else if(function wf(e){return!(!e||!e.useExisting)}(e))r=()=>hr(de(e.useExisting));else{const i=de(e&&(e.useClass||e.provide));if(!function Ev(e){return!!e.deps}(e))return Ar(i)||Iu(i);r=()=>new i(...v(e.deps))}return r}function ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wv(e){return!!e.\u0275providers}function Au(e,t){for(const n of e)Array.isArray(n)?Au(n,t):wv(n)?Au(n.\u0275providers,t):t(n)}function Mf(e,t=null,n=null,r){const i=Pf(e,t,n,r);return i.resolveInjectorInitializers(),i}function Pf(e,t=null,n=null,r,i=new Set){const s=[n||st,gv(e)];return r=r||("object"==typeof e?void 0:ie(e)),new If(s,t||Su(),r||null,i)}let js=(()=>{class e{static create(n,r){if(Array.isArray(n))return Mf({name:""},r,n,"");{const i=n.name??"";return Mf({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Qi,e.NULL=new Sf,e.\u0275prov=Ye({token:e,providedIn:"any",factory:()=>hr(bu)}),e.__NG_ELEMENT_ID__=-1,e})();function oa(e,t=Mt.Default){const n=Ze();return null===n?hr(e,t):Co(Bn(),n,de(e),t)}function Lf(){throw new Error("invalid")}function hl(e,t){return e<<17|t<<2}function ms(e){return e>>17&32767}function Fu(e){return 2|e}function co(e){return(131068&e)>>2}function Lu(e,t){return-131069&e|t<<2}function Bu(e){return 1|e}function qf(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const l=e.data[s];as(i),l.contentQueries(2,t[s],s)}}}function ml(e,t,n,r,i,s,l,h,g,T,M){const k=t.blueprint.slice();return k[0]=i,k[2]=76|r,(null!==M||e&&1024&e[2])&&(k[2]|=1024),re(k),k[3]=k[15]=e,k[8]=n,k[10]=l||e&&e[10],k[11]=h||e&&e[11],k[12]=g||e&&e[12]||null,k[9]=T||e&&e[9]||null,k[6]=s,k[20]=function Cy(){return Ey++}(),k[21]=M,k[16]=2==t.type?e[16]:k,k}function aa(e,t,n,r,i){let s=e.data[t];if(null===s)s=function Ku(e,t,n,r,i){const s=oi(),l=rs(),g=e.data[t]=function r_(e,t,n,r,i,s){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,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,l?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=g),null!==s&&(l?null==s.child&&null!==g.parent&&(s.child=g):null===s.next&&(s.next=g)),g}(e,t,n,r,i),function go(){return we.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const l=function ai(){const e=we.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===l?-1:l.injectorIndex}return Gr(s,!0),s}function la(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function yl(e,t,n){Wi(t);try{const r=e.viewQuery;null!==r&&rc(1,r,n);const i=e.template;null!==i&&Jf(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&qf(e,t),e.staticViewQueries&&rc(2,e.viewQuery,n);const s=e.components;null!==s&&function Xv(e,t){for(let n=0;n<t.length;n++)E_(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Ks()}}function Ha(e,t,n,r){const i=t[2];if(128!=(128&i)){Wi(t);try{re(t),function ss(e){return we.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Jf(e,t,n,2,r);const l=3==(3&i);if(l){const T=e.preOrderCheckHooks;null!==T&&Js(t,T,null)}else{const T=e.preOrderHooks;null!==T&&Pi(t,T,0,null),yo(t,0)}if(function __(e){for(let t=cu(e);null!==t;t=du(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r],s=i[3];0==(512&i[2])&&Ne(s,1),i[2]|=512}}}(t),function v_(e){for(let t=cu(e);null!==t;t=du(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];A(r)&&Ha(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&qf(e,t),l){const T=e.contentCheckHooks;null!==T&&Js(t,T)}else{const T=e.contentHooks;null!==T&&Pi(t,T,1),yo(t,1)}!function qv(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)Mi(~i);else{const s=i,l=n[++r],h=n[++r];Cs(l,s),h(2,t[s])}}}finally{Mi(-1)}}(e,t);const h=e.components;null!==h&&function Jv(e,t){for(let n=0;n<t.length;n++)D_(e,t[n])}(t,h);const g=e.viewQuery;if(null!==g&&rc(2,g,r),l){const T=e.viewCheckHooks;null!==T&&Js(t,T)}else{const T=e.viewHooks;null!==T&&Pi(t,T,2),yo(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Ne(t[3],-1))}finally{Ks()}}}function e_(e,t,n,r){const i=t[10],l=D(t);try{!l&&i.begin&&i.begin(),l&&yl(e,t,r),Ha(e,t,n,r)}finally{!l&&i.end&&i.end()}}function Jf(e,t,n,r,i){const s=lr(),l=2&r;try{Mi(-1),l&&t.length>22&&yf(e,t,22,!1),n(r,i)}finally{Mi(s)}}function Xf(e,t,n){if(Hr(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const l=e.data[s];l.contentQueries&&l.contentQueries(1,n[s],s)}}}function Zu(e,t,n){!Ln()||(function c_(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||xi(n,t),qr(r,t);const l=n.initialInputs;for(let h=i;h<s;h++){const g=e.data[h],T=ir(g);T&&g_(t,n,g);const M=Yi(t,e,h,n);qr(M,t),null!==l&&m_(0,h-i,M,g,0,l),T&&(qn(n.index,t)[8]=M)}}(e,t,n,Dn(n,t)),128==(128&n.flags)&&function d_(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,l=function Ao(){return we.lFrame.currentDirectiveIndex}();try{Mi(s);for(let h=r;h<i;h++){const g=e.data[h],T=t[h];zi(h),(null!==g.hostBindings||0!==g.hostVars||null!==g.hostAttrs)&&ih(g,T)}}finally{Mi(-1),zi(l)}}(e,t,n))}function Yu(e,t,n=Dn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const l=r[s+1],h=-1===l?n(t,e):e[l];e[i++]=h}}}function eh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Qu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Qu(e,t,n,r,i,s,l,h,g,T){const M=22+r,k=M+i,ce=function t_(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:un);return n}(M,k),Pe="function"==typeof T?T():T;return ce[1]={type:e,blueprint:ce,template:n,queries:null,viewQuery:h,declTNode:t,data:ce.slice().fill(null,M),bindingStartIndex:M,expandoStartIndex:k,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 s?s():s,pipeRegistry:"function"==typeof l?l():l,firstChild:null,schemas:g,consts:Pe,incompleteFirstPass:!1}}function th(e,t,n,r){const i=ch(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&dh(e).push(r,i.length-1))}function nh(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Fi(e,t,n,r,i,s,l,h){const g=Dn(t,n);let M,T=t.inputs;!h&&null!=T&&(M=T[r])?(ph(e,n,M,r,i),br(t)&&function o_(e,t){const n=qn(t,e);16&n[2]||(n[2]|=32)}(n,t.index)):3&t.type&&(r=function s_(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=l?l(i,t.value||"",r):i,s.setProperty(g,r,i))}function qu(e,t,n,r){let i=!1;if(Ln()){const s=function f_(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const l=r[s];pf(n,l.selectors,!1)&&(i||(i=[]),Ki(xi(n,t),e,l.type),ir(l)?(sh(e,n),i.unshift(l)):i.push(l))}return i}(e,t,n),l=null===r?null:{"":-1};if(null!==s){i=!0,oh(n,e.data.length,s.length);for(let M=0;M<s.length;M++){const k=s[M];k.providersResolver&&k.providersResolver(k)}let h=!1,g=!1,T=la(e,t,s.length,null);for(let M=0;M<s.length;M++){const k=s[M];n.mergedAttrs=ds(n.mergedAttrs,k.hostAttrs),ah(e,n,t,T,k),p_(T,k,l),null!==k.contentQueries&&(n.flags|=8),(null!==k.hostBindings||null!==k.hostAttrs||0!==k.hostVars)&&(n.flags|=128);const ce=k.type.prototype;!h&&(ce.ngOnChanges||ce.ngOnInit||ce.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),h=!0),!g&&(ce.ngOnChanges||ce.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),g=!0),T++}!function i_(e,t){const r=t.directiveEnd,i=e.data,s=t.attrs,l=[];let h=null,g=null;for(let T=t.directiveStart;T<r;T++){const M=i[T],k=M.inputs,ce=null===s||hf(t)?null:y_(k,s);l.push(ce),h=nh(k,T,h),g=nh(M.outputs,T,g)}null!==h&&(h.hasOwnProperty("class")&&(t.flags|=16),h.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=l,t.inputs=h,t.outputs=g}(e,n)}l&&function h_(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new xe(-301,!1);r.push(t[i],s)}}}(n,r,l)}return n.mergedAttrs=ds(n.mergedAttrs,n.attrs),i}function rh(e,t,n,r,i,s){const l=s.hostBindings;if(l){let h=e.hostBindingOpCodes;null===h&&(h=e.hostBindingOpCodes=[]);const g=~t.index;(function u_(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(h)!=g&&h.push(g),h.push(r,i,l)}}function ih(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function sh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function p_(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ir(t)&&(n[""]=e)}}function oh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ah(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=Ar(i.type)),l=new cs(s,ir(i),oa);e.blueprint[r]=l,n[r]=l,rh(e,t,0,r,la(e,n,i.hostVars,un),i)}function g_(e,t,n){const r=Dn(t,e),i=eh(n),s=e[10],l=vl(e,ml(e,i,null,n.onPush?32:16,r,t,s,s.createRenderer(r,n),null,null,null));e[t.index]=l}function Hs(e,t,n,r,i,s){const l=Dn(e,t);!function Ju(e,t,n,r,i,s,l){if(null==s)e.removeAttribute(t,i,n);else{const h=null==l?Ie(s):l(s,r||"",i);e.setAttribute(t,i,h,n)}}(t[11],l,s,e.value,n,r,i)}function m_(e,t,n,r,i,s){const l=s[t];if(null!==l){const h=r.setInput;for(let g=0;g<l.length;){const T=l[g++],M=l[g++],k=l[g++];null!==h?r.setInput(n,k,T,M):n[M]=k}}}function y_(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function lh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function D_(e,t){const n=qn(t,e);if(A(n)){const r=n[1];48&n[2]?Ha(r,n,r.template,n[8]):n[5]>0&&Xu(n)}}function Xu(e){for(let r=cu(e);null!==r;r=du(r))for(let i=10;i<r.length;i++){const s=r[i];if(512&s[2]){const l=s[1];Ha(l,s,l.template,s[8])}else s[5]>0&&Xu(s)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=qn(n[r],e);A(i)&&i[5]>0&&Xu(i)}}function E_(e,t){const n=qn(t,e),r=n[1];(function C_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),yl(r,n,n[8])}function vl(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ec(e){for(;e;){e[2]|=32;const t=Ba(e);if(sr(e)&&!t)return e;e=t}return null}function uh(e){!function tc(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=au(n);if(null!==r){const i=r[1];e_(i,r,i.template,n)}}}(e[8])}function rc(e,t,n){as(0),t(e,n)}const w_=(()=>Promise.resolve(null))();function ch(e){return e[7]||(e[7]=[])}function dh(e){return e.cleanup||(e.cleanup=[])}function fh(e,t,n){return(null===e||ir(e))&&(n=function Tn(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function hh(e,t){const n=e[9],r=n?n.get(Fa,null):null;r&&r.handleError(t)}function ph(e,t,n,r,i){for(let s=0;s<n.length;){const l=n[s++],h=n[s++],g=t[l],T=e.data[l];null!==T.setInput?T.setInput(g,i,r,h):g[h]=i}}function fo(e,t,n){const r=Kn(t,e);!function Zd(e,t,n){e.setValue(t,n)}(e[11],r,n)}function _l(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let l=0;l<t.length;l++){const h=t[l];"number"==typeof h?s=h:1==s?i=te(i,h):2==s&&(r=te(r,h+": "+t[++l]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function A_(){const e=Bn();qs(Ze()[1],e)}function ic(e){let t=function gh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(ir(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new xe(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const l=e;l.inputs=sc(e.inputs),l.declaredInputs=sc(e.declaredInputs),l.outputs=sc(e.outputs);const h=i.hostBindings;h&&R_(e,h);const g=i.viewQuery,T=i.contentQueries;if(g&&P_(e,g),T&&O_(e,T),ee(e.inputs,i.inputs),ee(e.declaredInputs,i.declaredInputs),ee(e.outputs,i.outputs),ir(i)&&i.data.animation){const M=e.data;M.animation=(M.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let l=0;l<s.length;l++){const h=s[l];h&&h.ngInherit&&h(e),h===ic&&(n=!1)}}t=Object.getPrototypeOf(t)}!function M_(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=ds(i.hostAttrs,n=ds(n,i.hostAttrs))}}(r)}function sc(e){return e===$t?{}:e===st?[]:e}function P_(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function O_(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function R_(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}let Dl=null;function jo(){if(!Dl){const e=Se.Symbol;if(e&&e.iterator)Dl=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&&(Dl=r)}}}return Dl}function Ua(e){return!!oc(e)&&(Array.isArray(e)||!(e instanceof Map)&&jo()in e)}function oc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Us(e,t,n){return e[t]=n}function $a(e,t){return e[t]}function Jr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ho(e,t,n,r){const i=Jr(e,t,n);return Jr(e,t+1,r)||i}function qi(e,t,n,r,i,s){const l=Ho(e,t,n,r);return Ho(e,t+2,i,s)||l}function ac(e,t,n,r){const i=Ze();return Jr(i,Kr(),t)&&(Vt(),Hs(Pn(),i,e,t,n,r)),ac}function ca(e,t,n,r){return Jr(e,Kr(),n)?t+Ie(n)+r:un}function da(e,t,n,r,i,s){const h=Ho(e,function li(){return we.lFrame.bindingIndex}(),n,i);return Zr(2),h?t+Ie(n)+r+Ie(i)+s:un}function Th(e,t,n,r,i,s,l,h){const g=Ze(),T=Vt(),M=e+22,k=T.firstCreatePass?function U_(e,t,n,r,i,s,l,h,g){const T=t.consts,M=aa(t,e,4,l||null,O(T,h));qu(t,n,M,O(T,g)),qs(t,M);const k=M.tViews=Qu(2,M,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,T);return null!==t.queries&&(t.queries.template(t,M),k.queries=t.queries.embeddedTView(M)),M}(M,T,g,t,n,r,i,s,l):T.data[M];Gr(k,!1);const ce=g[11].createComment("");ul(T,g,ce,k),qr(ce,g),vl(g,g[M]=lh(ce,g,ce,k)),Fr(k)&&Zu(T,g,k),null!=l&&Yu(g,k,h)}function Sh(e){return Vn(function po(){return we.lFrame.contextLView}(),22+e)}function lc(e,t,n){const r=Ze();return Jr(r,Kr(),t)&&Fi(Vt(),Pn(),r,e,t,r[11],n,!1),lc}function uc(e,t,n,r,i){const l=i?"class":"style";ph(e,n,t.inputs[l],l,r)}function Cl(e,t,n,r){const i=Ze(),s=Vt(),l=22+e,h=i[11],g=i[l]=hu(h,t,function Tr(){return we.lFrame.currentNamespace}()),T=s.firstCreatePass?function V_(e,t,n,r,i,s,l){const h=t.consts,T=aa(t,e,2,i,O(h,s));return qu(t,n,T,O(h,l)),null!==T.attrs&&_l(T,T.attrs,!1),null!==T.mergedAttrs&&_l(T,T.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,T),T}(l,s,i,0,t,n,r):s.data[l];Gr(T,!0);const M=T.mergedAttrs;null!==M&&ui(h,g,M);const k=T.classes;null!==k&&_u(h,g,k);const ce=T.styles;return null!==ce&&cf(h,g,ce),64!=(64&T.flags)&&ul(s,i,g,T),0===function Mn(){return we.lFrame.elementDepthCount}()&&qr(g,i),function bn(){we.lFrame.elementDepthCount++}(),Fr(T)&&(Zu(s,i,T),Xf(s,T,i)),null!==r&&Yu(i,T),Cl}function bl(){let e=Bn();rs()?is():(e=e.parent,Gr(e,!1));const t=e;!function cn(){we.lFrame.elementDepthCount--}();const n=Vt();return n.firstCreatePass&&(qs(n,e),Hr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Ss(e){return 0!=(16&e.flags)}(t)&&uc(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Oo(e){return 0!=(32&e.flags)}(t)&&uc(n,t,Ze(),t.stylesWithoutHost,!1),bl}function cc(e,t,n,r){return Cl(e,t,n,r),bl(),cc}function wl(e,t,n){const r=Ze(),i=Vt(),s=e+22,l=i.firstCreatePass?function z_(e,t,n,r,i){const s=t.consts,l=O(s,r),h=aa(t,e,8,"ng-container",l);return null!==l&&_l(h,l,!0),qu(t,n,h,O(s,i)),null!==t.queries&&t.queries.elementStart(t,h),h}(s,i,r,t,n):i.data[s];Gr(l,!0);const h=r[s]=r[11].createComment("");return ul(i,r,h,l),qr(h,r),Fr(l)&&(Zu(i,r,l),Xf(i,l,r)),null!=n&&Yu(r,l),wl}function Tl(){let e=Bn();const t=Vt();return rs()?is():(e=e.parent,Gr(e,!1)),t.firstCreatePass&&(qs(t,e),Hr(e)&&t.queries.elementEnd(e)),Tl}function dc(e,t,n){return wl(e,t,n),Tl(),dc}function Ih(){return Ze()}function fc(e){return!!e&&"function"==typeof e.then}function Ah(e){return!!e&&"function"==typeof e.subscribe}const Mh=Ah;function hc(e,t,n,r){const i=Ze(),s=Vt(),l=Bn();return Ph(s,i,i[11],l,e,t,0,r),hc}function pc(e,t){const n=Bn(),r=Ze(),i=Vt();return Ph(i,r,fh(os(i.data),n,r),n,e,t),pc}function Ph(e,t,n,r,i,s,l,h){const g=Fr(r),M=e.firstCreatePass&&dh(e),k=t[8],ce=ch(t);let Pe=!0;if(3&r.type||h){const Ct=Dn(r,t),Rt=h?h(Ct):Ct,Qt=ce.length,et=h?En=>h(ht(En[r.index])):r.index;let Ht=null;if(!h&&g&&(Ht=function W_(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const l=i[s];if(l===n&&i[s+1]===r){const h=t[7],g=i[s+2];return h.length>g?h[g]:null}"string"==typeof l&&(s+=2)}return null}(e,t,i,r.index)),null!==Ht)(Ht.__ngLastListenerFn__||Ht).__ngNextListenerFn__=s,Ht.__ngLastListenerFn__=s,Pe=!1;else{s=Rh(r,t,k,s,!1);const En=n.listen(Rt,i,s);ce.push(s,En),M&&M.push(i,et,Qt,Qt+1)}}else s=Rh(r,t,k,s,!1);const qe=r.outputs;let at;if(Pe&&null!==qe&&(at=qe[i])){const Ct=at.length;if(Ct)for(let Rt=0;Rt<Ct;Rt+=2){const nr=t[at[Rt]][at[Rt+1]].subscribe(s),zo=ce.length;ce.push(s,nr),M&&M.push(i,r.index,zo,-(zo+1))}}}function Oh(e,t,n,r){try{return!1!==n(r)}catch(i){return hh(e,i),!1}}function Rh(e,t,n,r,i){return function s(l){if(l===Function)return r;ec(2&e.flags?qn(e.index,t):t);let g=Oh(t,0,r,l),T=s.__ngNextListenerFn__;for(;T;)g=Oh(t,0,T,l)&&g,T=T.__ngNextListenerFn__;return i&&!1===g&&(l.preventDefault(),l.returnValue=!1),g}}function xh(e=1){return function Zs(e){return(we.lFrame.contextLView=function ws(e,t){for(;e>0;)t=t[15],e--;return t}(e,we.lFrame.contextLView))[8]}(e)}function G_(e,t){let n=null;const r=function rv(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?pf(e,s,!0):ov(r,s))return i}else n=i}return n}function Nh(e){const t=Ze()[16][6];if(!t.projection){const r=t.projection=Jn(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const l=e?G_(s,e):0;null!==l&&(i[l]?i[l].projectionNext=s:r[l]=s,i[l]=s),s=s.next}}}function kh(e,t=0,n){const r=Ze(),i=Vt(),s=aa(i,22+e,16,null,n||null);null===s.projection&&(s.projection=t),is(),64!=(64&s.flags)&&function Qy(e,t,n){uf(t[11],0,t,n,qd(e,n,t),tf(n.parent||t[6],n,t))}(i,r,s)}function gc(e,t,n){return mc(e,"",t,"",n),gc}function mc(e,t,n,r,i){const s=Ze(),l=ca(s,t,n,r);return l!==un&&Fi(Vt(),Pn(),s,e,l,s[11],i,!1),mc}function yc(e,t,n,r,i,s,l){const h=Ze(),g=da(h,t,n,r,i,s);return g!==un&&Fi(Vt(),Pn(),h,e,g,h[11],l,!1),yc}function Vh(e,t,n,r,i){const s=e[n+1],l=null===t;let h=r?ms(s):co(s),g=!1;for(;0!==h&&(!1===g||l);){const M=e[h+1];Y_(e[h],t)&&(g=!0,e[h+1]=r?Bu(M):Fu(M)),h=r?ms(M):co(M)}g&&(e[n+1]=r?Fu(s):Bu(s))}function Y_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ur(e,t)>=0}const Rr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zh(e){return e.substring(Rr.key,Rr.keyEnd)}function Wh(e,t){const n=Rr.textEnd;return n===t?-1:(t=Rr.keyEnd=function X_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Rr.key=t,n),va(e,t,n))}function va(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function vc(e,t,n){return ys(e,t,n,!1),vc}function _c(e,t){return ys(e,t,null,!0),_c}function Qh(e){vs(On,Vs,e,!0)}function Vs(e,t){for(let n=function q_(e){return function Kh(e){Rr.key=0,Rr.keyEnd=0,Rr.value=0,Rr.valueEnd=0,Rr.textEnd=e.length}(e),Wh(e,va(e,0,Rr.textEnd))}(t);n>=0;n=Wh(t,n))On(e,zh(t),!0)}function ys(e,t,n,r){const i=Ze(),s=Vt(),l=Zr(2);s.firstUpdatePass&&Jh(s,e,l,r),t!==un&&Jr(i,l,t)&&ep(s,s.data[lr()],i,i[11],e,i[l+1]=function uD(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ie(lo(e)))),e}(t,n),r,l)}function vs(e,t,n,r){const i=Vt(),s=Zr(2);i.firstUpdatePass&&Jh(i,null,s,r);const l=Ze();if(n!==un&&Jr(l,s,n)){const h=i.data[lr()];if(np(h,r)&&!qh(i,s)){let g=r?h.classesWithoutHost:h.stylesWithoutHost;null!==g&&(n=te(g,n||"")),uc(i,h,l,n,r)}else!function lD(e,t,n,r,i,s,l,h){i===un&&(i=st);let g=0,T=0,M=0<i.length?i[0]:null,k=0<s.length?s[0]:null;for(;null!==M||null!==k;){const ce=g<i.length?i[g+1]:void 0,Pe=T<s.length?s[T+1]:void 0;let at,qe=null;M===k?(g+=2,T+=2,ce!==Pe&&(qe=k,at=Pe)):null===k||null!==M&&M<k?(g+=2,qe=M):(T+=2,qe=k,at=Pe),null!==qe&&ep(e,t,n,r,qe,at,l,h),M=g<i.length?i[g]:null,k=T<s.length?s[T]:null}}(i,h,l,l[11],l[s+1],l[s+1]=function aD(e,t,n){if(null==n||""===n)return st;const r=[],i=lo(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}function qh(e,t){return t>=e.expandoStartIndex}function Jh(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[lr()],l=qh(e,n);np(s,r)&&null===t&&!l&&(t=!1),t=function rD(e,t,n,r){const i=os(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Va(n=Dc(null,e,t,n,r),t.attrs,r),s=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==i)if(n=Dc(i,e,t,n,r),null===s){let g=function iD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==co(r))return e[ms(r)]}(e,t,r);void 0!==g&&Array.isArray(g)&&(g=Dc(null,e,t,g[1],r),g=Va(g,t.attrs,r),function sD(e,t,n,r){e[ms(n?t.classBindings:t.styleBindings)]=r}(e,t,r,g))}else s=function oD(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Va(r,e[s].hostAttrs,n);return Va(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function K_(e,t,n,r,i,s){let l=s?t.classBindings:t.styleBindings,h=ms(l),g=co(l);e[r]=n;let M,T=!1;if(Array.isArray(n)){const k=n;M=k[1],(null===M||ur(k,M)>0)&&(T=!0)}else M=n;if(i)if(0!==g){const ce=ms(e[h+1]);e[r+1]=hl(ce,h),0!==ce&&(e[ce+1]=Lu(e[ce+1],r)),e[h+1]=function Uv(e,t){return 131071&e|t<<17}(e[h+1],r)}else e[r+1]=hl(h,0),0!==h&&(e[h+1]=Lu(e[h+1],r)),h=r;else e[r+1]=hl(g,0),0===h?h=r:e[g+1]=Lu(e[g+1],r),g=r;T&&(e[r+1]=Fu(e[r+1])),Vh(e,M,r,!0),Vh(e,M,r,!1),function Z_(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&ur(s,t)>=0&&(n[r+1]=Bu(n[r+1]))}(t,M,e,r,s),l=hl(h,g),s?t.classBindings=l:t.styleBindings=l}(i,s,t,n,l,r)}}function Dc(e,t,n,r,i){let s=null;const l=n.directiveEnd;let h=n.directiveStylingLast;for(-1===h?h=n.directiveStart:h++;h<l&&(s=t[h],r=Va(r,s.hostAttrs,i),s!==e);)h++;return null!==e&&(n.directiveStylingLast=h),r}function Va(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const l=t[s];"number"==typeof l?i=l:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),On(e,l,!!n||t[++s]))}return void 0===e?null:e}function ep(e,t,n,r,i,s,l,h){if(!(3&t.type))return;const g=e.data,T=g[h+1];Sl(function Vf(e){return 1==(1&e)}(T)?tp(g,t,n,i,co(T),l):void 0)||(Sl(s)||function $f(e){return 2==(2&e)}(T)&&(s=tp(g,null,n,i,h,l)),function Jy(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=-1===r.indexOf("-")?void 0:Bs.DashCase;null==i?e.removeStyle(n,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Bs.Important),e.setStyle(n,r,i,s))}}(r,l,Kn(lr(),n),i,s))}function tp(e,t,n,r,i,s){const l=null===t;let h;for(;i>0;){const g=e[i],T=Array.isArray(g),M=T?g[1]:g,k=null===M;let ce=n[i+1];ce===un&&(ce=k?st:void 0);let Pe=k?Ni(ce,r):M===r?ce:void 0;if(T&&!Sl(Pe)&&(Pe=Ni(g,r)),Sl(Pe)&&(h=Pe,l))return h;const qe=e[i+1];i=l?ms(qe):co(qe)}if(null!==t){let g=s?t.residualClasses:t.residualStyles;null!=g&&(h=Ni(g,r))}return h}function Sl(e){return void 0!==e}function np(e,t){return 0!=(e.flags&(t?16:32))}function rp(e,t=""){const n=Ze(),r=Vt(),i=e+22,s=r.firstCreatePass?aa(r,i,1,t,null):r.data[i],l=n[i]=function fu(e,t){return e.createText(t)}(n[11],t);ul(r,n,l,s),Gr(s,!1)}function Ec(e){return Il("",e,""),Ec}function Il(e,t,n){const r=Ze(),i=ca(r,e,t,n);return i!==un&&fo(r,lr(),i),Il}function Cc(e,t,n,r,i){const s=Ze(),l=da(s,e,t,n,r,i);return l!==un&&fo(s,lr(),l),Cc}function dp(e,t,n){vs(On,Vs,ca(Ze(),e,t,n),!0)}function bc(e,t,n){const r=Ze();return Jr(r,Kr(),t)&&Fi(Vt(),Pn(),r,e,t,r[11],n,!0),bc}function wc(e,t,n){const r=Ze();if(Jr(r,Kr(),t)){const s=Vt(),l=Pn();Fi(s,l,r,e,t,fh(os(s.data),l,r),n,!0)}return wc}const Uo=void 0;var AD=["en",[["a","p"],["AM","PM"],Uo],[["AM","PM"],Uo,Uo],[["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"]],Uo,[["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"]],Uo,[["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}",Uo,"{1} 'at' {0}",Uo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ID(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let _a={};function Tc(e){const t=function MD(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Cp(t);if(n)return n;const r=t.split("-")[0];if(n=Cp(r),n)return n;if("en"===r)return AD;throw new xe(701,!1)}function Ep(e){return Tc(e)[Wt.PluralCase]}function Cp(e){return e in _a||(_a[e]=Se.ng&&Se.ng.common&&Se.ng.common.locales&&Se.ng.common.locales[e]),_a[e]}var Wt=(()=>((Wt=Wt||{})[Wt.LocaleId=0]="LocaleId",Wt[Wt.DayPeriodsFormat=1]="DayPeriodsFormat",Wt[Wt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Wt[Wt.DaysFormat=3]="DaysFormat",Wt[Wt.DaysStandalone=4]="DaysStandalone",Wt[Wt.MonthsFormat=5]="MonthsFormat",Wt[Wt.MonthsStandalone=6]="MonthsStandalone",Wt[Wt.Eras=7]="Eras",Wt[Wt.FirstDayOfWeek=8]="FirstDayOfWeek",Wt[Wt.WeekendRange=9]="WeekendRange",Wt[Wt.DateFormat=10]="DateFormat",Wt[Wt.TimeFormat=11]="TimeFormat",Wt[Wt.DateTimeFormat=12]="DateTimeFormat",Wt[Wt.NumberSymbols=13]="NumberSymbols",Wt[Wt.NumberFormats=14]="NumberFormats",Wt[Wt.CurrencyCode=15]="CurrencyCode",Wt[Wt.CurrencySymbol=16]="CurrencySymbol",Wt[Wt.CurrencyName=17]="CurrencyName",Wt[Wt.Currencies=18]="Currencies",Wt[Wt.Directionality=19]="Directionality",Wt[Wt.PluralCase=20]="PluralCase",Wt[Wt.ExtraData=21]="ExtraData",Wt))();const Da="en-US";let bp=Da;function Ac(e,t,n,r,i){if(e=de(e),Array.isArray(e))for(let s=0;s<e.length;s++)Ac(e[s],t,n,r,i);else{const s=Vt(),l=Ze();let h=Bo(e)?e:de(e.provide),g=Af(e);const T=Bn(),M=1048575&T.providerIndexes,k=T.directiveStart,ce=T.providerIndexes>>20;if(Bo(e)||!e.multi){const Pe=new cs(g,i,oa),qe=Pc(h,t,i?M:M+ce,k);-1===qe?(Ki(xi(T,l),s,h),Mc(s,e,t.length),t.push(h),T.directiveStart++,T.directiveEnd++,i&&(T.providerIndexes+=1048576),n.push(Pe),l.push(Pe)):(n[qe]=Pe,l[qe]=Pe)}else{const Pe=Pc(h,t,M+ce,k),qe=Pc(h,t,M,M+ce),at=Pe>=0&&n[Pe],Ct=qe>=0&&n[qe];if(i&&!Ct||!i&&!at){Ki(xi(T,l),s,h);const Rt=function I0(e,t,n,r,i){const s=new cs(e,n,oa);return s.multi=[],s.index=t,s.componentProviders=0,Zp(s,i,r&&!n),s}(i?S0:T0,n.length,i,r,g);!i&&Ct&&(n[qe].providerFactory=Rt),Mc(s,e,t.length,0),t.push(h),T.directiveStart++,T.directiveEnd++,i&&(T.providerIndexes+=1048576),n.push(Rt),l.push(Rt)}else Mc(s,e,Pe>-1?Pe:qe,Zp(n[i?qe:Pe],g,!i&&r));!i&&r&&Ct&&n[qe].componentProviders++}}}function Mc(e,t,n,r){const i=Bo(t),s=function yv(e){return!!e.useClass}(t);if(i||s){const g=(s?de(t.useClass):t).prototype.ngOnDestroy;if(g){const T=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const M=T.indexOf(n);-1===M?T.push(n,[r,g]):T[M+1].push(r,g)}else T.push(n,g)}}}function Zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Pc(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function T0(e,t,n,r){return Oc(this.multi,[])}function S0(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const l=this.providerFactory.componentProviders,h=Yi(n,n[1],this.providerFactory.index,r);s=h.slice(0,l),Oc(i,s);for(let g=l;g<h.length;g++)s.push(h[g])}else s=[],Oc(i,s);return s}function Oc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Yp(e,t=[]){return n=>{n.providersResolver=(r,i)=>function w0(e,t,n){const r=Vt();if(r.firstCreatePass){const i=ir(e);Ac(n,r.data,r.blueprint,i,!0),Ac(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class M0{resolveComponentFactory(t){throw function A0(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Za=(()=>{class e{}return e.NULL=new M0,e})();class $o{}class qp{}class Jp{}function O0(){return Ca(Bn(),Ze())}function Ca(e,t){return new Ya(Dn(e,t))}let Ya=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=O0,e})();function R0(e){return e instanceof Ya?e.nativeElement:e}class Xp{}let x0=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function N0(){const e=Ze(),n=qn(Bn().index,e);return(xn(n)?n:e)[11]}(),e})(),k0=(()=>{class e{}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:()=>null}),e})();class eg{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const tg=new eg("14.0.5"),Rc={};function Rl(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(ht(s)),$n(s))for(let h=10;h<s.length;h++){const g=s[h],T=g[1].firstChild;null!==T&&Rl(g[1],g,T,r)}const l=n.type;if(8&l)Rl(e,t,n.child,r);else if(32&l){const h=uu(n,t);let g;for(;g=h();)r.push(g)}else if(16&l){const h=af(t,n);if(Array.isArray(h))r.push(...h);else{const g=Ba(t[16]);Rl(g[1],g,h,r,!0)}}n=i?n.projectionNext:n.next}return r}class Qa{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Rl(n,t,n.firstChild,[])}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($n(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(pu(t,r),pn(n,r))}this._attachedToViewContainer=!1}Qd(this._lView[1],this._lView)}onDestroy(t){th(this._lView[1],this._lView,null,t)}markForCheck(){ec(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function nc(e,t,n){const r=t[10];r.begin&&r.begin();try{Ha(e,t,e.template,n)}catch(i){throw hh(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new xe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $y(e,t){ja(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new xe(902,!1);this._appRef=t}}class F0 extends Qa{constructor(t){super(t),this._view=t}detectChanges(){uh(this._view)}checkNoChanges(){}get context(){return null}}class xc extends Za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ee(t);return new Nc(n,this.ngModule)}}function ng(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class B0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const i=this.injector.get(t,Rc,r);return i!==Rc||n===Rc?i:this.parentInjector.get(t,n,r)}}class Nc extends Jp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function lv(e){return e.map(av).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ng(this.componentDef.inputs)}get outputs(){return ng(this.componentDef.outputs)}create(t,n,r,i){let s=(i=i||this.ngModule)instanceof ra?i:i?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const l=s?new B0(t,s):t,h=l.get(Xp,null);if(null===h)throw new xe(407,!1);const g=l.get(k0,null),T=h.createRenderer(null,this.componentDef),M=this.componentDef.selectors[0][0]||"div",k=r?function n_(e,t,n){return e.selectRootElement(t,n===Ke.ShadowDom)}(T,r,this.componentDef.encapsulation):hu(h.createRenderer(null,this.componentDef),M,function L0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(M)),ce=this.componentDef.onPush?288:272,Pe=function I_(e,t){return{components:[],scheduler:e||Ry,clean:w_,playerHandler:t||null,flags:0}}(),qe=Qu(0,null,null,1,0,null,null,null,null,null),at=ml(null,qe,Pe,ce,null,null,h,T,g,l,null);let Ct,Rt;Wi(at);try{const Qt=function T_(e,t,n,r,i,s){const l=n[1];n[22]=e;const g=aa(l,22,2,"#host",null),T=g.mergedAttrs=t.hostAttrs;null!==T&&(_l(g,T,!0),null!==e&&(ui(i,e,T),null!==g.classes&&_u(i,e,g.classes),null!==g.styles&&cf(i,e,g.styles)));const M=r.createRenderer(e,t),k=ml(n,eh(t),null,t.onPush?32:16,n[22],g,r,M,s||null,null,null);return l.firstCreatePass&&(Ki(xi(g,n),l,t.type),sh(l,g),oh(g,n.length,1)),vl(n,k),n[22]=k}(k,this.componentDef,at,h,T);if(k)if(r)ui(T,k,["ng-version",tg.full]);else{const{attrs:et,classes:Ht}=function uv(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!gs(i))break;i=s}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);et&&ui(T,k,et),Ht&&Ht.length>0&&_u(T,k,Ht.join(" "))}if(Rt=jr(qe,22),void 0!==n){const et=Rt.projection=[];for(let Ht=0;Ht<this.ngContentSelectors.length;Ht++){const En=n[Ht];et.push(null!=En?Array.from(En):null)}}Ct=function S_(e,t,n,r,i){const s=n[1],l=function l_(e,t,n){const r=Bn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ah(e,r,t,la(e,t,1,null),n));const i=Yi(t,e,r.directiveStart,r);qr(i,t);const s=Dn(r,t);return s&&qr(s,t),i}(s,n,t);if(r.components.push(l),e[8]=l,null!==i)for(const g of i)g(l,t);if(t.contentQueries){const g=Bn();t.contentQueries(1,l,g.directiveStart)}const h=Bn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Mi(h.index),rh(n[1],h,0,h.directiveStart,h.directiveEnd,t),ih(t,l)),l}(Qt,this.componentDef,at,Pe,[A_]),yl(qe,at,null)}finally{Ks()}return new H0(this.componentType,Ct,Ca(Rt,at),at,Rt)}}class H0 extends class P0{}{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new F0(i),this.componentType=t}get injector(){return new a(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function U0(e,t){return new rg(e,t??null)}class rg extends $o{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new xc(this);const r=Kt(t);this._bootstrapComponents=uo(r.bootstrap),this._r3Injector=Pf(t,n,[{provide:$o,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this.get(t)}get(t,n=js.THROW_IF_NOT_FOUND,r=Mt.Default){return t===js||t===$o||t===bu?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class kc extends qp{constructor(t){super(),this.moduleType=t}create(t){return new rg(this.moduleType,t)}}class $0 extends $o{constructor(t,n,r){super(),this.componentFactoryResolver=new xc(this),this.instance=null;const i=new If([...t,{provide:$o,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],n||Su(),r,new Set(["environment"]));this.injector=i,i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Fc(e,t=null,n=null){return new $0(e,t,n).injector}function cg(e,t,n){const r=dr()+e,i=Ze();return i[r]===un?Us(i,r,n?t.call(n):t()):$a(i,r)}function dg(e,t,n,r){return mg(Ze(),dr(),e,t,n,r)}function fg(e,t,n,r,i){return yg(Ze(),dr(),e,t,n,r,i)}function hg(e,t,n,r,i,s){return function vg(e,t,n,r,i,s,l,h){const g=t+n;return function El(e,t,n,r,i){const s=Ho(e,t,n,r);return Jr(e,t+2,i)||s}(e,g,i,s,l)?Us(e,g+3,h?r.call(h,i,s,l):r(i,s,l)):qa(e,g+3)}(Ze(),dr(),e,t,n,r,i,s)}function pg(e,t,n,r,i,s,l){return function _g(e,t,n,r,i,s,l,h,g){const T=t+n;return qi(e,T,i,s,l,h)?Us(e,T+4,g?r.call(g,i,s,l,h):r(i,s,l,h)):qa(e,T+4)}(Ze(),dr(),e,t,n,r,i,s,l)}function gg(e,t,n,r,i,s,l,h){const g=dr()+e,T=Ze(),M=qi(T,g,n,r,i,s);return Jr(T,g+4,l)||M?Us(T,g+5,h?t.call(h,n,r,i,s,l):t(n,r,i,s,l)):$a(T,g+5)}function qa(e,t){const n=e[t];return n===un?void 0:n}function mg(e,t,n,r,i,s){const l=t+n;return Jr(e,l,i)?Us(e,l+1,s?r.call(s,i):r(i)):qa(e,l+1)}function yg(e,t,n,r,i,s,l){const h=t+n;return Ho(e,h,i,s)?Us(e,h+2,l?r.call(l,i,s):r(i,s)):qa(e,h+2)}function Eg(e,t){const n=Vt();let r;const i=e+22;n.firstCreatePass?(r=function rE(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 s=r.factory||(r.factory=Ar(r.type)),l=Rn(oa);try{const h=fs(!1),g=s();return fs(h),function $_(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ze(),i,g),g}finally{Rn(l)}}function Cg(e,t,n){const r=e+22,i=Ze(),s=Vn(i,r);return Ja(i,r)?mg(i,dr(),t,s.transform,n,s):s.transform(n)}function bg(e,t,n,r){const i=e+22,s=Ze(),l=Vn(s,i);return Ja(s,i)?yg(s,dr(),t,l.transform,n,r,l):l.transform(n,r)}function Ja(e,t){return e[1].data[t].pure}function Bc(e){return t=>{setTimeout(e,void 0,t)}}const zs=class aE extends m.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,s=n||(()=>null),l=r;if(t&&"object"==typeof t){const g=t;i=g.next?.bind(g),s=g.error?.bind(g),l=g.complete?.bind(g)}this.__isAsync&&(s=Bc(s),i&&(i=Bc(i)),l&&(l=Bc(l)));const h=super.subscribe({next:i,error:s,complete:l});return t instanceof c.w0&&t.add(h),h}};function lE(){return this._results[jo()]()}class xl{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=jo(),r=xl.prototype;r[n]||(r[n]=lE)}get changes(){return this._changes||(this._changes=new zs)}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=mt(t);(this._changesDetected=!function xs(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==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 Xa=(()=>{class e{}return e.__NG_ELEMENT_ID__=dE,e})();const uE=Xa,cE=class extends uE{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,i=ml(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);i[17]=this._declarationLView[this._declarationTContainer.index];const l=this._declarationLView[19];return null!==l&&(i[19]=l.createEmbeddedView(r)),yl(r,i,t),new Qa(i)}};function dE(){return Nl(Bn(),Ze())}function Nl(e,t){return 4&e.type?new cE(t,e,Ca(e,t)):null}let kl=(()=>{class e{}return e.__NG_ELEMENT_ID__=fE,e})();function fE(){return Sg(Bn(),Ze())}const hE=kl,wg=class extends hE{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ca(this._hostTNode,this._hostLView)}get injector(){return new a(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ms(this._hostTNode,this._hostLView);if(Do(t)){const n=ci(t,this._hostLView),r=Oi(t);return new a(n[1].data[r+8],n)}return new a(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Tg(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const l=t.createEmbeddedView(n||{},s);return this.insert(l,i),l}createComponent(t,n,r,i,s){const l=t&&!function _r(e){return"function"==typeof e}(t);let h;if(l)h=n;else{const k=n||{};h=k.index,r=k.injector,i=k.projectableNodes,s=k.environmentInjector||k.ngModuleRef}const g=l?t:new Nc(Ee(t)),T=r||this.parentInjector;if(!s&&null==g.ngModule){const ce=(l?T:this.parentInjector).get(ra,null);ce&&(s=ce)}const M=g.create(T,i,void 0,s);return this.insert(M.hostView,h),M}insert(t,n){const r=t._lView,i=r[1];if(function E(e){return $n(e[3])}(r)){const M=this.indexOf(t);if(-1!==M)this.detach(M);else{const k=r[3],ce=new wg(k,k[6],k[3]);ce.detach(ce.indexOf(t))}}const s=this._adjustIndex(n),l=this._lContainer;!function zy(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r<s-10?(t[4]=n[i],Ut(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const l=t[17];null!==l&&n!==l&&function Wy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(l,t);const h=t[19];null!==h&&h.insertView(e),t[2]|=64}(i,r,l,s);const h=yu(s,l),g=r[11],T=ll(g,l[7]);return null!==T&&function Uy(e,t,n,r,i,s){r[0]=i,r[6]=t,ja(e,r,n,1,i,s)}(i,l[6],g,r,T,h),t.attachToViewContainerRef(),Ut(jc(l),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Tg(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=pu(this._lContainer,n);r&&(pn(jc(this._lContainer),n),Qd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=pu(this._lContainer,n);return r&&null!=pn(jc(this._lContainer),n)?new Qa(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Tg(e){return e[8]}function jc(e){return e[8]||(e[8]=[])}function Sg(e,t){let n;const r=t[e.index];if($n(r))n=r;else{let i;if(8&e.type)i=ht(r);else{const s=t[11];i=s.createComment("");const l=Dn(e,t);Lo(s,ll(s,l),i,function Yy(e,t){return e.nextSibling(t)}(s,l),!1)}t[e.index]=n=lh(r,t,i,e),vl(t,n)}return new wg(n,e,t)}class Hc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Hc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Uc{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 s=0;s<r;s++){const l=n.getByIndex(s);i.push(this.queries[l.indexInDeclarationView].clone())}return new Uc(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!==kg(t,n).matches&&this.queries[n].setDirty()}}class Ig{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class $c{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,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new $c(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 Vc{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 Vc(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 s=r[i];this.matchTNodeWithReadOption(t,n,mE(n,s)),this.matchTNodeWithReadOption(t,n,Zi(n,t,s,!1,!1))}else r===Xa?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Zi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Ya||i===kl||i===Xa&&4&n.type)this.addMatch(n.index,-2);else{const s=Zi(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function mE(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 vE(e,t,n,r){return-1===n?function yE(e,t){return 11&e.type?Ca(e,t):4&e.type?Nl(e,t):null}(t,e):-2===n?function _E(e,t,n){return n===Ya?Ca(t,e):n===Xa?Nl(t,e):n===kl?Sg(t,e):void 0}(e,t,r):Yi(e,e[1],n,t)}function Ag(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const s=e.data,l=n.matches,h=[];for(let g=0;g<l.length;g+=2){const T=l[g];h.push(T<0?null:vE(t,s[T],l[g+1],n.metadata.read))}i.matches=h}return i.matches}function zc(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const l=Ag(e,t,i,n);for(let h=0;h<s.length;h+=2){const g=s[h];if(g>0)r.push(l[h/2]);else{const T=s[h+1],M=t[-g];for(let k=10;k<M.length;k++){const ce=M[k];ce[17]===ce[3]&&zc(ce[1],ce,T,r)}if(null!==M[9]){const k=M[9];for(let ce=0;ce<k.length;ce++){const Pe=k[ce];zc(Pe[1],Pe,T,r)}}}}}return r}function Mg(e){const t=Ze(),n=Vt(),r=mo();as(r+1);const i=kg(n,r);if(e.dirty&&D(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?zc(n,t,r,[]):Ag(n,t,i,r);e.reset(s,R0),e.notifyOnChanges()}return!0}return!1}function Pg(e,t,n){const r=Vt();r.firstCreatePass&&(Ng(r,new Ig(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),xg(r,Ze(),t)}function Og(e,t,n,r){const i=Vt();if(i.firstCreatePass){const s=Bn();Ng(i,new Ig(t,n,r),s.index),function EE(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)}xg(i,Ze(),n)}function Rg(){return function DE(e,t){return e[19].queries[t].queryList}(Ze(),mo())}function xg(e,t,n){const r=new xl(4==(4&n));th(e,t,r,r.destroy),null===t[19]&&(t[19]=new Uc),t[19].queries.push(new Hc(r))}function Ng(e,t,n){null===e.queries&&(e.queries=new $c),e.queries.track(new Vc(t,n))}function kg(e,t){return e.queries.getByIndex(t)}function Fg(e,t){return Nl(e,t)}function wa(e){const t=Ee(e)||dt(e)||At(e);return null!==t&&t.standalone}function Ll(...e){}const tm=new u("Application Initializer");let Bl=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ll,this.reject=Ll,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 s=this.appInits[i]();if(fc(s))n.push(s);else if(Mh(s)){const l=new Promise((h,g)=>{s.subscribe({complete:h,error:g})});n.push(l)}}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)(hr(tm,8))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const nm=new u("AppId",{providedIn:"root",factory:function rm(){return`${Yc()}${Yc()}${Yc()}`}});function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const im=new u("Platform Initializer"),UE=new u("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),sm=new u("appBootstrapListener"),$E=new u("AnimationModuleType");let VE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const jl=new u("LocaleId",{providedIn:"root",factory:()=>Gl(jl,Mt.Optional|Mt.SkipSelf)||function zE(){return typeof $localize<"u"&&$localize.locale||Da}()}),WE=new u("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class GE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let KE=(()=>{class e{compileModuleSync(n){return new kc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=uo(Kt(n).declarations).reduce((l,h)=>{const g=Ee(h);return g&&l.push(new Nc(g)),l},[]);return new GE(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const QE=(()=>Promise.resolve(0))();function Qc(e){typeof Zone>"u"?QE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Li{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zs(!1),this.onMicrotaskEmpty=new zs(!1),this.onStable=new zs(!1),this.onError=new zs(!1),typeof Zone>"u")throw new xe(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 qE(){let e=Se.requestAnimationFrame,t=Se.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 eC(e){const t=()=>{!function XE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jc(e),e.isCheckStableRunning=!0,qc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,l,h)=>{try{return lm(e),n.invokeTask(i,s,l,h)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,r,i,s,l,h,g)=>{try{return lm(e),n.invoke(i,s,l,h,g)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Jc(e),qc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Li.isInAngularZone())throw new xe(909,!1)}static assertNotInAngularZone(){if(Li.isInAngularZone())throw new xe(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,l=s.scheduleEventTask("NgZoneEvent: "+i,t,JE,Ll,Ll);try{return s.runTask(l,n,r)}finally{s.cancelTask(l)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const JE={};function qc(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 Jc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function lm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,qc(e)}class tC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zs,this.onMicrotaskEmpty=new zs,this.onStable=new zs,this.onError=new zs}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 cm=new u(""),dm=new u("");let Xc,nC=(()=>{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,Xc||(function rC(e){Xc=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:()=>{Li.assertNotInAngularZone(),Qc(()=>{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())Qc(()=>{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 s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(l=>l.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,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)(hr(Li),hr(fm),hr(dm))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac}),e})(),fm=(()=>{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 Xc?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Io=null;const hm=new u("AllowMultipleToken"),ed=new u("PlatformDestroyListeners");class oC{constructor(t,n){this.name=t,this.token=n}}function gm(e,t,n=[]){const r=`Platform: ${t}`,i=new u(r);return(s=[])=>{let l=td();if(!l||l.injector.get(hm,!1)){const h=[...n,...s,{provide:i,useValue:!0}];e?e(h):function aC(e){if(Io&&!Io.get(hm,!1))throw new xe(400,!1);Io=e;const t=e.get(ym);(function pm(e){const t=e.get(im,null);t&&t.forEach(n=>n())})(e)}(function mm(e=[],t){return js.create({name:t,providers:[{provide:wu,useValue:"platform"},{provide:ed,useValue:new Set([()=>Io=null])},...e]})}(h,r))}return function uC(e){const t=td();if(!t)throw new xe(401,!1);return t}()}}function td(){return Io?.get(ym)??null}let ym=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function cC(e,t){let n;return n="noop"===e?new tC:("zone.js"===e?void 0:e)||new Li(t),n}(r?.ngZone,function vm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),s=[{provide:Li,useValue:i}];return i.run(()=>{const l=js.create({providers:s,parent:this.injector,name:n.moduleType.name}),h=n.create(l),g=h.injector.get(Fa,null);if(!g)throw new xe(402,!1);return i.runOutsideAngular(()=>{const T=i.onError.subscribe({next:M=>{g.handleError(M)}});h.onDestroy(()=>{Ul(this._modules,h),T.unsubscribe()})}),function _m(e,t,n){try{const r=n();return fc(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(g,i,()=>{const T=h.injector.get(Bl);return T.runInitializers(),T.donePromise.then(()=>(function wp(e){Bt(e,"Expected localeId to be defined"),"string"==typeof e&&(bp=e.toLowerCase().replace(/_/g,"-"))}(h.injector.get(jl,Da)||Da),this._moduleDoBootstrap(h),h))})})}bootstrapModule(n,r=[]){const i=Dm({},r);return function iC(e,t,n){const r=new kc(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(Hl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new xe(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 xe(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ed,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)(hr(js))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Dm(e,t){return Array.isArray(t)?t.reduce(Dm,e):{...e,...t}}let Hl=(()=>{class e{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 s=new F.y(h=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{h.next(this._stable),h.complete()})}),l=new F.y(h=>{let g;this._zone.runOutsideAngular(()=>{g=this._zone.onStable.subscribe(()=>{Li.assertNotInAngularZone(),Qc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,h.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{Li.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{h.next(!1)}))});return()=>{g.unsubscribe(),T.unsubscribe()}});this.isStable=(0,z.T)(s,l.pipe((0,U.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Jp;if(!this._injector.get(Bl).done)throw!i&&wa(n),new xe(405,false);let l;l=i?n:this._injector.get(Za).resolveComponentFactory(n),this.componentTypes.push(l.componentType);const h=function sC(e){return e.isBoundToModule}(l)?void 0:this._injector.get($o),T=l.create(js.NULL,[],r||l.selector,h),M=T.location.nativeElement,k=T.injector.get(cm,null);return k?.registerApplication(M),T.onDestroy(()=>{this.detachView(T.hostView),Ul(this.components,T),k?.unregisterApplication(M)}),this._loadComponent(T),T}tick(){if(this._runningTick)throw new xe(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;Ul(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sm,[]).concat(this._bootstrapListeners).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),()=>Ul(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new xe(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)(hr(Li),hr(js),hr(Fa))},e.\u0275prov=Ye({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ul(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Cm=!0,bm=!1;function fC(){return bm=!0,Cm}function hC(){if(bm)throw new Error("Cannot enable prod mode after platform setup.");Cm=!1}let pC=(()=>{class e{}return e.__NG_ELEMENT_ID__=gC,e})();function gC(e){return function mC(e,t,n){if(br(e)&&!n){const r=qn(e.index,t);return new Qa(r,r)}return 47&e.type?new Qa(t[16],t):null}(Bn(),Ze(),16==(16&e))}class Im{constructor(){}supports(t){return Ua(t)}create(t){return new CC(t)}}const EC=(e,t)=>t;class CC{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||EC}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,s=null;for(;n||r;){const l=!r||n&&n.currentIndex<Mm(r,i,s)?n:r,h=Mm(l,i,s),g=l.currentIndex;if(l===r)i--,r=r._nextRemoved;else if(n=n._next,null==l.previousIndex)i++;else{s||(s=[]);const T=h-i,M=g-i;if(T!=M){for(let ce=0;ce<T;ce++){const Pe=ce<s.length?s[ce]:s[ce]=0,qe=Pe+ce;M<=qe&&qe<T&&(s[ce]=Pe+1)}s[l.previousIndex]=M-T}}h!==g&&t(l,h,g)}}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=[]),!Ua(t))throw new xe(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,l,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let h=0;h<this.length;h++)s=t[h],l=this._trackByFn(h,s),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,s,l,h)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,l,h),r=!0),n=n._next}else i=0,function L_(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[jo()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,h=>{l=this._trackByFn(i,h),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,h,l,i)),Object.is(n.item,h)||this._addIdentityChange(n,h)):(n=this._mismatch(n,h,l,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 s;return null===t?s=this._itTail:(s=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,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new bC(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,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,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._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 Am),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 Am),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 bC{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 wC{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 Am{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new wC,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 Mm(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 Pm{constructor(){}supports(t){return t instanceof Map||oc(t)}create(){return new TC}}class TC{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||oc(t)))throw new xe(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 s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),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 s=i._prev,l=i._next;return s&&(s._next=l),l&&(l._prev=s),i._next=null,i._prev=null,i}const r=new SC(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 SC{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 Om(){return new od([new Im])}let od=(()=>{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||Om()),deps:[[e,new Ft,new Xe]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new xe(901,!1)}}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:Om}),e})();function Rm(){return new ad([new Pm])}let ad=(()=>{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||Rm()),deps:[[e,new Ft,new Xe]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new xe(901,!1)}}return e.\u0275prov=Ye({token:e,providedIn:"root",factory:Rm}),e})();const MC=gm(null,"core",[]);let PC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(hr(Hl))},e.\u0275mod=rn({type:e}),e.\u0275inj=Fe({}),e})();function OC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},1481:(it,De,b)=>{b.d(De,{Dx:()=>fe,H7:()=>Kt,b2:()=>St,q6:()=>Mt,se:()=>ve});var m=b(6895),c=b(4650);class F extends m.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class z extends F{static makeCurrent(){(0,m.HT)(new z)}onAndCancel(G,j,he){return G.addEventListener(j,he,!1),()=>{G.removeEventListener(j,he,!1)}}dispatchEvent(G,j){G.dispatchEvent(j)}remove(G){G.parentNode&&G.parentNode.removeChild(G)}createElement(G,j){return(j=j||this.getDefaultDocument()).createElement(G)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(G){return G.nodeType===Node.ELEMENT_NODE}isShadowRoot(G){return G instanceof DocumentFragment}getGlobalEventTarget(G,j){return"window"===j?window:"document"===j?G:"body"===j?G.body:null}getBaseHref(G){const j=function J(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==j?null:function ie(Q){ee=ee||document.createElement("a"),ee.setAttribute("href",Q);const G=ee.pathname;return"/"===G.charAt(0)?G:`/${G}`}(j)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(G){return(0,m.Mx)(document.cookie,G)}}let ee,U=null;const te=new c.OlP("TRANSITION_ID"),L=[{provide:c.ip1,useFactory:function R(Q,G,j){return()=>{j.get(c.CZH).donePromise.then(()=>{const he=(0,m.q)(),Qe=G.querySelectorAll(`style[ng-transition="${Q}"]`);for(let yt=0;yt<Qe.length;yt++)he.remove(Qe[yt])})}},deps:[te,m.K0,c.zs3],multi:!0}];let je=(()=>{class Q{build(){return new XMLHttpRequest}}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Oe=new c.OlP("EventManagerPlugins");let xe=(()=>{class Q{constructor(j,he){this._zone=he,this._eventNameToPlugin=new Map,j.forEach(Qe=>Qe.manager=this),this._plugins=j.slice().reverse()}addEventListener(j,he,Qe){return this._findPluginFor(he).addEventListener(j,he,Qe)}addGlobalEventListener(j,he,Qe){return this._findPluginFor(he).addGlobalEventListener(j,he,Qe)}getZone(){return this._zone}_findPluginFor(j){const he=this._eventNameToPlugin.get(j);if(he)return he;const Qe=this._plugins;for(let yt=0;yt<Qe.length;yt++){const Zt=Qe[yt];if(Zt.supports(j))return this._eventNameToPlugin.set(j,Zt),Zt}throw new Error(`No event manager plugin found for event ${j}`)}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(Oe),c.LFG(c.R0b))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();class Be{constructor(G){this._doc=G}addGlobalEventListener(G,j,he){const Qe=(0,m.q)().getGlobalEventTarget(this._doc,G);if(!Qe)throw new Error(`Unsupported event target ${Qe} for event ${j}`);return this.addEventListener(Qe,j,he)}}let Ie=(()=>{class Q{constructor(){this._stylesSet=new Set}addStyles(j){const he=new Set;j.forEach(Qe=>{this._stylesSet.has(Qe)||(this._stylesSet.add(Qe),he.add(Qe))}),this.onStylesAdded(he)}onStylesAdded(j){}getAllStyles(){return Array.from(this._stylesSet)}}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})(),Te=(()=>{class Q extends Ie{constructor(j){super(),this._doc=j,this._hostNodes=new Map,this._hostNodes.set(j.head,[])}_addStylesToHost(j,he,Qe){j.forEach(yt=>{const Zt=this._doc.createElement("style");Zt.textContent=yt,Qe.push(he.appendChild(Zt))})}addHost(j){const he=[];this._addStylesToHost(this._stylesSet,j,he),this._hostNodes.set(j,he)}removeHost(j){const he=this._hostNodes.get(j);he&&he.forEach(Je),this._hostNodes.delete(j)}onStylesAdded(j){this._hostNodes.forEach((he,Qe)=>{this._addStylesToHost(j,Qe,he)})}ngOnDestroy(){this._hostNodes.forEach(j=>j.forEach(Je))}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();function Je(Q){(0,m.q)().remove(Q)}const ke={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,K="%COMP%",le=`_nghost-${K}`,ue=`_ngcontent-${K}`;function H(Q,G,j){for(let he=0;he<G.length;he++){let Qe=G[he];Array.isArray(Qe)?H(Q,Qe,j):(Qe=Qe.replace(Ce,Q),j.push(Qe))}return j}function ne(Q){return G=>{if("__ngUnwrap__"===G)return Q;!1===Q(G)&&(G.preventDefault(),G.returnValue=!1)}}let ve=(()=>{class Q{constructor(j,he,Qe){this.eventManager=j,this.sharedStylesHost=he,this.appId=Qe,this.rendererByCompId=new Map,this.defaultRenderer=new _e(j)}createRenderer(j,he){if(!j||!he)return this.defaultRenderer;switch(he.encapsulation){case c.ifc.Emulated:{let Qe=this.rendererByCompId.get(he.id);return Qe||(Qe=new Bt(this.eventManager,this.sharedStylesHost,he,this.appId),this.rendererByCompId.set(he.id,Qe)),Qe.applyToHost(j),Qe}case 1:case c.ifc.ShadowDom:return new lt(this.eventManager,this.sharedStylesHost,j,he);default:if(!this.rendererByCompId.has(he.id)){const Qe=H(he.id,he.styles,[]);this.sharedStylesHost.addStyles(Qe),this.rendererByCompId.set(he.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(xe),c.LFG(Te),c.LFG(c.AFp))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();class _e{constructor(G){this.eventManager=G,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(G,j){return j?document.createElementNS(ke[j]||j,G):document.createElement(G)}createComment(G){return document.createComment(G)}createText(G){return document.createTextNode(G)}appendChild(G,j){(qt(G)?G.content:G).appendChild(j)}insertBefore(G,j,he){G&&(qt(G)?G.content:G).insertBefore(j,he)}removeChild(G,j){G&&G.removeChild(j)}selectRootElement(G,j){let he="string"==typeof G?document.querySelector(G):G;if(!he)throw new Error(`The selector "${G}" did not match any elements`);return j||(he.textContent=""),he}parentNode(G){return G.parentNode}nextSibling(G){return G.nextSibling}setAttribute(G,j,he,Qe){if(Qe){j=Qe+":"+j;const yt=ke[Qe];yt?G.setAttributeNS(yt,j,he):G.setAttribute(j,he)}else G.setAttribute(j,he)}removeAttribute(G,j,he){if(he){const Qe=ke[he];Qe?G.removeAttributeNS(Qe,j):G.removeAttribute(`${he}:${j}`)}else G.removeAttribute(j)}addClass(G,j){G.classList.add(j)}removeClass(G,j){G.classList.remove(j)}setStyle(G,j,he,Qe){Qe&(c.JOm.DashCase|c.JOm.Important)?G.style.setProperty(j,he,Qe&c.JOm.Important?"important":""):G.style[j]=he}removeStyle(G,j,he){he&c.JOm.DashCase?G.style.removeProperty(j):G.style[j]=""}setProperty(G,j,he){G[j]=he}setValue(G,j){G.nodeValue=j}listen(G,j,he){return"string"==typeof G?this.eventManager.addGlobalEventListener(G,j,ne(he)):this.eventManager.addEventListener(G,j,ne(he))}}function qt(Q){return"TEMPLATE"===Q.tagName&&void 0!==Q.content}class Bt extends _e{constructor(G,j,he,Qe){super(G),this.component=he;const yt=H(Qe+"-"+he.id,he.styles,[]);j.addStyles(yt),this.contentAttr=function W(Q){return ue.replace(Ce,Q)}(Qe+"-"+he.id),this.hostAttr=function ge(Q){return le.replace(Ce,Q)}(Qe+"-"+he.id)}applyToHost(G){super.setAttribute(G,this.hostAttr,"")}createElement(G,j){const he=super.createElement(G,j);return super.setAttribute(he,this.contentAttr,""),he}}class lt extends _e{constructor(G,j,he,Qe){super(G),this.sharedStylesHost=j,this.hostEl=he,this.shadowRoot=he.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const yt=H(Qe.id,Qe.styles,[]);for(let Zt=0;Zt<yt.length;Zt++){const mn=document.createElement("style");mn.textContent=yt[Zt],this.shadowRoot.appendChild(mn)}}nodeOrShadowRoot(G){return G===this.hostEl?this.shadowRoot:G}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(G,j){return super.appendChild(this.nodeOrShadowRoot(G),j)}insertBefore(G,j,he){return super.insertBefore(this.nodeOrShadowRoot(G),j,he)}removeChild(G,j){return super.removeChild(this.nodeOrShadowRoot(G),j)}parentNode(G){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(G)))}}let dn=(()=>{class Q extends Be{constructor(j){super(j)}supports(j){return!0}addEventListener(j,he,Qe){return j.addEventListener(he,Qe,!1),()=>this.removeEventListener(j,he,Qe)}removeEventListener(j,he,Qe){return j.removeEventListener(he,Qe)}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const tn=["alt","control","meta","shift"],Ye={"\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"},ye={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Fe={alt:Q=>Q.altKey,control:Q=>Q.ctrlKey,meta:Q=>Q.metaKey,shift:Q=>Q.shiftKey};let ct=(()=>{class Q extends Be{constructor(j){super(j)}supports(j){return null!=Q.parseEventName(j)}addEventListener(j,he,Qe){const yt=Q.parseEventName(he),Zt=Q.eventCallback(yt.fullKey,Qe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,m.q)().onAndCancel(j,yt.domEventName,Zt))}static parseEventName(j){const he=j.toLowerCase().split("."),Qe=he.shift();if(0===he.length||"keydown"!==Qe&&"keyup"!==Qe)return null;const yt=Q._normalizeKey(he.pop());let Zt="";if(tn.forEach(Dt=>{const Sr=he.indexOf(Dt);Sr>-1&&(he.splice(Sr,1),Zt+=Dt+".")}),Zt+=yt,0!=he.length||0===yt.length)return null;const mn={};return mn.domEventName=Qe,mn.fullKey=Zt,mn}static getEventFullKey(j){let he="",Qe=function Tt(Q){let G=Q.key;if(null==G){if(G=Q.keyIdentifier,null==G)return"Unidentified";G.startsWith("U+")&&(G=String.fromCharCode(parseInt(G.substring(2),16)),3===Q.location&&ye.hasOwnProperty(G)&&(G=ye[G]))}return Ye[G]||G}(j);return Qe=Qe.toLowerCase()," "===Qe?Qe="space":"."===Qe&&(Qe="dot"),tn.forEach(yt=>{yt!=Qe&&Fe[yt](j)&&(he+=yt+".")}),he+=Qe,he}static eventCallback(j,he,Qe){return yt=>{Q.getEventFullKey(yt)===j&&Qe.runGuarded(()=>he(yt))}}static _normalizeKey(j){return"esc"===j?"escape":j}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:Q.\u0275fac}),Q})();const Mt=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:m.bD},{provide:c.g9A,useValue:function In(){z.makeCurrent()},multi:!0},{provide:m.K0,useFactory:function Nn(){return(0,c.RDi)(document),document},deps:[]}]),Hn=new c.OlP(""),_t=[{provide:c.rWj,useClass:class de{addToWindow(G){c.dqk.getAngularTestability=(he,Qe=!0)=>{const yt=G.findTestabilityInTree(he,Qe);if(null==yt)throw new Error("Could not find testability for element.");return yt},c.dqk.getAllAngularTestabilities=()=>G.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>G.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(he=>{const Qe=c.dqk.getAllAngularTestabilities();let yt=Qe.length,Zt=!1;const mn=function(Dt){Zt=Zt||Dt,yt--,0==yt&&he(Zt)};Qe.forEach(function(Dt){Dt.whenStable(mn)})})}findTestabilityInTree(G,j,he){return null==j?null:G.getTestability(j)??(he?(0,m.q)().isShadowRoot(j)?this.findTestabilityInTree(G,j.host,!0):this.findTestabilityInTree(G,j.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],Rn=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function jn(){return new c.qLn},deps:[]},{provide:Oe,useClass:dn,multi:!0,deps:[m.K0,c.R0b,c.Lbi]},{provide:Oe,useClass:ct,multi:!0,deps:[m.K0]},{provide:ve,useClass:ve,deps:[xe,Te,c.AFp]},{provide:c.FYo,useExisting:ve},{provide:Ie,useExisting:Te},{provide:Te,useClass:Te,deps:[m.K0]},{provide:xe,useClass:xe,deps:[Oe,c.R0b]},{provide:m.JF,useClass:je,deps:[]},[]];let St=(()=>{class Q{constructor(j){}static withServerTransition(j){return{ngModule:Q,providers:[{provide:c.AFp,useValue:j.appId},{provide:te,useExisting:c.AFp},L]}}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(Hn,12))},Q.\u0275mod=c.oAB({type:Q}),Q.\u0275inj=c.cJS({providers:[...Rn,..._t],imports:[m.ez,c.hGG]}),Q})(),fe=(()=>{class Q{constructor(j){this._doc=j}getTitle(){return this._doc.title}setTitle(j){this._doc.title=j||""}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:function(j){let he=null;return he=j?new j:function se(){return new fe((0,c.LFG)(m.K0))}(),he},providedIn:"root"}),Q})();typeof window<"u"&&window;let Kt=(()=>{class Q{}return Q.\u0275fac=function(j){return new(j||Q)},Q.\u0275prov=c.Yz7({token:Q,factory:function(j){let he=null;return he=j?new(j||Q):c.LFG(rt),he},providedIn:"root"}),Q})(),rt=(()=>{class Q extends Kt{constructor(j){super(),this._doc=j}sanitize(j,he){if(null==he)return null;switch(j){case c.q3G.NONE:return he;case c.q3G.HTML:return(0,c.qzn)(he,"HTML")?(0,c.z3N)(he):(0,c.EiD)(this._doc,String(he)).toString();case c.q3G.STYLE:return(0,c.qzn)(he,"Style")?(0,c.z3N)(he):he;case c.q3G.SCRIPT:if((0,c.qzn)(he,"Script"))return(0,c.z3N)(he);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(he,"URL")?(0,c.z3N)(he):(0,c.mCW)(String(he));case c.q3G.RESOURCE_URL:if((0,c.qzn)(he,"ResourceURL"))return(0,c.z3N)(he);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${j} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(j){return(0,c.JVY)(j)}bypassSecurityTrustStyle(j){return(0,c.L6k)(j)}bypassSecurityTrustScript(j){return(0,c.eBb)(j)}bypassSecurityTrustUrl(j){return(0,c.LAX)(j)}bypassSecurityTrustResourceUrl(j){return(0,c.pB0)(j)}}return Q.\u0275fac=function(j){return new(j||Q)(c.LFG(m.K0))},Q.\u0275prov=c.Yz7({token:Q,factory:function(j){let he=null;return he=j?new j:function hn(Q){return new rt(Q.get(m.K0))}(c.LFG(c.zs3)),he},providedIn:"root"}),Q})()},6806:(it,De,b)=>{b.d(De,{gz:()=>tr,m2:()=>Ye,F0:()=>or,Od:()=>As,yS:()=>ci,Bz:()=>Rs,lC:()=>Mr});var m=b(6895),c=b(4650),F=b(8306),z=b(727),U=b(4482),J=b(5403);function ee(){return(0,U.e)((f,d)=>{let u=null;f._refCount++;const y=(0,J.x)(d,void 0,void 0,void 0,()=>{if(!f||f._refCount<=0||0<--f._refCount)return void(u=null);const w=f._connection,P=u;u=null,w&&(!P||w===P)&&w.unsubscribe(),d.unsubscribe()});f.subscribe(y),y.closed||(u=f.connect())})}class ie extends F.y{constructor(d,u){super(),this.source=d,this.subjectFactory=u,this._subject=null,this._refCount=0,this._connection=null,(0,U.A)(d)&&(this.lift=d.lift)}_subscribe(d){return this.getSubject().subscribe(d)}getSubject(){const d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:d}=this;this._subject=this._connection=null,d?.unsubscribe()}connect(){let d=this._connection;if(!d){d=this._connection=new z.w0;const u=this.getSubject();d.add(this.source.subscribe((0,J.x)(u,void 0,()=>{this._teardown(),u.complete()},y=>{this._teardown(),u.error(y)},()=>this._teardown()))),d.closed&&(this._connection=null,d=z.w0.EMPTY)}return d}refCount(){return ee()(this)}}var te=b(8996),R=b(9646),L=b(1135),de=b(9841),je=b(2843),Oe=b(6805),xe=b(7272),Be=b(9770),Ie=b(515),Te=b(7579),Je=b(9300);function ke(f){return f<=0?()=>Ie.E:(0,U.e)((d,u)=>{let y=[];d.subscribe((0,J.x)(u,w=>{y.push(w),f<y.length&&y.shift()},()=>{for(const w of y)u.next(w);u.complete()},void 0,()=>{y=null}))})}var Ce=b(8068),x=b(6590),K=b(4671),ue=b(4004),W=b(3900),ge=b(5698),H=b(8675),ne=b(5026),me=b(262),ve=b(4351),_e=b(590),Ve=b(5577),ut=b(8505),qt=b(9718),Bt=b(8746),lt=b(8189),dn=b(1481);class tn{constructor(d,u){this.id=d,this.url=u}}class $e extends tn{constructor(d,u,y="imperative",w=null){super(d,u),this.type=0,this.navigationTrigger=y,this.restoredState=w}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ye extends tn{constructor(d,u,y){super(d,u),this.urlAfterRedirects=y,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ye extends tn{constructor(d,u,y){super(d,u),this.reason=y,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fe extends tn{constructor(d,u,y){super(d,u),this.error=y,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ct extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tt extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nn extends tn{constructor(d,u,y,w,P){super(d,u),this.urlAfterRedirects=y,this.state=w,this.shouldActivate=P,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vn extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wn extends tn{constructor(d,u,y,w){super(d,u),this.urlAfterRedirects=y,this.state=w,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class In{constructor(d){this.route=d,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class jn{constructor(d){this.route=d,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nn{constructor(d){this.snapshot=d,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Un{constructor(d){this.snapshot=d,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mt{constructor(d){this.snapshot=d,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hn{constructor(d){this.snapshot=d,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _t{constructor(d,u,y){this.routerEvent=d,this.position=u,this.anchor=y,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const St="primary";class ar{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const u=this.params[d];return Array.isArray(u)?u[0]:u}return null}getAll(d){if(this.has(d)){const u=this.params[d];return Array.isArray(u)?u:[u]}return[]}get keys(){return Object.keys(this.params)}}function wn(f){return new ar(f)}const He="Redirecting to ",se="ngNavigationCancelingError";function fe(f){const d=Error("NavigationCancelingError: "+(f||""));return d[se]=!0,d}function Se(f,d,u){const y=u.path.split("/");if(y.length>f.length||"full"===u.pathMatch&&(d.hasChildren()||y.length<f.length))return null;const w={};for(let P=0;P<y.length;P++){const B=y[P],oe=f[P];if(B.startsWith(":"))w[B.substring(1)]=oe;else if(B!==oe.path)return null}return{consumed:f.slice(0,y.length),posParams:w}}function Gt(f,d){const u=f?Object.keys(f):void 0,y=d?Object.keys(d):void 0;if(!u||!y||u.length!=y.length)return!1;let w;for(let P=0;P<u.length;P++)if(w=u[P],!$t(f[w],d[w]))return!1;return!0}function $t(f,d){if(Array.isArray(f)&&Array.isArray(d)){if(f.length!==d.length)return!1;const u=[...f].sort(),y=[...d].sort();return u.every((w,P)=>y[P]===w)}return f===d}function st(f){return Array.prototype.concat.apply([],f)}function an(f){return f.length>0?f[f.length-1]:null}function Jt(f,d){for(const u in f)f.hasOwnProperty(u)&&d(f[u],u)}function Nt(f){return(0,c.CqO)(f)?f:(0,c.QGY)(f)?(0,te.D)(Promise.resolve(f)):(0,R.of)(f)}const er={exact:function kt(f,d,u){if(!At(f.segments,d.segments)||!V(f.segments,d.segments,u)||f.numberOfChildren!==d.numberOfChildren)return!1;for(const y in d.children)if(!f.children[y]||!kt(f.children[y],d.children[y],u))return!1;return!0},subset:rn},pt={exact:function gt(f,d){return Gt(f,d)},subset:function jt(f,d){return Object.keys(d).length<=Object.keys(f).length&&Object.keys(d).every(u=>$t(f[u],d[u]))},ignored:()=>!0};function Ge(f,d,u){return er[u.paths](f.root,d.root,u.matrixParams)&&pt[u.queryParams](f.queryParams,d.queryParams)&&!("exact"===u.fragment&&f.fragment!==d.fragment)}function rn(f,d,u){return Y(f,d,d.segments,u)}function Y(f,d,u,y){if(f.segments.length>u.length){const w=f.segments.slice(0,u.length);return!(!At(w,u)||d.hasChildren()||!V(w,u,y))}if(f.segments.length===u.length){if(!At(f.segments,u)||!V(f.segments,u,y))return!1;for(const w in d.children)if(!f.children[w]||!rn(f.children[w],d.children[w],y))return!1;return!0}{const w=u.slice(0,f.segments.length),P=u.slice(f.segments.length);return!!(At(f.segments,w)&&V(f.segments,w,y)&&f.children[St])&&Y(f.children[St],d,P,y)}}function V(f,d,u){return d.every((y,w)=>pt[u](f[w].parameters,y.parameters))}class pe{constructor(d,u,y){this.root=d,this.queryParams=u,this.fragment=y}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return xt.serialize(this)}}class Re{constructor(d,u){this.segments=d,this.children=u,this.parent=null,Jt(u,(y,w)=>y.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Q(this)}}class Ee{constructor(d,u){this.path=d,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function At(f,d){return f.length===d.length&&f.every((u,y)=>u.path===d[y].path)}class hn{}class rt{parse(d){const u=new kr(d);return new pe(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(d){const u=`/${G(d.root,!0)}`,y=function xr(f){const d=Object.keys(f).map(u=>{const y=f[u];return Array.isArray(y)?y.map(w=>`${he(u)}=${he(w)}`).join("&"):`${he(u)}=${he(y)}`}).filter(u=>!!u);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${u}${y}${"string"==typeof d.fragment?`#${function Qe(f){return encodeURI(f)}(d.fragment)}`:""}`}}const xt=new rt;function Q(f){return f.segments.map(d=>Dt(d)).join("/")}function G(f,d){if(!f.hasChildren())return Q(f);if(d){const u=f.children[St]?G(f.children[St],!1):"",y=[];return Jt(f.children,(w,P)=>{P!==St&&y.push(`${P}:${G(w,!1)}`)}),y.length>0?`${u}(${y.join("//")})`:u}{const u=function Kt(f,d){let u=[];return Jt(f.children,(y,w)=>{w===St&&(u=u.concat(d(y,w)))}),Jt(f.children,(y,w)=>{w!==St&&(u=u.concat(d(y,w)))}),u}(f,(y,w)=>w===St?[G(f.children[St],!1)]:[`${w}:${G(y,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[St]?`${Q(f)}/${u[0]}`:`${Q(f)}/(${u.join("//")})`}}function j(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function he(f){return j(f).replace(/%3B/gi,";")}function yt(f){return j(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(f){return decodeURIComponent(f)}function mn(f){return Zt(f.replace(/\+/g,"%20"))}function Dt(f){return`${yt(f.path)}${function Sr(f){return Object.keys(f).map(d=>`;${yt(d)}=${yt(f[d])}`).join("")}(f.parameters)}`}const zr=/^[^\/()?;=#]+/;function gr(f){const d=f.match(zr);return d?d[0]:""}const kn=/^[^=?&#]+/,Nr=/^[^&#]+/;class kr{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let u={};this.peekStartsWith("/(")&&(this.capture("/"),u=this.parseParens(!0));let y={};return this.peekStartsWith("(")&&(y=this.parseParens(!1)),(d.length>0||Object.keys(u).length>0)&&(y[St]=new Re(d,u)),y}parseSegment(){const d=gr(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new c.vHH(4009,!1);return this.capture(d),new Ee(Zt(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const u=gr(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const w=gr(this.remaining);w&&(y=w,this.capture(y))}d[Zt(u)]=Zt(y)}parseQueryParam(d){const u=function Xr(f){const d=f.match(kn);return d?d[0]:""}(this.remaining);if(!u)return;this.capture(u);let y="";if(this.consumeOptional("=")){const B=function Fn(f){const d=f.match(Nr);return d?d[0]:""}(this.remaining);B&&(y=B,this.capture(y))}const w=mn(u),P=mn(y);if(d.hasOwnProperty(w)){let B=d[w];Array.isArray(B)||(B=[B],d[w]=B),B.push(P)}else d[w]=P}parseParens(d){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const y=gr(this.remaining),w=this.remaining[y.length];if("/"!==w&&")"!==w&&";"!==w)throw new c.vHH(4010,!1);let P;y.indexOf(":")>-1?(P=y.slice(0,y.indexOf(":")),this.capture(P),this.capture(":")):d&&(P=St);const B=this.parseChildren();u[P]=1===Object.keys(B).length?B[St]:new Re([],B),this.consumeOptional("//")}return u}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new c.vHH(4011,!1)}}class Yn{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const u=this.pathFromRoot(d);return u.length>1?u[u.length-2]:null}children(d){const u=gn(d,this._root);return u?u.children.map(y=>y.value):[]}firstChild(d){const u=gn(d,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(d){const u=gi(d,this._root);return u.length<2?[]:u[u.length-2].children.map(w=>w.value).filter(w=>w!==d)}pathFromRoot(d){return gi(d,this._root).map(u=>u.value)}}function gn(f,d){if(f===d.value)return d;for(const u of d.children){const y=gn(f,u);if(y)return y}return null}function gi(f,d){if(f===d.value)return[d];for(const u of d.children){const y=gi(f,u);if(y.length)return y.unshift(d),y}return[]}class cr{constructor(d,u){this.value=d,this.children=u}toString(){return`TreeNode(${this.value})`}}function rr(f){const d={};return f&&f.children.forEach(u=>d[u.value.outlet]=u),d}class mi extends Yn{constructor(d,u){super(d),this.snapshot=u,Hr(this,d)}toString(){return this.snapshot.toString()}}function Cr(f,d){const u=function ei(f,d){const B=new xn([],{},{},"",{},St,d,null,f.root,-1,{});return new $n("",new cr(B,[]))}(f,d),y=new L.X([new Ee("",{})]),w=new L.X({}),P=new L.X({}),B=new L.X({}),oe=new L.X(""),We=new tr(y,w,B,oe,P,St,d,u.root);return We.snapshot=u.root,new mi(new cr(We,[]),u)}class tr{constructor(d,u,y,w,P,B,oe,We){this.url=d,this.params=u,this.queryParams=y,this.fragment=w,this.data=P,this.outlet=B,this.component=oe,this._futureSnapshot=We}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,ue.U)(d=>wn(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ue.U)(d=>wn(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function An(f,d="emptyOnly"){const u=f.pathFromRoot;let y=0;if("always"!==d)for(y=u.length-1;y>=1;){const w=u[y],P=u[y-1];if(w.routeConfig&&""===w.routeConfig.path)y--;else{if(P.component)break;y--}}return function Bi(f){return f.reduce((d,u)=>({params:{...d.params,...u.params},data:{...d.data,...u.data},resolve:{...u.data,...d.resolve,...u.routeConfig?.data,...u._resolvedData}}),{params:{},data:{},resolve:{}})}(u.slice(y))}class xn{constructor(d,u,y,w,P,B,oe,We,ot,zt,wt,yn){this.url=d,this.params=u,this.queryParams=y,this.fragment=w,this.data=P,this.outlet=B,this.component=oe,this.routeConfig=We,this._urlSegment=ot,this._lastPathIndex=zt,this._correctedLastPathIndex=yn??zt,this._resolve=wt}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=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(y=>y.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $n extends Yn{constructor(d,u){super(u),this.url=d,Hr(this,u)}toString(){return br(this._root)}}function Hr(f,d){d.value._routerState=f,d.children.forEach(u=>Hr(f,u))}function br(f){const d=f.children.length>0?` { ${f.children.map(br).join(", ")} } `:"";return`${f.value}${d}`}function Fr(f){if(f.snapshot){const d=f.snapshot,u=f._futureSnapshot;f.snapshot=u,Gt(d.queryParams,u.queryParams)||f.queryParams.next(u.queryParams),d.fragment!==u.fragment&&f.fragment.next(u.fragment),Gt(d.params,u.params)||f.params.next(u.params),function tt(f,d){if(f.length!==d.length)return!1;for(let u=0;u<f.length;++u)if(!Gt(f[u],d[u]))return!1;return!0}(d.url,u.url)||f.url.next(u.url),Gt(d.data,u.data)||f.data.next(u.data)}else f.snapshot=f._futureSnapshot,f.data.next(f._futureSnapshot.data)}function ir(f,d){const u=Gt(f.params,d.params)&&function dt(f,d){return At(f,d)&&f.every((u,y)=>Gt(u.parameters,d[y].parameters))}(f.url,d.url);return u&&!(!f.parent!=!d.parent)&&(!f.parent||ir(f.parent,d.parent))}function Si(f,d,u){if(u&&f.shouldReuseRoute(d.value,u.value.snapshot)){const y=u.value;y._futureSnapshot=d.value;const w=function ti(f,d,u){return d.children.map(y=>{for(const w of u.children)if(f.shouldReuseRoute(y.value,w.value.snapshot))return Si(f,y,w);return Si(f,y)})}(f,d,u);return new cr(y,w)}{if(f.shouldAttach(d.value)){const P=f.retrieve(d.value);if(null!==P){const B=P.route;return B.value._futureSnapshot=d.value,B.children=d.children.map(oe=>Si(f,oe)),B}}const y=function ji(f){return new tr(new L.X(f.url),new L.X(f.params),new L.X(f.queryParams),new L.X(f.fragment),new L.X(f.data),f.outlet,f.component,f)}(d.value),w=d.children.map(P=>Si(f,P));return new cr(y,w)}}function yi(f){return"object"==typeof f&&null!=f&&!f.outlets&&!f.segmentPath}function Qn(f){return"object"==typeof f&&null!=f&&f.outlets}function Lr(f,d,u,y,w){let P={};if(y&&Jt(y,(oe,We)=>{P[We]=Array.isArray(oe)?oe.map(ot=>`${ot}`):`${oe}`}),f===d)return new pe(u,P,w);const B=vi(f,d,u);return new pe(B,P,w)}function vi(f,d,u){const y={};return Jt(f.children,(w,P)=>{y[P]=w===d?u:vi(w,d,u)}),new Re(f.segments,y)}class Ji{constructor(d,u,y){if(this.isAbsolute=d,this.numberOfDoubleDots=u,this.commands=y,d&&y.length>0&&yi(y[0]))throw new c.vHH(4003,false);const w=y.find(Qn);if(w&&w!==an(y))throw new c.vHH(4004,false)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mr{constructor(d,u,y){this.segmentGroup=d,this.processChildren=u,this.index=y}}function es(f,d,u){if(f||(f=new Re([],{})),0===f.segments.length&&f.hasChildren())return Wr(f,d,u);const y=function ni(f,d,u){let y=0,w=d;const P={match:!1,pathIndex:0,commandIndex:0};for(;w<f.segments.length;){if(y>=u.length)return P;const B=f.segments[w],oe=u[y];if(Qn(oe))break;const We=`${oe}`,ot=y<u.length-1?u[y+1]:null;if(w>0&&void 0===We)break;if(We&&ot&&"object"==typeof ot&&void 0===ot.outlets){if(!ts(We,ot,B))return P;y+=2}else{if(!ts(We,{},B))return P;y++}w++}return{match:!0,pathIndex:w,commandIndex:y}}(f,d,u),w=u.slice(y.commandIndex);if(y.match&&y.pathIndex<f.segments.length){const P=new Re(f.segments.slice(0,y.pathIndex),{});return P.children[St]=new Re(f.segments.slice(y.pathIndex),f.children),Wr(P,0,w)}return y.match&&0===w.length?new Re(f.segments,{}):y.match&&!f.hasChildren()?_i(f,d,u):y.match?Wr(f,0,w):_i(f,d,u)}function Wr(f,d,u){if(0===u.length)return new Re(f.segments,{});{const y=function Xi(f){return Qn(f[0])?f[0].outlets:{[St]:f}}(u),w={};return Jt(y,(P,B)=>{"string"==typeof P&&(P=[P]),null!==P&&(w[B]=es(f.children[B],d,P))}),Jt(f.children,(P,B)=>{void 0===y[B]&&(w[B]=P)}),new Re(f.segments,w)}}function _i(f,d,u){const y=f.segments.slice(0,d);let w=0;for(;w<u.length;){const P=u[w];if(Qn(P)){const We=Es(P.outlets);return new Re(y,We)}if(0===w&&yi(u[0])){y.push(new Ee(f.segments[d].path,Hi(u[0]))),w++;continue}const B=Qn(P)?P.outlets[St]:`${P}`,oe=w<u.length-1?u[w+1]:null;B&&oe&&yi(oe)?(y.push(new Ee(B,Hi(oe))),w+=2):(y.push(new Ee(B,{})),w++)}return new Re(y,{})}function Es(f){const d={};return Jt(f,(u,y)=>{"string"==typeof u&&(u=[u]),null!==u&&(d[y]=_i(new Re([],{}),0,u))}),d}function Hi(f){const d={};return Jt(f,(u,y)=>d[y]=`${u}`),d}function ts(f,d,u){return f==u.path&&Gt(d,u.parameters)}class Ar{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Gn,this.attachRef=null}}class Gn{constructor(){this.contexts=new Map}onChildOutletCreated(d,u){const y=this.getOrCreateContext(d);y.outlet=u,this.contexts.set(d,y)}onChildOutletDestroyed(d){const u=this.getContext(d);u&&(u.outlet=null,u.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let u=this.getContext(d);return u||(u=new Ar,this.contexts.set(d,u)),u}getContext(d){return this.contexts.get(d)||null}}const Br=!1;let Mr=(()=>{class f{constructor(u,y,w,P,B){this.parentContexts=u,this.location=y,this.changeDetector=P,this.environmentInjector=B,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=w||St,u.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const u=this.parentContexts.getContext(this.name);u&&u.route&&(u.attachRef?this.attach(u.attachRef,u.route):this.activateWith(u.route,u.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.vHH(4012,Br);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.vHH(4012,Br);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.vHH(4012,Br);this.location.detach();const u=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(u.instance),u}attach(u,y){this.activated=u,this._activatedRoute=y,this.location.insert(u.hostView),this.attachEvents.emit(u.instance)}deactivate(){if(this.activated){const u=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(u)}}activateWith(u,y){if(this.isActivated)throw new c.vHH(4013,Br);this._activatedRoute=u;const w=this.location,B=u._futureSnapshot.component,oe=this.parentContexts.getOrCreateContext(this.name).children,We=new Di(u,oe,w.injector);if(y&&function Ui(f){return!!f.resolveComponentFactory}(y)){const ot=y.resolveComponentFactory(B);this.activated=w.createComponent(ot,w.length,We)}else this.activated=w.createComponent(B,{index:w.length,injector:We,environmentInjector:y??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(Gn),c.Y36(c.s_b),c.$8M("name"),c.Y36(c.sBO),c.Y36(c.lqb))},f.\u0275dir=c.lG2({type:f,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),f})();class Di{constructor(d,u,y){this.route=d,this.childContexts=u,this.parent=y}get(d,u){return d===tr?this.route:d===Gn?this.childContexts:this.parent.get(d,u)}}let ri=(()=>{class f{}return f.\u0275fac=function(u){return new(u||f)},f.\u0275cmp=c.Xpm({type:f,selectors:[["ng-component"]],decls:1,vars:0,template:function(u,y){1&u&&c._UZ(0,"router-outlet")},dependencies:[Mr],encapsulation:2}),f})();function ii(f,d){return f.providers&&!f._injector&&(f._injector=(0,c.MMx)(f.providers,d,`Route: ${f.path}`)),f._injector??d}function ft(f){const d=f.children&&f.children.map(ft),u=d?{...f,children:d}:{...f};return!u.component&&!u.loadComponent&&(d||u.loadChildren)&&u.outlet&&u.outlet!==St&&(u.component=ri),u}function ht(f){return f.outlet||St}function Tn(f,d){const u=f.filter(y=>ht(y)===d);return u.push(...f.filter(y=>ht(y)!==d)),u}function sn(f){if(!f)return null;if(f.routeConfig?._injector)return f.routeConfig._injector;for(let d=f.parent;d;d=d.parent){const u=d.routeConfig;if(u?._loadedInjector)return u._loadedInjector;if(u?._injector)return u._injector}return null}class Dn{constructor(d,u,y,w){this.routeReuseStrategy=d,this.futureState=u,this.currState=y,this.forwardEvent=w}activate(d){const u=this.futureState._root,y=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,y,d),Fr(this.futureState.root),this.activateChildRoutes(u,y,d)}deactivateChildRoutes(d,u,y){const w=rr(u);d.children.forEach(P=>{const B=P.value.outlet;this.deactivateRoutes(P,w[B],y),delete w[B]}),Jt(w,(P,B)=>{this.deactivateRouteAndItsChildren(P,y)})}deactivateRoutes(d,u,y){const w=d.value,P=u?u.value:null;if(w===P)if(w.component){const B=y.getContext(w.outlet);B&&this.deactivateChildRoutes(d,u,B.children)}else this.deactivateChildRoutes(d,u,y);else P&&this.deactivateRouteAndItsChildren(u,y)}deactivateRouteAndItsChildren(d,u){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,u):this.deactivateRouteAndOutlet(d,u)}detachAndStoreRouteSubtree(d,u){const y=u.getContext(d.value.outlet),w=y&&d.value.component?y.children:u,P=rr(d);for(const B of Object.keys(P))this.deactivateRouteAndItsChildren(P[B],w);if(y&&y.outlet){const B=y.outlet.detach(),oe=y.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:B,route:d,contexts:oe})}}deactivateRouteAndOutlet(d,u){const y=u.getContext(d.value.outlet),w=y&&d.value.component?y.children:u,P=rr(d);for(const B of Object.keys(P))this.deactivateRouteAndItsChildren(P[B],w);y&&y.outlet&&(y.outlet.deactivate(),y.children.onOutletDeactivated(),y.attachRef=null,y.resolver=null,y.route=null)}activateChildRoutes(d,u,y){const w=rr(u);d.children.forEach(P=>{this.activateRoutes(P,w[P.value.outlet],y),this.forwardEvent(new Hn(P.value.snapshot))}),d.children.length&&this.forwardEvent(new Un(d.value.snapshot))}activateRoutes(d,u,y){const w=d.value,P=u?u.value:null;if(Fr(w),w===P)if(w.component){const B=y.getOrCreateContext(w.outlet);this.activateChildRoutes(d,u,B.children)}else this.activateChildRoutes(d,u,y);else if(w.component){const B=y.getOrCreateContext(w.outlet);if(this.routeReuseStrategy.shouldAttach(w.snapshot)){const oe=this.routeReuseStrategy.retrieve(w.snapshot);this.routeReuseStrategy.store(w.snapshot,null),B.children.onOutletReAttached(oe.contexts),B.attachRef=oe.componentRef,B.route=oe.route.value,B.outlet&&B.outlet.attach(oe.componentRef,oe.route.value),Fr(oe.route.value),this.activateChildRoutes(d,null,B.children)}else{const oe=sn(w.snapshot),We=oe?.get(c._Vd)??null;B.attachRef=null,B.route=w,B.resolver=We,B.injector=oe,B.outlet&&B.outlet.activateWith(w,B.injector),this.activateChildRoutes(d,null,B.children)}}else this.activateChildRoutes(d,null,y)}}function Pr(f){return"function"==typeof f}function Vn(f){return f instanceof pe}const O=Symbol("INITIAL_VALUE");function re(){return(0,W.w)(f=>(0,de.a)(f.map(d=>d.pipe((0,ge.q)(1),(0,H.O)(O)))).pipe((0,ne.R)((d,u)=>{let y=!1;return u.reduce((w,P,B)=>w!==O?w:(P===O&&(y=!0),y||!1!==P&&B!==u.length-1&&!Vn(P)?w:P),d)},O),(0,Je.h)(d=>d!==O),(0,ue.U)(d=>Vn(d)?d:!0===d),(0,ge.q)(1)))}const Ne={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function we(f,d,u){if(""===d.path)return"full"===d.pathMatch&&(f.hasChildren()||u.length>0)?{...Ne}:{matched:!0,consumedSegments:[],remainingSegments:u,parameters:{},positionalParamSegments:{}};const w=(d.matcher||Se)(u,f,d);if(!w)return{...Ne};const P={};Jt(w.posParams,(oe,We)=>{P[We]=oe.path});const B=w.consumed.length>0?{...P,...w.consumed[w.consumed.length-1].parameters}:P;return{matched:!0,consumedSegments:w.consumed,remainingSegments:u.slice(w.consumed.length),parameters:B,positionalParamSegments:w.posParams??{}}}function bt(f,d,u,y,w="corrected"){if(u.length>0&&function bn(f,d,u){return u.some(y=>Ln(f,d,y)&&ht(y)!==St)}(f,u,y)){const B=new Re(d,function Mn(f,d,u,y){const w={};w[St]=y,y._sourceSegment=f,y._segmentIndexShift=d.length;for(const P of u)if(""===P.path&&ht(P)!==St){const B=new Re([],{});B._sourceSegment=f,B._segmentIndexShift=d.length,w[ht(P)]=B}return w}(f,d,y,new Re(u,f.children)));return B._sourceSegment=f,B._segmentIndexShift=d.length,{segmentGroup:B,slicedSegments:[]}}if(0===u.length&&function cn(f,d,u){return u.some(y=>Ln(f,d,y))}(f,u,y)){const B=new Re(f.segments,function Sn(f,d,u,y,w,P){const B={};for(const oe of y)if(Ln(f,u,oe)&&!w[ht(oe)]){const We=new Re([],{});We._sourceSegment=f,We._segmentIndexShift="legacy"===P?f.segments.length:d.length,B[ht(oe)]=We}return{...w,...B}}(f,d,u,y,f.children,w));return B._sourceSegment=f,B._segmentIndexShift=d.length,{segmentGroup:B,slicedSegments:u}}const P=new Re(f.segments,f.children);return P._sourceSegment=f,P._segmentIndexShift=d.length,{segmentGroup:P,slicedSegments:u}}function Ln(f,d,u){return(!(f.hasChildren()||d.length>0)||"full"!==u.pathMatch)&&""===u.path}function _n(f,d,u,y){return!!(ht(f)===y||y!==St&&Ln(d,u,f))&&("**"===f.path||we(d,f,u).matched)}function zn(f,d,u){return 0===d.length&&!f.children[u]}const Ze=!1;class Vt{constructor(d){this.segmentGroup=d||null}}class si{constructor(d){this.urlTree=d}}function Or(f){return(0,je._)(new Vt(f))}function Bn(f){return(0,je._)(new si(f))}class rs{constructor(d,u,y,w,P){this.injector=d,this.configLoader=u,this.urlSerializer=y,this.urlTree=w,this.config=P,this.allowRedirects=!0}apply(){const d=bt(this.urlTree.root,[],[],this.config).segmentGroup,u=new Re(d.segments,d.children);return this.expandSegmentGroup(this.injector,this.config,u,St).pipe((0,ue.U)(P=>this.createUrlTree($i(P),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,me.K)(P=>{if(P instanceof si)return this.allowRedirects=!1,this.match(P.urlTree);throw P instanceof Vt?this.noMatchError(P):P}))}match(d){return this.expandSegmentGroup(this.injector,this.config,d.root,St).pipe((0,ue.U)(w=>this.createUrlTree($i(w),d.queryParams,d.fragment))).pipe((0,me.K)(w=>{throw w instanceof Vt?this.noMatchError(w):w}))}noMatchError(d){return new c.vHH(4002,Ze)}createUrlTree(d,u,y){const w=d.segments.length>0?new Re([],{[St]:d}):d;return new pe(w,u,y)}expandSegmentGroup(d,u,y,w){return 0===y.segments.length&&y.hasChildren()?this.expandChildren(d,u,y).pipe((0,ue.U)(P=>new Re([],P))):this.expandSegment(d,y,u,y.segments,w,!0)}expandChildren(d,u,y){const w=[];for(const P of Object.keys(y.children))"primary"===P?w.unshift(P):w.push(P);return(0,te.D)(w).pipe((0,ve.b)(P=>{const B=y.children[P],oe=Tn(u,P);return this.expandSegmentGroup(d,oe,B,P).pipe((0,ue.U)(We=>({segment:We,outlet:P})))}),(0,ne.R)((P,B)=>(P[B.outlet]=B.segment,P),{}),function le(f,d){const u=arguments.length>=2;return y=>y.pipe(f?(0,Je.h)((w,P)=>f(w,P,y)):K.y,ke(1),u?(0,x.d)(d):(0,Ce.T)(()=>new Oe.K))}())}expandSegment(d,u,y,w,P,B){return(0,te.D)(y).pipe((0,ve.b)(oe=>this.expandSegmentAgainstRoute(d,u,y,oe,w,P,B).pipe((0,me.K)(ot=>{if(ot instanceof Vt)return(0,R.of)(null);throw ot}))),(0,_e.P)(oe=>!!oe),(0,me.K)((oe,We)=>{if(oe instanceof Oe.K||"EmptyError"===oe.name)return zn(u,w,P)?(0,R.of)(new Re([],{})):Or(u);throw oe}))}expandSegmentAgainstRoute(d,u,y,w,P,B,oe){return _n(w,u,P,B)?void 0===w.redirectTo?this.matchSegmentAgainstRoute(d,u,w,P,B):oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B):Or(u):Or(u)}expandSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B){return"**"===w.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,y,w,B):this.expandRegularSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,u,y,w){const P=this.applyRedirectCommands([],y.redirectTo,{});return y.redirectTo.startsWith("/")?Bn(P):this.lineralizeSegments(y,P).pipe((0,Ve.z)(B=>{const oe=new Re(B,{});return this.expandSegment(d,oe,u,B,w,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,u,y,w,P,B){const{matched:oe,consumedSegments:We,remainingSegments:ot,positionalParamSegments:zt}=we(u,w,P);if(!oe)return Or(u);const wt=this.applyRedirectCommands(We,w.redirectTo,zt);return w.redirectTo.startsWith("/")?Bn(wt):this.lineralizeSegments(w,wt).pipe((0,Ve.z)(yn=>this.expandSegment(d,u,y,yn.concat(ot),B,!1)))}matchSegmentAgainstRoute(d,u,y,w,P){if("**"===y.path)return d=ii(y,d),y.loadChildren?(y._loadedRoutes?(0,R.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):this.configLoader.loadChildren(d,y)).pipe((0,ue.U)(wt=>(y._loadedRoutes=wt.routes,y._loadedInjector=wt.injector,new Re(w,{})))):(0,R.of)(new Re(w,{}));const{matched:B,consumedSegments:oe,remainingSegments:We}=we(u,y,w);return B?(d=ii(y,d),this.getChildConfig(d,y,w).pipe((0,Ve.z)(zt=>{const wt=zt.injector??d,yn=zt.routes,{segmentGroup:on,slicedSegments:fr}=bt(u,oe,We,yn),_r=new Re(on.segments,on.children);if(0===fr.length&&_r.hasChildren())return this.expandChildren(wt,yn,_r).pipe((0,ue.U)(Ot=>new Re(oe,Ot)));if(0===yn.length&&0===fr.length)return(0,R.of)(new Re(oe,{}));const bo=ht(y)===P;return this.expandSegment(wt,_r,yn,fr,bo?St:P,!0).pipe((0,ue.U)(mt=>new Re(oe.concat(mt.segments),mt.children)))}))):Or(u)}getChildConfig(d,u,y){return u.children?(0,R.of)({routes:u.children,injector:d}):u.loadChildren?void 0!==u._loadedRoutes?(0,R.of)({routes:u._loadedRoutes,injector:u._loadedInjector}):this.runCanLoadGuards(d,u,y).pipe((0,Ve.z)(w=>w?this.configLoader.loadChildren(d,u).pipe((0,ut.b)(P=>{u._loadedRoutes=P.routes,u._loadedInjector=P.injector})):function ai(f){return(0,je._)(fe(Ze))}())):(0,R.of)({routes:[],injector:d})}runCanLoadGuards(d,u,y){const w=u.canLoad;if(!w||0===w.length)return(0,R.of)(!0);const P=w.map(B=>{const oe=d.get(B);return Nt(function qn(f){return f&&Pr(f.canLoad)}(oe)?oe.canLoad(u,y):oe(u,y))});return(0,R.of)(P).pipe(re(),(0,ut.b)(B=>{if(!Vn(B))return;const oe=fe(He+this.urlSerializer.serialize(B));throw oe.url=B,oe}),(0,ue.U)(B=>!0===B))}lineralizeSegments(d,u){let y=[],w=u.root;for(;;){if(y=y.concat(w.segments),0===w.numberOfChildren)return(0,R.of)(y);if(w.numberOfChildren>1||!w.children[St])return(0,je._)(new c.vHH(4e3,Ze));w=w.children[St]}}applyRedirectCommands(d,u,y){return this.applyRedirectCreatreUrlTree(u,this.urlSerializer.parse(u),d,y)}applyRedirectCreatreUrlTree(d,u,y,w){const P=this.createSegmentGroup(d,u.root,y,w);return new pe(P,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(d,u){const y={};return Jt(d,(w,P)=>{if("string"==typeof w&&w.startsWith(":")){const oe=w.substring(1);y[P]=u[oe]}else y[P]=w}),y}createSegmentGroup(d,u,y,w){const P=this.createSegments(d,u.segments,y,w);let B={};return Jt(u.children,(oe,We)=>{B[We]=this.createSegmentGroup(d,oe,y,w)}),new Re(P,B)}createSegments(d,u,y,w){return u.map(P=>P.path.startsWith(":")?this.findPosParam(d,P,w):this.findOrReturn(P,y))}findPosParam(d,u,y){const w=y[u.path.substring(1)];if(!w)throw new c.vHH(4001,Ze);return w}findOrReturn(d,u){let y=0;for(const w of u){if(w.path===d.path)return u.splice(y),w;y++}return d}}function $i(f){const d={};for(const y of Object.keys(f.children)){const P=$i(f.children[y]);(P.segments.length>0||P.hasChildren())&&(d[y]=P)}return function is(f){if(1===f.numberOfChildren&&f.children[St]){const d=f.children[St];return new Re(f.segments.concat(d.segments),d.children)}return f}(new Re(f.segments,d))}class Gs{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class Ai{constructor(d,u){this.component=d,this.route=u}}function dr(f,d,u){const y=f._root;return Kr(y,d?d._root:null,u,[y.value])}function ss(f,d,u){return(sn(d)??u).get(f)}function Kr(f,d,u,y,w={canDeactivateChecks:[],canActivateChecks:[]}){const P=rr(d);return f.children.forEach(B=>{(function Zr(f,d,u,y,w={canDeactivateChecks:[],canActivateChecks:[]}){const P=f.value,B=d?d.value:null,oe=u?u.getContext(f.value.outlet):null;if(B&&P.routeConfig===B.routeConfig){const We=function go(f,d,u){if("function"==typeof u)return u(f,d);switch(u){case"pathParamsChange":return!At(f.url,d.url);case"pathParamsOrQueryParamsChange":return!At(f.url,d.url)||!Gt(f.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(f,d)||!Gt(f.queryParams,d.queryParams);default:return!ir(f,d)}}(B,P,P.routeConfig.runGuardsAndResolvers);We?w.canActivateChecks.push(new Gs(y)):(P.data=B.data,P._resolvedData=B._resolvedData),Kr(f,d,P.component?oe?oe.children:null:u,y,w),We&&oe&&oe.outlet&&oe.outlet.isActivated&&w.canDeactivateChecks.push(new Ai(oe.outlet.component,B))}else B&&Vi(d,oe,w),w.canActivateChecks.push(new Gs(y)),Kr(f,null,P.component?oe?oe.children:null:u,y,w)})(B,P[B.value.outlet],u,y.concat([B.value]),w),delete P[B.value.outlet]}),Jt(P,(B,oe)=>Vi(B,u.getContext(oe),w)),w}function Vi(f,d,u){const y=rr(f),w=f.value;Jt(y,(P,B)=>{Vi(P,w.component?d?d.children.getContext(B):null:d,u)}),u.canDeactivateChecks.push(new Ai(w.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,w))}class yr{}function us(f){return new F.y(d=>d.error(f))}class bs{constructor(d,u,y,w,P,B){this.rootComponentType=d,this.config=u,this.urlTree=y,this.url=w,this.paramsInheritanceStrategy=P,this.relativeLinkResolution=B}recognize(){const d=bt(this.urlTree.root,[],[],this.config.filter(B=>void 0===B.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,d,St);if(null===u)return null;const y=new xn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),w=new cr(y,u),P=new $n(this.url,w);return this.inheritParamsAndData(P._root),P}inheritParamsAndData(d){const u=d.value,y=An(u,this.paramsInheritanceStrategy);u.params=Object.freeze(y.params),u.data=Object.freeze(y.data),d.children.forEach(w=>this.inheritParamsAndData(w))}processSegmentGroup(d,u,y){return 0===u.segments.length&&u.hasChildren()?this.processChildren(d,u):this.processSegment(d,u,u.segments,y)}processChildren(d,u){const y=[];for(const P of Object.keys(u.children)){const B=u.children[P],oe=Tn(d,P),We=this.processSegmentGroup(oe,B,P);if(null===We)return null;y.push(...We)}const w=lr(y);return function Ks(f){f.sort((d,u)=>d.value.outlet===St?-1:u.value.outlet===St?1:d.value.outlet.localeCompare(u.value.outlet))}(w),w}processSegment(d,u,y,w){for(const P of d){const B=this.processSegmentAgainstRoute(P,u,y,w);if(null!==B)return B}return zn(u,y,w)?[]:null}processSegmentAgainstRoute(d,u,y,w){if(d.redirectTo||!_n(d,u,y,w))return null;let P,B=[],oe=[];if("**"===d.path){const on=y.length>0?an(y).parameters:{},fr=Ys(u)+y.length;P=new xn(y,on,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(d),ht(d),d.component??d._loadedComponent??null,d,Pn(u),fr,Qs(d),fr)}else{const on=we(u,d,y);if(!on.matched)return null;B=on.consumedSegments,oe=on.remainingSegments;const fr=Ys(u)+B.length;P=new xn(B,on.parameters,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(d),ht(d),d.component??d._loadedComponent??null,d,Pn(u),fr,Qs(d),fr)}const We=function Zs(f){return f.children?f.children:f.loadChildren?f._loadedRoutes:[]}(d),{segmentGroup:ot,slicedSegments:zt}=bt(u,B,oe,We.filter(on=>void 0===on.redirectTo),this.relativeLinkResolution);if(0===zt.length&&ot.hasChildren()){const on=this.processChildren(We,ot);return null===on?null:[new cr(P,on)]}if(0===We.length&&0===zt.length)return[new cr(P,[])];const wt=ht(d)===w,yn=this.processSegment(We,ot,zt,wt?St:w);return null===yn?null:[new cr(P,yn)]}}function ws(f){const d=f.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function lr(f){const d=[],u=new Set;for(const y of f){if(!ws(y)){d.push(y);continue}const w=d.find(P=>y.value.routeConfig===P.value.routeConfig);void 0!==w?(w.children.push(...y.children),u.add(w)):d.push(y)}for(const y of u){const w=lr(y.children);d.push(new cr(y.value,w))}return d.filter(y=>!u.has(y))}function Pn(f){let d=f;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Ys(f){let d=f,u=d._segmentIndexShift??0;for(;d._sourceSegment;)d=d._sourceSegment,u+=d._segmentIndexShift??0;return u-1}function Gi(f){return f.data||{}}function Qs(f){return f.resolve||{}}const bi=Symbol("RouteTitle");function wi(f){return"string"==typeof f.title||null===f.title}function Yr(f){return(0,W.w)(d=>{const u=f(d);return u?(0,te.D)(u).pipe((0,ue.U)(()=>d)):(0,R.of)(d)})}class Po extends class Xs{shouldDetach(d){return!1}store(d,u){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,u){return d.routeConfig===u.routeConfig}}{}const Zn=new c.OlP("ROUTES");let Ss=(()=>{class f{constructor(u,y){this.injector=u,this.compiler=y,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(u){if(this.componentLoaders.get(u))return this.componentLoaders.get(u);if(u._loadedComponent)return(0,R.of)(u._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(u);const y=Nt(u.loadComponent()).pipe((0,ut.b)(P=>{this.onLoadEndListener&&this.onLoadEndListener(u),u._loadedComponent=P}),(0,Bt.x)(()=>{this.componentLoaders.delete(u)})),w=new ie(y,()=>new Te.x).pipe(ee());return this.componentLoaders.set(u,w),w}loadChildren(u,y){if(this.childrenLoaders.get(y))return this.childrenLoaders.get(y);if(y._loadedRoutes)return(0,R.of)({routes:y._loadedRoutes,injector:y._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(y);const P=this.loadModuleFactoryOrRoutes(y.loadChildren).pipe((0,ue.U)(oe=>{this.onLoadEndListener&&this.onLoadEndListener(y);let We,ot,zt=!1;Array.isArray(oe)?ot=oe:(We=oe.create(u).injector,ot=st(We.get(Zn,[],c.XFs.Self|c.XFs.Optional)));return{routes:ot.map(ft),injector:We}}),(0,Bt.x)(()=>{this.childrenLoaders.delete(y)})),B=new ie(P,()=>new Te.x).pipe(ee());return this.childrenLoaders.set(y,B),B}loadModuleFactoryOrRoutes(u){return Nt(u()).pipe((0,Ve.z)(y=>y instanceof c.YKP||Array.isArray(y)?(0,R.of)(y):(0,te.D)(this.compiler.compileModuleAsync(y))))}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(c.zs3),c.LFG(c.Sil))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class Wo{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,u){return d}}function ui(f){throw f}function eo(f,d,u){return d.parse("/")}const Is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ds={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let or=(()=>{class f{constructor(u,y,w,P,B,oe,We){this.rootComponentType=u,this.urlSerializer=y,this.rootContexts=w,this.location=P,this.config=We,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.x,this.errorHandler=ui,this.malformedUriErrorHandler=eo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new Wo,this.routeReuseStrategy=new Po,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=B.get(Ss),this.configLoader.onLoadEndListener=yn=>this.triggerEvent(new jn(yn)),this.configLoader.onLoadStartListener=yn=>this.triggerEvent(new In(yn)),this.ngModule=B.get(c.h0i),this.console=B.get(c.c2e);const wt=B.get(c.R0b);this.isNgZoneEnabled=wt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(We),this.currentUrlTree=function Pt(){return new pe(new Re([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Cr(this.currentUrlTree,this.rootComponentType),this.transitions=new L.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(u){const y=this.events;return u.pipe((0,Je.h)(w=>0!==w.id),(0,ue.U)(w=>({...w,extractedUrl:this.urlHandlingStrategy.extract(w.rawUrl)})),(0,W.w)(w=>{let P=!1,B=!1;return(0,R.of)(w).pipe((0,ut.b)(oe=>{this.currentNavigation={id:oe.id,initialUrl:oe.rawUrl,extractedUrl:oe.extractedUrl,trigger:oe.source,extras:oe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,W.w)(oe=>{const We=this.browserUrlTree.toString(),ot=!this.navigated||oe.extractedUrl.toString()!==We||We!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||ot)&&this.urlHandlingStrategy.shouldProcessUrl(oe.rawUrl))return Oi(oe.source)&&(this.browserUrlTree=oe.extractedUrl),(0,R.of)(oe).pipe((0,W.w)(wt=>{const yn=this.transitions.getValue();return y.next(new $e(wt.id,this.serializeUrl(wt.extractedUrl),wt.source,wt.restoredState)),yn!==this.transitions.getValue()?Ie.E:Promise.resolve(wt)}),function po(f,d,u,y){return(0,W.w)(w=>function Gr(f,d,u,y,w){return new rs(f,d,u,y,w).apply()}(f,d,u,w.extractedUrl,y).pipe((0,ue.U)(P=>({...w,urlAfterRedirects:P}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ut.b)(wt=>{this.currentNavigation={...this.currentNavigation,finalUrl:wt.urlAfterRedirects}}),function Tr(f,d,u,y,w){return(0,Ve.z)(P=>function Ci(f,d,u,y,w="emptyOnly",P="legacy"){try{const B=new bs(f,d,u,y,w,P).recognize();return null===B?us(new yr):(0,R.of)(B)}catch(B){return us(B)}}(f,d,P.urlAfterRedirects,u(P.urlAfterRedirects),y,w).pipe((0,ue.U)(B=>({...P,targetSnapshot:B}))))}(this.rootComponentType,this.config,wt=>this.serializeUrl(wt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ut.b)(wt=>{if("eager"===this.urlUpdateStrategy){if(!wt.extras.skipLocationChange){const on=this.urlHandlingStrategy.merge(wt.urlAfterRedirects,wt.rawUrl);this.setBrowserUrl(on,wt)}this.browserUrlTree=wt.urlAfterRedirects}const yn=new ct(wt.id,this.serializeUrl(wt.extractedUrl),this.serializeUrl(wt.urlAfterRedirects),wt.targetSnapshot);y.next(yn)}));if(ot&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:yn,extractedUrl:on,source:fr,restoredState:_r,extras:bo}=oe,xs=new $e(yn,this.serializeUrl(on),fr,_r);y.next(xs);const mt=Cr(on,this.rootComponentType).snapshot;return(0,R.of)({...oe,targetSnapshot:mt,urlAfterRedirects:on,extras:{...bo,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=oe.rawUrl,oe.resolve(null),Ie.E}),(0,ut.b)(oe=>{const We=new Tt(oe.id,this.serializeUrl(oe.extractedUrl),this.serializeUrl(oe.urlAfterRedirects),oe.targetSnapshot);this.triggerEvent(We)}),(0,ue.U)(oe=>({...oe,guards:dr(oe.targetSnapshot,oe.currentSnapshot,this.rootContexts)})),function Cs(f,d){return(0,Ve.z)(u=>{const{targetSnapshot:y,currentSnapshot:w,guards:{canActivateChecks:P,canDeactivateChecks:B}}=u;return 0===B.length&&0===P.length?(0,R.of)({...u,guardsResult:!0}):function Ao(f,d,u,y){return(0,te.D)(f).pipe((0,Ve.z)(w=>function ls(f,d,u,y,w){const P=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!P||0===P.length)return(0,R.of)(!0);const B=P.map(oe=>{const We=ss(oe,d,w);return Nt(function E(f){return f&&Pr(f.canDeactivate)}(We)?We.canDeactivate(f,d,u,y):We(f,d,u,y)).pipe((0,_e.P)())});return(0,R.of)(B).pipe(re())}(w.component,w.route,u,d,y)),(0,_e.P)(w=>!0!==w,!0))}(B,y,w,f).pipe((0,Ve.z)(oe=>oe&&function jr(f){return"boolean"==typeof f}(oe)?function zi(f,d,u,y){return(0,te.D)(d).pipe((0,ve.b)(w=>(0,xe.z)(function mo(f,d){return null!==f&&d&&d(new Nn(f)),(0,R.of)(!0)}(w.route.parent,y),function os(f,d){return null!==f&&d&&d(new Mt(f)),(0,R.of)(!0)}(w.route,y),function Mo(f,d,u){const y=d[d.length-1],P=d.slice(0,d.length-1).reverse().map(B=>function li(f){const d=f.routeConfig?f.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:f,guards:d}:null}(B)).filter(B=>null!==B).map(B=>(0,Be.P)(()=>{const oe=B.guards.map(We=>{const ot=ss(We,B.node,u);return Nt(function A(f){return f&&Pr(f.canActivateChild)}(ot)?ot.canActivateChild(y,f):ot(y,f)).pipe((0,_e.P)())});return(0,R.of)(oe).pipe(re())}));return(0,R.of)(P).pipe(re())}(f,w.path,u),function as(f,d,u){const y=d.routeConfig?d.routeConfig.canActivate:null;if(!y||0===y.length)return(0,R.of)(!0);const w=y.map(P=>(0,Be.P)(()=>{const B=ss(P,d,u);return Nt(function D(f){return f&&Pr(f.canActivate)}(B)?B.canActivate(d,f):B(d,f)).pipe((0,_e.P)())}));return(0,R.of)(w).pipe(re())}(f,w.route,u))),(0,_e.P)(w=>!0!==w,!0))}(y,P,f,d):(0,R.of)(oe)),(0,ue.U)(oe=>({...u,guardsResult:oe})))})}(this.ngModule.injector,oe=>this.triggerEvent(oe)),(0,ut.b)(oe=>{if(Vn(oe.guardsResult)){const ot=fe(`Redirecting to "${this.serializeUrl(oe.guardsResult)}"`);throw ot.url=oe.guardsResult,ot}const We=new nn(oe.id,this.serializeUrl(oe.extractedUrl),this.serializeUrl(oe.urlAfterRedirects),oe.targetSnapshot,!!oe.guardsResult);this.triggerEvent(We)}),(0,Je.h)(oe=>!!oe.guardsResult||(this.restoreHistory(oe),this.cancelNavigationTransition(oe,""),!1)),Yr(oe=>{if(oe.guards.canActivateChecks.length)return(0,R.of)(oe).pipe((0,ut.b)(We=>{const ot=new vn(We.id,this.serializeUrl(We.extractedUrl),this.serializeUrl(We.urlAfterRedirects),We.targetSnapshot);this.triggerEvent(ot)}),(0,W.w)(We=>{let ot=!1;return(0,R.of)(We).pipe(function qs(f,d){return(0,Ve.z)(u=>{const{targetSnapshot:y,guards:{canActivateChecks:w}}=u;if(!w.length)return(0,R.of)(u);let P=0;return(0,te.D)(w).pipe((0,ve.b)(B=>function Js(f,d,u,y){const w=f.routeConfig,P=f._resolve;return void 0!==w?.title&&!wi(w)&&(P[bi]=w.title),function Pi(f,d,u,y){const w=function yo(f){return[...Object.keys(f),...Object.getOwnPropertySymbols(f)]}(f);if(0===w.length)return(0,R.of)({});const P={};return(0,te.D)(w).pipe((0,Ve.z)(B=>function vo(f,d,u,y){const w=ss(f,d,y);return Nt(w.resolve?w.resolve(d,u):w(d,u))}(f[B],d,u,y).pipe((0,_e.P)(),(0,ut.b)(oe=>{P[B]=oe}))),ke(1),(0,qt.h)(P),(0,me.K)(B=>B instanceof Oe.K?Ie.E:(0,je._)(B)))}(P,f,d,y).pipe((0,ue.U)(B=>(f._resolvedData=B,f.data=An(f,u).resolve,w&&wi(w)&&(f.data[bi]=w.title),null)))}(B.route,y,f,d)),(0,ut.b)(()=>P++),ke(1),(0,Ve.z)(B=>P===w.length?(0,R.of)(u):Ie.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ut.b)({next:()=>ot=!0,complete:()=>{ot||(this.restoreHistory(We),this.cancelNavigationTransition(We,"At least one route resolver didn't emit any value."))}}))}),(0,ut.b)(We=>{const ot=new Wn(We.id,this.serializeUrl(We.extractedUrl),this.serializeUrl(We.urlAfterRedirects),We.targetSnapshot);this.triggerEvent(ot)}))}),Yr(oe=>{const We=ot=>{const zt=[];ot.routeConfig?.loadComponent&&!ot.routeConfig._loadedComponent&&zt.push(this.configLoader.loadComponent(ot.routeConfig).pipe((0,ut.b)(wt=>{ot.component=wt}),(0,ue.U)(()=>{})));for(const wt of ot.children)zt.push(...We(wt));return zt};return(0,de.a)(We(oe.targetSnapshot.root)).pipe((0,x.d)(),(0,ge.q)(1))}),Yr(()=>this.afterPreactivation()),(0,ue.U)(oe=>{const We=function sr(f,d,u){const y=Si(f,d._root,u?u._root:void 0);return new mi(y,d)}(this.routeReuseStrategy,oe.targetSnapshot,oe.currentRouterState);return{...oe,targetRouterState:We}}),(0,ut.b)(oe=>{this.currentUrlTree=oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(oe.urlAfterRedirects,oe.rawUrl),this.routerState=oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,oe),this.browserUrlTree=oe.urlAfterRedirects)}),((f,d,u)=>(0,ue.U)(y=>(new Dn(d,y.targetRouterState,y.currentRouterState,u).activate(f),y)))(this.rootContexts,this.routeReuseStrategy,oe=>this.triggerEvent(oe)),(0,ut.b)({next(){P=!0},complete(){P=!0}}),(0,Bt.x)(()=>{P||B||this.cancelNavigationTransition(w,`Navigation ID ${w.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation?.id===w.id&&(this.currentNavigation=null)}),(0,me.K)(oe=>{if(B=!0,function Ke(f){return f&&f[se]}(oe)){const We=Vn(oe.url);We||(this.navigated=!0,this.restoreHistory(w,!0));const ot=new ye(w.id,this.serializeUrl(w.extractedUrl),oe.message);if(y.next(ot),We){const zt=this.urlHandlingStrategy.merge(oe.url,this.rawUrlTree),wt={skipLocationChange:w.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Oi(w.source)};this.scheduleNavigation(zt,"imperative",null,wt,{resolve:w.resolve,reject:w.reject,promise:w.promise})}else w.resolve(!1)}else{this.restoreHistory(w,!0);const We=new Fe(w.id,this.serializeUrl(w.extractedUrl),oe);y.next(We);try{w.resolve(this.errorHandler(oe))}catch(ot){w.reject(ot)}}return Ie.E}))}))}resetRootComponentType(u){this.rootComponentType=u,this.routerState.root.component=this.rootComponentType}setTransition(u){this.transitions.next({...this.transitions.value,...u})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(u=>{const y="popstate"===u.type?"popstate":"hashchange";"popstate"===y&&setTimeout(()=>{const w={replaceUrl:!0},P=u.state?.navigationId?u.state:null;if(P){const oe={...P};delete oe.navigationId,delete oe.\u0275routerPageId,0!==Object.keys(oe).length&&(w.state=oe)}const B=this.parseUrl(u.url);this.scheduleNavigation(B,y,P,w)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(u){this.events.next(u)}resetConfig(u){this.config=u.map(ft),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(u,y={}){const{relativeTo:w,queryParams:P,fragment:B,queryParamsHandling:oe,preserveFragment:We}=y,ot=w||this.routerState.root,zt=We?this.currentUrlTree.fragment:B;let wt=null;switch(oe){case"merge":wt={...this.currentUrlTree.queryParams,...P};break;case"preserve":wt=this.currentUrlTree.queryParams;break;default:wt=P||null}return null!==wt&&(wt=this.removeEmptyProps(wt)),function Ii(f,d,u,y,w){if(0===u.length)return Lr(d.root,d.root,d.root,y,w);const P=function Ir(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new Ji(!0,0,f);let d=0,u=!1;const y=f.reduce((w,P,B)=>{if("object"==typeof P&&null!=P){if(P.outlets){const oe={};return Jt(P.outlets,(We,ot)=>{oe[ot]="string"==typeof We?We.split("/"):We}),[...w,{outlets:oe}]}if(P.segmentPath)return[...w,P.segmentPath]}return"string"!=typeof P?[...w,P]:0===B?(P.split("/").forEach((oe,We)=>{0==We&&"."===oe||(0==We&&""===oe?u=!0:".."===oe?d++:""!=oe&&w.push(oe))}),w):[...w,P]},[]);return new Ji(u,d,y)}(u);return P.toRoot()?Lr(d.root,d.root,new Re([],{}),y,w):function B(We){const ot=function wr(f,d,u,y){return f.isAbsolute?new mr(d.root,!0,0):-1===y?new mr(u,u===d.root,0):function Ds(f,d,u){let y=f,w=d,P=u;for(;P>w;){if(P-=w,y=y.parent,!y)throw new c.vHH(4005,!1);w=y.segments.length}return new mr(y,!1,w-P)}(u,y+(yi(f.commands[0])?0:1),f.numberOfDoubleDots)}(P,d,f.snapshot?._urlSegment,We),zt=ot.processChildren?Wr(ot.segmentGroup,ot.index,P.commands):es(ot.segmentGroup,ot.index,P.commands);return Lr(d.root,ot.segmentGroup,zt,y,w)}(f.snapshot?._lastPathIndex)}(ot,this.currentUrlTree,u,wt,zt??null)}navigateByUrl(u,y={skipLocationChange:!1}){const w=Vn(u)?u:this.parseUrl(u),P=this.urlHandlingStrategy.merge(w,this.rawUrlTree);return this.scheduleNavigation(P,"imperative",null,y)}navigate(u,y={skipLocationChange:!1}){return function Do(f){for(let d=0;d<f.length;d++){if(null==f[d])throw new c.vHH(4008,!1)}}(u),this.navigateByUrl(this.createUrlTree(u,y),y)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let y;try{y=this.urlSerializer.parse(u)}catch(w){y=this.malformedUriErrorHandler(w,this.urlSerializer,u)}return y}isActive(u,y){let w;if(w=!0===y?{...Is}:!1===y?{...ds}:y,Vn(u))return Ge(this.currentUrlTree,u,w);const P=this.parseUrl(u);return Ge(this.currentUrlTree,P,w)}removeEmptyProps(u){return Object.keys(u).reduce((y,w)=>{const P=u[w];return null!=P&&(y[w]=P),y},{})}processNavigations(){this.navigations.subscribe(u=>{this.navigated=!0,this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId,this.events.next(new Ye(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),u.resolve(!0)},u=>{this.console.warn(`Unhandled Navigation Error: ${u}`)})}scheduleNavigation(u,y,w,P,B){if(this.disposed)return Promise.resolve(!1);let oe,We,ot;B?(oe=B.resolve,We=B.reject,ot=B.promise):ot=new Promise((yn,on)=>{oe=yn,We=on});const zt=++this.navigationId;let wt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(w=this.location.getState()),wt=w&&w.\u0275routerPageId?w.\u0275routerPageId:P.replaceUrl||P.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):wt=0,this.setTransition({id:zt,targetPageId:wt,source:y,restoredState:w,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:u,extras:P,resolve:oe,reject:We,promise:ot,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ot.catch(yn=>Promise.reject(yn))}setBrowserUrl(u,y){const w=this.urlSerializer.serialize(u),P={...y.extras.state,...this.generateNgRouterState(y.id,y.targetPageId)};this.location.isCurrentPathEqualTo(w)||y.extras.replaceUrl?this.location.replaceState(w,"",P):this.location.go(w,"",P)}restoreHistory(u,y=!1){if("computed"===this.canceledNavigationResolution){const w=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===w?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===w&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(w)}else"replace"===this.canceledNavigationResolution&&(y&&this.resetState(u),this.resetUrlToCurrentUrlTree())}resetState(u){this.routerState=u.currentRouterState,this.currentUrlTree=u.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,u.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(u,y){const w=new ye(u.id,this.serializeUrl(u.extractedUrl),y);this.triggerEvent(w),u.resolve(!1)}generateNgRouterState(u,y){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:y}:{navigationId:u}}}return f.\u0275fac=function(u){c.$Z()},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();function Oi(f){return"imperative"!==f}let vr=(()=>{class f{constructor(u,y,w,P,B){this.router=u,this.route=y,this.tabIndexAttribute=w,this.renderer=P,this.el=B,this.commands=null,this.onChanges=new Te.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(u){if(null!=this.tabIndexAttribute)return;const y=this.renderer,w=this.el.nativeElement;null!==u?y.setAttribute(w,"tabindex",u):y.removeAttribute(w,"tabindex")}ngOnChanges(u){this.onChanges.next(this)}set routerLink(u){null!=u?(this.commands=Array.isArray(u)?u:[u],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const u={skipLocationChange:(0,c.D6c)(this.skipLocationChange),replaceUrl:(0,c.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,u),!0}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:(0,c.D6c)(this.preserveFragment)})}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(or),c.Y36(tr),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},f.\u0275dir=c.lG2({type:f,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(u,y){1&u&&c.NdJ("click",function(){return y.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),f})(),ci=(()=>{class f{constructor(u,y,w){this.router=u,this.route=y,this.locationStrategy=w,this.commands=null,this.href=null,this.onChanges=new Te.x,this.subscription=u.events.subscribe(P=>{P instanceof Ye&&this.updateTargetUrlAndHref()})}set routerLink(u){this.commands=null!=u?Array.isArray(u)?u:[u]:null}ngOnChanges(u){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(u,y,w,P,B){if(0!==u||y||w||P||B||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const oe={skipLocationChange:(0,c.D6c)(this.skipLocationChange),replaceUrl:(0,c.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:(0,c.D6c)(this.preserveFragment)})}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(or),c.Y36(tr),c.Y36(m.S$))},f.\u0275dir=c.lG2({type:f,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(u,y){1&u&&c.NdJ("click",function(P){return y.onClick(P.button,P.ctrlKey,P.shiftKey,P.altKey,P.metaKey)}),2&u&&c.uIk("target",y.target)("href",y.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),f})(),As=(()=>{class f{constructor(u,y,w,P,B,oe){this.router=u,this.element=y,this.renderer=w,this.cdr=P,this.link=B,this.linkWithHref=oe,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new c.vpe,this.routerEventsSubscription=u.events.subscribe(We=>{We instanceof Ye&&this.update()})}ngAfterContentInit(){(0,R.of)(this.links.changes,this.linksWithHrefs.changes,(0,R.of)(null)).pipe((0,lt.J)()).subscribe(u=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const u=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(y=>!!y).map(y=>y.onChanges);this.linkInputChangesSubscription=(0,te.D)(u).pipe((0,lt.J)()).subscribe(y=>{this.isActive!==this.isLinkActive(this.router)(y)&&this.update()})}set routerLinkActive(u){const y=Array.isArray(u)?u:u.split(" ");this.classes=y.filter(w=>!!w)}ngOnChanges(u){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const u=this.hasActiveLinks();this.isActive!==u&&(this.isActive=u,this.cdr.markForCheck(),this.classes.forEach(y=>{u?this.renderer.addClass(this.element.nativeElement,y):this.renderer.removeClass(this.element.nativeElement,y)}),u&&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(u))})}isLinkActive(u){const y=function fs(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return w=>!!w.urlTree&&u.isActive(w.urlTree,y)}hasActiveLinks(){const u=this.isLinkActive(this.router);return this.link&&u(this.link)||this.linkWithHref&&u(this.linkWithHref)||this.links.some(u)||this.linksWithHrefs.some(u)}}return f.\u0275fac=function(u){return new(u||f)(c.Y36(or),c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(c.sBO),c.Y36(vr,8),c.Y36(ci,8))},f.\u0275dir=c.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(u,y,w){if(1&u&&(c.Suo(w,vr,5),c.Suo(w,ci,5)),2&u){let P;c.iGM(P=c.CRH())&&(y.links=P),c.iGM(P=c.CRH())&&(y.linksWithHrefs=P)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[c.TTD]}),f})();class to{buildTitle(d){let u,y=d.root;for(;void 0!==y;)u=this.getResolvedTitleForRoute(y)??u,y=y.children.find(w=>w.outlet===St);return u}getResolvedTitleForRoute(d){return d.data[bi]}}let Eo=(()=>{class f extends to{constructor(u){super(),this.title=u}updateTitle(u){const y=this.buildTitle(u);void 0!==y&&this.title.setTitle(y)}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(dn.Dx))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();class no{}let Ri=(()=>{class f{constructor(u,y,w,P,B){this.router=u,this.injector=w,this.preloadingStrategy=P,this.loader=B}setUpPreloading(){this.subscription=this.router.events.pipe((0,Je.h)(u=>u instanceof Ye),(0,ve.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,y){const w=[];for(const P of y){P.providers&&!P._injector&&(P._injector=(0,c.MMx)(P.providers,u,`Route: ${P.path}`));const B=P._injector??u,oe=P._loadedInjector??B;P.loadChildren&&!P._loadedRoutes||P.loadComponent&&!P._loadedComponent?w.push(this.preloadConfig(B,P)):(P.children||P._loadedRoutes)&&w.push(this.processRoutes(oe,P.children??P._loadedRoutes))}return(0,te.D)(w).pipe((0,lt.J)())}preloadConfig(u,y){return this.preloadingStrategy.preload(y,()=>{let w;w=y.loadChildren&&void 0===y.canLoad?this.loader.loadChildren(u,y):(0,R.of)(null);const P=w.pipe((0,Ve.z)(B=>null===B?(0,R.of)(void 0):(y._loadedRoutes=B.routes,y._loadedInjector=B.injector,this.processRoutes(B.injector??u,B.routes))));if(y.loadComponent&&!y._loadedComponent){const B=this.loader.loadComponent(y);return(0,te.D)([P,B]).pipe((0,lt.J)())}return P})}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(or),c.LFG(c.Sil),c.LFG(c.lqb),c.LFG(no),c.LFG(Ss))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();const xi=new c.OlP("");let hs=(()=>{class f{constructor(u,y,w={}){this.router=u,this.viewportScroller=y,this.options=w,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},w.scrollPositionRestoration=w.scrollPositionRestoration||"disabled",w.anchorScrolling=w.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(u=>{u instanceof $e?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof Ye&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof _t&&(u.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(u.position):u.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(u.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(u,y){this.router.triggerEvent(new _t(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,y))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return f.\u0275fac=function(u){c.$Z()},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();const Ki=new c.OlP("ROUTER_CONFIGURATION",{providedIn:"root",factory:()=>({})}),Ps=new c.OlP("ROUTER_FORROOT_GUARD"),ro=new c.OlP(""),Os=[m.Ye,{provide:hn,useClass:rt},{provide:or,useFactory:function _(f,d,u,y,w,P,B={},oe,We,ot,zt){const wt=new or(null,f,d,u,y,w,st(P));return ot&&(wt.urlHandlingStrategy=ot),zt&&(wt.routeReuseStrategy=zt),wt.titleStrategy=We??oe,function a(f,d){f.errorHandler&&(d.errorHandler=f.errorHandler),f.malformedUriErrorHandler&&(d.malformedUriErrorHandler=f.malformedUriErrorHandler),f.onSameUrlNavigation&&(d.onSameUrlNavigation=f.onSameUrlNavigation),f.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=f.paramsInheritanceStrategy),f.relativeLinkResolution&&(d.relativeLinkResolution=f.relativeLinkResolution),f.urlUpdateStrategy&&(d.urlUpdateStrategy=f.urlUpdateStrategy),f.canceledNavigationResolution&&(d.canceledNavigationResolution=f.canceledNavigationResolution)}(B,wt),wt},deps:[hn,Gn,m.Ye,c.zs3,c.Sil,Zn,Ki,Eo,[to,new c.FiY],[class Oo{},new c.FiY],[class cs{},new c.FiY]]},Gn,{provide:tr,useFactory:function o(f){return f.routerState.root},deps:[or]},Ss];function Co(){return new c.PXZ("Router",or)}let Rs=(()=>{class f{constructor(u,y){}static forRoot(u,y){return{ngModule:f,providers:[Os,[],so(u),{provide:Ps,useFactory:io,deps:[[or,new c.FiY,new c.tp0]]},{provide:Ki,useValue:y||{}},y?.useHash?{provide:m.S$,useClass:m.Do}:{provide:m.S$,useClass:m.b0},{provide:xi,useFactory:()=>{const f=(0,c.f3M)(or),d=(0,c.f3M)(m.EM),u=(0,c.f3M)(Ki);return u.scrollOffset&&d.setOffset(u.scrollOffset),new hs(f,d,u)}},y?.preloadingStrategy?en(y.preloadingStrategy):[],{provide:c.PXZ,multi:!0,useFactory:Co},y?.initialNavigation?N(y):[],[{provide:S,useFactory:p},{provide:c.tb,multi:!0,useExisting:S}]]}}static forChild(u){return{ngModule:f,providers:[so(u)]}}}return f.\u0275fac=function(u){return new(u||f)(c.LFG(Ps,8),c.LFG(or,8))},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({}),f})();function io(f){return"guarded"}function so(f){return[{provide:c.deG,multi:!0,useValue:f},{provide:Zn,multi:!0,useValue:f}]}function p(){const f=(0,c.f3M)(c.zs3);return d=>{const u=f.get(c.z2F);if(d!==u.components[0])return;const y=f.get(or),w=f.get(q);null===f.get(Ue,null,c.XFs.Optional)&&y.initialNavigation(),f.get(ro,null,c.XFs.Optional)?.setUpPreloading(),f.get(xi,null,c.XFs.Optional)?.init(),y.resetRootComponentType(u.componentTypes[0]),w.next(),w.complete()}}const S=new c.OlP("");function N(f){return["disabled"===f.initialNavigation?[{provide:c.ip1,multi:!0,useFactory:()=>{const f=(0,c.f3M)(or);return()=>{f.setUpLocationChangeListener()}}},{provide:Ue,useValue:"disabled"}]:[],"enabledBlocking"===f.initialNavigation?[{provide:Ue,useValue:"enabledBlocking"},{provide:c.ip1,multi:!0,deps:[c.zs3],useFactory:f=>{const d=f.get(m.V_,Promise.resolve(null));let u=!1;return()=>d.then(()=>new Promise(w=>{const P=f.get(or),B=f.get(q);(function y(w){const P=f.get(or);P.events.pipe((0,Je.h)(B=>B instanceof Ye||B instanceof ye||B instanceof Fe),(0,ue.U)(B=>{if(B instanceof Ye)return!0;const oe=P.navigationId!==B.id,We=B instanceof ye&&-1!==B.reason.indexOf(He);return!(!oe&&!We)&&null}),(0,Je.h)(B=>null!==B),(0,ge.q)(1)).subscribe(()=>{w()})})(()=>{w(!0),u=!0}),P.afterPreactivation=()=>(w(!0),u||B.closed?(0,R.of)(void 0):B),P.initialNavigation()}))}}]:[]]}const q=new c.OlP("",{factory:()=>new Te.x}),Ue=new c.OlP("");function en(f){return[Ri,{provide:ro,useExisting:Ri},{provide:no,useExisting:f}]}},3942:(it,De,b)=>{b.d(De,{Z:()=>xe});var m=b(2090),c=b(4859),F=b(9681),z=b(1877);class U{constructor(Ie,Te){this._delegate=Ie,this.firebase=Te,(0,F._addComponent)(Ie,new c.wA("app-compat",()=>this,"PUBLIC")),this.container=Ie.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ie){this._delegate.automaticDataCollectionEnabled=Ie}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Ie=>{this._delegate.checkDestroyed(),Ie()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,F.deleteApp)(this._delegate)))}_getService(Ie,Te=F._DEFAULT_ENTRY_NAME){var Je;this._delegate.checkDestroyed();const ke=this._delegate.container.getProvider(Ie);return!ke.isInitialized()&&"EXPLICIT"===(null===(Je=ke.getComponent())||void 0===Je?void 0:Je.instantiationMode)&&ke.initialize(),ke.getImmediate({identifier:Te})}_removeServiceInstance(Ie,Te=F._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Ie).clearInstance(Te)}_addComponent(Ie){(0,F._addComponent)(this._delegate,Ie)}_addOrOverwriteComponent(Ie){(0,F._addOrOverwriteComponent)(this._delegate,Ie)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const ee=new m.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."}),R=function te(){const Be=function ie(Be){const Ie={},Te={__esModule:!0,initializeApp:function Ce(ue,W={}){const ge=F.initializeApp(ue,W);if((0,m.r3)(Ie,ge.name))return Ie[ge.name];const H=new Be(ge,Te);return Ie[ge.name]=H,H},app:ke,registerVersion:F.registerVersion,setLogLevel:F.setLogLevel,onLog:F.onLog,apps:null,SDK_VERSION:F.SDK_VERSION,INTERNAL:{registerComponent:function K(ue){const W=ue.name,ge=W.replace("-compat","");if(F._registerComponent(ue)&&"PUBLIC"===ue.type){const H=(ne=ke())=>{if("function"!=typeof ne[ge])throw ee.create("invalid-app-argument",{appName:W});return ne[ge]()};void 0!==ue.serviceProps&&(0,m.ZB)(H,ue.serviceProps),Te[ge]=H,Be.prototype[ge]=function(...ne){return this._getService.bind(this,W).apply(this,ue.multipleInstances?ne:[])}}return"PUBLIC"===ue.type?Te[ge]:null},removeApp:function Je(ue){delete Ie[ue]},useAsService:function le(ue,W){return"serverAuth"===W?null:W},modularAPIs:F}};function ke(ue){if(!(0,m.r3)(Ie,ue=ue||F._DEFAULT_ENTRY_NAME))throw ee.create("no-app",{appName:ue});return Ie[ue]}return Te.default=Te,Object.defineProperty(Te,"apps",{get:function x(){return Object.keys(Ie).map(ue=>Ie[ue])}}),ke.App=Be,Te}(U);return Be.INTERNAL=Object.assign(Object.assign({},Be.INTERNAL),{createFirebaseNamespace:te,extendNamespace:function Ie(Te){(0,m.ZB)(Be,Te)},createSubscribe:m.ne,ErrorFactory:m.LL,deepExtend:m.ZB}),Be}(),L=new z.Yd("@firebase/app-compat");if((0,m.jU)()&&void 0!==self.firebase){L.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const Be=self.firebase.SDK_VERSION;Be&&Be.indexOf("LITE")>=0&&L.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 xe=R;!function Oe(Be){(0,F.registerVersion)("@firebase/app-compat","0.1.37",Be)}()},9681:(it,De,b)=>{b.r(De),b.d(De,{FirebaseError:()=>z.ZR,SDK_VERSION:()=>In,_DEFAULT_ENTRY_NAME:()=>Bt,_addComponent:()=>$e,_addOrOverwriteComponent:()=>Ye,_apps:()=>dn,_clearComponents:()=>Tt,_components:()=>tn,_getProvider:()=>Fe,_registerComponent:()=>ye,_removeServiceInstance:()=>ct,deleteApp:()=>Mt,getApp:()=>Nn,getApps:()=>Un,initializeApp:()=>jn,onLog:()=>Rn,registerVersion:()=>_t,setLogLevel:()=>St});var m=b(5861),c=b(4859),F=b(1877),z=b(2090),U=b(8766);class J{constructor(Ge){this.container=Ge}getPlatformInfoString(){return this.container.getProviders().map(gt=>{if(function ee(pt){return"VERSION"===pt.getComponent()?.type}(gt)){const kt=gt.getImmediate();return`${kt.library}/${kt.version}`}return null}).filter(gt=>gt).join(" ")}}const ie="@firebase/app",R=new F.Yd("@firebase/app"),Bt="[DEFAULT]",lt={[ie]:"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"},dn=new Map,tn=new Map;function $e(pt,Ge){try{pt.container.addComponent(Ge)}catch(gt){R.debug(`Component ${Ge.name} failed to register with FirebaseApp ${pt.name}`,gt)}}function Ye(pt,Ge){pt.container.addOrOverwriteComponent(Ge)}function ye(pt){const Ge=pt.name;if(tn.has(Ge))return R.debug(`There were multiple attempts to register component ${Ge}.`),!1;tn.set(Ge,pt);for(const gt of dn.values())$e(gt,pt);return!0}function Fe(pt,Ge){const gt=pt.container.getProvider("heartbeat").getImmediate({optional:!0});return gt&&gt.triggerHeartbeat(),pt.container.getProvider(Ge)}function ct(pt,Ge,gt=Bt){Fe(pt,Ge).clearInstance(gt)}function Tt(){tn.clear()}const vn=new z.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 Wn{constructor(Ge,gt,kt){this._isDeleted=!1,this._options=Object.assign({},Ge),this._config=Object.assign({},gt),this._name=gt.name,this._automaticDataCollectionEnabled=gt.automaticDataCollectionEnabled,this._container=kt,this.container.addComponent(new c.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ge){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ge}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(Ge){this._isDeleted=Ge}checkDestroyed(){if(this.isDeleted)throw vn.create("app-deleted",{appName:this._name})}}const In="9.12.1";function jn(pt,Ge={}){let gt=pt;"object"!=typeof Ge&&(Ge={name:Ge});const kt=Object.assign({name:Bt,automaticDataCollectionEnabled:!1},Ge),jt=kt.name;if("string"!=typeof jt||!jt)throw vn.create("bad-app-name",{appName:String(jt)});if(gt||(gt=(0,z.aH)()),!gt)throw vn.create("no-options");const rn=dn.get(jt);if(rn){if((0,z.vZ)(gt,rn.options)&&(0,z.vZ)(kt,rn.config))return rn;throw vn.create("duplicate-app",{appName:jt})}const Y=new c.H0(jt);for(const pe of tn.values())Y.addComponent(pe);const V=new Wn(gt,kt,Y);return dn.set(jt,V),V}function Nn(pt=Bt){const Ge=dn.get(pt);if(!Ge&&pt===Bt)return jn();if(!Ge)throw vn.create("no-app",{appName:pt});return Ge}function Un(){return Array.from(dn.values())}function Mt(pt){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,m.Z)(function*(pt){const Ge=pt.name;dn.has(Ge)&&(dn.delete(Ge),yield Promise.all(pt.container.getProviders().map(gt=>gt.delete())),pt.isDeleted=!0)})).apply(this,arguments)}function _t(pt,Ge,gt){var kt;let jt=null!==(kt=lt[pt])&&void 0!==kt?kt:pt;gt&&(jt+=`-${gt}`);const rn=jt.match(/\s|\//),Y=Ge.match(/\s|\//);if(rn||Y){const V=[`Unable to register library "${jt}" with version "${Ge}":`];return rn&&V.push(`library name "${jt}" contains illegal characters (whitespace or "/")`),rn&&Y&&V.push("and"),Y&&V.push(`version name "${Ge}" contains illegal characters (whitespace or "/")`),void R.warn(V.join(" "))}ye(new c.wA(`${jt}-version`,()=>({library:jt,version:Ge}),"VERSION"))}function Rn(pt,Ge){if(null!==pt&&"function"!=typeof pt)throw vn.create("invalid-log-argument");(0,F.Am)(pt,Ge)}function St(pt){(0,F.Ub)(pt)}const He="firebase-heartbeat-store";let se=null;function fe(){return se||(se=(0,U.X3)("firebase-heartbeat-database",1,{upgrade:(pt,Ge)=>{0===Ge&&pt.createObjectStore(He)}}).catch(pt=>{throw vn.create("idb-open",{originalErrorMessage:pt.message})})),se}function Se(){return(Se=(0,m.Z)(function*(pt){var Ge;try{return(yield fe()).transaction(He).objectStore(He).get($t(pt))}catch(gt){if(gt instanceof z.ZR)R.warn(gt.message);else{const kt=vn.create("idb-get",{originalErrorMessage:null===(Ge=gt)||void 0===Ge?void 0:Ge.message});R.warn(kt.message)}}})).apply(this,arguments)}function tt(pt,Ge){return Gt.apply(this,arguments)}function Gt(){return(Gt=(0,m.Z)(function*(pt,Ge){var gt;try{const jt=(yield fe()).transaction(He,"readwrite");return yield jt.objectStore(He).put(Ge,$t(pt)),jt.done}catch(kt){if(kt instanceof z.ZR)R.warn(kt.message);else{const jt=vn.create("idb-set",{originalErrorMessage:null===(gt=kt)||void 0===gt?void 0:gt.message});R.warn(jt.message)}}})).apply(this,arguments)}function $t(pt){return`${pt.name}!${pt.options.appId}`}class Cn{constructor(Ge){this.container=Ge,this._heartbeatsCache=null;const gt=this.container.getProvider("app").getImmediate();this._storage=new Xt(gt),this._heartbeatsCachePromise=this._storage.read().then(kt=>(this._heartbeatsCache=kt,kt))}triggerHeartbeat(){var Ge=this;return(0,m.Z)(function*(){const kt=Ge.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),jt=Jt();if(null===Ge._heartbeatsCache&&(Ge._heartbeatsCache=yield Ge._heartbeatsCachePromise),Ge._heartbeatsCache.lastSentHeartbeatDate!==jt&&!Ge._heartbeatsCache.heartbeats.some(rn=>rn.date===jt))return Ge._heartbeatsCache.heartbeats.push({date:jt,agent:kt}),Ge._heartbeatsCache.heartbeats=Ge._heartbeatsCache.heartbeats.filter(rn=>{const Y=new Date(rn.date).valueOf();return Date.now()-Y<=2592e6}),Ge._storage.overwrite(Ge._heartbeatsCache)})()}getHeartbeatsHeader(){var Ge=this;return(0,m.Z)(function*(){if(null===Ge._heartbeatsCache&&(yield Ge._heartbeatsCachePromise),null===Ge._heartbeatsCache||0===Ge._heartbeatsCache.heartbeats.length)return"";const gt=Jt(),{heartbeatsToSend:kt,unsentEntries:jt}=function Nt(pt,Ge=1024){const gt=[];let kt=pt.slice();for(const jt of pt){const rn=gt.find(Y=>Y.agent===jt.agent);if(rn){if(rn.dates.push(jt.date),Pt(gt)>Ge){rn.dates.pop();break}}else if(gt.push({agent:jt.agent,dates:[jt.date]}),Pt(gt)>Ge){gt.pop();break}kt=kt.slice(1)}return{heartbeatsToSend:gt,unsentEntries:kt}}(Ge._heartbeatsCache.heartbeats),rn=(0,z.L)(JSON.stringify({version:2,heartbeats:kt}));return Ge._heartbeatsCache.lastSentHeartbeatDate=gt,jt.length>0?(Ge._heartbeatsCache.heartbeats=jt,yield Ge._storage.overwrite(Ge._heartbeatsCache)):(Ge._heartbeatsCache.heartbeats=[],Ge._storage.overwrite(Ge._heartbeatsCache)),rn})()}}function Jt(){return(new Date).toISOString().substring(0,10)}class Xt{constructor(Ge){this.app=Ge,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,m.Z)(function*(){return!!(0,z.hl)()&&(0,z.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ge=this;return(0,m.Z)(function*(){return(yield Ge._canUseIndexedDBPromise)&&(yield function Ke(pt){return Se.apply(this,arguments)}(Ge.app))||{heartbeats:[]}})()}overwrite(Ge){var gt=this;return(0,m.Z)(function*(){var kt;if(yield gt._canUseIndexedDBPromise){const rn=yield gt.read();return tt(gt.app,{lastSentHeartbeatDate:null!==(kt=Ge.lastSentHeartbeatDate)&&void 0!==kt?kt:rn.lastSentHeartbeatDate,heartbeats:Ge.heartbeats})}})()}add(Ge){var gt=this;return(0,m.Z)(function*(){var kt;if(yield gt._canUseIndexedDBPromise){const rn=yield gt.read();return tt(gt.app,{lastSentHeartbeatDate:null!==(kt=Ge.lastSentHeartbeatDate)&&void 0!==kt?kt:rn.lastSentHeartbeatDate,heartbeats:[...rn.heartbeats,...Ge.heartbeats]})}})()}}function Pt(pt){return(0,z.L)(JSON.stringify({version:2,heartbeats:pt})).length}!function er(pt){ye(new c.wA("platform-logger",Ge=>new J(Ge),"PRIVATE")),ye(new c.wA("heartbeat",Ge=>new Cn(Ge),"PRIVATE")),_t(ie,"0.8.2",pt),_t(ie,"0.8.2","esm2017"),_t("fire-js","")}("")},4859:(it,De,b)=>{b.d(De,{H0:()=>ie,wA:()=>F});var m=b(5861),c=b(2090);class F{constructor(R,L,de){this.name=R,this.instanceFactory=L,this.type=de,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(R){return this.instantiationMode=R,this}setMultipleInstances(R){return this.multipleInstances=R,this}setServiceProps(R){return this.serviceProps=R,this}setInstanceCreatedCallback(R){return this.onInstanceCreated=R,this}}const z="[DEFAULT]";class U{constructor(R,L){this.name=R,this.container=L,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(R){const L=this.normalizeInstanceIdentifier(R);if(!this.instancesDeferred.has(L)){const de=new c.BH;if(this.instancesDeferred.set(L,de),this.isInitialized(L)||this.shouldAutoInitialize())try{const je=this.getOrInitializeService({instanceIdentifier:L});je&&de.resolve(je)}catch{}}return this.instancesDeferred.get(L).promise}getImmediate(R){var L;const de=this.normalizeInstanceIdentifier(R?.identifier),je=null!==(L=R?.optional)&&void 0!==L&&L;if(!this.isInitialized(de)&&!this.shouldAutoInitialize()){if(je)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:de})}catch(Oe){if(je)return null;throw Oe}}getComponent(){return this.component}setComponent(R){if(R.name!==this.name)throw Error(`Mismatching Component ${R.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=R,this.shouldAutoInitialize()){if(function ee(te){return"EAGER"===te.instantiationMode}(R))try{this.getOrInitializeService({instanceIdentifier:z})}catch{}for(const[L,de]of this.instancesDeferred.entries()){const je=this.normalizeInstanceIdentifier(L);try{const Oe=this.getOrInitializeService({instanceIdentifier:je});de.resolve(Oe)}catch{}}}}clearInstance(R=z){this.instancesDeferred.delete(R),this.instancesOptions.delete(R),this.instances.delete(R)}delete(){var R=this;return(0,m.Z)(function*(){const L=Array.from(R.instances.values());yield Promise.all([...L.filter(de=>"INTERNAL"in de).map(de=>de.INTERNAL.delete()),...L.filter(de=>"_delete"in de).map(de=>de._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(R=z){return this.instances.has(R)}getOptions(R=z){return this.instancesOptions.get(R)||{}}initialize(R={}){const{options:L={}}=R,de=this.normalizeInstanceIdentifier(R.instanceIdentifier);if(this.isInitialized(de))throw Error(`${this.name}(${de}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const je=this.getOrInitializeService({instanceIdentifier:de,options:L});for(const[Oe,xe]of this.instancesDeferred.entries())de===this.normalizeInstanceIdentifier(Oe)&&xe.resolve(je);return je}onInit(R,L){var de;const je=this.normalizeInstanceIdentifier(L),Oe=null!==(de=this.onInitCallbacks.get(je))&&void 0!==de?de:new Set;Oe.add(R),this.onInitCallbacks.set(je,Oe);const xe=this.instances.get(je);return xe&&R(xe,je),()=>{Oe.delete(R)}}invokeOnInitCallbacks(R,L){const de=this.onInitCallbacks.get(L);if(de)for(const je of de)try{je(R,L)}catch{}}getOrInitializeService({instanceIdentifier:R,options:L={}}){let de=this.instances.get(R);if(!de&&this.component&&(de=this.component.instanceFactory(this.container,{instanceIdentifier:(te=R,te===z?void 0:te),options:L}),this.instances.set(R,de),this.instancesOptions.set(R,L),this.invokeOnInitCallbacks(de,R),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,R,de)}catch{}var te;return de||null}normalizeInstanceIdentifier(R=z){return this.component?this.component.multipleInstances?R:z:R}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ie{constructor(R){this.name=R,this.providers=new Map}addComponent(R){const L=this.getProvider(R.name);if(L.isComponentSet())throw new Error(`Component ${R.name} has already been registered with ${this.name}`);L.setComponent(R)}addOrOverwriteComponent(R){this.getProvider(R.name).isComponentSet()&&this.providers.delete(R.name),this.addComponent(R)}getProvider(R){if(this.providers.has(R))return this.providers.get(R);const L=new U(R,this);return this.providers.set(R,L),L}getProviders(){return Array.from(this.providers.values())}}},1877:(it,De,b)=>{b.d(De,{Am:()=>te,Ub:()=>ie,Yd:()=>ee,in:()=>c});const m=[];var c=(()=>{return(R=c||(c={}))[R.DEBUG=0]="DEBUG",R[R.VERBOSE=1]="VERBOSE",R[R.INFO=2]="INFO",R[R.WARN=3]="WARN",R[R.ERROR=4]="ERROR",R[R.SILENT=5]="SILENT",c;var R})();const F={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},z=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},J=(R,L,...de)=>{if(L<R.logLevel)return;const je=(new Date).toISOString(),Oe=U[L];if(!Oe)throw new Error(`Attempted to log a message with an invalid logType (value: ${L})`);console[Oe](`[${je}] ${R.name}:`,...de)};class ee{constructor(L){this.name=L,this._logLevel=z,this._logHandler=J,this._userLogHandler=null,m.push(this)}get logLevel(){return this._logLevel}set logLevel(L){if(!(L in c))throw new TypeError(`Invalid value "${L}" assigned to \`logLevel\``);this._logLevel=L}setLogLevel(L){this._logLevel="string"==typeof L?F[L]:L}get logHandler(){return this._logHandler}set logHandler(L){if("function"!=typeof L)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=L}get userLogHandler(){return this._userLogHandler}set userLogHandler(L){this._userLogHandler=L}debug(...L){this._userLogHandler&&this._userLogHandler(this,c.DEBUG,...L),this._logHandler(this,c.DEBUG,...L)}log(...L){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...L),this._logHandler(this,c.VERBOSE,...L)}info(...L){this._userLogHandler&&this._userLogHandler(this,c.INFO,...L),this._logHandler(this,c.INFO,...L)}warn(...L){this._userLogHandler&&this._userLogHandler(this,c.WARN,...L),this._logHandler(this,c.WARN,...L)}error(...L){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...L),this._logHandler(this,c.ERROR,...L)}}function ie(R){m.forEach(L=>{L.setLogLevel(R)})}function te(R,L){for(const de of m){let je=null;L&&L.level&&(je=F[L.level]),de.userLogHandler=null===R?null:(Oe,xe,...Be)=>{const Ie=Be.map(Te=>{if(null==Te)return null;if("string"==typeof Te)return Te;if("number"==typeof Te||"boolean"==typeof Te)return Te.toString();if(Te instanceof Error)return Te.message;try{return JSON.stringify(Te)}catch{return null}}).filter(Te=>Te).join(" ");xe>=(je??Oe.logLevel)&&R({level:c[xe].toLowerCase(),message:Ie,args:Be,type:Oe.name})}}}},8766:(it,De,b)=>{b.d(De,{Lj:()=>Ce,X3:()=>ke});var m=b(5861);let F,z;const ee=new WeakMap,ie=new WeakMap,te=new WeakMap,R=new WeakMap,L=new WeakMap;let Oe={get(W,ge,H){if(W instanceof IDBTransaction){if("done"===ge)return ie.get(W);if("objectStoreNames"===ge)return W.objectStoreNames||te.get(W);if("store"===ge)return H.objectStoreNames[1]?void 0:H.objectStore(H.objectStoreNames[0])}return Te(W[ge])},set:(W,ge,H)=>(W[ge]=H,!0),has:(W,ge)=>W instanceof IDBTransaction&&("done"===ge||"store"===ge)||ge in W};function Ie(W){return"function"==typeof W?function Be(W){return W!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function J(){return z||(z=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(W)?function(...ge){return W.apply(Je(this),ge),Te(ee.get(this))}:function(...ge){return Te(W.apply(Je(this),ge))}:function(ge,...H){const ne=W.call(Je(this),ge,...H);return te.set(ne,ge.sort?ge.sort():[ge]),Te(ne)}}(W):(W instanceof IDBTransaction&&function je(W){if(ie.has(W))return;const ge=new Promise((H,ne)=>{const me=()=>{W.removeEventListener("complete",ve),W.removeEventListener("error",_e),W.removeEventListener("abort",_e)},ve=()=>{H(),me()},_e=()=>{ne(W.error||new DOMException("AbortError","AbortError")),me()};W.addEventListener("complete",ve),W.addEventListener("error",_e),W.addEventListener("abort",_e)});ie.set(W,ge)}(W),((W,ge)=>ge.some(H=>W instanceof H))(W,function U(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(W,Oe):W)}function Te(W){if(W instanceof IDBRequest)return function de(W){const ge=new Promise((H,ne)=>{const me=()=>{W.removeEventListener("success",ve),W.removeEventListener("error",_e)},ve=()=>{H(Te(W.result)),me()},_e=()=>{ne(W.error),me()};W.addEventListener("success",ve),W.addEventListener("error",_e)});return ge.then(H=>{H instanceof IDBCursor&&ee.set(H,W)}).catch(()=>{}),L.set(ge,W),ge}(W);if(R.has(W))return R.get(W);const ge=Ie(W);return ge!==W&&(R.set(W,ge),L.set(ge,W)),ge}const Je=W=>L.get(W);function ke(W,ge,{blocked:H,upgrade:ne,blocking:me,terminated:ve}={}){const _e=indexedDB.open(W,ge),Ve=Te(_e);return ne&&_e.addEventListener("upgradeneeded",ut=>{ne(Te(_e.result),ut.oldVersion,ut.newVersion,Te(_e.transaction))}),H&&_e.addEventListener("blocked",()=>H()),Ve.then(ut=>{ve&&ut.addEventListener("close",()=>ve()),me&&ut.addEventListener("versionchange",()=>me())}).catch(()=>{}),Ve}function Ce(W,{blocked:ge}={}){const H=indexedDB.deleteDatabase(W);return ge&&H.addEventListener("blocked",()=>ge()),Te(H).then(()=>{})}const x=["get","getKey","getAll","getAllKeys","count"],K=["put","add","delete","clear"],le=new Map;function ue(W,ge){if(!(W instanceof IDBDatabase)||ge in W||"string"!=typeof ge)return;if(le.get(ge))return le.get(ge);const H=ge.replace(/FromIndex$/,""),ne=ge!==H,me=K.includes(H);if(!(H in(ne?IDBIndex:IDBObjectStore).prototype)||!me&&!x.includes(H))return;const ve=function(){var _e=(0,m.Z)(function*(Ve,...ut){const qt=this.transaction(Ve,me?"readwrite":"readonly");let Bt=qt.store;return ne&&(Bt=Bt.index(ut.shift())),(yield Promise.all([Bt[H](...ut),me&&qt.done]))[0]});return function(ut){return _e.apply(this,arguments)}}();return le.set(ge,ve),ve}!function xe(W){Oe=W(Oe)}(W=>({...W,get:(ge,H,ne)=>ue(ge,H)||W.get(ge,H,ne),has:(ge,H)=>!!ue(ge,H)||W.has(ge,H)}))},5421:(it,De,b)=>{b.d(De,{Cz:()=>Je,ys:()=>Te});var m=b(5861),c=b(4650),F=b(6895),z=b(8306),U=b(8996),J=b(9841),ee=b(7579),ie=b(5698);function te(ke,Ce,x,K){return new Promise((le,ue)=>{ke||ue("IndexedDB not available");const W=ke.open(Ce,x);let ge;W.onsuccess=H=>{ge=W.result,le(ge)},W.onerror=H=>{ue(`IndexedDB error: ${W.error}`)},"function"==typeof K&&(W.onupgradeneeded=H=>{K(H,ge)})})}function R(ke,Ce,x,K,le){if(!ke)return;const ue=ke.open(Ce,x);ue.onupgradeneeded=W=>{const ge=W.target.result;K.forEach(ne=>{if(!ge.objectStoreNames.contains(ne.store)){const me=ge.createObjectStore(ne.store,ne.storeConfig);ne.storeSchema.forEach(ve=>{me.createIndex(ve.name,ve.keypath,ve.options)})}});const H=le&&le();H&&Object.keys(H).map(ne=>parseInt(ne,10)).filter(ne=>ne>W.oldVersion).sort((ne,me)=>ne-me).forEach(ne=>{H[ne](ge,ue.transaction)}),ge.close()},ue.onsuccess=W=>{W.target.result.close()}}function je(ke,Ce,x){ke||x("You need to use the openDatabase function to create a database before you query it!"),function de(ke,Ce){return ke.objectStoreNames.contains(Ce)}(ke,Ce)||x(`objectStore does not exists: ${Ce}`)}function Oe(ke,Ce){const x=ke.transaction(Ce.storeName,Ce.dbMode);return x.onerror=Ce.error,x.onabort=Ce.abort,x}function xe(ke,Ce,x,K){return{storeName:Ce,dbMode:ke,error:le=>{x(le)},abort:le=>{x(le)}}}var Be=(()=>{return(ke=Be||(Be={})).readonly="readonly",ke.readwrite="readwrite",Be;var ke})();const Ie=new c.OlP(null);let Te=(()=>{class ke{constructor(x,K){if(this.dbConfig=x,this.platformId=K,!x.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!x.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=(0,F.NF)(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,R(this.indexedDB,x.name,x.version,x.objectStoresMeta,x.migrationFactory),te(this.indexedDB,x.name).then(le=>{le.version!==x.version&&(this.dbConfig.version=le.version)}))}createObjectStore(x,K){const le=[x];R(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,le,K)}add(x,K,le){return new z.y(ue=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(W=>{const H=Oe(W,xe(Be.readwrite,x,me=>ue.error(me))).objectStore(x);(Boolean(le)?H.add(K,le):H.add(K)).onsuccess=function(){var me=(0,m.Z)(function*(ve){H.get(ve.target.result).onsuccess=ut=>{ue.next(ut.target.result),ue.complete()}});return function(ve){return me.apply(this,arguments)}}()}).catch(W=>ue.error(W))})}bulkAdd(x,K){const le=new Promise((ue,W)=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{const ne=Oe(ge,xe(Be.readwrite,x,ue)).objectStore(x),me=K.map(ve=>new Promise((_e,Ve)=>{const ut=ve.key;delete ve.key,(Boolean(ut)?ne.add(ve,ut):ne.add(ve)).onsuccess=Bt=>{_e(Bt.target.result)}}));ue(Promise.all(me))}).catch(ge=>W(ge))});return(0,U.D)(le)}bulkDelete(x,K){const le=K.map(ue=>new Promise((W,ge)=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(H=>{const ne=Oe(H,xe(Be.readwrite,x,ge));ne.objectStore(x).delete(ue),ne.oncomplete=()=>{this.getAll(x).pipe((0,ie.q)(1)).subscribe(ve=>{W(ve)})}}).catch(H=>ge(H))}));return(0,U.D)(Promise.all(le))}getByKey(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{const H=Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x).get(K);H.onsuccess=ne=>{le.next(ne.target.result),le.complete()},H.onerror=ne=>{le.error(ne)}}).catch(ue=>le.error(ue))})}bulkGet(x,K){const le=K.map(ue=>this.getByKey(x,ue));return new z.y(ue=>{(0,J.a)(le).subscribe(W=>{ue.next(W),ue.complete()})})}getByID(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne)),Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x).get(K).onsuccess=ne=>{le.next(ne.target.result)}}).catch(ue=>le.error(ue))})}getByIndex(x,K,le){return new z.y(ue=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(W=>{je(W,x,ve=>ue.error(ve)),Oe(W,xe(Be.readonly,x,ue.error)).objectStore(x).index(K).get(le).onsuccess=ve=>{ue.next(ve.target.result),ue.complete()}}).catch(W=>ue.error(W))})}getAll(x){return new z.y(K=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(le=>{je(le,x,H=>K.error(H));const ge=Oe(le,xe(Be.readonly,x,K.error)).objectStore(x).getAll();ge.onerror=H=>{K.error(H)},ge.onsuccess=({target:{result:H}})=>{K.next(H),K.complete()}}).catch(le=>K.error(le))})}update(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne));const ge=Oe(ue,xe(Be.readwrite,x,ne=>le.error(ne))).objectStore(x);ge.put(K).onsuccess=function(){var ne=(0,m.Z)(function*(me){ge.get(me.target.result).onsuccess=Ve=>{le.next(Ve.target.result),le.complete()}});return function(me){return ne.apply(this,arguments)}}()}).catch(ue=>le.error(ue))})}delete(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,H=>le.error(H));const W=Oe(ue,xe(Be.readwrite,x,H=>le.error(H)));W.objectStore(x).delete(K),W.oncomplete=()=>{this.getAll(x).pipe((0,ie.q)(1)).subscribe(H=>{le.next(H),le.complete()})}}).catch(ue=>le.error(ue))})}deleteByKey(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,H=>le.error(H));const W=Oe(ue,xe(Be.readwrite,x,H=>le.error(H))),ge=W.objectStore(x);W.oncomplete=()=>{le.next(!0),le.complete()},ge.delete(K)}).catch(ue=>le.error(ue))})}clear(x){return new z.y(K=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(le=>{je(le,x,ge=>K.error(ge));const ue=Oe(le,xe(Be.readwrite,x,ge=>K.error(ge)));ue.objectStore(x).clear(),ue.oncomplete=()=>{K.next(!0),K.complete()}}).catch(le=>K.error(le))})}deleteDatabase(){var x=this;return new z.y(K=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(function(){var le=(0,m.Z)(function*(ue){yield ue.close();const W=x.indexedDB.deleteDatabase(x.dbConfig.name);W.onsuccess=()=>{K.next(!0),K.complete()},W.onerror=ge=>K.error(ge),W.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}});return function(ue){return le.apply(this,arguments)}}()).catch(le=>K.error(le))})}openCursor(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne));const ge=Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x);(void 0===K?ge.openCursor():ge.openCursor(K)).onsuccess=ne=>{le.next(ne),le.complete()}}).catch(ue=>le.error(ue))})}openCursorByIndex(x,K,le,ue=Be.readonly){const W=new ee.x;return te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{je(ge,x,_e=>{W.error(_e)}),Oe(ge,xe(ue,x,_e=>{W.error(_e)})).objectStore(x).index(K).openCursor(le).onsuccess=_e=>{W.next(_e)}}).catch(ge=>W.error(ge)),W}getAllByIndex(x,K,le){const ue=[];return new z.y(W=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{je(ge,x,_e=>W.error(_e)),Oe(ge,xe(Be.readonly,x,W.error)).objectStore(x).index(K).openCursor(le).onsuccess=_e=>{const Ve=_e.target.result;Ve?(ue.push(Ve.value),Ve.continue()):(W.next(ue),W.complete())}}).catch(ge=>W.error(ge))})}getAllKeysByIndex(x,K,le){const ue=[];return new z.y(W=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ge=>{je(ge,x,_e=>W.error(_e)),Oe(ge,xe(Be.readonly,x,W.error)).objectStore(x).index(K).openKeyCursor(le).onsuccess=_e=>{const Ve=_e.target.result;Ve?(ue.push({primaryKey:Ve.primaryKey,key:Ve.key}),Ve.continue()):(W.next(ue),W.complete())}}).catch(ge=>W.error(ge))})}count(x,K){return new z.y(le=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(ue=>{je(ue,x,ne=>le.error(ne));const H=Oe(ue,xe(Be.readonly,x,le.error)).objectStore(x).count(K);H.onerror=ne=>le.error(ne),H.onsuccess=ne=>{le.next(ne.target.result),le.complete()}}).catch(ue=>le.error(ue))})}countByIndex(x,K,le){return new z.y(ue=>{te(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(W=>{je(W,x,ve=>ue.error(ve));const me=Oe(W,xe(Be.readonly,x,ue.error)).objectStore(x).index(K).count(le);me.onerror=ve=>ue.error(ve),me.onsuccess=ve=>{ue.next(ve.target.result),ue.complete()}}).catch(W=>ue.error(W))})}deleteObjectStore(x){return function L(ke,Ce,x){if(!ke||!Ce||!x)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new z.y(K=>{try{const ue=indexedDB.open(ke,Ce+1);ue.onupgradeneeded=W=>{const ge=W.target.result;ge.deleteObjectStore(x),ge.close(),console.log("onupgradeneeded"),K.next(!0),K.complete()},ue.onerror=W=>K.error(W)}catch(le){K.error(le)}})}(this.dbConfig.name,++this.dbConfig.version,x)}}return ke.\u0275fac=function(x){return new(x||ke)(c.LFG(Ie),c.LFG(c.Lbi))},ke.\u0275prov=c.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),Je=(()=>{class ke{static forRoot(x){return{ngModule:ke,providers:[Te,{provide:Ie,useValue:x}]}}}return ke.\u0275fac=function(x){return new(x||ke)},ke.\u0275mod=c.oAB({type:ke}),ke.\u0275inj=c.cJS({imports:[[F.ez]]}),ke})()},7185:(it,De,b)=>{b.d(De,{FN:()=>Ve,PR:()=>K,Rh:()=>qt,_W:()=>_e});var m=b(4650),c=b(7340),F=b(7579),z=b(6895),U=b(1481);const J=["toast-component",""];function ee($e,Ye){if(1&$e){const ye=m.EpF();m.TgZ(0,"button",5),m.NdJ("click",function(){m.CHM(ye);const ct=m.oxw();return m.KtG(ct.remove())}),m.TgZ(1,"span",6),m._uU(2,"\xd7"),m.qZA()()}}function ie($e,Ye){if(1&$e&&(m.ynx(0),m._uU(1),m.BQk()),2&$e){const ye=m.oxw(2);m.xp6(1),m.hij("[",ye.duplicatesCount+1,"]")}}function te($e,Ye){if(1&$e&&(m.TgZ(0,"div"),m._uU(1),m.YNc(2,ie,2,1,"ng-container",4),m.qZA()),2&$e){const ye=m.oxw();m.Tol(ye.options.titleClass),m.uIk("aria-label",ye.title),m.xp6(1),m.hij(" ",ye.title," "),m.xp6(1),m.Q6J("ngIf",ye.duplicatesCount)}}function R($e,Ye){if(1&$e&&m._UZ(0,"div",7),2&$e){const ye=m.oxw();m.Tol(ye.options.messageClass),m.Q6J("innerHTML",ye.message,m.oJD)}}function L($e,Ye){if(1&$e&&(m.TgZ(0,"div",8),m._uU(1),m.qZA()),2&$e){const ye=m.oxw();m.Tol(ye.options.messageClass),m.uIk("aria-label",ye.message),m.xp6(1),m.hij(" ",ye.message," ")}}function de($e,Ye){if(1&$e&&(m.TgZ(0,"div"),m._UZ(1,"div",9),m.qZA()),2&$e){const ye=m.oxw();m.xp6(1),m.Udp("width",ye.width+"%")}}class Ce{constructor(Ye,ye){this.component=Ye,this.injector=ye}attach(Ye,ye){return this._attachedHost=Ye,Ye.attach(this,ye)}detach(){const Ye=this._attachedHost;if(Ye)return this._attachedHost=void 0,Ye.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ye){this._attachedHost=Ye}}class K{constructor(Ye,ye,Fe,ct,Tt,nn){this.toastId=Ye,this.config=ye,this.message=Fe,this.title=ct,this.toastType=Tt,this.toastRef=nn,this._onTap=new F.x,this._onAction=new F.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(Ye){this._onAction.next(Ye)}onAction(){return this._onAction.asObservable()}}const ue=new m.OlP("ToastConfig");class W{constructor(Ye){this._overlayRef=Ye,this.duplicatesCount=0,this._afterClosed=new F.x,this._activate=new F.x,this._manualClose=new F.x,this._resetTimeout=new F.x,this._countDuplicate=new F.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(Ye,ye){Ye&&this._resetTimeout.next(),ye&&this._countDuplicate.next(++this.duplicatesCount)}}class ge{constructor(Ye,ye){this._toastPackage=Ye,this._parentInjector=ye}get(Ye,ye,Fe){return Ye===K?this._toastPackage:this._parentInjector.get(Ye,ye,Fe)}}class H extends class x{attach(Ye,ye){return this._attachedPortal=Ye,this.attachComponentPortal(Ye,ye)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ye){this._disposeFn=Ye}}{constructor(Ye,ye,Fe){super(),this._hostDomElement=Ye,this._componentFactoryResolver=ye,this._appRef=Fe}attachComponentPortal(Ye,ye){const Fe=this._componentFactoryResolver.resolveComponentFactory(Ye.component);let ct;return ct=Fe.create(Ye.injector),this._appRef.attachView(ct.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ct.hostView),ct.destroy()}),ye?this._hostDomElement.insertBefore(this._getComponentRootNode(ct),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ct)),ct}_getComponentRootNode(Ye){return Ye.hostView.rootNodes[0]}}class ne{constructor(Ye){this._portalHost=Ye}attach(Ye,ye=!0){return this._portalHost.attach(Ye,ye)}detach(){return this._portalHost.detach()}}let me=(()=>{class $e{constructor(ye){this._document=ye}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ye=this._document.createElement("div");ye.classList.add("overlay-container"),ye.setAttribute("aria-live","polite"),this._document.body.appendChild(ye),this._containerElement=ye}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.LFG(z.K0))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ve=(()=>{class $e{constructor(ye,Fe,ct,Tt){this._overlayContainer=ye,this._componentFactoryResolver=Fe,this._appRef=ct,this._document=Tt,this._paneElements=new Map}create(ye,Fe){return this._createOverlayRef(this.getPaneElement(ye,Fe))}getPaneElement(ye="",Fe){return this._paneElements.get(Fe)||this._paneElements.set(Fe,{}),this._paneElements.get(Fe)[ye]||(this._paneElements.get(Fe)[ye]=this._createPaneElement(ye,Fe)),this._paneElements.get(Fe)[ye]}_createPaneElement(ye,Fe){const ct=this._document.createElement("div");return ct.id="toast-container",ct.classList.add(ye),ct.classList.add("toast-container"),Fe?Fe.getContainerElement().appendChild(ct):this._overlayContainer.getContainerElement().appendChild(ct),ct}_createPortalHost(ye){return new H(ye,this._componentFactoryResolver,this._appRef)}_createOverlayRef(ye){return new ne(this._createPortalHost(ye))}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.LFG(me),m.LFG(m._Vd),m.LFG(m.z2F),m.LFG(z.K0))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),_e=(()=>{class $e{constructor(ye,Fe,ct,Tt,nn){this.overlay=Fe,this._injector=ct,this.sanitizer=Tt,this.ngZone=nn,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...ye.default,...ye.config},ye.config.iconClasses&&(this.toastrConfig.iconClasses={...ye.default.iconClasses,...ye.config.iconClasses})}show(ye,Fe,ct={},Tt=""){return this._preBuildNotification(Tt,ye,Fe,this.applyConfig(ct))}success(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",ye,Fe,this.applyConfig(ct))}error(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",ye,Fe,this.applyConfig(ct))}info(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",ye,Fe,this.applyConfig(ct))}warning(ye,Fe,ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",ye,Fe,this.applyConfig(ct))}clear(ye){for(const Fe of this.toasts)if(void 0!==ye){if(Fe.toastId===ye)return void Fe.toastRef.manualClose()}else Fe.toastRef.manualClose()}remove(ye){const Fe=this._findToast(ye);if(!Fe||(Fe.activeToast.toastRef.close(),this.toasts.splice(Fe.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(ye="",Fe="",ct,Tt){const{includeTitleDuplicates:nn}=this.toastrConfig;for(const vn of this.toasts){const Wn=nn&&vn.title===ye;if((!nn||Wn)&&vn.message===Fe)return vn.toastRef.onDuplicate(ct,Tt),vn}return null}applyConfig(ye={}){return{...this.toastrConfig,...ye}}_findToast(ye){for(let Fe=0;Fe<this.toasts.length;Fe++)if(this.toasts[Fe].toastId===ye)return{index:Fe,activeToast:this.toasts[Fe]};return null}_preBuildNotification(ye,Fe,ct,Tt){return Tt.onActivateTick?this.ngZone.run(()=>this._buildNotification(ye,Fe,ct,Tt)):this._buildNotification(ye,Fe,ct,Tt)}_buildNotification(ye,Fe,ct,Tt){if(!Tt.toastComponent)throw new Error("toastComponent required");const nn=this.findDuplicate(ct,Fe,this.toastrConfig.resetTimeoutOnDuplicate&&Tt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&ct||Fe)&&this.toastrConfig.preventDuplicates&&null!==nn)return nn;this.previousToastMessage=Fe;let vn=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(vn=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Wn=this.overlay.create(Tt.positionClass,this.overlayContainer);this.index=this.index+1;let In=Fe;Fe&&Tt.enableHtml&&(In=this.sanitizer.sanitize(m.q3G.HTML,Fe));const jn=new W(Wn),Nn=new K(this.index,Tt,In,ct,ye,jn),Un=new ge(Nn,this._injector),Mt=new Ce(Tt.toastComponent,Un),Hn=Wn.attach(Mt,this.toastrConfig.newestOnTop);jn.componentInstance=Hn.instance;const _t={toastId:this.index,title:ct||"",message:Fe||"",toastRef:jn,onShown:jn.afterActivate(),onHidden:jn.afterClosed(),onTap:Nn.onTap(),onAction:Nn.onAction(),portal:Hn};return vn||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{_t.toastRef.activate()})),this.toasts.push(_t),_t}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.LFG(ue),m.LFG(ve),m.LFG(m.zs3),m.LFG(U.H7),m.LFG(m.R0b))},$e.\u0275prov=m.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),Ve=(()=>{class $e{constructor(ye,Fe,ct){this.toastrService=ye,this.toastPackage=Fe,this.ngZone=ct,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=Fe.message,this.title=Fe.title,this.options=Fe.config,this.originalTimeout=Fe.config.timeOut,this.toastClasses=`${Fe.toastType} ${Fe.config.toastClass}`,this.sub=Fe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Fe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Fe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Fe.toastRef.countDuplicate().subscribe(Tt=>{this.duplicatesCount=Tt})}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 ye=(new Date).getTime();this.width=(this.hideTime-ye)/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&&(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(ye,Fe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(ye),Fe)):this.timeout=setTimeout(()=>ye(),Fe)}outsideInterval(ye,Fe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(ye),Fe)):this.intervalId=setInterval(()=>ye(),Fe)}runInsideAngular(ye){this.ngZone?this.ngZone.run(()=>ye()):ye()}}return $e.\u0275fac=function(ye){return new(ye||$e)(m.Y36(_e),m.Y36(K),m.Y36(m.R0b))},$e.\u0275cmp=m.Xpm({type:$e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(ye,Fe){1&ye&&m.NdJ("click",function(){return Fe.tapToast()})("mouseenter",function(){return Fe.stickAround()})("mouseleave",function(){return Fe.delayedHideToast()}),2&ye&&(m.d8E("@flyInOut",Fe.state),m.Tol(Fe.toastClasses),m.Udp("display",Fe.displayStyle))},attrs:J,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(ye,Fe){1&ye&&(m.YNc(0,ee,3,0,"button",0),m.YNc(1,te,3,5,"div",1),m.YNc(2,R,1,3,"div",2),m.YNc(3,L,2,4,"div",3),m.YNc(4,de,2,2,"div",4)),2&ye&&(m.Q6J("ngIf",Fe.options.closeButton),m.xp6(1),m.Q6J("ngIf",Fe.title),m.xp6(1),m.Q6J("ngIf",Fe.message&&Fe.options.enableHtml),m.xp6(1),m.Q6J("ngIf",Fe.message&&!Fe.options.enableHtml),m.xp6(1),m.Q6J("ngIf",Fe.options.progressBar))},dependencies:[z.O5],encapsulation:2,data:{animation:[(0,c.X$)("flyInOut",[(0,c.SB)("inactive",(0,c.oB)({opacity:0})),(0,c.SB)("active",(0,c.oB)({opacity:1})),(0,c.SB)("removed",(0,c.oB)({opacity:0})),(0,c.eR)("inactive => active",(0,c.jt)("{{ easeTime }}ms {{ easing }}")),(0,c.eR)("active => removed",(0,c.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),$e})();const ut={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:Ve};let qt=(()=>{class $e{static forRoot(ye={}){return{ngModule:$e,providers:[{provide:ue,useValue:{default:ut,config:ye}}]}}}return $e.\u0275fac=function(ye){return new(ye||$e)},$e.\u0275mod=m.oAB({type:$e}),$e.\u0275inj=m.cJS({imports:[z.ez]}),$e})()},5861:(it,De,b)=>{function m(F,z,U,J,ee,ie,te){try{var R=F[ie](te),L=R.value}catch(de){return void U(de)}R.done?z(L):Promise.resolve(L).then(J,ee)}function c(F){return function(){var z=this,U=arguments;return new Promise(function(J,ee){var ie=F.apply(z,U);function te(L){m(ie,J,ee,te,R,"next",L)}function R(L){m(ie,J,ee,te,R,"throw",L)}te(void 0)})}}b.d(De,{Z:()=>c})}},it=>{it(it.s=5059)}]);