dealposbarcode 1.4.6 → 1.4.7
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.
- package/barcode/467.b799293f53dc0443.js +1 -0
- package/barcode/index.html +2 -2
- package/barcode/main.ab0d6ad87e45b9e7.js +1 -0
- package/barcode/ngsw.json +10 -10
- package/barcode/{runtime.d3f07defbc4072c7.js → runtime.f1e532e1dbd7cd0b.js} +1 -1
- package/barcode/{styles.add306666346cf81.css → styles.d47d2853fe454281.css} +2 -2
- package/package.json +1 -1
- package/barcode/467.eb966c1f2cff23e4.js +0 -1
- package/barcode/main.d0562c59a961768e.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkbarcode_app=self.webpackChunkbarcode_app||[]).push([[179],{8811:(Dt,Se,g)=>{g.d(Se,{zQ:()=>Oi,ww:()=>Bo});var r=g(4650),c=g(7579),A=g(9646),B=g(9751),X=g(8996),le=g(6451),q=g(5363),ne=g(3900),ie=g(4004),j=g(4707),ee=g(3099);function ae(Pe,Fe,Ke){let dt,Ft=!1;return Pe&&"object"==typeof Pe?({bufferSize:dt=1/0,windowTime:Fe=1/0,refCount:Ft=!1,scheduler:Ke}=Pe):dt=Pe??1/0,(0,ee.B)({connector:()=>new j.t(dt,Fe,Ke),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Ft})}var je=g(590),Ee=g(576);function Le(Pe,Fe){return(0,Ee.m)(Fe)?(0,ne.w)(()=>Pe,Fe):(0,ne.w)(()=>Pe)}var Ne=g(9468),he=g(9300),Re=g(2122),ke=g(2011),tt=g(6895);g(259);var ve=g(5861),qe=g(9681),L=g(4859),te=g(2090),Ve=g(1877);const ut=new Map,Bt={activated:!1,tokenObservers:[]},Jt={initialized:!1,enabled:!1};function Vt(Pe){return ut.get(Pe)||Object.assign({},Bt)}function En(){return Jt}class se{constructor(Fe,Ke,dt,Ft,tn){if(this.operation=Fe,this.retryPolicy=Ke,this.getWaitDuration=dt,this.lowerBound=Ft,this.upperBound=tn,this.pending=null,this.nextErrorWaitInterval=Ft,Ft>tn)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(Fe){var Ke=this;return(0,ve.Z)(function*(){Ke.stop();try{Ke.pending=new te.BH,yield function Ie(Pe){return new Promise(Fe=>{setTimeout(Fe,Pe)})}(Ke.getNextRun(Fe)),Ke.pending.resolve(),yield Ke.pending.promise,Ke.pending=new te.BH,yield Ke.operation(),Ke.pending.resolve(),yield Ke.pending.promise,Ke.process(!0).catch(()=>{})}catch(dt){Ke.retryPolicy(dt)?Ke.process(!1).catch(()=>{}):Ke.stop()}})()}getNextRun(Fe){if(Fe)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const Ke=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),Ke}}}const st=new te.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 $t(Pe){if(!Vt(Pe).activated)throw st.create("use-before-activation",{appName:Pe.name})}function De(Pe,Fe){return lt.apply(this,arguments)}function lt(){return(lt=(0,ve.Z)(function*({url:Pe,body:Fe},Ke){const dt={"Content-Type":"application/json"},Ft=Ke.getImmediate({optional:!0});if(Ft){const hi=yield Ft.getHeartbeatsHeader();hi&&(dt["X-Firebase-Client"]=hi)}const tn={method:"POST",body:JSON.stringify(Fe),headers:dt};let hn,kn;try{hn=yield fetch(Pe,tn)}catch(hi){throw st.create("fetch-network-error",{originalErrorMessage:hi?.message})}if(200!==hn.status)throw st.create("fetch-status-error",{httpStatus:hn.status});try{kn=yield hn.json()}catch(hi){throw st.create("fetch-parse-error",{originalErrorMessage:hi?.message})}const bn=kn.ttl.match(/^([\d.]+)(s)$/);if(!bn||!bn[2]||isNaN(Number(bn[1])))throw st.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${kn.ttl}`});const Ci=1e3*Number(bn[1]),ri=Date.now();return{token:kn.token,expireTimeMillis:ri+Ci,issuedAtTimeMillis:ri}})).apply(this,arguments)}function Ct(Pe,Fe){const{projectId:Ke,appId:dt,apiKey:Ft}=Pe.options;return{url:`https://content-firebaseappcheck.googleapis.com/v1/projects/${Ke}/apps/${dt}:exchangeDebugToken?key=${Ft}`,body:{debug_token:Fe}}}const Ut="firebase-app-check-store";let rn=null;function Tn(){return rn||(rn=new Promise((Pe,Fe)=>{try{const Ke=indexedDB.open("firebase-app-check-database",1);Ke.onsuccess=dt=>{Pe(dt.target.result)},Ke.onerror=dt=>{var Ft;Fe(st.create("storage-open",{originalErrorMessage:null===(Ft=dt.target.error)||void 0===Ft?void 0:Ft.message}))},Ke.onupgradeneeded=dt=>{0===dt.oldVersion&&dt.target.result.createObjectStore(Ut,{keyPath:"compositeKey"})}}catch(Ke){Fe(st.create("storage-open",{originalErrorMessage:Ke?.message}))}}),rn)}function oe(){return(oe=(0,ve.Z)(function*(Pe,Fe){const dt=(yield Tn()).transaction(Ut,"readwrite"),tn=dt.objectStore(Ut).put({compositeKey:Pe,value:Fe});return new Promise((hn,kn)=>{tn.onsuccess=bn=>{hn()},dt.onerror=bn=>{var Ci;kn(st.create("storage-set",{originalErrorMessage:null===(Ci=bn.target.error)||void 0===Ci?void 0:Ci.message}))}})})).apply(this,arguments)}const be=new Ve.Yd("@firebase/app-check");function Pt(Pe,Fe){return(0,te.hl)()?function Oe(Pe,Fe){return function U(Pe,Fe){return oe.apply(this,arguments)}(function ce(Pe){return`${Pe.options.appId}-${Pe.name}`}(Pe),Fe)}(Pe,Fe).catch(Ke=>{be.warn(`Failed to write token to IndexedDB. Error: ${Ke}`)}):Promise.resolve()}function de(){return En().enabled}function k(){return p.apply(this,arguments)}function p(){return(p=(0,ve.Z)(function*(){const Pe=En();if(Pe.enabled&&Pe.token)return Pe.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const I={error:"UNKNOWN_ERROR"};function P(Pe){return te.US.encodeString(JSON.stringify(Pe),!1)}function re(Pe){return Be.apply(this,arguments)}function Be(){return(Be=(0,ve.Z)(function*(Pe,Fe=!1){const Ke=Pe.app;$t(Ke);const dt=Vt(Ke);let tn,Ft=dt.token;if(Ft&&!St(Ft)&&(dt.token=void 0,Ft=void 0),!Ft){const bn=yield dt.cachedTokenPromise;bn&&(St(bn)?Ft=bn:yield Pt(Ke,void 0))}if(!Fe&&Ft&&St(Ft))return{token:Ft.token};let kn,hn=!1;if(de()){dt.exchangeTokenPromise||(dt.exchangeTokenPromise=De(Ct(Ke,yield k()),Pe.heartbeatServiceProvider).finally(()=>{dt.exchangeTokenPromise=void 0}),hn=!0);const bn=yield dt.exchangeTokenPromise;return yield Pt(Ke,bn),dt.token=bn,{token:bn.token}}try{dt.exchangeTokenPromise||(dt.exchangeTokenPromise=dt.provider.getToken().finally(()=>{dt.exchangeTokenPromise=void 0}),hn=!0),Ft=yield Vt(Ke).exchangeTokenPromise}catch(bn){"appCheck/throttled"===bn.code?be.warn(bn.message):be.error(bn),tn=bn}return Ft?tn?kn=St(Ft)?{token:Ft.token,internalError:tn}:Ae(tn):(kn={token:Ft.token},dt.token=Ft,yield Pt(Ke,Ft)):kn=Ae(tn),hn&&ft(Ke,kn),kn})).apply(this,arguments)}function Lt(Pe,Fe){const Ke=Vt(Pe),dt=Ke.tokenObservers.filter(Ft=>Ft.next!==Fe);0===dt.length&&Ke.tokenRefresher&&Ke.tokenRefresher.isRunning()&&Ke.tokenRefresher.stop(),Ke.tokenObservers=dt}function fn(Pe){const{app:Fe}=Pe,Ke=Vt(Fe);let dt=Ke.tokenRefresher;dt||(dt=function Mn(Pe){const{app:Fe}=Pe;return new se((0,ve.Z)(function*(){let dt;if(dt=Vt(Fe).token?yield re(Pe,!0):yield re(Pe),dt.error)throw dt.error;if(dt.internalError)throw dt.internalError}),()=>!0,()=>{const Ke=Vt(Fe);if(Ke.token){let dt=Ke.token.issuedAtTimeMillis+.5*(Ke.token.expireTimeMillis-Ke.token.issuedAtTimeMillis)+3e5;return dt=Math.min(dt,Ke.token.expireTimeMillis-3e5),Math.max(0,dt-Date.now())}return 0},3e4,96e4)}(Pe),Ke.tokenRefresher=dt),!dt.isRunning()&&Ke.isTokenAutoRefreshEnabled&&dt.start()}function ft(Pe,Fe){const Ke=Vt(Pe).tokenObservers;for(const dt of Ke)try{"EXTERNAL"===dt.type&&null!=Fe.error?dt.error(Fe.error):dt.next(Fe)}catch{}}function St(Pe){return Pe.expireTimeMillis-Date.now()>0}function Ae(Pe){return{token:P(I),error:Pe}}class pt{constructor(Fe,Ke){this.app=Fe,this.heartbeatServiceProvider=Ke}_delete(){const{tokenObservers:Fe}=Vt(this.app);for(const Ke of Fe)Lt(this.app,Ke.next);return Promise.resolve()}}const Zi="app-check-internal";!function so(){(0,qe._registerComponent)(new L.wA("app-check",Pe=>function Gt(Pe,Fe){return new pt(Pe,Fe)}(Pe.getProvider("app").getImmediate(),Pe.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((Pe,Fe,Ke)=>{Pe.getProvider(Zi).initialize()})),(0,qe._registerComponent)(new L.wA(Zi,Pe=>function mn(Pe){return{getToken:Fe=>re(Pe,Fe),addTokenListener:Fe=>function yt(Pe,Fe,Ke,dt){const{app:Ft}=Pe,tn=Vt(Ft);if(tn.tokenObservers=[...tn.tokenObservers,{next:Ke,error:dt,type:Fe}],tn.token&&St(tn.token)){const kn=tn.token;Promise.resolve().then(()=>{Ke({token:kn.token}),fn(Pe)}).catch(()=>{})}tn.cachedTokenPromise.then(()=>fn(Pe))}(Pe,"INTERNAL",Fe),removeTokenListener:Fe=>Lt(Pe.app,Fe)}}(Pe.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,qe.registerVersion)("@firebase/app-check","0.6.3")}();class Tr{constructor(){return(0,Re.vb)("app-check")}}typeof window<"u"&&window;var Yr=g(9260);const Lo=new r.OlP("angularfire2.auth.use-emulator"),Dr=new r.OlP("angularfire2.auth.settings"),lo=new r.OlP("angularfire2.auth.tenant-id"),Nr=new r.OlP("angularfire2.auth.langugage-code"),co=new r.OlP("angularfire2.auth.use-device-language"),Kr=new r.OlP("angularfire.auth.persistence");let Oi=(()=>{class Pe{constructor(Ke,dt,Ft,tn,hn,kn,bn,Ci,ri,hi,Hi,ji){const Zr=new c.x,Ir=(0,A.of)(void 0).pipe((0,q.Q)(hn.outsideAngular),(0,ne.w)(()=>tn.runOutsideAngular(()=>g.e(407).then(g.bind(g,407)))),(0,ie.U)(()=>(0,ke.on)(Ke,tn,dt)),(0,ie.U)(Xi=>((Pe,Fe,Ke,dt,Ft,tn,hn,kn)=>(0,ke.cc)(`${Pe.name}.auth`,"AngularFireAuth",Pe.name,()=>{const bn=Fe.runOutsideAngular(()=>Pe.auth());if(Ke&&bn.useEmulator(...Ke),dt&&(bn.tenantId=dt),bn.languageCode=Ft,tn&&bn.useDeviceLanguage(),hn)for(const[Ci,ri]of Object.entries(hn))bn.settings[Ci]=ri;return kn&&bn.setPersistence(kn),bn},[Ke,dt,Ft,tn,hn,kn]))(Xi,tn,kn,Ci,ri,hi,bn,Hi)),ae({bufferSize:1,refCount:!1}));if((0,tt.PM)(Ft))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,A.of)(null);else{Ir.pipe((0,je.P)()).subscribe();const Bi=Ir.pipe((0,ne.w)(ti=>ti.getRedirectResult().then(Un=>Un,()=>null)),Re.iC,ae({bufferSize:1,refCount:!1})),Si=Ir.pipe((0,ne.w)(ti=>new B.y(Un=>({unsubscribe:tn.runOutsideAngular(()=>ti.onAuthStateChanged(oi=>Un.next(oi),oi=>Un.error(oi),()=>Un.complete()))})))),Jn=Ir.pipe((0,ne.w)(ti=>new B.y(Un=>({unsubscribe:tn.runOutsideAngular(()=>ti.onIdTokenChanged(oi=>Un.next(oi),oi=>Un.error(oi),()=>Un.complete()))}))));this.authState=Bi.pipe(Le(Si),(0,Ne.R)(hn.outsideAngular),(0,q.Q)(hn.insideAngular)),this.user=Bi.pipe(Le(Jn),(0,Ne.R)(hn.outsideAngular),(0,q.Q)(hn.insideAngular)),this.idToken=this.user.pipe((0,ne.w)(ti=>ti?(0,X.D)(ti.getIdToken()):(0,A.of)(null))),this.idTokenResult=this.user.pipe((0,ne.w)(ti=>ti?(0,X.D)(ti.getIdTokenResult()):(0,A.of)(null))),this.credential=(0,le.T)(Bi,Zr,this.authState.pipe((0,he.h)(ti=>!ti))).pipe((0,ie.U)(ti=>ti?.user?ti:null),(0,Ne.R)(hn.outsideAngular),(0,q.Q)(hn.insideAngular))}return(0,ke.pX)(this,Ir,tn,{spy:{apply:(Xi,Bi,Si)=>{(Xi.startsWith("signIn")||Xi.startsWith("createUser"))&&Si.then(Jn=>Zr.next(Jn))}}})}}return Pe.\u0275fac=function(Ke){return new(Ke||Pe)(r.LFG(ke.Dh),r.LFG(ke.xv,8),r.LFG(r.Lbi),r.LFG(r.R0b),r.LFG(Re.HU),r.LFG(Lo,8),r.LFG(Dr,8),r.LFG(lo,8),r.LFG(Nr,8),r.LFG(co,8),r.LFG(Kr,8),r.LFG(Tr,8))},Pe.\u0275prov=r.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"any"}),Pe})(),Bo=(()=>{class Pe{constructor(){Yr.Z.registerVersion("angularfire",Re.q4.full,"auth-compat")}}return Pe.\u0275fac=function(Ke){return new(Ke||Pe)},Pe.\u0275mod=r.oAB({type:Pe}),Pe.\u0275inj=r.cJS({providers:[Oi]}),Pe})()},2011:(Dt,Se,g)=>{g.d(Se,{Dh:()=>ne,GT:()=>le,cc:()=>Ee,hO:()=>je,on:()=>j,pX:()=>X,xv:()=>ie});var r=g(4650),c=g(9260),A=g(2122);Dt=g.hmd(Dt);const B=["ngOnDestroy"],X=(Re,ke,tt,ye={})=>new Proxy(Re,{get:(ue,we)=>tt.runOutsideAngular(()=>{var Ce;if(Re[we])return!(null===(Ce=ye?.spy)||void 0===Ce)&&Ce.get&&ye.spy.get(we,Re[we]),Re[we];if(B.indexOf(we)>-1)return()=>{};const Ue=ke.toPromise().then(Te=>{const ze=Te&&Te[we];return"function"==typeof ze?ze.bind(Te):ze&&ze.then?ze.then(ht=>tt.run(()=>ht)):tt.run(()=>ze)});return new Proxy(()=>{},{get:(Te,ze)=>Ue[ze],apply:(Te,ze,ht)=>Ue.then(vt=>{var Nt;const Mt=vt&&vt(...ht);return!(null===(Nt=ye?.spy)||void 0===Nt)&&Nt.apply&&ye.spy.apply(we,ht,Mt),Mt})})})}),le=(Re,ke)=>{ke.forEach(tt=>{Object.getOwnPropertyNames(tt.prototype||tt).forEach(ye=>{Object.defineProperty(Re.prototype,ye,Object.getOwnPropertyDescriptor(tt.prototype||tt,ye))})})};class q{constructor(ke){return ke}}const ne=new r.OlP("angularfire2.app.options"),ie=new r.OlP("angularfire2.app.name");function j(Re,ke,tt){const ue="object"==typeof tt&&tt||{};ue.name=ue.name||"string"==typeof tt&&tt||"[DEFAULT]";const Ce=c.Z.apps.filter(Ue=>Ue&&Ue.name===ue.name)[0]||ke.runOutsideAngular(()=>c.Z.initializeApp(Re,ue));try{JSON.stringify(Re)!==JSON.stringify(Ce.options)&&ee("error",`${Ce.name} Firebase App already initialized with different options${Dt.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new q(Ce)}const ee=(Re,...ke)=>{(0,r.X6Q)()&&typeof console<"u"&&console[Re](...ke)},ae={provide:q,useFactory:j,deps:[ne,r.R0b,[new r.FiY,ie]]};let je=(()=>{class Re{constructor(tt){c.Z.registerVersion("angularfire",A.q4.full,"core"),c.Z.registerVersion("angularfire",A.q4.full,"app-compat"),c.Z.registerVersion("angular",r.q4F.full,tt.toString())}static initializeApp(tt,ye){return{ngModule:Re,providers:[{provide:ne,useValue:tt},{provide:ie,useValue:ye}]}}}return Re.\u0275fac=function(tt){return new(tt||Re)(r.LFG(r.Lbi))},Re.\u0275mod=r.oAB({type:Re}),Re.\u0275inj=r.cJS({providers:[ae]}),Re})();function Ee(Re,ke,tt,ye,ue){const[,we,Ce]=globalThis.\u0275AngularfireInstanceCache.find(Ue=>Ue[0]===Re)||[];if(we)return function Le(Re,ke){try{return Re.toString()===ke.toString()}catch{return Re===ke}}(ue,Ce)||(he("error",`${ke} was already initialized on the ${tt} Firebase App with different settings.${Ne?" You may need to reload as Firebase is not HMR aware.":""}`),he("warn",{is:ue,was:Ce})),we;{const Ue=ye();return globalThis.\u0275AngularfireInstanceCache.push([Re,Ue,ue]),Ue}}const Ne=!!Dt.hot,he=(Re,...ke)=>{(0,r.X6Q)()&&typeof console<"u"&&console[Re](...ke)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},2122:(Dt,Se,g)=>{g.d(Se,{q4:()=>Yo,iC:()=>Yt,HU:()=>G,vb:()=>l,JM:()=>f});var r=g(4650),c=g(259),A=g(5861),B=g(9681),X=g(2090),le=g(4859),q=g(1877),ne=g(8766);const ie="@firebase/installations",j="0.6.3",ae=`w:${j}`,je="FIS_v2",ke=new X.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 tt(E){return E instanceof X.ZR&&E.code.includes("request-failed")}function ye({projectId:E}){return`https://firebaseinstallations.googleapis.com/v1/projects/${E}/installations`}function ue(E){return{token:E.token,requestStatus:2,expiresIn:vt(E.expiresIn),creationTime:Date.now()}}function we(E,x){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,A.Z)(function*(E,x){const me=(yield x.json()).error;return ke.create("request-failed",{requestName:E,serverCode:me.code,serverMessage:me.message,serverStatus:me.status})})).apply(this,arguments)}function Ue({apiKey:E}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":E})}function Te(E,{refreshToken:x}){const H=Ue(E);return H.append("Authorization",function Nt(E){return`${je} ${E}`}(x)),H}function ze(E){return ht.apply(this,arguments)}function ht(){return(ht=(0,A.Z)(function*(E){const x=yield E();return x.status>=500&&x.status<600?E():x})).apply(this,arguments)}function vt(E){return Number(E.replace("s","000"))}function Mt(E,x){return We.apply(this,arguments)}function We(){return(We=(0,A.Z)(function*({appConfig:E,heartbeatServiceProvider:x},{fid:H}){const me=ye(E),$e=Ue(E),Xe=x.getImmediate({optional:!0});if(Xe){const sn=yield Xe.getHeartbeatsHeader();sn&&$e.append("x-firebase-client",sn)}const Kt={method:"POST",headers:$e,body:JSON.stringify({fid:H,authVersion:je,appId:E.appId,sdkVersion:ae})},qt=yield ze(()=>fetch(me,Kt));if(qt.ok){const sn=yield qt.json();return{fid:sn.fid||H,registrationStatus:2,refreshToken:sn.refreshToken,authToken:ue(sn.authToken)}}throw yield we("Create Installation",qt)})).apply(this,arguments)}function it(E){return new Promise(x=>{setTimeout(x,E)})}const gt=/^[cdef][\w-]{21}$/;function wt(){try{const E=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(E),E[0]=112+E[0]%16;const H=function Ot(E){return function ct(E){return btoa(String.fromCharCode(...E)).replace(/\+/g,"-").replace(/\//g,"_")}(E).substr(0,22)}(E);return gt.test(H)?H:""}catch{return""}}function ve(E){return`${E.appName}!${E.appId}`}const qe=new Map;function L(E,x){const H=ve(E);ut(H,x),function Bt(E,x){const H=function Vt(){return!Jt&&"BroadcastChannel"in self&&(Jt=new BroadcastChannel("[Firebase] FID Change"),Jt.onmessage=E=>{ut(E.data.key,E.data.fid)}),Jt}();H&&H.postMessage({key:E,fid:x}),function en(){0===qe.size&&Jt&&(Jt.close(),Jt=null)}()}(H,x)}function ut(E,x){const H=qe.get(E);if(H)for(const me of H)me(x)}let Jt=null;const Pn="firebase-installations-store";let Fn=null;function an(){return Fn||(Fn=(0,ne.X3)("firebase-installations-database",1,{upgrade:(E,x)=>{0===x&&E.createObjectStore(Pn)}})),Fn}function et(E,x){return W.apply(this,arguments)}function W(){return(W=(0,A.Z)(function*(E,x){const H=ve(E),$e=(yield an()).transaction(Pn,"readwrite"),Xe=$e.objectStore(Pn),xt=yield Xe.get(H);return yield Xe.put(x,H),yield $e.done,(!xt||xt.fid!==x.fid)&&L(E,x.fid),x})).apply(this,arguments)}function se(E){return Ie.apply(this,arguments)}function Ie(){return(Ie=(0,A.Z)(function*(E){const x=ve(E),me=(yield an()).transaction(Pn,"readwrite");yield me.objectStore(Pn).delete(x),yield me.done})).apply(this,arguments)}function rt(E,x){return st.apply(this,arguments)}function st(){return(st=(0,A.Z)(function*(E,x){const H=ve(E),$e=(yield an()).transaction(Pn,"readwrite"),Xe=$e.objectStore(Pn),xt=yield Xe.get(H),Kt=x(xt);return void 0===Kt?yield Xe.delete(H):yield Xe.put(Kt,H),yield $e.done,Kt&&(!xt||xt.fid!==Kt.fid)&&L(E,Kt.fid),Kt})).apply(this,arguments)}function At(E){return $t.apply(this,arguments)}function $t(){return($t=(0,A.Z)(function*(E){let x;const H=yield rt(E.appConfig,me=>{const $e=It(me),Xe=Tt(E,$e);return x=Xe.registrationPromise,Xe.installationEntry});return""===H.fid?{installationEntry:yield x}:{installationEntry:H,registrationPromise:x}})).apply(this,arguments)}function It(E){return kt(E||{fid:wt(),registrationStatus:0})}function Tt(E,x){if(0===x.registrationStatus){if(!navigator.onLine)return{installationEntry:x,registrationPromise:Promise.reject(ke.create("app-offline"))};const H={fid:x.fid,registrationStatus:1,registrationTime:Date.now()},me=function De(E,x){return lt.apply(this,arguments)}(E,H);return{installationEntry:H,registrationPromise:me}}return 1===x.registrationStatus?{installationEntry:x,registrationPromise:fe(E)}:{installationEntry:x}}function lt(){return(lt=(0,A.Z)(function*(E,x){try{const H=yield Mt(E,x);return et(E.appConfig,H)}catch(H){throw tt(H)&&409===H.customData.serverCode?yield se(E.appConfig):yield et(E.appConfig,{fid:x.fid,registrationStatus:0}),H}})).apply(this,arguments)}function fe(E){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,A.Z)(function*(E){let x=yield Ct(E.appConfig);for(;1===x.registrationStatus;)yield it(100),x=yield Ct(E.appConfig);if(0===x.registrationStatus){const{installationEntry:H,registrationPromise:me}=yield At(E);return me||H}return x})).apply(this,arguments)}function Ct(E){return rt(E,x=>{if(!x)throw ke.create("installation-not-found");return kt(x)})}function kt(E){return function ln(E){return 1===E.registrationStatus&&E.registrationTime+1e4<Date.now()}(E)?{fid:E.fid,registrationStatus:0}:E}function Ut(E,x){return An.apply(this,arguments)}function An(){return(An=(0,A.Z)(function*({appConfig:E,heartbeatServiceProvider:x},H){const me=rn(E,H),$e=Te(E,H),Xe=x.getImmediate({optional:!0});if(Xe){const sn=yield Xe.getHeartbeatsHeader();sn&&$e.append("x-firebase-client",sn)}const Kt={method:"POST",headers:$e,body:JSON.stringify({installation:{sdkVersion:ae,appId:E.appId}})},qt=yield ze(()=>fetch(me,Kt));if(qt.ok)return ue(yield qt.json());throw yield we("Generate Auth Token",qt)})).apply(this,arguments)}function rn(E,{fid:x}){return`${ye(E)}/${x}/authTokens:generate`}function Tn(E){return xn.apply(this,arguments)}function xn(){return(xn=(0,A.Z)(function*(E,x=!1){let H;const me=yield rt(E.appConfig,Xe=>{if(!Ze(Xe))throw ke.create("not-registered");const xt=Xe.authToken;if(!x&&K(xt))return Xe;if(1===xt.requestStatus)return H=Oe(E,x),Xe;{if(!navigator.onLine)throw ke.create("app-offline");const Kt=be(Xe);return H=U(E,Kt),Kt}});return H?yield H:me.authToken})).apply(this,arguments)}function Oe(E,x){return J.apply(this,arguments)}function J(){return(J=(0,A.Z)(function*(E,x){let H=yield V(E.appConfig);for(;1===H.authToken.requestStatus;)yield it(100),H=yield V(E.appConfig);const me=H.authToken;return 0===me.requestStatus?Tn(E,x):me})).apply(this,arguments)}function V(E){return rt(E,x=>{if(!Ze(x))throw ke.create("not-registered");return function Je(E){return 1===E.requestStatus&&E.requestTime+1e4<Date.now()}(x.authToken)?Object.assign(Object.assign({},x),{authToken:{requestStatus:0}}):x})}function U(E,x){return oe.apply(this,arguments)}function oe(){return(oe=(0,A.Z)(function*(E,x){try{const H=yield Ut(E,x),me=Object.assign(Object.assign({},x),{authToken:H});return yield et(E.appConfig,me),H}catch(H){if(!tt(H)||401!==H.customData.serverCode&&404!==H.customData.serverCode){const me=Object.assign(Object.assign({},x),{authToken:{requestStatus:0}});yield et(E.appConfig,me)}else yield se(E.appConfig);throw H}})).apply(this,arguments)}function Ze(E){return void 0!==E&&2===E.registrationStatus}function K(E){return 2===E.requestStatus&&!function ce(E){const x=Date.now();return x<E.creationTime||E.creationTime+E.expiresIn<x+36e5}(E)}function be(E){const x={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},E),{authToken:x})}function Pt(){return(Pt=(0,A.Z)(function*(E){const x=E,{installationEntry:H,registrationPromise:me}=yield At(x);return me?me.catch(console.error):Tn(x).catch(console.error),H.fid})).apply(this,arguments)}function Xt(){return(Xt=(0,A.Z)(function*(E,x=!1){const H=E;return yield de(H),(yield Tn(H,x)).token})).apply(this,arguments)}function de(E){return k.apply(this,arguments)}function k(){return(k=(0,A.Z)(function*(E){const{registrationPromise:x}=yield At(E);x&&(yield x)})).apply(this,arguments)}function fn(E){return ke.create("missing-app-config-values",{valueName:E})}const Mn="installations",St=E=>{const x=E.getProvider("app").getImmediate(),H=function Lt(E){if(!E||!E.options)throw fn("App Configuration");if(!E.name)throw fn("App Name");const x=["projectId","apiKey","appId"];for(const H of x)if(!E.options[H])throw fn(H);return{appName:E.name,projectId:E.options.projectId,apiKey:E.options.apiKey,appId:E.options.appId}}(x);return{app:x,appConfig:H,heartbeatServiceProvider:(0,B._getProvider)(x,"heartbeat"),_delete:()=>Promise.resolve()}},Ae=E=>{const x=E.getProvider("app").getImmediate(),H=(0,B._getProvider)(x,Mn).getImmediate();return{getId:()=>function xe(E){return Pt.apply(this,arguments)}(H),getToken:$e=>function Wt(E){return Xt.apply(this,arguments)}(H,$e)}};(function pt(){(0,B._registerComponent)(new le.wA(Mn,St,"PUBLIC")),(0,B._registerComponent)(new le.wA("installations-internal",Ae,"PRIVATE"))})(),(0,B.registerVersion)(ie,j),(0,B.registerVersion)(ie,j,"esm2017");const Gt="@firebase/remote-config",Xn=new X.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 or{constructor(x,H,me,$e){this.client=x,this.storage=H,this.storageCache=me,this.logger=$e}isCachedDataFresh(x,H){if(!H)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const me=Date.now()-H,$e=me<=x;return this.logger.debug(`Config fetch cache check. Cache age millis: ${me}. Cache max age millis (minimumFetchIntervalMillis setting): ${x}. Is cache hit: ${$e}.`),$e}fetch(x){var H=this;return(0,A.Z)(function*(){const[me,$e]=yield Promise.all([H.storage.getLastSuccessfulFetchTimestampMillis(),H.storage.getLastSuccessfulFetchResponse()]);if($e&&H.isCachedDataFresh(x.cacheMaxAgeMillis,me))return $e;x.eTag=$e&&$e.eTag;const Xe=yield H.client.fetch(x),xt=[H.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===Xe.status&&xt.push(H.storage.setLastSuccessfulFetchResponse(Xe)),yield Promise.all(xt),Xe})()}}function Ai(E=navigator){return E.languages&&E.languages[0]||E.language}class Zi{constructor(x,H,me,$e,Xe,xt){this.firebaseInstallations=x,this.sdkVersion=H,this.namespace=me,this.projectId=$e,this.apiKey=Xe,this.appId=xt}fetch(x){var H=this;return(0,A.Z)(function*(){const[me,$e]=yield Promise.all([H.firebaseInstallations.getId(),H.firebaseInstallations.getToken()]),xt=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${H.projectId}/namespaces/${H.namespace}:fetch?key=${H.apiKey}`,Kt={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":x.eTag||"*"},qt={sdk_version:H.sdkVersion,app_instance_id:me,app_instance_id_token:$e,app_id:H.appId,language_code:Ai()},sn={method:"POST",headers:Kt,body:JSON.stringify(qt)},Dn=fetch(xt,sn),vn=new Promise((Qt,dn)=>{x.signal.addEventListener(()=>{const yn=new Error("The operation was aborted.");yn.name="AbortError",dn(yn)})});let zr;try{yield Promise.race([Dn,vn]),zr=yield Dn}catch(Qt){let dn="fetch-client-network";throw"AbortError"===Qt?.name&&(dn="fetch-timeout"),Xn.create(dn,{originalErrorMessage:Qt?.message})}let Di=zr.status;const Co=zr.headers.get("ETag")||void 0;let ia,bs;if(200===zr.status){let Qt;try{Qt=yield zr.json()}catch(dn){throw Xn.create("fetch-client-parse",{originalErrorMessage:dn?.message})}ia=Qt.entries,bs=Qt.state}if("INSTANCE_STATE_UNSPECIFIED"===bs?Di=500:"NO_CHANGE"===bs?Di=304:("NO_TEMPLATE"===bs||"EMPTY_CONFIG"===bs)&&(ia={}),304!==Di&&200!==Di)throw Xn.create("fetch-status",{httpStatus:Di});return{status:Di,eTag:Co,config:ia}})()}}class Li{constructor(x,H){this.client=x,this.storage=H}fetch(x){var H=this;return(0,A.Z)(function*(){const me=(yield H.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return H.attemptFetch(x,me)})()}attemptFetch(x,{throttleEndTimeMillis:H,backoffCount:me}){var $e=this;return(0,A.Z)(function*(){yield function so(E,x){return new Promise((H,me)=>{const $e=Math.max(x-Date.now(),0),Xe=setTimeout(H,$e);E.addEventListener(()=>{clearTimeout(Xe),me(Xn.create("fetch-throttle",{throttleEndTimeMillis:x}))})})}(x.signal,H);try{const Xe=yield $e.client.fetch(x);return yield $e.storage.deleteThrottleMetadata(),Xe}catch(Xe){if(!function Zn(E){if(!(E instanceof X.ZR&&E.customData))return!1;const x=Number(E.customData.httpStatus);return 429===x||500===x||503===x||504===x}(Xe))throw Xe;const xt={throttleEndTimeMillis:Date.now()+(0,X.$s)(me),backoffCount:me+1};return yield $e.storage.setThrottleMetadata(xt),$e.attemptFetch(x,xt)}})()}}class dr{constructor(x,H,me,$e,Xe){this.app=x,this._client=H,this._storageCache=me,this._storage=$e,this._logger=Xe,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 hr(E,x){const H=E.target.error||void 0;return Xn.create(x,{originalErrorMessage:H&&H?.message})}const pi="app_namespace_store";class Mi{constructor(x,H,me,$e=function gi(){return new Promise((E,x)=>{try{const H=indexedDB.open("firebase_remote_config",1);H.onerror=me=>{x(hr(me,"storage-open"))},H.onsuccess=me=>{E(me.target.result)},H.onupgradeneeded=me=>{0===me.oldVersion&&me.target.result.createObjectStore(pi,{keyPath:"compositeKey"})}}catch(H){x(Xn.create("storage-open",{originalErrorMessage:H?.message}))}})}()){this.appId=x,this.appName=H,this.namespace=me,this.openDbPromise=$e}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(x){return this.set("last_fetch_status",x)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(x){return this.set("last_successful_fetch_timestamp_millis",x)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(x){return this.set("last_successful_fetch_response",x)}getActiveConfig(){return this.get("active_config")}setActiveConfig(x){return this.set("active_config",x)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(x){return this.set("active_config_etag",x)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(x){return this.set("throttle_metadata",x)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(x){var H=this;return(0,A.Z)(function*(){const me=yield H.openDbPromise;return new Promise(($e,Xe)=>{const Kt=me.transaction([pi],"readonly").objectStore(pi),qt=H.createCompositeKey(x);try{const sn=Kt.get(qt);sn.onerror=Dn=>{Xe(hr(Dn,"storage-get"))},sn.onsuccess=Dn=>{const vn=Dn.target.result;$e(vn?vn.value:void 0)}}catch(sn){Xe(Xn.create("storage-get",{originalErrorMessage:sn?.message}))}})})()}set(x,H){var me=this;return(0,A.Z)(function*(){const $e=yield me.openDbPromise;return new Promise((Xe,xt)=>{const qt=$e.transaction([pi],"readwrite").objectStore(pi),sn=me.createCompositeKey(x);try{const Dn=qt.put({compositeKey:sn,value:H});Dn.onerror=vn=>{xt(hr(vn,"storage-set"))},Dn.onsuccess=()=>{Xe()}}catch(Dn){xt(Xn.create("storage-set",{originalErrorMessage:Dn?.message}))}})})()}delete(x){var H=this;return(0,A.Z)(function*(){const me=yield H.openDbPromise;return new Promise(($e,Xe)=>{const Kt=me.transaction([pi],"readwrite").objectStore(pi),qt=H.createCompositeKey(x);try{const sn=Kt.delete(qt);sn.onerror=Dn=>{Xe(hr(Dn,"storage-delete"))},sn.onsuccess=()=>{$e()}}catch(sn){Xe(Xn.create("storage-delete",{originalErrorMessage:sn?.message}))}})})()}createCompositeKey(x){return[this.appId,this.appName,this.namespace,x].join()}}class Qi{constructor(x){this.storage=x}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var x=this;return(0,A.Z)(function*(){const H=x.storage.getLastFetchStatus(),me=x.storage.getLastSuccessfulFetchTimestampMillis(),$e=x.storage.getActiveConfig(),Xe=yield H;Xe&&(x.lastFetchStatus=Xe);const xt=yield me;xt&&(x.lastSuccessfulFetchTimestampMillis=xt);const Kt=yield $e;Kt&&(x.activeConfig=Kt)})()}setLastFetchStatus(x){return this.lastFetchStatus=x,this.storage.setLastFetchStatus(x)}setLastSuccessfulFetchTimestampMillis(x){return this.lastSuccessfulFetchTimestampMillis=x,this.storage.setLastSuccessfulFetchTimestampMillis(x)}setActiveConfig(x){return this.activeConfig=x,this.storage.setActiveConfig(x)}}function No(){return sr.apply(this,arguments)}function sr(){return(sr=(0,A.Z)(function*(){if(!(0,X.hl)())return!1;try{return yield(0,X.eu)()}catch{return!1}})).apply(this,arguments)}!function Ui(){(0,B._registerComponent)(new le.wA("remote-config",function E(x,{instanceIdentifier:H}){const me=x.getProvider("app").getImmediate(),$e=x.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Xn.create("registration-window");if(!(0,X.hl)())throw Xn.create("indexed-db-unavailable");const{projectId:Xe,apiKey:xt,appId:Kt}=me.options;if(!Xe)throw Xn.create("registration-project-id");if(!xt)throw Xn.create("registration-api-key");if(!Kt)throw Xn.create("registration-app-id");const qt=new Mi(Kt,me.name,H=H||"firebase"),sn=new Qi(qt),Dn=new q.Yd(Gt);Dn.logLevel=q.in.ERROR;const vn=new Zi($e,B.SDK_VERSION,H,Xe,xt,Kt),zr=new Li(vn,qt),Di=new or(zr,qt,sn,Dn),Co=new dr(me,Di,sn,qt,Dn);return function Rn(E){const x=(0,X.m9)(E);x._initializePromise||(x._initializePromise=x._storageCache.loadFromStorage().then(()=>{x._isInitializationComplete=!0}))}(Co),Co},"PUBLIC").setMultipleInstances(!0)),(0,B.registerVersion)(Gt,"0.4.3"),(0,B.registerVersion)(Gt,"0.4.3","esm2017")}();const kr="/firebase-messaging-sw.js",Yr="/firebase-cloud-messaging-push-scope",fr="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Dr="google.c.a.c_id",lo="google.c.a.c_l",Nr="google.c.a.ts",co="google.c.a.e";var Ii=(()=>{return(E=Ii||(Ii={})).PUSH_RECEIVED="push-received",E.NOTIFICATION_CLICKED="notification-clicked",Ii;var E})();function Oi(E){const x=new Uint8Array(E);return btoa(String.fromCharCode(...x)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Bo(E){const H=(E+"=".repeat((4-E.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),me=atob(H),$e=new Uint8Array(me.length);for(let Xe=0;Xe<me.length;++Xe)$e[Xe]=me.charCodeAt(Xe);return $e}const Pe="fcm_token_details_db",Ke="fcm_token_object_Store";function dt(E){return Ft.apply(this,arguments)}function Ft(){return Ft=(0,A.Z)(function*(E){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(Xe=>Xe.name).includes(Pe))return null;let x=null;return(yield(0,ne.X3)(Pe,5,{upgrade:(me=(0,A.Z)(function*($e,Xe,xt,Kt){var qt;if(Xe<2||!$e.objectStoreNames.contains(Ke))return;const sn=Kt.objectStore(Ke),Dn=yield sn.index("fcmSenderId").get(E);if(yield sn.clear(),Dn)if(2===Xe){const vn=Dn;if(!vn.auth||!vn.p256dh||!vn.endpoint)return;x={token:vn.fcmToken,createTime:null!==(qt=vn.createTime)&&void 0!==qt?qt:Date.now(),subscriptionOptions:{auth:vn.auth,p256dh:vn.p256dh,endpoint:vn.endpoint,swScope:vn.swScope,vapidKey:"string"==typeof vn.vapidKey?vn.vapidKey:Oi(vn.vapidKey)}}}else if(3===Xe){const vn=Dn;x={token:vn.fcmToken,createTime:vn.createTime,subscriptionOptions:{auth:Oi(vn.auth),p256dh:Oi(vn.p256dh),endpoint:vn.endpoint,swScope:vn.swScope,vapidKey:Oi(vn.vapidKey)}}}else if(4===Xe){const vn=Dn;x={token:vn.fcmToken,createTime:vn.createTime,subscriptionOptions:{auth:Oi(vn.auth),p256dh:Oi(vn.p256dh),endpoint:vn.endpoint,swScope:vn.swScope,vapidKey:Oi(vn.vapidKey)}}}}),function(Xe,xt,Kt,qt){return me.apply(this,arguments)})})).close(),yield(0,ne.Lj)(Pe),yield(0,ne.Lj)("fcm_vapid_details_db"),yield(0,ne.Lj)("undefined"),tn(x)?x:null;var me}),Ft.apply(this,arguments)}function tn(E){if(!E||!E.subscriptionOptions)return!1;const{subscriptionOptions:x}=E;return"number"==typeof E.createTime&&E.createTime>0&&"string"==typeof E.token&&E.token.length>0&&"string"==typeof x.auth&&x.auth.length>0&&"string"==typeof x.p256dh&&x.p256dh.length>0&&"string"==typeof x.endpoint&&x.endpoint.length>0&&"string"==typeof x.swScope&&x.swScope.length>0&&"string"==typeof x.vapidKey&&x.vapidKey.length>0}const bn="firebase-messaging-store";let Ci=null;function ri(){return Ci||(Ci=(0,ne.X3)("firebase-messaging-database",1,{upgrade:(E,x)=>{0===x&&E.createObjectStore(bn)}})),Ci}function hi(E){return Hi.apply(this,arguments)}function Hi(){return(Hi=(0,A.Z)(function*(E){const x=Bi(E),me=yield(yield ri()).transaction(bn).objectStore(bn).get(x);if(me)return me;{const $e=yield dt(E.appConfig.senderId);if($e)return yield ji(E,$e),$e}})).apply(this,arguments)}function ji(E,x){return Zr.apply(this,arguments)}function Zr(){return(Zr=(0,A.Z)(function*(E,x){const H=Bi(E),$e=(yield ri()).transaction(bn,"readwrite");return yield $e.objectStore(bn).put(x,H),yield $e.done,x})).apply(this,arguments)}function Ir(E){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,A.Z)(function*(E){const x=Bi(E),me=(yield ri()).transaction(bn,"readwrite");yield me.objectStore(bn).delete(x),yield me.done})).apply(this,arguments)}function Bi({appConfig:E}){return E.appId}const Jn=new X.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 ti(E,x){return Un.apply(this,arguments)}function Un(){return(Un=(0,A.Z)(function*(E,x){const H=yield gr(E),me=wo(x),$e={method:"POST",headers:H,body:JSON.stringify(me)};let Xe;try{Xe=yield(yield fetch(uo(E.appConfig),$e)).json()}catch(xt){throw Jn.create("token-subscribe-failed",{errorInfo:xt?.toString()})}if(Xe.error)throw Jn.create("token-subscribe-failed",{errorInfo:Xe.error.message});if(!Xe.token)throw Jn.create("token-subscribe-no-token");return Xe.token})).apply(this,arguments)}function oi(E,x){return pr.apply(this,arguments)}function pr(){return(pr=(0,A.Z)(function*(E,x){const H=yield gr(E),me=wo(x.subscriptionOptions),$e={method:"PATCH",headers:H,body:JSON.stringify(me)};let Xe;try{Xe=yield(yield fetch(`${uo(E.appConfig)}/${x.token}`,$e)).json()}catch(xt){throw Jn.create("token-update-failed",{errorInfo:xt?.toString()})}if(Xe.error)throw Jn.create("token-update-failed",{errorInfo:Xe.error.message});if(!Xe.token)throw Jn.create("token-update-no-token");return Xe.token})).apply(this,arguments)}function Hn(E,x){return mr.apply(this,arguments)}function mr(){return(mr=(0,A.Z)(function*(E,x){const me={method:"DELETE",headers:yield gr(E)};try{const Xe=yield(yield fetch(`${uo(E.appConfig)}/${x}`,me)).json();if(Xe.error)throw Jn.create("token-unsubscribe-failed",{errorInfo:Xe.error.message})}catch($e){throw Jn.create("token-unsubscribe-failed",{errorInfo:$e?.toString()})}})).apply(this,arguments)}function uo({projectId:E}){return`https://fcmregistrations.googleapis.com/v1/projects/${E}/registrations`}function gr(E){return _i.apply(this,arguments)}function _i(){return(_i=(0,A.Z)(function*({appConfig:E,installations:x}){const H=yield x.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":E.apiKey,"x-goog-firebase-installations-auth":`FIS ${H}`})})).apply(this,arguments)}function wo({p256dh:E,auth:x,endpoint:H,vapidKey:me}){const $e={web:{endpoint:H,auth:x,p256dh:E}};return me!==fr&&($e.web.applicationPubKey=me),$e}const ho=6048e5;function wr(E){return $i.apply(this,arguments)}function $i(){return($i=(0,A.Z)(function*(E){const x=yield cs(E.swRegistration,E.vapidKey),H={vapidKey:E.vapidKey,swScope:E.swRegistration.scope,endpoint:x.endpoint,auth:Oi(x.getKey("auth")),p256dh:Oi(x.getKey("p256dh"))},me=yield hi(E.firebaseDependencies);if(me){if(Ho(me.subscriptionOptions,H))return Date.now()>=me.createTime+ho?gn(E,{token:me.token,createTime:Date.now(),subscriptionOptions:H}):me.token;try{yield Hn(E.firebaseDependencies,me.token)}catch($e){console.warn($e)}return Ss(E.firebaseDependencies,H)}return Ss(E.firebaseDependencies,H)})).apply(this,arguments)}function fo(E){return Or.apply(this,arguments)}function Or(){return(Or=(0,A.Z)(function*(E){const x=yield hi(E.firebaseDependencies);x&&(yield Hn(E.firebaseDependencies,x.token),yield Ir(E.firebaseDependencies));const H=yield E.swRegistration.pushManager.getSubscription();return!H||H.unsubscribe()})).apply(this,arguments)}function gn(E,x){return Ar.apply(this,arguments)}function Ar(){return(Ar=(0,A.Z)(function*(E,x){try{const H=yield oi(E.firebaseDependencies,x),me=Object.assign(Object.assign({},x),{token:H,createTime:Date.now()});return yield ji(E.firebaseDependencies,me),H}catch(H){throw yield fo(E),H}})).apply(this,arguments)}function Ss(E,x){return Vo.apply(this,arguments)}function Vo(){return(Vo=(0,A.Z)(function*(E,x){const me={token:yield ti(E,x),createTime:Date.now(),subscriptionOptions:x};return yield ji(E,me),me.token})).apply(this,arguments)}function cs(E,x){return Uo.apply(this,arguments)}function Uo(){return(Uo=(0,A.Z)(function*(E,x){return(yield E.pushManager.getSubscription())||E.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Bo(x)})})).apply(this,arguments)}function Ho(E,x){return x.vapidKey===E.vapidKey&&x.endpoint===E.endpoint&&x.auth===E.auth&&x.p256dh===E.p256dh}function po(E){const x={from:E.from,collapseKey:E.collapse_key,messageId:E.fcmMessageId};return function Qo(E,x){if(!x.notification)return;E.notification={};const H=x.notification.title;H&&(E.notification.title=H);const me=x.notification.body;me&&(E.notification.body=me);const $e=x.notification.image;$e&&(E.notification.image=$e);const Xe=x.notification.icon;Xe&&(E.notification.icon=Xe)}(x,E),function D(E,x){x.data&&(E.data=x.data)}(x,E),function M(E,x){var H,me,$e,Xe,xt;if(!(x.fcmOptions||null!==(H=x.notification)&&void 0!==H&&H.click_action))return;E.fcmOptions={};const Kt=null!==($e=null===(me=x.fcmOptions)||void 0===me?void 0:me.link)&&void 0!==$e?$e:null===(Xe=x.notification)||void 0===Xe?void 0:Xe.click_action;Kt&&(E.fcmOptions.link=Kt);const qt=null===(xt=x.fcmOptions)||void 0===xt?void 0:xt.analytics_label;qt&&(E.fcmOptions.analyticsLabel=qt)}(x,E),x}function S(E){return"object"==typeof E&&!!E&&Dr in E}function Z(E,x){const H=[];for(let me=0;me<E.length;me++)H.push(E.charAt(me)),me<x.length&&H.push(x.charAt(me));return H.join("")}function on(E){return Jn.create("missing-app-config-values",{valueName:E})}Z("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Z("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Yn{constructor(x,H,me){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const $e=function ot(E){if(!E||!E.options)throw on("App Configuration Object");if(!E.name)throw on("App Name");const x=["projectId","apiKey","appId","messagingSenderId"],{options:H}=E;for(const me of x)if(!H[me])throw on(me);return{appName:E.name,projectId:H.projectId,apiKey:H.apiKey,appId:H.appId,senderId:H.messagingSenderId}}(x);this.firebaseDependencies={app:x,appConfig:$e,installations:H,analyticsProvider:me}}_delete(){return Promise.resolve()}}function si(E){return qi.apply(this,arguments)}function qi(){return(qi=(0,A.Z)(function*(E){try{E.swRegistration=yield navigator.serviceWorker.register(kr,{scope:Yr}),E.swRegistration.update().catch(()=>{})}catch(x){throw Jn.create("failed-service-worker-registration",{browserErrorMessage:x?.message})}})).apply(this,arguments)}function _r(E,x){return Lr.apply(this,arguments)}function Lr(){return(Lr=(0,A.Z)(function*(E,x){if(!x&&!E.swRegistration&&(yield si(E)),x||!E.swRegistration){if(!(x instanceof ServiceWorkerRegistration))throw Jn.create("invalid-sw-registration");E.swRegistration=x}})).apply(this,arguments)}function mo(E,x){return Ao.apply(this,arguments)}function Ao(){return(Ao=(0,A.Z)(function*(E,x){x?E.vapidKey=x:E.vapidKey||(E.vapidKey=fr)})).apply(this,arguments)}function ar(){return(ar=(0,A.Z)(function*(E,x){if(!navigator)throw Jn.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Jn.create("permission-blocked");return yield mo(E,x?.vapidKey),yield _r(E,x?.serviceWorkerRegistration),wr(E)})).apply(this,arguments)}function zi(E,x,H){return vr.apply(this,arguments)}function vr(){return(vr=(0,A.Z)(function*(E,x,H){const me=yr(x);(yield E.firebaseDependencies.analyticsProvider.get()).logEvent(me,{message_id:H[Dr],message_name:H[lo],message_time:H[Nr],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function yr(E){switch(E){case Ii.NOTIFICATION_CLICKED:return"notification_open";case Ii.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function Qr(){return(Qr=(0,A.Z)(function*(E,x){const H=x.data;if(!H.isFirebaseMessaging)return;E.onMessageHandler&&H.messageType===Ii.PUSH_RECEIVED&&("function"==typeof E.onMessageHandler?E.onMessageHandler(po(H)):E.onMessageHandler.next(po(H)));const me=H.data;S(me)&&"1"===me[co]&&(yield zi(E,H.messageType,me))})).apply(this,arguments)}const Ts="@firebase/messaging",Xo=E=>{const x=new Yn(E.getProvider("app").getImmediate(),E.getProvider("installations-internal").getImmediate(),E.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",H=>function Mo(E,x){return Qr.apply(this,arguments)}(x,H)),x},Br=E=>{const x=E.getProvider("messaging").getImmediate();return{getToken:me=>function Pi(E,x){return ar.apply(this,arguments)}(x,me)}};function To(){return Xr.apply(this,arguments)}function Xr(){return(Xr=(0,A.Z)(function*(){try{yield(0,X.eu)()}catch{return!1}return typeof window<"u"&&(0,X.hl)()&&(0,X.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 us(){(0,B._registerComponent)(new le.wA("messaging",Xo,"PUBLIC")),(0,B._registerComponent)(new le.wA("messaging-internal",Br,"PRIVATE")),(0,B.registerVersion)(Ts,"0.12.3"),(0,B.registerVersion)(Ts,"0.12.3","esm2017")}();const Ur="analytics",Fi="firebase_id",xs="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Is="https://www.googletagmanager.com/gtag/js",Ri=new q.Yd("@firebase/analytics");function ds(E){return Promise.all(E.map(x=>x.catch(H=>H)))}function Hs(E,x){const H=document.createElement("script");H.src=`${Is}?l=${E}&id=${x}`,H.async=!0,document.head.appendChild(H)}function jr(E,x,H,me,$e,Xe){return eo.apply(this,arguments)}function eo(){return(eo=(0,A.Z)(function*(E,x,H,me,$e,Xe){const xt=me[$e];try{if(xt)yield x[xt];else{const qt=(yield ds(H)).find(sn=>sn.measurementId===$e);qt&&(yield x[qt.appId])}}catch(Kt){Ri.error(Kt)}E("config",$e,Xe)})).apply(this,arguments)}function b(E,x,H,me,$e){return N.apply(this,arguments)}function N(){return(N=(0,A.Z)(function*(E,x,H,me,$e){try{let Xe=[];if($e&&$e.send_to){let xt=$e.send_to;Array.isArray(xt)||(xt=[xt]);const Kt=yield ds(H);for(const qt of xt){const sn=Kt.find(vn=>vn.measurementId===qt),Dn=sn&&x[sn.appId];if(!Dn){Xe=[];break}Xe.push(Dn)}}0===Xe.length&&(Xe=Object.values(x)),yield Promise.all(Xe),E("event",me,$e||{})}catch(Xe){Ri.error(Xe)}})).apply(this,arguments)}function _e(E){const x=window.document.getElementsByTagName("script");for(const H of Object.values(x))if(H.src&&H.src.includes(Is)&&H.src.includes(E))return H;return null}const mt=new X.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.'}),$n=new class Wn{constructor(x={},H=1e3){this.throttleMetadata=x,this.intervalMillis=H}getThrottleMetadata(x){return this.throttleMetadata[x]}setThrottleMetadata(x,H){this.throttleMetadata[x]=H}deleteThrottleMetadata(x){delete this.throttleMetadata[x]}};function Nn(E){return new Headers({Accept:"application/json","x-goog-api-key":E})}function Ei(E){return Kn.apply(this,arguments)}function Kn(){return(Kn=(0,A.Z)(function*(E){var x;const{appId:H,apiKey:me}=E,$e={method:"GET",headers:Nn(me)},Xe=xs.replace("{app-id}",H),xt=yield fetch(Xe,$e);if(200!==xt.status&&304!==xt.status){let Kt="";try{const qt=yield xt.json();null!==(x=qt.error)&&void 0!==x&&x.message&&(Kt=qt.error.message)}catch{}throw mt.create("config-fetch-failed",{httpStatus:xt.status,responseMessage:Kt})}return xt.json()})).apply(this,arguments)}function ci(E){return lr.apply(this,arguments)}function lr(){return(lr=(0,A.Z)(function*(E,x=$n,H){const{appId:me,apiKey:$e,measurementId:Xe}=E.options;if(!me)throw mt.create("no-app-id");if(!$e){if(Xe)return{measurementId:Xe,appId:me};throw mt.create("no-api-key")}const xt=x.getThrottleMetadata(me)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Kt=new to;return setTimeout((0,A.Z)(function*(){Kt.abort()}),void 0!==H?H:6e4),Ji({appId:me,apiKey:$e,measurementId:Xe},xt,Kt,x)})).apply(this,arguments)}function Ji(E,x,H){return Gi.apply(this,arguments)}function Gi(){return(Gi=(0,A.Z)(function*(E,{throttleEndTimeMillis:x,backoffCount:H},me,$e=$n){var Xe;const{appId:xt,measurementId:Kt}=E;try{yield er(me,x)}catch(qt){if(Kt)return Ri.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Kt} provided in the "measurementId" field in the local Firebase config. [${qt?.message}]`),{appId:xt,measurementId:Kt};throw qt}try{const qt=yield Ei(E);return $e.deleteThrottleMetadata(xt),qt}catch(qt){const sn=qt;if(!Pr(sn)){if($e.deleteThrottleMetadata(xt),Kt)return Ri.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${Kt} provided in the "measurementId" field in the local Firebase config. [${sn?.message}]`),{appId:xt,measurementId:Kt};throw qt}const Dn=503===Number(null===(Xe=sn?.customData)||void 0===Xe?void 0:Xe.httpStatus)?(0,X.$s)(H,$e.intervalMillis,30):(0,X.$s)(H,$e.intervalMillis),vn={throttleEndTimeMillis:Date.now()+Dn,backoffCount:H+1};return $e.setThrottleMetadata(xt,vn),Ri.debug(`Calling attemptFetch again in ${Dn} millis`),Ji(E,vn,me,$e)}})).apply(this,arguments)}function er(E,x){return new Promise((H,me)=>{const $e=Math.max(x-Date.now(),0),Xe=setTimeout(H,$e);E.addEventListener(()=>{clearTimeout(Xe),me(mt.create("fetch-throttle",{throttleEndTimeMillis:x}))})})}function Pr(E){if(!(E instanceof X.ZR&&E.customData))return!1;const x=Number(E.customData.httpStatus);return 429===x||500===x||503===x||504===x}class to{constructor(){this.listeners=[]}addEventListener(x){this.listeners.push(x)}abort(){this.listeners.forEach(x=>x())}}let vo,Jo;function qo(){return(qo=(0,A.Z)(function*(E,x,H,me,$e){if($e&&$e.global)E("event",H,me);else{const Xe=yield x;E("event",H,Object.assign(Object.assign({},me),{send_to:Xe}))}})).apply(this,arguments)}function $r(E){Jo=E}function es(E){vo=E}function Vi(){return ps.apply(this,arguments)}function ps(){return(ps=(0,A.Z)(function*(){if(!(0,X.hl)())return Ri.warn(mt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,X.eu)()}catch(E){return Ri.warn(mt.create("indexeddb-unavailable",{errorInfo:E?.toString()}).message),!1}return!0})).apply(this,arguments)}function ns(){return(ns=(0,A.Z)(function*(E,x,H,me,$e,Xe,xt){var Kt;const qt=ci(E);qt.then(Di=>{H[Di.measurementId]=Di.appId,E.options.measurementId&&Di.measurementId!==E.options.measurementId&&Ri.warn(`The measurement ID in the local Firebase config (${E.options.measurementId}) does not match the measurement ID fetched from the server (${Di.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(Di=>Ri.error(Di)),x.push(qt);const sn=Vi().then(Di=>{if(Di)return me.getId()}),[Dn,vn]=yield Promise.all([qt,sn]);_e(Xe)||Hs(Xe,Dn.measurementId),Jo&&($e("consent","default",Jo),$r(void 0)),$e("js",new Date);const zr=null!==(Kt=xt?.config)&&void 0!==Kt?Kt:{};return zr.origin="firebase",zr.update=!0,null!=vn&&(zr[Fi]=vn),$e("config",Dn.measurementId,zr),vo&&($e("set",vo),es(void 0)),Dn.measurementId})).apply(this,arguments)}class Ps{constructor(x){this.app=x}_delete(){return delete Sr[this.app.options.appId],Promise.resolve()}}let Sr={},Gs=[];const is={};let ms,tr,no="dataLayer",Oo=!1;function Go(E,x,H){!function br(){const E=[];if((0,X.ru)()&&E.push("This is a browser extension environment."),(0,X.zI)()||E.push("Cookies are not available."),E.length>0){const x=E.map((me,$e)=>`(${$e+1}) ${me}`).join(" "),H=mt.create("invalid-analytics-context",{errorInfo:x});Ri.warn(H.message)}}();const me=E.options.appId;if(!me)throw mt.create("no-app-id");if(!E.options.apiKey){if(!E.options.measurementId)throw mt.create("no-api-key");Ri.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${E.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Sr[me])throw mt.create("already-exists",{id:me});if(!Oo){!function Os(E){let x=[];Array.isArray(window[E])?x=window[E]:window[E]=x}(no);const{wrappedGtag:Xe,gtagCore:xt}=function z(E,x,H,me,$e){let Xe=function(...xt){window[me].push(arguments)};return window[$e]&&"function"==typeof window[$e]&&(Xe=window[$e]),window[$e]=function T(E,x,H,me){function Xe(){return(Xe=(0,A.Z)(function*(xt,Kt,qt){try{"event"===xt?yield b(E,x,H,Kt,qt):"config"===xt?yield jr(E,x,H,me,Kt,qt):"consent"===xt?E("consent","update",qt):E("set",Kt)}catch(sn){Ri.error(sn)}})).apply(this,arguments)}return function $e(xt,Kt,qt){return Xe.apply(this,arguments)}}(Xe,E,x,H),{gtagCore:Xe,wrappedGtag:window[$e]}}(Sr,Gs,is,no,"gtag");tr=Xe,ms=xt,Oo=!0}return Sr[me]=function ts(E,x,H,me,$e,Xe,xt){return ns.apply(this,arguments)}(E,Gs,is,x,ms,no,H),new Ps(E)}function Rs(){return io.apply(this,arguments)}function io(){return(io=(0,A.Z)(function*(){if((0,X.ru)()||!(0,X.zI)()||!(0,X.hl)())return!1;try{return yield(0,X.eu)()}catch{return!1}})).apply(this,arguments)}const ui="@firebase/analytics";!function _s(){(0,B._registerComponent)(new le.wA(Ur,(x,{options:H})=>Go(x.getProvider("app").getImmediate(),x.getProvider("installations-internal").getImmediate(),H),"PUBLIC")),(0,B._registerComponent)(new le.wA("analytics-internal",function E(x){try{const H=x.getProvider(Ur).getImmediate();return{logEvent:(me,$e,Xe)=>function ta(E,x,H,me){E=(0,X.m9)(E),function hs(E,x,H,me,$e){return qo.apply(this,arguments)}(tr,Sr[E.app.options.appId],x,H,me).catch($e=>Ri.error($e))}(H,me,$e,Xe)}}catch(H){throw mt.create("interop-component-reg-failed",{reason:H})}},"PRIVATE")),(0,B.registerVersion)(ui,"0.9.3"),(0,B.registerVersion)(ui,"0.9.3","esm2017")}();var $a=g(4408),ga=g(7565);const va=new class _a extends ga.v{}(class na extends $a.o{constructor(x,H){super(x,H),this.scheduler=x,this.work=H}schedule(x,H=0){return H>0?super.schedule(x,H):(this.delay=H,this.state=x,this.scheduler.flush(this),this)}execute(x,H){return H>0||this.closed?super.execute(x,H):this._execute(x,H)}requestAsyncId(x,H,me=0){return null!=me&&me>0||null==me&&this.delay>0?super.requestAsyncId(x,H,me):(x.flush(this),0)}});var ya=g(4986),ys=g(8505),Ti=g(9468),bo=g(5363);const Yo=new r.GfV("7.5.0"),ks="__angularfire_symbol__analyticsIsSupportedValue",Cr="__angularfire_symbol__analyticsIsSupported",h="__angularfire_symbol__remoteConfigIsSupportedValue",m="__angularfire_symbol__remoteConfigIsSupported",u="__angularfire_symbol__messagingIsSupportedValue",C="__angularfire_symbol__messagingIsSupported";function f(E,x,H){if(x){if(1===x.length)return x[0];const Xe=x.filter(xt=>xt.app===H);if(1===Xe.length)return Xe[0]}return H.container.getProvider(E).getImmediate({optional:!0})}globalThis[Cr]||(globalThis[Cr]=Rs().then(E=>globalThis[ks]=E).catch(()=>globalThis[ks]=!1)),globalThis[C]||(globalThis[C]=To().then(E=>globalThis[u]=E).catch(()=>globalThis[u]=!1)),globalThis[m]||(globalThis[m]=No().then(E=>globalThis[h]=E).catch(()=>globalThis[h]=!1));const l=(E,x)=>{const H=x?[x]:(0,c.C6)(),me=[];return H.forEach($e=>{$e.container.getProvider(E).instances.forEach(xt=>{me.includes(xt)||me.push(xt)})}),me};function a(){}class v{constructor(x,H=va){this.zone=x,this.delegate=H}now(){return this.delegate.now()}schedule(x,H,me){const $e=this.zone;return this.delegate.schedule(function(xt){$e.runGuarded(()=>{x.apply(this,[xt])})},H,me)}}class F{constructor(x){this.zone=x,this.task=null}call(x,H){const me=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",a,{},a,a)),H.pipe((0,ys.b)({next:me,complete:me,error:me})).subscribe(x).add(me)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let G=(()=>{class E{constructor(H){this.ngZone=H,this.outsideAngular=H.runOutsideAngular(()=>new v(Zone.current)),this.insideAngular=H.run(()=>new v(Zone.current,ya.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return E.\u0275fac=function(H){return new(H||E)(r.LFG(r.R0b))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();function ge(){const E=globalThis.\u0275AngularFireScheduler;if(!E)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return E}function Yt(E){return ge(),function Bn(E){return function(H){return(H=H.lift(new F(E.ngZone))).pipe((0,Ti.R)(E.outsideAngular),(0,bo.Q)(E.insideAngular))}}(ge())(E)}},2090:(Dt,Se,g)=>{g.d(Se,{$s:()=>V,BH:()=>ue,L:()=>ne,LL:()=>qe,Pz:()=>ye,UG:()=>Te,US:()=>le,ZB:()=>ee,ZR:()=>ve,aH:()=>tt,b$:()=>vt,eu:()=>bt,hl:()=>gt,jU:()=>ze,m9:()=>Ze,ne:()=>$t,pd:()=>st,r3:()=>In,ru:()=>ht,tV:()=>ie,uI:()=>Ue,vZ:()=>et,w1:()=>Mt,xO:()=>Ie,xb:()=>Fn,z$:()=>Ce,zI:()=>wt,zd:()=>rt});const B=function(K){const ce=[];let be=0;for(let Je=0;Je<K.length;Je++){let xe=K.charCodeAt(Je);xe<128?ce[be++]=xe:xe<2048?(ce[be++]=xe>>6|192,ce[be++]=63&xe|128):55296==(64512&xe)&&Je+1<K.length&&56320==(64512&K.charCodeAt(Je+1))?(xe=65536+((1023&xe)<<10)+(1023&K.charCodeAt(++Je)),ce[be++]=xe>>18|240,ce[be++]=xe>>12&63|128,ce[be++]=xe>>6&63|128,ce[be++]=63&xe|128):(ce[be++]=xe>>12|224,ce[be++]=xe>>6&63|128,ce[be++]=63&xe|128)}return ce},le={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(K,ce){if(!Array.isArray(K))throw Error("encodeByteArray takes an array as a parameter");this.init_();const be=ce?this.byteToCharMapWebSafe_:this.byteToCharMap_,Je=[];for(let xe=0;xe<K.length;xe+=3){const Pt=K[xe],Wt=xe+1<K.length,Xt=Wt?K[xe+1]:0,de=xe+2<K.length,k=de?K[xe+2]:0;let I=(15&Xt)<<2|k>>6,P=63&k;de||(P=64,Wt||(I=64)),Je.push(be[Pt>>2],be[(3&Pt)<<4|Xt>>4],be[I],be[P])}return Je.join("")},encodeString(K,ce){return this.HAS_NATIVE_SUPPORT&&!ce?btoa(K):this.encodeByteArray(B(K),ce)},decodeString(K,ce){return this.HAS_NATIVE_SUPPORT&&!ce?atob(K):function(K){const ce=[];let be=0,Je=0;for(;be<K.length;){const xe=K[be++];if(xe<128)ce[Je++]=String.fromCharCode(xe);else if(xe>191&&xe<224){const Pt=K[be++];ce[Je++]=String.fromCharCode((31&xe)<<6|63&Pt)}else if(xe>239&&xe<365){const de=((7&xe)<<18|(63&K[be++])<<12|(63&K[be++])<<6|63&K[be++])-65536;ce[Je++]=String.fromCharCode(55296+(de>>10)),ce[Je++]=String.fromCharCode(56320+(1023&de))}else{const Pt=K[be++],Wt=K[be++];ce[Je++]=String.fromCharCode((15&xe)<<12|(63&Pt)<<6|63&Wt)}}return ce.join("")}(this.decodeStringToByteArray(K,ce))},decodeStringToByteArray(K,ce){this.init_();const be=ce?this.charToByteMapWebSafe_:this.charToByteMap_,Je=[];for(let xe=0;xe<K.length;){const Pt=be[K.charAt(xe++)],Xt=xe<K.length?be[K.charAt(xe)]:0;++xe;const k=xe<K.length?be[K.charAt(xe)]:64;++xe;const _=xe<K.length?be[K.charAt(xe)]:64;if(++xe,null==Pt||null==Xt||null==k||null==_)throw Error();Je.push(Pt<<2|Xt>>4),64!==k&&(Je.push(Xt<<4&240|k>>2),64!==_&&Je.push(k<<6&192|_))}return Je},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let K=0;K<this.ENCODED_VALS.length;K++)this.byteToCharMap_[K]=this.ENCODED_VALS.charAt(K),this.charToByteMap_[this.byteToCharMap_[K]]=K,this.byteToCharMapWebSafe_[K]=this.ENCODED_VALS_WEBSAFE.charAt(K),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[K]]=K,K>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(K)]=K,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(K)]=K)}}},ne=function(K){return function(K){const ce=B(K);return le.encodeByteArray(ce,!0)}(K).replace(/\./g,"")},ie=function(K){try{return le.decodeString(K,!0)}catch(ce){console.error("base64Decode failed: ",ce)}return null};function ee(K,ce){if(!(ce instanceof Object))return ce;switch(ce.constructor){case Date:return new Date(ce.getTime());case Object:void 0===K&&(K={});break;case Array:K=[];break;default:return ce}for(const be in ce)!ce.hasOwnProperty(be)||!ae(be)||(K[be]=ee(K[be],ce[be]));return K}function ae(K){return"__proto__"!==K}const he=()=>{try{return function je(){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 K=process.env.__FIREBASE_DEFAULTS__;return K?JSON.parse(K):void 0})()||(()=>{if(typeof document>"u")return;let K;try{K=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ce=K&&ie(K[1]);return ce&&JSON.parse(ce)})()}catch(K){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${K}`)}},tt=()=>{var K;return null===(K=he())||void 0===K?void 0:K.config},ye=K=>{var ce;return null===(ce=he())||void 0===ce?void 0:ce[`_${K}`]};class ue{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ce,be)=>{this.resolve=ce,this.reject=be})}wrapCallback(ce){return(be,Je)=>{be?this.reject(be):this.resolve(Je),"function"==typeof ce&&(this.promise.catch(()=>{}),1===ce.length?ce(be):ce(be,Je))}}}function Ce(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Ue(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ce())}function Te(){var K;const ce=null===(K=he())||void 0===K?void 0:K.forceEnvironment;if("node"===ce)return!0;if("browser"===ce)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function ze(){return"object"==typeof self&&self.self===self}function ht(){const K="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof K&&void 0!==K.id}function vt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Mt(){const K=Ce();return K.indexOf("MSIE ")>=0||K.indexOf("Trident/")>=0}function gt(){try{return"object"==typeof indexedDB}catch{return!1}}function bt(){return new Promise((K,ce)=>{try{let be=!0;const Je="validate-browser-context-for-indexeddb-analytics-module",xe=self.indexedDB.open(Je);xe.onsuccess=()=>{xe.result.close(),be||self.indexedDB.deleteDatabase(Je),K(!0)},xe.onupgradeneeded=()=>{be=!1},xe.onerror=()=>{var Pt;ce((null===(Pt=xe.error)||void 0===Pt?void 0:Pt.message)||"")}}catch(be){ce(be)}})}function wt(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class ve extends Error{constructor(ce,be,Je){super(be),this.code=ce,this.customData=Je,this.name="FirebaseError",Object.setPrototypeOf(this,ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,qe.prototype.create)}}class qe{constructor(ce,be,Je){this.service=ce,this.serviceName=be,this.errors=Je}create(ce,...be){const Je=be[0]||{},xe=`${this.service}/${ce}`,Pt=this.errors[ce],Wt=Pt?function L(K,ce){return K.replace(te,(be,Je)=>{const xe=ce[Je];return null!=xe?String(xe):`<${Je}?>`})}(Pt,Je):"Error";return new ve(xe,`${this.serviceName}: ${Wt} (${xe}).`,Je)}}const te=/\{\$([^}]+)}/g;function In(K,ce){return Object.prototype.hasOwnProperty.call(K,ce)}function Fn(K){for(const ce in K)if(Object.prototype.hasOwnProperty.call(K,ce))return!1;return!0}function et(K,ce){if(K===ce)return!0;const be=Object.keys(K),Je=Object.keys(ce);for(const xe of be){if(!Je.includes(xe))return!1;const Pt=K[xe],Wt=ce[xe];if(W(Pt)&&W(Wt)){if(!et(Pt,Wt))return!1}else if(Pt!==Wt)return!1}for(const xe of Je)if(!be.includes(xe))return!1;return!0}function W(K){return null!==K&&"object"==typeof K}function Ie(K){const ce=[];for(const[be,Je]of Object.entries(K))Array.isArray(Je)?Je.forEach(xe=>{ce.push(encodeURIComponent(be)+"="+encodeURIComponent(xe))}):ce.push(encodeURIComponent(be)+"="+encodeURIComponent(Je));return ce.length?"&"+ce.join("&"):""}function rt(K){const ce={};return K.replace(/^\?/,"").split("&").forEach(Je=>{if(Je){const[xe,Pt]=Je.split("=");ce[decodeURIComponent(xe)]=decodeURIComponent(Pt)}}),ce}function st(K){const ce=K.indexOf("?");if(!ce)return"";const be=K.indexOf("#",ce);return K.substring(ce,be>0?be:void 0)}function $t(K,ce){const be=new It(K,ce);return be.subscribe.bind(be)}class It{constructor(ce,be){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=be,this.task.then(()=>{ce(this)}).catch(Je=>{this.error(Je)})}next(ce){this.forEachObserver(be=>{be.next(ce)})}error(ce){this.forEachObserver(be=>{be.error(ce)}),this.close(ce)}complete(){this.forEachObserver(ce=>{ce.complete()}),this.close()}subscribe(ce,be,Je){let xe;if(void 0===ce&&void 0===be&&void 0===Je)throw new Error("Missing Observer.");xe=function De(K,ce){if("object"!=typeof K||null===K)return!1;for(const be of ce)if(be in K&&"function"==typeof K[be])return!0;return!1}(ce,["next","error","complete"])?ce:{next:ce,error:be,complete:Je},void 0===xe.next&&(xe.next=lt),void 0===xe.error&&(xe.error=lt),void 0===xe.complete&&(xe.complete=lt);const Pt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?xe.error(this.finalError):xe.complete()}catch{}}),this.observers.push(xe),Pt}unsubscribeOne(ce){void 0===this.observers||void 0===this.observers[ce]||(delete this.observers[ce],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ce){if(!this.finalized)for(let be=0;be<this.observers.length;be++)this.sendOne(be,ce)}sendOne(ce,be){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[ce])try{be(this.observers[ce])}catch(Je){typeof console<"u"&&console.error&&console.error(Je)}})}close(ce){this.finalized||(this.finalized=!0,void 0!==ce&&(this.finalError=ce),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function lt(){}function V(K,ce=1e3,be=2){const Je=ce*Math.pow(be,K),xe=Math.round(.5*Je*(Math.random()-.5)*2);return Math.min(144e5,Je+xe)}function Ze(K){return K&&K._delegate?K._delegate:K}},3389:(Dt,Se,g)=>{g.d(Se,{$:()=>ae});var r=g(1135),c=g(8996),A=g(4004),B=g(3900),X=g(8505),le=g(3942),q=g(4650),ne=g(3893),ie=g(7185),j=g(8811),ee=g(1104);class ae{constructor(Ee,Le,Ne,he){this._router=Ee,this.toaster=Le,this.afAuth=Ne,this.http=he,this._roles$=new r.X([])}login(Ee){this._router.navigate([Ee])}logout(){this._roles$.next([]),localStorage.removeItem("Roles"),this._router.navigate([""])}setRoles(Ee){localStorage.setItem("Roles",JSON.stringify(Ee)),this._roles$.next(Ee)}getRoles(){let Ee=this._roles$.getValue();if(0==Ee.length){let Le=localStorage.getItem("Roles");Ee=JSON.parse(Le),this._roles$.next(Ee)}return Ee}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!(new Date(localStorage.getItem("ExpireDate")).getTime()-(new Date).getTime()>0)}saveLoginForm(Ee,Le){localStorage.setItem("Domain",Ee),localStorage.setItem("Username",Le)}getUsername(){return localStorage.getItem("Username")}getDomain(){return localStorage.getItem("Domain")}isLoginFormExist(){let Ee=this.getDomain(),Le=this.getUsername(),Ne=!1;return Ee&&Le&&(Ne=!0),Ne}loginWithGoogle(Ee,Le){Ee.preventDefault();const Ne=new le.Z.auth.GoogleAuthProvider;return Ne.setCustomParameters({prompt:"select_account"}),(0,c.D)(this.afAuth.signInWithPopup(Ne)).pipe((0,A.U)(he=>he.credential),(0,A.U)(he=>he.idToken),(0,B.w)(he=>this.http.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:he,Host:Le}))),(0,X.b)(he=>{this.setLocalStorage(he,Le,null)}))}setLocalStorage(Ee,Le,Ne){localStorage.setItem("Token",Ee.access_token),localStorage.setItem("Authorization",JSON.stringify({Host:Le,username:Ne})),localStorage.setItem("Intercom",JSON.stringify(Ee.IntercomWidget))}}ae.\u0275fac=function(Ee){return new(Ee||ae)(q.LFG(ne.F0),q.LFG(ie._W),q.LFG(j.zQ),q.LFG(ee.O))},ae.\u0275prov=q.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"})},1104:(Dt,Se,g)=>{g.d(Se,{O:()=>Le});var r=g(9751),c=g(529),A=g(4986),B=g(1165),X=g(4482),le=g(8421),q=g(3888),ne=g(5403),ie=g(9672);const j=(0,q.d)(Ne=>function(Re=null){Ne(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Re});function ee(Ne,he){const{first:Re,each:ke,with:tt=ae,scheduler:ye=he??A.z,meta:ue=null}=(0,B.q)(Ne)?{first:Ne}:"number"==typeof Ne?{each:Ne}:Ne;if(null==Re&&null==ke)throw new TypeError("No timeout provided.");return(0,X.e)((we,Ce)=>{let Ue,Te,ze=null,ht=0;const vt=Nt=>{Te=(0,ie.f)(Ce,ye,()=>{try{Ue.unsubscribe(),(0,le.Xf)(tt({meta:ue,lastValue:ze,seen:ht})).subscribe(Ce)}catch(Mt){Ce.error(Mt)}},Nt)};Ue=we.subscribe((0,ne.x)(Ce,Nt=>{Te?.unsubscribe(),ht++,Ce.next(ze=Nt),ke>0&&vt(ke)},void 0,void 0,()=>{Te?.closed||Te?.unsubscribe(),ze=null})),!ht&&vt(null!=Re?"number"==typeof Re?Re:+Re-ye.now():ke)})}function ae(Ne){throw new j(Ne)}var je=g(4650),Ee=g(7185);class Le{constructor(he,Re){this.http=he,this.toastr=Re}postFormData(he,Re){return new r.y(ke=>{let tt=localStorage.getItem("Token"),ue={headers:new c.WM({Authorization:"Bearer "+tt})};this.http.post(he,Re,ue).pipe(ee(1e5)).subscribe(we=>{ke.next(we),ke.complete()},we=>{if(200==we.status)ke.next(we.error.text),ke.complete();else{let Ce=this.errorMessageHandling(we);this.toastr.error(Ce.message,Ce.header),ke.error(we)}})})}post(he,Re,ke=1e5){return new r.y(tt=>{let ye=localStorage.getItem("Token"),ue=new c.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});ye&&(ue=new c.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+ye})),this.http.post(he,Re,{headers:ue}).pipe(ee(ke)).subscribe(Ce=>{tt.next(Ce),tt.complete()},Ce=>{if(200==Ce.status)tt.next(Ce.error.text),tt.complete();else{if(!this.unauthorizedErrorHandling(Ce)){let Te=this.errorMessageHandling(Ce);this.toastr.error(""!=Te.message?Te.message:"An unknown error has occured!",Te.header)}tt.error(Ce)}})})}unauthorizedErrorHandling(he){let Re=!1;return 401==he.status&&(this.toastr.error("We can't log you in because of authenctication error","Unauthorized"),Re=!0),Re}errorMessageHandling(he){let Re="API Error",ke="Exception Message";return he.error?(Re="API Error - "+he.status,he.error.Message&&(ke=he.error.Message)):he.message&&(Re="API Error - "+he.name,ke=he.message),{header:Re,message:ke}}}Le.\u0275fac=function(he){return new(he||Le)(je.LFG(c.eN),je.LFG(Ee._W))},Le.\u0275prov=je.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"})},5083:(Dt,Se,g)=>{g.d(Se,{U:()=>A});var r=g(1135),c=g(4650);class A{constructor(){this.store=new r.X({ID:null,billNumber:null,outletName:null})}getState(){return this.store.asObservable()}setState(X){this.store.next(X)}}A.\u0275fac=function(X){return new(X||A)},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})},8412:(Dt,Se,g)=>{g.d(Se,{gT:()=>r});class r{static StringFormat(q,...ne){for(let ie=0;ie<ne.length;ie++)q=q.replace(`{${ie}}`,ne[ie]);return q}static IsNotEmpty(q){return""!=q&&q!=r.GuidEmpty&&null!=q&&null!=q}static IsEmpty(q){return""==q||null==q||null==q||q==r.GuidEmpty}static FilterByID(q,ne){try{const ie=q.filter(j=>j.ID==ne);if(ie.length>0)return ie[0]}catch{console.log("error filter")}return null}static DateOnly(q){return q?new Date(new Date(q).toDateString()):new Date((new Date).toDateString())}}r.GuidEmpty="00000000-0000-0000-0000-000000000000",r.DecimalMinValue="-7.922816251426434e+28",r.InputLockTimeSpan=500,r.MinDate="0001-01-01T00:00:00",r.MinTime="00:00:00";class A{}A.emptyDate="Please fill invoice date",A.emptyNumber="Please fill invoice number",A.failGetMenu="Fail to get pos menu",A.failToGetRetur="Fail to get retur",A.failGetLocalPosStorage="Fail to get setting and option from local storage, Please re-cache your data while online!",A.failGetVariant='"Error getting variant with {0} {1}" - {2}',A.failGetLocalVariant="Fail to get variant from local storage, Please re-cache your data while online!",A.emptyBarcodeFormat='No product with barcode "{0}"',A.emptyCustomerFormat='No customer with code "{0}"',A.failGetSalesOrder="Fail to get sales order",A.failBin="Fail to bin transaction",A.failGetCustomer="Fail to get customer's data",A.failCreateCustomer="Fail to create customer",A.noRoleContact="You have no right to create new customer",A.submitLocally="Connection unavailable ~ offline! Order stored locally",A.OfflineOrderNotSupport="Offline order is not Supported!",A.failOrderConnectionTimeOut="Connection timeout! Please try uploading your order again!",A.failDeletePark="Fail to delete park",A.emptyAccessRegister="You do not have access to any Register",A.failGenerateNewNumber="Fail to generate new number",A.emptyPayment="There is no active payment method.",A.failOpenRegister="Fail to open register",A.failGetLocalOutletInfo="Fail to get outlet information from local storage, Please re-cache your data while online!",A.failTrySubmit="[Error submitting order] \n{0}",A.failTryCreateCustomer='"[Error creating customer] \n"{0}',A.createCustomerOffline="Create customer is not supported when the connection offline",A.emptyCustomer="Please select customer!",A.emptySalesPerson="Please select sales person!",A.emptySalesType="Please select sales type!",A.failCreateNewVariant="Fail to create new variant",A.requiredDefaultCategory="[WARNING] - POS / Quick Create Product requires Default Category",A.emptyVariant="Item is undefined, please re-type",A.emptyPOItem="You must have at least one item",A.emptyEntity="Please select entity before proceeding..",A.failGetRetrieve="Fail to get retrieve",A.failTryPark="[Error submitting park] \n{0}",A.failTryGetPark="[Error during get park] \n{0}",A.failTryGetOutStanding="[Error during get outstanding] \n{0}",A.failTryGetParkSelect="[Error during get available park select] \n{0}",A.failGetSerial="Fail to get variant serial",A.successSendOrder="Orders synchronized to server. Upload Transaction Complete!",A.successSyncProduct="Products synchronized to Local Storage",A.failGetPark="Fail to get park",A.failMergePark="Fail to merge park",A.failGetOutStanding="Fail to get outstanding",A.failGetParkSelect="Fail to get available park select",A.confirmationDeleteOrder="Are you sure want to delete this order?",A.confirmationCloseRegister="The Register is still occupied under '{0}'. Do you want to end his / her session?",A.closeActiveRegister="You already have an active register with name '{0}'. Do you want to end your session?",A.successSendEmail="Email is sent successfully to '{0}'",A.wrongOfflineAction="This action is not supported when the connection offline",A.emptyCustomerCredit="Credit Payment requires customer specified!",A.debtLimit="Your debt is over limit!",A.emptyCustomerDeposit="Deposit Payment requires customer specified!",A.creditLock="You have no right to give credit!",A.failToSyncProduct="Fail sync product to local storage!",A.emptyDeliveryOutlet="There is no outlet in delivery module.",A.wrongAuthorizationCode="Wrong Authorize Code!",A.priceMinimumRestriction="You have no right to sell this item lower than {0}",A.clearBrowsingData="A new version of our POS is available, please clear your browsing data to apply changes!",A.offlineModeNotification="WARNING! Your point of sale configuration is set to LOCAL, orders are not synchronized automatically.",A.failServerConnection="Something happen to the server, switch query to local mode to continue work!",A.taxEmpty="Tax options is empty, go to setup and add tax!",A.clearCommission="Are you sure to leave this page without saving?",A.voidConfirm="This will replace current order's item(s) with blank order.",A.notSellAble="This item is not for sell",A.partialLoyaltyPointUnable="You only can fully pay with loyalty point, otherwise please remove the loyalty point and use other available payment options",A.DiffDate="Client date is not equal with Server Date",A.pointOnly="{0} need paid by point only",A.cashOnly="{0} cannot paid by point",A.ovoConfig="WARNING! Your ovo configuration is not set",A.failGenerateQR="Fail to generate qr",A.failPaymentOvo="Fail to pay with ovo, Try again",A.emptyPhone="Please Fill Phone";class B{}B.GetPOSStorage="/API/POS/LoadPOS",B.GenerateNumber="/API/POS/GenerateNumber",B.RemovePark="/API/POS/RemovePark",B.VoidPark="/API/POS/VoidPark",B.ReturInvoice="/API/POS/ReturInvoice",B.GetSalesOrderJSONByID="/API/POS/GetSalesOrderJSONByID",B.GetPOSDataByID="/API/POS/GetPOSDataByID",B.MergePark="/API/POS/MergePark",B.GetPark="/API/POS/GetParkByEntityID",B.GetOutStanding="/API/POS/GetOutStandingByEntityID",B.GetVacant="/API/POS/GetParkInfoByEntityID",B.RecordOpeningCash="/API/POS/RecordOpeningCash",B.OpenRegister="/API/POS/LoadRegister",B.BackdateNumber="/API/POS/GenerateBackdateNumber",B.GetVariantByID="/API/catalog/variant/GetVariantByID",B.GetVariantByCode="/API/catalog/variant/GetVariantByCode",B.GetVariantSerial="/API/catalog/variant/GetVariantSerial",B.CreateVariant="/API/catalog/variant/CreateVariant",B.SendInvoiceEmail="/API/Transaction/SendEmail",B.TransactionNumber="/API/POS/GenerateNumber",B.GetCustomerPrivilegeByID="/API/Contact/GetPrivilegeByID",B.GetCustomerByCode="/API/Contact/GetByCode",B.GetCustomerCode="/API/Contact/GetCode",B.GetCustomerEmailByID="/API/Contact/GetEmailByID",B.GetPriceBookByVariantID="/API/catalog/variant/GetPriceBookByVariantID",B.GetPackageID="/API/POS/GetPackageID",B.Authorize="/API/AuthorizationKey/Authorize",B.Invoice="/API/Orders/InvoiceInfo",B.OrdersLoader="/API/OrdersLoader/CustomerInvoice",B.Orders="/API/Orders/CustomerInvoice",B.PaymentReceivedLoader="/API/PaymentLoader/DailyPaymentLoader",B.PaymentReceived="/API/Payment/DailyPaymentReceived",B.CheckOutUrl="/API/POS/SubmitOrder",B.Scanner="/API/AdjustmentLoader/StockTakeByCSV",B.AdjustmentLoader="/API/AdjustmentLoader/GetInventoryAdjustmentList",B.Adjustment="/API/Adjustment/GetInventoryAdjustmentList",B.AdjustmentStorage="/API/Adjustment/GetStorage",B.GetNumberAdjustment="/API/Adjustment/GenerateNumber",B.GetAccountReceivableLoader="/API/DebtLoader/AccountsReceiveableSummary",B.GetAccountReceivableDetailLoader="/API/DebtLoader/AccountsReceiveableDetails",B.GetAccountReceivableSummary="/API/Debt/AccountsReceiveableSummary",B.getAccountreceivableDetail="/API/Debt/AccountsReceiveableDetails",B.ProductLibrarySuggestion="/API/AC/GetVariantSuggestionByCodeNName",B.VoidInvoiceLoader="/API/OrdersLoader/VoidInvoiceLoader",B.VoidInvoice="/API/Orders/VoidInvoiceList",B.WaitingPatientList="/API/Treatment/WaitingPatientList",B.CheckOutTreatmentByListID="/API/Treatment/CheckOutByListID",B.TreatmentRegisterLoader="/API/TreatmentLoader/Registration",B.TreatmentRegisterOutletInfo="/API/Treatment/RegistrationGetOutletInfo",B.TreatmentCustomerInfo="/API/Treatment/RegistrationGetCustomerInfo",B.SubmitTreatementRegistration="/API/Treatment/RegistrationSubmit",B.SalesOrderMini="/API/Print/SalesOrderMini",B.ProductLoader="/API/ProductLoader/ProductList",B.ProductList="/API/catalog/product/GetProductList",B.DeleteProductList="/API/catalog/product/DeleteProductList",B.ProductForm="/API/ProductLoader/ProductForm",B.SubmitProduct="/API/catalog/product/SubmitProduct",B.ProductInfo="/API/ProductLoader/ProductInfoInitial",B.CreateCategory="/API/catalog/product/CreateProductCategory",B.CreateBrand="/API/catalog/product/CreateBrand",B.CreateTag="/API/catalog/product/CreateTags",B.CreateUOM="/API/catalog/product/CreateProductUOM",B.VariantInfo="/API/catalog/variant/GetVariantInfoModelById",B.VariantFormData="/API/catalog/variant/GetVariantFormInitialData",B.VariantForm="/API/catalog/variant/GetVariantFormModelById",B.SubmitVariant="/API/catalog/variant/SubmitVariant",B.CreateContact="/API/Contact/Create",B.Closure="/API/POS/Closure",B.SyncProducts="/API/POSSync/Products",B.SyncCustomer="/API/POSSync/Customers",B.SynOutletPrice="/API/POSSync/OutletPrices",B.SynOutlet="/API/POSSync/Outlets",B.SyncPark="/API/POSSync/Parks",B.GetRewardByPromotionID="/API/POS/GetRewardByPromotionID",B.GenerateGopayQrCode="/API/POS/GenerateGoPayQrCode",B.GenerateEmpatKaliQrCode="/API/POS/GenerateEmpatKaliQrCode",B.VerifyPayment="/API/PaymentNotification/VerifyPayment",B.PayWithOvo="/API/POS/PayWithOvo",B.InvoiceA4="/API/Print/Invoice",B.UploadCsv="/API/POS/UploadCsv",B.GenerateCommission="/API/Transaction/GetCommission";class X{}X.OfflineQueryMode="OfflineQueryMode",X.POSStorage="POSStorage",X.Products="Products",X.Customers="Customers",X.OutletPrices="OutletPrices",X.Outlet="Outlet",X.Parks="Parks",X.Orders="Orders",X.FailedOrders="FailedOrders",X.CompletedOrders="CompletedOrders",X.NewCustomers="NewCustomers"},6985:(Dt,Se,g)=>{g.d(Se,{O:()=>c});var r=g(512);class c{constructor(){this.title="New Modal",this.titleExtra="",this.okText="Ok (F2)",this.cancelText="Cancel",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=r.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.hideMoreButton=!1}}},4405:(Dt,Se,g)=>{g.d(Se,{M:()=>Re});var r=g(4650),c=g(512),A=g(6985),B=g(6895),X=g(5412);function le(ke,tt){if(1&ke){const ye=r.EpF();r.TgZ(0,"div",8),r.NdJ("click",function(){r.CHM(ye);const we=r.oxw();return r.KtG(we.onBack.emit())}),r.TgZ(1,"a",9),r._UZ(2,"i",10),r.qZA()()}}function q(ke,tt){if(1&ke){const ye=r.EpF();r.TgZ(0,"div")(1,"a",11),r.NdJ("click",function(){r.CHM(ye);const we=r.oxw();return r.KtG(we.onCancel.emit())}),r._UZ(2,"i",12),r.qZA()()}}function ne(ke,tt){1&ke&&r.Hsn(0,2,["*ngIf","more"])}function ie(ke,tt){if(1&ke){const ye=r.EpF();r.TgZ(0,"a",17),r.NdJ("click",function(){r.CHM(ye);const we=r.oxw(2);return r.KtG(we.more=!we.more)}),r._uU(1,"More"),r.qZA()}}function j(ke,tt){if(1&ke){const ye=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){r.CHM(ye);const we=r.oxw(2);return r.KtG(we.onCancel.emit())}),r._uU(1),r.qZA()}if(2&ke){const ye=r.oxw(2);r.xp6(1),r.hij(" ",null!=ye.config&&ye.config.cancelText?null==ye.config?null:ye.config.cancelText:"Cancel","")}}function ee(ke,tt){if(1&ke){const ye=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(ye);const we=r.oxw(2);return r.KtG(we.onOk.emit())}),r._uU(1),r.qZA()}if(2&ke){const ye=r.oxw(2);r.Q6J("disabled",!(null!=ye.config&&ye.config.validated)),r.xp6(1),r.hij(" ",null!=ye.config&&ye.config.okText?null==ye.config?null:ye.config.okText:"Ok (F2)"," ")}}function ae(ke,tt){if(1&ke&&(r.TgZ(0,"mat-dialog-actions",13),r.YNc(1,ie,2,0,"a",14),r.Hsn(2,3),r.YNc(3,j,2,1,"a",15),r.YNc(4,ee,2,2,"button",16),r.qZA()),2&ke){const ye=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=ye.config&&ye.config.hideMoreButton)),r.xp6(2),r.Q6J("ngIf",!(null!=ye.config&&ye.config.hideCancel)),r.xp6(1),r.Q6J("ngIf",!(null!=ye.config&&ye.config.hideOk))}}const je=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],Ee=function(ke,tt){return{bodyScrollable:ke,hideScrollbar:tt}},Le=function(ke){return{"mx-auto":ke}},Ne=function(ke){return{"show-footer":ke}};class Re{constructor(){this.onOk=new r.vpe,this.onCancel=new r.vpe,this.onClose=new r.vpe,this.onBack=new r.vpe,this.onShowMore=new r.vpe,this.term="",this.background="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new A.O),this.config.headerType){case c.n.Success:this.background="bg-success";break;case c.n.Warning:case c.n.Info:this.background="bg-warning";break;case c.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(tt){this.config&&(this.config.disableKeyup||"F2"==tt.code&&this.onOk.emit())}}Re.\u0275fac=function(tt){return new(tt||Re)},Re.\u0275cmp=r.Xpm({type:Re,selectors:[["modal-material"]],inputs:{config:"config"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack",onShowMore:"onShowMore"},ngContentSelectors:["header","content","more-content","footer"],decls:12,vars:20,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer",3,"click",4,"ngIf"],[1,"d-flex","flex-row","w-100","justify-content-start",3,"ngClass"],[1,"fw-normal"],[4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],["style","margin-top: 28px;\n margin-bottom: 0;\n padding-bottom: 0 !important;","class","w-100 py-7 border-top d-flex justify-content-end",4,"ngIf"],[1,"back-button","position-absolute","pointer",3,"click"],[1,"btn","back-button"],[1,"fas","fa-arrow-left"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fa","fa-times","fa-lg","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end",2,"margin-top","28px","margin-bottom","0","padding-bottom","0 !important"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"click",4,"ngIf"],["class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3",3,"disabled","click",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"disabled","click"]],template:function(tt,ye){1&tt&&(r.F$t(je),r.TgZ(0,"div",0),r.NdJ("keyup",function(we){return ye.onKeyup(we)}),r.TgZ(1,"div",1),r.YNc(2,le,3,0,"div",2),r.TgZ(3,"div",3)(4,"h4",4),r._uU(5),r.qZA(),r.Hsn(6),r.qZA(),r.YNc(7,q,3,0,"div",5),r.qZA(),r.TgZ(8,"mat-dialog-content",6),r.Hsn(9,1),r.YNc(10,ne,1,0,"ng-content",5),r.qZA(),r.YNc(11,ae,5,3,"mat-dialog-actions",7),r.qZA()),2&tt&&(r.Udp("width",null==ye.config?null:ye.config.customWidth),r.Q6J("ngClass",r.WLB(13,Ee,null==ye.config?null:ye.config.bodyScrollable,null==ye.config?null:ye.config.hideScrollbar)),r.xp6(1),r.Gre("d-flex w-100 justify-content-between modal-header position-relative ",ye.background,""),r.xp6(1),r.Q6J("ngIf",null==ye.config?null:ye.config.eMoney),r.xp6(1),r.Q6J("ngClass",r.VKq(16,Le,null==ye.config?null:ye.config.eMoney)),r.xp6(2),r.Oqu(null==ye.config?null:ye.config.title),r.xp6(2),r.Q6J("ngIf",!(null!=ye.config&&ye.config.hideClose)),r.xp6(1),r.Q6J("ngClass",r.VKq(18,Ne,!(null!=ye.config&&ye.config.hideFooter))),r.xp6(2),r.Q6J("ngIf",ye.more),r.xp6(1),r.Q6J("ngIf",!(null!=ye.config&&ye.config.hideFooter)))},dependencies:[B.mk,B.O5,X.uh,X.xY,X.H8],styles:["mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px;margin-bottom:0}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%], mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-3.8rem;padding-top:.2rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.mat-mdc-dialog-content[_ngcontent-%COMP%]{margin:auto;padding-bottom:12px}h4[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0;margin-top:7px}input[type=radio][_ngcontent-%COMP%]{border:0px;width:100%;height:2em}"]})},512:(Dt,Se,g)=>{g.d(Se,{n:()=>r});var r=(()=>{return(c=r||(r={})).Success="Success",c.Info="Info",c.Warning="Warning",c.Error="Error",r;var c})()},4949:(Dt,Se,g)=>{g.d(Se,{m:()=>ne});var r=g(6895),c=g(433),A=g(8796),B=g(5412),X=g(4120),le=g(4650);class q{}q.\u0275fac=function(j){return new(j||q)},q.\u0275mod=le.oAB({type:q}),q.\u0275inj=le.cJS({imports:[r.ez]});class ne{}ne.\u0275fac=function(j){return new(j||ne)},ne.\u0275mod=le.oAB({type:ne}),ne.\u0275inj=le.cJS({imports:[r.ez,c.u5,A.A0,c.UX,B.Is,X.Bb,q,c.u5,A.A0,c.UX,B.Is,X.Bb,q]})},7326:(Dt,Se,g)=>{var r=g(1481),c=g(4650),A=g(2011),B=g(8811),X=g(6895),le=g(433),q=g(7340);function ie(f){return new c.vHH(3e3,!1)}function Jt(){return typeof window<"u"&&typeof window.document<"u"}function Vt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function en(f){switch(f.length){case 0:return new q.ZN;case 1:return f[0];default:return new q.ZE(f)}}function En(f,l,a,v,F=new Map,G=new Map){const ge=[],Me=[];let Qe=-1,_t=null;if(v.forEach(jt=>{const Yt=jt.get("offset"),Bn=Yt==Qe,On=Bn&&_t||new Map;jt.forEach((_n,E)=>{let x=E,H=_n;if("offset"!==E)switch(x=l.normalizePropertyName(x,ge),H){case q.k1:H=F.get(E);break;case q.l3:H=G.get(E);break;default:H=l.normalizeStyleValue(E,x,H,ge)}On.set(x,H)}),Bn||Me.push(On),_t=On,Qe=Yt}),ge.length)throw function it(f){return new c.vHH(3502,!1)}();return Me}function In(f,l,a,v){switch(l){case"start":f.onStart(()=>v(a&&Pn(a,"start",f)));break;case"done":f.onDone(()=>v(a&&Pn(a,"done",f)));break;case"destroy":f.onDestroy(()=>v(a&&Pn(a,"destroy",f)))}}function Pn(f,l,a){const G=Fn(f.element,f.triggerName,f.fromState,f.toState,l||f.phaseName,a.totalTime??f.totalTime,!!a.disabled),ge=f._data;return null!=ge&&(G._data=ge),G}function Fn(f,l,a,v,F="",G=0,ge){return{element:f,triggerName:l,fromState:a,toState:v,phaseName:F,totalTime:G,disabled:!!ge}}function an(f,l,a){let v=f.get(l);return v||f.set(l,v=a),v}function et(f){const l=f.indexOf(":");return[f.substring(1,l),f.slice(l+1)]}let W=(f,l)=>!1,se=(f,l,a)=>[],Ie=null;function rt(f){const l=f.parentNode||f.host;return l===Ie?null:l}(Vt()||typeof Element<"u")&&(Jt()?(Ie=(()=>document.documentElement)(),W=(f,l)=>{for(;l;){if(l===f)return!0;l=rt(l)}return!1}):W=(f,l)=>f.contains(l),se=(f,l,a)=>{if(a)return Array.from(f.querySelectorAll(l));const v=f.querySelector(l);return v?[v]:[]});let $t=null,It=!1;const fe=W,Ye=se;let kt=(()=>{class f{validateStyleProperty(a){return function Tt(f){$t||($t=function lt(){return typeof document<"u"?document.body:null}()||{},It=!!$t.style&&"WebkitAppearance"in $t.style);let l=!0;return $t.style&&!function At(f){return"ebkit"==f.substring(1,6)}(f)&&(l=f in $t.style,!l&&It&&(l="Webkit"+f.charAt(0).toUpperCase()+f.slice(1)in $t.style)),l}(a)}matchesElement(a,v){return!1}containsElement(a,v){return fe(a,v)}getParentElement(a){return rt(a)}query(a,v,F){return Ye(a,v,F)}computeStyle(a,v,F){return F||""}animate(a,v,F,G,ge,Me=[],Qe){return new q.ZN(F,G)}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})(),ln=(()=>{class f{}return f.NOOP=new kt,f})();const Tn="ng-enter",xn="ng-leave",Oe="ng-trigger",J=".ng-trigger",V="ng-animating",U=".ng-animating";function oe(f){if("number"==typeof f)return f;const l=f.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:Ze(parseFloat(l[1]),l[2])}function Ze(f,l){return"s"===l?1e3*f:f}function K(f,l,a){return f.hasOwnProperty("duration")?f:function ce(f,l,a){let F,G=0,ge="";if("string"==typeof f){const Me=f.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return l.push(ie()),{duration:0,delay:0,easing:""};F=Ze(parseFloat(Me[1]),Me[2]);const Qe=Me[3];null!=Qe&&(G=Ze(parseFloat(Qe),Me[4]));const _t=Me[5];_t&&(ge=_t)}else F=f;if(!a){let Me=!1,Qe=l.length;F<0&&(l.push(function j(){return new c.vHH(3100,!1)}()),Me=!0),G<0&&(l.push(function ee(){return new c.vHH(3101,!1)}()),Me=!0),Me&&l.splice(Qe,0,ie())}return{duration:F,delay:G,easing:ge}}(f,l,a)}function be(f,l={}){return Object.keys(f).forEach(a=>{l[a]=f[a]}),l}function Je(f){const l=new Map;return Object.keys(f).forEach(a=>{l.set(a,f[a])}),l}function Wt(f,l=new Map,a){if(a)for(let[v,F]of a)l.set(v,F);for(let[v,F]of f)l.set(v,F);return l}function Xt(f,l,a){return a?l+":"+a+";":""}function de(f){let l="";for(let a=0;a<f.style.length;a++){const v=f.style.item(a);l+=Xt(0,v,f.style.getPropertyValue(v))}for(const a in f.style)f.style.hasOwnProperty(a)&&!a.startsWith("_")&&(l+=Xt(0,Mn(a),f.style[a]));f.setAttribute("style",l)}function k(f,l,a){f.style&&(l.forEach((v,F)=>{const G=fn(F);a&&!a.has(F)&&a.set(F,f.style[G]),f.style[G]=v}),Vt()&&de(f))}function p(f,l){f.style&&(l.forEach((a,v)=>{const F=fn(v);f.style[F]=""}),Vt()&&de(f))}function _(f){return Array.isArray(f)?1==f.length?f[0]:(0,q.vP)(f):f}const P=new RegExp("{{\\s*(.+?)\\s*}}","g");function re(f){let l=[];if("string"==typeof f){let a;for(;a=P.exec(f);)l.push(a[1]);P.lastIndex=0}return l}function Be(f,l,a){const v=f.toString(),F=v.replace(P,(G,ge)=>{let Me=l[ge];return null==Me&&(a.push(function je(f){return new c.vHH(3003,!1)}()),Me=""),Me.toString()});return F==v?f:F}function yt(f){const l=[];let a=f.next();for(;!a.done;)l.push(a.value),a=f.next();return l}const Lt=/-+([a-z0-9])/g;function fn(f){return f.replace(Lt,(...l)=>l[1].toUpperCase())}function Mn(f){return f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ae(f,l,a){switch(l.type){case 7:return f.visitTrigger(l,a);case 0:return f.visitState(l,a);case 1:return f.visitTransition(l,a);case 2:return f.visitSequence(l,a);case 3:return f.visitGroup(l,a);case 4:return f.visitAnimate(l,a);case 5:return f.visitKeyframes(l,a);case 6:return f.visitStyle(l,a);case 8:return f.visitReference(l,a);case 9:return f.visitAnimateChild(l,a);case 10:return f.visitAnimateRef(l,a);case 11:return f.visitQuery(l,a);case 12:return f.visitStagger(l,a);default:throw function Ee(f){return new c.vHH(3004,!1)}()}}function pt(f,l){return window.getComputedStyle(f)[l]}function zt(f,l){const a=[];return"string"==typeof f?f.split(/\s*,\s*/).forEach(v=>function cn(f,l,a){if(":"==f[0]){const Qe=function Gn(f,l){switch(f){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,v)=>parseFloat(v)>parseFloat(a);case":decrement":return(a,v)=>parseFloat(v)<parseFloat(a);default:return l.push(function vt(f){return new c.vHH(3016,!1)}()),"* => *"}}(f,a);if("function"==typeof Qe)return void l.push(Qe);f=Qe}const v=f.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return a.push(function ht(f){return new c.vHH(3015,!1)}()),l;const F=v[1],G=v[2],ge=v[3];l.push(qn(F,ge));"<"==G[0]&&!("*"==F&&"*"==ge)&&l.push(qn(ge,F))}(v,a,l)):a.push(f),a}const li=new Set(["true","1"]),yi=new Set(["false","0"]);function qn(f,l){const a=li.has(f)||yi.has(f),v=li.has(l)||yi.has(l);return(F,G)=>{let ge="*"==f||f==F,Me="*"==l||l==G;return!ge&&a&&"boolean"==typeof F&&(ge=F?li.has(f):yi.has(f)),!Me&&v&&"boolean"==typeof G&&(Me=G?li.has(l):yi.has(l)),ge&&Me}}const Rn=new RegExp("s*:selfs*,?","g");function fi(f,l,a,v){return new Cn(f).build(l,a,v)}class Cn{constructor(l){this._driver=l}build(l,a,v){const F=new Fr(a);return this._resetContextStyleTimingState(F),Ae(this,_(l),F)}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles=new Map,l.collectedStyles.set("",new Map),l.currentTime=0}visitTrigger(l,a){let v=a.queryCount=0,F=a.depCount=0;const G=[],ge=[];return"@"==l.name.charAt(0)&&a.errors.push(function Ne(){return new c.vHH(3006,!1)}()),l.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(a),0==Me.type){const Qe=Me,_t=Qe.name;_t.toString().split(/\s*,\s*/).forEach(jt=>{Qe.name=jt,G.push(this.visitState(Qe,a))}),Qe.name=_t}else if(1==Me.type){const Qe=this.visitTransition(Me,a);v+=Qe.queryCount,F+=Qe.depCount,ge.push(Qe)}else a.errors.push(function he(){return new c.vHH(3007,!1)}())}),{type:7,name:l.name,states:G,transitions:ge,queryCount:v,depCount:F,options:null}}visitState(l,a){const v=this.visitStyle(l.styles,a),F=l.options&&l.options.params||null;if(v.containsDynamicStyles){const G=new Set,ge=F||{};v.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(Qe=>{re(Qe).forEach(_t=>{ge.hasOwnProperty(_t)||G.add(_t)})})}),G.size&&(yt(G.values()),a.errors.push(function Re(f,l){return new c.vHH(3008,!1)}()))}return{type:0,name:l.name,style:v,options:F?{params:F}:null}}visitTransition(l,a){a.queryCount=0,a.depCount=0;const v=Ae(this,_(l.animation),a);return{type:1,matchers:zt(l.expr,a.errors),animation:v,queryCount:a.queryCount,depCount:a.depCount,options:xi(l.options)}}visitSequence(l,a){return{type:2,steps:l.steps.map(v=>Ae(this,v,a)),options:xi(l.options)}}visitGroup(l,a){const v=a.currentTime;let F=0;const G=l.steps.map(ge=>{a.currentTime=v;const Me=Ae(this,ge,a);return F=Math.max(F,a.currentTime),Me});return a.currentTime=F,{type:3,steps:G,options:xi(l.options)}}visitAnimate(l,a){const v=function vi(f,l){if(f.hasOwnProperty("duration"))return f;if("number"==typeof f)return or(K(f,l).duration,0,"");const a=f;if(a.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=or(0,0,"");return G.dynamic=!0,G.strValue=a,G}const F=K(a,l);return or(F.duration,F.delay,F.easing)}(l.timings,a.errors);a.currentAnimateTimings=v;let F,G=l.styles?l.styles:(0,q.oB)({});if(5==G.type)F=this.visitKeyframes(G,a);else{let ge=l.styles,Me=!1;if(!ge){Me=!0;const _t={};v.easing&&(_t.easing=v.easing),ge=(0,q.oB)(_t)}a.currentTime+=v.duration+v.delay;const Qe=this.visitStyle(ge,a);Qe.isEmptyStep=Me,F=Qe}return a.currentAnimateTimings=null,{type:4,timings:v,style:F,options:null}}visitStyle(l,a){const v=this._makeStyleAst(l,a);return this._validateStyleAst(v,a),v}_makeStyleAst(l,a){const v=[],F=Array.isArray(l.styles)?l.styles:[l.styles];for(let Me of F)"string"==typeof Me?Me===q.l3?v.push(Me):a.errors.push(new c.vHH(3002,!1)):v.push(Je(Me));let G=!1,ge=null;return v.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(ge=Me.get("easing"),Me.delete("easing")),!G))for(let Qe of Me.values())if(Qe.toString().indexOf("{{")>=0){G=!0;break}}),{type:6,styles:v,easing:ge,offset:l.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(l,a){const v=a.currentAnimateTimings;let F=a.currentTime,G=a.currentTime;v&&G>0&&(G-=v.duration+v.delay),l.styles.forEach(ge=>{"string"!=typeof ge&&ge.forEach((Me,Qe)=>{const _t=a.collectedStyles.get(a.currentQuerySelector),jt=_t.get(Qe);let Yt=!0;jt&&(G!=F&&G>=jt.startTime&&F<=jt.endTime&&(a.errors.push(function ye(f,l,a,v,F){return new c.vHH(3010,!1)}()),Yt=!1),G=jt.startTime),Yt&&_t.set(Qe,{startTime:G,endTime:F}),a.options&&function I(f,l,a){const v=l.params||{},F=re(f);F.length&&F.forEach(G=>{v.hasOwnProperty(G)||a.push(function ae(f){return new c.vHH(3001,!1)}())})}(Me,a.options,a.errors)})})}visitKeyframes(l,a){const v={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function ue(){return new c.vHH(3011,!1)}()),v;let G=0;const ge=[];let Me=!1,Qe=!1,_t=0;const jt=l.steps.map(H=>{const me=this._makeStyleAst(H,a);let $e=null!=me.offset?me.offset:function Ki(f){if("string"==typeof f)return null;let l=null;if(Array.isArray(f))f.forEach(a=>{if(a instanceof Map&&a.has("offset")){const v=a;l=parseFloat(v.get("offset")),v.delete("offset")}});else if(f instanceof Map&&f.has("offset")){const a=f;l=parseFloat(a.get("offset")),a.delete("offset")}return l}(me.styles),Xe=0;return null!=$e&&(G++,Xe=me.offset=$e),Qe=Qe||Xe<0||Xe>1,Me=Me||Xe<_t,_t=Xe,ge.push(Xe),me});Qe&&a.errors.push(function we(){return new c.vHH(3012,!1)}()),Me&&a.errors.push(function Ce(){return new c.vHH(3200,!1)}());const Yt=l.steps.length;let Bn=0;G>0&&G<Yt?a.errors.push(function Ue(){return new c.vHH(3202,!1)}()):0==G&&(Bn=1/(Yt-1));const On=Yt-1,_n=a.currentTime,E=a.currentAnimateTimings,x=E.duration;return jt.forEach((H,me)=>{const $e=Bn>0?me==On?1:Bn*me:ge[me],Xe=$e*x;a.currentTime=_n+E.delay+Xe,E.duration=Xe,this._validateStyleAst(H,a),H.offset=$e,v.styles.push(H)}),v}visitReference(l,a){return{type:8,animation:Ae(this,_(l.animation),a),options:xi(l.options)}}visitAnimateChild(l,a){return a.depCount++,{type:9,options:xi(l.options)}}visitAnimateRef(l,a){return{type:10,animation:this.visitReference(l.animation,a),options:xi(l.options)}}visitQuery(l,a){const v=a.currentQuerySelector,F=l.options||{};a.queryCount++,a.currentQuery=l;const[G,ge]=function Yi(f){const l=!!f.split(/\s*,\s*/).find(a=>":self"==a);return l&&(f=f.replace(Rn,"")),f=f.replace(/@\*/g,J).replace(/@\w+/g,a=>J+"-"+a.slice(1)).replace(/:animating/g,U),[f,l]}(l.selector);a.currentQuerySelector=v.length?v+" "+G:G,an(a.collectedStyles,a.currentQuerySelector,new Map);const Me=Ae(this,_(l.animation),a);return a.currentQuery=null,a.currentQuerySelector=v,{type:11,selector:G,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Me,originalSelector:l.selector,options:xi(l.options)}}visitStagger(l,a){a.currentQuery||a.errors.push(function Te(){return new c.vHH(3013,!1)}());const v="full"===l.timings?{duration:0,delay:0,easing:"full"}:K(l.timings,a.errors,!0);return{type:12,animation:Ae(this,_(l.animation),a),timings:v,options:null}}}class Fr{constructor(l){this.errors=l,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function xi(f){return f?(f=be(f)).params&&(f.params=function rr(f){return f?be(f):null}(f.params)):f={},f}function or(f,l,a){return{duration:f,delay:l,easing:a}}function Ai(f,l,a,v,F,G,ge=null,Me=!1){return{type:1,element:f,keyframes:l,preStyleProps:a,postStyleProps:v,duration:F,delay:G,totalTime:F+G,easing:ge,subTimeline:Me}}class Zi{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,a){let v=this._map.get(l);v||this._map.set(l,v=[]),v.push(...a)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const Li=new RegExp(":enter","g"),ao=new RegExp(":leave","g");function dr(f,l,a,v,F,G=new Map,ge=new Map,Me,Qe,_t=[]){return(new hr).buildKeyframes(f,l,a,v,F,G,ge,Me,Qe,_t)}class hr{buildKeyframes(l,a,v,F,G,ge,Me,Qe,_t,jt=[]){_t=_t||new Zi;const Yt=new mi(l,a,_t,F,G,jt,[]);Yt.options=Qe;const Bn=Qe.delay?oe(Qe.delay):0;Yt.currentTimeline.delayNextStep(Bn),Yt.currentTimeline.setStyles([ge],null,Yt.errors,Qe),Ae(this,v,Yt);const On=Yt.timelines.filter(_n=>_n.containsAnimation());if(On.length&&Me.size){let _n;for(let E=On.length-1;E>=0;E--){const x=On[E];if(x.element===a){_n=x;break}}_n&&!_n.allowOnlyTimelineStyles()&&_n.setStyles([Me],null,Yt.errors,Qe)}return On.length?On.map(_n=>_n.buildKeyframes()):[Ai(a,[],[],[],0,Bn,"",!1)]}visitTrigger(l,a){}visitState(l,a){}visitTransition(l,a){}visitAnimateChild(l,a){const v=a.subInstructions.get(a.element);if(v){const F=a.createSubContext(l.options),G=a.currentTimeline.currentTime,ge=this._visitSubInstructions(v,F,F.options);G!=ge&&a.transformIntoNewTimeline(ge)}a.previousNode=l}visitAnimateRef(l,a){const v=a.createSubContext(l.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([l.options,l.animation.options],a,v),this.visitReference(l.animation,v),a.transformIntoNewTimeline(v.currentTimeline.currentTime),a.previousNode=l}_applyAnimationRefDelays(l,a,v){for(const F of l){const G=F?.delay;if(G){const ge="number"==typeof G?G:oe(Be(G,F?.params??{},a.errors));v.delayNextStep(ge)}}}_visitSubInstructions(l,a,v){let G=a.currentTimeline.currentTime;const ge=null!=v.duration?oe(v.duration):null,Me=null!=v.delay?oe(v.delay):null;return 0!==ge&&l.forEach(Qe=>{const _t=a.appendInstructionToTimeline(Qe,ge,Me);G=Math.max(G,_t.duration+_t.delay)}),G}visitReference(l,a){a.updateOptions(l.options,!0),Ae(this,l.animation,a),a.previousNode=l}visitSequence(l,a){const v=a.subContextCount;let F=a;const G=l.options;if(G&&(G.params||G.delay)&&(F=a.createSubContext(G),F.transformIntoNewTimeline(),null!=G.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=pi);const ge=oe(G.delay);F.delayNextStep(ge)}l.steps.length&&(l.steps.forEach(ge=>Ae(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>v&&F.transformIntoNewTimeline()),a.previousNode=l}visitGroup(l,a){const v=[];let F=a.currentTimeline.currentTime;const G=l.options&&l.options.delay?oe(l.options.delay):0;l.steps.forEach(ge=>{const Me=a.createSubContext(l.options);G&&Me.delayNextStep(G),Ae(this,ge,Me),F=Math.max(F,Me.currentTimeline.currentTime),v.push(Me.currentTimeline)}),v.forEach(ge=>a.currentTimeline.mergeTimelineCollectedStyles(ge)),a.transformIntoNewTimeline(F),a.previousNode=l}_visitTiming(l,a){if(l.dynamic){const v=l.strValue;return K(a.params?Be(v,a.params,a.errors):v,a.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,a){const v=a.currentAnimateTimings=this._visitTiming(l.timings,a),F=a.currentTimeline;v.delay&&(a.incrementTime(v.delay),F.snapshotCurrentStyles());const G=l.style;5==G.type?this.visitKeyframes(G,a):(a.incrementTime(v.duration),this.visitStyle(G,a),F.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=l}visitStyle(l,a){const v=a.currentTimeline,F=a.currentAnimateTimings;!F&&v.hasCurrentStyleProperties()&&v.forwardFrame();const G=F&&F.easing||l.easing;l.isEmptyStep?v.applyEmptyStep(G):v.setStyles(l.styles,G,a.errors,a.options),a.previousNode=l}visitKeyframes(l,a){const v=a.currentAnimateTimings,F=a.currentTimeline.duration,G=v.duration,Me=a.createSubContext().currentTimeline;Me.easing=v.easing,l.styles.forEach(Qe=>{Me.forwardTime((Qe.offset||0)*G),Me.setStyles(Qe.styles,Qe.easing,a.errors,a.options),Me.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(Me),a.transformIntoNewTimeline(F+G),a.previousNode=l}visitQuery(l,a){const v=a.currentTimeline.currentTime,F=l.options||{},G=F.delay?oe(F.delay):0;G&&(6===a.previousNode.type||0==v&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=pi);let ge=v;const Me=a.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!F.optional,a.errors);a.currentQueryTotal=Me.length;let Qe=null;Me.forEach((_t,jt)=>{a.currentQueryIndex=jt;const Yt=a.createSubContext(l.options,_t);G&&Yt.delayNextStep(G),_t===a.element&&(Qe=Yt.currentTimeline),Ae(this,l.animation,Yt),Yt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Yt.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(ge),Qe&&(a.currentTimeline.mergeTimelineCollectedStyles(Qe),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=l}visitStagger(l,a){const v=a.parentContext,F=a.currentTimeline,G=l.timings,ge=Math.abs(G.duration),Me=ge*(a.currentQueryTotal-1);let Qe=ge*a.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Qe=Me-Qe;break;case"full":Qe=v.currentStaggerTime}const jt=a.currentTimeline;Qe&&jt.delayNextStep(Qe);const Yt=jt.currentTime;Ae(this,l.animation,a),a.previousNode=l,v.currentStaggerTime=F.currentTime-Yt+(F.startTime-v.currentTimeline.startTime)}}const pi={};class mi{constructor(l,a,v,F,G,ge,Me,Qe){this._driver=l,this.element=a,this.subInstructions=v,this._enterClassName=F,this._leaveClassName=G,this.errors=ge,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Qe||new Rr(this._driver,a,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,a){if(!l)return;const v=l;let F=this.options;null!=v.duration&&(F.duration=oe(v.duration)),null!=v.delay&&(F.delay=oe(v.delay));const G=v.params;if(G){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(G).forEach(Me=>{(!a||!ge.hasOwnProperty(Me))&&(ge[Me]=Be(G[Me],ge,this.errors))})}}_copyOptions(){const l={};if(this.options){const a=this.options.params;if(a){const v=l.params={};Object.keys(a).forEach(F=>{v[F]=a[F]})}}return l}createSubContext(l=null,a,v){const F=a||this.element,G=new mi(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,v||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(l),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(l){return this.previousNode=pi,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,a,v){const F={duration:a??l.duration,delay:this.currentTimeline.currentTime+(v??0)+l.delay,easing:""},G=new gi(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,F,l.stretchStartingKeyframe);return this.timelines.push(G),F}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,a,v,F,G,ge){let Me=[];if(F&&Me.push(this.element),l.length>0){l=(l=l.replace(Li,"."+this._enterClassName)).replace(ao,"."+this._leaveClassName);let _t=this._driver.query(this.element,l,1!=v);0!==v&&(_t=v<0?_t.slice(_t.length+v,_t.length):_t.slice(0,v)),Me.push(..._t)}return!G&&0==Me.length&&ge.push(function ze(f){return new c.vHH(3014,!1)}()),Me}}class Rr{constructor(l,a,v,F){this._driver=l,this.element=a,this.startTime=v,this._elementTimelineStylesLookup=F,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(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,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(l){const a=1===this._keyframes.size&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+l),a&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,a){return this.applyStylesToKeyframe(),new Rr(this._driver,l,a||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(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,a){this._localTimelineStyles.set(l,a),this._globalTimelineStyles.set(l,a),this._styleSummary.set(l,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&this._previousKeyframe.set("easing",l);for(let[a,v]of this._globalTimelineStyles)this._backFill.set(a,v||q.l3),this._currentKeyframe.set(a,q.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,a,v,F){a&&this._previousKeyframe.set("easing",a);const G=F&&F.params||{},ge=function Qi(f,l){const a=new Map;let v;return f.forEach(F=>{if("*"===F){v=v||l.keys();for(let G of v)a.set(G,q.l3)}else Wt(F,a)}),a}(l,this._globalTimelineStyles);for(let[Me,Qe]of ge){const _t=Be(Qe,G,v);this._pendingStyles.set(Me,_t),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??q.l3),this._updateStyle(Me,_t)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((l,a)=>{this._currentKeyframe.set(a,l)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((l,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,l)}))}snapshotCurrentStyles(){for(let[l,a]of this._localTimelineStyles)this._pendingStyles.set(l,a),this._updateStyle(l,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let a in this._currentKeyframe)l.push(a);return l}mergeTimelineCollectedStyles(l){l._styleSummary.forEach((a,v)=>{const F=this._styleSummary.get(v);(!F||a.time>F.time)&&this._updateStyle(v,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,a=new Set,v=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Me,Qe)=>{const _t=Wt(Me,new Map,this._backFill);_t.forEach((jt,Yt)=>{jt===q.k1?l.add(Yt):jt===q.l3&&a.add(Yt)}),v||_t.set("offset",Qe/this.duration),F.push(_t)});const G=l.size?yt(l.values()):[],ge=a.size?yt(a.values()):[];if(v){const Me=F[0],Qe=new Map(Me);Me.set("offset",0),Qe.set("offset",1),F=[Me,Qe]}return Ai(this.element,F,G,ge,this.duration,this.startTime,this.easing,!1)}}class gi extends Rr{constructor(l,a,v,F,G,ge,Me=!1){super(l,a,ge.delay),this.keyframes=v,this.preStyleProps=F,this.postStyleProps=G,this._stretchStartingKeyframe=Me,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:a,duration:v,easing:F}=this.timings;if(this._stretchStartingKeyframe&&a){const G=[],ge=v+a,Me=a/ge,Qe=Wt(l[0]);Qe.set("offset",0),G.push(Qe);const _t=Wt(l[0]);_t.set("offset",Mi(Me)),G.push(_t);const jt=l.length-1;for(let Yt=1;Yt<=jt;Yt++){let Bn=Wt(l[Yt]);const On=Bn.get("offset");Bn.set("offset",Mi((a+On*v)/ge)),G.push(Bn)}v=ge,a=0,F="",l=G}return Ai(this.element,l,this.preStyleProps,this.postStyleProps,v,a,F,!0)}}function Mi(f,l=3){const a=Math.pow(10,l-1);return Math.round(f*a)/a}class xr{}const No=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 sr extends xr{normalizePropertyName(l,a){return fn(l)}normalizeStyleValue(l,a,v,F){let G="";const ge=v.toString().trim();if(No.has(a)&&0!==v&&"0"!==v)if("number"==typeof v)G="px";else{const Me=v.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&F.push(function Le(f,l){return new c.vHH(3005,!1)}())}return ge+G}}function kr(f,l,a,v,F,G,ge,Me,Qe,_t,jt,Yt,Bn){return{type:0,element:f,triggerName:l,isRemovalTransition:F,fromState:a,fromStyles:G,toState:v,toStyles:ge,timelines:Me,queriedElements:Qe,preStyleProps:_t,postStyleProps:jt,totalTime:Yt,errors:Bn}}const Yr={};class fr{constructor(l,a,v){this._triggerName=l,this.ast=a,this._stateStyles=v}match(l,a,v,F){return function Dr(f,l,a,v,F){return f.some(G=>G(l,a,v,F))}(this.ast.matchers,l,a,v,F)}buildStyles(l,a,v){let F=this._stateStyles.get("*");return void 0!==l&&(F=this._stateStyles.get(l?.toString())||F),F?F.buildStyles(a,v):new Map}build(l,a,v,F,G,ge,Me,Qe,_t,jt){const Yt=[],Bn=this.ast.options&&this.ast.options.params||Yr,_n=this.buildStyles(v,Me&&Me.params||Yr,Yt),E=Qe&&Qe.params||Yr,x=this.buildStyles(F,E,Yt),H=new Set,me=new Map,$e=new Map,Xe="void"===F,xt={params:lo(E,Bn),delay:this.ast.options?.delay},Kt=jt?[]:dr(l,a,this.ast.animation,G,ge,_n,x,xt,_t,Yt);let qt=0;if(Kt.forEach(Dn=>{qt=Math.max(Dn.duration+Dn.delay,qt)}),Yt.length)return kr(a,this._triggerName,v,F,Xe,_n,x,[],[],me,$e,qt,Yt);Kt.forEach(Dn=>{const vn=Dn.element,zr=an(me,vn,new Set);Dn.preStyleProps.forEach(Co=>zr.add(Co));const Di=an($e,vn,new Set);Dn.postStyleProps.forEach(Co=>Di.add(Co)),vn!==a&&H.add(vn)});const sn=yt(H.values());return kr(a,this._triggerName,v,F,Xe,_n,x,Kt,sn,me,$e,qt)}}function lo(f,l){const a=be(l);for(const v in f)f.hasOwnProperty(v)&&null!=f[v]&&(a[v]=f[v]);return a}class Nr{constructor(l,a,v){this.styles=l,this.defaultParams=a,this.normalizer=v}buildStyles(l,a){const v=new Map,F=be(this.defaultParams);return Object.keys(l).forEach(G=>{const ge=l[G];null!==ge&&(F[G]=ge)}),this.styles.styles.forEach(G=>{"string"!=typeof G&&G.forEach((ge,Me)=>{ge&&(ge=Be(ge,F,a));const Qe=this.normalizer.normalizePropertyName(Me,a);ge=this.normalizer.normalizeStyleValue(Me,Qe,ge,a),v.set(Me,ge)})}),v}}class Kr{constructor(l,a,v){this.name=l,this.ast=a,this._normalizer=v,this.transitionFactories=[],this.states=new Map,a.states.forEach(F=>{this.states.set(F.name,new Nr(F.style,F.options&&F.options.params||{},v))}),Oi(this.states,"true","1"),Oi(this.states,"false","0"),a.transitions.forEach(F=>{this.transitionFactories.push(new fr(l,F,this.states))}),this.fallbackTransition=function Ii(f,l,a){return new fr(f,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Me)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,a,v,F){return this.transitionFactories.find(ge=>ge.match(l,a,v,F))||null}matchStyles(l,a,v){return this.fallbackTransition.buildStyles(l,a,v)}}function Oi(f,l,a){f.has(l)?f.has(a)||f.set(a,f.get(l)):f.has(a)&&f.set(l,f.get(a))}const Bo=new Zi;class Pe{constructor(l,a,v){this.bodyNode=l,this._driver=a,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(l,a){const v=[],G=fi(this._driver,a,v,[]);if(v.length)throw function ct(f){return new c.vHH(3503,!1)}();this._animations.set(l,G)}_buildPlayer(l,a,v){const F=l.element,G=En(0,this._normalizer,0,l.keyframes,a,v);return this._driver.animate(F,G,l.duration,l.delay,l.easing,[],!0)}create(l,a,v={}){const F=[],G=this._animations.get(l);let ge;const Me=new Map;if(G?(ge=dr(this._driver,a,G,Tn,xn,new Map,new Map,v,Bo,F),ge.forEach(jt=>{const Yt=an(Me,jt.element,new Map);jt.postStyleProps.forEach(Bn=>Yt.set(Bn,null))})):(F.push(function gt(){return new c.vHH(3300,!1)}()),ge=[]),F.length)throw function bt(f){return new c.vHH(3504,!1)}();Me.forEach((jt,Yt)=>{jt.forEach((Bn,On)=>{jt.set(On,this._driver.computeStyle(Yt,On,q.l3))})});const _t=en(ge.map(jt=>{const Yt=Me.get(jt.element);return this._buildPlayer(jt,new Map,Yt)}));return this._playersById.set(l,_t),_t.onDestroy(()=>this.destroy(l)),this.players.push(_t),_t}destroy(l){const a=this._getPlayer(l);a.destroy(),this._playersById.delete(l);const v=this.players.indexOf(a);v>=0&&this.players.splice(v,1)}_getPlayer(l){const a=this._playersById.get(l);if(!a)throw function wt(f){return new c.vHH(3301,!1)}();return a}listen(l,a,v,F){const G=Fn(a,"","","");return In(this._getPlayer(l),v,G,F),()=>{}}command(l,a,v,F){if("register"==v)return void this.register(l,F[0]);if("create"==v)return void this.create(l,a,F[0]||{});const G=this._getPlayer(l);switch(v){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(l)}}}const Fe="ng-animate-queued",dt="ng-animate-disabled",kn=[],bn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ci={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ri="__ng_removed";class hi{get params(){return this.options.params}constructor(l,a=""){this.namespaceId=a;const v=l&&l.hasOwnProperty("value");if(this.value=function Si(f){return f??null}(v?l.value:l),v){const G=be(l);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}absorbOptions(l){const a=l.params;if(a){const v=this.options.params;Object.keys(a).forEach(F=>{null==v[F]&&(v[F]=a[F])})}}}const Hi="void",ji=new hi(Hi);class Zr{constructor(l,a,v){this.id=l,this.hostElement=a,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,Hn(a,this._hostClassName)}listen(l,a,v,F){if(!this._triggers.has(a))throw function Ot(f,l){return new c.vHH(3302,!1)}();if(null==v||0==v.length)throw function ve(f){return new c.vHH(3303,!1)}();if(!function ti(f){return"start"==f||"done"==f}(v))throw function qe(f,l){return new c.vHH(3400,!1)}();const G=an(this._elementListeners,l,[]),ge={name:a,phase:v,callback:F};G.push(ge);const Me=an(this._engine.statesByElement,l,new Map);return Me.has(a)||(Hn(l,Oe),Hn(l,Oe+"-"+a),Me.set(a,ji)),()=>{this._engine.afterFlush(()=>{const Qe=G.indexOf(ge);Qe>=0&&G.splice(Qe,1),this._triggers.has(a)||Me.delete(a)})}}register(l,a){return!this._triggers.has(l)&&(this._triggers.set(l,a),!0)}_getTrigger(l){const a=this._triggers.get(l);if(!a)throw function L(f){return new c.vHH(3401,!1)}();return a}trigger(l,a,v,F=!0){const G=this._getTrigger(a),ge=new Xi(this.id,a,l);let Me=this._engine.statesByElement.get(l);Me||(Hn(l,Oe),Hn(l,Oe+"-"+a),this._engine.statesByElement.set(l,Me=new Map));let Qe=Me.get(a);const _t=new hi(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Qe&&_t.absorbOptions(Qe.options),Me.set(a,_t),Qe||(Qe=ji),_t.value!==Hi&&Qe.value===_t.value){if(!function wo(f,l){const a=Object.keys(f),v=Object.keys(l);if(a.length!=v.length)return!1;for(let F=0;F<a.length;F++){const G=a[F];if(!l.hasOwnProperty(G)||f[G]!==l[G])return!1}return!0}(Qe.params,_t.params)){const E=[],x=G.matchStyles(Qe.value,Qe.params,E),H=G.matchStyles(_t.value,_t.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{p(l,x),k(l,H)})}return}const Bn=an(this._engine.playersByElement,l,[]);Bn.forEach(E=>{E.namespaceId==this.id&&E.triggerName==a&&E.queued&&E.destroy()});let On=G.matchTransition(Qe.value,_t.value,l,_t.params),_n=!1;if(!On){if(!F)return;On=G.fallbackTransition,_n=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:a,transition:On,fromState:Qe,toState:_t,player:ge,isFallbackTransition:_n}),_n||(Hn(l,Fe),ge.onStart(()=>{mr(l,Fe)})),ge.onDone(()=>{let E=this.players.indexOf(ge);E>=0&&this.players.splice(E,1);const x=this._engine.playersByElement.get(l);if(x){let H=x.indexOf(ge);H>=0&&x.splice(H,1)}}),this.players.push(ge),Bn.push(ge),ge}deregister(l){this._triggers.delete(l),this._engine.statesByElement.forEach(a=>a.delete(l)),this._elementListeners.forEach((a,v)=>{this._elementListeners.set(v,a.filter(F=>F.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const a=this._engine.playersByElement.get(l);a&&(a.forEach(v=>v.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,a){const v=this._engine.driver.query(l,J,!0);v.forEach(F=>{if(F[ri])return;const G=this._engine.fetchNamespacesByElement(F);G.size?G.forEach(ge=>ge.triggerLeaveAnimation(F,a,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(l,a,v,F){const G=this._engine.statesByElement.get(l),ge=new Map;if(G){const Me=[];if(G.forEach((Qe,_t)=>{if(ge.set(_t,Qe.value),this._triggers.has(_t)){const jt=this.trigger(l,_t,Hi,F);jt&&Me.push(jt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,l,!0,a,ge),v&&en(Me).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const a=this._elementListeners.get(l),v=this._engine.statesByElement.get(l);if(a&&v){const F=new Set;a.forEach(G=>{const ge=G.name;if(F.has(ge))return;F.add(ge);const Qe=this._triggers.get(ge).fallbackTransition,_t=v.get(ge)||ji,jt=new hi(Hi),Yt=new Xi(this.id,ge,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:ge,transition:Qe,fromState:_t,toState:jt,player:Yt,isFallbackTransition:!0})})}}removeNode(l,a){const v=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,a),this.triggerLeaveAnimation(l,a,!0))return;let F=!1;if(v.totalAnimations){const G=v.players.length?v.playersByQueriedElement.get(l):[];if(G&&G.length)F=!0;else{let ge=l;for(;ge=ge.parentNode;)if(v.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(l),F)v.markElementAsRemoved(this.id,l,!1,a);else{const G=l[ri];(!G||G===bn)&&(v.afterFlush(()=>this.clearElementCache(l)),v.destroyInnerAnimations(l),v._onRemovalComplete(l,a))}}insertNode(l,a){Hn(l,this._hostClassName)}drainQueuedTransitions(l){const a=[];return this._queue.forEach(v=>{const F=v.player;if(F.destroyed)return;const G=v.element,ge=this._elementListeners.get(G);ge&&ge.forEach(Me=>{if(Me.name==v.triggerName){const Qe=Fn(G,v.triggerName,v.fromState.value,v.toState.value);Qe._data=l,In(v.player,Me.phase,Qe,Me.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):a.push(v)}),this._queue=[],a.sort((v,F)=>{const G=v.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==G||0==ge?G-ge:this._engine.driver.containsElement(v.element,F.element)?1:-1})}destroy(l){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}elementContainsData(l){let a=!1;return this._elementListeners.has(l)&&(a=!0),a=!!this._queue.find(v=>v.element===l)||a,a}}class Ir{_onRemovalComplete(l,a){this.onRemovalComplete(l,a)}constructor(l,a,v){this.bodyNode=l,this.driver=a,this._normalizer=v,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=(F,G)=>{}}get queuedPlayers(){const l=[];return this._namespaceList.forEach(a=>{a.players.forEach(v=>{v.queued&&l.push(v)})}),l}createNamespace(l,a){const v=new Zr(l,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(v,a):(this.newHostElements.set(a,v),this.collectEnterElement(a)),this._namespaceLookup[l]=v}_balanceNamespaceList(l,a){const v=this._namespaceList,F=this.namespacesByHostElement;if(v.length-1>=0){let ge=!1,Me=this.driver.getParentElement(a);for(;Me;){const Qe=F.get(Me);if(Qe){const _t=v.indexOf(Qe);v.splice(_t+1,0,l),ge=!0;break}Me=this.driver.getParentElement(Me)}ge||v.unshift(l)}else v.push(l);return F.set(a,l),l}register(l,a){let v=this._namespaceLookup[l];return v||(v=this.createNamespace(l,a)),v}registerTrigger(l,a,v){let F=this._namespaceLookup[l];F&&F.register(a,v)&&this.totalAnimations++}destroy(l,a){if(!l)return;const v=this._fetchNamespace(l);this.afterFlush(()=>{this.namespacesByHostElement.delete(v.hostElement),delete this._namespaceLookup[l];const F=this._namespaceList.indexOf(v);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>v.destroy(a))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const a=new Set,v=this.statesByElement.get(l);if(v)for(let F of v.values())if(F.namespaceId){const G=this._fetchNamespace(F.namespaceId);G&&a.add(G)}return a}trigger(l,a,v,F){if(Jn(a)){const G=this._fetchNamespace(l);if(G)return G.trigger(a,v,F),!0}return!1}insertNode(l,a,v,F){if(!Jn(a))return;const G=a[ri];if(G&&G.setForRemoval){G.setForRemoval=!1,G.setForMove=!0;const ge=this.collectedLeaveElements.indexOf(a);ge>=0&&this.collectedLeaveElements.splice(ge,1)}if(l){const ge=this._fetchNamespace(l);ge&&ge.insertNode(a,v)}F&&this.collectEnterElement(a)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,a){a?this.disabledNodes.has(l)||(this.disabledNodes.add(l),Hn(l,dt)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),mr(l,dt))}removeNode(l,a,v,F){if(Jn(a)){const G=l?this._fetchNamespace(l):null;if(G?G.removeNode(a,F):this.markElementAsRemoved(l,a,!1,F),v){const ge=this.namespacesByHostElement.get(a);ge&&ge.id!==l&&ge.removeNode(a,F)}}else this._onRemovalComplete(a,F)}markElementAsRemoved(l,a,v,F,G){this.collectedLeaveElements.push(a),a[ri]={namespaceId:l,setForRemoval:F,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:G}}listen(l,a,v,F,G){return Jn(a)?this._fetchNamespace(l).listen(a,v,F,G):()=>{}}_buildInstruction(l,a,v,F,G){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,v,F,l.fromState.options,l.toState.options,a,G)}destroyInnerAnimations(l){let a=this.driver.query(l,J,!0);a.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(l,U,!0),a.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(l){const a=this.playersByElement.get(l);a&&a.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(l){const a=this.playersByQueriedElement.get(l);a&&a.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return en(this.players).onDone(()=>l());l()})}processLeaveNode(l){const a=l[ri];if(a&&a.setForRemoval){if(l[ri]=bn,a.namespaceId){this.destroyInnerAnimations(l);const v=this._fetchNamespace(a.namespaceId);v&&v.clearElementCache(l)}this._onRemovalComplete(l,a.setForRemoval)}l.classList?.contains(dt)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(l=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,F)=>this._balanceNamespaceList(v,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;v<this.collectedEnterElements.length;v++)Hn(this.collectedEnterElements[v],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const v=[];try{a=this._flushAnimations(v,l)}finally{for(let F=0;F<v.length;F++)v[F]()}}else for(let v=0;v<this.collectedLeaveElements.length;v++)this.processLeaveNode(this.collectedLeaveElements[v]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(v=>v()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],a.length?en(a).onDone(()=>{v.forEach(F=>F())}):v.forEach(F=>F())}}reportError(l){throw function te(f){return new c.vHH(3402,!1)}()}_flushAnimations(l,a){const v=new Zi,F=[],G=new Map,ge=[],Me=new Map,Qe=new Map,_t=new Map,jt=new Set;this.disabledNodes.forEach(Qt=>{jt.add(Qt);const dn=this.driver.query(Qt,".ng-animate-queued",!0);for(let yn=0;yn<dn.length;yn++)jt.add(dn[yn])});const Yt=this.bodyNode,Bn=Array.from(this.statesByElement.keys()),On=pr(Bn,this.collectedEnterElements),_n=new Map;let E=0;On.forEach((Qt,dn)=>{const yn=Tn+E++;_n.set(dn,yn),Qt.forEach(Qn=>Hn(Qn,yn))});const x=[],H=new Set,me=new Set;for(let Qt=0;Qt<this.collectedLeaveElements.length;Qt++){const dn=this.collectedLeaveElements[Qt],yn=dn[ri];yn&&yn.setForRemoval&&(x.push(dn),H.add(dn),yn.hasAnimation?this.driver.query(dn,".ng-star-inserted",!0).forEach(Qn=>H.add(Qn)):me.add(dn))}const $e=new Map,Xe=pr(Bn,Array.from(H));Xe.forEach((Qt,dn)=>{const yn=xn+E++;$e.set(dn,yn),Qt.forEach(Qn=>Hn(Qn,yn))}),l.push(()=>{On.forEach((Qt,dn)=>{const yn=_n.get(dn);Qt.forEach(Qn=>mr(Qn,yn))}),Xe.forEach((Qt,dn)=>{const yn=$e.get(dn);Qt.forEach(Qn=>mr(Qn,yn))}),x.forEach(Qt=>{this.processLeaveNode(Qt)})});const xt=[],Kt=[];for(let Qt=this._namespaceList.length-1;Qt>=0;Qt--)this._namespaceList[Qt].drainQueuedTransitions(a).forEach(yn=>{const Qn=yn.player,cr=yn.element;if(xt.push(Qn),this.collectedEnterElements.length){const ur=cr[ri];if(ur&&ur.setForMove){if(ur.previousTriggersValues&&ur.previousTriggersValues.has(yn.triggerName)){const Ks=ur.previousTriggersValues.get(yn.triggerName),Ro=this.statesByElement.get(yn.element);if(Ro&&Ro.has(yn.triggerName)){const Zs=Ro.get(yn.triggerName);Zs.value=Ks,Ro.set(yn.triggerName,Zs)}}return void Qn.destroy()}}const Fo=!Yt||!this.driver.containsElement(Yt,cr),Eo=$e.get(cr),rs=_n.get(cr),ki=this._buildInstruction(yn,v,rs,Eo,Fo);if(ki.errors&&ki.errors.length)return void Kt.push(ki);if(Fo)return Qn.onStart(()=>p(cr,ki.fromStyles)),Qn.onDestroy(()=>k(cr,ki.toStyles)),void F.push(Qn);if(yn.isFallbackTransition)return Qn.onStart(()=>p(cr,ki.fromStyles)),Qn.onDestroy(()=>k(cr,ki.toStyles)),void F.push(Qn);const hl=[];ki.timelines.forEach(ur=>{ur.stretchStartingKeyframe=!0,this.disabledNodes.has(ur.element)||hl.push(ur)}),ki.timelines=hl,v.append(cr,ki.timelines),ge.push({instruction:ki,player:Qn,element:cr}),ki.queriedElements.forEach(ur=>an(Me,ur,[]).push(Qn)),ki.preStyleProps.forEach((ur,Ks)=>{if(ur.size){let Ro=Qe.get(Ks);Ro||Qe.set(Ks,Ro=new Set),ur.forEach((Zs,fl)=>Ro.add(fl))}}),ki.postStyleProps.forEach((ur,Ks)=>{let Ro=_t.get(Ks);Ro||_t.set(Ks,Ro=new Set),ur.forEach((Zs,fl)=>Ro.add(fl))})});if(Kt.length){const Qt=[];Kt.forEach(dn=>{Qt.push(function ut(f,l){return new c.vHH(3505,!1)}())}),xt.forEach(dn=>dn.destroy()),this.reportError(Qt)}const qt=new Map,sn=new Map;ge.forEach(Qt=>{const dn=Qt.element;v.has(dn)&&(sn.set(dn,dn),this._beforeAnimationBuild(Qt.player.namespaceId,Qt.instruction,qt))}),F.forEach(Qt=>{const dn=Qt.element;this._getPreviousPlayers(dn,!1,Qt.namespaceId,Qt.triggerName,null).forEach(Qn=>{an(qt,dn,[]).push(Qn),Qn.destroy()})});const Dn=x.filter(Qt=>ho(Qt,Qe,_t)),vn=new Map;oi(vn,this.driver,me,_t,q.l3).forEach(Qt=>{ho(Qt,Qe,_t)&&Dn.push(Qt)});const Di=new Map;On.forEach((Qt,dn)=>{oi(Di,this.driver,new Set(Qt),Qe,q.k1)}),Dn.forEach(Qt=>{const dn=vn.get(Qt),yn=Di.get(Qt);vn.set(Qt,new Map([...Array.from(dn?.entries()??[]),...Array.from(yn?.entries()??[])]))});const Co=[],ia=[],bs={};ge.forEach(Qt=>{const{element:dn,player:yn,instruction:Qn}=Qt;if(v.has(dn)){if(jt.has(dn))return yn.onDestroy(()=>k(dn,Qn.toStyles)),yn.disabled=!0,yn.overrideTotalTime(Qn.totalTime),void F.push(yn);let cr=bs;if(sn.size>1){let Eo=dn;const rs=[];for(;Eo=Eo.parentNode;){const ki=sn.get(Eo);if(ki){cr=ki;break}rs.push(Eo)}rs.forEach(ki=>sn.set(ki,cr))}const Fo=this._buildAnimation(yn.namespaceId,Qn,qt,G,Di,vn);if(yn.setRealPlayer(Fo),cr===bs)Co.push(yn);else{const Eo=this.playersByElement.get(cr);Eo&&Eo.length&&(yn.parentPlayer=en(Eo)),F.push(yn)}}else p(dn,Qn.fromStyles),yn.onDestroy(()=>k(dn,Qn.toStyles)),ia.push(yn),jt.has(dn)&&F.push(yn)}),ia.forEach(Qt=>{const dn=G.get(Qt.element);if(dn&&dn.length){const yn=en(dn);Qt.setRealPlayer(yn)}}),F.forEach(Qt=>{Qt.parentPlayer?Qt.syncPlayerEvents(Qt.parentPlayer):Qt.destroy()});for(let Qt=0;Qt<x.length;Qt++){const dn=x[Qt],yn=dn[ri];if(mr(dn,xn),yn&&yn.hasAnimation)continue;let Qn=[];if(Me.size){let Fo=Me.get(dn);Fo&&Fo.length&&Qn.push(...Fo);let Eo=this.driver.query(dn,U,!0);for(let rs=0;rs<Eo.length;rs++){let ki=Me.get(Eo[rs]);ki&&ki.length&&Qn.push(...ki)}}const cr=Qn.filter(Fo=>!Fo.destroyed);cr.length?uo(this,dn,cr):this.processLeaveNode(dn)}return x.length=0,Co.forEach(Qt=>{this.players.push(Qt),Qt.onDone(()=>{Qt.destroy();const dn=this.players.indexOf(Qt);this.players.splice(dn,1)}),Qt.play()}),Co}elementContainsData(l,a){let v=!1;const F=a[ri];return F&&F.setForRemoval&&(v=!0),this.playersByElement.has(a)&&(v=!0),this.playersByQueriedElement.has(a)&&(v=!0),this.statesByElement.has(a)&&(v=!0),this._fetchNamespace(l).elementContainsData(a)||v}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,a,v,F,G){let ge=[];if(a){const Me=this.playersByQueriedElement.get(l);Me&&(ge=Me)}else{const Me=this.playersByElement.get(l);if(Me){const Qe=!G||G==Hi;Me.forEach(_t=>{_t.queued||!Qe&&_t.triggerName!=F||ge.push(_t)})}}return(v||F)&&(ge=ge.filter(Me=>!(v&&v!=Me.namespaceId||F&&F!=Me.triggerName))),ge}_beforeAnimationBuild(l,a,v){const G=a.element,ge=a.isRemovalTransition?void 0:l,Me=a.isRemovalTransition?void 0:a.triggerName;for(const Qe of a.timelines){const _t=Qe.element,jt=_t!==G,Yt=an(v,_t,[]);this._getPreviousPlayers(_t,jt,ge,Me,a.toState).forEach(On=>{const _n=On.getRealPlayer();_n.beforeDestroy&&_n.beforeDestroy(),On.destroy(),Yt.push(On)})}p(G,a.fromStyles)}_buildAnimation(l,a,v,F,G,ge){const Me=a.triggerName,Qe=a.element,_t=[],jt=new Set,Yt=new Set,Bn=a.timelines.map(_n=>{const E=_n.element;jt.add(E);const x=E[ri];if(x&&x.removedBeforeQueried)return new q.ZN(_n.duration,_n.delay);const H=E!==Qe,me=function gr(f){const l=[];return _i(f,l),l}((v.get(E)||kn).map(qt=>qt.getRealPlayer())).filter(qt=>!!qt.element&&qt.element===E),$e=G.get(E),Xe=ge.get(E),xt=En(0,this._normalizer,0,_n.keyframes,$e,Xe),Kt=this._buildPlayer(_n,xt,me);if(_n.subTimeline&&F&&Yt.add(E),H){const qt=new Xi(l,Me,E);qt.setRealPlayer(Kt),_t.push(qt)}return Kt});_t.forEach(_n=>{an(this.playersByQueriedElement,_n.element,[]).push(_n),_n.onDone(()=>function Bi(f,l,a){let v=f.get(l);if(v){if(v.length){const F=v.indexOf(a);v.splice(F,1)}0==v.length&&f.delete(l)}return v}(this.playersByQueriedElement,_n.element,_n))}),jt.forEach(_n=>Hn(_n,V));const On=en(Bn);return On.onDestroy(()=>{jt.forEach(_n=>mr(_n,V)),k(Qe,a.toStyles)}),Yt.forEach(_n=>{an(F,_n,[]).push(On)}),On}_buildPlayer(l,a,v){return a.length>0?this.driver.animate(l.element,a,l.duration,l.delay,l.easing,v):new q.ZN(l.duration,l.delay)}}class Xi{constructor(l,a,v){this.namespaceId=l,this.triggerName=a,this.element=v,this._player=new q.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,this._queuedCallbacks.forEach((a,v)=>{a.forEach(F=>In(l,v,void 0,F))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const a=this._player;a.triggerCallback&&l.onStart(()=>a.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,a){an(this._queuedCallbacks,l,[]).push(a)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}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(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const a=this._player;a.triggerCallback&&a.triggerCallback(l)}}function Jn(f){return f&&1===f.nodeType}function Un(f,l){const a=f.style.display;return f.style.display=l??"none",a}function oi(f,l,a,v,F){const G=[];a.forEach(Qe=>G.push(Un(Qe)));const ge=[];v.forEach((Qe,_t)=>{const jt=new Map;Qe.forEach(Yt=>{const Bn=l.computeStyle(_t,Yt,F);jt.set(Yt,Bn),(!Bn||0==Bn.length)&&(_t[ri]=Ci,ge.push(_t))}),f.set(_t,jt)});let Me=0;return a.forEach(Qe=>Un(Qe,G[Me++])),ge}function pr(f,l){const a=new Map;if(f.forEach(Me=>a.set(Me,[])),0==l.length)return a;const F=new Set(l),G=new Map;function ge(Me){if(!Me)return 1;let Qe=G.get(Me);if(Qe)return Qe;const _t=Me.parentNode;return Qe=a.has(_t)?_t:F.has(_t)?1:ge(_t),G.set(Me,Qe),Qe}return l.forEach(Me=>{const Qe=ge(Me);1!==Qe&&a.get(Qe).push(Me)}),a}function Hn(f,l){f.classList?.add(l)}function mr(f,l){f.classList?.remove(l)}function uo(f,l,a){en(a).onDone(()=>f.processLeaveNode(l))}function _i(f,l){for(let a=0;a<f.length;a++){const v=f[a];v instanceof q.ZE?_i(v.players,l):l.push(v)}}function ho(f,l,a){const v=a.get(f);if(!v)return!1;let F=l.get(f);return F?v.forEach(G=>F.add(G)):l.set(f,v),a.delete(f),!0}class wr{constructor(l,a,v){this.bodyNode=l,this._driver=a,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(F,G)=>{},this._transitionEngine=new Ir(l,a,v),this._timelineEngine=new Pe(l,a,v),this._transitionEngine.onRemovalComplete=(F,G)=>this.onRemovalComplete(F,G)}registerTrigger(l,a,v,F,G){const ge=l+"-"+F;let Me=this._triggerCache[ge];if(!Me){const Qe=[],jt=fi(this._driver,G,Qe,[]);if(Qe.length)throw function We(f,l){return new c.vHH(3404,!1)}();Me=function co(f,l,a){return new Kr(f,l,a)}(F,jt,this._normalizer),this._triggerCache[ge]=Me}this._transitionEngine.registerTrigger(a,F,Me)}register(l,a){this._transitionEngine.register(l,a)}destroy(l,a){this._transitionEngine.destroy(l,a)}onInsert(l,a,v,F){this._transitionEngine.insertNode(l,a,v,F)}onRemove(l,a,v,F){this._transitionEngine.removeNode(l,a,F||!1,v)}disableAnimations(l,a){this._transitionEngine.markElementAsDisabled(l,a)}process(l,a,v,F){if("@"==v.charAt(0)){const[G,ge]=et(v);this._timelineEngine.command(G,a,ge,F)}else this._transitionEngine.trigger(l,a,v,F)}listen(l,a,v,F,G){if("@"==v.charAt(0)){const[ge,Me]=et(v);return this._timelineEngine.listen(ge,a,Me,G)}return this._transitionEngine.listen(l,a,v,F,G)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let fo=(()=>{class f{constructor(a,v,F){this._element=a,this._startStyles=v,this._endStyles=F,this._state=0;let G=f.initialStylesByElement.get(a);G||f.initialStylesByElement.set(a,G=new Map),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&k(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(k(this._element,this._initialStyles),this._endStyles&&(k(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(f.initialStylesByElement.delete(this._element),this._startStyles&&(p(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(p(this._element,this._endStyles),this._endStyles=null),k(this._element,this._initialStyles),this._state=3)}}return f.initialStylesByElement=new WeakMap,f})();function Or(f){let l=null;return f.forEach((a,v)=>{(function gn(f){return"display"===f||"position"===f})(v)&&(l=l||new Map,l.set(v,a))}),l}class Ar{constructor(l,a,v,F){this.element=l,this.keyframes=a,this.options=v,this._specialStyles=F,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=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(l){const a=[];return l.forEach(v=>{a.push(Object.fromEntries(v))}),a}_triggerWebAnimation(l,a,v){return l.animate(this._convertKeyframesToObject(a),v)}onStart(l){this._originalOnStartFns.push(l),this._onStartFns.push(l)}onDone(l){this._originalOnDoneFns.push(l),this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),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(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,F)=>{"offset"!==F&&l.set(F,this._finished?v:pt(this.element,F))}),this.currentSnapshot=l}triggerCallback(l){const a="start"===l?this._onStartFns:this._onDoneFns;a.forEach(v=>v()),a.length=0}}class Ss{validateStyleProperty(l){return!0}validateAnimatableStyleProperty(l){return!0}matchesElement(l,a){return!1}containsElement(l,a){return fe(l,a)}getParentElement(l){return rt(l)}query(l,a,v){return Ye(l,a,v)}computeStyle(l,a,v){return window.getComputedStyle(l)[a]}animate(l,a,v,F,G,ge=[]){const Qe={duration:v,delay:F,fill:0==F?"both":"forwards"};G&&(Qe.easing=G);const _t=new Map,jt=ge.filter(On=>On instanceof Ar);(function ft(f,l){return 0===f||0===l})(v,F)&&jt.forEach(On=>{On.currentSnapshot.forEach((_n,E)=>_t.set(E,_n))});let Yt=function xe(f){return f.length?f[0]instanceof Map?f:f.map(l=>Je(l)):[]}(a).map(On=>Wt(On));Yt=function St(f,l,a){if(a.size&&l.length){let v=l[0],F=[];if(a.forEach((G,ge)=>{v.has(ge)||F.push(ge),v.set(ge,G)}),F.length)for(let G=1;G<l.length;G++){let ge=l[G];F.forEach(Me=>ge.set(Me,pt(f,Me)))}}return l}(l,Yt,_t);const Bn=function $i(f,l){let a=null,v=null;return Array.isArray(l)&&l.length?(a=Or(l[0]),l.length>1&&(v=Or(l[l.length-1]))):l instanceof Map&&(a=Or(l)),a||v?new fo(f,a,v):null}(l,Yt);return new Ar(l,Yt,Qe,Bn)}}let Vo=(()=>{class f extends q._j{constructor(a,v){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(v.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(a){const v=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(a)?(0,q.vP)(a):a;return Ho(this._renderer,null,v,"register",[F]),new cs(v,this._renderer)}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(c.FYo),c.LFG(X.K0))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class cs extends q.LC{constructor(l,a){super(),this._id=l,this._renderer=a}create(l,a){return new Uo(this._id,l,a||{},this._renderer)}}class Uo{constructor(l,a,v,F){this.id=l,this.element=a,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(l,a){return this._renderer.listen(this.element,`@@${this.id}:${l}`,a)}_command(l,...a){return Ho(this._renderer,this.element,this.id,l,a)}onDone(l){this._listen("done",l)}onStart(l){this._listen("start",l)}onDestroy(l){this._listen("destroy",l)}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(l){this._command("setPosition",l)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Ho(f,l,a,v,F){return f.setProperty(l,`@@${a}:${v}`,F)}const Qo="@.disabled";let D=(()=>{class f{constructor(a,v,F){this.delegate=a,this.engine=v,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),v.onRemovalComplete=(G,ge)=>{const Me=ge?.parentNode(G);Me&&ge.removeChild(Me,G)}}createRenderer(a,v){const G=this.delegate.createRenderer(a,v);if(!(a&&v&&v.data&&v.data.animation)){let jt=this._rendererCache.get(G);return jt||(jt=new M("",G,this.engine,()=>this._rendererCache.delete(G)),this._rendererCache.set(G,jt)),jt}const ge=v.id,Me=v.id+"-"+this._currentId;this._currentId++,this.engine.register(Me,a);const Qe=jt=>{Array.isArray(jt)?jt.forEach(Qe):this.engine.registerTrigger(ge,Me,a,jt.name,jt)};return v.data.animation.forEach(Qe),new S(this,Me,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,v,F){a>=0&&a<this._microtaskId?this._zone.run(()=>v(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ge,Me]=G;ge(Me)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([v,F]))}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 f.\u0275fac=function(a){return new(a||f)(c.LFG(c.FYo),c.LFG(wr),c.LFG(c.R0b))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class M{constructor(l,a,v,F){this.namespaceId=l,this.delegate=a,this.engine=v,this._onDestroy=F,this.destroyNode=this.delegate.destroyNode?G=>a.destroyNode(G):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(l,a){return this.delegate.createElement(l,a)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,a){this.delegate.appendChild(l,a),this.engine.onInsert(this.namespaceId,a,l,!1)}insertBefore(l,a,v,F=!0){this.delegate.insertBefore(l,a,v),this.engine.onInsert(this.namespaceId,a,l,F)}removeChild(l,a,v){this.engine.onRemove(this.namespaceId,a,this.delegate,v)}selectRootElement(l,a){return this.delegate.selectRootElement(l,a)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,a,v,F){this.delegate.setAttribute(l,a,v,F)}removeAttribute(l,a,v){this.delegate.removeAttribute(l,a,v)}addClass(l,a){this.delegate.addClass(l,a)}removeClass(l,a){this.delegate.removeClass(l,a)}setStyle(l,a,v,F){this.delegate.setStyle(l,a,v,F)}removeStyle(l,a,v){this.delegate.removeStyle(l,a,v)}setProperty(l,a,v){"@"==a.charAt(0)&&a==Qo?this.disableAnimations(l,!!v):this.delegate.setProperty(l,a,v)}setValue(l,a){this.delegate.setValue(l,a)}listen(l,a,v){return this.delegate.listen(l,a,v)}disableAnimations(l,a){this.engine.disableAnimations(l,a)}}class S extends M{constructor(l,a,v,F,G){super(a,v,F,G),this.factory=l,this.namespaceId=a}setProperty(l,a,v){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Qo?this.disableAnimations(l,v=void 0===v||!!v):this.engine.process(this.namespaceId,l,a.slice(1),v):this.delegate.setProperty(l,a,v)}listen(l,a,v){if("@"==a.charAt(0)){const F=function Z(f){switch(f){case"body":return document.body;case"document":return document;case"window":return window;default:return f}}(l);let G=a.slice(1),ge="";return"@"!=G.charAt(0)&&([G,ge]=function ot(f){const l=f.indexOf(".");return[f.substring(0,l),f.slice(l+1)]}(G)),this.engine.listen(this.namespaceId,F,G,ge,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,v,Me)})}return this.delegate.listen(l,a,v)}}const qi=[{provide:q._j,useClass:Vo},{provide:xr,useFactory:function Yn(){return new sr}},{provide:wr,useClass:(()=>{class f extends wr{constructor(a,v,F,G){super(a.body,v,F)}ngOnDestroy(){this.flush()}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(X.K0),c.LFG(ln),c.LFG(xr),c.LFG(c.z2F))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})()},{provide:c.FYo,useFactory:function si(f,l,a){return new D(f,l,a)},deps:[r.se,wr,c.R0b]}],_r=[{provide:ln,useFactory:()=>new Ss},{provide:c.QbO,useValue:"BrowserAnimations"},...qi],Lr=[{provide:ln,useClass:kt},{provide:c.QbO,useValue:"NoopAnimations"},...qi];let mo=(()=>{class f{static withConfig(a){return{ngModule:f,providers:a.disableAnimations?Lr:_r}}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({providers:_r,imports:[r.b2]}),f})();var zi=g(3893),vr=g(7579),yr=g(2722),Mo=g(6985),Qr=g(5412),Ts=g(4405);class So{constructor(l){this.dialogRef=l,this.config=new Mo.O,this.config.title="There is a new update available",this.config.hideMoreButton=!0}onOk(){document.location.reload()}}So.\u0275fac=function(l){return new(l||So)(c.Y36(Qr.so))},So.\u0275cmp=c.Xpm({type:So,selectors:[["app-modal-confirm-update"]],decls:5,vars:1,consts:[[3,"config","onOk","onCancel"],[1,"row","p-3"]],template:function(l,a){1&l&&(c.TgZ(0,"modal-material",0),c.NdJ("onOk",function(){return a.onOk()})("onCancel",function(){return a.dialogRef.close()}),c.TgZ(1,"content")(2,"div",1)(3,"h2"),c._uU(4,"Do you want to refresh your current app?"),c.qZA()()()()),2&l&&c.Q6J("config",a.config)},dependencies:[Ts.M]});var Xo=g(5083),Br=g(9770),us=g(2843),To=g(4968),Xr=g(9646),jo=g(7272),go=g(9751),_o=g(5032);const Vr=new go.y(_o.Z);var xo=g(6451),qr=g(4004),Jr=g(9300),Ur=g(3900),Fi=g(4033),Hr=g(576),ai=g(8421),xs=g(4482);const Ri={connector:()=>new vr.x};function ds(f,l=Ri){const{connector:a}=l;return(0,xs.e)((v,F)=>{const G=a();(0,ai.Xf)(f(function Is(f){return new go.y(l=>f.subscribe(l))}(G))).subscribe(F),F.add(v.subscribe(G))})}var jr=g(5698),eo=g(8505),b=g(1005);const N="Service workers are disabled or not supported by this browser";class z{constructor(l){if(this.serviceWorker=l,l){const v=(0,To.R)(l,"controllerchange").pipe((0,qr.U)(()=>l.controller)),F=(0,Br.P)(()=>(0,Xr.of)(l.controller)),G=(0,jo.z)(F,v);this.worker=G.pipe((0,Jr.h)(jt=>!!jt)),this.registration=this.worker.pipe((0,Ur.w)(()=>l.getRegistration()));const _t=(0,To.R)(l,"message").pipe((0,qr.U)(jt=>jt.data)).pipe((0,Jr.h)(jt=>jt&&jt.type)).pipe(function Os(f){return f?l=>ds(f)(l):l=>function Hs(f,l){const a=(0,Hr.m)(f)?f:()=>f;return(0,Hr.m)(l)?ds(l,{connector:a}):v=>new Fi.c(v,a)}(new vr.x)(l)}());_t.connect(),this.events=_t}else this.worker=this.events=this.registration=function T(f){return(0,Br.P)(()=>(0,us._)(new Error(f)))}(N)}postMessage(l,a){return this.worker.pipe((0,jr.q)(1),(0,eo.b)(v=>{v.postMessage({action:l,...a})})).toPromise().then(()=>{})}postMessageWithOperation(l,a,v){const F=this.waitForOperationCompleted(v),G=this.postMessage(l,a);return Promise.all([G,F]).then(([,ge])=>ge)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(l){let a;return a="string"==typeof l?v=>v.type===l:v=>l.includes(v.type),this.events.pipe((0,Jr.h)(a))}nextEventOfType(l){return this.eventsOfType(l).pipe((0,jr.q)(1))}waitForOperationCompleted(l){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Jr.h)(a=>a.nonce===l),(0,jr.q)(1),(0,qr.U)(a=>{if(void 0!==a.result)return a.result;throw new Error(a.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let _e=(()=>{class f{get isEnabled(){return this.sw.isEnabled}constructor(a){if(this.sw=a,this.pushManager=null,this.subscriptionChanges=new vr.x,!a.isEnabled)return this.messages=Vr,this.notificationClicks=Vr,void(this.subscription=Vr);this.messages=this.sw.eventsOfType("PUSH").pipe((0,qr.U)(F=>F.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,qr.U)(F=>F.data)),this.pushManager=this.sw.registration.pipe((0,qr.U)(F=>F.pushManager));const v=this.pushManager.pipe((0,Ur.w)(F=>F.getSubscription()));this.subscription=(0,xo.T)(v,this.subscriptionChanges)}requestSubscription(a){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(N));const v={userVisibleOnly:!0};let F=this.decodeBase64(a.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),G=new Uint8Array(new ArrayBuffer(F.length));for(let ge=0;ge<F.length;ge++)G[ge]=F.charCodeAt(ge);return v.applicationServerKey=G,this.pushManager.pipe((0,Ur.w)(ge=>ge.subscribe(v)),(0,jr.q)(1)).toPromise().then(ge=>(this.subscriptionChanges.next(ge),ge))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,jr.q)(1),(0,Ur.w)(v=>{if(null===v)throw new Error("Not subscribed to push notifications.");return v.unsubscribe().then(F=>{if(!F)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(N))}decodeBase64(a){return atob(a)}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(z))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})(),at=(()=>{class f{get isEnabled(){return this.sw.isEnabled}constructor(a){if(this.sw=a,!a.isEnabled)return this.versionUpdates=Vr,this.available=Vr,this.activated=Vr,void(this.unrecoverable=Vr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,Jr.h)(v=>"VERSION_READY"===v.type),(0,qr.U)(v=>({type:"UPDATE_AVAILABLE",current:v.currentVersion,available:v.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(N));const a=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:a},a)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(N));const a=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:a},a)}}return f.\u0275fac=function(a){return new(a||f)(c.LFG(z))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})();class mt{}const nn=new c.OlP("NGSW_REGISTER_SCRIPT");function jn(f,l,a,v){return()=>{if(!(0,X.NF)(v)||!("serviceWorker"in navigator)||!1===a.enabled)return;let F;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof a.registrationStrategy)F=a.registrationStrategy();else{const[ge,...Me]=(a.registrationStrategy||"registerWhenStable:30000").split(":");switch(ge){case"registerImmediately":F=(0,Xr.of)(null);break;case"registerWithDelay":F=Wn(+Me[0]||0);break;case"registerWhenStable":F=Me[0]?(0,xo.T)($n(f),Wn(+Me[0])):$n(f);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${a.registrationStrategy}`)}}f.get(c.R0b).runOutsideAngular(()=>F.pipe((0,jr.q)(1)).subscribe(()=>navigator.serviceWorker.register(l,{scope:a.scope}).catch(ge=>console.error("Service worker registration failed with:",ge))))}}function Wn(f){return(0,Xr.of)(null).pipe((0,b.g)(f))}function $n(f){return f.get(c.z2F).isStable.pipe((0,Jr.h)(a=>a))}function Nn(f,l){return new z((0,X.NF)(l)&&!1!==f.enabled?navigator.serviceWorker:void 0)}let Ei=(()=>{class f{static register(a,v={}){return{ngModule:f,providers:[{provide:nn,useValue:a},{provide:mt,useValue:v},{provide:z,useFactory:Nn,deps:[mt,c.Lbi]},{provide:c.ip1,useFactory:jn,deps:[c.zs3,nn,mt,c.Lbi],multi:!0}]}}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({providers:[_e,at]}),f})();var Kn=g(4707);function ci(f,l){return(a,v)=>!f.call(l,a,v)}var Ji=g(2805),Gi=g(8746),er=g(5403);function Pr(f){return(0,xs.e)((l,a)=>{let v=!1,F=null,G=null;const ge=()=>{if(G?.unsubscribe(),G=null,v){v=!1;const Me=F;F=null,a.next(Me)}};l.subscribe((0,er.x)(a,Me=>{G?.unsubscribe(),v=!0,F=Me,G=(0,er.x)(a,ge,_o.Z),(0,ai.Xf)(f(Me)).subscribe(G)},()=>{ge(),a.complete()},void 0,()=>{F=G=null}))})}var to=g(1884),vo=g(529);function hs(f,l){1&f&&c.GkF(0)}function qo(f,l){if(1&f&&c._UZ(0,"sk-cube-grid",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function fs(f,l){if(1&f&&c._UZ(0,"sk-chasing-dots",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function js(f,l){if(1&f&&c._UZ(0,"sk-double-bounce",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function $s(f,l){if(1&f&&c._UZ(0,"sk-rotating-plane",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function Io(f,l){if(1&f&&c._UZ(0,"sk-spinner-pulse",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function Js(f,l){if(1&f&&c._UZ(0,"sk-three-bounce",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function Mr(f,l){if(1&f&&c._UZ(0,"sk-wandering-cubes",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}function zs(f,l){if(1&f&&c._UZ(0,"sk-wave",4),2&f){const a=c.oxw(2);c.Q6J("backgroundColor",a.backgroundColor)}}const $o=function(f){return{"background-color":f}};function Jo(f,l){if(1&f&&(c.TgZ(0,"div",1),c.YNc(1,hs,1,0,"ng-container",2),c.YNc(2,qo,1,1,"sk-cube-grid",3),c.YNc(3,fs,1,1,"sk-chasing-dots",3),c.YNc(4,js,1,1,"sk-double-bounce",3),c.YNc(5,$s,1,1,"sk-rotating-plane",3),c.YNc(6,Io,1,1,"sk-spinner-pulse",3),c.YNc(7,Js,1,1,"sk-three-bounce",3),c.YNc(8,Mr,1,1,"sk-wandering-cubes",3),c.YNc(9,zs,1,1,"sk-wave",3),c.qZA()),2&f){const a=c.oxw();c.Udp("opacity",a.opacity),c.ekj("backdrop",a.backdrop),c.Q6J("ngStyle",c.VKq(14,$o,a.backdrop?a.backdropBackgroundColor:"transparent")),c.xp6(1),c.Q6J("ngComponentOutlet",a.entryComponent),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skCubeGrid),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skChasingDots),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skDoubleBounce),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skRotatingPlane),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skSpinnerPulse),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skThreeBounce),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skWanderingCubes),c.xp6(1),c.Q6J("ngIf",a.spinner===a.spinkit.skWave)}}let $r=(()=>{class f{}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=c.lG2({type:f,inputs:{backgroundColor:"backgroundColor"}}),f})(),es=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:_ngcontent-%COMP%_sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:_ngcontent-%COMP%_sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),f})(),Vi=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(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&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{transform:scaleZ(1)}35%{transform:scale3D(0,0,1)}}"]}),f})(),ps=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes _ngcontent-%COMP%_sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),f})(),ts=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-rotating-plane"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(a,v){1&a&&c._UZ(0,"div",0),2&a&&c.Udp("background-color",v.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:_ngcontent-%COMP%_sk-rotatePlane 1.2s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),f})(),ns=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,selectors:[["sk-spinner-pulse"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(a,v){1&a&&c._UZ(0,"div",0),2&a&&c.Udp("background-color",v.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:_ngcontent-%COMP%_sk-pulseScaleOut 1s infinite ease-in-out}@keyframes _ngcontent-%COMP%_sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),f})(),Ps=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:_ngcontent-%COMP%_sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes _ngcontent-%COMP%_sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),f})(),Sr=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:_ngcontent-%COMP%_sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes _ngcontent-%COMP%_sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),f})(),Gs=(()=>{class f extends $r{}return f.\u0275fac=function(){let l;return function(v){return(l||(l=c.n5z(f)))(v||f)}}(),f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(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&a&&(c.ekj("colored",!v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor),c.xp6(1),c.Udp("background-color",v.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:_ngcontent-%COMP%_sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes _ngcontent-%COMP%_sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),f})();const is={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 zo=(()=>{class f{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Kn.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(a){this._filteredMethods=a}set filteredHeaders(a){this._filteredHeaders=a}set forceByPass(a){this._forceByPass=a}shouldBypassUrl(a){return this._filteredUrlPatterns.some(v=>v.test(a))}shouldBypassMethod(a){return this._filteredMethods.some(v=>v.toUpperCase()===a.method.toUpperCase())}shouldBypassHeader(a){return this._filteredHeaders.some(v=>a.headers.has(v))}shouldBypass(a){return this._forceByPass||this.shouldBypassUrl(a.urlWithParams)||this.shouldBypassMethod(a)||this.shouldBypassHeader(a)}intercept(a,v){const F=this.shouldBypass(a);return F||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),v.handle(a).pipe((0,Gi.x)(()=>{F||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();const ms=[{provide:vo.TP,useExisting:zo,multi:!0}];let tr=(()=>{class f{constructor(a){this.pendingRequestsInterceptor=a,this._visibility$=new Kn.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 f.\u0275fac=function(a){return new(a||f)(c.LFG(zo))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),Oo=(()=>{class f{constructor(a,v){this.pendingRequestsInterceptor=a,this.spinnerVisibility=v,this.spinkit=is,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=is.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[a,v]=function lr(f,l,a){return[(0,Jr.h)(l,a)((0,ai.Xf)(f)),(0,Jr.h)(ci(l,a))((0,ai.Xf)(f))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,F=>F);this.isVisible$=(0,xo.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,Ur.w)(()=>a.pipe(Pr(()=>(0,Ji.H)(this.debounceDelay))))),a.pipe((0,Ur.w)(()=>v.pipe(Pr(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,to.x)(),(0,eo.b)(F=>this.updateExpirationDelay(F)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(a=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(a)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(a){a&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,Ji.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return f.\u0275fac=function(a){return new(a||f)(c.Y36(zo),c.Y36(tr))},f.\u0275cmp=c.Xpm({type:f,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(a,v){1&a&&(c.YNc(0,Jo,10,16,"div",0),c.ALo(1,"async")),2&a&&c.Q6J("ngIf",c.lcZ(1,1,v.isVisible$))},dependencies:[X.$G,X.O5,X.PC,Vi,es,ps,ts,ns,Ps,Sr,Gs,X.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}"]}),f})(),ea=(()=>{class f{static forRoot(){return{ngModule:f,providers:[ms]}}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({imports:[X.ez]}),f})();class br{constructor(l,a,v,F,G){this.route=l,this.activateRoute=a,this.queryParamService=v,this.matDialog=G,this.destroy$=new vr.x,F.versionUpdates.subscribe(ge=>{F.activateUpdate().then(()=>this.updateApp(ge))})}updateApp(l){"VERSION_READY"==l.type&&this.matDialog.open(So,{disableClose:!0})}ngOnInit(){this.getLastRouteEvent()}getLastRouteEvent(){this.route.events.pipe((0,yr.R)(this.destroy$)).subscribe(l=>{l instanceof zi.m2&&this.getParam()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getParam(){this.activateRoute.queryParamMap.pipe((0,yr.R)(this.destroy$)).subscribe(l=>{if(l){let a=l.get("ID"),v=l.get("Number"),F=l.get("Outlet");this.queryParamService.setState({ID:a,billNumber:v,outletName:F})}})}}br.\u0275fac=function(l){return new(l||br)(c.Y36(zi.F0),c.Y36(zi.gz),c.Y36(Xo.U),c.Y36(at),c.Y36(Qr.uw))},br.\u0275cmp=c.Xpm({type:br,selectors:[["app-root"]],decls:2,vars:0,template:function(l,a){1&l&&c._UZ(0,"ng-http-loader")(1,"router-outlet")},dependencies:[zi.lC,Oo]});var Go=g(3389);class Wo{constructor(l,a){this._authService=l,this._router=a}canActivate(l,a){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}function Fs(f){this.message=f}Wo.\u0275fac=function(l){return new(l||Wo)(c.LFG(Go.$),c.LFG(zi.F0))},Wo.\u0275prov=c.Yz7({token:Wo,factory:Wo.\u0275fac}),(Fs.prototype=new Error).name="InvalidCharacterError";var Rs=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(f){var l=String(f).replace(/=+$/,"");if(l.length%4==1)throw new Fs("'atob' failed: The string to be decoded is not correctly encoded.");for(var a,v,F=0,G=0,ge="";v=l.charAt(G++);~v&&(a=F%4?64*a+v:v,F++%4)?ge+=String.fromCharCode(255&a>>(-2*F&6)):0)v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(v);return ge};function ro(f){this.message=f}(ro.prototype=new Error).name="InvalidTokenError";const Ws=function Po(f,l){if("string"!=typeof f)throw new ro("Invalid token specified");var a=!0===(l=l||{}).header?0:1;try{return JSON.parse(function io(f){var l=f.replace(/-/g,"+").replace(/_/g,"/");switch(l.length%4){case 0:break;case 2:l+="==";break;case 3:l+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(Rs(l).replace(/(.)/g,function(v,F){var G=F.charCodeAt(0).toString(16).toUpperCase();return G.length<2&&(G="0"+G),"%"+G}))}catch{return Rs(l)}}(f.split(".")[a]))}catch(v){throw new ro("Invalid token specified: "+v.message)}};var Ys=g(8412);var ta=g(1104),gs=g(7185);const ui=["domainAutoFocus"],ma=["passAutoFocus"];function _s(f,l){if(1&f){const a=c.EpF();c.ynx(0),c.TgZ(1,"div",21)(2,"div",22)(3,"form")(4,"div",23)(5,"h2",24),c._uU(6,"Sign in"),c.qZA(),c.TgZ(7,"div",25)(8,"div",26)(9,"div",27)(10,"span",28),c._UZ(11,"i",29),c.qZA(),c.TgZ(12,"input",30,31),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.subdomain=F)}),c.qZA()()(),c.TgZ(14,"select",32),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.domain=F)}),c.TgZ(15,"option",33),c._uU(16,".dealpos.co.id"),c.qZA(),c.TgZ(17,"option",34),c._uU(18,".dealpos.net"),c.qZA(),c.TgZ(19,"option",35),c._uU(20,".dealpos.com"),c.qZA()()()(),c.TgZ(21,"div",36)(22,"button",37),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.onNextState())}),c._uU(23," Next "),c.qZA()()()()(),c.BQk()}if(2&f){const a=c.oxw();c.xp6(12),c.Q6J("ngModel",a.subdomain),c.xp6(2),c.Q6J("ngModel",a.domain)}}function $a(f,l){1&f&&(c.TgZ(0,"p"),c._uU(1," Username is required "),c.qZA())}function na(f,l){if(1&f&&(c.TgZ(0,"div",61),c.YNc(1,$a,2,0,"p",62),c.qZA()),2&f){c.oxw();const a=c.MAs(13);c.xp6(1),c.Q6J("ngIf",a.errors.required)}}const ga=function(f,l){return{"fa-eye":f,"fa-eye-slash":l}};function _a(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"i",63),c.NdJ("click",function(){c.CHM(a);const F=c.oxw(2);return c.KtG(F.hideShowPassword())}),c.qZA()}if(2&f){const a=c.oxw(2);c.Q6J("ngClass",c.WLB(1,ga,"eye-off"==a.passwordIcon,"eye"==a.passwordIcon))}}function va(f,l){1&f&&(c.TgZ(0,"p"),c._uU(1," Password is required "),c.qZA())}function vs(f,l){if(1&f&&(c.TgZ(0,"div",61),c.YNc(1,va,2,0,"p",62),c.qZA()),2&f){c.oxw();const a=c.MAs(19);c.xp6(1),c.Q6J("ngIf",a.errors.required)}}function ya(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"div",21)(1,"div",22)(2,"div",38)(3,"h2",24),c._uU(4,"Sign in"),c.qZA(),c.TgZ(5,"div",39),c._uU(6," to "),c.TgZ(7,"h6",40),c._uU(8),c.qZA(),c.TgZ(9,"i",41),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.onEditDomain())}),c.qZA()()(),c.TgZ(10,"form",42)(11,"div",43)(12,"input",44,45),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.username=F)}),c.qZA(),c.TgZ(14,"label",46),c._uU(15,"Username"),c.qZA(),c.YNc(16,na,2,1,"div",47),c.qZA(),c.TgZ(17,"div",48)(18,"input",49,50),c.NdJ("ngModelChange",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.password=F)}),c.qZA(),c.TgZ(20,"label",51),c._uU(21,"Password"),c.qZA(),c.YNc(22,_a,1,4,"i",52),c.YNc(23,vs,2,1,"div",47),c.qZA(),c.TgZ(24,"div",53)(25,"a",54),c._uU(26,"Forgot Password?"),c.qZA()(),c.TgZ(27,"div",55)(28,"button",56),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.login())}),c._uU(29," Log in "),c.qZA()(),c.TgZ(30,"div",57),c._UZ(31,"hr"),c.TgZ(32,"span",58),c._uU(33,"or"),c.qZA(),c._UZ(34,"hr"),c.qZA(),c.TgZ(35,"div")(36,"button",59),c.NdJ("click",function(F){c.CHM(a);const G=c.oxw();return c.KtG(G.onLoginByGoogle(F))}),c._UZ(37,"i",60),c._uU(38," Sign In with Google "),c.qZA()()()()()}if(2&f){const a=c.MAs(13),v=c.MAs(19),F=c.oxw();c.xp6(8),c.AsE(" (",F.subdomain,"",F.domain,") "),c.xp6(4),c.Q6J("ngModel",F.username),c.xp6(4),c.Q6J("ngIf",a.invalid&&(a.dirty||a.touched)),c.xp6(2),c.Q6J("type",F.passwordType)("ngModel",F.password),c.xp6(4),c.Q6J("ngIf",""!=F.password),c.xp6(1),c.Q6J("ngIf",v.invalid&&(v.dirty||v.touched)),c.xp6(2),c.Q6J("href","https://"+F.subdomain+F.domain+"/ForgotPassword",c.LSH)}}class ys{constructor(l,a,v,F,G){this._httpService=l,this.toastr=a,this.auth=v,this.elementRef=F,this.cdr=G,this.version="1.4.7",this.domain=".dealpos.co.id",this.password="",this.passwordType="password",this.passwordIcon="eye-off",this.loginState="FORM_DOMAIN"}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#edefff"}ngAfterViewInit(){this.initLoginForm()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}onEditDomain(){this.loginState="FORM_DOMAIN"}initLoginForm(){let l=this.auth.isLoginFormExist();if(this.setAutoFocusDomain(),l){this.username=this.auth.getUsername(),this.subdomain=this.auth.getDomain().split(".dealpos")[0];const a=this.auth.getDomain().split(".dealpos")[1];this.domain=".co.id"==a?".dealpos.co.id":".net"==a?".dealpos.net":".dealpos.com",this.setAutoFocusPass(),this.cdr.detectChanges()}}setAutoFocusDomain(){this.domainElementRef?.nativeElement.focus()}setAutoFocusPass(){this.passElementRef?.nativeElement.focus()}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}onNextState(){Ys.gT.IsEmpty(this.subdomain)?this.toastr.warning("Account Domain is required","Warning"):this.loginState="FORM_AUTH"}login(){var l={Username:this.username,Password:this.password,Host:this.subdomain+(this.subdomain.includes("localhost")?"":this.domain)};this._httpService.post("/api/Token/Login",JSON.stringify(l)).subscribe(a=>{if(null!=a.access_token||null!=a.access_token){let v=a.access_token,F=a.expiredAt;localStorage.setItem("Token",v),localStorage.setItem("ExpireDate",F),this.auth.saveLoginForm(this.subdomain+(this.subdomain.includes("localhost")?"":this.domain),this.username);let ge=Ws(v)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],Me=ge?ge.find(Qe=>"Products"==Qe||"Prod"==Qe):null;this.auth.setRoles(ge),"Products"==Me||"Prod"==Me?this.auth.login("/pages"):this.toastr.error("Require products role to access this feature!","Error")}},a=>{console.error(a)})}onLoginByGoogle(l){this.auth.loginWithGoogle(l,`${this.subdomain}${this.domain}`).subscribe(v=>{console.log(v);let G=Ws(v.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];G&&G.find(Me=>"Products"==Me||"Prod"==Me),this.auth.setRoles(G),this.auth.login("/pages")})}}ys.\u0275fac=function(l){return new(l||ys)(c.Y36(ta.O),c.Y36(gs._W),c.Y36(Go.$),c.Y36(c.SBq),c.Y36(c.sBO))},ys.\u0275cmp=c.Xpm({type:ys,selectors:[["app-login"]],viewQuery:function(l,a){if(1&l&&(c.Gf(ui,5),c.Gf(ma,5)),2&l){let v;c.iGM(v=c.CRH())&&(a.domainElementRef=v.first),c.iGM(v=c.CRH())&&(a.passElementRef=v.first)}},decls:32,vars:4,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","my-5","py-5","robotoslab","d-none","d-md-block"],["src","https://res.cloudinary.com/dealpos/image/upload/w_300/v1615189586/Barcode/barcode.png","alt","integration-image",1,"img-fluid","mt-5","pt-5"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-md-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","me-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],["href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete","target","_blank"],[1,"pt-1rem","fst-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"fw-normal"],["href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete","target","_blank",2,"text-decoration","none"],[1,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center","mt-6"],[1,"mt-7","rounded-end-0",2,"width","200%"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0",2,"height","3.625rem","padding-left","0px",3,"ngModel","ngModelChange"],["subdomainEl",""],["name","domainOption",1,"form-select","form-control","border-start-0","mt-4","rounded-end","rounded-start-0","domain-option",2,"height","3.625rem",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end","mt-3"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"my-5","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(l,a){if(1&l&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),c._uU(4,"DealPOS - Barcode"),c.qZA(),c._UZ(5,"img",4),c.qZA(),c.TgZ(6,"div",5)(7,"h1",6),c._uU(8,"DealPOS - Barcode"),c.qZA(),c.YNc(9,_s,24,2,"ng-container",7),c.YNc(10,ya,39,9,"ng-template",null,8,c.W1O),c.qZA(),c.TgZ(12,"div",9)(13,"p",10),c._uU(14,"Powered by : "),c.qZA(),c.TgZ(15,"a",11),c._UZ(16,"img",12),c.qZA(),c.TgZ(17,"a",13)(18,"p",14),c._uU(19),c.qZA()()()()(),c.TgZ(20,"footer",15)(21,"div",16)(22,"div",17)(23,"p",10),c._uU(24,"Powered by : "),c.qZA(),c.TgZ(25,"a",11),c._UZ(26,"img",12),c.qZA()(),c.TgZ(27,"div",18)(28,"h5",19)(29,"a",20)(30,"p",14),c._uU(31),c.qZA()()()()()()),2&l){const v=c.MAs(11);c.xp6(9),c.Q6J("ngIf","FORM_DOMAIN"==a.loginState)("ngIfElse",v),c.xp6(10),c.hij("Version ",a.version,""),c.xp6(12),c.hij("Version ",a.version,"")}},dependencies:[X.mk,X.O5,le._Y,le.YN,le.Kr,le.Fj,le.EJ,le.JJ,le.JL,le.Q7,le.On,le.F],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:90%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:2.5rem}}@media (min-width: 1200px){.container[_ngcontent-%COMP%]{max-width:70%}.big-display[_ngcontent-%COMP%]{font-size:3.2rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}"]});const Ti=[{path:"",component:br,children:[{path:"",component:ys},{path:"pages",loadChildren:()=>g.e(467).then(g.bind(g,9467)).then(f=>f.PagesModule),canActivate:[Wo]},{path:"",redirectTo:"",pathMatch:"full"}]}];class bo{}function ks(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(a);const F=c.oxw(2);return c.KtG(F.remove())}),c._uU(1," x "),c.qZA()}}function Cr(f,l){if(1&f&&(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,ks,2,0,"a",9),c.qZA()()),2&f){const a=c.oxw();c.Udp("display","inactive"===a.state.value?"none":""),c.xp6(2),c.Tol(a.options.titleClass),c.uIk("aria-label",a.title),c.xp6(2),c.Oqu(a.title),c.xp6(2),c.Q6J("ngIf",a.options.closeButton)}}bo.\u0275fac=function(l){return new(l||bo)},bo.\u0275mod=c.oAB({type:bo}),bo.\u0275inj=c.cJS({imports:[X.ez,le.u5,mo,zi.Bz.forRoot(Ti),zi.Bz]});const h=function(f){return{notitle:f}};function m(f,l){if(1&f&&c._UZ(0,"div",11),2&f){const a=c.oxw();c.Tol(a.options.messageClass),c.Q6J("ngClass",c.VKq(4,h,null==a.title))("innerHTML",a.message,c.oJD)}}function u(f,l){if(1&f&&(c.TgZ(0,"div",12),c._uU(1),c.qZA()),2&f){const a=c.oxw();c.Tol(a.options.messageClass),c.Q6J("ngClass",c.VKq(5,h,null==a.title)),c.uIk("aria-label",a.message),c.xp6(1),c.hij(" ",a.message," ")}}function C(f,l){if(1&f){const a=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(a);const F=c.oxw();return c.KtG(F.remove())}),c._uU(1," x "),c.qZA()}}function O(f,l){if(1&f&&(c.TgZ(0,"div"),c._UZ(1,"div",13),c.qZA()),2&f){const a=c.oxw();c.xp6(1),c.Udp("width",a.width+"%")}}class $ extends gs.FN{constructor(l,a){super(l,a),this.toastrService=l,this.toastPackage=a}ngOnInit(){}action(l){return l.stopPropagation(),this.toastPackage.triggerAction(),!1}}$.\u0275fac=function(l){return new(l||$)(c.Y36(gs._W),c.Y36(gs.PR))},$.\u0275cmp=c.Xpm({type:$,selectors:[["","custom-toast-component",""]],features:[c.qOj],attrs:["custom-toast-component",""],decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row 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","px-0"],[1,"col-auto","mt-5","pr-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,"row","toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(l,a){1&l&&(c.TgZ(0,"div",0),c.YNc(1,Cr,7,7,"div",1),c.YNc(2,m,1,6,"div",2),c.YNc(3,u,2,7,"div",3),c.YNc(4,C,2,0,"a",4),c.YNc(5,O,2,2,"div",5),c.qZA()),2&l&&(c.xp6(1),c.Q6J("ngIf",a.title),c.xp6(1),c.Q6J("ngIf",a.message&&a.options.enableHtml),c.xp6(1),c.Q6J("ngIf",a.message&&!a.options.enableHtml),c.xp6(1),c.Q6J("ngIf",a.options.closeButton&&null==a.title),c.xp6(1),c.Q6J("ngIf",a.options.progressBar))},dependencies:[X.mk,X.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:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right: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,q.X$)("flyInOut",[(0,q.SB)("inactive",(0,q.oB)({opacity:0})),(0,q.eR)("inactive => active",(0,q.jt)("400ms ease-out",(0,q.F4)([(0,q.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,q.oB)({transform:"skewX(20deg)",opacity:1}),(0,q.oB)({transform:"skewX(-5deg)",opacity:1}),(0,q.oB)({transform:"none",opacity:1})]))),(0,q.eR)("active => removed",(0,q.jt)("400ms ease-out",(0,q.F4)([(0,q.oB)({opacity:1}),(0,q.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}});var Q=g(4949);class Ge{}Ge.\u0275fac=function(l){return new(l||Ge)},Ge.\u0275mod=c.oAB({type:Ge,bootstrap:[br]}),Ge.\u0275inj=c.cJS({providers:[Wo],imports:[r.b2,bo,mo,vo.JF,gs.Rh.forRoot({toastComponent:$,positionClass:"toast-bottom-right",closeButton:!0}),ea.forRoot(),Ei.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),Qr.Is,Q.m,A.hO.initializeApp({apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"}),B.ww]}),(0,c.G48)(),r.q6().bootstrapModule(Ge).catch(f=>console.error(f))},1135:(Dt,Se,g)=>{g.d(Se,{X:()=>c});var r=g(7579);class c extends r.x{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const X=super._subscribe(B);return!X.closed&&B.next(this._value),X}getValue(){const{hasError:B,thrownError:X,_value:le}=this;if(B)throw X;return this._throwIfClosed(),le}next(B){super.next(this._value=B)}}},9751:(Dt,Se,g)=>{g.d(Se,{y:()=>ne});var r=g(930),c=g(727),A=g(8822),B=g(9635),X=g(2416),le=g(576),q=g(2806);let ne=(()=>{class ae{constructor(Ee){Ee&&(this._subscribe=Ee)}lift(Ee){const Le=new ae;return Le.source=this,Le.operator=Ee,Le}subscribe(Ee,Le,Ne){const he=function ee(ae){return ae&&ae instanceof r.Lv||function j(ae){return ae&&(0,le.m)(ae.next)&&(0,le.m)(ae.error)&&(0,le.m)(ae.complete)}(ae)&&(0,c.Nn)(ae)}(Ee)?Ee:new r.Hp(Ee,Le,Ne);return(0,q.x)(()=>{const{operator:Re,source:ke}=this;he.add(Re?Re.call(he,ke):ke?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(Ee){try{return this._subscribe(Ee)}catch(Le){Ee.error(Le)}}forEach(Ee,Le){return new(Le=ie(Le))((Ne,he)=>{const Re=new r.Hp({next:ke=>{try{Ee(ke)}catch(tt){he(tt),Re.unsubscribe()}},error:he,complete:Ne});this.subscribe(Re)})}_subscribe(Ee){var Le;return null===(Le=this.source)||void 0===Le?void 0:Le.subscribe(Ee)}[A.L](){return this}pipe(...Ee){return(0,B.U)(Ee)(this)}toPromise(Ee){return new(Ee=ie(Ee))((Le,Ne)=>{let he;this.subscribe(Re=>he=Re,Re=>Ne(Re),()=>Le(he))})}}return ae.create=je=>new ae(je),ae})();function ie(ae){var je;return null!==(je=ae??X.v.Promise)&&void 0!==je?je:Promise}},4707:(Dt,Se,g)=>{g.d(Se,{t:()=>A});var r=g(7579),c=g(6063);class A extends r.x{constructor(X=1/0,le=1/0,q=c.l){super(),this._bufferSize=X,this._windowTime=le,this._timestampProvider=q,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=le===1/0,this._bufferSize=Math.max(1,X),this._windowTime=Math.max(1,le)}next(X){const{isStopped:le,_buffer:q,_infiniteTimeWindow:ne,_timestampProvider:ie,_windowTime:j}=this;le||(q.push(X),!ne&&q.push(ie.now()+j)),this._trimBuffer(),super.next(X)}_subscribe(X){this._throwIfClosed(),this._trimBuffer();const le=this._innerSubscribe(X),{_infiniteTimeWindow:q,_buffer:ne}=this,ie=ne.slice();for(let j=0;j<ie.length&&!X.closed;j+=q?1:2)X.next(ie[j]);return this._checkFinalizedStatuses(X),le}_trimBuffer(){const{_bufferSize:X,_timestampProvider:le,_buffer:q,_infiniteTimeWindow:ne}=this,ie=(ne?1:2)*X;if(X<1/0&&ie<q.length&&q.splice(0,q.length-ie),!ne){const j=le.now();let ee=0;for(let ae=1;ae<q.length&&q[ae]<=j;ae+=2)ee=ae;ee&&q.splice(0,ee+1)}}}},7579:(Dt,Se,g)=>{g.d(Se,{x:()=>q});var r=g(9751),c=g(727);const B=(0,g(3888).d)(ie=>function(){ie(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=g(8737),le=g(2806);let q=(()=>{class ie extends r.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ee){const ae=new ne(this,this);return ae.operator=ee,ae}_throwIfClosed(){if(this.closed)throw new B}next(ee){(0,le.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ae of this.currentObservers)ae.next(ee)}})}error(ee){(0,le.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ee;const{observers:ae}=this;for(;ae.length;)ae.shift().error(ee)}})}complete(){(0,le.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ee}=this;for(;ee.length;)ee.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ee;return(null===(ee=this.observers)||void 0===ee?void 0:ee.length)>0}_trySubscribe(ee){return this._throwIfClosed(),super._trySubscribe(ee)}_subscribe(ee){return this._throwIfClosed(),this._checkFinalizedStatuses(ee),this._innerSubscribe(ee)}_innerSubscribe(ee){const{hasError:ae,isStopped:je,observers:Ee}=this;return ae||je?c.Lc:(this.currentObservers=null,Ee.push(ee),new c.w0(()=>{this.currentObservers=null,(0,X.P)(Ee,ee)}))}_checkFinalizedStatuses(ee){const{hasError:ae,thrownError:je,isStopped:Ee}=this;ae?ee.error(je):Ee&&ee.complete()}asObservable(){const ee=new r.y;return ee.source=this,ee}}return ie.create=(j,ee)=>new ne(j,ee),ie})();class ne extends q{constructor(j,ee){super(),this.destination=j,this.source=ee}next(j){var ee,ae;null===(ae=null===(ee=this.destination)||void 0===ee?void 0:ee.next)||void 0===ae||ae.call(ee,j)}error(j){var ee,ae;null===(ae=null===(ee=this.destination)||void 0===ee?void 0:ee.error)||void 0===ae||ae.call(ee,j)}complete(){var j,ee;null===(ee=null===(j=this.destination)||void 0===j?void 0:j.complete)||void 0===ee||ee.call(j)}_subscribe(j){var ee,ae;return null!==(ae=null===(ee=this.source)||void 0===ee?void 0:ee.subscribe(j))&&void 0!==ae?ae:c.Lc}}},930:(Dt,Se,g)=>{g.d(Se,{Hp:()=>Ne,Lv:()=>ae});var r=g(576),c=g(727),A=g(2416),B=g(7849),X=g(5032);const le=ie("C",void 0,void 0);function ie(ye,ue,we){return{kind:ye,value:ue,error:we}}var j=g(3410),ee=g(2806);class ae extends c.w0{constructor(ue){super(),this.isStopped=!1,ue?(this.destination=ue,(0,c.Nn)(ue)&&ue.add(this)):this.destination=tt}static create(ue,we,Ce){return new Ne(ue,we,Ce)}next(ue){this.isStopped?ke(function ne(ye){return ie("N",ye,void 0)}(ue),this):this._next(ue)}error(ue){this.isStopped?ke(function q(ye){return ie("E",void 0,ye)}(ue),this):(this.isStopped=!0,this._error(ue))}complete(){this.isStopped?ke(le,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ue){this.destination.next(ue)}_error(ue){try{this.destination.error(ue)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const je=Function.prototype.bind;function Ee(ye,ue){return je.call(ye,ue)}class Le{constructor(ue){this.partialObserver=ue}next(ue){const{partialObserver:we}=this;if(we.next)try{we.next(ue)}catch(Ce){he(Ce)}}error(ue){const{partialObserver:we}=this;if(we.error)try{we.error(ue)}catch(Ce){he(Ce)}else he(ue)}complete(){const{partialObserver:ue}=this;if(ue.complete)try{ue.complete()}catch(we){he(we)}}}class Ne extends ae{constructor(ue,we,Ce){let Ue;if(super(),(0,r.m)(ue)||!ue)Ue={next:ue??void 0,error:we??void 0,complete:Ce??void 0};else{let Te;this&&A.v.useDeprecatedNextContext?(Te=Object.create(ue),Te.unsubscribe=()=>this.unsubscribe(),Ue={next:ue.next&&Ee(ue.next,Te),error:ue.error&&Ee(ue.error,Te),complete:ue.complete&&Ee(ue.complete,Te)}):Ue=ue}this.destination=new Le(Ue)}}function he(ye){A.v.useDeprecatedSynchronousErrorHandling?(0,ee.O)(ye):(0,B.h)(ye)}function ke(ye,ue){const{onStoppedNotification:we}=A.v;we&&j.z.setTimeout(()=>we(ye,ue))}const tt={closed:!0,next:X.Z,error:function Re(ye){throw ye},complete:X.Z}},727:(Dt,Se,g)=>{g.d(Se,{Lc:()=>le,w0:()=>X,Nn:()=>q});var r=g(576);const A=(0,g(3888).d)(ie=>function(ee){ie(this),this.message=ee?`${ee.length} errors occurred during unsubscription:\n${ee.map((ae,je)=>`${je+1}) ${ae.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ee});var B=g(8737);class X{constructor(j){this.initialTeardown=j,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let j;if(!this.closed){this.closed=!0;const{_parentage:ee}=this;if(ee)if(this._parentage=null,Array.isArray(ee))for(const Ee of ee)Ee.remove(this);else ee.remove(this);const{initialTeardown:ae}=this;if((0,r.m)(ae))try{ae()}catch(Ee){j=Ee instanceof A?Ee.errors:[Ee]}const{_finalizers:je}=this;if(je){this._finalizers=null;for(const Ee of je)try{ne(Ee)}catch(Le){j=j??[],Le instanceof A?j=[...j,...Le.errors]:j.push(Le)}}if(j)throw new A(j)}}add(j){var ee;if(j&&j!==this)if(this.closed)ne(j);else{if(j instanceof X){if(j.closed||j._hasParent(this))return;j._addParent(this)}(this._finalizers=null!==(ee=this._finalizers)&&void 0!==ee?ee:[]).push(j)}}_hasParent(j){const{_parentage:ee}=this;return ee===j||Array.isArray(ee)&&ee.includes(j)}_addParent(j){const{_parentage:ee}=this;this._parentage=Array.isArray(ee)?(ee.push(j),ee):ee?[ee,j]:j}_removeParent(j){const{_parentage:ee}=this;ee===j?this._parentage=null:Array.isArray(ee)&&(0,B.P)(ee,j)}remove(j){const{_finalizers:ee}=this;ee&&(0,B.P)(ee,j),j instanceof X&&j._removeParent(this)}}X.EMPTY=(()=>{const ie=new X;return ie.closed=!0,ie})();const le=X.EMPTY;function q(ie){return ie instanceof X||ie&&"closed"in ie&&(0,r.m)(ie.remove)&&(0,r.m)(ie.add)&&(0,r.m)(ie.unsubscribe)}function ne(ie){(0,r.m)(ie)?ie():ie.unsubscribe()}},2416:(Dt,Se,g)=>{g.d(Se,{v:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(Dt,Se,g)=>{g.d(Se,{c:()=>le});var r=g(9751),c=g(727),A=g(8343),B=g(5403),X=g(4482);class le extends r.y{constructor(ne,ie){super(),this.source=ne,this.subjectFactory=ie,this._subject=null,this._refCount=0,this._connection=null,(0,X.A)(ne)&&(this.lift=ne.lift)}_subscribe(ne){return this.getSubject().subscribe(ne)}getSubject(){const ne=this._subject;return(!ne||ne.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ne}=this;this._subject=this._connection=null,ne?.unsubscribe()}connect(){let ne=this._connection;if(!ne){ne=this._connection=new c.w0;const ie=this.getSubject();ne.add(this.source.subscribe((0,B.x)(ie,void 0,()=>{this._teardown(),ie.complete()},j=>{this._teardown(),ie.error(j)},()=>this._teardown()))),ne.closed&&(this._connection=null,ne=c.w0.EMPTY)}return ne}refCount(){return(0,A.x)()(this)}}},9841:(Dt,Se,g)=>{g.d(Se,{a:()=>j});var r=g(9751),c=g(4742),A=g(8996),B=g(4671),X=g(3268),le=g(3269),q=g(1810),ne=g(5403),ie=g(9672);function j(...je){const Ee=(0,le.yG)(je),Le=(0,le.jO)(je),{args:Ne,keys:he}=(0,c.D)(je);if(0===Ne.length)return(0,A.D)([],Ee);const Re=new r.y(function ee(je,Ee,Le=B.y){return Ne=>{ae(Ee,()=>{const{length:he}=je,Re=new Array(he);let ke=he,tt=he;for(let ye=0;ye<he;ye++)ae(Ee,()=>{const ue=(0,A.D)(je[ye],Ee);let we=!1;ue.subscribe((0,ne.x)(Ne,Ce=>{Re[ye]=Ce,we||(we=!0,tt--),tt||Ne.next(Le(Re.slice()))},()=>{--ke||Ne.complete()}))},Ne)},Ne)}}(Ne,Ee,he?ke=>(0,q.n)(he,ke):B.y));return Le?Re.pipe((0,X.Z)(Le)):Re}function ae(je,Ee,Le){je?(0,ie.f)(Le,je,Ee):Ee()}},7272:(Dt,Se,g)=>{g.d(Se,{z:()=>X});var r=g(8189),A=g(3269),B=g(8996);function X(...le){return function c(){return(0,r.J)(1)}()((0,B.D)(le,(0,A.yG)(le)))}},9770:(Dt,Se,g)=>{g.d(Se,{P:()=>A});var r=g(9751),c=g(8421);function A(B){return new r.y(X=>{(0,c.Xf)(B()).subscribe(X)})}},515:(Dt,Se,g)=>{g.d(Se,{E:()=>c});const c=new(g(9751).y)(X=>X.complete())},8996:(Dt,Se,g)=>{g.d(Se,{D:()=>ue});var r=g(8421),c=g(5363),A=g(9468),le=g(9751),ne=g(2202),ie=g(576),j=g(9672);function ae(we,Ce){if(!we)throw new Error("Iterable cannot be null");return new le.y(Ue=>{(0,j.f)(Ue,Ce,()=>{const Te=we[Symbol.asyncIterator]();(0,j.f)(Ue,Ce,()=>{Te.next().then(ze=>{ze.done?Ue.complete():Ue.next(ze.value)})},0,!0)})})}var je=g(3670),Ee=g(8239),Le=g(1144),Ne=g(6495),he=g(2206),Re=g(4532),ke=g(3260);function ue(we,Ce){return Ce?function ye(we,Ce){if(null!=we){if((0,je.c)(we))return function B(we,Ce){return(0,r.Xf)(we).pipe((0,A.R)(Ce),(0,c.Q)(Ce))}(we,Ce);if((0,Le.z)(we))return function q(we,Ce){return new le.y(Ue=>{let Te=0;return Ce.schedule(function(){Te===we.length?Ue.complete():(Ue.next(we[Te++]),Ue.closed||this.schedule())})})}(we,Ce);if((0,Ee.t)(we))return function X(we,Ce){return(0,r.Xf)(we).pipe((0,A.R)(Ce),(0,c.Q)(Ce))}(we,Ce);if((0,he.D)(we))return ae(we,Ce);if((0,Ne.T)(we))return function ee(we,Ce){return new le.y(Ue=>{let Te;return(0,j.f)(Ue,Ce,()=>{Te=we[ne.h](),(0,j.f)(Ue,Ce,()=>{let ze,ht;try{({value:ze,done:ht}=Te.next())}catch(vt){return void Ue.error(vt)}ht?Ue.complete():Ue.next(ze)},0,!0)}),()=>(0,ie.m)(Te?.return)&&Te.return()})}(we,Ce);if((0,ke.L)(we))return function tt(we,Ce){return ae((0,ke.Q)(we),Ce)}(we,Ce)}throw(0,Re.z)(we)}(we,Ce):(0,r.Xf)(we)}},4968:(Dt,Se,g)=>{g.d(Se,{R:()=>j});var r=g(8421),c=g(9751),A=g(5577),B=g(1144),X=g(576),le=g(3268);const q=["addListener","removeListener"],ne=["addEventListener","removeEventListener"],ie=["on","off"];function j(Le,Ne,he,Re){if((0,X.m)(he)&&(Re=he,he=void 0),Re)return j(Le,Ne,he).pipe((0,le.Z)(Re));const[ke,tt]=function Ee(Le){return(0,X.m)(Le.addEventListener)&&(0,X.m)(Le.removeEventListener)}(Le)?ne.map(ye=>ue=>Le[ye](Ne,ue,he)):function ae(Le){return(0,X.m)(Le.addListener)&&(0,X.m)(Le.removeListener)}(Le)?q.map(ee(Le,Ne)):function je(Le){return(0,X.m)(Le.on)&&(0,X.m)(Le.off)}(Le)?ie.map(ee(Le,Ne)):[];if(!ke&&(0,B.z)(Le))return(0,A.z)(ye=>j(ye,Ne,he))((0,r.Xf)(Le));if(!ke)throw new TypeError("Invalid event target");return new c.y(ye=>{const ue=(...we)=>ye.next(1<we.length?we:we[0]);return ke(ue),()=>tt(ue)})}function ee(Le,Ne){return he=>Re=>Le[he](Ne,Re)}},8421:(Dt,Se,g)=>{g.d(Se,{Xf:()=>je});var r=g(655),c=g(1144),A=g(8239),B=g(9751),X=g(3670),le=g(2206),q=g(4532),ne=g(6495),ie=g(3260),j=g(576),ee=g(7849),ae=g(8822);function je(ye){if(ye instanceof B.y)return ye;if(null!=ye){if((0,X.c)(ye))return function Ee(ye){return new B.y(ue=>{const we=ye[ae.L]();if((0,j.m)(we.subscribe))return we.subscribe(ue);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ye);if((0,c.z)(ye))return function Le(ye){return new B.y(ue=>{for(let we=0;we<ye.length&&!ue.closed;we++)ue.next(ye[we]);ue.complete()})}(ye);if((0,A.t)(ye))return function Ne(ye){return new B.y(ue=>{ye.then(we=>{ue.closed||(ue.next(we),ue.complete())},we=>ue.error(we)).then(null,ee.h)})}(ye);if((0,le.D)(ye))return Re(ye);if((0,ne.T)(ye))return function he(ye){return new B.y(ue=>{for(const we of ye)if(ue.next(we),ue.closed)return;ue.complete()})}(ye);if((0,ie.L)(ye))return function ke(ye){return Re((0,ie.Q)(ye))}(ye)}throw(0,q.z)(ye)}function Re(ye){return new B.y(ue=>{(function tt(ye,ue){var we,Ce,Ue,Te;return(0,r.mG)(this,void 0,void 0,function*(){try{for(we=(0,r.KL)(ye);!(Ce=yield we.next()).done;)if(ue.next(Ce.value),ue.closed)return}catch(ze){Ue={error:ze}}finally{try{Ce&&!Ce.done&&(Te=we.return)&&(yield Te.call(we))}finally{if(Ue)throw Ue.error}}ue.complete()})})(ye,ue).catch(we=>ue.error(we))})}},6451:(Dt,Se,g)=>{g.d(Se,{T:()=>le});var r=g(8189),c=g(8421),A=g(515),B=g(3269),X=g(8996);function le(...q){const ne=(0,B.yG)(q),ie=(0,B._6)(q,1/0),j=q;return j.length?1===j.length?(0,c.Xf)(j[0]):(0,r.J)(ie)((0,X.D)(j,ne)):A.E}},9646:(Dt,Se,g)=>{g.d(Se,{of:()=>A});var r=g(3269),c=g(8996);function A(...B){const X=(0,r.yG)(B);return(0,c.D)(B,X)}},2843:(Dt,Se,g)=>{g.d(Se,{_:()=>A});var r=g(9751),c=g(576);function A(B,X){const le=(0,c.m)(B)?B:()=>B,q=ne=>ne.error(le());return new r.y(X?ne=>X.schedule(q,0,ne):q)}},2805:(Dt,Se,g)=>{g.d(Se,{H:()=>X});var r=g(9751),c=g(4986),A=g(3532),B=g(1165);function X(le=0,q,ne=c.P){let ie=-1;return null!=q&&((0,A.K)(q)?ne=q:ie=q),new r.y(j=>{let ee=(0,B.q)(le)?+le-ne.now():le;ee<0&&(ee=0);let ae=0;return ne.schedule(function(){j.closed||(j.next(ae++),0<=ie?this.schedule(void 0,ie):j.complete())},ee)})}},5403:(Dt,Se,g)=>{g.d(Se,{x:()=>c});var r=g(930);function c(B,X,le,q,ne){return new A(B,X,le,q,ne)}class A extends r.Lv{constructor(X,le,q,ne,ie,j){super(X),this.onFinalize=ie,this.shouldUnsubscribe=j,this._next=le?function(ee){try{le(ee)}catch(ae){X.error(ae)}}:super._next,this._error=ne?function(ee){try{ne(ee)}catch(ae){X.error(ae)}finally{this.unsubscribe()}}:super._error,this._complete=q?function(){try{q()}catch(ee){X.error(ee)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var X;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:le}=this;super.unsubscribe(),!le&&(null===(X=this.onFinalize)||void 0===X||X.call(this))}}}},3601:(Dt,Se,g)=>{g.d(Se,{e:()=>q});var r=g(4986),c=g(4482),A=g(8421),B=g(5403),le=g(2805);function q(ne,ie=r.z){return function X(ne){return(0,c.e)((ie,j)=>{let ee=!1,ae=null,je=null,Ee=!1;const Le=()=>{if(je?.unsubscribe(),je=null,ee){ee=!1;const he=ae;ae=null,j.next(he)}Ee&&j.complete()},Ne=()=>{je=null,Ee&&j.complete()};ie.subscribe((0,B.x)(j,he=>{ee=!0,ae=he,je||(0,A.Xf)(ne(he)).subscribe(je=(0,B.x)(j,Le,Ne))},()=>{Ee=!0,(!ee||!je||je.closed)&&j.complete()}))})}(()=>(0,le.H)(ne,ie))}},4351:(Dt,Se,g)=>{g.d(Se,{b:()=>A});var r=g(5577),c=g(576);function A(B,X){return(0,c.m)(X)?(0,r.z)(B,X,1):(0,r.z)(B,1)}},8372:(Dt,Se,g)=>{g.d(Se,{b:()=>B});var r=g(4986),c=g(4482),A=g(5403);function B(X,le=r.z){return(0,c.e)((q,ne)=>{let ie=null,j=null,ee=null;const ae=()=>{if(ie){ie.unsubscribe(),ie=null;const Ee=j;j=null,ne.next(Ee)}};function je(){const Ee=ee+X,Le=le.now();if(Le<Ee)return ie=this.schedule(void 0,Ee-Le),void ne.add(ie);ae()}q.subscribe((0,A.x)(ne,Ee=>{j=Ee,ee=le.now(),ie||(ie=le.schedule(je,X),ne.add(ie))},()=>{ae(),ne.complete()},void 0,()=>{j=ie=null}))})}},6590:(Dt,Se,g)=>{g.d(Se,{d:()=>A});var r=g(4482),c=g(5403);function A(B){return(0,r.e)((X,le)=>{let q=!1;X.subscribe((0,c.x)(le,ne=>{q=!0,le.next(ne)},()=>{q||le.next(B),le.complete()}))})}},1005:(Dt,Se,g)=>{g.d(Se,{g:()=>je});var r=g(4986),c=g(7272),A=g(5698),B=g(4482),X=g(5403),le=g(5032),ne=g(9718),ie=g(5577),j=g(8421);function ee(Ee,Le){return Le?Ne=>(0,c.z)(Le.pipe((0,A.q)(1),function q(){return(0,B.e)((Ee,Le)=>{Ee.subscribe((0,X.x)(Le,le.Z))})}()),Ne.pipe(ee(Ee))):(0,ie.z)((Ne,he)=>(0,j.Xf)(Ee(Ne,he)).pipe((0,A.q)(1),(0,ne.h)(Ne)))}var ae=g(2805);function je(Ee,Le=r.z){const Ne=(0,ae.H)(Ee,Le);return ee(()=>Ne)}},1884:(Dt,Se,g)=>{g.d(Se,{x:()=>B});var r=g(4671),c=g(4482),A=g(5403);function B(le,q=r.y){return le=le??X,(0,c.e)((ne,ie)=>{let j,ee=!0;ne.subscribe((0,A.x)(ie,ae=>{const je=q(ae);(ee||!le(j,je))&&(ee=!1,j=je,ie.next(ae))}))})}function X(le,q){return le===q}},9300:(Dt,Se,g)=>{g.d(Se,{h:()=>A});var r=g(4482),c=g(5403);function A(B,X){return(0,r.e)((le,q)=>{let ne=0;le.subscribe((0,c.x)(q,ie=>B.call(X,ie,ne++)&&q.next(ie)))})}},8746:(Dt,Se,g)=>{g.d(Se,{x:()=>c});var r=g(4482);function c(A){return(0,r.e)((B,X)=>{try{B.subscribe(X)}finally{X.add(A)}})}},590:(Dt,Se,g)=>{g.d(Se,{P:()=>q});var r=g(6805),c=g(9300),A=g(5698),B=g(6590),X=g(8068),le=g(4671);function q(ne,ie){const j=arguments.length>=2;return ee=>ee.pipe(ne?(0,c.h)((ae,je)=>ne(ae,je,ee)):le.y,(0,A.q)(1),j?(0,B.d)(ie):(0,X.T)(()=>new r.K))}},4004:(Dt,Se,g)=>{g.d(Se,{U:()=>A});var r=g(4482),c=g(5403);function A(B,X){return(0,r.e)((le,q)=>{let ne=0;le.subscribe((0,c.x)(q,ie=>{q.next(B.call(X,ie,ne++))}))})}},9718:(Dt,Se,g)=>{g.d(Se,{h:()=>c});var r=g(4004);function c(A){return(0,r.U)(()=>A)}},8189:(Dt,Se,g)=>{g.d(Se,{J:()=>A});var r=g(5577),c=g(4671);function A(B=1/0){return(0,r.z)(c.y,B)}},5577:(Dt,Se,g)=>{g.d(Se,{z:()=>ne});var r=g(4004),c=g(8421),A=g(4482),B=g(9672),X=g(5403),q=g(576);function ne(ie,j,ee=1/0){return(0,q.m)(j)?ne((ae,je)=>(0,r.U)((Ee,Le)=>j(ae,Ee,je,Le))((0,c.Xf)(ie(ae,je))),ee):("number"==typeof j&&(ee=j),(0,A.e)((ae,je)=>function le(ie,j,ee,ae,je,Ee,Le,Ne){const he=[];let Re=0,ke=0,tt=!1;const ye=()=>{tt&&!he.length&&!Re&&j.complete()},ue=Ce=>Re<ae?we(Ce):he.push(Ce),we=Ce=>{Ee&&j.next(Ce),Re++;let Ue=!1;(0,c.Xf)(ee(Ce,ke++)).subscribe((0,X.x)(j,Te=>{je?.(Te),Ee?ue(Te):j.next(Te)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(Re--;he.length&&Re<ae;){const Te=he.shift();Le?(0,B.f)(j,Le,()=>we(Te)):we(Te)}ye()}catch(Te){j.error(Te)}}))};return ie.subscribe((0,X.x)(j,ue,()=>{tt=!0,ye()})),()=>{Ne?.()}}(ae,je,ie,ee)))}},5363:(Dt,Se,g)=>{g.d(Se,{Q:()=>B});var r=g(9672),c=g(4482),A=g(5403);function B(X,le=0){return(0,c.e)((q,ne)=>{q.subscribe((0,A.x)(ne,ie=>(0,r.f)(ne,X,()=>ne.next(ie),le),()=>(0,r.f)(ne,X,()=>ne.complete(),le),ie=>(0,r.f)(ne,X,()=>ne.error(ie),le)))})}},8343:(Dt,Se,g)=>{g.d(Se,{x:()=>A});var r=g(4482),c=g(5403);function A(){return(0,r.e)((B,X)=>{let le=null;B._refCount++;const q=(0,c.x)(X,void 0,void 0,void 0,()=>{if(!B||B._refCount<=0||0<--B._refCount)return void(le=null);const ne=B._connection,ie=le;le=null,ne&&(!ie||ne===ie)&&ne.unsubscribe(),X.unsubscribe()});B.subscribe(q),q.closed||(le=B.connect())})}},3099:(Dt,Se,g)=>{g.d(Se,{B:()=>X});var r=g(8421),c=g(7579),A=g(930),B=g(4482);function X(q={}){const{connector:ne=(()=>new c.x),resetOnError:ie=!0,resetOnComplete:j=!0,resetOnRefCountZero:ee=!0}=q;return ae=>{let je,Ee,Le,Ne=0,he=!1,Re=!1;const ke=()=>{Ee?.unsubscribe(),Ee=void 0},tt=()=>{ke(),je=Le=void 0,he=Re=!1},ye=()=>{const ue=je;tt(),ue?.unsubscribe()};return(0,B.e)((ue,we)=>{Ne++,!Re&&!he&&ke();const Ce=Le=Le??ne();we.add(()=>{Ne--,0===Ne&&!Re&&!he&&(Ee=le(ye,ee))}),Ce.subscribe(we),!je&&Ne>0&&(je=new A.Hp({next:Ue=>Ce.next(Ue),error:Ue=>{Re=!0,ke(),Ee=le(tt,ie,Ue),Ce.error(Ue)},complete:()=>{he=!0,ke(),Ee=le(tt,j),Ce.complete()}}),(0,r.Xf)(ue).subscribe(je))})(ae)}}function le(q,ne,...ie){if(!0===ne)return void q();if(!1===ne)return;const j=new A.Hp({next:()=>{j.unsubscribe(),q()}});return(0,r.Xf)(ne(...ie)).subscribe(j)}},8675:(Dt,Se,g)=>{g.d(Se,{O:()=>B});var r=g(7272),c=g(3269),A=g(4482);function B(...X){const le=(0,c.yG)(X);return(0,A.e)((q,ne)=>{(le?(0,r.z)(X,q,le):(0,r.z)(X,q)).subscribe(ne)})}},9468:(Dt,Se,g)=>{g.d(Se,{R:()=>c});var r=g(4482);function c(A,B=0){return(0,r.e)((X,le)=>{le.add(A.schedule(()=>X.subscribe(le),B))})}},3900:(Dt,Se,g)=>{g.d(Se,{w:()=>B});var r=g(8421),c=g(4482),A=g(5403);function B(X,le){return(0,c.e)((q,ne)=>{let ie=null,j=0,ee=!1;const ae=()=>ee&&!ie&&ne.complete();q.subscribe((0,A.x)(ne,je=>{ie?.unsubscribe();let Ee=0;const Le=j++;(0,r.Xf)(X(je,Le)).subscribe(ie=(0,A.x)(ne,Ne=>ne.next(le?le(je,Ne,Le,Ee++):Ne),()=>{ie=null,ae()}))},()=>{ee=!0,ae()}))})}},5698:(Dt,Se,g)=>{g.d(Se,{q:()=>B});var r=g(515),c=g(4482),A=g(5403);function B(X){return X<=0?()=>r.E:(0,c.e)((le,q)=>{let ne=0;le.subscribe((0,A.x)(q,ie=>{++ne<=X&&(q.next(ie),X<=ne&&q.complete())}))})}},2722:(Dt,Se,g)=>{g.d(Se,{R:()=>X});var r=g(4482),c=g(5403),A=g(8421),B=g(5032);function X(le){return(0,r.e)((q,ne)=>{(0,A.Xf)(le).subscribe((0,c.x)(ne,()=>ne.complete(),B.Z)),!ne.closed&&q.subscribe(ne)})}},8505:(Dt,Se,g)=>{g.d(Se,{b:()=>X});var r=g(576),c=g(4482),A=g(5403),B=g(4671);function X(le,q,ne){const ie=(0,r.m)(le)||q||ne?{next:le,error:q,complete:ne}:le;return ie?(0,c.e)((j,ee)=>{var ae;null===(ae=ie.subscribe)||void 0===ae||ae.call(ie);let je=!0;j.subscribe((0,A.x)(ee,Ee=>{var Le;null===(Le=ie.next)||void 0===Le||Le.call(ie,Ee),ee.next(Ee)},()=>{var Ee;je=!1,null===(Ee=ie.complete)||void 0===Ee||Ee.call(ie),ee.complete()},Ee=>{var Le;je=!1,null===(Le=ie.error)||void 0===Le||Le.call(ie,Ee),ee.error(Ee)},()=>{var Ee,Le;je&&(null===(Ee=ie.unsubscribe)||void 0===Ee||Ee.call(ie)),null===(Le=ie.finalize)||void 0===Le||Le.call(ie)}))}):B.y}},8068:(Dt,Se,g)=>{g.d(Se,{T:()=>B});var r=g(6805),c=g(4482),A=g(5403);function B(le=X){return(0,c.e)((q,ne)=>{let ie=!1;q.subscribe((0,A.x)(ne,j=>{ie=!0,ne.next(j)},()=>ie?ne.complete():ne.error(le())))})}function X(){return new r.K}},4408:(Dt,Se,g)=>{g.d(Se,{o:()=>X});var r=g(727);class c extends r.w0{constructor(q,ne){super()}schedule(q,ne=0){return this}}const A={setInterval(le,q,...ne){const{delegate:ie}=A;return ie?.setInterval?ie.setInterval(le,q,...ne):setInterval(le,q,...ne)},clearInterval(le){const{delegate:q}=A;return(q?.clearInterval||clearInterval)(le)},delegate:void 0};var B=g(8737);class X extends c{constructor(q,ne){super(q,ne),this.scheduler=q,this.work=ne,this.pending=!1}schedule(q,ne=0){var ie;if(this.closed)return this;this.state=q;const j=this.id,ee=this.scheduler;return null!=j&&(this.id=this.recycleAsyncId(ee,j,ne)),this.pending=!0,this.delay=ne,this.id=null!==(ie=this.id)&&void 0!==ie?ie:this.requestAsyncId(ee,this.id,ne),this}requestAsyncId(q,ne,ie=0){return A.setInterval(q.flush.bind(q,this),ie)}recycleAsyncId(q,ne,ie=0){if(null!=ie&&this.delay===ie&&!1===this.pending)return ne;null!=ne&&A.clearInterval(ne)}execute(q,ne){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ie=this._execute(q,ne);if(ie)return ie;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,ne){let j,ie=!1;try{this.work(q)}catch(ee){ie=!0,j=ee||new Error("Scheduled action threw falsy error")}if(ie)return this.unsubscribe(),j}unsubscribe(){if(!this.closed){const{id:q,scheduler:ne}=this,{actions:ie}=ne;this.work=this.state=this.scheduler=null,this.pending=!1,(0,B.P)(ie,this),null!=q&&(this.id=this.recycleAsyncId(ne,q,null)),this.delay=null,super.unsubscribe()}}}},7565:(Dt,Se,g)=>{g.d(Se,{v:()=>A});var r=g(6063);class c{constructor(X,le=c.now){this.schedulerActionCtor=X,this.now=le}schedule(X,le=0,q){return new this.schedulerActionCtor(this,X).schedule(q,le)}}c.now=r.l.now;class A extends c{constructor(X,le=c.now){super(X,le),this.actions=[],this._active=!1}flush(X){const{actions:le}=this;if(this._active)return void le.push(X);let q;this._active=!0;do{if(q=X.execute(X.state,X.delay))break}while(X=le.shift());if(this._active=!1,q){for(;X=le.shift();)X.unsubscribe();throw q}}}},6406:(Dt,Se,g)=>{g.d(Se,{Z:()=>q});var r=g(4408),c=g(727);const A={schedule(ie){let j=requestAnimationFrame,ee=cancelAnimationFrame;const{delegate:ae}=A;ae&&(j=ae.requestAnimationFrame,ee=ae.cancelAnimationFrame);const je=j(Ee=>{ee=void 0,ie(Ee)});return new c.w0(()=>ee?.(je))},requestAnimationFrame(...ie){const{delegate:j}=A;return(j?.requestAnimationFrame||requestAnimationFrame)(...ie)},cancelAnimationFrame(...ie){const{delegate:j}=A;return(j?.cancelAnimationFrame||cancelAnimationFrame)(...ie)},delegate:void 0};var X=g(7565);const q=new class le extends X.v{flush(j){this._active=!0;const ee=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let je;j=j||ae.shift();do{if(je=j.execute(j.state,j.delay))break}while((j=ae[0])&&j.id===ee&&ae.shift());if(this._active=!1,je){for(;(j=ae[0])&&j.id===ee&&ae.shift();)j.unsubscribe();throw je}}}(class B extends r.o{constructor(j,ee){super(j,ee),this.scheduler=j,this.work=ee}requestAsyncId(j,ee,ae=0){return null!==ae&&ae>0?super.requestAsyncId(j,ee,ae):(j.actions.push(this),j._scheduled||(j._scheduled=A.requestAnimationFrame(()=>j.flush(void 0))))}recycleAsyncId(j,ee,ae=0){var je;if(null!=ae?ae>0:this.delay>0)return super.recycleAsyncId(j,ee,ae);const{actions:Ee}=j;null!=ee&&(null===(je=Ee[Ee.length-1])||void 0===je?void 0:je.id)!==ee&&(A.cancelAnimationFrame(ee),j._scheduled=void 0)}})},3101:(Dt,Se,g)=>{g.d(Se,{E:()=>Ee});var r=g(4408);let A,c=1;const B={};function X(Ne){return Ne in B&&(delete B[Ne],!0)}const le={setImmediate(Ne){const he=c++;return B[he]=!0,A||(A=Promise.resolve()),A.then(()=>X(he)&&Ne()),he},clearImmediate(Ne){X(Ne)}},{setImmediate:ne,clearImmediate:ie}=le,j={setImmediate(...Ne){const{delegate:he}=j;return(he?.setImmediate||ne)(...Ne)},clearImmediate(Ne){const{delegate:he}=j;return(he?.clearImmediate||ie)(Ne)},delegate:void 0};var ae=g(7565);const Ee=new class je extends ae.v{flush(he){this._active=!0;const Re=this._scheduled;this._scheduled=void 0;const{actions:ke}=this;let tt;he=he||ke.shift();do{if(tt=he.execute(he.state,he.delay))break}while((he=ke[0])&&he.id===Re&&ke.shift());if(this._active=!1,tt){for(;(he=ke[0])&&he.id===Re&&ke.shift();)he.unsubscribe();throw tt}}}(class ee extends r.o{constructor(he,Re){super(he,Re),this.scheduler=he,this.work=Re}requestAsyncId(he,Re,ke=0){return null!==ke&&ke>0?super.requestAsyncId(he,Re,ke):(he.actions.push(this),he._scheduled||(he._scheduled=j.setImmediate(he.flush.bind(he,void 0))))}recycleAsyncId(he,Re,ke=0){var tt;if(null!=ke?ke>0:this.delay>0)return super.recycleAsyncId(he,Re,ke);const{actions:ye}=he;null!=Re&&(null===(tt=ye[ye.length-1])||void 0===tt?void 0:tt.id)!==Re&&(j.clearImmediate(Re),he._scheduled=void 0)}})},4986:(Dt,Se,g)=>{g.d(Se,{P:()=>B,z:()=>A});var r=g(4408);const A=new(g(7565).v)(r.o),B=A},6063:(Dt,Se,g)=>{g.d(Se,{l:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},3410:(Dt,Se,g)=>{g.d(Se,{z:()=>r});const r={setTimeout(c,A,...B){const{delegate:X}=r;return X?.setTimeout?X.setTimeout(c,A,...B):setTimeout(c,A,...B)},clearTimeout(c){const{delegate:A}=r;return(A?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(Dt,Se,g)=>{g.d(Se,{h:()=>c});const c=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Dt,Se,g)=>{g.d(Se,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Dt,Se,g)=>{g.d(Se,{K:()=>c});const c=(0,g(3888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Dt,Se,g)=>{g.d(Se,{_6:()=>le,jO:()=>B,yG:()=>X});var r=g(576),c=g(3532);function A(q){return q[q.length-1]}function B(q){return(0,r.m)(A(q))?q.pop():void 0}function X(q){return(0,c.K)(A(q))?q.pop():void 0}function le(q,ne){return"number"==typeof A(q)?q.pop():ne}},4742:(Dt,Se,g)=>{g.d(Se,{D:()=>X});const{isArray:r}=Array,{getPrototypeOf:c,prototype:A,keys:B}=Object;function X(q){if(1===q.length){const ne=q[0];if(r(ne))return{args:ne,keys:null};if(function le(q){return q&&"object"==typeof q&&c(q)===A}(ne)){const ie=B(ne);return{args:ie.map(j=>ne[j]),keys:ie}}}return{args:q,keys:null}}},8737:(Dt,Se,g)=>{function r(c,A){if(c){const B=c.indexOf(A);0<=B&&c.splice(B,1)}}g.d(Se,{P:()=>r})},3888:(Dt,Se,g)=>{function r(c){const B=c(X=>{Error.call(X),X.stack=(new Error).stack});return B.prototype=Object.create(Error.prototype),B.prototype.constructor=B,B}g.d(Se,{d:()=>r})},1810:(Dt,Se,g)=>{function r(c,A){return c.reduce((B,X,le)=>(B[X]=A[le],B),{})}g.d(Se,{n:()=>r})},2806:(Dt,Se,g)=>{g.d(Se,{O:()=>B,x:()=>A});var r=g(2416);let c=null;function A(X){if(r.v.useDeprecatedSynchronousErrorHandling){const le=!c;if(le&&(c={errorThrown:!1,error:null}),X(),le){const{errorThrown:q,error:ne}=c;if(c=null,q)throw ne}}else X()}function B(X){r.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=X)}},9672:(Dt,Se,g)=>{function r(c,A,B,X=0,le=!1){const q=A.schedule(function(){B(),le?c.add(this.schedule(null,X)):this.unsubscribe()},X);if(c.add(q),!le)return q}g.d(Se,{f:()=>r})},4671:(Dt,Se,g)=>{function r(c){return c}g.d(Se,{y:()=>r})},1144:(Dt,Se,g)=>{g.d(Se,{z:()=>r});const r=c=>c&&"number"==typeof c.length&&"function"!=typeof c},2206:(Dt,Se,g)=>{g.d(Se,{D:()=>c});var r=g(576);function c(A){return Symbol.asyncIterator&&(0,r.m)(A?.[Symbol.asyncIterator])}},1165:(Dt,Se,g)=>{function r(c){return c instanceof Date&&!isNaN(c)}g.d(Se,{q:()=>r})},576:(Dt,Se,g)=>{function r(c){return"function"==typeof c}g.d(Se,{m:()=>r})},3670:(Dt,Se,g)=>{g.d(Se,{c:()=>A});var r=g(8822),c=g(576);function A(B){return(0,c.m)(B[r.L])}},6495:(Dt,Se,g)=>{g.d(Se,{T:()=>A});var r=g(2202),c=g(576);function A(B){return(0,c.m)(B?.[r.h])}},8239:(Dt,Se,g)=>{g.d(Se,{t:()=>c});var r=g(576);function c(A){return(0,r.m)(A?.then)}},3260:(Dt,Se,g)=>{g.d(Se,{L:()=>B,Q:()=>A});var r=g(655),c=g(576);function A(X){return(0,r.FC)(this,arguments,function*(){const q=X.getReader();try{for(;;){const{value:ne,done:ie}=yield(0,r.qq)(q.read());if(ie)return yield(0,r.qq)(void 0);yield yield(0,r.qq)(ne)}}finally{q.releaseLock()}})}function B(X){return(0,c.m)(X?.getReader)}},3532:(Dt,Se,g)=>{g.d(Se,{K:()=>c});var r=g(576);function c(A){return A&&(0,r.m)(A.schedule)}},4482:(Dt,Se,g)=>{g.d(Se,{A:()=>c,e:()=>A});var r=g(576);function c(B){return(0,r.m)(B?.lift)}function A(B){return X=>{if(c(X))return X.lift(function(le){try{return B(le,this)}catch(q){this.error(q)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Dt,Se,g)=>{g.d(Se,{Z:()=>B});var r=g(4004);const{isArray:c}=Array;function B(X){return(0,r.U)(le=>function A(X,le){return c(le)?X(...le):X(le)}(X,le))}},5032:(Dt,Se,g)=>{function r(){}g.d(Se,{Z:()=>r})},9635:(Dt,Se,g)=>{g.d(Se,{U:()=>A,z:()=>c});var r=g(4671);function c(...B){return A(B)}function A(B){return 0===B.length?r.y:1===B.length?B[0]:function(le){return B.reduce((q,ne)=>ne(q),le)}}},7849:(Dt,Se,g)=>{g.d(Se,{h:()=>A});var r=g(2416),c=g(3410);function A(B){c.z.setTimeout(()=>{const{onUnhandledError:X}=r.v;if(!X)throw B;X(B)})}},4532:(Dt,Se,g)=>{function r(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.`)}g.d(Se,{z:()=>r})},655:(Dt,Se,g)=>{function B(We,it){var ct={};for(var gt in We)Object.prototype.hasOwnProperty.call(We,gt)&&it.indexOf(gt)<0&&(ct[gt]=We[gt]);if(null!=We&&"function"==typeof Object.getOwnPropertySymbols){var bt=0;for(gt=Object.getOwnPropertySymbols(We);bt<gt.length;bt++)it.indexOf(gt[bt])<0&&Object.prototype.propertyIsEnumerable.call(We,gt[bt])&&(ct[gt[bt]]=We[gt[bt]])}return ct}function ae(We,it,ct,gt){return new(ct||(ct=Promise))(function(wt,Ot){function ve(te){try{L(gt.next(te))}catch(Ve){Ot(Ve)}}function qe(te){try{L(gt.throw(te))}catch(Ve){Ot(Ve)}}function L(te){te.done?wt(te.value):function bt(wt){return wt instanceof ct?wt:new ct(function(Ot){Ot(wt)})}(te.value).then(ve,qe)}L((gt=gt.apply(We,it||[])).next())})}function ye(We){return this instanceof ye?(this.v=We,this):new ye(We)}function ue(We,it,ct){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var bt,gt=ct.apply(We,it||[]),wt=[];return bt={},Ot("next"),Ot("throw"),Ot("return"),bt[Symbol.asyncIterator]=function(){return this},bt;function Ot(ut){gt[ut]&&(bt[ut]=function(Bt){return new Promise(function(Jt,Vt){wt.push([ut,Bt,Jt,Vt])>1||ve(ut,Bt)})})}function ve(ut,Bt){try{!function qe(ut){ut.value instanceof ye?Promise.resolve(ut.value.v).then(L,te):Ve(wt[0][2],ut)}(gt[ut](Bt))}catch(Jt){Ve(wt[0][3],Jt)}}function L(ut){ve("next",ut)}function te(ut){ve("throw",ut)}function Ve(ut,Bt){ut(Bt),wt.shift(),wt.length&&ve(wt[0][0],wt[0][1])}}function Ce(We){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ct,it=We[Symbol.asyncIterator];return it?it.call(We):(We=function Ne(We){var it="function"==typeof Symbol&&Symbol.iterator,ct=it&&We[it],gt=0;if(ct)return ct.call(We);if(We&&"number"==typeof We.length)return{next:function(){return We&>>=We.length&&(We=void 0),{value:We&&We[gt++],done:!We}}};throw new TypeError(it?"Object is not iterable.":"Symbol.iterator is not defined.")}(We),ct={},gt("next"),gt("throw"),gt("return"),ct[Symbol.asyncIterator]=function(){return this},ct);function gt(wt){ct[wt]=We[wt]&&function(Ot){return new Promise(function(ve,qe){!function bt(wt,Ot,ve,qe){Promise.resolve(qe).then(function(L){wt({value:L,done:ve})},Ot)}(ve,qe,(Ot=We[wt](Ot)).done,Ot.value)})}}}g.d(Se,{FC:()=>ue,KL:()=>Ce,_T:()=>B,mG:()=>ae,qq:()=>ye})},7340:(Dt,Se,g)=>{g.d(Se,{F4:()=>j,IO:()=>Le,LC:()=>c,SB:()=>ie,X$:()=>B,ZE:()=>ke,ZN:()=>Re,_j:()=>r,eR:()=>ee,jt:()=>X,k1:()=>tt,l3:()=>A,oB:()=>ne,pV:()=>je,ru:()=>le,vP:()=>q});class r{}class c{}const A="*";function B(ye,ue){return{type:7,name:ye,definitions:ue,options:{}}}function X(ye,ue=null){return{type:4,styles:ue,timings:ye}}function le(ye,ue=null){return{type:3,steps:ye,options:ue}}function q(ye,ue=null){return{type:2,steps:ye,options:ue}}function ne(ye){return{type:6,styles:ye,offset:null}}function ie(ye,ue,we){return{type:0,name:ye,styles:ue,options:we}}function j(ye){return{type:5,steps:ye}}function ee(ye,ue,we=null){return{type:1,expr:ye,animation:ue,options:we}}function je(ye=null){return{type:9,options:ye}}function Le(ye,ue,we=null){return{type:11,selector:ye,animation:ue,options:we}}function he(ye){Promise.resolve().then(ye)}class Re{constructor(ue=0,we=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=ue+we}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ue=>ue()),this._onDoneFns=[])}onStart(ue){this._originalOnStartFns.push(ue),this._onStartFns.push(ue)}onDone(ue){this._originalOnDoneFns.push(ue),this._onDoneFns.push(ue)}onDestroy(ue){this._onDestroyFns.push(ue)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){he(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ue=>ue()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ue=>ue()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ue){this._position=this.totalTime?ue*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ue){const we="start"==ue?this._onStartFns:this._onDoneFns;we.forEach(Ce=>Ce()),we.length=0}}class ke{constructor(ue){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ue;let we=0,Ce=0,Ue=0;const Te=this.players.length;0==Te?he(()=>this._onFinish()):this.players.forEach(ze=>{ze.onDone(()=>{++we==Te&&this._onFinish()}),ze.onDestroy(()=>{++Ce==Te&&this._onDestroy()}),ze.onStart(()=>{++Ue==Te&&this._onStart()})}),this.totalTime=this.players.reduce((ze,ht)=>Math.max(ze,ht.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ue=>ue()),this._onDoneFns=[])}init(){this.players.forEach(ue=>ue.init())}onStart(ue){this._onStartFns.push(ue)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ue=>ue()),this._onStartFns=[])}onDone(ue){this._onDoneFns.push(ue)}onDestroy(ue){this._onDestroyFns.push(ue)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ue=>ue.play())}pause(){this.players.forEach(ue=>ue.pause())}restart(){this.players.forEach(ue=>ue.restart())}finish(){this._onFinish(),this.players.forEach(ue=>ue.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ue=>ue.destroy()),this._onDestroyFns.forEach(ue=>ue()),this._onDestroyFns=[])}reset(){this.players.forEach(ue=>ue.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ue){const we=ue*this.totalTime;this.players.forEach(Ce=>{const Ue=Ce.totalTime?Math.min(1,we/Ce.totalTime):1;Ce.setPosition(Ue)})}getPosition(){const ue=this.players.reduce((we,Ce)=>null===we||Ce.totalTime>we.totalTime?Ce:we,null);return null!=ue?ue.getPosition():0}beforeDestroy(){this.players.forEach(ue=>{ue.beforeDestroy&&ue.beforeDestroy()})}triggerCallback(ue){const we="start"==ue?this._onStartFns:this._onDoneFns;we.forEach(Ce=>Ce()),we.length=0}}const tt="!"},7188:(Dt,Se,g)=>{g.d(Se,{rt:()=>p,s1:()=>Vt,tE:()=>xe,qV:()=>De,qm:()=>k,ic:()=>In,X6:()=>Ut,yG:()=>An});var r=g(6895),c=g(4650),A=g(3353),B=g(7579),X=g(727),le=g(1135),q=g(9646),ne=g(9521),ie=g(8505),j=g(8372),ee=g(9300),ae=g(4004),je=g(5698);function Ee(_){return(0,ee.h)((I,P)=>_<=P)}var Le=g(1884),Ne=g(2722),he=g(1281);let Re=(()=>{class _{create(P){return typeof MutationObserver>"u"?null:new MutationObserver(P)}}return _.\u0275fac=function(P){return new(P||_)},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),ye=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({providers:[Re]}),_})();var ue=g(9841),we=g(7272),Ce=g(9751),Ue=g(8675);const ze=new Set;let ht,vt=(()=>{class _{constructor(P){this._platform=P,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Mt}matchMedia(P){return(this._platform.WEBKIT||this._platform.BLINK)&&function Nt(_){if(!ze.has(_))try{ht||(ht=document.createElement("style"),ht.setAttribute("type","text/css"),document.head.appendChild(ht)),ht.sheet&&(ht.sheet.insertRule(`@media ${_} {body{ }}`,0),ze.add(_))}catch(I){console.error(I)}}(P),this._matchMedia(P)}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Mt(_){return{matches:"all"===_||""===_,media:_,addListener:()=>{},removeListener:()=>{}}}let We=(()=>{class _{constructor(P,re){this._mediaMatcher=P,this._zone=re,this._queries=new Map,this._destroySubject=new B.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(P){return it((0,he.Eq)(P)).some(Be=>this._registerQuery(Be).mql.matches)}observe(P){const Be=it((0,he.Eq)(P)).map(Lt=>this._registerQuery(Lt).observable);let yt=(0,ue.a)(Be);return yt=(0,we.z)(yt.pipe((0,je.q)(1)),yt.pipe(Ee(1),(0,j.b)(0))),yt.pipe((0,ae.U)(Lt=>{const fn={matches:!1,breakpoints:{}};return Lt.forEach(({matches:Mn,query:ft})=>{fn.matches=fn.matches||Mn,fn.breakpoints[ft]=Mn}),fn}))}_registerQuery(P){if(this._queries.has(P))return this._queries.get(P);const re=this._mediaMatcher.matchMedia(P),yt={observable:new Ce.y(Lt=>{const fn=Mn=>this._zone.run(()=>Lt.next(Mn));return re.addListener(fn),()=>{re.removeListener(fn)}}).pipe((0,Ue.O)(re),(0,ae.U)(({matches:Lt})=>({query:P,matches:Lt})),(0,Ne.R)(this._destroySubject)),mql:re};return this._queries.set(P,yt),yt}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(vt),c.LFG(c.R0b))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function it(_){return _.map(I=>I.split(",")).reduce((I,P)=>I.concat(P)).map(I=>I.trim())}class Jt{constructor(I){this._items=I,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new B.x,this._typeaheadSubscription=X.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=P=>P.disabled,this._pressedLetters=[],this.tabOut=new B.x,this.change=new B.x,I instanceof c.n_E&&(this._itemChangesSubscription=I.changes.subscribe(P=>{if(this._activeItem){const Be=P.toArray().indexOf(this._activeItem);Be>-1&&Be!==this._activeItemIndex&&(this._activeItemIndex=Be)}}))}skipPredicate(I){return this._skipPredicateFn=I,this}withWrap(I=!0){return this._wrap=I,this}withVerticalOrientation(I=!0){return this._vertical=I,this}withHorizontalOrientation(I){return this._horizontal=I,this}withAllowedModifierKeys(I){return this._allowedModifierKeys=I,this}withTypeAhead(I=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ie.b)(P=>this._pressedLetters.push(P)),(0,j.b)(I),(0,ee.h)(()=>this._pressedLetters.length>0),(0,ae.U)(()=>this._pressedLetters.join(""))).subscribe(P=>{const re=this._getItemsArray();for(let Be=1;Be<re.length+1;Be++){const yt=(this._activeItemIndex+Be)%re.length,Lt=re[yt];if(!this._skipPredicateFn(Lt)&&0===Lt.getLabel().toUpperCase().trim().indexOf(P)){this.setActiveItem(yt);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(I=!0){return this._homeAndEnd=I,this}withPageUpDown(I=!0,P=10){return this._pageUpAndDown={enabled:I,delta:P},this}setActiveItem(I){const P=this._activeItem;this.updateActiveItem(I),this._activeItem!==P&&this.change.next(this._activeItemIndex)}onKeydown(I){const P=I.keyCode,Be=["altKey","ctrlKey","metaKey","shiftKey"].every(yt=>!I[yt]||this._allowedModifierKeys.indexOf(yt)>-1);switch(P){case ne.Mf:return void this.tabOut.next();case ne.JH:if(this._vertical&&Be){this.setNextItemActive();break}return;case ne.LH:if(this._vertical&&Be){this.setPreviousItemActive();break}return;case ne.SV:if(this._horizontal&&Be){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ne.oh:if(this._horizontal&&Be){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ne.Sd:if(this._homeAndEnd&&Be){this.setFirstItemActive();break}return;case ne.uR:if(this._homeAndEnd&&Be){this.setLastItemActive();break}return;case ne.Ku:if(this._pageUpAndDown.enabled&&Be){const yt=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(yt>0?yt:0,1);break}return;case ne.VM:if(this._pageUpAndDown.enabled&&Be){const yt=this._activeItemIndex+this._pageUpAndDown.delta,Lt=this._getItemsArray().length;this._setActiveItemByIndex(yt<Lt?yt:Lt-1,-1);break}return;default:return void((Be||(0,ne.Vb)(I,"shiftKey"))&&(I.key&&1===I.key.length?this._letterKeyStream.next(I.key.toLocaleUpperCase()):(P>=ne.A&&P<=ne.Z||P>=ne.xE&&P<=ne.aO)&&this._letterKeyStream.next(String.fromCharCode(P))))}this._pressedLetters=[],I.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(I){const P=this._getItemsArray(),re="number"==typeof I?I:P.indexOf(I);this._activeItem=P[re]??null,this._activeItemIndex=re}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(I){this._wrap?this._setActiveInWrapMode(I):this._setActiveInDefaultMode(I)}_setActiveInWrapMode(I){const P=this._getItemsArray();for(let re=1;re<=P.length;re++){const Be=(this._activeItemIndex+I*re+P.length)%P.length;if(!this._skipPredicateFn(P[Be]))return void this.setActiveItem(Be)}}_setActiveInDefaultMode(I){this._setActiveItemByIndex(this._activeItemIndex+I,I)}_setActiveItemByIndex(I,P){const re=this._getItemsArray();if(re[I]){for(;this._skipPredicateFn(re[I]);)if(!re[I+=P])return;this.setActiveItem(I)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class Vt extends Jt{setActiveItem(I){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(I),this.activeItem&&this.activeItem.setActiveStyles()}}let In=(()=>{class _{constructor(P){this._platform=P}isDisabled(P){return P.hasAttribute("disabled")}isVisible(P){return function Fn(_){return!!(_.offsetWidth||_.offsetHeight||"function"==typeof _.getClientRects&&_.getClientRects().length)}(P)&&"visible"===getComputedStyle(P).visibility}isTabbable(P){if(!this._platform.isBrowser)return!1;const re=function Pn(_){try{return _.frameElement}catch{return null}}(function It(_){return _.ownerDocument&&_.ownerDocument.defaultView||window}(P));if(re&&(-1===st(re)||!this.isVisible(re)))return!1;let Be=P.nodeName.toLowerCase(),yt=st(P);return P.hasAttribute("contenteditable")?-1!==yt:!("iframe"===Be||"object"===Be||this._platform.WEBKIT&&this._platform.IOS&&!function At(_){let I=_.nodeName.toLowerCase(),P="input"===I&&_.type;return"text"===P||"password"===P||"select"===I||"textarea"===I}(P))&&("audio"===Be?!!P.hasAttribute("controls")&&-1!==yt:"video"===Be?-1!==yt&&(null!==yt||this._platform.FIREFOX||P.hasAttribute("controls")):P.tabIndex>=0)}isFocusable(P,re){return function $t(_){return!function et(_){return function se(_){return"input"==_.nodeName.toLowerCase()}(_)&&"hidden"==_.type}(_)&&(function an(_){let I=_.nodeName.toLowerCase();return"input"===I||"select"===I||"button"===I||"textarea"===I}(_)||function W(_){return function Ie(_){return"a"==_.nodeName.toLowerCase()}(_)&&_.hasAttribute("href")}(_)||_.hasAttribute("contenteditable")||rt(_))}(P)&&!this.isDisabled(P)&&(re?.ignoreVisibility||this.isVisible(P))}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function rt(_){if(!_.hasAttribute("tabindex")||void 0===_.tabIndex)return!1;let I=_.getAttribute("tabindex");return!(!I||isNaN(parseInt(I,10)))}function st(_){if(!rt(_))return null;const I=parseInt(_.getAttribute("tabindex")||"",10);return isNaN(I)?-1:I}class Tt{get enabled(){return this._enabled}set enabled(I){this._enabled=I,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(I,this._startAnchor),this._toggleAnchorTabIndex(I,this._endAnchor))}constructor(I,P,re,Be,yt=!1){this._element=I,this._checker=P,this._ngZone=re,this._document=Be,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,yt||this.attachAnchors()}destroy(){const I=this._startAnchor,P=this._endAnchor;I&&(I.removeEventListener("focus",this.startAnchorListener),I.remove()),P&&(P.removeEventListener("focus",this.endAnchorListener),P.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(I){return new Promise(P=>{this._executeOnStable(()=>P(this.focusInitialElement(I)))})}focusFirstTabbableElementWhenReady(I){return new Promise(P=>{this._executeOnStable(()=>P(this.focusFirstTabbableElement(I)))})}focusLastTabbableElementWhenReady(I){return new Promise(P=>{this._executeOnStable(()=>P(this.focusLastTabbableElement(I)))})}_getRegionBoundary(I){const P=this._element.querySelectorAll(`[cdk-focus-region-${I}], [cdkFocusRegion${I}], [cdk-focus-${I}]`);return"start"==I?P.length?P[0]:this._getFirstTabbableElement(this._element):P.length?P[P.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(I){const P=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(P){if(!this._checker.isFocusable(P)){const re=this._getFirstTabbableElement(P);return re?.focus(I),!!re}return P.focus(I),!0}return this.focusFirstTabbableElement(I)}focusFirstTabbableElement(I){const P=this._getRegionBoundary("start");return P&&P.focus(I),!!P}focusLastTabbableElement(I){const P=this._getRegionBoundary("end");return P&&P.focus(I),!!P}hasAttached(){return this._hasAttached}_getFirstTabbableElement(I){if(this._checker.isFocusable(I)&&this._checker.isTabbable(I))return I;const P=I.children;for(let re=0;re<P.length;re++){const Be=P[re].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(P[re]):null;if(Be)return Be}return null}_getLastTabbableElement(I){if(this._checker.isFocusable(I)&&this._checker.isTabbable(I))return I;const P=I.children;for(let re=P.length-1;re>=0;re--){const Be=P[re].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(P[re]):null;if(Be)return Be}return null}_createAnchor(){const I=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,I),I.classList.add("cdk-visually-hidden"),I.classList.add("cdk-focus-trap-anchor"),I.setAttribute("aria-hidden","true"),I}_toggleAnchorTabIndex(I,P){I?P.setAttribute("tabindex","0"):P.removeAttribute("tabindex")}toggleAnchors(I){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(I,this._startAnchor),this._toggleAnchorTabIndex(I,this._endAnchor))}_executeOnStable(I){this._ngZone.isStable?I():this._ngZone.onStable.pipe((0,je.q)(1)).subscribe(I)}}let De=(()=>{class _{constructor(P,re,Be){this._checker=P,this._ngZone=re,this._document=Be}create(P,re=!1){return new Tt(P,this._checker,this._ngZone,this._document,re)}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(In),c.LFG(c.R0b),c.LFG(r.K0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Ut(_){return 0===_.buttons||0===_.offsetX&&0===_.offsetY}function An(_){const I=_.touches&&_.touches[0]||_.changedTouches&&_.changedTouches[0];return!(!I||-1!==I.identifier||null!=I.radiusX&&1!==I.radiusX||null!=I.radiusY&&1!==I.radiusY)}const rn=new c.OlP("cdk-input-modality-detector-options"),Tn={ignoreKeys:[ne.zL,ne.jx,ne.b2,ne.MW,ne.JU]},Oe=(0,A.i$)({passive:!0,capture:!0});let J=(()=>{class _{get mostRecentModality(){return this._modality.value}constructor(P,re,Be,yt){this._platform=P,this._mostRecentTarget=null,this._modality=new le.X(null),this._lastTouchMs=0,this._onKeydown=Lt=>{this._options?.ignoreKeys?.some(fn=>fn===Lt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(Lt))},this._onMousedown=Lt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ut(Lt)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(Lt))},this._onTouchstart=Lt=>{An(Lt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(Lt))},this._options={...Tn,...yt},this.modalityDetected=this._modality.pipe(Ee(1)),this.modalityChanged=this.modalityDetected.pipe((0,Le.x)()),P.isBrowser&&re.runOutsideAngular(()=>{Be.addEventListener("keydown",this._onKeydown,Oe),Be.addEventListener("mousedown",this._onMousedown,Oe),Be.addEventListener("touchstart",this._onTouchstart,Oe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Oe),document.removeEventListener("mousedown",this._onMousedown,Oe),document.removeEventListener("touchstart",this._onTouchstart,Oe))}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(rn,8))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const be=new c.OlP("cdk-focus-monitor-default-options"),Je=(0,A.i$)({passive:!0,capture:!0});let xe=(()=>{class _{constructor(P,re,Be,yt,Lt){this._ngZone=P,this._platform=re,this._inputModalityDetector=Be,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new B.x,this._rootNodeFocusAndBlurListener=fn=>{for(let ft=(0,A.sA)(fn);ft;ft=ft.parentElement)"focus"===fn.type?this._onFocus(fn,ft):this._onBlur(fn,ft)},this._document=yt,this._detectionMode=Lt?.detectionMode||0}monitor(P,re=!1){const Be=(0,he.fI)(P);if(!this._platform.isBrowser||1!==Be.nodeType)return(0,q.of)(null);const yt=(0,A.kV)(Be)||this._getDocument(),Lt=this._elementInfo.get(Be);if(Lt)return re&&(Lt.checkChildren=!0),Lt.subject;const fn={checkChildren:re,subject:new B.x,rootNode:yt};return this._elementInfo.set(Be,fn),this._registerGlobalListeners(fn),fn.subject}stopMonitoring(P){const re=(0,he.fI)(P),Be=this._elementInfo.get(re);Be&&(Be.subject.complete(),this._setClasses(re),this._elementInfo.delete(re),this._removeGlobalListeners(Be))}focusVia(P,re,Be){const yt=(0,he.fI)(P);yt===this._getDocument().activeElement?this._getClosestElementsInfo(yt).forEach(([fn,Mn])=>this._originChanged(fn,re,Mn)):(this._setOrigin(re),"function"==typeof yt.focus&&yt.focus(Be))}ngOnDestroy(){this._elementInfo.forEach((P,re)=>this.stopMonitoring(re))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(P){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(P)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:P&&this._isLastInteractionFromInputLabel(P)?"mouse":"program"}_shouldBeAttributedToTouch(P){return 1===this._detectionMode||!!P?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(P,re){P.classList.toggle("cdk-focused",!!re),P.classList.toggle("cdk-touch-focused","touch"===re),P.classList.toggle("cdk-keyboard-focused","keyboard"===re),P.classList.toggle("cdk-mouse-focused","mouse"===re),P.classList.toggle("cdk-program-focused","program"===re)}_setOrigin(P,re=!1){this._ngZone.runOutsideAngular(()=>{this._origin=P,this._originFromTouchInteraction="touch"===P&&re,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(P,re){const Be=this._elementInfo.get(re),yt=(0,A.sA)(P);!Be||!Be.checkChildren&&re!==yt||this._originChanged(re,this._getFocusOrigin(yt),Be)}_onBlur(P,re){const Be=this._elementInfo.get(re);!Be||Be.checkChildren&&P.relatedTarget instanceof Node&&re.contains(P.relatedTarget)||(this._setClasses(re),this._emitOrigin(Be,null))}_emitOrigin(P,re){P.subject.observers.length&&this._ngZone.run(()=>P.subject.next(re))}_registerGlobalListeners(P){if(!this._platform.isBrowser)return;const re=P.rootNode,Be=this._rootNodeFocusListenerCount.get(re)||0;Be||this._ngZone.runOutsideAngular(()=>{re.addEventListener("focus",this._rootNodeFocusAndBlurListener,Je),re.addEventListener("blur",this._rootNodeFocusAndBlurListener,Je)}),this._rootNodeFocusListenerCount.set(re,Be+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Ne.R)(this._stopInputModalityDetector)).subscribe(yt=>{this._setOrigin(yt,!0)}))}_removeGlobalListeners(P){const re=P.rootNode;if(this._rootNodeFocusListenerCount.has(re)){const Be=this._rootNodeFocusListenerCount.get(re);Be>1?this._rootNodeFocusListenerCount.set(re,Be-1):(re.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Je),re.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Je),this._rootNodeFocusListenerCount.delete(re))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(P,re,Be){this._setClasses(P,re),this._emitOrigin(Be,re),this._lastFocusOrigin=re}_getClosestElementsInfo(P){const re=[];return this._elementInfo.forEach((Be,yt)=>{(yt===P||Be.checkChildren&&yt.contains(P))&&re.push([yt,Be])}),re}_isLastInteractionFromInputLabel(P){const{_mostRecentTarget:re,mostRecentModality:Be}=this._inputModalityDetector;if("mouse"!==Be||!re||re===P||"INPUT"!==P.nodeName&&"TEXTAREA"!==P.nodeName||P.disabled)return!1;const yt=P.labels;if(yt)for(let Lt=0;Lt<yt.length;Lt++)if(yt[Lt].contains(re))return!0;return!1}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(c.R0b),c.LFG(A.t4),c.LFG(J),c.LFG(r.K0,8),c.LFG(be,8))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();const Wt="cdk-high-contrast-black-on-white",Xt="cdk-high-contrast-white-on-black",de="cdk-high-contrast-active";let k=(()=>{class _{constructor(P,re){this._platform=P,this._document=re,this._breakpointSubscription=(0,c.f3M)(We).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const P=this._document.createElement("div");P.style.backgroundColor="rgb(1,2,3)",P.style.position="absolute",this._document.body.appendChild(P);const re=this._document.defaultView||window,Be=re&&re.getComputedStyle?re.getComputedStyle(P):null,yt=(Be&&Be.backgroundColor||"").replace(/ /g,"");switch(P.remove(),yt){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const P=this._document.body.classList;P.remove(de,Wt,Xt),this._hasCheckedHighContrastMode=!0;const re=this.getHighContrastMode();1===re?P.add(de,Wt):2===re&&P.add(de,Xt)}}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(A.t4),c.LFG(r.K0))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),p=(()=>{class _{constructor(P){P._applyBodyHighContrastModeCssClasses()}}return _.\u0275fac=function(P){return new(P||_)(c.LFG(k))},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({imports:[ye]}),_})()},445:(Dt,Se,g)=>{g.d(Se,{Is:()=>q,vT:()=>ie});var r=g(4650),c=g(6895);const A=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function B(){return(0,r.f3M)(c.K0)}}),X=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let q=(()=>{class j{constructor(ae){this.value="ltr",this.change=new r.vpe,ae&&(this.value=function le(j){const ee=j?.toLowerCase()||"";return"auto"===ee&&typeof navigator<"u"&&navigator?.language?X.test(navigator.language)?"rtl":"ltr":"rtl"===ee?"rtl":"ltr"}((ae.body?ae.body.dir:null)||(ae.documentElement?ae.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return j.\u0275fac=function(ae){return new(ae||j)(r.LFG(A,8))},j.\u0275prov=r.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),ie=(()=>{class j{}return j.\u0275fac=function(ae){return new(ae||j)},j.\u0275mod=r.oAB({type:j}),j.\u0275inj=r.cJS({}),j})()},1281:(Dt,Se,g)=>{g.d(Se,{Eq:()=>X,HM:()=>le,Ig:()=>c,du:()=>ne,fI:()=>q,su:()=>A});var r=g(4650);function c(ie){return null!=ie&&"false"!=`${ie}`}function A(ie,j=0){return function B(ie){return!isNaN(parseFloat(ie))&&!isNaN(Number(ie))}(ie)?Number(ie):j}function X(ie){return Array.isArray(ie)?ie:[ie]}function le(ie){return null==ie?"":"string"==typeof ie?ie:`${ie}px`}function q(ie){return ie instanceof r.SBq?ie.nativeElement:ie}function ne(ie,j=/\s+/){const ee=[];if(null!=ie){const ae=Array.isArray(ie)?ie:`${ie}`.split(j);for(const je of ae){const Ee=`${je}`.trim();Ee&&ee.push(Ee)}}return ee}},9521:(Dt,Se,g)=>{g.d(Se,{A:()=>ve,JH:()=>tt,JU:()=>le,K5:()=>X,Ku:()=>je,LH:()=>Re,L_:()=>ae,MW:()=>lt,Mf:()=>A,SV:()=>ke,Sd:()=>Ne,VM:()=>Ee,Vb:()=>ei,Z:()=>De,aO:()=>ct,b2:()=>qn,hY:()=>ee,jx:()=>q,oh:()=>he,uR:()=>Le,xE:()=>Ue,zL:()=>ne});const A=9,X=13,le=16,q=17,ne=18,ee=27,ae=32,je=33,Ee=34,Le=35,Ne=36,he=37,Re=38,ke=39,tt=40,Ue=48,ct=57,ve=65,De=90,lt=91,qn=224;function ei(Rn,...fi){return fi.length?fi.some(wi=>Rn[wi]):Rn.altKey||Rn.shiftKey||Rn.ctrlKey||Rn.metaKey}},8184:(Dt,Se,g)=>{g.d(Se,{Iu:()=>We,U8:()=>Fn,X_:()=>ue,Xj:()=>Mt,aV:()=>Bt});var r=g(7376),c=g(6895),A=g(4650),B=g(1281),X=g(3353),le=g(445),q=g(4080),ne=g(7579),ie=g(727),j=g(6451),ee=g(5698),ae=g(2722);const je=(0,X.Mq)();class Ee{constructor(W,se){this._viewportRuler=W,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=se}attach(){}enable(){if(this._canBeEnabled()){const W=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=W.style.left||"",this._previousHTMLStyles.top=W.style.top||"",W.style.left=(0,B.HM)(-this._previousScrollPosition.left),W.style.top=(0,B.HM)(-this._previousScrollPosition.top),W.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const W=this._document.documentElement,Ie=W.style,rt=this._document.body.style,st=Ie.scrollBehavior||"",At=rt.scrollBehavior||"";this._isEnabled=!1,Ie.left=this._previousHTMLStyles.left,Ie.top=this._previousHTMLStyles.top,W.classList.remove("cdk-global-scrollblock"),je&&(Ie.scrollBehavior=rt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),je&&(Ie.scrollBehavior=st,rt.scrollBehavior=At)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const se=this._document.body,Ie=this._viewportRuler.getViewportSize();return se.scrollHeight>Ie.height||se.scrollWidth>Ie.width}}class Ne{constructor(W,se,Ie,rt){this._scrollDispatcher=W,this._ngZone=se,this._viewportRuler=Ie,this._config=rt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(W){this._overlayRef=W}enable(){if(this._scrollSubscription)return;const W=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=W.subscribe(()=>{const se=this._viewportRuler.getViewportScrollPosition().top;Math.abs(se-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=W.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class he{enable(){}disable(){}attach(){}}function Re(et,W){return W.some(se=>et.bottom<se.top||et.top>se.bottom||et.right<se.left||et.left>se.right)}function ke(et,W){return W.some(se=>et.top<se.top||et.bottom>se.bottom||et.left<se.left||et.right>se.right)}class tt{constructor(W,se,Ie,rt){this._scrollDispatcher=W,this._viewportRuler=se,this._ngZone=Ie,this._config=rt,this._scrollSubscription=null}attach(W){this._overlayRef=W}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const se=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ie,height:rt}=this._viewportRuler.getViewportSize();Re(se,[{width:Ie,height:rt,bottom:rt,right:Ie,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ye=(()=>{class et{constructor(se,Ie,rt,st){this._scrollDispatcher=se,this._viewportRuler=Ie,this._ngZone=rt,this.noop=()=>new he,this.close=At=>new Ne(this._scrollDispatcher,this._ngZone,this._viewportRuler,At),this.block=()=>new Ee(this._viewportRuler,this._document),this.reposition=At=>new tt(this._scrollDispatcher,this._viewportRuler,this._ngZone,At),this._document=st}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(r.mF),A.LFG(r.rL),A.LFG(A.R0b),A.LFG(c.K0))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();class ue{constructor(W){if(this.scrollStrategy=new he,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,W){const se=Object.keys(W);for(const Ie of se)void 0!==W[Ie]&&(this[Ie]=W[Ie])}}}class Ue{constructor(W,se){this.connectionPair=W,this.scrollableViewProperties=se}}let ht=(()=>{class et{constructor(se){this._attachedOverlays=[],this._document=se}ngOnDestroy(){this.detach()}add(se){this.remove(se),this._attachedOverlays.push(se)}remove(se){const Ie=this._attachedOverlays.indexOf(se);Ie>-1&&this._attachedOverlays.splice(Ie,1),0===this._attachedOverlays.length&&this.detach()}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(c.K0))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),vt=(()=>{class et extends ht{constructor(se,Ie){super(se),this._ngZone=Ie,this._keydownListener=rt=>{const st=this._attachedOverlays;for(let At=st.length-1;At>-1;At--)if(st[At]._keydownEvents.observers.length>0){const $t=st[At]._keydownEvents;this._ngZone?this._ngZone.run(()=>$t.next(rt)):$t.next(rt);break}}}add(se){super.add(se),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(c.K0),A.LFG(A.R0b,8))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),Nt=(()=>{class et extends ht{constructor(se,Ie,rt){super(se),this._platform=Ie,this._ngZone=rt,this._cursorStyleIsSet=!1,this._pointerDownListener=st=>{this._pointerDownEventTarget=(0,X.sA)(st)},this._clickListener=st=>{const At=(0,X.sA)(st),$t="click"===st.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:At;this._pointerDownEventTarget=null;const It=this._attachedOverlays.slice();for(let Tt=It.length-1;Tt>-1;Tt--){const De=It[Tt];if(De._outsidePointerEvents.observers.length<1||!De.hasAttached())continue;if(De.overlayElement.contains(At)||De.overlayElement.contains($t))break;const lt=De._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>lt.next(st)):lt.next(st)}}}add(se){if(super.add(se),!this._isAttached){const Ie=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ie)):this._addEventListeners(Ie),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ie.style.cursor,Ie.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const se=this._document.body;se.removeEventListener("pointerdown",this._pointerDownListener,!0),se.removeEventListener("click",this._clickListener,!0),se.removeEventListener("auxclick",this._clickListener,!0),se.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(se.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(se){se.addEventListener("pointerdown",this._pointerDownListener,!0),se.addEventListener("click",this._clickListener,!0),se.addEventListener("auxclick",this._clickListener,!0),se.addEventListener("contextmenu",this._clickListener,!0)}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(c.K0),A.LFG(X.t4),A.LFG(A.R0b,8))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),Mt=(()=>{class et{constructor(se,Ie){this._platform=Ie,this._document=se}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const se="cdk-overlay-container";if(this._platform.isBrowser||(0,X.Oy)()){const rt=this._document.querySelectorAll(`.${se}[platform="server"], .${se}[platform="test"]`);for(let st=0;st<rt.length;st++)rt[st].remove()}const Ie=this._document.createElement("div");Ie.classList.add(se),(0,X.Oy)()?Ie.setAttribute("platform","test"):this._platform.isBrowser||Ie.setAttribute("platform","server"),this._document.body.appendChild(Ie),this._containerElement=Ie}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(c.K0),A.LFG(X.t4))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();class We{constructor(W,se,Ie,rt,st,At,$t,It,Tt,De=!1){this._portalOutlet=W,this._host=se,this._pane=Ie,this._config=rt,this._ngZone=st,this._keyboardDispatcher=At,this._document=$t,this._location=It,this._outsideClickDispatcher=Tt,this._animationsDisabled=De,this._backdropElement=null,this._backdropClick=new ne.x,this._attachments=new ne.x,this._detachments=new ne.x,this._locationChanges=ie.w0.EMPTY,this._backdropClickHandler=lt=>this._backdropClick.next(lt),this._backdropTransitionendHandler=lt=>{this._disposeBackdrop(lt.target)},this._keydownEvents=new ne.x,this._outsidePointerEvents=new ne.x,rt.scrollStrategy&&(this._scrollStrategy=rt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=rt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(W){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const se=this._portalOutlet.attach(W);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ee.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof se?.onDestroy&&se.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),se}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const W=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),W}dispose(){const W=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,W&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(W){W!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=W,this.hasAttached()&&(W.attach(this),this.updatePosition()))}updateSize(W){this._config={...this._config,...W},this._updateElementSize()}setDirection(W){this._config={...this._config,direction:W},this._updateElementDirection()}addPanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!0)}removePanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!1)}getDirection(){const W=this._config.direction;return W?"string"==typeof W?W:W.value:"ltr"}updateScrollStrategy(W){W!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=W,this.hasAttached()&&(W.attach(this),W.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const W=this._pane.style;W.width=(0,B.HM)(this._config.width),W.height=(0,B.HM)(this._config.height),W.minWidth=(0,B.HM)(this._config.minWidth),W.minHeight=(0,B.HM)(this._config.minHeight),W.maxWidth=(0,B.HM)(this._config.maxWidth),W.maxHeight=(0,B.HM)(this._config.maxHeight)}_togglePointerEvents(W){this._pane.style.pointerEvents=W?"":"none"}_attachBackdrop(){const W="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(W)})}):this._backdropElement.classList.add(W)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const W=this._backdropElement;if(W){if(this._animationsDisabled)return void this._disposeBackdrop(W);W.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{W.addEventListener("transitionend",this._backdropTransitionendHandler)}),W.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(W)},500))}}_toggleClasses(W,se,Ie){const rt=(0,B.Eq)(se||[]).filter(st=>!!st);rt.length&&(Ie?W.classList.add(...rt):W.classList.remove(...rt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const W=this._ngZone.onStable.pipe((0,ae.R)((0,j.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),W.unsubscribe())})})}_disposeScrollStrategy(){const W=this._scrollStrategy;W&&(W.disable(),W.detach&&W.detach())}_disposeBackdrop(W){W&&(W.removeEventListener("click",this._backdropClickHandler),W.removeEventListener("transitionend",this._backdropTransitionendHandler),W.remove(),this._backdropElement===W&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const it="cdk-overlay-connected-position-bounding-box",ct=/([A-Za-z%]+)$/;class gt{get positions(){return this._preferredPositions}constructor(W,se,Ie,rt,st){this._viewportRuler=se,this._document=Ie,this._platform=rt,this._overlayContainer=st,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ne.x,this._resizeSubscription=ie.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(W)}attach(W){this._validatePositions(),W.hostElement.classList.add(it),this._overlayRef=W,this._boundingBox=W.hostElement,this._pane=W.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const W=this._originRect,se=this._overlayRect,Ie=this._viewportRect,rt=this._containerRect,st=[];let At;for(let $t of this._preferredPositions){let It=this._getOriginPoint(W,rt,$t),Tt=this._getOverlayPoint(It,se,$t),De=this._getOverlayFit(Tt,se,Ie,$t);if(De.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition($t,It);this._canFitWithFlexibleDimensions(De,Tt,Ie)?st.push({position:$t,origin:It,overlayRect:se,boundingBoxRect:this._calculateBoundingBoxRect(It,$t)}):(!At||At.overlayFit.visibleArea<De.visibleArea)&&(At={overlayFit:De,overlayPoint:Tt,originPoint:It,position:$t,overlayRect:se})}if(st.length){let $t=null,It=-1;for(const Tt of st){const De=Tt.boundingBoxRect.width*Tt.boundingBoxRect.height*(Tt.position.weight||1);De>It&&(It=De,$t=Tt)}return this._isPushed=!1,void this._applyPosition($t.position,$t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(At.position,At.originPoint);this._applyPosition(At.position,At.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&bt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(it),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const W=this._lastPosition;if(W){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const se=this._getOriginPoint(this._originRect,this._containerRect,W);this._applyPosition(W,se)}else this.apply()}withScrollableContainers(W){return this._scrollables=W,this}withPositions(W){return this._preferredPositions=W,-1===W.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(W){return this._viewportMargin=W,this}withFlexibleDimensions(W=!0){return this._hasFlexibleDimensions=W,this}withGrowAfterOpen(W=!0){return this._growAfterOpen=W,this}withPush(W=!0){return this._canPush=W,this}withLockedPosition(W=!0){return this._positionLocked=W,this}setOrigin(W){return this._origin=W,this}withDefaultOffsetX(W){return this._offsetX=W,this}withDefaultOffsetY(W){return this._offsetY=W,this}withTransformOriginOn(W){return this._transformOriginSelector=W,this}_getOriginPoint(W,se,Ie){let rt,st;if("center"==Ie.originX)rt=W.left+W.width/2;else{const At=this._isRtl()?W.right:W.left,$t=this._isRtl()?W.left:W.right;rt="start"==Ie.originX?At:$t}return se.left<0&&(rt-=se.left),st="center"==Ie.originY?W.top+W.height/2:"top"==Ie.originY?W.top:W.bottom,se.top<0&&(st-=se.top),{x:rt,y:st}}_getOverlayPoint(W,se,Ie){let rt,st;return rt="center"==Ie.overlayX?-se.width/2:"start"===Ie.overlayX?this._isRtl()?-se.width:0:this._isRtl()?0:-se.width,st="center"==Ie.overlayY?-se.height/2:"top"==Ie.overlayY?0:-se.height,{x:W.x+rt,y:W.y+st}}_getOverlayFit(W,se,Ie,rt){const st=Ot(se);let{x:At,y:$t}=W,It=this._getOffset(rt,"x"),Tt=this._getOffset(rt,"y");It&&(At+=It),Tt&&($t+=Tt);let fe=0-$t,Ye=$t+st.height-Ie.height,Ct=this._subtractOverflows(st.width,0-At,At+st.width-Ie.width),kt=this._subtractOverflows(st.height,fe,Ye),ln=Ct*kt;return{visibleArea:ln,isCompletelyWithinViewport:st.width*st.height===ln,fitsInViewportVertically:kt===st.height,fitsInViewportHorizontally:Ct==st.width}}_canFitWithFlexibleDimensions(W,se,Ie){if(this._hasFlexibleDimensions){const rt=Ie.bottom-se.y,st=Ie.right-se.x,At=wt(this._overlayRef.getConfig().minHeight),$t=wt(this._overlayRef.getConfig().minWidth);return(W.fitsInViewportVertically||null!=At&&At<=rt)&&(W.fitsInViewportHorizontally||null!=$t&&$t<=st)}return!1}_pushOverlayOnScreen(W,se,Ie){if(this._previousPushAmount&&this._positionLocked)return{x:W.x+this._previousPushAmount.x,y:W.y+this._previousPushAmount.y};const rt=Ot(se),st=this._viewportRect,At=Math.max(W.x+rt.width-st.width,0),$t=Math.max(W.y+rt.height-st.height,0),It=Math.max(st.top-Ie.top-W.y,0),Tt=Math.max(st.left-Ie.left-W.x,0);let De=0,lt=0;return De=rt.width<=st.width?Tt||-At:W.x<this._viewportMargin?st.left-Ie.left-W.x:0,lt=rt.height<=st.height?It||-$t:W.y<this._viewportMargin?st.top-Ie.top-W.y:0,this._previousPushAmount={x:De,y:lt},{x:W.x+De,y:W.y+lt}}_applyPosition(W,se){if(this._setTransformOrigin(W),this._setOverlayElementStyles(se,W),this._setBoundingBoxStyles(se,W),W.panelClass&&this._addPanelClasses(W.panelClass),this._lastPosition=W,this._positionChanges.observers.length){const Ie=this._getScrollVisibility(),rt=new Ue(W,Ie);this._positionChanges.next(rt)}this._isInitialRender=!1}_setTransformOrigin(W){if(!this._transformOriginSelector)return;const se=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ie,rt=W.overlayY;Ie="center"===W.overlayX?"center":this._isRtl()?"start"===W.overlayX?"right":"left":"start"===W.overlayX?"left":"right";for(let st=0;st<se.length;st++)se[st].style.transformOrigin=`${Ie} ${rt}`}_calculateBoundingBoxRect(W,se){const Ie=this._viewportRect,rt=this._isRtl();let st,At,$t,De,lt,fe;if("top"===se.overlayY)At=W.y,st=Ie.height-At+this._viewportMargin;else if("bottom"===se.overlayY)$t=Ie.height-W.y+2*this._viewportMargin,st=Ie.height-$t+this._viewportMargin;else{const Ye=Math.min(Ie.bottom-W.y+Ie.top,W.y),Ct=this._lastBoundingBoxSize.height;st=2*Ye,At=W.y-Ye,st>Ct&&!this._isInitialRender&&!this._growAfterOpen&&(At=W.y-Ct/2)}if("end"===se.overlayX&&!rt||"start"===se.overlayX&&rt)fe=Ie.width-W.x+this._viewportMargin,De=W.x-this._viewportMargin;else if("start"===se.overlayX&&!rt||"end"===se.overlayX&&rt)lt=W.x,De=Ie.right-W.x;else{const Ye=Math.min(Ie.right-W.x+Ie.left,W.x),Ct=this._lastBoundingBoxSize.width;De=2*Ye,lt=W.x-Ye,De>Ct&&!this._isInitialRender&&!this._growAfterOpen&&(lt=W.x-Ct/2)}return{top:At,left:lt,bottom:$t,right:fe,width:De,height:st}}_setBoundingBoxStyles(W,se){const Ie=this._calculateBoundingBoxRect(W,se);!this._isInitialRender&&!this._growAfterOpen&&(Ie.height=Math.min(Ie.height,this._lastBoundingBoxSize.height),Ie.width=Math.min(Ie.width,this._lastBoundingBoxSize.width));const rt={};if(this._hasExactPosition())rt.top=rt.left="0",rt.bottom=rt.right=rt.maxHeight=rt.maxWidth="",rt.width=rt.height="100%";else{const st=this._overlayRef.getConfig().maxHeight,At=this._overlayRef.getConfig().maxWidth;rt.height=(0,B.HM)(Ie.height),rt.top=(0,B.HM)(Ie.top),rt.bottom=(0,B.HM)(Ie.bottom),rt.width=(0,B.HM)(Ie.width),rt.left=(0,B.HM)(Ie.left),rt.right=(0,B.HM)(Ie.right),rt.alignItems="center"===se.overlayX?"center":"end"===se.overlayX?"flex-end":"flex-start",rt.justifyContent="center"===se.overlayY?"center":"bottom"===se.overlayY?"flex-end":"flex-start",st&&(rt.maxHeight=(0,B.HM)(st)),At&&(rt.maxWidth=(0,B.HM)(At))}this._lastBoundingBoxSize=Ie,bt(this._boundingBox.style,rt)}_resetBoundingBoxStyles(){bt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){bt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(W,se){const Ie={},rt=this._hasExactPosition(),st=this._hasFlexibleDimensions,At=this._overlayRef.getConfig();if(rt){const De=this._viewportRuler.getViewportScrollPosition();bt(Ie,this._getExactOverlayY(se,W,De)),bt(Ie,this._getExactOverlayX(se,W,De))}else Ie.position="static";let $t="",It=this._getOffset(se,"x"),Tt=this._getOffset(se,"y");It&&($t+=`translateX(${It}px) `),Tt&&($t+=`translateY(${Tt}px)`),Ie.transform=$t.trim(),At.maxHeight&&(rt?Ie.maxHeight=(0,B.HM)(At.maxHeight):st&&(Ie.maxHeight="")),At.maxWidth&&(rt?Ie.maxWidth=(0,B.HM)(At.maxWidth):st&&(Ie.maxWidth="")),bt(this._pane.style,Ie)}_getExactOverlayY(W,se,Ie){let rt={top:"",bottom:""},st=this._getOverlayPoint(se,this._overlayRect,W);return this._isPushed&&(st=this._pushOverlayOnScreen(st,this._overlayRect,Ie)),"bottom"===W.overlayY?rt.bottom=this._document.documentElement.clientHeight-(st.y+this._overlayRect.height)+"px":rt.top=(0,B.HM)(st.y),rt}_getExactOverlayX(W,se,Ie){let At,rt={left:"",right:""},st=this._getOverlayPoint(se,this._overlayRect,W);return this._isPushed&&(st=this._pushOverlayOnScreen(st,this._overlayRect,Ie)),At=this._isRtl()?"end"===W.overlayX?"left":"right":"end"===W.overlayX?"right":"left","right"===At?rt.right=this._document.documentElement.clientWidth-(st.x+this._overlayRect.width)+"px":rt.left=(0,B.HM)(st.x),rt}_getScrollVisibility(){const W=this._getOriginRect(),se=this._pane.getBoundingClientRect(),Ie=this._scrollables.map(rt=>rt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ke(W,Ie),isOriginOutsideView:Re(W,Ie),isOverlayClipped:ke(se,Ie),isOverlayOutsideView:Re(se,Ie)}}_subtractOverflows(W,...se){return se.reduce((Ie,rt)=>Ie-Math.max(rt,0),W)}_getNarrowedViewportRect(){const W=this._document.documentElement.clientWidth,se=this._document.documentElement.clientHeight,Ie=this._viewportRuler.getViewportScrollPosition();return{top:Ie.top+this._viewportMargin,left:Ie.left+this._viewportMargin,right:Ie.left+W-this._viewportMargin,bottom:Ie.top+se-this._viewportMargin,width:W-2*this._viewportMargin,height:se-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(W,se){return"x"===se?null==W.offsetX?this._offsetX:W.offsetX:null==W.offsetY?this._offsetY:W.offsetY}_validatePositions(){}_addPanelClasses(W){this._pane&&(0,B.Eq)(W).forEach(se=>{""!==se&&-1===this._appliedPanelClasses.indexOf(se)&&(this._appliedPanelClasses.push(se),this._pane.classList.add(se))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(W=>{this._pane.classList.remove(W)}),this._appliedPanelClasses=[])}_getOriginRect(){const W=this._origin;if(W instanceof A.SBq)return W.nativeElement.getBoundingClientRect();if(W instanceof Element)return W.getBoundingClientRect();const se=W.width||0,Ie=W.height||0;return{top:W.y,bottom:W.y+Ie,left:W.x,right:W.x+se,height:Ie,width:se}}}function bt(et,W){for(let se in W)W.hasOwnProperty(se)&&(et[se]=W[se]);return et}function wt(et){if("number"!=typeof et&&null!=et){const[W,se]=et.split(ct);return se&&"px"!==se?null:parseFloat(W)}return et||null}function Ot(et){return{top:Math.floor(et.top),right:Math.floor(et.right),bottom:Math.floor(et.bottom),left:Math.floor(et.left),width:Math.floor(et.width),height:Math.floor(et.height)}}const L="cdk-global-overlay-wrapper";class te{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(W){const se=W.getConfig();this._overlayRef=W,this._width&&!se.width&&W.updateSize({width:this._width}),this._height&&!se.height&&W.updateSize({height:this._height}),W.hostElement.classList.add(L),this._isDisposed=!1}top(W=""){return this._bottomOffset="",this._topOffset=W,this._alignItems="flex-start",this}left(W=""){return this._xOffset=W,this._xPosition="left",this}bottom(W=""){return this._topOffset="",this._bottomOffset=W,this._alignItems="flex-end",this}right(W=""){return this._xOffset=W,this._xPosition="right",this}start(W=""){return this._xOffset=W,this._xPosition="start",this}end(W=""){return this._xOffset=W,this._xPosition="end",this}width(W=""){return this._overlayRef?this._overlayRef.updateSize({width:W}):this._width=W,this}height(W=""){return this._overlayRef?this._overlayRef.updateSize({height:W}):this._height=W,this}centerHorizontally(W=""){return this.left(W),this._xPosition="center",this}centerVertically(W=""){return this.top(W),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const W=this._overlayRef.overlayElement.style,se=this._overlayRef.hostElement.style,Ie=this._overlayRef.getConfig(),{width:rt,height:st,maxWidth:At,maxHeight:$t}=Ie,It=!("100%"!==rt&&"100vw"!==rt||At&&"100%"!==At&&"100vw"!==At),Tt=!("100%"!==st&&"100vh"!==st||$t&&"100%"!==$t&&"100vh"!==$t),De=this._xPosition,lt=this._xOffset,fe="rtl"===this._overlayRef.getConfig().direction;let Ye="",Ct="",kt="";It?kt="flex-start":"center"===De?(kt="center",fe?Ct=lt:Ye=lt):fe?"left"===De||"end"===De?(kt="flex-end",Ye=lt):("right"===De||"start"===De)&&(kt="flex-start",Ct=lt):"left"===De||"start"===De?(kt="flex-start",Ye=lt):("right"===De||"end"===De)&&(kt="flex-end",Ct=lt),W.position=this._cssPosition,W.marginLeft=It?"0":Ye,W.marginTop=Tt?"0":this._topOffset,W.marginBottom=this._bottomOffset,W.marginRight=It?"0":Ct,se.justifyContent=kt,se.alignItems=Tt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const W=this._overlayRef.overlayElement.style,se=this._overlayRef.hostElement,Ie=se.style;se.classList.remove(L),Ie.justifyContent=Ie.alignItems=W.marginTop=W.marginBottom=W.marginLeft=W.marginRight=W.position="",this._overlayRef=null,this._isDisposed=!0}}let Ve=(()=>{class et{constructor(se,Ie,rt,st){this._viewportRuler=se,this._document=Ie,this._platform=rt,this._overlayContainer=st}global(){return new te}flexibleConnectedTo(se){return new gt(se,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(r.rL),A.LFG(c.K0),A.LFG(X.t4),A.LFG(Mt))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),ut=0,Bt=(()=>{class et{constructor(se,Ie,rt,st,At,$t,It,Tt,De,lt,fe,Ye){this.scrollStrategies=se,this._overlayContainer=Ie,this._componentFactoryResolver=rt,this._positionBuilder=st,this._keyboardDispatcher=At,this._injector=$t,this._ngZone=It,this._document=Tt,this._directionality=De,this._location=lt,this._outsideClickDispatcher=fe,this._animationsModuleType=Ye}create(se){const Ie=this._createHostElement(),rt=this._createPaneElement(Ie),st=this._createPortalOutlet(rt),At=new ue(se);return At.direction=At.direction||this._directionality.value,new We(st,Ie,rt,At,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(se){const Ie=this._document.createElement("div");return Ie.id="cdk-overlay-"+ut++,Ie.classList.add("cdk-overlay-pane"),se.appendChild(Ie),Ie}_createHostElement(){const se=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(se),se}_createPortalOutlet(se){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new q.u0(se,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return et.\u0275fac=function(se){return new(se||et)(A.LFG(ye),A.LFG(Mt),A.LFG(A._Vd),A.LFG(Ve),A.LFG(vt),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(c.K0),A.LFG(le.Is),A.LFG(c.Ye),A.LFG(Nt),A.LFG(A.QbO,8))},et.\u0275prov=A.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();const Pn={provide:new A.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Bt],useFactory:function In(et){return()=>et.scrollStrategies.reposition()}};let Fn=(()=>{class et{}return et.\u0275fac=function(se){return new(se||et)},et.\u0275mod=A.oAB({type:et}),et.\u0275inj=A.cJS({providers:[Bt,Pn],imports:[le.vT,q.eL,r.Cl,r.Cl]}),et})()},3353:(Dt,Se,g)=>{g.d(Se,{Mq:()=>Ee,Oy:()=>ye,_i:()=>Le,ht:()=>ke,i$:()=>ee,kV:()=>Re,sA:()=>tt,t4:()=>B});var r=g(4650),c=g(6895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let ie,ae,je,Ne,B=(()=>{class ue{constructor(Ce){this._platformId=Ce,this.isBrowser=this._platformId?(0,c.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!A)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ue.\u0275fac=function(Ce){return new(Ce||ue)(r.LFG(r.Lbi))},ue.\u0275prov=r.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function ee(ue){return function j(){if(null==ie&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ie=!0}))}finally{ie=ie||!1}return ie}()?ue:!!ue.capture}function Ee(){if(null==je){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return je=!1,je;if("scrollBehavior"in document.documentElement.style)je=!0;else{const ue=Element.prototype.scrollTo;je=!!ue&&!/\{\s*\[native code\]\s*\}/.test(ue.toString())}}return je}function Le(){if("object"!=typeof document||!document)return 0;if(null==ae){const ue=document.createElement("div"),we=ue.style;ue.dir="rtl",we.width="1px",we.overflow="auto",we.visibility="hidden",we.pointerEvents="none",we.position="absolute";const Ce=document.createElement("div"),Ue=Ce.style;Ue.width="2px",Ue.height="1px",ue.appendChild(Ce),document.body.appendChild(ue),ae=0,0===ue.scrollLeft&&(ue.scrollLeft=1,ae=0===ue.scrollLeft?1:2),ue.remove()}return ae}function Re(ue){if(function he(){if(null==Ne){const ue=typeof document<"u"?document.head:null;Ne=!(!ue||!ue.createShadowRoot&&!ue.attachShadow)}return Ne}()){const we=ue.getRootNode?ue.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&we instanceof ShadowRoot)return we}return null}function ke(){let ue=typeof document<"u"&&document?document.activeElement:null;for(;ue&&ue.shadowRoot;){const we=ue.shadowRoot.activeElement;if(we===ue)break;ue=we}return ue}function tt(ue){return ue.composedPath?ue.composedPath()[0]:ue.target}function ye(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Dt,Se,g)=>{g.d(Se,{C5:()=>j,Pl:()=>ke,UE:()=>ee,eL:()=>ye,en:()=>je,u0:()=>Le});var r=g(4650),c=g(6895);class ie{attach(Ce){return this._attachedHost=Ce,Ce.attach(this)}detach(){let Ce=this._attachedHost;null!=Ce&&(this._attachedHost=null,Ce.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ce){this._attachedHost=Ce}}class j extends ie{constructor(Ce,Ue,Te,ze,ht){super(),this.component=Ce,this.viewContainerRef=Ue,this.injector=Te,this.componentFactoryResolver=ze,this.projectableNodes=ht}}class ee extends ie{constructor(Ce,Ue,Te,ze){super(),this.templateRef=Ce,this.viewContainerRef=Ue,this.context=Te,this.injector=ze}get origin(){return this.templateRef.elementRef}attach(Ce,Ue=this.context){return this.context=Ue,super.attach(Ce)}detach(){return this.context=void 0,super.detach()}}class ae extends ie{constructor(Ce){super(),this.element=Ce instanceof r.SBq?Ce.nativeElement:Ce}}class je{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Ce){return Ce instanceof j?(this._attachedPortal=Ce,this.attachComponentPortal(Ce)):Ce instanceof ee?(this._attachedPortal=Ce,this.attachTemplatePortal(Ce)):this.attachDomPortal&&Ce instanceof ae?(this._attachedPortal=Ce,this.attachDomPortal(Ce)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Ce){this._disposeFn=Ce}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Le extends je{constructor(Ce,Ue,Te,ze,ht){super(),this.outletElement=Ce,this._componentFactoryResolver=Ue,this._appRef=Te,this._defaultInjector=ze,this.attachDomPortal=vt=>{const Nt=vt.element,Mt=this._document.createComment("dom-portal");Nt.parentNode.insertBefore(Mt,Nt),this.outletElement.appendChild(Nt),this._attachedPortal=vt,super.setDisposeFn(()=>{Mt.parentNode&&Mt.parentNode.replaceChild(Nt,Mt)})},this._document=ht}attachComponentPortal(Ce){const Te=(Ce.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ce.component);let ze;return Ce.viewContainerRef?(ze=Ce.viewContainerRef.createComponent(Te,Ce.viewContainerRef.length,Ce.injector||Ce.viewContainerRef.injector,Ce.projectableNodes||void 0),this.setDisposeFn(()=>ze.destroy())):(ze=Te.create(Ce.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(ze.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ze.hostView),ze.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ze)),this._attachedPortal=Ce,ze}attachTemplatePortal(Ce){let Ue=Ce.viewContainerRef,Te=Ue.createEmbeddedView(Ce.templateRef,Ce.context,{injector:Ce.injector});return Te.rootNodes.forEach(ze=>this.outletElement.appendChild(ze)),Te.detectChanges(),this.setDisposeFn(()=>{let ze=Ue.indexOf(Te);-1!==ze&&Ue.remove(ze)}),this._attachedPortal=Ce,Te}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ce){return Ce.hostView.rootNodes[0]}}let ke=(()=>{class we extends je{constructor(Ue,Te,ze){super(),this._componentFactoryResolver=Ue,this._viewContainerRef=Te,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=ht=>{const vt=ht.element,Nt=this._document.createComment("dom-portal");ht.setAttachedHost(this),vt.parentNode.insertBefore(Nt,vt),this._getRootNode().appendChild(vt),this._attachedPortal=ht,super.setDisposeFn(()=>{Nt.parentNode&&Nt.parentNode.replaceChild(vt,Nt)})},this._document=ze}get portal(){return this._attachedPortal}set portal(Ue){this.hasAttached()&&!Ue&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ue&&super.attach(Ue),this._attachedPortal=Ue||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Ue){Ue.setAttachedHost(this);const Te=null!=Ue.viewContainerRef?Ue.viewContainerRef:this._viewContainerRef,ht=(Ue.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ue.component),vt=Te.createComponent(ht,Te.length,Ue.injector||Te.injector,Ue.projectableNodes||void 0);return Te!==this._viewContainerRef&&this._getRootNode().appendChild(vt.hostView.rootNodes[0]),super.setDisposeFn(()=>vt.destroy()),this._attachedPortal=Ue,this._attachedRef=vt,this.attached.emit(vt),vt}attachTemplatePortal(Ue){Ue.setAttachedHost(this);const Te=this._viewContainerRef.createEmbeddedView(Ue.templateRef,Ue.context,{injector:Ue.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ue,this._attachedRef=Te,this.attached.emit(Te),Te}_getRootNode(){const Ue=this._viewContainerRef.element.nativeElement;return Ue.nodeType===Ue.ELEMENT_NODE?Ue:Ue.parentNode}}return we.\u0275fac=function(Ue){return new(Ue||we)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(c.K0))},we.\u0275dir=r.lG2({type:we,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),we})(),ye=(()=>{class we{}return we.\u0275fac=function(Ue){return new(Ue||we)},we.\u0275mod=r.oAB({type:we}),we.\u0275inj=r.cJS({}),we})()},7376:(Dt,Se,g)=>{g.d(Se,{Cl:()=>Ot,ZD:()=>wt,mF:()=>Ce,rL:()=>ze});var r=g(1281),c=g(4650),A=g(7579),B=g(9646),X=g(9751),le=g(4968),q=g(6406),ne=g(3101),ie=g(727),j=g(3601),ee=g(9300),ae=g(2722),je=g(8675),Ee=g(3353),Le=g(6895),Ne=g(445);const he=["contentWrapper"],Re=["*"],ke=new c.OlP("VIRTUAL_SCROLL_STRATEGY");let Ce=(()=>{class ve{constructor(L,te,Ve){this._ngZone=L,this._platform=te,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ve}register(L){this.scrollContainers.has(L)||this.scrollContainers.set(L,L.elementScrolled().subscribe(()=>this._scrolled.next(L)))}deregister(L){const te=this.scrollContainers.get(L);te&&(te.unsubscribe(),this.scrollContainers.delete(L))}scrolled(L=20){return this._platform.isBrowser?new X.y(te=>{this._globalSubscription||this._addGlobalListener();const Ve=L>0?this._scrolled.pipe((0,j.e)(L)).subscribe(te):this._scrolled.subscribe(te);return this._scrolledCount++,()=>{Ve.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,B.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((L,te)=>this.deregister(te)),this._scrolled.complete()}ancestorScrolled(L,te){const Ve=this.getAncestorScrollContainers(L);return this.scrolled(te).pipe((0,ee.h)(ut=>!ut||Ve.indexOf(ut)>-1))}getAncestorScrollContainers(L){const te=[];return this.scrollContainers.forEach((Ve,ut)=>{this._scrollableContainsElement(ut,L)&&te.push(ut)}),te}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(L,te){let Ve=(0,r.fI)(te),ut=L.getElementRef().nativeElement;do{if(Ve==ut)return!0}while(Ve=Ve.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const L=this._getWindow();return(0,le.R)(L.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ve.\u0275fac=function(L){return new(L||ve)(c.LFG(c.R0b),c.LFG(Ee.t4),c.LFG(Le.K0,8))},ve.\u0275prov=c.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Ue=(()=>{class ve{constructor(L,te,Ve,ut){this.elementRef=L,this.scrollDispatcher=te,this.ngZone=Ve,this.dir=ut,this._destroyed=new A.x,this._elementScrolled=new X.y(Bt=>this.ngZone.runOutsideAngular(()=>(0,le.R)(this.elementRef.nativeElement,"scroll").pipe((0,ae.R)(this._destroyed)).subscribe(Bt)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(L){const te=this.elementRef.nativeElement,Ve=this.dir&&"rtl"==this.dir.value;null==L.left&&(L.left=Ve?L.end:L.start),null==L.right&&(L.right=Ve?L.start:L.end),null!=L.bottom&&(L.top=te.scrollHeight-te.clientHeight-L.bottom),Ve&&0!=(0,Ee._i)()?(null!=L.left&&(L.right=te.scrollWidth-te.clientWidth-L.left),2==(0,Ee._i)()?L.left=L.right:1==(0,Ee._i)()&&(L.left=L.right?-L.right:L.right)):null!=L.right&&(L.left=te.scrollWidth-te.clientWidth-L.right),this._applyScrollToOptions(L)}_applyScrollToOptions(L){const te=this.elementRef.nativeElement;(0,Ee.Mq)()?te.scrollTo(L):(null!=L.top&&(te.scrollTop=L.top),null!=L.left&&(te.scrollLeft=L.left))}measureScrollOffset(L){const te="left",ut=this.elementRef.nativeElement;if("top"==L)return ut.scrollTop;if("bottom"==L)return ut.scrollHeight-ut.clientHeight-ut.scrollTop;const Bt=this.dir&&"rtl"==this.dir.value;return"start"==L?L=Bt?"right":te:"end"==L&&(L=Bt?te:"right"),Bt&&2==(0,Ee._i)()?L==te?ut.scrollWidth-ut.clientWidth-ut.scrollLeft:ut.scrollLeft:Bt&&1==(0,Ee._i)()?L==te?ut.scrollLeft+ut.scrollWidth-ut.clientWidth:-ut.scrollLeft:L==te?ut.scrollLeft:ut.scrollWidth-ut.clientWidth-ut.scrollLeft}}return ve.\u0275fac=function(L){return new(L||ve)(c.Y36(c.SBq),c.Y36(Ce),c.Y36(c.R0b),c.Y36(Ne.Is,8))},ve.\u0275dir=c.lG2({type:ve,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ve})(),ze=(()=>{class ve{constructor(L,te,Ve){this._platform=L,this._change=new A.x,this._changeListener=ut=>{this._change.next(ut)},this._document=Ve,te.runOutsideAngular(()=>{if(L.isBrowser){const ut=this._getWindow();ut.addEventListener("resize",this._changeListener),ut.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const L=this._getWindow();L.removeEventListener("resize",this._changeListener),L.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const L={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),L}getViewportRect(){const L=this.getViewportScrollPosition(),{width:te,height:Ve}=this.getViewportSize();return{top:L.top,left:L.left,bottom:L.top+Ve,right:L.left+te,height:Ve,width:te}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const L=this._document,te=this._getWindow(),Ve=L.documentElement,ut=Ve.getBoundingClientRect();return{top:-ut.top||L.body.scrollTop||te.scrollY||Ve.scrollTop||0,left:-ut.left||L.body.scrollLeft||te.scrollX||Ve.scrollLeft||0}}change(L=20){return L>0?this._change.pipe((0,j.e)(L)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const L=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:L.innerWidth,height:L.innerHeight}:{width:0,height:0}}}return ve.\u0275fac=function(L){return new(L||ve)(c.LFG(Ee.t4),c.LFG(c.R0b),c.LFG(Le.K0,8))},ve.\u0275prov=c.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})();const ht=new c.OlP("VIRTUAL_SCROLLABLE");let vt=(()=>{class ve extends Ue{constructor(L,te,Ve,ut){super(L,te,Ve,ut)}measureViewportSize(L){const te=this.elementRef.nativeElement;return"horizontal"===L?te.clientWidth:te.clientHeight}}return ve.\u0275fac=function(L){return new(L||ve)(c.Y36(c.SBq),c.Y36(Ce),c.Y36(c.R0b),c.Y36(Ne.Is,8))},ve.\u0275dir=c.lG2({type:ve,features:[c.qOj]}),ve})();const Mt=typeof requestAnimationFrame<"u"?q.Z:ne.E;let We=(()=>{class ve extends vt{get orientation(){return this._orientation}set orientation(L){this._orientation!==L&&(this._orientation=L,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(L){this._appendOnly=(0,r.Ig)(L)}constructor(L,te,Ve,ut,Bt,Jt,Vt,en){super(L,Jt,Ve,Bt),this.elementRef=L,this._changeDetectorRef=te,this._scrollStrategy=ut,this.scrollable=en,this._platform=(0,c.f3M)(Ee.t4),this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new X.y(En=>this._scrollStrategy.scrolledIndexChange.subscribe(In=>Promise.resolve().then(()=>this.ngZone.run(()=>En.next(In))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=ie.w0.EMPTY,this._viewportChanges=Vt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,je.O)(null),(0,j.e)(0,Mt)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(L){this.ngZone.runOutsideAngular(()=>{this._forOf=L,this._forOf.dataStream.pipe((0,ae.R)(this._detachedSubject)).subscribe(te=>{const Ve=te.length;Ve!==this._dataLength&&(this._dataLength=Ve,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(L){return this.getElementRef().nativeElement.getBoundingClientRect()[L]}setTotalContentSize(L){this._totalContentSize!==L&&(this._totalContentSize=L,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(L){(function Nt(ve,qe){return ve.start==qe.start&&ve.end==qe.end})(this._renderedRange,L)||(this.appendOnly&&(L={start:0,end:Math.max(this._renderedRange.end,L.end)}),this._renderedRangeSubject.next(this._renderedRange=L),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(L,te="to-start"){L=this.appendOnly&&"to-start"===te?0:L;const ut="horizontal"==this.orientation,Bt=ut?"X":"Y";let Vt=`translate${Bt}(${Number((ut&&this.dir&&"rtl"==this.dir.value?-1:1)*L)}px)`;this._renderedContentOffset=L,"to-end"===te&&(Vt+=` translate${Bt}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Vt&&(this._renderedContentTransform=Vt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(L,te="auto"){const Ve={behavior:te};"horizontal"===this.orientation?Ve.start=L:Ve.top=L,this.scrollable.scrollTo(Ve)}scrollToIndex(L,te="auto"){this._scrollStrategy.scrollToIndex(L,te)}measureScrollOffset(L){let te;return te=this.scrollable==this?Ve=>super.measureScrollOffset(Ve):Ve=>this.scrollable.measureScrollOffset(Ve),Math.max(0,te(L??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(L){let te;const Bt="rtl"==this.dir?.value;te="start"==L?Bt?"right":"left":"end"==L?Bt?"left":"right":L||("horizontal"===this.orientation?"left":"top");const Jt=this.scrollable.measureBoundingClientRectWithScrollOffset(te);return this.elementRef.nativeElement.getBoundingClientRect()[te]-Jt}measureRenderedContentSize(){const L=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?L.offsetWidth:L.offsetHeight}measureRangeSize(L){return this._forOf?this._forOf.measureRangeSize(L,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(L){L&&this._runAfterChangeDetection.push(L),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const L=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const te of L)te()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return ve.\u0275fac=function(L){return new(L||ve)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(ke,8),c.Y36(Ne.Is,8),c.Y36(Ce),c.Y36(ze),c.Y36(ht,8))},ve.\u0275cmp=c.Xpm({type:ve,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(L,te){if(1&L&&c.Gf(he,7),2&L){let Ve;c.iGM(Ve=c.CRH())&&(te._contentWrapper=Ve.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(L,te){2&L&&c.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===te.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==te.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[c._Bn([{provide:Ue,useFactory:(qe,L)=>qe||L,deps:[[new c.FiY,new c.tBr(ht)],ve]}]),c.qOj,c.jDz],ngContentSelectors:Re,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(L,te){1&L&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA(),c._UZ(3,"div",2)),2&L&&(c.xp6(3),c.Udp("width",te._totalContentWidth)("height",te._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),ve})(),wt=(()=>{class ve{}return ve.\u0275fac=function(L){return new(L||ve)},ve.\u0275mod=c.oAB({type:ve}),ve.\u0275inj=c.cJS({}),ve})(),Ot=(()=>{class ve{}return ve.\u0275fac=function(L){return new(L||ve)},ve.\u0275mod=c.oAB({type:ve}),ve.\u0275inj=c.cJS({imports:[Ne.vT,wt,We,Ne.vT,wt]}),ve})()},6895:(Dt,Se,g)=>{g.d(Se,{$G:()=>Gn,Do:()=>ke,EM:()=>ri,HT:()=>B,JF:()=>Ir,JJ:()=>lo,K0:()=>le,Mx:()=>di,NF:()=>tn,O5:()=>wi,OU:()=>Oi,Ov:()=>pi,PC:()=>Zi,PM:()=>hn,S$:()=>Ne,V_:()=>ie,Ye:()=>tt,b0:()=>Re,bD:()=>Fe,ez:()=>Pe,mk:()=>cn,q:()=>A,sg:()=>ei,tP:()=>so,uU:()=>bi,w_:()=>X});var r=g(4650);let c=null;function A(){return c}function B(b){c||(c=b)}class X{}const le=new r.OlP("DocumentToken");let q=(()=>{class b{historyGo(T){throw new Error("Not implemented")}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275prov=r.Yz7({token:b,factory:function(){return function ne(){return(0,r.LFG)(j)}()},providedIn:"platform"}),b})();const ie=new r.OlP("Location Initialized");let j=(()=>{class b extends q{constructor(T){super(),this._doc=T,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(T){const z=A().getGlobalEventTarget(this._doc,"window");return z.addEventListener("popstate",T,!1),()=>z.removeEventListener("popstate",T)}onHashChange(T){const z=A().getGlobalEventTarget(this._doc,"window");return z.addEventListener("hashchange",T,!1),()=>z.removeEventListener("hashchange",T)}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(T){this._location.pathname=T}pushState(T,z,_e){ee()?this._history.pushState(T,z,_e):this._location.hash=_e}replaceState(T,z,_e){ee()?this._history.replaceState(T,z,_e):this._location.hash=_e}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return b.\u0275fac=function(T){return new(T||b)(r.LFG(le))},b.\u0275prov=r.Yz7({token:b,factory:function(){return function ae(){return new j((0,r.LFG)(le))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function je(b,N){if(0==b.length)return N;if(0==N.length)return b;let T=0;return b.endsWith("/")&&T++,N.startsWith("/")&&T++,2==T?b+N.substring(1):1==T?b+N:b+"/"+N}function Ee(b){const N=b.match(/#|\?|$/),T=N&&N.index||b.length;return b.slice(0,T-("/"===b[T-1]?1:0))+b.slice(T)}function Le(b){return b&&"?"!==b[0]?"?"+b:b}let Ne=(()=>{class b{historyGo(T){throw new Error("Not implemented")}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275prov=r.Yz7({token:b,factory:function(){return(0,r.f3M)(Re)},providedIn:"root"}),b})();const he=new r.OlP("appBaseHref");let Re=(()=>{class b extends Ne{constructor(T,z){super(),this._platformLocation=T,this._removeListenerFns=[],this._baseHref=z??this._platformLocation.getBaseHrefFromDOM()??(0,r.f3M)(le).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return je(this._baseHref,T)}path(T=!1){const z=this._platformLocation.pathname+Le(this._platformLocation.search),_e=this._platformLocation.hash;return _e&&T?`${z}${_e}`:z}pushState(T,z,_e,at){const mt=this.prepareExternalUrl(_e+Le(at));this._platformLocation.pushState(T,z,mt)}replaceState(T,z,_e,at){const mt=this.prepareExternalUrl(_e+Le(at));this._platformLocation.replaceState(T,z,mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}}return b.\u0275fac=function(T){return new(T||b)(r.LFG(q),r.LFG(he,8))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),ke=(()=>{class b extends Ne{constructor(T,z){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=z&&(this._baseHref=z)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let z=this._platformLocation.hash;return null==z&&(z="#"),z.length>0?z.substring(1):z}prepareExternalUrl(T){const z=je(this._baseHref,T);return z.length>0?"#"+z:z}pushState(T,z,_e,at){let mt=this.prepareExternalUrl(_e+Le(at));0==mt.length&&(mt=this._platformLocation.pathname),this._platformLocation.pushState(T,z,mt)}replaceState(T,z,_e,at){let mt=this.prepareExternalUrl(_e+Le(at));0==mt.length&&(mt=this._platformLocation.pathname),this._platformLocation.replaceState(T,z,mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}}return b.\u0275fac=function(T){return new(T||b)(r.LFG(q),r.LFG(he,8))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac}),b})(),tt=(()=>{class b{constructor(T){this._subject=new r.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=T;const z=this._locationStrategy.getBaseHref();this._basePath=function Ce(b){if(new RegExp("^(https?:)?//").test(b)){const[,T]=b.split(/\/\/[^\/]+/);return T}return b}(Ee(we(z))),this._locationStrategy.onPopState(_e=>{this._subject.emit({url:this.path(!0),pop:!0,state:_e.state,type:_e.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(T=!1){return this.normalize(this._locationStrategy.path(T))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(T,z=""){return this.path()==this.normalize(T+Le(z))}normalize(T){return b.stripTrailingSlash(function ue(b,N){return b&&new RegExp(`^${b}([/;?#]|$)`).test(N)?N.substring(b.length):N}(this._basePath,we(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._locationStrategy.prepareExternalUrl(T)}go(T,z="",_e=null){this._locationStrategy.pushState(_e,"",T,z),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Le(z)),_e)}replaceState(T,z="",_e=null){this._locationStrategy.replaceState(_e,"",T,z),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Le(z)),_e)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(T=0){this._locationStrategy.historyGo?.(T)}onUrlChange(T){return this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(z=>{this._notifyUrlChangeListeners(z.url,z.state)})),()=>{const z=this._urlChangeListeners.indexOf(T);this._urlChangeListeners.splice(z,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(T="",z){this._urlChangeListeners.forEach(_e=>_e(T,z))}subscribe(T,z,_e){return this._subject.subscribe({next:T,error:z,complete:_e})}}return b.normalizeQueryParams=Le,b.joinWithSlash=je,b.stripTrailingSlash=Ee,b.\u0275fac=function(T){return new(T||b)(r.LFG(Ne))},b.\u0275prov=r.Yz7({token:b,factory:function(){return function ye(){return new tt((0,r.LFG)(Ne))}()},providedIn:"root"}),b})();function we(b){return b.replace(/\/index.html$/,"")}var Te=(()=>((Te=Te||{})[Te.Decimal=0]="Decimal",Te[Te.Percent=1]="Percent",Te[Te.Currency=2]="Currency",Te[Te.Scientific=3]="Scientific",Te))(),ht=(()=>((ht=ht||{})[ht.Format=0]="Format",ht[ht.Standalone=1]="Standalone",ht))(),vt=(()=>((vt=vt||{})[vt.Narrow=0]="Narrow",vt[vt.Abbreviated=1]="Abbreviated",vt[vt.Wide=2]="Wide",vt[vt.Short=3]="Short",vt))(),Nt=(()=>((Nt=Nt||{})[Nt.Short=0]="Short",Nt[Nt.Medium=1]="Medium",Nt[Nt.Long=2]="Long",Nt[Nt.Full=3]="Full",Nt))(),Mt=(()=>((Mt=Mt||{})[Mt.Decimal=0]="Decimal",Mt[Mt.Group=1]="Group",Mt[Mt.List=2]="List",Mt[Mt.PercentSign=3]="PercentSign",Mt[Mt.PlusSign=4]="PlusSign",Mt[Mt.MinusSign=5]="MinusSign",Mt[Mt.Exponential=6]="Exponential",Mt[Mt.SuperscriptingExponent=7]="SuperscriptingExponent",Mt[Mt.PerMille=8]="PerMille",Mt[Mt.Infinity=9]="Infinity",Mt[Mt.NaN=10]="NaN",Mt[Mt.TimeSeparator=11]="TimeSeparator",Mt[Mt.CurrencyDecimal=12]="CurrencyDecimal",Mt[Mt.CurrencyGroup=13]="CurrencyGroup",Mt))();function qe(b,N){return et((0,r.cg1)(b)[r.wAp.DateFormat],N)}function L(b,N){return et((0,r.cg1)(b)[r.wAp.TimeFormat],N)}function te(b,N){return et((0,r.cg1)(b)[r.wAp.DateTimeFormat],N)}function Ve(b,N){const T=(0,r.cg1)(b),z=T[r.wAp.NumberSymbols][N];if(typeof z>"u"){if(N===Mt.CurrencyDecimal)return T[r.wAp.NumberSymbols][Mt.Decimal];if(N===Mt.CurrencyGroup)return T[r.wAp.NumberSymbols][Mt.Group]}return z}function In(b){if(!b[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function et(b,N){for(let T=N;T>-1;T--)if(typeof b[T]<"u")return b[T];throw new Error("Locale data API: locale data undefined")}function W(b){const[N,T]=b.split(":");return{hours:+N,minutes:+T}}const st=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,At={},$t=/((?:[^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 It=(()=>((It=It||{})[It.Short=0]="Short",It[It.ShortGMT=1]="ShortGMT",It[It.Long=2]="Long",It[It.Extended=3]="Extended",It))(),Tt=(()=>((Tt=Tt||{})[Tt.FullYear=0]="FullYear",Tt[Tt.Month=1]="Month",Tt[Tt.Date=2]="Date",Tt[Tt.Hours=3]="Hours",Tt[Tt.Minutes=4]="Minutes",Tt[Tt.Seconds=5]="Seconds",Tt[Tt.FractionalSeconds=6]="FractionalSeconds",Tt[Tt.Day=7]="Day",Tt))(),De=(()=>((De=De||{})[De.DayPeriods=0]="DayPeriods",De[De.Days=1]="Days",De[De.Months=2]="Months",De[De.Eras=3]="Eras",De))();function lt(b,N,T,z){let _e=function Pt(b){if(Xt(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[_e,at=1,mt=1]=b.split("-").map(nn=>+nn);return fe(_e,at-1,mt)}const T=parseFloat(b);if(!isNaN(b-T))return new Date(T);let z;if(z=b.match(st))return function Wt(b){const N=new Date(0);let T=0,z=0;const _e=b[8]?N.setUTCFullYear:N.setFullYear,at=b[8]?N.setUTCHours:N.setHours;b[9]&&(T=Number(b[9]+b[10]),z=Number(b[9]+b[11])),_e.call(N,Number(b[1]),Number(b[2])-1,Number(b[3]));const mt=Number(b[4]||0)-T,nn=Number(b[5]||0)-z,jn=Number(b[6]||0),Wn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return at.call(N,mt,nn,jn,Wn),N}(z)}const N=new Date(b);if(!Xt(N))throw new Error(`Unable to convert "${b}" into a date`);return N}(b);N=Ye(T,N)||N;let nn,mt=[];for(;N;){if(nn=$t.exec(N),!nn){mt.push(N);break}{mt=mt.concat(nn.slice(1));const $n=mt.pop();if(!$n)break;N=$n}}let jn=_e.getTimezoneOffset();z&&(jn=be(z,jn),_e=function xe(b,N,T){const z=T?-1:1,_e=b.getTimezoneOffset();return function Je(b,N){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+N),b}(b,z*(be(N,_e)-_e))}(_e,z,!0));let Wn="";return mt.forEach($n=>{const Nn=function ce(b){if(K[b])return K[b];let N;switch(b){case"G":case"GG":case"GGG":N=rn(De.Eras,vt.Abbreviated);break;case"GGGG":N=rn(De.Eras,vt.Wide);break;case"GGGGG":N=rn(De.Eras,vt.Narrow);break;case"y":N=Ut(Tt.FullYear,1,0,!1,!0);break;case"yy":N=Ut(Tt.FullYear,2,0,!0,!0);break;case"yyy":N=Ut(Tt.FullYear,3,0,!1,!0);break;case"yyyy":N=Ut(Tt.FullYear,4,0,!1,!0);break;case"Y":N=Ze(1);break;case"YY":N=Ze(2,!0);break;case"YYY":N=Ze(3);break;case"YYYY":N=Ze(4);break;case"M":case"L":N=Ut(Tt.Month,1,1);break;case"MM":case"LL":N=Ut(Tt.Month,2,1);break;case"MMM":N=rn(De.Months,vt.Abbreviated);break;case"MMMM":N=rn(De.Months,vt.Wide);break;case"MMMMM":N=rn(De.Months,vt.Narrow);break;case"LLL":N=rn(De.Months,vt.Abbreviated,ht.Standalone);break;case"LLLL":N=rn(De.Months,vt.Wide,ht.Standalone);break;case"LLLLL":N=rn(De.Months,vt.Narrow,ht.Standalone);break;case"w":N=oe(1);break;case"ww":N=oe(2);break;case"W":N=oe(1,!0);break;case"d":N=Ut(Tt.Date,1);break;case"dd":N=Ut(Tt.Date,2);break;case"c":case"cc":N=Ut(Tt.Day,1);break;case"ccc":N=rn(De.Days,vt.Abbreviated,ht.Standalone);break;case"cccc":N=rn(De.Days,vt.Wide,ht.Standalone);break;case"ccccc":N=rn(De.Days,vt.Narrow,ht.Standalone);break;case"cccccc":N=rn(De.Days,vt.Short,ht.Standalone);break;case"E":case"EE":case"EEE":N=rn(De.Days,vt.Abbreviated);break;case"EEEE":N=rn(De.Days,vt.Wide);break;case"EEEEE":N=rn(De.Days,vt.Narrow);break;case"EEEEEE":N=rn(De.Days,vt.Short);break;case"a":case"aa":case"aaa":N=rn(De.DayPeriods,vt.Abbreviated);break;case"aaaa":N=rn(De.DayPeriods,vt.Wide);break;case"aaaaa":N=rn(De.DayPeriods,vt.Narrow);break;case"b":case"bb":case"bbb":N=rn(De.DayPeriods,vt.Abbreviated,ht.Standalone,!0);break;case"bbbb":N=rn(De.DayPeriods,vt.Wide,ht.Standalone,!0);break;case"bbbbb":N=rn(De.DayPeriods,vt.Narrow,ht.Standalone,!0);break;case"B":case"BB":case"BBB":N=rn(De.DayPeriods,vt.Abbreviated,ht.Format,!0);break;case"BBBB":N=rn(De.DayPeriods,vt.Wide,ht.Format,!0);break;case"BBBBB":N=rn(De.DayPeriods,vt.Narrow,ht.Format,!0);break;case"h":N=Ut(Tt.Hours,1,-12);break;case"hh":N=Ut(Tt.Hours,2,-12);break;case"H":N=Ut(Tt.Hours,1);break;case"HH":N=Ut(Tt.Hours,2);break;case"m":N=Ut(Tt.Minutes,1);break;case"mm":N=Ut(Tt.Minutes,2);break;case"s":N=Ut(Tt.Seconds,1);break;case"ss":N=Ut(Tt.Seconds,2);break;case"S":N=Ut(Tt.FractionalSeconds,1);break;case"SS":N=Ut(Tt.FractionalSeconds,2);break;case"SSS":N=Ut(Tt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":N=xn(It.Short);break;case"ZZZZZ":N=xn(It.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":N=xn(It.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":N=xn(It.Long);break;default:return null}return K[b]=N,N}($n);Wn+=Nn?Nn(_e,T,jn):"''"===$n?"'":$n.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Wn}function fe(b,N,T){const z=new Date(0);return z.setFullYear(b,N,T),z.setHours(0,0,0),z}function Ye(b,N){const T=function it(b){return(0,r.cg1)(b)[r.wAp.LocaleId]}(b);if(At[T]=At[T]||{},At[T][N])return At[T][N];let z="";switch(N){case"shortDate":z=qe(b,Nt.Short);break;case"mediumDate":z=qe(b,Nt.Medium);break;case"longDate":z=qe(b,Nt.Long);break;case"fullDate":z=qe(b,Nt.Full);break;case"shortTime":z=L(b,Nt.Short);break;case"mediumTime":z=L(b,Nt.Medium);break;case"longTime":z=L(b,Nt.Long);break;case"fullTime":z=L(b,Nt.Full);break;case"short":const _e=Ye(b,"shortTime"),at=Ye(b,"shortDate");z=Ct(te(b,Nt.Short),[_e,at]);break;case"medium":const mt=Ye(b,"mediumTime"),nn=Ye(b,"mediumDate");z=Ct(te(b,Nt.Medium),[mt,nn]);break;case"long":const jn=Ye(b,"longTime"),Wn=Ye(b,"longDate");z=Ct(te(b,Nt.Long),[jn,Wn]);break;case"full":const $n=Ye(b,"fullTime"),Nn=Ye(b,"fullDate");z=Ct(te(b,Nt.Full),[$n,Nn])}return z&&(At[T][N]=z),z}function Ct(b,N){return N&&(b=b.replace(/\{([^}]+)}/g,function(T,z){return null!=N&&z in N?N[z]:T})),b}function kt(b,N,T="-",z,_e){let at="";(b<0||_e&&b<=0)&&(_e?b=1-b:(b=-b,at=T));let mt=String(b);for(;mt.length<N;)mt="0"+mt;return z&&(mt=mt.slice(mt.length-N)),at+mt}function Ut(b,N,T=0,z=!1,_e=!1){return function(at,mt){let nn=function An(b,N){switch(b){case Tt.FullYear:return N.getFullYear();case Tt.Month:return N.getMonth();case Tt.Date:return N.getDate();case Tt.Hours:return N.getHours();case Tt.Minutes:return N.getMinutes();case Tt.Seconds:return N.getSeconds();case Tt.FractionalSeconds:return N.getMilliseconds();case Tt.Day:return N.getDay();default:throw new Error(`Unknown DateType value "${b}".`)}}(b,at);if((T>0||nn>-T)&&(nn+=T),b===Tt.Hours)0===nn&&-12===T&&(nn=12);else if(b===Tt.FractionalSeconds)return function ln(b,N){return kt(b,3).substring(0,N)}(nn,N);const jn=Ve(mt,Mt.MinusSign);return kt(nn,N,jn,z,_e)}}function rn(b,N,T=ht.Format,z=!1){return function(_e,at){return function Tn(b,N,T,z,_e,at){switch(T){case De.Months:return function bt(b,N,T){const z=(0,r.cg1)(b),at=et([z[r.wAp.MonthsFormat],z[r.wAp.MonthsStandalone]],N);return et(at,T)}(N,_e,z)[b.getMonth()];case De.Days:return function gt(b,N,T){const z=(0,r.cg1)(b),at=et([z[r.wAp.DaysFormat],z[r.wAp.DaysStandalone]],N);return et(at,T)}(N,_e,z)[b.getDay()];case De.DayPeriods:const mt=b.getHours(),nn=b.getMinutes();if(at){const Wn=function Pn(b){const N=(0,r.cg1)(b);return In(N),(N[r.wAp.ExtraData][2]||[]).map(z=>"string"==typeof z?W(z):[W(z[0]),W(z[1])])}(N),$n=function Fn(b,N,T){const z=(0,r.cg1)(b);In(z);const at=et([z[r.wAp.ExtraData][0],z[r.wAp.ExtraData][1]],N)||[];return et(at,T)||[]}(N,_e,z),Nn=Wn.findIndex(Ei=>{if(Array.isArray(Ei)){const[Kn,ci]=Ei,lr=mt>=Kn.hours&&nn>=Kn.minutes,Ji=mt<ci.hours||mt===ci.hours&&nn<ci.minutes;if(Kn.hours<ci.hours){if(lr&&Ji)return!0}else if(lr||Ji)return!0}else if(Ei.hours===mt&&Ei.minutes===nn)return!0;return!1});if(-1!==Nn)return $n[Nn]}return function ct(b,N,T){const z=(0,r.cg1)(b),at=et([z[r.wAp.DayPeriodsFormat],z[r.wAp.DayPeriodsStandalone]],N);return et(at,T)}(N,_e,z)[mt<12?0:1];case De.Eras:return function wt(b,N){return et((0,r.cg1)(b)[r.wAp.Eras],N)}(N,z)[b.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${T}`)}}(_e,at,b,N,T,z)}}function xn(b){return function(N,T,z){const _e=-1*z,at=Ve(T,Mt.MinusSign),mt=_e>0?Math.floor(_e/60):Math.ceil(_e/60);switch(b){case It.Short:return(_e>=0?"+":"")+kt(mt,2,at)+kt(Math.abs(_e%60),2,at);case It.ShortGMT:return"GMT"+(_e>=0?"+":"")+kt(mt,1,at);case It.Long:return"GMT"+(_e>=0?"+":"")+kt(mt,2,at)+":"+kt(Math.abs(_e%60),2,at);case It.Extended:return 0===z?"Z":(_e>=0?"+":"")+kt(mt,2,at)+":"+kt(Math.abs(_e%60),2,at);default:throw new Error(`Unknown zone width "${b}"`)}}}function U(b){return fe(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function oe(b,N=!1){return function(T,z){let _e;if(N){const at=new Date(T.getFullYear(),T.getMonth(),1).getDay()-1,mt=T.getDate();_e=1+Math.floor((mt+at)/7)}else{const at=U(T),mt=function V(b){const N=fe(b,0,1).getDay();return fe(b,0,1+(N<=4?4:11)-N)}(at.getFullYear()),nn=at.getTime()-mt.getTime();_e=1+Math.round(nn/6048e5)}return kt(_e,b,Ve(z,Mt.MinusSign))}}function Ze(b,N=!1){return function(T,z){return kt(U(T).getFullYear(),b,Ve(z,Mt.MinusSign),N)}}const K={};function be(b,N){b=b.replace(/:/g,"");const T=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(T)?N:T}function Xt(b){return b instanceof Date&&!isNaN(b.valueOf())}const de=/^(\d+)?\.((\d+)(-(\d+))?)?$/,p=".",_="0";function mn(b){const N=parseInt(b);if(isNaN(N))throw new Error("Invalid integer literal when parsing "+b);return N}function di(b,N){N=encodeURIComponent(N);for(const T of b.split(";")){const z=T.indexOf("="),[_e,at]=-1==z?[T,""]:[T.slice(0,z),T.slice(z+1)];if(_e.trim()===N)return decodeURIComponent(at)}return null}const ii=/\s+/,zt=[];let cn=(()=>{class b{constructor(T,z,_e,at){this._iterableDiffers=T,this._keyValueDiffers=z,this._ngEl=_e,this._renderer=at,this.initialClasses=zt,this.stateMap=new Map}set klass(T){this.initialClasses=null!=T?T.trim().split(ii):zt}set ngClass(T){this.rawClass="string"==typeof T?T.trim().split(ii):T}ngDoCheck(){for(const z of this.initialClasses)this._updateState(z,!0);const T=this.rawClass;if(Array.isArray(T)||T instanceof Set)for(const z of T)this._updateState(z,!0);else if(null!=T)for(const z of Object.keys(T))this._updateState(z,Boolean(T[z]));this._applyStateDiff()}_updateState(T,z){const _e=this.stateMap.get(T);void 0!==_e?(_e.enabled!==z&&(_e.changed=!0,_e.enabled=z),_e.touched=!0):this.stateMap.set(T,{enabled:z,changed:!0,touched:!0})}_applyStateDiff(){for(const T of this.stateMap){const z=T[0],_e=T[1];_e.changed?(this._toggleClass(z,_e.enabled),_e.changed=!1):_e.touched||(_e.enabled&&this._toggleClass(z,!1),this.stateMap.delete(z)),_e.touched=!1}}_toggleClass(T,z){(T=T.trim()).length>0&&T.split(ii).forEach(_e=>{z?this._renderer.addClass(this._ngEl.nativeElement,_e):this._renderer.removeClass(this._ngEl.nativeElement,_e)})}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),b})(),Gn=(()=>{class b{constructor(T){this._viewContainerRef=T,this.ngComponentOutlet=null}ngOnChanges(T){const{_viewContainerRef:z,ngComponentOutletNgModule:_e,ngComponentOutletNgModuleFactory:at}=this;if(z.clear(),this._componentRef=void 0,this.ngComponentOutlet){const mt=this.ngComponentOutletInjector||z.parentInjector;(T.ngComponentOutletNgModule||T.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=_e?(0,r.Lck)(_e,li(mt)):at?at.create(li(mt)):void 0),this._componentRef=z.createComponent(this.ngComponentOutlet,{index:z.length,injector:mt,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[r.TTD]}),b})();function li(b){return b.get(r.h0i).injector}class qn{constructor(N,T,z,_e){this.$implicit=N,this.ngForOf=T,this.index=z,this.count=_e}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 ei=(()=>{class b{set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}constructor(T,z,_e){this._viewContainer=T,this._template=z,this._differs=_e,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const z=this._viewContainer;T.forEachOperation((_e,at,mt)=>{if(null==_e.previousIndex)z.createEmbeddedView(this._template,new qn(_e.item,this._ngForOf,-1,-1),null===mt?void 0:mt);else if(null==mt)z.remove(null===at?void 0:at);else if(null!==at){const nn=z.get(at);z.move(nn,mt),Rn(nn,_e)}});for(let _e=0,at=z.length;_e<at;_e++){const nn=z.get(_e).context;nn.index=_e,nn.count=at,nn.ngForOf=this._ngForOf}T.forEachIdentityChange(_e=>{Rn(z.get(_e.currentIndex),_e)})}static ngTemplateContextGuard(T,z){return!0}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),b})();function Rn(b,N){b.context.$implicit=N.item}let wi=(()=>{class b{constructor(T,z){this._viewContainer=T,this._context=new Cn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=z}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){Yi("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){Yi("ngIfElse",T),this._elseTemplateRef=T,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(T,z){return!0}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b),r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),b})();class Cn{constructor(){this.$implicit=null,this.ngIf=null}}function Yi(b,N){if(N&&!N.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,r.AaK)(N)}'.`)}let Zi=(()=>{class b{constructor(T,z,_e){this._ngEl=T,this._differs=z,this._renderer=_e,this._ngStyle=null,this._differ=null}set ngStyle(T){this._ngStyle=T,!this._differ&&T&&(this._differ=this._differs.find(T).create())}ngDoCheck(){if(this._differ){const T=this._differ.diff(this._ngStyle);T&&this._applyChanges(T)}}_setStyle(T,z){const[_e,at]=T.split("."),mt=-1===_e.indexOf("-")?void 0:r.JOm.DashCase;null!=z?this._renderer.setStyle(this._ngEl.nativeElement,_e,at?`${z}${at}`:z,mt):this._renderer.removeStyle(this._ngEl.nativeElement,_e,mt)}_applyChanges(T){T.forEachRemovedItem(z=>this._setStyle(z.key,null)),T.forEachAddedItem(z=>this._setStyle(z.key,z.currentValue)),T.forEachChangedItem(z=>this._setStyle(z.key,z.currentValue))}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),b})(),so=(()=>{class b{constructor(T){this._viewContainerRef=T,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(T){if(T.ngTemplateOutlet||T.ngTemplateOutletInjector){const z=this._viewContainerRef;if(this._viewRef&&z.remove(z.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:_e,ngTemplateOutletContext:at,ngTemplateOutletInjector:mt}=this;this._viewRef=z.createEmbeddedView(_e,at,mt?{injector:mt}:void 0)}else this._viewRef=null}else this._viewRef&&T.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.s_b))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.TTD]}),b})();function Li(b,N){return new r.vHH(2100,!1)}class Tr{createSubscription(N,T){return N.subscribe({next:T,error:z=>{throw z}})}dispose(N){N.unsubscribe()}}class ao{createSubscription(N,T){return N.then(T,z=>{throw z})}dispose(N){}}const dr=new ao,hr=new Tr;let pi=(()=>{class b{constructor(T){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=T}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,z=>this._updateLatestValue(T,z))}_selectStrategy(T){if((0,r.QGY)(T))return dr;if((0,r.F4k)(T))return hr;throw Li()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,z){T===this._obj&&(this._latestValue=z,this._ref.markForCheck())}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.sBO,16))},b.\u0275pipe=r.Yjl({name:"async",type:b,pure:!1,standalone:!0}),b})();const Ui=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),xr=new r.OlP("DATE_PIPE_DEFAULT_OPTIONS");let bi=(()=>{class b{constructor(T,z,_e){this.locale=T,this.defaultTimezone=z,this.defaultOptions=_e}transform(T,z,_e,at){if(null==T||""===T||T!=T)return null;try{return lt(T,z??this.defaultOptions?.dateFormat??"mediumDate",at||this.locale,_e??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(mt){throw Li()}}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.soG,16),r.Y36(Ui,24),r.Y36(xr,24))},b.\u0275pipe=r.Yjl({name:"date",type:b,pure:!0,standalone:!0}),b})(),lo=(()=>{class b{constructor(T){this._locale=T}transform(T,z,_e){if(!function Kr(b){return!(null==b||""===b||b!=b)}(T))return null;_e=_e||this._locale;try{return function ft(b,N,T){return function Lt(b,N,T,z,_e,at,mt=!1){let nn="",jn=!1;if(isFinite(b)){let Wn=function pt(b){let z,_e,at,mt,nn,N=Math.abs(b)+"",T=0;for((_e=N.indexOf(p))>-1&&(N=N.replace(p,"")),(at=N.search(/e/i))>0?(_e<0&&(_e=at),_e+=+N.slice(at+1),N=N.substring(0,at)):_e<0&&(_e=N.length),at=0;N.charAt(at)===_;at++);if(at===(nn=N.length))z=[0],_e=1;else{for(nn--;N.charAt(nn)===_;)nn--;for(_e-=at,z=[],mt=0;at<=nn;at++,mt++)z[mt]=Number(N.charAt(at))}return _e>22&&(z=z.splice(0,21),T=_e-1,_e=1),{digits:z,exponent:T,integerLen:_e}}(b);mt&&(Wn=function Ae(b){if(0===b.digits[0])return b;const N=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===N?b.digits.push(0,0):1===N&&b.digits.push(0),b.integerLen+=2),b}(Wn));let $n=N.minInt,Nn=N.minFrac,Ei=N.maxFrac;if(at){const er=at.match(de);if(null===er)throw new Error(`${at} is not a valid digit info`);const Pr=er[1],to=er[3],vo=er[5];null!=Pr&&($n=mn(Pr)),null!=to&&(Nn=mn(to)),null!=vo?Ei=mn(vo):null!=to&&Nn>Ei&&(Ei=Nn)}!function Gt(b,N,T){if(N>T)throw new Error(`The minimum number of digits after fraction (${N}) is higher than the maximum (${T}).`);let z=b.digits,_e=z.length-b.integerLen;const at=Math.min(Math.max(N,_e),T);let mt=at+b.integerLen,nn=z[mt];if(mt>0){z.splice(Math.max(b.integerLen,mt));for(let Nn=mt;Nn<z.length;Nn++)z[Nn]=0}else{_e=Math.max(0,_e),b.integerLen=1,z.length=Math.max(1,mt=at+1),z[0]=0;for(let Nn=1;Nn<mt;Nn++)z[Nn]=0}if(nn>=5)if(mt-1<0){for(let Nn=0;Nn>mt;Nn--)z.unshift(0),b.integerLen++;z.unshift(1),b.integerLen++}else z[mt-1]++;for(;_e<Math.max(0,at);_e++)z.push(0);let jn=0!==at;const Wn=N+b.integerLen,$n=z.reduceRight(function(Nn,Ei,Kn,ci){return ci[Kn]=(Ei+=Nn)<10?Ei:Ei-10,jn&&(0===ci[Kn]&&Kn>=Wn?ci.pop():jn=!1),Ei>=10?1:0},0);$n&&(z.unshift($n),b.integerLen++)}(Wn,Nn,Ei);let Kn=Wn.digits,ci=Wn.integerLen;const lr=Wn.exponent;let Ji=[];for(jn=Kn.every(er=>!er);ci<$n;ci++)Kn.unshift(0);for(;ci<0;ci++)Kn.unshift(0);ci>0?Ji=Kn.splice(ci,Kn.length):(Ji=Kn,Kn=[0]);const Gi=[];for(Kn.length>=N.lgSize&&Gi.unshift(Kn.splice(-N.lgSize,Kn.length).join(""));Kn.length>N.gSize;)Gi.unshift(Kn.splice(-N.gSize,Kn.length).join(""));Kn.length&&Gi.unshift(Kn.join("")),nn=Gi.join(Ve(T,z)),Ji.length&&(nn+=Ve(T,_e)+Ji.join("")),lr&&(nn+=Ve(T,Mt.Exponential)+"+"+lr)}else nn=Ve(T,Mt.Infinity);return nn=b<0&&!jn?N.negPre+nn+N.negSuf:N.posPre+nn+N.posSuf,nn}(b,function St(b,N="-"){const T={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},z=b.split(";"),_e=z[0],at=z[1],mt=-1!==_e.indexOf(p)?_e.split(p):[_e.substring(0,_e.lastIndexOf(_)+1),_e.substring(_e.lastIndexOf(_)+1)],nn=mt[0],jn=mt[1]||"";T.posPre=nn.substring(0,nn.indexOf("#"));for(let $n=0;$n<jn.length;$n++){const Nn=jn.charAt($n);Nn===_?T.minFrac=T.maxFrac=$n+1:"#"===Nn?T.maxFrac=$n+1:T.posSuf+=Nn}const Wn=nn.split(",");if(T.gSize=Wn[1]?Wn[1].length:0,T.lgSize=Wn[2]||Wn[1]?(Wn[2]||Wn[1]).length:0,at){const $n=_e.length-T.posPre.length-T.posSuf.length,Nn=at.indexOf("#");T.negPre=at.substring(0,Nn).replace(/'/g,""),T.negSuf=at.slice(Nn+$n).replace(/'/g,"")}else T.negPre=N+T.posPre,T.negSuf=T.posSuf;return T}(function ut(b,N){return(0,r.cg1)(b)[r.wAp.NumberFormats][N]}(N,Te.Decimal),Ve(N,Mt.MinusSign)),N,Mt.Group,Mt.Decimal,T)}(function Ii(b){if("string"==typeof b&&!isNaN(Number(b)-parseFloat(b)))return Number(b);if("number"!=typeof b)throw new Error(`${b} is not a number`);return b}(T),_e,z)}catch(at){throw Li()}}}return b.\u0275fac=function(T){return new(T||b)(r.Y36(r.soG,16))},b.\u0275pipe=r.Yjl({name:"number",type:b,pure:!0,standalone:!0}),b})();let Oi=(()=>{class b{transform(T,z,_e){if(null==T)return null;if(!this.supports(T))throw Li();return T.slice(z,_e)}supports(T){return"string"==typeof T||Array.isArray(T)}}return b.\u0275fac=function(T){return new(T||b)},b.\u0275pipe=r.Yjl({name:"slice",type:b,pure:!1,standalone:!0}),b})(),Pe=(()=>{class b{}return b.\u0275fac=function(T){return new(T||b)},b.\u0275mod=r.oAB({type:b}),b.\u0275inj=r.cJS({}),b})();const Fe="browser";function tn(b){return b===Fe}function hn(b){return"server"===b}let ri=(()=>{class b{}return b.\u0275prov=(0,r.Yz7)({token:b,providedIn:"root",factory:()=>new hi((0,r.LFG)(le),window)}),b})();class hi{constructor(N,T){this.document=N,this.window=T,this.offset=()=>[0,0]}setOffset(N){this.offset=Array.isArray(N)?()=>N:N}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(N){this.supportsScrolling()&&this.window.scrollTo(N[0],N[1])}scrollToAnchor(N){if(!this.supportsScrolling())return;const T=function ji(b,N){const T=b.getElementById(N)||b.getElementsByName(N)[0];if(T)return T;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const z=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let _e=z.currentNode;for(;_e;){const at=_e.shadowRoot;if(at){const mt=at.getElementById(N)||at.querySelector(`[name="${N}"]`);if(mt)return mt}_e=z.nextNode()}}return null}(this.document,N);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(N){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=N)}}scrollToElement(N){const T=N.getBoundingClientRect(),z=T.left+this.window.pageXOffset,_e=T.top+this.window.pageYOffset,at=this.offset();this.window.scrollTo(z-at[0],_e-at[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const N=Hi(this.window.history)||Hi(Object.getPrototypeOf(this.window.history));return!(!N||!N.writable&&!N.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Hi(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Ir{}},529:(Dt,Se,g)=>{g.d(Se,{JF:()=>xn,TP:()=>wt,WM:()=>j,eN:()=>it});var r=g(6895),c=g(4650),A=g(9646),B=g(9751),X=g(4351),le=g(9300),q=g(4004);class ne{}class ie{}class j{constructor(U){this.normalizedNames=new Map,this.lazyUpdate=null,U?this.lazyInit="string"==typeof U?()=>{this.headers=new Map,U.split("\n").forEach(oe=>{const Ze=oe.indexOf(":");if(Ze>0){const K=oe.slice(0,Ze),ce=K.toLowerCase(),be=oe.slice(Ze+1).trim();this.maybeSetNormalizedName(K,ce),this.headers.has(ce)?this.headers.get(ce).push(be):this.headers.set(ce,[be])}})}:()=>{this.headers=new Map,Object.keys(U).forEach(oe=>{let Ze=U[oe];const K=oe.toLowerCase();"string"==typeof Ze&&(Ze=[Ze]),Ze.length>0&&(this.headers.set(K,Ze),this.maybeSetNormalizedName(oe,K))})}:this.headers=new Map}has(U){return this.init(),this.headers.has(U.toLowerCase())}get(U){this.init();const oe=this.headers.get(U.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(U){return this.init(),this.headers.get(U.toLowerCase())||null}append(U,oe){return this.clone({name:U,value:oe,op:"a"})}set(U,oe){return this.clone({name:U,value:oe,op:"s"})}delete(U,oe){return this.clone({name:U,value:oe,op:"d"})}maybeSetNormalizedName(U,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,U)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(U=>this.applyUpdate(U)),this.lazyUpdate=null))}copyFrom(U){U.init(),Array.from(U.headers.keys()).forEach(oe=>{this.headers.set(oe,U.headers.get(oe)),this.normalizedNames.set(oe,U.normalizedNames.get(oe))})}clone(U){const oe=new j;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([U]),oe}applyUpdate(U){const oe=U.name.toLowerCase();switch(U.op){case"a":case"s":let Ze=U.value;if("string"==typeof Ze&&(Ze=[Ze]),0===Ze.length)return;this.maybeSetNormalizedName(U.name,oe);const K=("a"===U.op?this.headers.get(oe):void 0)||[];K.push(...Ze),this.headers.set(oe,K);break;case"d":const ce=U.value;if(ce){let be=this.headers.get(oe);if(!be)return;be=be.filter(Je=>-1===ce.indexOf(Je)),0===be.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,be)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(U){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>U(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ae{encodeKey(U){return Ne(U)}encodeValue(U){return Ne(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}const Ee=/%(\d[a-f0-9])/gi,Le={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ne(V){return encodeURIComponent(V).replace(Ee,(U,oe)=>Le[oe]??U)}function he(V){return`${V}`}class Re{constructor(U={}){if(this.updates=null,this.cloneFrom=null,this.encoder=U.encoder||new ae,U.fromString){if(U.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function je(V,U){const oe=new Map;return V.length>0&&V.replace(/^\?/,"").split("&").forEach(K=>{const ce=K.indexOf("="),[be,Je]=-1==ce?[U.decodeKey(K),""]:[U.decodeKey(K.slice(0,ce)),U.decodeValue(K.slice(ce+1))],xe=oe.get(be)||[];xe.push(Je),oe.set(be,xe)}),oe}(U.fromString,this.encoder)}else U.fromObject?(this.map=new Map,Object.keys(U.fromObject).forEach(oe=>{const Ze=U.fromObject[oe],K=Array.isArray(Ze)?Ze.map(he):[he(Ze)];this.map.set(oe,K)})):this.map=null}has(U){return this.init(),this.map.has(U)}get(U){this.init();const oe=this.map.get(U);return oe?oe[0]:null}getAll(U){return this.init(),this.map.get(U)||null}keys(){return this.init(),Array.from(this.map.keys())}append(U,oe){return this.clone({param:U,value:oe,op:"a"})}appendAll(U){const oe=[];return Object.keys(U).forEach(Ze=>{const K=U[Ze];Array.isArray(K)?K.forEach(ce=>{oe.push({param:Ze,value:ce,op:"a"})}):oe.push({param:Ze,value:K,op:"a"})}),this.clone(oe)}set(U,oe){return this.clone({param:U,value:oe,op:"s"})}delete(U,oe){return this.clone({param:U,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(U=>{const oe=this.encoder.encodeKey(U);return this.map.get(U).map(Ze=>oe+"="+this.encoder.encodeValue(Ze)).join("&")}).filter(U=>""!==U).join("&")}clone(U){const oe=new Re({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(U),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(U=>this.map.set(U,this.cloneFrom.map.get(U))),this.updates.forEach(U=>{switch(U.op){case"a":case"s":const oe=("a"===U.op?this.map.get(U.param):void 0)||[];oe.push(he(U.value)),this.map.set(U.param,oe);break;case"d":if(void 0===U.value){this.map.delete(U.param);break}{let Ze=this.map.get(U.param)||[];const K=Ze.indexOf(he(U.value));-1!==K&&Ze.splice(K,1),Ze.length>0?this.map.set(U.param,Ze):this.map.delete(U.param)}}}),this.cloneFrom=this.updates=null)}}class tt{constructor(){this.map=new Map}set(U,oe){return this.map.set(U,oe),this}get(U){return this.map.has(U)||this.map.set(U,U.defaultValue()),this.map.get(U)}delete(U){return this.map.delete(U),this}has(U){return this.map.has(U)}keys(){return this.map.keys()}}function ue(V){return typeof ArrayBuffer<"u"&&V instanceof ArrayBuffer}function we(V){return typeof Blob<"u"&&V instanceof Blob}function Ce(V){return typeof FormData<"u"&&V instanceof FormData}class Te{constructor(U,oe,Ze,K){let ce;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=U.toUpperCase(),function ye(V){switch(V){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||K?(this.body=void 0!==Ze?Ze:null,ce=K):ce=Ze,ce&&(this.reportProgress=!!ce.reportProgress,this.withCredentials=!!ce.withCredentials,ce.responseType&&(this.responseType=ce.responseType),ce.headers&&(this.headers=ce.headers),ce.context&&(this.context=ce.context),ce.params&&(this.params=ce.params)),this.headers||(this.headers=new j),this.context||(this.context=new tt),this.params){const be=this.params.toString();if(0===be.length)this.urlWithParams=oe;else{const Je=oe.indexOf("?");this.urlWithParams=oe+(-1===Je?"?":Je<oe.length-1?"&":"")+be}}else this.params=new Re,this.urlWithParams=oe}serializeBody(){return null===this.body?null:ue(this.body)||we(this.body)||Ce(this.body)||function Ue(V){return typeof URLSearchParams<"u"&&V instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Re?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ce(this.body)?null:we(this.body)?this.body.type||null:ue(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Re?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(U={}){const oe=U.method||this.method,Ze=U.url||this.url,K=U.responseType||this.responseType,ce=void 0!==U.body?U.body:this.body,be=void 0!==U.withCredentials?U.withCredentials:this.withCredentials,Je=void 0!==U.reportProgress?U.reportProgress:this.reportProgress;let xe=U.headers||this.headers,Pt=U.params||this.params;const Wt=U.context??this.context;return void 0!==U.setHeaders&&(xe=Object.keys(U.setHeaders).reduce((Xt,de)=>Xt.set(de,U.setHeaders[de]),xe)),U.setParams&&(Pt=Object.keys(U.setParams).reduce((Xt,de)=>Xt.set(de,U.setParams[de]),Pt)),new Te(oe,Ze,ce,{params:Pt,headers:xe,context:Wt,reportProgress:Je,responseType:K,withCredentials:be})}}var ze=(()=>((ze=ze||{})[ze.Sent=0]="Sent",ze[ze.UploadProgress=1]="UploadProgress",ze[ze.ResponseHeader=2]="ResponseHeader",ze[ze.DownloadProgress=3]="DownloadProgress",ze[ze.Response=4]="Response",ze[ze.User=5]="User",ze))();class ht{constructor(U,oe=200,Ze="OK"){this.headers=U.headers||new j,this.status=void 0!==U.status?U.status:oe,this.statusText=U.statusText||Ze,this.url=U.url||null,this.ok=this.status>=200&&this.status<300}}class vt extends ht{constructor(U={}){super(U),this.type=ze.ResponseHeader}clone(U={}){return new vt({headers:U.headers||this.headers,status:void 0!==U.status?U.status:this.status,statusText:U.statusText||this.statusText,url:U.url||this.url||void 0})}}class Nt extends ht{constructor(U={}){super(U),this.type=ze.Response,this.body=void 0!==U.body?U.body:null}clone(U={}){return new Nt({body:void 0!==U.body?U.body:this.body,headers:U.headers||this.headers,status:void 0!==U.status?U.status:this.status,statusText:U.statusText||this.statusText,url:U.url||this.url||void 0})}}class Mt extends ht{constructor(U){super(U,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${U.url||"(unknown url)"}`:`Http failure response for ${U.url||"(unknown url)"}: ${U.status} ${U.statusText}`,this.error=U.error||null}}function We(V,U){return{body:U,headers:V.headers,context:V.context,observe:V.observe,params:V.params,reportProgress:V.reportProgress,responseType:V.responseType,withCredentials:V.withCredentials}}let it=(()=>{class V{constructor(oe){this.handler=oe}request(oe,Ze,K={}){let ce;if(oe instanceof Te)ce=oe;else{let xe,Pt;xe=K.headers instanceof j?K.headers:new j(K.headers),K.params&&(Pt=K.params instanceof Re?K.params:new Re({fromObject:K.params})),ce=new Te(oe,Ze,void 0!==K.body?K.body:null,{headers:xe,context:K.context,params:Pt,reportProgress:K.reportProgress,responseType:K.responseType||"json",withCredentials:K.withCredentials})}const be=(0,A.of)(ce).pipe((0,X.b)(xe=>this.handler.handle(xe)));if(oe instanceof Te||"events"===K.observe)return be;const Je=be.pipe((0,le.h)(xe=>xe instanceof Nt));switch(K.observe||"body"){case"body":switch(ce.responseType){case"arraybuffer":return Je.pipe((0,q.U)(xe=>{if(null!==xe.body&&!(xe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return xe.body}));case"blob":return Je.pipe((0,q.U)(xe=>{if(null!==xe.body&&!(xe.body instanceof Blob))throw new Error("Response is not a Blob.");return xe.body}));case"text":return Je.pipe((0,q.U)(xe=>{if(null!==xe.body&&"string"!=typeof xe.body)throw new Error("Response is not a string.");return xe.body}));default:return Je.pipe((0,q.U)(xe=>xe.body))}case"response":return Je;default:throw new Error(`Unreachable: unhandled observe type ${K.observe}}`)}}delete(oe,Ze={}){return this.request("DELETE",oe,Ze)}get(oe,Ze={}){return this.request("GET",oe,Ze)}head(oe,Ze={}){return this.request("HEAD",oe,Ze)}jsonp(oe,Ze){return this.request("JSONP",oe,{params:(new Re).append(Ze,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,Ze={}){return this.request("OPTIONS",oe,Ze)}patch(oe,Ze,K={}){return this.request("PATCH",oe,We(K,Ze))}post(oe,Ze,K={}){return this.request("POST",oe,We(K,Ze))}put(oe,Ze,K={}){return this.request("PUT",oe,We(K,Ze))}}return V.\u0275fac=function(oe){return new(oe||V)(c.LFG(ne))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();function ct(V,U){return U(V)}function gt(V,U){return(oe,Ze)=>U.intercept(oe,{handle:K=>V(K,Ze)})}const wt=new c.OlP("HTTP_INTERCEPTORS"),Ot=new c.OlP("HTTP_INTERCEPTOR_FNS");function ve(){let V=null;return(U,oe)=>(null===V&&(V=((0,c.f3M)(wt,{optional:!0})??[]).reduceRight(gt,ct)),V(U,oe))}let qe=(()=>{class V extends ne{constructor(oe,Ze){super(),this.backend=oe,this.injector=Ze,this.chain=null}handle(oe){if(null===this.chain){const Ze=Array.from(new Set(this.injector.get(Ot)));this.chain=Ze.reduceRight((K,ce)=>function bt(V,U,oe){return(Ze,K)=>oe.runInContext(()=>U(Ze,ce=>V(ce,K)))}(K,ce,this.injector),ct)}return this.chain(oe,Ze=>this.backend.handle(Ze))}}return V.\u0275fac=function(oe){return new(oe||V)(c.LFG(ie),c.LFG(c.lqb))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();const Fn=/^\)\]\}',?\n/;let et=(()=>{class V{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new B.y(Ze=>{const K=this.xhrFactory.build();if(K.open(oe.method,oe.urlWithParams),oe.withCredentials&&(K.withCredentials=!0),oe.headers.forEach((k,p)=>K.setRequestHeader(k,p.join(","))),oe.headers.has("Accept")||K.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const k=oe.detectContentTypeHeader();null!==k&&K.setRequestHeader("Content-Type",k)}if(oe.responseType){const k=oe.responseType.toLowerCase();K.responseType="json"!==k?k:"text"}const ce=oe.serializeBody();let be=null;const Je=()=>{if(null!==be)return be;const k=K.statusText||"OK",p=new j(K.getAllResponseHeaders()),_=function an(V){return"responseURL"in V&&V.responseURL?V.responseURL:/^X-Request-URL:/m.test(V.getAllResponseHeaders())?V.getResponseHeader("X-Request-URL"):null}(K)||oe.url;return be=new vt({headers:p,status:K.status,statusText:k,url:_}),be},xe=()=>{let{headers:k,status:p,statusText:_,url:I}=Je(),P=null;204!==p&&(P=typeof K.response>"u"?K.responseText:K.response),0===p&&(p=P?200:0);let re=p>=200&&p<300;if("json"===oe.responseType&&"string"==typeof P){const Be=P;P=P.replace(Fn,"");try{P=""!==P?JSON.parse(P):null}catch(yt){P=Be,re&&(re=!1,P={error:yt,text:P})}}re?(Ze.next(new Nt({body:P,headers:k,status:p,statusText:_,url:I||void 0})),Ze.complete()):Ze.error(new Mt({error:P,headers:k,status:p,statusText:_,url:I||void 0}))},Pt=k=>{const{url:p}=Je(),_=new Mt({error:k,status:K.status||0,statusText:K.statusText||"Unknown Error",url:p||void 0});Ze.error(_)};let Wt=!1;const Xt=k=>{Wt||(Ze.next(Je()),Wt=!0);let p={type:ze.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(p.total=k.total),"text"===oe.responseType&&K.responseText&&(p.partialText=K.responseText),Ze.next(p)},de=k=>{let p={type:ze.UploadProgress,loaded:k.loaded};k.lengthComputable&&(p.total=k.total),Ze.next(p)};return K.addEventListener("load",xe),K.addEventListener("error",Pt),K.addEventListener("timeout",Pt),K.addEventListener("abort",Pt),oe.reportProgress&&(K.addEventListener("progress",Xt),null!==ce&&K.upload&&K.upload.addEventListener("progress",de)),K.send(ce),Ze.next({type:ze.Sent}),()=>{K.removeEventListener("error",Pt),K.removeEventListener("abort",Pt),K.removeEventListener("load",xe),K.removeEventListener("timeout",Pt),oe.reportProgress&&(K.removeEventListener("progress",Xt),null!==ce&&K.upload&&K.upload.removeEventListener("progress",de)),K.readyState!==K.DONE&&K.abort()}})}}return V.\u0275fac=function(oe){return new(oe||V)(c.LFG(r.JF))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();const W=new c.OlP("XSRF_ENABLED"),se="XSRF-TOKEN",Ie=new c.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>se}),rt="X-XSRF-TOKEN",st=new c.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>rt});class At{}let $t=(()=>{class V{constructor(oe,Ze,K){this.doc=oe,this.platform=Ze,this.cookieName=K,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return V.\u0275fac=function(oe){return new(oe||V)(c.LFG(r.K0),c.LFG(c.Lbi),c.LFG(Ie))},V.\u0275prov=c.Yz7({token:V,factory:V.\u0275fac}),V})();function It(V,U){const oe=V.url.toLowerCase();if(!(0,c.f3M)(W)||"GET"===V.method||"HEAD"===V.method||oe.startsWith("http://")||oe.startsWith("https://"))return U(V);const Ze=(0,c.f3M)(At).getToken(),K=(0,c.f3M)(st);return null!=Ze&&!V.headers.has(K)&&(V=V.clone({headers:V.headers.set(K,Ze)})),U(V)}var De=(()=>((De=De||{})[De.Interceptors=0]="Interceptors",De[De.LegacyInterceptors=1]="LegacyInterceptors",De[De.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",De[De.NoXsrfProtection=3]="NoXsrfProtection",De[De.JsonpSupport=4]="JsonpSupport",De[De.RequestsMadeViaParent=5]="RequestsMadeViaParent",De))();function lt(V,U){return{\u0275kind:V,\u0275providers:U}}function fe(...V){const U=[it,et,qe,{provide:ne,useExisting:qe},{provide:ie,useExisting:et},{provide:Ot,useValue:It,multi:!0},{provide:W,useValue:!0},{provide:At,useClass:$t}];for(const oe of V)U.push(...oe.\u0275providers);return(0,c.MR2)(U)}const Ct=new c.OlP("LEGACY_INTERCEPTOR_FN");function ln({cookieName:V,headerName:U}){const oe=[];return void 0!==V&&oe.push({provide:Ie,useValue:V}),void 0!==U&&oe.push({provide:st,useValue:U}),lt(De.CustomXsrfConfiguration,oe)}let xn=(()=>{class V{}return V.\u0275fac=function(oe){return new(oe||V)},V.\u0275mod=c.oAB({type:V}),V.\u0275inj=c.cJS({providers:[fe(lt(De.LegacyInterceptors,[{provide:Ct,useFactory:ve},{provide:Ot,useExisting:Ct,multi:!0}]),ln({cookieName:se,headerName:rt}))]}),V})()},4650:(Dt,Se,g)=>{g.d(Se,{$8M:()=>Rs,$WT:()=>Xn,$Z:()=>Eh,AFp:()=>Sm,ALo:()=>Gp,AaK:()=>ne,AsE:()=>vu,BQk:()=>Nl,CHM:()=>S,CRH:()=>im,CZH:()=>Ql,CqO:()=>nf,D6c:()=>UC,Dn7:()=>Kp,EJc:()=>tC,EiD:()=>Vd,EpF:()=>ef,F$t:()=>uf,F4k:()=>tf,FYo:()=>eh,FiY:()=>_n,G48:()=>EC,Gf:()=>tm,GfV:()=>th,GkF:()=>au,Gpc:()=>ee,Gre:()=>jf,Hsn:()=>df,Ikx:()=>yu,JOm:()=>Cs,JVY:()=>Gg,JZr:()=>Ne,KtG:()=>Z,L6k:()=>Wg,LAX:()=>Kg,LFG:()=>Oe,LSH:()=>Ac,Lbi:()=>Xb,Lck:()=>J0,MAs:()=>Jh,MGl:()=>Ll,MMx:()=>xu,MR2:()=>u_,NdJ:()=>cu,OlP:()=>ui,Oqu:()=>_u,P3R:()=>jd,PXZ:()=>gC,Q6J:()=>ru,QGY:()=>lu,QbO:()=>qb,Qsj:()=>A_,R0b:()=>Zo,RDi:()=>Bg,Rgc:()=>ul,SBq:()=>Qa,Sil:()=>iC,Suo:()=>nm,TTD:()=>Ci,TgZ:()=>Fl,Tol:()=>Sf,Udp:()=>pu,VKq:()=>Np,W1O:()=>am,WLB:()=>Lp,X6Q:()=>CC,XFs:()=>se,Xpm:()=>Lt,Xts:()=>Mc,Y36:()=>Ma,YKP:()=>Sp,YNc:()=>qh,Yjl:()=>mn,Yz7:()=>Ve,Z0I:()=>Vt,ZZ4:()=>Ju,_Bn:()=>Mp,_UZ:()=>su,_Vd:()=>Za,_c5:()=>BC,_uU:()=>Rf,aQg:()=>ed,c2e:()=>Jb,cJS:()=>Bt,cg1:()=>Cu,d8E:()=>bu,dDg:()=>hC,dqk:()=>It,eBb:()=>Yg,eFA:()=>Um,ekj:()=>mu,eoX:()=>Lm,f3M:()=>V,g9A:()=>xm,h0i:()=>Ua,hGG:()=>VC,hij:()=>Ul,iGM:()=>em,ifc:()=>Xt,ip1:()=>Mm,jDz:()=>xp,kEZ:()=>Bp,kL8:()=>qf,l5B:()=>Vp,lG2:()=>Gt,lcZ:()=>Wp,lqb:()=>la,lri:()=>km,mCW:()=>yl,n5z:()=>br,n_E:()=>Gl,oAB:()=>St,oJD:()=>Ud,oxw:()=>cf,pB0:()=>Zg,q3G:()=>nr,q4F:()=>nh,qLn:()=>Xa,qOj:()=>eu,qZA:()=>Rl,qzn:()=>Ca,rWj:()=>Nm,s9C:()=>uu,sBO:()=>DC,s_b:()=>Yl,soG:()=>Xl,tBr:()=>On,tb:()=>Im,tp0:()=>x,uIk:()=>iu,vHH:()=>he,vpe:()=>Ms,wAp:()=>wn,xi3:()=>Yp,xp6:()=>ch,ynx:()=>kl,z2F:()=>ql,z3N:()=>Ns,zSh:()=>Ic,zs3:()=>ca});var r=g(7579),c=g(727),A=g(9751),B=g(6451),X=g(3099);function le(e){for(let t in e)if(e[t]===le)return t;throw Error("Could not find renamed property on target object.")}function q(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ne(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ne).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 ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const j=le({__forward_ref__:le});function ee(e){return e.__forward_ref__=ee,e.toString=function(){return ne(this())},e}function ae(e){return je(e)?e():e}function je(e){return"function"==typeof e&&e.hasOwnProperty(j)&&e.__forward_ref__===ee}function Ee(e){return e&&!!e.\u0275providers}const Ne="https://g.co/ng/security#xss";class he extends Error{constructor(t,n){super(function Re(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function ke(e){return"string"==typeof e?e:null==e?"":String(e)}function Ce(e,t){throw new he(-201,!1)}function Ot(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function Ve(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Bt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Jt(e){return en(e,Fn)||en(e,et)}function Vt(e){return null!==Jt(e)}function en(e,t){return e.hasOwnProperty(t)?e[t]:null}function Pn(e){return e&&(e.hasOwnProperty(an)||e.hasOwnProperty(W))?e[an]:null}const Fn=le({\u0275prov:le}),an=le({\u0275inj:le}),et=le({ngInjectableDef:le}),W=le({ngInjectorDef:le});var se=(()=>((se=se||{})[se.Default=0]="Default",se[se.Host=1]="Host",se[se.Self=2]="Self",se[se.SkipSelf=4]="SkipSelf",se[se.Optional=8]="Optional",se))();let Ie;function st(e){const t=Ie;return Ie=e,t}function At(e,t,n){const i=Jt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&se.Optional?null:void 0!==t?t:void Ce(ne(e))}const It=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),fe={},Ye="__NG_DI_FLAG__",Ct="ngTempTokenPath",ln=/\n/gm,An="__source";let rn;function Tn(e){const t=rn;return rn=e,t}function xn(e,t=se.Default){if(void 0===rn)throw new he(-203,!1);return null===rn?At(e,void 0,t):rn.get(e,t&se.Optional?null:void 0,t)}function Oe(e,t=se.Default){return(function rt(){return Ie}()||xn)(ae(e),t)}function V(e,t=se.Default){return Oe(e,U(t))}function U(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function oe(e){const t=[];for(let n=0;n<e.length;n++){const i=ae(e[n]);if(Array.isArray(i)){if(0===i.length)throw new he(900,!1);let o,s=se.Default;for(let d=0;d<i.length;d++){const y=i[d],w=K(y);"number"==typeof w?-1===w?o=y.token:s|=w:o=y}t.push(Oe(o,s))}else t.push(Oe(i))}return t}function Ze(e,t){return e[Ye]=t,e.prototype[Ye]=t,e}function K(e){return e[Ye]}function Je(e){return{toString:e}.toString()}var xe=(()=>((xe=xe||{})[xe.OnPush=0]="OnPush",xe[xe.Default=1]="Default",xe))(),Xt=(()=>{return(e=Xt||(Xt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Xt;var e})();const de={},k=[],p=le({\u0275cmp:le}),_=le({\u0275dir:le}),I=le({\u0275pipe:le}),P=le({\u0275mod:le}),re=le({\u0275fac:le}),Be=le({__NG_ELEMENT_ID__:le});let yt=0;function Lt(e){return Je(()=>{const n=!0===e.standalone,i={},o={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:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===xe.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||k,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Xt.Emulated,id:"c"+yt++,styles:e.styles||k,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},s=e.dependencies,d=e.features;return o.inputs=pt(e.inputs,i),o.outputs=pt(e.outputs),d&&d.forEach(y=>y(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(Mn).filter(ft):null,o.pipeDefs=s?()=>("function"==typeof s?s():s).map(ni).filter(ft):null,o})}function Mn(e){return pn(e)||zn(e)}function ft(e){return null!==e}function St(e){return Je(()=>({type:e.type,bootstrap:e.bootstrap||k,declarations:e.declarations||k,imports:e.imports||k,exports:e.exports||k,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pt(e,t){if(null==e)return de;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=i,t&&(t[o]=s)}return n}const Gt=Lt;function mn(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 pn(e){return e[p]||null}function zn(e){return e[_]||null}function ni(e){return e[I]||null}function Xn(e){const t=pn(e)||zn(e)||ni(e);return null!==t&&t.standalone}function di(e,t){const n=e[P]||null;if(!n&&!0===t)throw new Error(`Type ${ne(e)} does not have '\u0275mod' property.`);return n}function gi(e){return Array.isArray(e)&&"object"==typeof e[1]}function Mi(e){return Array.isArray(e)&&!0===e[1]}function Qi(e){return 0!=(4&e.flags)}function Ui(e){return e.componentOffset>-1}function xr(e){return 1==(1&e.flags)}function bi(e){return null!==e.template}function No(e){return 0!=(256&e[2])}function kn(e,t){return e.hasOwnProperty(re)?e[re]:null}class bn{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ci(){return ri}function ri(e){return e.type.prototype.ngOnChanges&&(e.setInput=Hi),hi}function hi(){const e=Zr(this),t=e?.current;if(t){const n=e.previous;if(n===de)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Hi(e,t,n,i){const o=this.declaredInputs[n],s=Zr(e)||function Ir(e,t){return e[ji]=t}(e,{previous:de,current:null}),d=s.current||(s.current={}),y=s.previous,w=y[o];d[o]=new bn(w&&w.currentValue,t,y===de),e[i]=t}Ci.ngInherit=!0;const ji="__ngSimpleChanges__";function Zr(e){return e[ji]||null}function Un(e){for(;Array.isArray(e);)e=e[0];return e}function pr(e,t){return Un(t[e])}function Hn(e,t){return Un(t[e.index])}function uo(e,t){return e.data[t]}function gr(e,t){return e[t]}function _i(e,t){const n=t[e];return gi(n)?n:n[0]}function ho(e){return 64==(64&e[2])}function $i(e,t){return null==t?null:e[t]}function fo(e){e[18]=0}function Or(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const gn={lFrame:Vr(null),bindingsEnabled:!0};function Ho(){return gn.bindingsEnabled}function D(){return gn.lFrame.lView}function M(){return gn.lFrame.tView}function S(e){return gn.lFrame.contextLView=e,e[8]}function Z(e){return gn.lFrame.contextLView=null,e}function ot(){let e=on();for(;null!==e&&64===e.type;)e=e.parent;return e}function on(){return gn.lFrame.currentTNode}function si(e,t){const n=gn.lFrame;n.currentTNode=e,n.isParent=t}function qi(){return gn.lFrame.isParent}function _r(){gn.lFrame.isParent=!1}function Pi(){const e=gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vr(){return gn.lFrame.bindingIndex++}function yr(e){const t=gn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ts(e,t){const n=gn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xo(t)}function Xo(e){gn.lFrame.currentDirectiveIndex=e}function Br(e){const t=gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function us(){return gn.lFrame.currentQueryIndex}function To(e){gn.lFrame.currentQueryIndex=e}function Xr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function jo(e,t,n){if(n&se.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&se.Host||(o=Xr(s),null===o||(s=s[15],10&o.type))););if(null===o)return!1;t=o,e=s}const i=gn.lFrame=_o();return i.currentTNode=t,i.lView=e,!0}function go(e){const t=_o(),n=e[1];gn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function _o(){const e=gn.lFrame,t=null===e?null:e.child;return null===t?Vr(e):t}function Vr(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 qs(){const e=gn.lFrame;return gn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xo=qs;function qr(){const e=qs();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 Fi(){return gn.lFrame.selectedIndex}function Hr(e){gn.lFrame.selectedIndex=e}function ai(){const e=gn.lFrame;return uo(e.tView,e.selectedIndex)}function jr(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:d,ngAfterContentChecked:y,ngAfterViewInit:w,ngAfterViewChecked:R,ngOnDestroy:Y}=s;d&&(e.contentHooks||(e.contentHooks=[])).push(-n,d),y&&((e.contentHooks||(e.contentHooks=[])).push(n,y),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,y)),w&&(e.viewHooks||(e.viewHooks=[])).push(-n,w),R&&((e.viewHooks||(e.viewHooks=[])).push(n,R),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,R)),null!=Y&&(e.destroyHooks||(e.destroyHooks=[])).push(n,Y)}}function eo(e,t,n){T(e,t,3,n)}function b(e,t,n,i){(3&e[2])===n&&T(e,t,n,i)}function N(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function T(e,t,n,i){const s=i??-1,d=t.length-1;let y=0;for(let w=void 0!==i?65535&e[18]:0;w<d;w++)if("number"==typeof t[w+1]){if(y=t[w],null!=i&&y>=i)break}else t[w]<0&&(e[18]+=65536),(y<s||-1==s)&&(z(e,n,t,w),e[18]=(4294901760&e[18])+w+2),w++}function z(e,t,n,i){const o=n[i]<0,s=n[i+1],y=e[o?-n[i]:n[i]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(y)}finally{}}}else try{s.call(y)}finally{}}class at{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function ci(e,t,n){let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],d=n[i++],y=n[i++];e.setAttribute(t,d,y,s)}else{const s=o,d=n[++i];Ji(s)?e.setProperty(t,s,d):e.setAttribute(t,s,d),i++}}return i}function lr(e){return 3===e||4===e||6===e}function Ji(e){return 64===e.charCodeAt(0)}function Gi(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?n=o:0===n||er(e,n,o,null,-1===n||2===n?t[++i]:null)}}return e}function er(e,t,n,i,o){let s=0,d=e.length;if(-1===t)d=-1;else for(;s<e.length;){const y=e[s++];if("number"==typeof y){if(y===t){d=-1;break}if(y>t){d=s-1;break}}}for(;s<e.length;){const y=e[s];if("number"==typeof y)break;if(y===n){if(null===i)return void(null!==o&&(e[s+1]=o));if(i===e[s+1])return void(e[s+2]=o)}s++,null!==i&&s++,null!==o&&s++}-1!==d&&(e.splice(d,0,t),s=d+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==o&&e.splice(s++,0,o)}function Pr(e){return-1!==e}function to(e){return 32767&e}function hs(e,t){let n=function vo(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let qo=!0;function fs(e){const t=qo;return qo=e,t}let Js=0;const Mr={};function $o(e,t){const n=$r(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Jo(i.data,e),Jo(t,null),Jo(i.blueprint,null));const o=es(e,t),s=e.injectorIndex;if(Pr(o)){const d=to(o),y=hs(o,t),w=y[1].data;for(let R=0;R<8;R++)t[s+R]=y[d+R]|w[d+R]}return t[s+8]=o,s}function Jo(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 es(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){if(i=Fs(o),null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Vi(e,t,n){!function zs(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Be)&&(i=n[Be]),null==i&&(i=n[Be]=Js++);const o=255&i;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function ts(e,t,n){if(n&se.Optional||void 0!==e)return e;Ce()}function ns(e,t,n,i){if(n&se.Optional&&void 0===i&&(i=null),!(n&(se.Self|se.Host))){const o=e[9],s=st(void 0);try{return o?o.get(t,i,n&se.Optional):At(t,i,n&se.Optional)}finally{st(s)}}return ts(i,0,n)}function Ps(e,t,n,i=se.Default,o){if(null!==e){if(1024&t[2]){const d=function Wo(e,t,n,i,o){let s=e,d=t;for(;null!==s&&null!==d&&1024&d[2]&&!(256&d[2]);){const y=Sr(s,d,n,i|se.Self,Mr);if(y!==Mr)return y;let w=s.parent;if(!w){const R=d[21];if(R){const Y=R.get(n,Mr,i);if(Y!==Mr)return Y}w=Fs(d),d=d[15]}s=w}return o}(e,t,n,i,Mr);if(d!==Mr)return d}const s=Sr(e,t,n,i,Mr);if(s!==Mr)return s}return ns(t,n,i,o)}function Sr(e,t,n,i,o){const s=function zo(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Be)?e[Be]:void 0;return"number"==typeof t?t>=0?255&t:ea:t}(n);if("function"==typeof s){if(!jo(t,e,i))return i&se.Host?ts(o,0,i):ns(t,n,i,o);try{const d=s(i);if(null!=d||i&se.Optional)return d;Ce()}finally{xo()}}else if("number"==typeof s){let d=null,y=$r(e,t),w=-1,R=i&se.Host?t[16][6]:null;for((-1===y||i&se.SkipSelf)&&(w=-1===y?es(e,t):t[y+8],-1!==w&&tr(i,!1)?(d=t[1],y=to(w),t=hs(w,t)):y=-1);-1!==y;){const Y=t[1];if(ms(s,y,Y.data)){const pe=Gs(y,t,n,d,i,R);if(pe!==Mr)return pe}w=t[y+8],-1!==w&&tr(i,t[1].data[y+8]===R)&&ms(s,y,t)?(d=Y,y=to(w),t=hs(w,t)):y=-1}}return o}function Gs(e,t,n,i,o,s){const d=t[1],y=d.data[e+8],Y=is(y,d,n,null==i?Ui(y)&&qo:i!=d&&0!=(3&y.type),o&se.Host&&s===y);return null!==Y?no(t,d,Y,y):Mr}function is(e,t,n,i,o){const s=e.providerIndexes,d=t.data,y=1048575&s,w=e.directiveStart,Y=s>>20,He=o?y+Y:e.directiveEnd;for(let nt=i?y:y+Y;nt<He;nt++){const Et=d[nt];if(nt<w&&n===Et||nt>=w&&Et.type===n)return nt}if(o){const nt=d[w];if(nt&&bi(nt)&&nt.type===n)return w}return null}function no(e,t,n,i){let o=e[n];const s=t.data;if(function mt(e){return e instanceof at}(o)){const d=o;d.resolving&&function ye(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new he(-200,`Circular dependency in DI detected for ${e}${n}`)}(function tt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ke(e)}(s[n]));const y=fs(d.canSeeViewProviders);d.resolving=!0;const w=d.injectImpl?st(d.injectImpl):null;jo(e,i,se.Default);try{o=e[n]=d.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Os(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){const d=ri(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,d),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,d)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==w&&st(w),fs(y),d.resolving=!1,xo()}}return o}function ms(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function tr(e,t){return!(e&se.Self||e&se.Host&&t)}class Oo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Ps(this._tNode,this._lView,t,U(i),n)}}function ea(){return new Oo(ot(),D())}function br(e){return Je(()=>{const t=e.prototype.constructor,n=t[re]||Go(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const s=o[re]||Go(o);if(s&&s!==n)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Go(e){return je(e)?()=>{const t=Go(ae(e));return t&&t()}:kn(e)}function Fs(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function Rs(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 i=n.length;let o=0;for(;o<i;){const s=n[o];if(lr(s))break;if(0===s)o+=2;else if("number"==typeof s)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(s===t)return n[o+1];o+=2}}}return null}(ot(),e)}const ro="__parameters__";function yo(e,t,n){return Je(()=>{const i=function Ys(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...s){if(this instanceof o)return i.apply(this,s),this;const d=new o(...s);return y.annotation=d,y;function y(w,R,Y){const pe=w.hasOwnProperty(ro)?w[ro]:Object.defineProperty(w,ro,{value:[]})[ro];for(;pe.length<=Y;)pe.push(null);return(pe[Y]=pe[Y]||[]).push(d),w}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class ui{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=Ve({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function h(e,t){e.forEach(n=>Array.isArray(n)?h(n,t):t(n))}function m(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function u(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function C(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function f(e,t,n){let i=a(e,t);return i>=0?e[1|i]=n:(i=~i,function Q(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function l(e,t){const n=a(e,t);if(n>=0)return e[1|n]}function a(e,t){return function F(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const s=i+(o-i>>1),d=e[s<<n];if(t===d)return s<<n;d>t?o=s:i=s+1}return~(o<<n)}(e,t,1)}const On=Ze(yo("Inject",e=>({token:e})),-1),_n=Ze(yo("Optional"),8),x=Ze(yo("SkipSelf"),4);var Cs=(()=>((Cs=Cs||{})[Cs.Important=1]="Important",Cs[Cs.DashCase=2]="DashCase",Cs))();const rc=new Map;let ag=0;const sc="__ngContext__";function Gr(e,t){gi(t)?(e[sc]=t[20],function cg(e){rc.set(e[20],e)}(t)):e[sc]=t}function lc(e,t){return undefined(e,t)}function Ga(e){const t=e[3];return Mi(t)?t[3]:t}function cc(e){return fd(e[13])}function uc(e){return fd(e[4])}function fd(e){for(;null!==e&&!Mi(e);)e=e[4];return e}function ba(e,t,n,i,o){if(null!=i){let s,d=!1;Mi(i)?s=i:gi(i)&&(d=!0,i=i[0]);const y=Un(i);0===e&&null!==n?null==o?yd(t,n,y):ra(t,n,y,o||null,!0):1===e&&null!==n?ra(t,n,y,o||null,!0):2===e?function _c(e,t,n){const i=pl(e,t);i&&function xg(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,y,d):3===e&&t.destroyNode(y),null!=s&&function Pg(e,t,n,i,o){const s=n[7];s!==Un(n)&&ba(t,e,i,s,o);for(let y=10;y<n.length;y++){const w=n[y];Wa(w[1],w,e,t,i,s)}}(t,e,s,n,o)}}function hc(e,t,n){return e.createElement(t,n)}function md(e,t){const n=e[9],i=n.indexOf(t),o=t[3];512&t[2]&&(t[2]&=-513,Or(o,-1)),n.splice(i,1)}function fc(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const o=i[17];null!==o&&o!==e&&md(o,i),t>0&&(e[n-1][4]=i[4]);const s=u(e,10+t);!function Cg(e,t){Wa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const d=s[19];null!==d&&d.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function gd(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&Wa(e,t,n,3,null,null),function wg(e){let t=e[13];if(!t)return pc(e[1],e);for(;t;){let n=null;if(gi(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)gi(t)&&pc(t[1],t),t=t[3];null===t&&(t=e),gi(t)&&pc(t[1],t),n=t&&t[4]}t=n}}(t)}}function pc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Tg(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const o=t[n[i]];if(!(o instanceof at)){const s=n[i+1];if(Array.isArray(s))for(let d=0;d<s.length;d+=2){const y=o[s[d]],w=s[d+1];try{w.call(y)}finally{}}else try{s.call(o)}finally{}}}}(e,t),function Sg(e,t){const n=e.cleanup,i=t[7];let o=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const d=n[s+3];d>=0?i[o=d]():i[o=-d].unsubscribe(),s+=2}else{const d=i[o=n[s+1]];n[s].call(d)}if(null!==i){for(let s=o+1;s<i.length;s++)(0,i[s])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const n=t[17];if(null!==n&&Mi(t[3])){n!==t[3]&&md(n,t);const i=t[19];null!==i&&i.detachView(e)}!function ug(e){rc.delete(e[20])}(t)}}function _d(e,t,n){return function vd(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];{const{componentOffset:o}=i;if(o>-1){const{encapsulation:s}=e.data[i.directiveStart+o];if(s===Xt.None||s===Xt.Emulated)return null}return Hn(i,n)}}(e,t.parent,n)}function ra(e,t,n,i,o){e.insertBefore(t,n,i,o)}function yd(e,t,n){e.appendChild(t,n)}function bd(e,t,n,i,o){null!==i?ra(e,t,n,i,o):yd(e,t,n)}function pl(e,t){return e.parentNode(t)}function Cd(e,t,n){return Dd(e,t,n)}let _l,bc,vl,Dd=function Ed(e,t,n){return 40&e.type?Hn(e,n):null};function ml(e,t,n,i){const o=_d(e,i,t),s=t[11],y=Cd(i.parent||t[6],i,t);if(null!=o)if(Array.isArray(n))for(let w=0;w<n.length;w++)bd(s,o,n[w],y,!1);else bd(s,o,n,y,!1)}function gl(e,t){if(null!==t){const n=t.type;if(3&n)return Hn(t,e);if(4&n)return gc(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return gl(e,i);{const o=e[t.index];return Mi(o)?gc(-1,o):Un(o)}}if(32&n)return lc(t,e)()||Un(e[t.index]);{const i=Ad(e,t);return null!==i?Array.isArray(i)?i[0]:gl(Ga(e[16]),i):gl(e,t.next)}}return null}function Ad(e,t){return null!==t?e[16][6].projection[t.projection]:null}function gc(e,t){const n=10+e+1;if(n<t.length){const i=t[n],o=i[1].firstChild;if(null!==o)return gl(i,o)}return t[7]}function vc(e,t,n,i,o,s,d){for(;null!=n;){const y=i[n.index],w=n.type;if(d&&0===t&&(y&&Gr(Un(y),i),n.flags|=2),32!=(32&n.flags))if(8&w)vc(e,t,n.child,i,o,s,!1),ba(t,e,o,y,s);else if(32&w){const R=lc(n,i);let Y;for(;Y=R();)ba(t,e,o,Y,s);ba(t,e,o,y,s)}else 16&w?Md(e,t,i,n,o,s):ba(t,e,o,y,s);n=d?n.projectionNext:n.next}}function Wa(e,t,n,i,o,s){vc(n,i,e.firstChild,t,o,s,!1)}function Md(e,t,n,i,o,s){const d=n[16],w=d[6].projection[i.projection];if(Array.isArray(w))for(let R=0;R<w.length;R++)ba(t,e,o,w[R],s);else vc(e,t,w,d[3],o,s,!0)}function Sd(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Td(e,t,n){const{mergedAttrs:i,classes:o,styles:s}=n;null!==i&&ci(e,t,i),null!==o&&Sd(e,t,o),null!==s&&function Rg(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}function oa(e){return function yc(){if(void 0===_l&&(_l=null,It.trustedTypes))try{_l=It.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _l}()?.createHTML(e)||e}function Bg(e){bc=e}function Cc(){if(void 0===vl&&(vl=null,It.trustedTypes))try{vl=It.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vl}function Id(e){return Cc()?.createHTML(e)||e}function Pd(e){return Cc()?.createScriptURL(e)||e}class sa{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ne})`}}class Vg extends sa{getTypeName(){return"HTML"}}class Ug extends sa{getTypeName(){return"Style"}}class Hg extends sa{getTypeName(){return"Script"}}class jg extends sa{getTypeName(){return"URL"}}class $g extends sa{getTypeName(){return"ResourceURL"}}function Ns(e){return e instanceof sa?e.changingThisBreaksApplicationSecurity:e}function Ca(e,t){const n=function zg(e){return e instanceof sa&&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 ${Ne})`)}return n===t}function Gg(e){return new Vg(e)}function Wg(e){return new Ug(e)}function Yg(e){return new Hg(e)}function Kg(e){return new jg(e)}function Zg(e){return new $g(e)}class Qg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(oa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Xg{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 i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=oa(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=oa(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const d=n.item(o).name;("xmlns:ns1"===d||0===d.indexOf("ns1:"))&&t.removeAttribute(d)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Jg=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function yl(e){return(e=String(e)).match(Jg)?e:"unsafe:"+e}function Ls(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ya(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Rd=Ls("area,br,col,hr,img,wbr"),kd=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nd=Ls("rp,rt"),Ec=Ya(Rd,Ya(kd,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")),Ya(Nd,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")),Ya(Nd,kd)),Dc=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ld=Ya(Dc,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,srcset,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")),e_=Ls("script,style,template");class t_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Ec.hasOwnProperty(n))return this.sanitizedSomething=!0,!e_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let o=0;o<i.length;o++){const s=i.item(o),d=s.name,y=d.toLowerCase();if(!Ld.hasOwnProperty(y)){this.sanitizedSomething=!0;continue}let w=s.value;Dc[y]&&(w=yl(w)),this.buf.push(" ",d,'="',Bd(w),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ec.hasOwnProperty(n)&&!Rd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Bd(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 n_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i_=/([^\#-~ |!])/g;function Bd(e){return e.replace(/&/g,"&").replace(n_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(i_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let bl;function Vd(e,t){let n=null;try{bl=bl||function Fd(e){const t=new Xg(e);return function qg(){try{return!!(new window.DOMParser).parseFromString(oa(""),"text/html")}catch{return!1}}()?new Qg(t):t}(e);let i=t?String(t):"";n=bl.getInertBodyElement(i);let o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,s=n.innerHTML,n=bl.getInertBodyElement(i)}while(i!==s);return oa((new t_).sanitizeChildren(wc(n)||n))}finally{if(n){const i=wc(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function wc(e){return"content"in e&&function r_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var nr=(()=>((nr=nr||{})[nr.NONE=0]="NONE",nr[nr.HTML=1]="HTML",nr[nr.STYLE=2]="STYLE",nr[nr.SCRIPT=3]="SCRIPT",nr[nr.URL=4]="URL",nr[nr.RESOURCE_URL=5]="RESOURCE_URL",nr))();function Ud(e){const t=Ka();return t?Id(t.sanitize(nr.HTML,e)||""):Ca(e,"HTML")?Id(Ns(e)):Vd(function xd(){return void 0!==bc?bc:typeof document<"u"?document:void 0}(),ke(e))}function Ac(e){const t=Ka();return t?t.sanitize(nr.URL,e)||"":Ca(e,"URL")?Ns(e):yl(ke(e))}function Hd(e){const t=Ka();if(t)return Pd(t.sanitize(nr.RESOURCE_URL,e)||"");if(Ca(e,"ResourceURL"))return Pd(Ns(e));throw new he(904,!1)}function jd(e,t,n){return function c_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Hd:Ac}(t,n)(e)}function Ka(){const e=D();return e&&e[12]}const Mc=new ui("ENVIRONMENT_INITIALIZER"),$d=new ui("INJECTOR",-1),zd=new ui("INJECTOR_DEF_TYPES");class Gd{get(t,n=fe){if(n===fe){const i=new Error(`NullInjectorError: No provider for ${ne(t)}!`);throw i.name="NullInjectorError",i}return n}}function u_(e){return{\u0275providers:e}}function d_(...e){return{\u0275providers:Wd(0,e),\u0275fromNgModule:!0}}function Wd(e,...t){const n=[],i=new Set;let o;return h(t,s=>{const d=s;Sc(d,n,[],i)&&(o||(o=[]),o.push(d))}),void 0!==o&&Yd(o,n),n}function Yd(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];Tc(o,s=>{t.push(s)})}}function Sc(e,t,n,i){if(!(e=ae(e)))return!1;let o=null,s=Pn(e);const d=!s&&pn(e);if(s||d){if(d&&!d.standalone)return!1;o=e}else{const w=e.ngModule;if(s=Pn(w),!s)return!1;o=w}const y=i.has(o);if(d){if(y)return!1;if(i.add(o),d.dependencies){const w="function"==typeof d.dependencies?d.dependencies():d.dependencies;for(const R of w)Sc(R,t,n,i)}}else{if(!s)return!1;{if(null!=s.imports&&!y){let R;i.add(o);try{h(s.imports,Y=>{Sc(Y,t,n,i)&&(R||(R=[]),R.push(Y))})}finally{}void 0!==R&&Yd(R,t)}if(!y){const R=kn(o)||(()=>new o);t.push({provide:o,useFactory:R,deps:k},{provide:zd,useValue:o,multi:!0},{provide:Mc,useValue:()=>Oe(o),multi:!0})}const w=s.providers;null==w||y||Tc(w,Y=>{t.push(Y)})}}return o!==e&&void 0!==e.providers}function Tc(e,t){for(let n of e)Ee(n)&&(n=n.\u0275providers),Array.isArray(n)?Tc(n,t):t(n)}const h_=le({provide:String,useValue:le});function xc(e){return null!==e&&"object"==typeof e&&h_ in e}function aa(e){return"function"==typeof e}const Ic=new ui("Set Injector scope."),Cl={},p_={};let Oc;function El(){return void 0===Oc&&(Oc=new Gd),Oc}class la{}class Qd extends la{get destroyed(){return this._destroyed}constructor(t,n,i,o){super(),this.parent=n,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fc(t,d=>this.processProvider(d)),this.records.set($d,Ea(void 0,this)),o.has("environment")&&this.records.set(la,Ea(void 0,this));const s=this.records.get(Ic);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(zd.multi,k,se.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=Tn(this),i=st(void 0);try{return t()}finally{Tn(n),st(i)}}get(t,n=fe,i=se.Default){this.assertNotDestroyed(),i=U(i);const o=Tn(this),s=st(void 0);try{if(!(i&se.SkipSelf)){let y=this.records.get(t);if(void 0===y){const w=function y_(e){return"function"==typeof e||"object"==typeof e&&e instanceof ui}(t)&&Jt(t);y=w&&this.injectableDefInScope(w)?Ea(Pc(t),Cl):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(i&se.Self?El():this.parent).get(t,n=i&se.Optional&&n===fe?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Ct]=d[Ct]||[]).unshift(ne(t)),o)throw d;return function ce(e,t,n,i){const o=e[Ct];throw t[An]&&o.unshift(t[An]),e.message=function be(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ne(t);if(Array.isArray(t))o=t.map(ne).join(" -> ");else if("object"==typeof t){let s=[];for(let d in t)if(t.hasOwnProperty(d)){let y=t[d];s.push(d+":"+("string"==typeof y?JSON.stringify(y):ne(y)))}o=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(ln,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ct]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{st(s),Tn(o)}}resolveInjectorInitializers(){const t=Tn(this),n=st(void 0);try{const i=this.get(Mc.multi,k,se.Self);for(const o of i)o()}finally{Tn(t),st(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(ne(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(t){let n=aa(t=ae(t))?t:ae(t&&t.provide);const i=function g_(e){return xc(e)?Ea(void 0,e.useValue):Ea(Xd(e),Cl)}(t);if(aa(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Ea(void 0,Cl,!0),o.factory=()=>oe(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===Cl&&(n.value=p_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function v_(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=ae(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Pc(e){const t=Jt(e),n=null!==t?t.factory:kn(e);if(null!==n)return n;if(e instanceof ui)throw new he(204,!1);if(e instanceof Function)return function m_(e){const t=e.length;if(t>0)throw C(t,"?"),new he(204,!1);const n=function En(e){const t=e&&(e[Fn]||e[et]);if(t){const n=function In(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 he(204,!1)}function Xd(e,t,n){let i;if(aa(e)){const o=ae(e);return kn(o)||Pc(o)}if(xc(e))i=()=>ae(e.useValue);else if(function Zd(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...oe(e.deps||[]));else if(function Kd(e){return!(!e||!e.useExisting)}(e))i=()=>Oe(ae(e.useExisting));else{const o=ae(e&&(e.useClass||e.provide));if(!function __(e){return!!e.deps}(e))return kn(o)||Pc(o);i=()=>new o(...oe(e.deps))}return i}function Ea(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Fc(e,t){for(const n of e)Array.isArray(n)?Fc(n,t):n&&Ee(n)?Fc(n.\u0275providers,t):t(n)}class b_{}class qd{}class E_{resolveComponentFactory(t){throw function C_(e){const t=Error(`No component factory found for ${ne(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Za=(()=>{class e{}return e.NULL=new E_,e})();function D_(){return Da(ot(),D())}function Da(e,t){return new Qa(Hn(e,t))}let Qa=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=D_,e})();function w_(e){return e instanceof Qa?e.nativeElement:e}class eh{}let A_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function M_(){const e=D(),n=_i(ot().index,e);return(gi(n)?n:e)[11]}(),e})(),S_=(()=>{class e{}return e.\u0275prov=Ve({token:e,providedIn:"root",factory:()=>null}),e})();class th{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const nh=new th("15.1.4"),Rc={};function Nc(e){return e.ngOriginalError}class Xa{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&&Nc(t);for(;n&&Nc(n);)n=Nc(n);return n||null}}function Bs(e){return e instanceof Function?e():e}function rh(e,t,n){let i=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const s=t.length;if(o+s===i||e.charCodeAt(o+s)<=32)return o}n=o+1}}const oh="ng-template";function B_(e,t,n){let i=0;for(;i<e.length;){let o=e[i++];if(n&&"class"===o){if(o=e[i],-1!==rh(o.toLowerCase(),t,0))return!0}else if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function sh(e){return 4===e.type&&e.value!==oh}function V_(e,t,n){return t===(4!==e.type||n?e.value:oh)}function U_(e,t,n){let i=4;const o=e.attrs||[],s=function $_(e){for(let t=0;t<e.length;t++)if(lr(e[t]))return t;return e.length}(o);let d=!1;for(let y=0;y<t.length;y++){const w=t[y];if("number"!=typeof w){if(!d)if(4&i){if(i=2|1&i,""!==w&&!V_(e,w,n)||""===w&&1===t.length){if(os(i))return!1;d=!0}}else{const R=8&i?w:t[++y];if(8&i&&null!==e.attrs){if(!B_(e.attrs,R,n)){if(os(i))return!1;d=!0}continue}const pe=H_(8&i?"class":w,o,sh(e),n);if(-1===pe){if(os(i))return!1;d=!0;continue}if(""!==R){let He;He=pe>s?"":o[pe+1].toLowerCase();const nt=8&i?He:null;if(nt&&-1!==rh(nt,R,0)||2&i&&R!==He){if(os(i))return!1;d=!0}}}}else{if(!d&&!os(i)&&!os(w))return!1;if(d&&os(w))continue;d=!1,i=w|1&i}}return os(i)||d}function os(e){return 0==(1&e)}function H_(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let s=!1;for(;o<t.length;){const d=t[o];if(d===e)return o;if(3===d||6===d)s=!0;else{if(1===d||2===d){let y=t[++o];for(;"string"==typeof y;)y=t[++o];continue}if(4===d)break;if(0===d){o+=4;continue}}o+=s?1:2}return-1}return function z_(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function ah(e,t,n=!1){for(let i=0;i<t.length;i++)if(U_(e,t[i],n))return!0;return!1}function G_(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let o=0;o<e.length;o++)if(e[o]!==i[o])continue e;return!0}}return!1}function lh(e,t){return e?":not("+t.trim()+")":t}function W_(e){let t=e[0],n=1,i=2,o="",s=!1;for(;n<e.length;){let d=e[n];if("string"==typeof d)if(2&i){const y=e[++n];o+="["+d+(y.length>0?'="'+y+'"':"")+"]"}else 8&i?o+="."+d:4&i&&(o+=" "+d);else""!==o&&!os(d)&&(t+=lh(s,o),o=""),i=d,s=s||!os(i);n++}return""!==o&&(t+=lh(s,o)),t}const Vn={};function ch(e){uh(M(),D(),Fi()+e,!1)}function uh(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&eo(t,s,n)}else{const s=e.preOrderHooks;null!==s&&b(t,s,0,n)}Hr(n)}function ph(e,t=null,n=null,i){const o=mh(e,t,n,i);return o.resolveInjectorInitializers(),o}function mh(e,t=null,n=null,i,o=new Set){const s=[n||k,d_(e)];return i=i||("object"==typeof e?void 0:ne(e)),new Qd(s,t||El(),i||null,o)}let ca=(()=>{class e{static create(n,i){if(Array.isArray(n))return ph({name:""},i,n,"");{const o=n.name??"";return ph({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=fe,e.NULL=new Gd,e.\u0275prov=Ve({token:e,providedIn:"any",factory:()=>Oe($d)}),e.__NG_ELEMENT_ID__=-1,e})();function Ma(e,t=se.Default){const n=D();return null===n?Oe(e,t):Ps(ot(),n,ae(e),t)}function Eh(){throw new Error("invalid")}function Dh(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i+1];if(-1!==s){const d=e.data[s];To(n[i]),d.contentQueries(2,t[s],s)}}}function wl(e,t,n,i,o,s,d,y,w,R,Y){const pe=t.blueprint.slice();return pe[0]=o,pe[2]=76|i,(null!==Y||e&&1024&e[2])&&(pe[2]|=1024),fo(pe),pe[3]=pe[15]=e,pe[8]=n,pe[10]=d||e&&e[10],pe[11]=y||e&&e[11],pe[12]=w||e&&e[12]||null,pe[9]=R||e&&e[9]||null,pe[6]=s,pe[20]=function lg(){return ag++}(),pe[21]=Y,pe[16]=2==t.type?e[16]:pe,pe}function Sa(e,t,n,i,o){let s=e.data[t];if(null===s)s=function Hc(e,t,n,i,o){const s=on(),d=qi(),w=e.data[t]=function vv(e,t,n,i,o,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,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,d?s:s&&s.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=w),null!==s&&(d?null==s.child&&null!==w.parent&&(s.child=w):null===s.next&&(s.next=w)),w}(e,t,n,i,o),function Mo(){return gn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=i,s.attrs=o;const d=function Yn(){const e=gn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===d?-1:d.injectorIndex}return si(s,!0),s}function qa(e,t,n,i){if(0===n)return-1;const o=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return o}function jc(e,t,n){go(t);try{const i=e.viewQuery;null!==i&&qc(1,i,n);const o=e.template;null!==o&&wh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Dh(e,t),e.staticViewQueries&&qc(2,e.viewQuery,n);const s=e.components;null!==s&&function mv(e,t){for(let n=0;n<t.length;n++)Lv(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,qr()}}function Al(e,t,n,i){const o=t[2];if(128!=(128&o)){go(t);try{fo(t),function zi(e){return gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&wh(e,t,n,2,i);const d=3==(3&o);if(d){const R=e.preOrderCheckHooks;null!==R&&eo(t,R,null)}else{const R=e.preOrderHooks;null!==R&&b(t,R,0,null),N(t,0)}if(function kv(e){for(let t=cc(e);null!==t;t=uc(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const o=n[i];512&o[2]||Or(o[3],1),o[2]|=512}}}(t),function Rv(e){for(let t=cc(e);null!==t;t=uc(t))for(let n=10;n<t.length;n++){const i=t[n],o=i[1];ho(i)&&Al(o,i,o.template,i[8])}}(t),null!==e.contentQueries&&Dh(e,t),d){const R=e.contentCheckHooks;null!==R&&eo(t,R)}else{const R=e.contentHooks;null!==R&&b(t,R,1),N(t,1)}!function fv(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const o=n[i];if(o<0)Hr(~o);else{const s=o,d=n[++i],y=n[++i];Ts(d,s),y(2,t[s])}}}finally{Hr(-1)}}(e,t);const y=e.components;null!==y&&function pv(e,t){for(let n=0;n<t.length;n++)Nv(e,t[n])}(t,y);const w=e.viewQuery;if(null!==w&&qc(2,w,i),d){const R=e.viewCheckHooks;null!==R&&eo(t,R)}else{const R=e.viewHooks;null!==R&&b(t,R,2),N(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Or(t[3],-1))}finally{qr()}}}function wh(e,t,n,i,o){const s=Fi(),d=2&i;try{Hr(-1),d&&t.length>22&&uh(e,t,22,!1),n(i,o)}finally{Hr(s)}}function $c(e,t,n){if(Qi(t)){const o=t.directiveEnd;for(let s=t.directiveStart;s<o;s++){const d=e.data[s];d.contentQueries&&d.contentQueries(1,n[s],s)}}}function zc(e,t,n){Ho()&&(function wv(e,t,n,i){const o=n.directiveStart,s=n.directiveEnd;Ui(n)&&function Ov(e,t,n){const i=Hn(t,e),o=Ah(n),s=e[10],d=Ml(e,wl(e,o,null,n.onPush?32:16,i,t,s,s.createRenderer(i,n),null,null,null));e[t.index]=d}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||$o(n,t),Gr(i,t);const d=n.initialInputs;for(let y=o;y<s;y++){const w=e.data[y],R=no(t,e,y,n);Gr(R,t),null!==d&&Pv(0,y-o,R,w,0,d),bi(w)&&(_i(n.index,t)[8]=no(t,e,y,n))}}(e,t,n,Hn(n,t)),64==(64&n.flags)&&Oh(e,t,n))}function Gc(e,t,n=Hn){const i=t.localNames;if(null!==i){let o=t.index+1;for(let s=0;s<i.length;s+=2){const d=i[s+1],y=-1===d?n(t,e):e[d];e[o++]=y}}}function Ah(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Wc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Wc(e,t,n,i,o,s,d,y,w,R){const Y=22+i,pe=Y+o,He=function gv(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Vn);return n}(Y,pe),nt="function"==typeof R?R():R;return He[1]={type:e,blueprint:He,template:n,queries:null,viewQuery:y,declTNode:t,data:He.slice().fill(null,Y),bindingStartIndex:Y,expandoStartIndex:pe,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 d?d():d,firstChild:null,schemas:w,consts:nt,incompleteFirstPass:!1}}function Mh(e,t,n,i){const o=Fh(t);null===n?o.push(i):(o.push(n),e.firstCreatePass&&Rh(e).push(i,o.length-1))}function Sh(e,t,n,i){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const s=e[o];null===i?Th(n,t,o,s):i.hasOwnProperty(o)&&Th(n,t,i[o],s)}return n}function Th(e,t,n,i){e.hasOwnProperty(n)?e[n].push(t,i):e[n]=[t,i]}function ko(e,t,n,i,o,s,d,y){const w=Hn(t,n);let Y,R=t.inputs;!y&&null!=R&&(Y=R[i])?(Jc(e,n,Y,i,o),Ui(t)&&xh(n,t.index)):3&t.type&&(i=function bv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=d?d(o,t.value||"",i):o,s.setProperty(w,i,o))}function xh(e,t){const n=_i(t,e);16&n[2]||(n[2]|=32)}function Yc(e,t,n,i){let o=!1;if(Ho()){const s=null===i?null:{"":-1},d=function Mv(e,t){const n=e.directiveRegistry;let i=null,o=null;if(n)for(let s=0;s<n.length;s++){const d=n[s];if(ah(t,d.selectors,!1))if(i||(i=[]),bi(d))if(null!==d.findHostDirectiveDefs){const y=[];o=o||new Map,d.findHostDirectiveDefs(d,y,o),i.unshift(...y,d),Kc(e,t,y.length)}else i.unshift(d),Kc(e,t,0);else o=o||new Map,d.findHostDirectiveDefs?.(d,i,o),i.push(d)}return null===i?null:[i,o]}(e,n);let y,w;null===d?y=w=null:[y,w]=d,null!==y&&(o=!0,Ih(e,t,n,y,s,w)),s&&function Sv(e,t,n){if(t){const i=e.localNames=[];for(let o=0;o<t.length;o+=2){const s=n[t[o+1]];if(null==s)throw new he(-301,!1);i.push(t[o],s)}}}(n,i,s)}return n.mergedAttrs=Gi(n.mergedAttrs,n.attrs),o}function Ih(e,t,n,i,o,s){for(let R=0;R<i.length;R++)Vi($o(n,t),e,i[R].type);!function xv(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,i.length);for(let R=0;R<i.length;R++){const Y=i[R];Y.providersResolver&&Y.providersResolver(Y)}let d=!1,y=!1,w=qa(e,t,i.length,null);for(let R=0;R<i.length;R++){const Y=i[R];n.mergedAttrs=Gi(n.mergedAttrs,Y.hostAttrs),Iv(e,n,t,w,Y),Tv(w,Y,o),null!==Y.contentQueries&&(n.flags|=4),(null!==Y.hostBindings||null!==Y.hostAttrs||0!==Y.hostVars)&&(n.flags|=64);const pe=Y.type.prototype;!d&&(pe.ngOnChanges||pe.ngOnInit||pe.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!y&&(pe.ngOnChanges||pe.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),y=!0),w++}!function yv(e,t,n){const o=t.directiveEnd,s=e.data,d=t.attrs,y=[];let w=null,R=null;for(let Y=t.directiveStart;Y<o;Y++){const pe=s[Y],He=n?n.get(pe):null,Et=He?He.outputs:null;w=Sh(pe.inputs,Y,w,He?He.inputs:null),R=Sh(pe.outputs,Y,R,Et);const Ht=null===w||null===d||sh(t)?null:Fv(w,Y,d);y.push(Ht)}null!==w&&(w.hasOwnProperty("class")&&(t.flags|=8),w.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=y,t.inputs=w,t.outputs=R}(e,n,s)}function Oh(e,t,n){const i=n.directiveStart,o=n.directiveEnd,s=n.index,d=function So(){return gn.lFrame.currentDirectiveIndex}();try{Hr(s);for(let y=i;y<o;y++){const w=e.data[y],R=t[y];Xo(y),(null!==w.hostBindings||0!==w.hostVars||null!==w.hostAttrs)&&Av(w,R)}}finally{Hr(-1),Xo(d)}}function Av(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Kc(e,t,n){t.componentOffset=n,(e.components||(e.components=[])).push(t.index)}function Tv(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;bi(t)&&(n[""]=e)}}function Iv(e,t,n,i,o){e.data[i]=o;const s=o.factory||(o.factory=kn(o.type)),d=new at(s,bi(o),Ma);e.blueprint[i]=d,n[i]=d,function Ev(e,t,n,i,o){const s=o.hostBindings;if(s){let d=e.hostBindingOpCodes;null===d&&(d=e.hostBindingOpCodes=[]);const y=~t.index;(function Dv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(d)!=y&&d.push(y),d.push(n,i,s)}}(e,t,i,qa(e,n,o.hostVars,Vn),o)}function Es(e,t,n,i,o,s){const d=Hn(e,t);!function Zc(e,t,n,i,o,s,d){if(null==s)e.removeAttribute(t,o,n);else{const y=null==d?ke(s):d(s,i||"",o);e.setAttribute(t,o,y,n)}}(t[11],d,s,e.value,n,i,o)}function Pv(e,t,n,i,o,s){const d=s[t];if(null!==d){const y=i.setInput;for(let w=0;w<d.length;){const R=d[w++],Y=d[w++],pe=d[w++];null!==y?i.setInput(n,pe,R,Y):n[Y]=pe}}}function Fv(e,t,n){let i=null,o=0;for(;o<n.length;){const s=n[o];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===i&&(i=[]);const d=e[s];for(let y=0;y<d.length;y+=2)if(d[y]===t){i.push(s,d[y+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return i}function Ph(e,t,n,i){return[e,!0,!1,t,null,0,i,n,null,null]}function Nv(e,t){const n=_i(t,e);if(ho(n)){const i=n[1];48&n[2]?Al(i,n,i.template,n[8]):n[5]>0&&Qc(n)}}function Qc(e){for(let i=cc(e);null!==i;i=uc(i))for(let o=10;o<i.length;o++){const s=i[o];if(ho(s))if(512&s[2]){const d=s[1];Al(d,s,d.template,s[8])}else s[5]>0&&Qc(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const o=_i(n[i],e);ho(o)&&o[5]>0&&Qc(o)}}function Lv(e,t){const n=_i(t,e),i=n[1];(function Bv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),jc(i,n,n[8])}function Ml(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Xc(e){for(;e;){e[2]|=32;const t=Ga(e);if(No(e)&&!t)return e;e=t}return null}function Sl(e,t,n,i=!0){const o=t[10];o.begin&&o.begin();try{Al(e,t,e.template,n)}catch(d){throw i&&Nh(t,d),d}finally{o.end&&o.end()}}function qc(e,t,n){To(0),t(e,n)}function Fh(e){return e[7]||(e[7]=[])}function Rh(e){return e.cleanup||(e.cleanup=[])}function Nh(e,t){const n=e[9],i=n?n.get(Xa,null):null;i&&i.handleError(t)}function Jc(e,t,n,i,o){for(let s=0;s<n.length;){const d=n[s++],y=n[s++],w=t[d],R=e.data[d];null!==R.setInput?R.setInput(w,o,i,y):w[y]=o}}function Vs(e,t,n){const i=pr(t,e);!function pd(e,t,n){e.setValue(t,n)}(e[11],i,n)}function Tl(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,s=0;if(null!==t)for(let d=0;d<t.length;d++){const y=t[d];"number"==typeof y?s=y:1==s?o=ie(o,y):2==s&&(i=ie(i,y+": "+t[++d]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}function xl(e,t,n,i,o=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(Un(s)),Mi(s))for(let y=10;y<s.length;y++){const w=s[y],R=w[1].firstChild;null!==R&&xl(w[1],w,R,i)}const d=n.type;if(8&d)xl(e,t,n.child,i);else if(32&d){const y=lc(n,t);let w;for(;w=y();)i.push(w)}else if(16&d){const y=Ad(t,n);if(Array.isArray(y))i.push(...y);else{const w=Ga(t[16]);xl(w[1],w,y,i,!0)}}n=o?n.projectionNext:n.next}return i}class Ja{get rootNodes(){const t=this._lView,n=t[1];return xl(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Mi(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(fc(t,i),u(n,i))}this._attachedToViewContainer=!1}gd(this._lView[1],this._lView)}onDestroy(t){Mh(this._lView[1],this._lView,null,t)}markForCheck(){Xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Sl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Dg(e,t){Wa(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=t}}class Vv extends Ja{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Sl(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Lh extends Za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=pn(t);return new el(n,this.ngModule)}}function Bh(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Hv{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=U(i);const o=this.injector.get(t,Rc,i);return o!==Rc||n===Rc?o:this.parentInjector.get(t,n,i)}}class el extends qd{get inputs(){return Bh(this.componentDef.inputs)}get outputs(){return Bh(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Y_(e){return e.map(W_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,o){let s=(o=o||this.ngModule)instanceof la?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const d=s?new Hv(t,s):t,y=d.get(eh,null);if(null===y)throw new he(407,!1);const w=d.get(S_,null),R=y.createRenderer(null,this.componentDef),Y=this.componentDef.selectors[0][0]||"div",pe=i?function _v(e,t,n){return e.selectRootElement(t,n===Xt.ShadowDom)}(R,i,this.componentDef.encapsulation):hc(R,Y,function Uv(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(Y)),He=this.componentDef.onPush?288:272,nt=Wc(0,null,null,1,0,null,null,null,null,null),Et=wl(null,nt,null,He,null,null,y,R,w,d,null);let Ht,Zt;go(Et);try{const un=this.componentDef;let Sn,Rt=null;un.findHostDirectiveDefs?(Sn=[],Rt=new Map,un.findHostDirectiveDefs(un,Sn,Rt),Sn.push(un)):Sn=[un];const Ln=function $v(e,t){const n=e[1];return e[22]=t,Sa(n,22,2,"#host",null)}(Et,pe),Ni=function zv(e,t,n,i,o,s,d,y){const w=o[1];!function Gv(e,t,n,i){for(const o of e)t.mergedAttrs=Gi(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Tl(t,t.mergedAttrs,!0),null!==n&&Td(i,n,t))}(i,e,t,d);const R=s.createRenderer(t,n),Y=wl(o,Ah(n),null,n.onPush?32:16,o[e.index],e,s,R,y||null,null,null);return w.firstCreatePass&&Kc(w,e,i.length-1),Ml(o,Y),o[e.index]=Y}(Ln,pe,un,Sn,Et,y,R);Zt=uo(nt,22),pe&&function Yv(e,t,n,i){if(i)ci(e,n,["ng-version",nh.full]);else{const{attrs:o,classes:s}=function K_(e){const t=[],n=[];let i=1,o=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===o?""!==s&&t.push(s,e[++i]):8===o&&n.push(s);else{if(!os(o))break;o=s}i++}return{attrs:t,classes:n}}(t.selectors[0]);o&&ci(e,n,o),s&&s.length>0&&Sd(e,n,s.join(" "))}}(R,un,pe,i),void 0!==n&&function Kv(e,t,n){const i=e.projection=[];for(let o=0;o<t.length;o++){const s=n[o];i.push(null!=s?Array.from(s):null)}}(Zt,this.ngContentSelectors,n),Ht=function Wv(e,t,n,i,o,s){const d=ot(),y=o[1],w=Hn(d,o);Ih(y,o,d,n,null,i);for(let Y=0;Y<n.length;Y++)Gr(no(o,y,d.directiveStart+Y,d),o);Oh(y,o,d),w&&Gr(w,o);const R=no(o,y,d.directiveStart+d.componentOffset,d);if(e[8]=o[8]=R,null!==s)for(const Y of s)Y(R,t);return $c(y,d,e),R}(Ni,un,Sn,Rt,Et,[Zv]),jc(nt,Et,null)}finally{qr()}return new jv(this.componentType,Ht,Da(Zt,Et),Et,Zt)}}class jv extends b_{constructor(t,n,i,o,s){super(),this.location=i,this._rootLView=o,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new Vv(o),this.componentType=t}setInput(t,n){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[t])){const s=this._rootLView;Jc(s[1],s,o,t,n),xh(s,this._tNode.index)}}get injector(){return new Oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Zv(){const e=ot();jr(D()[1],e)}function eu(e){let t=function Vh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(bi(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new he(903,!1);o=t.\u0275dir}if(o){if(n){i.push(o);const d=e;d.inputs=tu(e.inputs),d.declaredInputs=tu(e.declaredInputs),d.outputs=tu(e.outputs);const y=o.hostBindings;y&&Jv(e,y);const w=o.viewQuery,R=o.contentQueries;if(w&&Xv(e,w),R&&qv(e,R),q(e.inputs,o.inputs),q(e.declaredInputs,o.declaredInputs),q(e.outputs,o.outputs),bi(o)&&o.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(o.data.animation)}}const s=o.features;if(s)for(let d=0;d<s.length;d++){const y=s[d];y&&y.ngInherit&&y(e),y===eu&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Qv(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,n=Gi(n,o.hostAttrs))}}(i)}function tu(e){return e===de?{}:e===k?[]:e}function Xv(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function qv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,s)=>{t(i,o,s),n(i,o,s)}:t}function Jv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let Il=null;function ua(){if(!Il){const e=It.Symbol;if(e&&e.iterator)Il=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Il=i)}}}return Il}function Ol(e){return!!nu(e)&&(Array.isArray(e)||!(e instanceof Map)&&ua()in e)}function nu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ds(e,t,n){return e[t]=n}function Wr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function da(e,t,n,i){const o=Wr(e,t,n);return Wr(e,t+1,i)||o}function iu(e,t,n,i){const o=D();return Wr(o,vr(),t)&&(M(),Es(ai(),o,e,t,n,i)),iu}function xa(e,t,n,i){return Wr(e,vr(),n)?t+ke(n)+i:Vn}function Ia(e,t,n,i,o,s){const y=da(e,function ar(){return gn.lFrame.bindingIndex}(),n,o);return yr(2),y?t+ke(n)+i+ke(o)+s:Vn}function qh(e,t,n,i,o,s,d,y){const w=D(),R=M(),Y=e+22,pe=R.firstCreatePass?function cy(e,t,n,i,o,s,d,y,w){const R=t.consts,Y=Sa(t,e,4,d||null,$i(R,y));Yc(t,n,Y,$i(R,w)),jr(t,Y);const pe=Y.tViews=Wc(2,Y,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,R);return null!==t.queries&&(t.queries.template(t,Y),pe.queries=t.queries.embeddedTView(Y)),Y}(Y,R,w,t,n,i,o,s,d):R.data[Y];si(pe,!1);const He=w[11].createComment("");ml(R,w,He,pe),Gr(He,w),Ml(w,w[Y]=Ph(He,w,He,pe)),xr(pe)&&zc(R,w,pe),null!=d&&Gc(w,pe,y)}function Jh(e){return gr(function Lr(){return gn.lFrame.contextLView}(),22+e)}function ru(e,t,n){const i=D();return Wr(i,vr(),t)&&ko(M(),ai(),i,e,t,i[11],n,!1),ru}function ou(e,t,n,i,o){const d=o?"class":"style";Jc(e,n,t.inputs[d],d,i)}function Fl(e,t,n,i){const o=D(),s=M(),d=22+e,y=o[11],w=o[d]=hc(y,t,function Hs(){return gn.lFrame.currentNamespace}()),R=s.firstCreatePass?function dy(e,t,n,i,o,s,d){const y=t.consts,R=Sa(t,e,2,o,$i(y,s));return Yc(t,n,R,$i(y,d)),null!==R.attrs&&Tl(R,R.attrs,!1),null!==R.mergedAttrs&&Tl(R,R.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,R),R}(d,s,o,0,t,n,i):s.data[d];return si(R,!0),Td(y,w,R),32!=(32&R.flags)&&ml(s,o,w,R),0===function Vo(){return gn.lFrame.elementDepthCount}()&&Gr(w,o),function cs(){gn.lFrame.elementDepthCount++}(),xr(R)&&(zc(s,o,R),$c(s,R,o)),null!==i&&Gc(o,R),Fl}function Rl(){let e=ot();qi()?_r():(e=e.parent,si(e,!1));const t=e;!function Uo(){gn.lFrame.elementDepthCount--}();const n=M();return n.firstCreatePass&&(jr(n,e),Qi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function $n(e){return 0!=(8&e.flags)}(t)&&ou(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Nn(e){return 0!=(16&e.flags)}(t)&&ou(n,t,D(),t.stylesWithoutHost,!1),Rl}function su(e,t,n,i){return Fl(e,t,n,i),Rl(),su}function kl(e,t,n){const i=D(),o=M(),s=e+22,d=o.firstCreatePass?function hy(e,t,n,i,o){const s=t.consts,d=$i(s,i),y=Sa(t,e,8,"ng-container",d);return null!==d&&Tl(y,d,!0),Yc(t,n,y,$i(s,o)),null!==t.queries&&t.queries.elementStart(t,y),y}(s,o,i,t,n):o.data[s];si(d,!0);const y=i[s]=i[11].createComment("");return ml(o,i,y,d),Gr(y,i),xr(d)&&(zc(o,i,d),$c(o,d,i)),null!=n&&Gc(i,d),kl}function Nl(){let e=ot();const t=M();return qi()?_r():(e=e.parent,si(e,!1)),t.firstCreatePass&&(jr(t,e),Qi(e)&&t.queries.elementEnd(e)),Nl}function au(e,t,n){return kl(e,t,n),Nl(),au}function ef(){return D()}function lu(e){return!!e&&"function"==typeof e.then}function tf(e){return!!e&&"function"==typeof e.subscribe}const nf=tf;function cu(e,t,n,i){const o=D(),s=M(),d=ot();return function sf(e,t,n,i,o,s,d){const y=xr(i),R=e.firstCreatePass&&Rh(e),Y=t[8],pe=Fh(t);let He=!0;if(3&i.type||d){const Ht=Hn(i,t),Zt=d?d(Ht):Ht,un=pe.length,Sn=d?Ln=>d(Un(Ln[i.index])):i.index;let Rt=null;if(!d&&y&&(Rt=function fy(e,t,n,i){const o=e.cleanup;if(null!=o)for(let s=0;s<o.length-1;s+=2){const d=o[s];if(d===n&&o[s+1]===i){const y=t[7],w=o[s+2];return y.length>w?y[w]:null}"string"==typeof d&&(s+=2)}return null}(e,t,o,i.index)),null!==Rt)(Rt.__ngLastListenerFn__||Rt).__ngNextListenerFn__=s,Rt.__ngLastListenerFn__=s,He=!1;else{s=lf(i,t,Y,s,!1);const Ln=n.listen(Zt,o,s);pe.push(s,Ln),R&&R.push(o,Sn,un,un+1)}}else s=lf(i,t,Y,s,!1);const nt=i.outputs;let Et;if(He&&null!==nt&&(Et=nt[o])){const Ht=Et.length;if(Ht)for(let Zt=0;Zt<Ht;Zt+=2){const Ni=t[Et[Zt]][Et[Zt+1]].subscribe(s),ir=pe.length;pe.push(s,Ni),R&&R.push(o,i.index,ir,-(ir+1))}}}(s,o,o[11],d,e,t,i),cu}function af(e,t,n,i){try{return!1!==n(i)}catch(o){return Nh(e,o),!1}}function lf(e,t,n,i,o){return function s(d){if(d===Function)return i;Xc(e.componentOffset>-1?_i(e.index,t):t);let w=af(t,0,i,d),R=s.__ngNextListenerFn__;for(;R;)w=af(t,0,R,d)&&w,R=R.__ngNextListenerFn__;return o&&!1===w&&(d.preventDefault(),d.returnValue=!1),w}}function cf(e=1){return function Jr(e){return(gn.lFrame.contextLView=function Ur(e,t){for(;e>0;)t=t[15],e--;return t}(e,gn.lFrame.contextLView))[8]}(e)}function py(e,t){let n=null;const i=function j_(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const s=t[o];if("*"!==s){if(null===i?ah(e,s,!0):G_(i,s))return o}else n=o}return n}function uf(e){const t=D()[16][6];if(!t.projection){const i=t.projection=C(e?e.length:1,null),o=i.slice();let s=t.child;for(;null!==s;){const d=e?py(s,e):0;null!==d&&(o[d]?o[d].projectionNext=s:i[d]=s,o[d]=s),s=s.next}}}function df(e,t=0,n){const i=D(),o=M(),s=Sa(o,22+e,16,null,n||null);null===s.projection&&(s.projection=t),_r(),32!=(32&s.flags)&&function Og(e,t,n){Md(t[11],0,t,n,_d(e,n,t),Cd(n.parent||t[6],n,t))}(o,i,s)}function uu(e,t,n){return Ll(e,"",t,"",n),uu}function Ll(e,t,n,i,o){const s=D(),d=xa(s,t,n,i);return d!==Vn&&ko(M(),ai(),s,e,d,s[11],o,!1),Ll}function Bl(e,t){return e<<17|t<<2}function Qs(e){return e>>17&32767}function du(e){return 2|e}function ha(e){return(131068&e)>>2}function hu(e,t){return-131069&e|t<<2}function fu(e){return 1|e}function bf(e,t,n,i,o){const s=e[n+1],d=null===t;let y=i?Qs(s):ha(s),w=!1;for(;0!==y&&(!1===w||d);){const Y=e[y+1];by(e[y],t)&&(w=!0,e[y+1]=i?fu(Y):du(Y)),y=i?Qs(Y):ha(Y)}w&&(e[n+1]=i?du(s):fu(s))}function by(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&a(e,t)>=0}const Er={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Cf(e){return e.substring(Er.key,Er.keyEnd)}function Ef(e,t){const n=Er.textEnd;return n===t?-1:(t=Er.keyEnd=function wy(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Er.key=t,n),La(e,t,n))}function La(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function pu(e,t,n){return ss(e,t,n,!1),pu}function mu(e,t){return ss(e,t,null,!0),mu}function Sf(e){as(f,As,e,!0)}function As(e,t){for(let n=function Ey(e){return function wf(e){Er.key=0,Er.keyEnd=0,Er.value=0,Er.valueEnd=0,Er.textEnd=e.length}(e),Ef(e,La(e,0,Er.textEnd))}(t);n>=0;n=Ef(t,n))f(e,Cf(t),!0)}function ss(e,t,n,i){const o=D(),s=M(),d=yr(2);s.firstUpdatePass&&xf(s,e,d,i),t!==Vn&&Wr(o,d,t)&&Of(s,s.data[Fi()],o,o[11],e,o[d+1]=function Ry(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ne(Ns(e)))),e}(t,n),i,d)}function as(e,t,n,i){const o=M(),s=yr(2);o.firstUpdatePass&&xf(o,null,s,i);const d=D();if(n!==Vn&&Wr(d,s,n)){const y=o.data[Fi()];if(Ff(y,i)&&!Tf(o,s)){let w=i?y.classesWithoutHost:y.stylesWithoutHost;null!==w&&(n=ie(w,n||"")),ou(o,y,d,n,i)}else!function Fy(e,t,n,i,o,s,d,y){o===Vn&&(o=k);let w=0,R=0,Y=0<o.length?o[0]:null,pe=0<s.length?s[0]:null;for(;null!==Y||null!==pe;){const He=w<o.length?o[w+1]:void 0,nt=R<s.length?s[R+1]:void 0;let Ht,Et=null;Y===pe?(w+=2,R+=2,He!==nt&&(Et=pe,Ht=nt)):null===pe||null!==Y&&Y<pe?(w+=2,Et=Y):(R+=2,Et=pe,Ht=nt),null!==Et&&Of(e,t,n,i,Et,Ht,d,y),Y=w<o.length?o[w]:null,pe=R<s.length?s[R]:null}}(o,y,d,d[11],d[s+1],d[s+1]=function Py(e,t,n){if(null==n||""===n)return k;const i=[],o=Ns(n);if(Array.isArray(o))for(let s=0;s<o.length;s++)e(i,o[s],!0);else if("object"==typeof o)for(const s in o)o.hasOwnProperty(s)&&e(i,s,o[s]);else"string"==typeof o&&t(i,o);return i}(e,t,n),i,s)}}function Tf(e,t){return t>=e.expandoStartIndex}function xf(e,t,n,i){const o=e.data;if(null===o[n+1]){const s=o[Fi()],d=Tf(e,n);Ff(s,i)&&null===t&&!d&&(t=!1),t=function Ty(e,t,n,i){const o=Br(e);let s=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=nl(n=gu(null,e,t,n,i),t.attrs,i),s=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==o)if(n=gu(o,e,t,n,i),null===s){let w=function xy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==ha(i))return e[Qs(i)]}(e,t,i);void 0!==w&&Array.isArray(w)&&(w=gu(null,e,t,w[1],i),w=nl(w,t.attrs,i),function Iy(e,t,n,i){e[Qs(n?t.classBindings:t.styleBindings)]=i}(e,t,i,w))}else s=function Oy(e,t,n){let i;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<o;s++)i=nl(i,e[s].hostAttrs,n);return nl(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(o,s,t,i),function vy(e,t,n,i,o,s){let d=s?t.classBindings:t.styleBindings,y=Qs(d),w=ha(d);e[i]=n;let Y,R=!1;if(Array.isArray(n)?(Y=n[1],(null===Y||a(n,Y)>0)&&(R=!0)):Y=n,o)if(0!==w){const He=Qs(e[y+1]);e[i+1]=Bl(He,y),0!==He&&(e[He+1]=hu(e[He+1],i)),e[y+1]=function gy(e,t){return 131071&e|t<<17}(e[y+1],i)}else e[i+1]=Bl(y,0),0!==y&&(e[y+1]=hu(e[y+1],i)),y=i;else e[i+1]=Bl(w,0),0===y?y=i:e[w+1]=hu(e[w+1],i),w=i;R&&(e[i+1]=du(e[i+1])),bf(e,Y,i,!0),bf(e,Y,i,!1),function yy(e,t,n,i,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&a(s,t)>=0&&(n[i+1]=fu(n[i+1]))}(t,Y,e,i,s),d=Bl(y,w),s?t.classBindings=d:t.styleBindings=d}(o,s,t,n,d,i)}}function gu(e,t,n,i,o){let s=null;const d=n.directiveEnd;let y=n.directiveStylingLast;for(-1===y?y=n.directiveStart:y++;y<d&&(s=t[y],i=nl(i,s.hostAttrs,o),s!==e);)y++;return null!==e&&(n.directiveStylingLast=y),i}function nl(e,t,n){const i=n?1:2;let o=-1;if(null!==t)for(let s=0;s<t.length;s++){const d=t[s];"number"==typeof d?o=d:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),f(e,d,!!n||t[++s]))}return void 0===e?null:e}function Of(e,t,n,i,o,s,d,y){if(!(3&t.type))return;const w=e.data,R=w[y+1],Y=function _y(e){return 1==(1&e)}(R)?Pf(w,t,n,o,ha(R),d):void 0;Vl(Y)||(Vl(s)||function my(e){return 2==(2&e)}(R)&&(s=Pf(w,null,n,o,y,d)),function Fg(e,t,n,i,o){if(t)o?e.addClass(n,i):e.removeClass(n,i);else{let s=-1===i.indexOf("-")?void 0:Cs.DashCase;null==o?e.removeStyle(n,i,s):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),s|=Cs.Important),e.setStyle(n,i,o,s))}}(i,d,pr(Fi(),n),o,s))}function Pf(e,t,n,i,o,s){const d=null===t;let y;for(;o>0;){const w=e[o],R=Array.isArray(w),Y=R?w[1]:w,pe=null===Y;let He=n[o+1];He===Vn&&(He=pe?k:void 0);let nt=pe?l(He,i):Y===i?He:void 0;if(R&&!Vl(nt)&&(nt=l(w,i)),Vl(nt)&&(y=nt,d))return y;const Et=e[o+1];o=d?Qs(Et):ha(Et)}if(null!==t){let w=s?t.residualClasses:t.residualStyles;null!=w&&(y=l(w,i))}return y}function Vl(e){return void 0!==e}function Ff(e,t){return 0!=(e.flags&(t?8:16))}function Rf(e,t=""){const n=D(),i=M(),o=e+22,s=i.firstCreatePass?Sa(i,o,1,t,null):i.data[o],d=n[o]=function dc(e,t){return e.createText(t)}(n[11],t);ml(i,n,d,s),si(s,!1)}function _u(e){return Ul("",e,""),_u}function Ul(e,t,n){const i=D(),o=xa(i,e,t,n);return o!==Vn&&Vs(i,Fi(),o),Ul}function vu(e,t,n,i,o){const s=D(),d=Ia(s,e,t,n,i,o);return d!==Vn&&Vs(s,Fi(),d),vu}function jf(e,t,n){as(f,As,xa(D(),e,t,n),!0)}function yu(e,t,n){const i=D();return Wr(i,vr(),t)&&ko(M(),ai(),i,e,t,i[11],n,!0),yu}function bu(e,t,n){const i=D();if(Wr(i,vr(),t)){const s=M(),d=ai();ko(s,d,i,e,t,function kh(e,t,n){return(null===e||bi(e))&&(n=function oi(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}(Br(s.data),d,i),n,!0)}return bu}const fa=void 0;var Jy=["en",[["a","p"],["AM","PM"],fa],[["AM","PM"],fa,fa],[["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"]],fa,[["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"]],fa,[["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}",fa,"{1} 'at' {0}",fa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ba={};function Cu(e){const t=function e0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Jf(t);if(n)return n;const i=t.split("-")[0];if(n=Jf(i),n)return n;if("en"===i)return Jy;throw new he(701,!1)}function qf(e){return Cu(e)[wn.PluralCase]}function Jf(e){return e in Ba||(Ba[e]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[e]),Ba[e]}var wn=(()=>((wn=wn||{})[wn.LocaleId=0]="LocaleId",wn[wn.DayPeriodsFormat=1]="DayPeriodsFormat",wn[wn.DayPeriodsStandalone=2]="DayPeriodsStandalone",wn[wn.DaysFormat=3]="DaysFormat",wn[wn.DaysStandalone=4]="DaysStandalone",wn[wn.MonthsFormat=5]="MonthsFormat",wn[wn.MonthsStandalone=6]="MonthsStandalone",wn[wn.Eras=7]="Eras",wn[wn.FirstDayOfWeek=8]="FirstDayOfWeek",wn[wn.WeekendRange=9]="WeekendRange",wn[wn.DateFormat=10]="DateFormat",wn[wn.TimeFormat=11]="TimeFormat",wn[wn.DateTimeFormat=12]="DateTimeFormat",wn[wn.NumberSymbols=13]="NumberSymbols",wn[wn.NumberFormats=14]="NumberFormats",wn[wn.CurrencyCode=15]="CurrencyCode",wn[wn.CurrencySymbol=16]="CurrencySymbol",wn[wn.CurrencyName=17]="CurrencyName",wn[wn.Currencies=18]="Currencies",wn[wn.Directionality=19]="Directionality",wn[wn.PluralCase=20]="PluralCase",wn[wn.ExtraData=21]="ExtraData",wn))();const Va="en-US";let ep=Va;function wu(e,t,n,i,o){if(e=ae(e),Array.isArray(e))for(let s=0;s<e.length;s++)wu(e[s],t,n,i,o);else{const s=M(),d=D();let y=aa(e)?e:ae(e.provide),w=Xd(e);const R=ot(),Y=1048575&R.providerIndexes,pe=R.directiveStart,He=R.providerIndexes>>20;if(aa(e)||!e.multi){const nt=new at(w,o,Ma),Et=Mu(y,t,o?Y:Y+He,pe);-1===Et?(Vi($o(R,d),s,y),Au(s,e,t.length),t.push(y),R.directiveStart++,R.directiveEnd++,o&&(R.providerIndexes+=1048576),n.push(nt),d.push(nt)):(n[Et]=nt,d[Et]=nt)}else{const nt=Mu(y,t,Y+He,pe),Et=Mu(y,t,Y,Y+He),Zt=Et>=0&&n[Et];if(o&&!Zt||!o&&!(nt>=0&&n[nt])){Vi($o(R,d),s,y);const un=function q0(e,t,n,i,o){const s=new at(e,n,Ma);return s.multi=[],s.index=t,s.componentProviders=0,Ap(s,o,i&&!n),s}(o?X0:Q0,n.length,o,i,w);!o&&Zt&&(n[Et].providerFactory=un),Au(s,e,t.length,0),t.push(y),R.directiveStart++,R.directiveEnd++,o&&(R.providerIndexes+=1048576),n.push(un),d.push(un)}else Au(s,e,nt>-1?nt:Et,Ap(n[o?Et:nt],w,!o&&i));!o&&i&&Zt&&n[Et].componentProviders++}}}function Au(e,t,n,i){const o=aa(t),s=function f_(e){return!!e.useClass}(t);if(o||s){const w=(s?ae(t.useClass):t).prototype.ngOnDestroy;if(w){const R=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const Y=R.indexOf(n);-1===Y?R.push(n,[i,w]):R[Y+1].push(i,w)}else R.push(n,w)}}}function Ap(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Mu(e,t,n,i){for(let o=n;o<i;o++)if(t[o]===e)return o;return-1}function Q0(e,t,n,i){return Su(this.multi,[])}function X0(e,t,n,i){const o=this.multi;let s;if(this.providerFactory){const d=this.providerFactory.componentProviders,y=no(n,n[1],this.providerFactory.index,i);s=y.slice(0,d),Su(o,s);for(let w=d;w<y.length;w++)s.push(y[w])}else s=[],Su(o,s);return s}function Su(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Mp(e,t=[]){return n=>{n.providersResolver=(i,o)=>function Z0(e,t,n){const i=M();if(i.firstCreatePass){const o=bi(e);wu(n,i.data,i.blueprint,o,!0),wu(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Ua{}class Sp{}function J0(e,t){return new Tp(e,t??null)}class Tp extends Ua{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Lh(this);const i=di(t);this._bootstrapComponents=Bs(i.bootstrap),this._r3Injector=mh(t,n,[{provide:Ua,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],ne(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Tu extends Sp{constructor(t){super(),this.moduleType=t}create(t){return new Tp(this.moduleType,t)}}class eb extends Ua{constructor(t,n,i){super(),this.componentFactoryResolver=new Lh(this),this.instance=null;const o=new Qd([...t,{provide:Ua,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],n||El(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function xu(e,t,n=null){return new eb(e,t,n).injector}let tb=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const i=Wd(0,n.type),o=i.length>0?xu([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=Ve({token:e,providedIn:"environment",factory:()=>new e(Oe(la))}),e})();function xp(e){e.getStandaloneInjector=t=>t.get(tb).getOrCreateStandaloneInjector(e)}function Np(e,t,n,i){return Up(D(),Pi(),e,t,n,i)}function Lp(e,t,n,i,o){return Hp(D(),Pi(),e,t,n,i,o)}function Bp(e,t,n,i,o,s){return jp(D(),Pi(),e,t,n,i,o,s)}function Vp(e,t,n,i,o,s,d){return function $p(e,t,n,i,o,s,d,y,w){const R=t+n;return function Ko(e,t,n,i,o,s){const d=da(e,t,n,i);return da(e,t+2,o,s)||d}(e,R,o,s,d,y)?Ds(e,R+4,w?i.call(w,o,s,d,y):i(o,s,d,y)):ll(e,R+4)}(D(),Pi(),e,t,n,i,o,s,d)}function ll(e,t){const n=e[t];return n===Vn?void 0:n}function Up(e,t,n,i,o,s){const d=t+n;return Wr(e,d,o)?Ds(e,d+1,s?i.call(s,o):i(o)):ll(e,d+1)}function Hp(e,t,n,i,o,s,d){const y=t+n;return da(e,y,o,s)?Ds(e,y+2,d?i.call(d,o,s):i(o,s)):ll(e,y+2)}function jp(e,t,n,i,o,s,d,y){const w=t+n;return function Pl(e,t,n,i,o){const s=da(e,t,n,i);return Wr(e,t+2,o)||s}(e,w,o,s,d)?Ds(e,w+3,y?i.call(y,o,s,d):i(o,s,d)):ll(e,w+3)}function Gp(e,t){const n=M();let i;const o=e+22;n.firstCreatePass?(i=function gb(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const s=i.factory||(i.factory=kn(i.type)),d=st(Ma);try{const y=fs(!1),w=s();return fs(y),function uy(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,D(),o,w),w}finally{st(d)}}function Wp(e,t,n){const i=e+22,o=D(),s=gr(o,i);return cl(o,i)?Up(o,Pi(),t,s.transform,n,s):s.transform(n)}function Yp(e,t,n,i){const o=e+22,s=D(),d=gr(s,o);return cl(s,o)?Hp(s,Pi(),t,d.transform,n,i,d):d.transform(n,i)}function Kp(e,t,n,i,o){const s=e+22,d=D(),y=gr(d,s);return cl(d,s)?jp(d,Pi(),t,y.transform,n,i,o,y):y.transform(n,i,o)}function cl(e,t){return e[1].data[t].pure}function Ou(e){return t=>{setTimeout(e,void 0,t)}}const Ms=class yb extends r.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let o=t,s=n||(()=>null),d=i;if(t&&"object"==typeof t){const w=t;o=w.next?.bind(w),s=w.error?.bind(w),d=w.complete?.bind(w)}this.__isAsync&&(s=Ou(s),o&&(o=Ou(o)),d&&(d=Ou(d)));const y=super.subscribe({next:o,error:s,complete:d});return t instanceof c.w0&&t.add(y),y}};function bb(){return this._results[ua()]()}class Gl{get changes(){return this._changes||(this._changes=new Ms)}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=ua(),i=Gl.prototype;i[n]||(i[n]=bb)}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 i=this;i.dirty=!1;const o=function Cr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ks(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let o=e[i],s=t[i];if(n&&(o=n(o),s=n(s)),s!==o)return!1}return!0}(i._results,o,n))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let ul=(()=>{class e{}return e.__NG_ELEMENT_ID__=Db,e})();const Cb=ul,Eb=class extends Cb{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t,n){const i=this._declarationTContainer.tViews,o=wl(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const d=this._declarationLView[19];return null!==d&&(o[19]=d.createEmbeddedView(i)),jc(i,o,t),new Ja(o)}};function Db(){return Wl(ot(),D())}function Wl(e,t){return 4&e.type?new Eb(t,e,Da(e,t)):null}let Yl=(()=>{class e{}return e.__NG_ELEMENT_ID__=wb,e})();function wb(){return Xp(ot(),D())}const Ab=Yl,Zp=class extends Ab{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Da(this._hostTNode,this._hostLView)}get injector(){return new Oo(this._hostTNode,this._hostLView)}get parentInjector(){const t=es(this._hostTNode,this._hostLView);if(Pr(t)){const n=hs(t,this._hostLView),i=to(t);return new Oo(n[1].data[i+8],n)}return new Oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Qp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){let o,s;"number"==typeof i?o=i:null!=i&&(o=i.index,s=i.injector);const d=t.createEmbeddedView(n||{},s);return this.insert(d,o),d}createComponent(t,n,i,o,s){const d=t&&!function Yo(e){return"function"==typeof e}(t);let y;if(d)y=n;else{const pe=n||{};y=pe.index,i=pe.injector,o=pe.projectableNodes,s=pe.environmentInjector||pe.ngModuleRef}const w=d?t:new el(pn(t)),R=i||this.parentInjector;if(!s&&null==w.ngModule){const He=(d?R:this.parentInjector).get(la,null);He&&(s=He)}const Y=w.create(R,o,void 0,s);return this.insert(Y.hostView,y),Y}insert(t,n){const i=t._lView,o=i[1];if(function wr(e){return Mi(e[3])}(i)){const Y=this.indexOf(t);if(-1!==Y)this.detach(Y);else{const pe=i[3],He=new Zp(pe,pe[6],pe[3]);He.detach(He.indexOf(t))}}const s=this._adjustIndex(n),d=this._lContainer;!function Ag(e,t,n,i){const o=10+i,s=n.length;i>0&&(n[o-1][4]=t),i<s-10?(t[4]=n[o],m(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const d=t[17];null!==d&&n!==d&&function Mg(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(d,t);const y=t[19];null!==y&&y.insertView(e),t[2]|=64}(o,i,d,s);const y=gc(s,d),w=i[11],R=pl(w,d[7]);return null!==R&&function Eg(e,t,n,i,o,s){i[0]=o,i[6]=t,Wa(e,i,n,1,o,s)}(o,d[6],w,i,R,y),t.attachToViewContainerRef(),m(Pu(d),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Qp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=fc(this._lContainer,n);i&&(u(Pu(this._lContainer),n),gd(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=fc(this._lContainer,n);return i&&null!=u(Pu(this._lContainer),n)?new Ja(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function Qp(e){return e[8]}function Pu(e){return e[8]||(e[8]=[])}function Xp(e,t){let n;const i=t[e.index];if(Mi(i))n=i;else{let o;if(8&e.type)o=Un(i);else{const s=t[11];o=s.createComment("");const d=Hn(e,t);ra(s,pl(s,d),o,function Ig(e,t){return e.nextSibling(t)}(s,d),!1)}t[e.index]=n=Ph(i,t,o,e),Ml(t,n)}return new Zp(n,e,t)}class Fu{constructor(t){this.queryList=t,this.matches=null}clone(){return new Fu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ru{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let s=0;s<i;s++){const d=n.getByIndex(s);o.push(this.queries[d.indexInDeclarationView].clone())}return new Ru(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==sm(t,n).matches&&this.queries[n].setDirty()}}class qp{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class ku{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const o=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,o);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new ku(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Nu{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 Nu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const s=i[o];this.matchTNodeWithReadOption(t,n,Mb(n,s)),this.matchTNodeWithReadOption(t,n,is(n,t,s,!1,!1))}else i===ul?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,is(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Qa||o===Yl||o===ul&&4&n.type)this.addMatch(n.index,-2);else{const s=is(n,t,o,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Mb(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Tb(e,t,n,i){return-1===n?function Sb(e,t){return 11&e.type?Da(e,t):4&e.type?Wl(e,t):null}(t,e):-2===n?function xb(e,t,n){return n===Qa?Da(t,e):n===ul?Wl(t,e):n===Yl?Xp(t,e):void 0}(e,t,i):no(e,e[1],n,t)}function Jp(e,t,n,i){const o=t[19].queries[i];if(null===o.matches){const s=e.data,d=n.matches,y=[];for(let w=0;w<d.length;w+=2){const R=d[w];y.push(R<0?null:Tb(t,s[R],d[w+1],n.metadata.read))}o.matches=y}return o.matches}function Lu(e,t,n,i){const o=e.queries.getByIndex(n),s=o.matches;if(null!==s){const d=Jp(e,t,o,n);for(let y=0;y<s.length;y+=2){const w=s[y];if(w>0)i.push(d[y/2]);else{const R=s[y+1],Y=t[-w];for(let pe=10;pe<Y.length;pe++){const He=Y[pe];He[17]===He[3]&&Lu(He[1],He,R,i)}if(null!==Y[9]){const pe=Y[9];for(let He=0;He<pe.length;He++){const nt=pe[He];Lu(nt[1],nt,R,i)}}}}}return i}function em(e){const t=D(),n=M(),i=us();To(i+1);const o=sm(n,i);if(e.dirty&&function wo(e){return 4==(4&e[2])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const s=o.crossesNgTemplate?Lu(n,t,i,[]):Jp(n,t,o,i);e.reset(s,w_),e.notifyOnChanges()}return!0}return!1}function tm(e,t,n){const i=M();i.firstCreatePass&&(om(i,new qp(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),rm(i,D(),t)}function nm(e,t,n,i){const o=M();if(o.firstCreatePass){const s=ot();om(o,new qp(t,n,i),s.index),function Ob(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}rm(o,D(),n)}function im(){return function Ib(e,t){return e[19].queries[t].queryList}(D(),us())}function rm(e,t,n){const i=new Gl(4==(4&n));Mh(e,t,i,i.destroy),null===t[19]&&(t[19]=new Ru),t[19].queries.push(new Fu(i))}function om(e,t,n){null===e.queries&&(e.queries=new ku),e.queries.track(new Nu(t,n))}function sm(e,t){return e.queries.getByIndex(t)}function am(e,t){return Wl(e,t)}function Zl(...e){}const Mm=new ui("Application Initializer");let Ql=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Zl,this.reject=Zl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const s=this.appInits[o]();if(lu(s))n.push(s);else if(nf(s)){const d=new Promise((y,w)=>{s.subscribe({complete:y,error:w})});n.push(d)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Oe(Mm,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Sm=new ui("AppId",{providedIn:"root",factory:function Tm(){return`${ju()}${ju()}${ju()}`}});function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xm=new ui("Platform Initializer"),Xb=new ui("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Im=new ui("appBootstrapListener"),qb=new ui("AnimationModuleType");let Jb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Xl=new ui("LocaleId",{providedIn:"root",factory:()=>V(Xl,se.Optional|se.SkipSelf)||function eC(){return typeof $localize<"u"&&$localize.locale||Va}()}),tC=new ui("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class nC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let iC=(()=>{class e{compileModuleSync(n){return new Tu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=Bs(di(n).declarations).reduce((d,y)=>{const w=pn(y);return w&&d.push(new el(w)),d},[]);return new nC(i,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=Ve({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $u(e){typeof Zone>"u"?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Zo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ms(!1),this.onMicrotaskEmpty=new Ms(!1),this.onStable=new Ms(!1),this.onError=new Ms(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aC(){let e=It.requestAnimationFrame,t=It.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(It,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Gu(e),e.isCheckStableRunning=!0,zu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Gu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,s,d,y)=>{try{return Fm(e),n.invokeTask(o,s,d,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Rm(e)}},onInvoke:(n,i,o,s,d,y,w)=>{try{return Fm(e),n.invoke(o,s,d,y,w)}finally{e.shouldCoalesceRunChangeDetection&&t(),Rm(e)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Gu(e),zu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Zo.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(Zo.isInAngularZone())throw new he(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const s=this._inner,d=s.scheduleEventTask("NgZoneEvent: "+o,t,lC,Zl,Zl);try{return s.runTask(d,n,i)}finally{s.cancelTask(d)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function zu(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 Gu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Fm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Rm(e){e._nesting--,zu(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ms,this.onMicrotaskEmpty=new Ms,this.onStable=new Ms,this.onError=new Ms}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}const km=new ui(""),Nm=new ui("");let Wu,hC=(()=>{class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Wu||(function fC(e){Wu=e}(o),o.addToWindow(i)),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:()=>{Zo.assertNotInAngularZone(),$u(()=>{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())$u(()=>{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(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.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,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!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,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(Oe(Zo),Oe(Lm),Oe(Nm))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e})(),Lm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return Wu?.findTestabilityInTree(this,n,i)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Xs=null;const Bm=new ui("AllowMultipleToken"),Yu=new ui("PlatformDestroyListeners");class gC{constructor(t,n){this.name=t,this.token=n}}function Um(e,t,n=[]){const i=`Platform: ${t}`,o=new ui(i);return(s=[])=>{let d=Ku();if(!d||d.injector.get(Bm,!1)){const y=[...n,...s,{provide:o,useValue:!0}];e?e(y):function _C(e){if(Xs&&!Xs.get(Bm,!1))throw new he(400,!1);Xs=e;const t=e.get(jm);(function Vm(e){const t=e.get(xm,null);t&&t.forEach(n=>n())})(e)}(function Hm(e=[],t){return ca.create({name:t,providers:[{provide:Ic,useValue:"platform"},{provide:Yu,useValue:new Set([()=>Xs=null])},...e]})}(y,i))}return function yC(e){const t=Ku();if(!t)throw new he(401,!1);return t}()}}function Ku(){return Xs?.get(jm)??null}let jm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const o=function zm(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Zo(t),n}(i?.ngZone,function $m(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:Zo,useValue:o}];return o.run(()=>{const d=ca.create({providers:s,parent:this.injector,name:n.moduleType.name}),y=n.create(d),w=y.injector.get(Xa,null);if(!w)throw new he(402,!1);return o.runOutsideAngular(()=>{const R=o.onError.subscribe({next:Y=>{w.handleError(Y)}});y.onDestroy(()=>{Jl(this._modules,y),R.unsubscribe()})}),function Gm(e,t,n){try{const i=n();return lu(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(w,o,()=>{const R=y.injector.get(Ql);return R.runInitializers(),R.donePromise.then(()=>(function tp(e){Ot(e,"Expected localeId to be defined"),"string"==typeof e&&(ep=e.toLowerCase().replace(/_/g,"-"))}(y.injector.get(Xl,Va)||Va),this._moduleDoBootstrap(y),y))})})}bootstrapModule(n,i=[]){const o=Wm({},i);return function pC(e,t,n){const i=new Tu(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const i=n.injector.get(ql);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new he(-403,!1);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new he(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(Yu,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Oe(ca))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Wm(e,t){return Array.isArray(t)?t.reduce(Wm,e):{...e,...t}}let ql=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,i,o){this._zone=n,this._injector=i,this._exceptionHandler=o,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 A.y(y=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{y.next(this._stable),y.complete()})}),d=new A.y(y=>{let w;this._zone.runOutsideAngular(()=>{w=this._zone.onStable.subscribe(()=>{Zo.assertNotInAngularZone(),$u(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,y.next(!0))})})});const R=this._zone.onUnstable.subscribe(()=>{Zo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{y.next(!1)}))});return()=>{w.unsubscribe(),R.unsubscribe()}});this.isStable=(0,B.T)(s,d.pipe((0,X.B)()))}bootstrap(n,i){const o=n instanceof qd;if(!this._injector.get(Ql).done)throw!o&&Xn(n),new he(405,false);let d;d=o?n:this._injector.get(Za).resolveComponentFactory(n),this.componentTypes.push(d.componentType);const y=function mC(e){return e.isBoundToModule}(d)?void 0:this._injector.get(Ua),R=d.create(ca.NULL,[],i||d.selector,y),Y=R.location.nativeElement,pe=R.injector.get(km,null);return pe?.registerApplication(Y),R.onDestroy(()=>{this.detachView(R.hostView),Jl(this.components,R),pe?.unregisterApplication(Y)}),this._loadComponent(R),R}tick(){if(this._runningTick)throw new he(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 i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Jl(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const i=this._injector.get(Im,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(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),()=>Jl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new he(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)(Oe(Zo),Oe(la),Oe(Xa))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Jl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function CC(){return!1}function EC(){}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=wC,e})();function wC(e){return function AC(e,t,n){if(Ui(e)&&!n){const i=_i(e.index,t);return new Ja(i,i)}return 47&e.type?new Ja(t[16],t):null}(ot(),D(),16==(16&e))}class Xm{constructor(){}supports(t){return Ol(t)}create(t){return new OC(t)}}const IC=(e,t)=>t;class OC{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||IC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,s=null;for(;n||i;){const d=!i||n&&n.currentIndex<Jm(i,o,s)?n:i,y=Jm(d,o,s),w=d.currentIndex;if(d===i)o--,i=i._nextRemoved;else if(n=n._next,null==d.previousIndex)o++;else{s||(s=[]);const R=y-o,Y=w-o;if(R!=Y){for(let He=0;He<R;He++){const nt=He<s.length?s[He]:s[He]=0,Et=nt+He;Y<=Et&&Et<R&&(s[He]=nt+1)}s[d.previousIndex]=Y-R}}y!==w&&t(d,y,w)}}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=[]),!Ol(t))throw new he(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,s,d,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let y=0;y<this.length;y++)s=t[y],d=this._trackByFn(y,s),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,s,d,y)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,d,y),i=!0),n=n._next}else o=0,function sy(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ua()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,y=>{d=this._trackByFn(o,y),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,y,d,o)),Object.is(n.item,y)||this._addIdentityChange(n,y)):(n=this._mismatch(n,y,d,o),i=!0),n=n._next,o++}),this.length=o;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,i,o){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,o)):t=this._addAfter(new PC(n,i),s,o),t}_verifyReinsertion(t,n,i,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,s=t._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new qm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._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 qm),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 PC{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 FC{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class qm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new FC,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.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 Jm(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+t+o}class eg{constructor(){}supports(t){return t instanceof Map||nu(t)}create(){return new RC}}class RC{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||nu(t)))throw new he(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,(i,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._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 o=this._records.get(t);this._maybeAddToChanges(o,n);const s=o._prev,d=o._next;return s&&(s._next=d),d&&(d._prev=s),o._next=null,o._prev=null,o}const i=new kC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_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(i=>n(t[i],i))}}class kC{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 tg(){return new Ju([new Xm])}let Ju=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||tg()),deps:[[e,new x,new _n]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new he(901,!1)}}return e.\u0275prov=Ve({token:e,providedIn:"root",factory:tg}),e})();function ng(){return new ed([new eg])}let ed=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||ng()),deps:[[e,new x,new _n]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(i)return i;throw new he(901,!1)}}return e.\u0275prov=Ve({token:e,providedIn:"root",factory:ng}),e})();const BC=Um(null,"core",[]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Oe(ql))},e.\u0275mod=St({type:e}),e.\u0275inj=Bt({}),e})();function UC(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},433:(Dt,Se,g)=>{g.d(Se,{Fj:()=>ye,oH:()=>fr,u5:()=>po,JU:()=>Le,JJ:()=>$t,JL:()=>It,F:()=>rr,On:()=>pi,YN:()=>Ft,wV:()=>gi,UX:()=>Qo,Q7:()=>ti,EJ:()=>dt,p4:()=>xi,_Y:()=>mi,Kr:()=>ri});var r=g(4650),c=g(6895),A=g(8996),B=g(9751),X=g(4742),le=g(8421),q=g(3269),ne=g(5403),ie=g(3268),j=g(1810),ae=g(4004);let je=(()=>{class D{constructor(S,Z){this._renderer=S,this._elementRef=Z,this.onChange=ot=>{},this.onTouched=()=>{}}setProperty(S,Z){this._renderer.setProperty(this._elementRef.nativeElement,S,Z)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.Qsj),r.Y36(r.SBq))},D.\u0275dir=r.lG2({type:D}),D})(),Ee=(()=>{class D extends je{}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,features:[r.qOj]}),D})();const Le=new r.OlP("NgValueAccessor"),Re={provide:Le,useExisting:(0,r.Gpc)(()=>ye),multi:!0},tt=new r.OlP("CompositionEventMode");let ye=(()=>{class D extends je{constructor(S,Z,ot){super(S,Z),this._compositionMode=ot,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ke(){const D=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(S){this.setProperty("value",S??"")}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(tt,8))},D.\u0275dir=r.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(S,Z){1&S&&r.NdJ("input",function(on){return Z._handleInput(on.target.value)})("blur",function(){return Z.onTouched()})("compositionstart",function(){return Z._compositionStart()})("compositionend",function(on){return Z._compositionEnd(on.target.value)})},features:[r._Bn([Re]),r.qOj]}),D})();const Ue=new r.OlP("NgValidators"),Te=new r.OlP("NgAsyncValidators");function Mt(D){return function we(D){return null==D||("string"==typeof D||Array.isArray(D))&&0===D.length}(D.value)?{required:!0}:null}function wt(D){return null}function Ot(D){return null!=D}function ve(D){return(0,r.QGY)(D)?(0,A.D)(D):D}function qe(D){let M={};return D.forEach(S=>{M=null!=S?{...M,...S}:M}),0===Object.keys(M).length?null:M}function L(D,M){return M.map(S=>S(D))}function Ve(D){return D.map(M=>function te(D){return!D.validate}(M)?M:S=>M.validate(S))}function Bt(D){return null!=D?function ut(D){if(!D)return null;const M=D.filter(Ot);return 0==M.length?null:function(S){return qe(L(S,M))}}(Ve(D)):null}function Vt(D){return null!=D?function Jt(D){if(!D)return null;const M=D.filter(Ot);return 0==M.length?null:function(S){return function ee(...D){const M=(0,q.jO)(D),{args:S,keys:Z}=(0,X.D)(D),ot=new B.y(on=>{const{length:Yn}=S;if(!Yn)return void on.complete();const si=new Array(Yn);let qi=Yn,_r=Yn;for(let Lr=0;Lr<Yn;Lr++){let mo=!1;(0,le.Xf)(S[Lr]).subscribe((0,ne.x)(on,Ao=>{mo||(mo=!0,_r--),si[Lr]=Ao},()=>qi--,void 0,()=>{(!qi||!mo)&&(_r||on.next(Z?(0,j.n)(Z,si):si),on.complete())}))}});return M?ot.pipe((0,ie.Z)(M)):ot}(L(S,M).map(ve)).pipe((0,ae.U)(qe))}}(Ve(D)):null}function en(D,M){return null===D?[M]:Array.isArray(D)?[...D,M]:[D,M]}function En(D){return D._rawValidators}function In(D){return D._rawAsyncValidators}function Pn(D){return D?Array.isArray(D)?D:[D]:[]}function Fn(D,M){return Array.isArray(D)?D.includes(M):D===M}function an(D,M){const S=Pn(M);return Pn(D).forEach(ot=>{Fn(S,ot)||S.push(ot)}),S}function et(D,M){return Pn(M).filter(S=>!Fn(D,S))}class W{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(M){this._rawValidators=M||[],this._composedValidatorFn=Bt(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=Vt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,S){return!!this.control&&this.control.hasError(M,S)}getError(M,S){return this.control?this.control.getError(M,S):null}}class se extends W{get formDirective(){return null}get path(){return null}}class Ie extends W{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rt{constructor(M){this._cd=M}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let $t=(()=>{class D extends rt{constructor(S){super(S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(Ie,2))},D.\u0275dir=r.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,Z){2&S&&r.ekj("ng-untouched",Z.isUntouched)("ng-touched",Z.isTouched)("ng-pristine",Z.isPristine)("ng-dirty",Z.isDirty)("ng-valid",Z.isValid)("ng-invalid",Z.isInvalid)("ng-pending",Z.isPending)},features:[r.qOj]}),D})(),It=(()=>{class D extends rt{constructor(S){super(S)}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(se,10))},D.\u0275dir=r.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(S,Z){2&S&&r.ekj("ng-untouched",Z.isUntouched)("ng-touched",Z.isTouched)("ng-pristine",Z.isPristine)("ng-dirty",Z.isDirty)("ng-valid",Z.isValid)("ng-invalid",Z.isInvalid)("ng-pending",Z.isPending)("ng-submitted",Z.isSubmitted)},features:[r.qOj]}),D})();const Ze="VALID",K="INVALID",ce="PENDING",be="DISABLED";function Je(D){return(Xt(D)?D.validators:D)||null}function Pt(D,M){return(Xt(M)?M.asyncValidators:D)||null}function Xt(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}class p{constructor(M,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(M),this._assignAsyncValidators(S)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Ze}get invalid(){return this.status===K}get pending(){return this.status==ce}get disabled(){return this.status===be}get enabled(){return this.status!==be}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._assignValidators(M)}setAsyncValidators(M){this._assignAsyncValidators(M)}addValidators(M){this.setValidators(an(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(an(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(et(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(et(M,this._rawAsyncValidators))}hasValidator(M){return Fn(this._rawValidators,M)}hasAsyncValidator(M){return Fn(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=ce,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const S=this._parentMarkedDirty(M.onlySelf);this.status=be,this.errors=null,this._forEachChild(Z=>{Z.disable({...M,onlySelf:!0})}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...M,skipPristineCheck:S}),this._onDisabledChange.forEach(Z=>Z(!0))}enable(M={}){const S=this._parentMarkedDirty(M.onlySelf);this.status=Ze,this._forEachChild(Z=>{Z.enable({...M,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors({...M,skipPristineCheck:S}),this._onDisabledChange.forEach(Z=>Z(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}getRawValue(){return this.value}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ze||this.status===ce)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?be:Ze}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=ce,this._hasOwnPendingAsyncValidator=!0;const S=ve(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(Z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Z,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,S={}){this.errors=M,this._updateControlsErrors(!1!==S.emitEvent)}get(M){let S=M;return null==S||(Array.isArray(S)||(S=S.split(".")),0===S.length)?null:S.reduce((Z,ot)=>Z&&Z._find(ot),this)}getError(M,S){const Z=S?this.get(S):this;return Z&&Z.errors?Z.errors[M]:null}hasError(M,S){return!!this.getError(M,S)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?be:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ce)?ce:this._anyControlsHaveStatus(K)?K:Ze}_anyControlsHaveStatus(M){return this._anyControls(S=>S.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){Xt(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(M){return null}_assignValidators(M){this._rawValidators=Array.isArray(M)?M.slice():M,this._composedValidatorFn=function xe(D){return Array.isArray(D)?Bt(D):D||null}(this._rawValidators)}_assignAsyncValidators(M){this._rawAsyncValidators=Array.isArray(M)?M.slice():M,this._composedAsyncValidatorFn=function Wt(D){return Array.isArray(D)?Vt(D):D||null}(this._rawAsyncValidators)}}class _ extends p{constructor(M,S,Z){super(Je(S),Pt(Z,S)),this.controls=M,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,S){return this.controls[M]?this.controls[M]:(this.controls[M]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(M,S,Z={}){this.registerControl(M,S),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}removeControl(M,S={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(M,S,Z={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],S&&this.registerControl(M,S),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,S={}){(function k(D,M,S){D._forEachChild((Z,ot)=>{if(void 0===S[ot])throw new r.vHH(1002,"")})})(this,0,M),Object.keys(M).forEach(Z=>{(function de(D,M,S){const Z=D.controls;if(!(M?Object.keys(Z):Z).length)throw new r.vHH(1e3,"");if(!Z[S])throw new r.vHH(1001,"")})(this,!0,Z),this.controls[Z].setValue(M[Z],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(M,S={}){null!=M&&(Object.keys(M).forEach(Z=>{const ot=this.controls[Z];ot&&ot.patchValue(M[Z],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(M={},S={}){this._forEachChild((Z,ot)=>{Z.reset(M[ot],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(M,S,Z)=>(M[Z]=S.getRawValue(),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(S,Z)=>!!Z._syncPendingControls()||S);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(S=>{const Z=this.controls[S];Z&&M(Z,S)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const[S,Z]of Object.entries(this.controls))if(this.contains(S)&&M(Z))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,Z,ot)=>((Z.enabled||this.disabled)&&(S[ot]=Z.value),S))}_reduceChildren(M,S){let Z=M;return this._forEachChild((ot,on)=>{Z=S(Z,ot,on)}),Z}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(M){return this.controls.hasOwnProperty(M)?this.controls[M]:null}}const yt=new r.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Lt}),Lt="always";function Mn(D,M,S=Lt){pt(D,M),M.valueAccessor.writeValue(D.value),(D.disabled||"always"===S)&&M.valueAccessor.setDisabledState?.(D.disabled),function mn(D,M){M.valueAccessor.registerOnChange(S=>{D._pendingValue=S,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&zn(D,M)})}(D,M),function ni(D,M){const S=(Z,ot)=>{M.valueAccessor.writeValue(Z),ot&&M.viewToModelUpdate(Z)};D.registerOnChange(S),M._registerOnDestroy(()=>{D._unregisterOnChange(S)})}(D,M),function pn(D,M){M.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&zn(D,M),"submit"!==D.updateOn&&D.markAsTouched()})}(D,M),function Ae(D,M){if(M.valueAccessor.setDisabledState){const S=Z=>{M.valueAccessor.setDisabledState(Z)};D.registerOnDisabledChange(S),M._registerOnDestroy(()=>{D._unregisterOnDisabledChange(S)})}}(D,M)}function ft(D,M,S=!0){const Z=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(Z),M.valueAccessor.registerOnTouched(Z)),function Gt(D,M){let S=!1;if(null!==D){if(null!==M.validator){const ot=En(D);if(Array.isArray(ot)&&ot.length>0){const on=ot.filter(Yn=>Yn!==M.validator);on.length!==ot.length&&(S=!0,D.setValidators(on))}}if(null!==M.asyncValidator){const ot=In(D);if(Array.isArray(ot)&&ot.length>0){const on=ot.filter(Yn=>Yn!==M.asyncValidator);on.length!==ot.length&&(S=!0,D.setAsyncValidators(on))}}}const Z=()=>{};return St(M._rawValidators,Z),St(M._rawAsyncValidators,Z),S}(D,M),D&&(M._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function St(D,M){D.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(M)})}function pt(D,M){const S=En(D);null!==M.validator?D.setValidators(en(S,M.validator)):"function"==typeof S&&D.setValidators([S]);const Z=In(D);null!==M.asyncValidator?D.setAsyncValidators(en(Z,M.asyncValidator)):"function"==typeof Z&&D.setAsyncValidators([Z]);const ot=()=>D.updateValueAndValidity();St(M._rawValidators,ot),St(M._rawAsyncValidators,ot)}function zn(D,M){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function yi(D,M){if(!D.hasOwnProperty("model"))return!1;const S=D.model;return!!S.isFirstChange()||!Object.is(M,S.currentValue)}function Rn(D,M){if(!M)return null;let S,Z,ot;return Array.isArray(M),M.forEach(on=>{on.constructor===ye?S=on:function qn(D){return Object.getPrototypeOf(D.constructor)===Ee}(on)?Z=on:ot=on}),ot||Z||S||null}const Cn={provide:se,useExisting:(0,r.Gpc)(()=>rr)},Yi=(()=>Promise.resolve())();let rr=(()=>{class D extends se{constructor(S,Z,ot){super(),this.callSetDisabledState=ot,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.vpe,this.form=new _({},Bt(S),Vt(Z))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){Yi.then(()=>{const Z=this._findContainer(S.path);S.control=Z.registerControl(S.name,S.control),Mn(S.control,S,this.callSetDisabledState),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){Yi.then(()=>{const Z=this._findContainer(S.path);Z&&Z.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){Yi.then(()=>{const Z=this._findContainer(S.path),ot=new _({});(function Xn(D,M){pt(D,M)})(ot,S),Z.registerControl(S.name,ot),ot.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){Yi.then(()=>{const Z=this._findContainer(S.path);Z&&Z.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,Z){Yi.then(()=>{this.form.get(S.path).setValue(Z)})}setValue(S){this.control.setValue(S)}onSubmit(S){return this.submitted=!0,function ei(D,M){D._syncPendingControls(),M.forEach(S=>{const Z=S.control;"submit"===Z.updateOn&&Z._pendingChange&&(S.viewToModelUpdate(Z._pendingValue),Z._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(S),"dialog"===S?.target?.method}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(Ue,10),r.Y36(Te,10),r.Y36(yt,8))},D.\u0275dir=r.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,Z){1&S&&r.NdJ("submit",function(on){return Z.onSubmit(on)})("reset",function(){return Z.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([Cn]),r.qOj]}),D})();function Fr(D,M){const S=D.indexOf(M);S>-1&&D.splice(S,1)}function Ki(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}const vi=class extends p{constructor(M=null,S,Z){super(Je(S),Pt(Z,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xt(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=Ki(M)?M.value:M)}setValue(M,S={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(Z=>Z(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(M,S={}){this.setValue(M,S)}reset(M=this.defaultValue,S={}){this._applyFormState(M),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){Fr(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){Fr(this._onDisabledChange,M)}_forEachChild(M){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(M){Ki(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}},xi=vi,dr={provide:Ie,useExisting:(0,r.Gpc)(()=>pi)},hr=(()=>Promise.resolve())();let pi=(()=>{class D extends Ie{constructor(S,Z,ot,on,Yn,si){super(),this._changeDetectorRef=Yn,this.callSetDisabledState=si,this.control=new vi,this._registered=!1,this.update=new r.vpe,this._parent=S,this._setValidators(Z),this._setAsyncValidators(ot),this.valueAccessor=Rn(0,on)}ngOnChanges(S){if(this._checkForErrors(),!this._registered||"name"in S){if(this._registered&&(this._checkName(),this.formDirective)){const Z=S.name.previousValue;this.formDirective.removeControl({name:Z,path:this._getPath(Z)})}this._setUpControl()}"isDisabled"in S&&this._updateDisabled(S),yi(S,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Mn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(S){hr.then(()=>{this.control.setValue(S,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(S){const Z=S.isDisabled.currentValue,ot=0!==Z&&(0,r.D6c)(Z);hr.then(()=>{ot&&!this.control.disabled?this.control.disable():!ot&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(S){return this._parent?function fn(D,M){return[...M.path,D]}(S,this._parent):[S]}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(se,9),r.Y36(Ue,10),r.Y36(Te,10),r.Y36(Le,10),r.Y36(r.sBO,8),r.Y36(yt,8))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([dr]),r.qOj,r.TTD]}),D})(),mi=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275dir=r.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})();const Rr={provide:Le,useExisting:(0,r.Gpc)(()=>gi),multi:!0};let gi=(()=>{class D extends Ee{writeValue(S){this.setProperty("value",S??"")}registerOnChange(S){this.onChange=Z=>{S(""==Z?null:parseFloat(Z))}}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,Z){1&S&&r.NdJ("input",function(on){return Z.onChange(on.target.value)})("blur",function(){return Z.onTouched()})},features:[r._Bn([Rr]),r.qOj]}),D})(),Ui=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({}),D})();const kr=new r.OlP("NgModelWithFormControlWarning"),Yr={provide:Ie,useExisting:(0,r.Gpc)(()=>fr)};let fr=(()=>{class D extends Ie{set isDisabled(S){}constructor(S,Z,ot,on,Yn){super(),this._ngModelWarningConfig=on,this.callSetDisabledState=Yn,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(Z),this.valueAccessor=Rn(0,ot)}ngOnChanges(S){if(this._isControlChanged(S)){const Z=S.form.previousValue;Z&&ft(Z,this,!1),Mn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}yi(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ft(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(S){return new(S||D)(r.Y36(Ue,10),r.Y36(Te,10),r.Y36(Le,10),r.Y36(kr,8),r.Y36(yt,8))},D.\u0275dir=r.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([Yr]),r.qOj,r.TTD]}),D})();const Pe={provide:Le,useExisting:(0,r.Gpc)(()=>dt),multi:!0};function Fe(D,M){return null==D?`${M}`:(M&&"object"==typeof M&&(M="Object"),`${D}: ${M}`.slice(0,50))}let dt=(()=>{class D extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){this.value=S;const ot=Fe(this._getOptionId(S),S);this.setProperty("value",ot)}registerOnChange(S){this.onChange=Z=>{this.value=this._getOptionValue(Z),S(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(S){for(const Z of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Z),S))return Z;return null}_getOptionValue(S){const Z=function Ke(D){return D.split(":")[0]}(S);return this._optionMap.has(Z)?this._optionMap.get(Z):S}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(S,Z){1&S&&r.NdJ("change",function(on){return Z.onChange(on.target.value)})("blur",function(){return Z.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([Pe]),r.qOj]}),D})(),Ft=(()=>{class D{constructor(S,Z,ot){this._element=S,this._renderer=Z,this._select=ot,this._select&&(this.id=this._select._registerOption())}set ngValue(S){null!=this._select&&(this._select._optionMap.set(this.id,S),this._setElementValue(Fe(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._setElementValue(S),this._select&&this._select.writeValue(this._select.value)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(dt,9))},D.\u0275dir=r.lG2({type:D,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),D})();const tn={provide:Le,useExisting:(0,r.Gpc)(()=>Ci),multi:!0};function hn(D,M){return null==D?`${M}`:("string"==typeof M&&(M=`'${M}'`),M&&"object"==typeof M&&(M="Object"),`${D}: ${M}`.slice(0,50))}let Ci=(()=>{class D extends Ee{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){let Z;if(this.value=S,Array.isArray(S)){const ot=S.map(on=>this._getOptionId(on));Z=(on,Yn)=>{on._setSelected(ot.indexOf(Yn.toString())>-1)}}else Z=(ot,on)=>{ot._setSelected(!1)};this._optionMap.forEach(Z)}registerOnChange(S){this.onChange=Z=>{const ot=[],on=Z.selectedOptions;if(void 0!==on){const Yn=on;for(let si=0;si<Yn.length;si++){const _r=this._getOptionValue(Yn[si].value);ot.push(_r)}}else{const Yn=Z.options;for(let si=0;si<Yn.length;si++){const qi=Yn[si];if(qi.selected){const _r=this._getOptionValue(qi.value);ot.push(_r)}}}this.value=ot,S(ot)}}_registerOption(S){const Z=(this._idCounter++).toString();return this._optionMap.set(Z,S),Z}_getOptionId(S){for(const Z of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Z)._value,S))return Z;return null}_getOptionValue(S){const Z=function kn(D){return D.split(":")[0]}(S);return this._optionMap.has(Z)?this._optionMap.get(Z)._value:S}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(S,Z){1&S&&r.NdJ("change",function(on){return Z.onChange(on.target)})("blur",function(){return Z.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([tn]),r.qOj]}),D})(),ri=(()=>{class D{constructor(S,Z,ot){this._element=S,this._renderer=Z,this._select=ot,this._select&&(this.id=this._select._registerOption(this))}set ngValue(S){null!=this._select&&(this._value=S,this._setElementValue(hn(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._select?(this._value=S,this._setElementValue(hn(this.id,S)),this._select.writeValue(this._select.value)):this._setElementValue(S)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}_setSelected(S){this._renderer.setProperty(this._element.nativeElement,"selected",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return D.\u0275fac=function(S){return new(S||D)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Ci,9))},D.\u0275dir=r.lG2({type:D,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),D})(),ji=(()=>{class D{constructor(){this._validator=wt}ngOnChanges(S){if(this.inputName in S){const Z=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(Z),this._validator=this._enabled?this.createValidator(Z):wt,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275dir=r.lG2({type:D,features:[r.TTD]}),D})();const Si={provide:Ue,useExisting:(0,r.Gpc)(()=>ti),multi:!0};let ti=(()=>{class D extends ji{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.D6c,this.createValidator=S=>Mt}enabled(S){return S}}return D.\u0275fac=function(){let M;return function(Z){return(M||(M=r.n5z(D)))(Z||D)}}(),D.\u0275dir=r.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,Z){2&S&&r.uIk("required",Z._enabled?"":null)},inputs:{required:"required"},features:[r._Bn([Si]),r.qOj]}),D})(),fo=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({imports:[Ui]}),D})(),po=(()=>{class D{static withConfig(S){return{ngModule:D,providers:[{provide:yt,useValue:S.callSetDisabledState??Lt}]}}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({imports:[fo]}),D})(),Qo=(()=>{class D{static withConfig(S){return{ngModule:D,providers:[{provide:kr,useValue:S.warnOnNgModelWithFormControl??"always"},{provide:yt,useValue:S.callSetDisabledState??Lt}]}}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({imports:[fo]}),D})()},4120:(Dt,Se,g)=>{g.d(Se,{XC:()=>k,Bb:()=>Mn,ZL:()=>fn});var r=g(4650),c=g(3238),A=g(6895),B=g(7376),X=g(8184),le=g(7188),q=g(1281),ne=g(3353),ie=g(7340),j=g(727),ee=g(7579),ae=g(9770),je=g(6451),Ee=g(9646),Le=g(4968),Ne=g(9521),he=g(4080),Re=g(433);const De=new r.OlP("MatFormField");var rn=g(8675),Tn=g(3900),xn=g(5698),Oe=g(9300),J=g(4004),V=g(8505),U=g(1005),oe=g(445);const Ze=["panel"];function K(ft,St){if(1&ft&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&ft){const Ae=St.id,pt=r.oxw();r.Q6J("id",pt.id)("ngClass",pt._classList)("@panelAnimation",pt.isOpen?"visible":"hidden"),r.uIk("aria-label",pt.ariaLabel||null)("aria-labelledby",pt._getPanelAriaLabelledby(Ae))}}const ce=["*"],be=(0,ie.X$)("panelAnimation",[(0,ie.SB)("void, hidden",(0,ie.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,ie.eR)(":enter, hidden => visible",[(0,ie.ru)([(0,ie.jt)("0.03s linear",(0,ie.oB)({opacity:1})),(0,ie.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,ie.oB)({transform:"scaleY(1)"}))])]),(0,ie.eR)(":leave, visible => hidden",[(0,ie.jt)("0.075s linear",(0,ie.oB)({opacity:0}))])]);let Je=0;class xe{constructor(St,Ae){this.source=St,this.option=Ae}}const Pt=(0,c.Kr)(class{}),Wt=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Xt(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let de=(()=>{class ft extends Pt{get isOpen(){return this._isOpen&&this.showPanel}_setColor(Ae){this._color=Ae,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,q.Ig)(Ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ae){this._autoSelectActiveOption=(0,q.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,q.du)(Ae).reduce((pt,Gt)=>(pt[Gt]=!0,pt),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(Ae,pt,Gt,mn){super(),this._changeDetectorRef=Ae,this._elementRef=pt,this._activeOptionChanges=j.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new r.vpe,this.opened=new r.vpe,this.closed=new r.vpe,this.optionActivated=new r.vpe,this._classList={},this.id="mat-autocomplete-"+Je++,this.inertGroups=mn?.SAFARI||!1,this._autoActiveFirstOption=!!Gt.autoActiveFirstOption,this._autoSelectActiveOption=!!Gt.autoSelectActiveOption}ngAfterContentInit(){this._keyManager=new le.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const pt=new xe(this,Ae);this.optionSelected.emit(pt)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}_setThemeClasses(Ae){Ae["mat-primary"]="primary"===this._color,Ae["mat-warn"]="warn"===this._color,Ae["mat-accent"]="accent"===this._color}}return ft.\u0275fac=function(Ae){return new(Ae||ft)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(Wt),r.Y36(ne.t4))},ft.\u0275dir=r.lG2({type:ft,viewQuery:function(Ae,pt){if(1&Ae&&(r.Gf(r.Rgc,7),r.Gf(Ze,5)),2&Ae){let Gt;r.iGM(Gt=r.CRH())&&(pt.template=Gt.first),r.iGM(Gt=r.CRH())&&(pt.panel=Gt.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[r.qOj]}),ft})(),k=(()=>{class ft extends de{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden"}}return ft.\u0275fac=function(){let St;return function(pt){return(St||(St=r.n5z(ft)))(pt||ft)}}(),ft.\u0275cmp=r.Xpm({type:ft,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,pt,Gt){if(1&Ae&&(r.Suo(Gt,c.K7,5),r.Suo(Gt,c.ey,5)),2&Ae){let mn;r.iGM(mn=r.CRH())&&(pt.optionGroups=mn),r.iGM(mn=r.CRH())&&(pt.options=mn)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:c.HF,useExisting:ft}]),r.qOj],ngContentSelectors:ce,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(Ae,pt){1&Ae&&(r.F$t(),r.YNc(0,K,3,5,"ng-template"))},dependencies:[A.mk],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[be]},changeDetection:0}),ft})();const I={provide:Re.JU,useExisting:(0,r.Gpc)(()=>fn),multi:!0},re=new r.OlP("mat-autocomplete-scroll-strategy"),yt={provide:re,deps:[X.aV],useFactory:function Be(ft){return()=>ft.scrollStrategies.reposition()}};let Lt=(()=>{class ft{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,q.Ig)(Ae)}constructor(Ae,pt,Gt,mn,pn,zn,ni,Xn,di,ii,zt){this._element=Ae,this._overlay=pt,this._viewContainerRef=Gt,this._zone=mn,this._changeDetectorRef=pn,this._dir=ni,this._formField=Xn,this._document=di,this._viewportRuler=ii,this._defaults=zt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=j.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ee.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,ae.P)(()=>{const cn=this.autocomplete?this.autocomplete.options:null;return cn?cn.changes.pipe((0,rn.O)(cn),(0,Tn.w)(()=>(0,je.T)(...cn.map(Gn=>Gn.onSelectionChange)))):this._zone.onStable.pipe((0,xn.q)(1),(0,Tn.w)(()=>this.optionSelections))}),this._scrollStrategy=zn}ngAfterViewInit(){const Ae=this._getWindow();typeof Ae<"u"&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();typeof Ae<"u"&&Ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,je.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Oe.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Oe.h)(()=>this._overlayAttached)):(0,Ee.of)()).pipe((0,J.U)(Ae=>Ae instanceof c.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,je.T)((0,Le.R)(this._document,"click"),(0,Le.R)(this._document,"auxclick"),(0,Le.R)(this._document,"touchend")).pipe((0,Oe.h)(Ae=>{const pt=(0,ne.sA)(Ae),Gt=this._formField?this._formField._elementRef.nativeElement:null,mn=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&pt!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Gt||!Gt.contains(pt))&&(!mn||!mn.contains(pt))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(pt)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._assignOptionValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const pt=Ae.keyCode,Gt=(0,Ne.Vb)(Ae);if(pt===Ne.hY&&!Gt&&Ae.preventDefault(),this.activeOption&&pt===Ne.K5&&this.panelOpen&&!Gt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const mn=this.autocomplete._keyManager.activeItem,pn=pt===Ne.LH||pt===Ne.JH;pt===Ne.Mf||pn&&!Gt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ae):pn&&this._canOpen()&&this.openPanel(),(pn||this.autocomplete._keyManager.activeItem!==mn)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(Ae){let pt=Ae.target,Gt=pt.value;"number"===pt.type&&(Gt=""==Gt?null:parseFloat(Gt)),this._previousValue!==Gt&&(this._previousValue=Gt,this._pendingAutoselectedOption=null,this._onChange(Gt),this._canOpen()&&this._document.activeElement===Ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,xn.q)(1)),pt=this.autocomplete.options.changes.pipe((0,V.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,U.g)(0));return(0,je.T)(Ae,pt).pipe((0,Tn.w)(()=>(this._zone.run(()=>{const Gt=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Gt!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,xn.q)(1)).subscribe(Gt=>this._setValueAndClose(Gt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ae){const pt=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae;this._updateNativeInputValue(pt??"")}_updateNativeInputValue(Ae){this._formField?this._formField._control.value=Ae:this._element.nativeElement.value=Ae,this._previousValue=Ae}_setValueAndClose(Ae){const pt=Ae?Ae.source:this._pendingAutoselectedOption;pt&&(this._clearPreviousSelectedOption(pt),this._assignOptionValue(pt.value),this._onChange(pt.value),this.autocomplete._emitSelectEvent(pt),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(pt=>{pt!==Ae&&pt.selected&&pt.deselect()})}_attachOverlay(){let Ae=this._overlayRef;Ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ae.updateSize({width:this._getPanelWidth()})):(this._portal=new he.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ae,this._handleOverlayEvents(Ae),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ae&&Ae.updateSize({width:this._getPanelWidth()})})),Ae&&!Ae.hasAttached()&&(Ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const pt=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&pt!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new X.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const pt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Gt=this._aboveClass,mn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Gt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Gt}];let pn;pn="above"===this.position?mn:"below"===this.position?pt:[...pt,...mn],Ae.withPositions(pn)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const Ae=this.autocomplete;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ae){const pt=this.autocomplete,Gt=(0,c.CB)(Ae,pt.options,pt.optionGroups);if(0===Ae&&1===Gt)pt._setScrollTop(0);else if(pt.panel){const mn=pt.options.toArray()[Ae];if(mn){const pn=mn._getHostElement(),zn=(0,c.jH)(pn.offsetTop,pn.offsetHeight,pt._getScrollTop(),pt.panel.nativeElement.offsetHeight);pt._setScrollTop(zn)}}}_handleOverlayEvents(Ae){Ae.keydownEvents().subscribe(pt=>{(pt.keyCode===Ne.hY&&!(0,Ne.Vb)(pt)||pt.keyCode===Ne.LH&&(0,Ne.Vb)(pt,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),pt.stopPropagation(),pt.preventDefault())}),Ae.outsidePointerEvents().subscribe()}}return ft.\u0275fac=function(Ae){return new(Ae||ft)(r.Y36(r.SBq),r.Y36(X.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(re),r.Y36(oe.Is,8),r.Y36(De,9),r.Y36(A.K0,8),r.Y36(B.rL),r.Y36(Wt,8))},ft.\u0275dir=r.lG2({type:ft,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[r.TTD]}),ft})(),fn=(()=>{class ft extends Lt{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return ft.\u0275fac=function(){let St;return function(pt){return(St||(St=r.n5z(ft)))(pt||ft)}}(),ft.\u0275dir=r.lG2({type:ft,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,pt){1&Ae&&r.NdJ("focusin",function(){return pt._handleFocus()})("blur",function(){return pt._onTouched()})("input",function(mn){return pt._handleInput(mn)})("keydown",function(mn){return pt._handleKeydown(mn)})("click",function(){return pt._handleClick()}),2&Ae&&r.uIk("autocomplete",pt.autocompleteAttribute)("role",pt.autocompleteDisabled?null:"combobox")("aria-autocomplete",pt.autocompleteDisabled?null:"list")("aria-activedescendant",pt.panelOpen&&pt.activeOption?pt.activeOption.id:null)("aria-expanded",pt.autocompleteDisabled?null:pt.panelOpen.toString())("aria-owns",pt.autocompleteDisabled||!pt.panelOpen||null==pt.autocomplete?null:pt.autocomplete.id)("aria-haspopup",pt.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[r._Bn([I]),r.qOj]}),ft})(),Mn=(()=>{class ft{}return ft.\u0275fac=function(Ae){return new(Ae||ft)},ft.\u0275mod=r.oAB({type:ft}),ft.\u0275inj=r.cJS({providers:[yt],imports:[X.U8,c.Ng,c.BQ,A.ez,B.ZD,c.Ng,c.BQ]}),ft})()},3238:(Dt,Se,g)=>{g.d(Se,{K7:()=>Ye,HF:()=>Tt,BQ:()=>ue,ey:()=>An,Ng:()=>xn,rN:()=>ln,wG:()=>st,si:()=>At,CB:()=>rn,jH:()=>Tn,Kr:()=>ht,sb:()=>vt});var r=g(4650),c=g(7188),A=g(445),X=g(6895),le=g(3353),q=g(1281),ne=g(7579),ie=g(9521);const ae=["text"];function je(Oe,J){if(1&Oe&&r._UZ(0,"mat-pseudo-checkbox",5),2&Oe){const V=r.oxw();r.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function Ee(Oe,J){if(1&Oe&&(r.TgZ(0,"span",6),r._uU(1),r.qZA()),2&Oe){const V=r.oxw();r.xp6(1),r.hij("(",V.group.label,")")}}const Le=[[["mat-icon"]],"*"],Ne=["mat-icon","*"],ye=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function tt(){return!0}});let ue=(()=>{class Oe{constructor(V,U,oe){this._sanityChecks=U,this._document=oe,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,le.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.LFG(c.qm),r.LFG(ye,8),r.LFG(X.K0))},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[A.vT,A.vT]}),Oe})();function ht(Oe){return class extends Oe{get disableRipple(){return this._disableRipple}set disableRipple(J){this._disableRipple=(0,q.Ig)(J)}constructor(...J){super(...J),this._disableRipple=!1}}}function vt(Oe,J=0){return class extends Oe{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,q.su)(V):this.defaultTabIndex}constructor(...V){super(...V),this._tabIndex=J,this.defaultTabIndex=J}}}class en{constructor(J,V,U,oe=!1){this._renderer=J,this.element=V,this.config=U,this._animationForciblyDisabledThroughCss=oe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const En=(0,le.i$)({passive:!0,capture:!0});class In{constructor(){this._events=new Map,this._delegateEventHandler=J=>{const V=(0,le.sA)(J);V&&this._events.get(J.type)?.forEach((U,oe)=>{(oe===V||oe.contains(V))&&U.forEach(Ze=>Ze.handleEvent(J))})}}addHandler(J,V,U,oe){const Ze=this._events.get(V);if(Ze){const K=Ze.get(U);K?K.add(oe):Ze.set(U,new Set([oe]))}else this._events.set(V,new Map([[U,new Set([oe])]])),J.runOutsideAngular(()=>{document.addEventListener(V,this._delegateEventHandler,En)})}removeHandler(J,V,U){const oe=this._events.get(J);if(!oe)return;const Ze=oe.get(V);Ze&&(Ze.delete(U),0===Ze.size&&oe.delete(V),0===oe.size&&(this._events.delete(J),document.removeEventListener(J,this._delegateEventHandler,En)))}}const Pn={enterDuration:225,exitDuration:150},an=(0,le.i$)({passive:!0,capture:!0}),et=["mousedown","touchstart"],W=["mouseup","mouseleave","touchend","touchcancel"];class se{constructor(J,V,U,oe){this._target=J,this._ngZone=V,this._platform=oe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,oe.isBrowser&&(this._containerElement=(0,q.fI)(U))}fadeInRipple(J,V,U={}){const oe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Ze={...Pn,...U.animation};U.centered&&(J=oe.left+oe.width/2,V=oe.top+oe.height/2);const K=U.radius||function Ie(Oe,J,V){const U=Math.max(Math.abs(Oe-V.left),Math.abs(Oe-V.right)),oe=Math.max(Math.abs(J-V.top),Math.abs(J-V.bottom));return Math.sqrt(U*U+oe*oe)}(J,V,oe),ce=J-oe.left,be=V-oe.top,Je=Ze.enterDuration,xe=document.createElement("div");xe.classList.add("mat-ripple-element"),xe.style.left=ce-K+"px",xe.style.top=be-K+"px",xe.style.height=2*K+"px",xe.style.width=2*K+"px",null!=U.color&&(xe.style.backgroundColor=U.color),xe.style.transitionDuration=`${Je}ms`,this._containerElement.appendChild(xe);const Pt=window.getComputedStyle(xe),Xt=Pt.transitionDuration,de="none"===Pt.transitionProperty||"0s"===Xt||"0s, 0s"===Xt||0===oe.width&&0===oe.height,k=new en(this,xe,U,de);xe.style.transform="scale3d(1, 1, 1)",k.state=0,U.persistent||(this._mostRecentTransientRipple=k);let p=null;return!de&&(Je||Ze.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(k),I=()=>this._destroyRipple(k);xe.addEventListener("transitionend",_),xe.addEventListener("transitioncancel",I),p={onTransitionEnd:_,onTransitionCancel:I}}),this._activeRipples.set(k,p),(de||!Je)&&this._finishRippleTransition(k),k}fadeOutRipple(J){if(2===J.state||3===J.state)return;const V=J.element,U={...Pn,...J.config.animation};V.style.transitionDuration=`${U.exitDuration}ms`,V.style.opacity="0",J.state=2,(J._animationForciblyDisabledThroughCss||!U.exitDuration)&&this._finishRippleTransition(J)}fadeOutAll(){this._getActiveRipples().forEach(J=>J.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(J=>{J.config.persistent||J.fadeOut()})}setupTriggerEvents(J){const V=(0,q.fI)(J);!this._platform.isBrowser||!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,et.forEach(U=>{se._eventManager.addHandler(this._ngZone,U,V,this)}))}handleEvent(J){"mousedown"===J.type?this._onMousedown(J):"touchstart"===J.type?this._onTouchStart(J):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{W.forEach(V=>{this._triggerElement.addEventListener(V,this,an)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(J){0===J.state?this._startFadeOutTransition(J):2===J.state&&this._destroyRipple(J)}_startFadeOutTransition(J){const V=J===this._mostRecentTransientRipple,{persistent:U}=J.config;J.state=1,!U&&(!V||!this._isPointerDown)&&J.fadeOut()}_destroyRipple(J){const V=this._activeRipples.get(J)??null;this._activeRipples.delete(J),this._activeRipples.size||(this._containerRect=null),J===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),J.state=3,null!==V&&(J.element.removeEventListener("transitionend",V.onTransitionEnd),J.element.removeEventListener("transitioncancel",V.onTransitionCancel)),J.element.remove()}_onMousedown(J){const V=(0,c.X6)(J),U=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!V&&!U&&(this._isPointerDown=!0,this.fadeInRipple(J.clientX,J.clientY,this._target.rippleConfig))}_onTouchStart(J){if(!this._target.rippleDisabled&&!(0,c.yG)(J)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const V=J.changedTouches;for(let U=0;U<V.length;U++)this.fadeInRipple(V[U].clientX,V[U].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(J=>{!J.config.persistent&&(1===J.state||J.config.terminateOnPointerUp&&0===J.state)&&J.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const J=this._triggerElement;J&&(et.forEach(V=>se._eventManager.removeHandler(V,J,this)),this._pointerUpEventsRegistered&&W.forEach(V=>J.removeEventListener(V,this,an)))}}se._eventManager=new In;const rt=new r.OlP("mat-ripple-global-options");let st=(()=>{class Oe{get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}constructor(V,U,oe,Ze,K){this._elementRef=V,this._animationMode=K,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ze||{},this._rippleRenderer=new se(this,U,V,oe)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,U=0,oe){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,U,{...this.rippleConfig,...oe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...V})}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(le.t4),r.Y36(rt,8),r.Y36(r.QbO,8))},Oe.\u0275dir=r.lG2({type:Oe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,U){2&V&&r.ekj("mat-ripple-unbounded",U.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Oe})(),At=(()=>{class Oe{}return Oe.\u0275fac=function(V){return new(V||Oe)},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[ue,ue]}),Oe})(),$t=(()=>{class Oe{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.Y36(r.QbO,8))},Oe.\u0275cmp=r.Xpm({type:Oe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,U){2&V&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===U.state)("mat-pseudo-checkbox-checked","checked"===U.state)("mat-pseudo-checkbox-disabled",U.disabled)("_mat-animation-noopable","NoopAnimations"===U._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,U){},styles:['.mat-pseudo-checkbox{border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}.mat-pseudo-checkbox-checked::after{top:2.7px;width:10px;height:4px}'],encapsulation:2,changeDetection:0}),Oe})(),It=(()=>{class Oe{}return Oe.\u0275fac=function(V){return new(V||Oe)},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[ue]}),Oe})();const Tt=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),Ye=new r.OlP("MatOptgroup");let kt=0;class ln{constructor(J,V=!1){this.source=J,this.isUserInput=V}}let Ut=(()=>{class Oe{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,q.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}constructor(V,U,oe,Ze){this._element=V,this._changeDetectorRef=U,this._parent=oe,this.group=Ze,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+kt++,this.onSelectionChange=new r.vpe,this._stateChanges=new ne.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,U){const oe=this._getHostElement();"function"==typeof oe.focus&&oe.focus(U)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===ie.K5||V.keyCode===ie.L_)&&!(0,ie.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=V)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new ln(this,V))}}return Oe.\u0275fac=function(V){r.$Z()},Oe.\u0275dir=r.lG2({type:Oe,viewQuery:function(V,U){if(1&V&&r.Gf(ae,7),2&V){let oe;r.iGM(oe=r.CRH())&&(U._text=oe.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Oe})(),An=(()=>{class Oe extends Ut{constructor(V,U,oe,Ze){super(V,U,oe,Ze)}}return Oe.\u0275fac=function(V){return new(V||Oe)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(Tt,8),r.Y36(Ye,8))},Oe.\u0275cmp=r.Xpm({type:Oe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(V,U){1&V&&r.NdJ("click",function(){return U._selectViaInteraction()})("keydown",function(Ze){return U._handleKeydown(Ze)}),2&V&&(r.Ikx("id",U.id),r.uIk("tabindex",U._getTabIndex())("aria-selected",U._getAriaSelected())("aria-disabled",U.disabled.toString()),r.ekj("mdc-list-item--selected",U.selected)("mat-mdc-option-multiple",U.multiple)("mat-mdc-option-active",U.active)("mdc-list-item--disabled",U.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:Ne,decls:7,vars:4,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(V,U){1&V&&(r.F$t(Le),r.YNc(0,je,1,2,"mat-pseudo-checkbox",0),r.Hsn(1),r.TgZ(2,"span",1,2),r.Hsn(4,1),r.qZA(),r.YNc(5,Ee,2,1,"span",3),r._UZ(6,"div",4)),2&V&&(r.Q6J("ngIf",U.multiple),r.xp6(5),r.Q6J("ngIf",U.group&&U.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",U._getHostElement())("matRippleDisabled",U.disabled||U.disableRipple))},dependencies:[st,X.O5,$t],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox{margin-right:0;margin-left:16px}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),Oe})();function rn(Oe,J,V){if(V.length){let U=J.toArray(),oe=V.toArray(),Ze=0;for(let K=0;K<Oe+1;K++)U[K].group&&U[K].group===oe[Ze]&&Ze++;return Ze}return 0}function Tn(Oe,J,V,U){return Oe<V?Oe:Oe+J>V+U?Math.max(0,Oe-U+J):V}let xn=(()=>{class Oe{}return Oe.\u0275fac=function(V){return new(V||Oe)},Oe.\u0275mod=r.oAB({type:Oe}),Oe.\u0275inj=r.cJS({imports:[At,X.ez,ue,It]}),Oe})()},5412:(Dt,Se,g)=>{g.d(Se,{WI:()=>Jt,uw:()=>et,H8:()=>st,xY:()=>rt,Is:()=>$t,so:()=>ut,uh:()=>Ie});var r=g(8184),c=g(6895),A=g(4650),B=g(7188),X=g(3353),le=g(4080),q=g(9521),ne=g(7579),ie=g(9770),j=g(9646),ee=g(445),ae=g(8675);function je(De,lt){}class Ee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let Ne=(()=>{class De extends le.en{constructor(fe,Ye,Ct,kt,ln,Ut,An,rn){super(),this._elementRef=fe,this._focusTrapFactory=Ye,this._config=kt,this._interactivityChecker=ln,this._ngZone=Ut,this._overlayRef=An,this._focusMonitor=rn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Tn=>{this._portalOutlet.hasAttached();const xn=this._portalOutlet.attachDomPortal(Tn);return this._contentAttached(),xn},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Ct}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(fe){this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachComponentPortal(fe);return this._contentAttached(),Ye}attachTemplatePortal(fe){this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachTemplatePortal(fe);return this._contentAttached(),Ye}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(fe,Ye){this._interactivityChecker.isFocusable(fe)||(fe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ct=()=>{fe.removeEventListener("blur",Ct),fe.removeEventListener("mousedown",Ct),fe.removeAttribute("tabindex")};fe.addEventListener("blur",Ct),fe.addEventListener("mousedown",Ct)})),fe.focus(Ye)}_focusByCssSelector(fe,Ye){let Ct=this._elementRef.nativeElement.querySelector(fe);Ct&&this._forceFocus(Ct,Ye)}_trapFocus(){const fe=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||fe.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ye=>{Ye||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const fe=this._config.restoreFocus;let Ye=null;if("string"==typeof fe?Ye=this._document.querySelector(fe):"boolean"==typeof fe?Ye=fe?this._elementFocusedBeforeDialogWasOpened:null:fe&&(Ye=fe),this._config.restoreFocus&&Ye&&"function"==typeof Ye.focus){const Ct=(0,X.ht)(),kt=this._elementRef.nativeElement;(!Ct||Ct===this._document.body||Ct===kt||kt.contains(Ct))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ye,this._closeInteractionType),this._closeInteractionType=null):Ye.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const fe=this._elementRef.nativeElement,Ye=(0,X.ht)();return fe===Ye||fe.contains(Ye)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,X.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return De.\u0275fac=function(fe){return new(fe||De)(A.Y36(A.SBq),A.Y36(B.qV),A.Y36(c.K0,8),A.Y36(Ee),A.Y36(B.ic),A.Y36(A.R0b),A.Y36(r.Iu),A.Y36(B.tE))},De.\u0275cmp=A.Xpm({type:De,selectors:[["cdk-dialog-container"]],viewQuery:function(fe,Ye){if(1&fe&&A.Gf(le.Pl,7),2&fe){let Ct;A.iGM(Ct=A.CRH())&&(Ye._portalOutlet=Ct.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(fe,Ye){2&fe&&A.uIk("id",Ye._config.id||null)("role",Ye._config.role)("aria-modal",Ye._config.ariaModal)("aria-labelledby",Ye._config.ariaLabel?null:Ye._ariaLabelledBy)("aria-label",Ye._config.ariaLabel)("aria-describedby",Ye._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(fe,Ye){1&fe&&A.YNc(0,je,0,0,"ng-template",0)},dependencies:[le.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),De})();class he{constructor(lt,fe){this.overlayRef=lt,this.config=fe,this.closed=new ne.x,this.disableClose=fe.disableClose,this.backdropClick=lt.backdropClick(),this.keydownEvents=lt.keydownEvents(),this.outsidePointerEvents=lt.outsidePointerEvents(),this.id=fe.id,this.keydownEvents.subscribe(Ye=>{Ye.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(Ye)&&(Ye.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(lt,fe){if(this.containerInstance){const Ye=this.closed;this.containerInstance._closeInteractionType=fe?.focusOrigin||"program",this.overlayRef.dispose(),Ye.next(lt),Ye.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(lt="",fe=""){return this.overlayRef.updateSize({width:lt,height:fe}),this}addPanelClass(lt){return this.overlayRef.addPanelClass(lt),this}removePanelClass(lt){return this.overlayRef.removePanelClass(lt),this}}const Re=new A.OlP("DialogScrollStrategy"),ke=new A.OlP("DialogData"),tt=new A.OlP("DefaultDialogConfig"),ue={provide:Re,deps:[r.aV],useFactory:function ye(De){return()=>De.scrollStrategies.block()}};let we=0,Ce=(()=>{class De{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(fe,Ye,Ct,kt,ln,Ut){this._overlay=fe,this._injector=Ye,this._defaultOptions=Ct,this._parentDialog=kt,this._overlayContainer=ln,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ne.x,this._afterOpenedAtThisLevel=new ne.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ie.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ae.O)(void 0))),this._scrollStrategy=Ut}open(fe,Ye){(Ye={...this._defaultOptions||new Ee,...Ye}).id=Ye.id||"cdk-dialog-"+we++,Ye.id&&this.getDialogById(Ye.id);const kt=this._getOverlayConfig(Ye),ln=this._overlay.create(kt),Ut=new he(ln,Ye),An=this._attachContainer(ln,Ut,Ye);return Ut.containerInstance=An,this._attachDialogContent(fe,Ut,An,Ye),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ut),Ut.closed.subscribe(()=>this._removeOpenDialog(Ut,!0)),this.afterOpened.next(Ut),Ut}closeAll(){Ue(this.openDialogs,fe=>fe.close())}getDialogById(fe){return this.openDialogs.find(Ye=>Ye.id===fe)}ngOnDestroy(){Ue(this._openDialogsAtThisLevel,fe=>{!1===fe.config.closeOnDestroy&&this._removeOpenDialog(fe,!1)}),Ue(this._openDialogsAtThisLevel,fe=>fe.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(fe){const Ye=new r.X_({positionStrategy:fe.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:fe.scrollStrategy||this._scrollStrategy(),panelClass:fe.panelClass,hasBackdrop:fe.hasBackdrop,direction:fe.direction,minWidth:fe.minWidth,minHeight:fe.minHeight,maxWidth:fe.maxWidth,maxHeight:fe.maxHeight,width:fe.width,height:fe.height,disposeOnNavigation:fe.closeOnNavigation});return fe.backdropClass&&(Ye.backdropClass=fe.backdropClass),Ye}_attachContainer(fe,Ye,Ct){const kt=Ct.injector||Ct.viewContainerRef?.injector,ln=[{provide:Ee,useValue:Ct},{provide:he,useValue:Ye},{provide:r.Iu,useValue:fe}];let Ut;Ct.container?"function"==typeof Ct.container?Ut=Ct.container:(Ut=Ct.container.type,ln.push(...Ct.container.providers(Ct))):Ut=Ne;const An=new le.C5(Ut,Ct.viewContainerRef,A.zs3.create({parent:kt||this._injector,providers:ln}),Ct.componentFactoryResolver);return fe.attach(An).instance}_attachDialogContent(fe,Ye,Ct,kt){if(fe instanceof A.Rgc){const ln=this._createInjector(kt,Ye,Ct,void 0);let Ut={$implicit:kt.data,dialogRef:Ye};kt.templateContext&&(Ut={...Ut,..."function"==typeof kt.templateContext?kt.templateContext():kt.templateContext}),Ct.attachTemplatePortal(new le.UE(fe,null,Ut,ln))}else{const ln=this._createInjector(kt,Ye,Ct,this._injector),Ut=Ct.attachComponentPortal(new le.C5(fe,kt.viewContainerRef,ln,kt.componentFactoryResolver));Ye.componentInstance=Ut.instance}}_createInjector(fe,Ye,Ct,kt){const ln=fe.injector||fe.viewContainerRef?.injector,Ut=[{provide:ke,useValue:fe.data},{provide:he,useValue:Ye}];return fe.providers&&("function"==typeof fe.providers?Ut.push(...fe.providers(Ye,fe,Ct)):Ut.push(...fe.providers)),fe.direction&&(!ln||!ln.get(ee.Is,null,{optional:!0}))&&Ut.push({provide:ee.Is,useValue:{value:fe.direction,change:(0,j.of)()}}),A.zs3.create({parent:ln||kt,providers:Ut})}_removeOpenDialog(fe,Ye){const Ct=this.openDialogs.indexOf(fe);Ct>-1&&(this.openDialogs.splice(Ct,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((kt,ln)=>{kt?ln.setAttribute("aria-hidden",kt):ln.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Ye&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const fe=this._overlayContainer.getContainerElement();if(fe.parentElement){const Ye=fe.parentElement.children;for(let Ct=Ye.length-1;Ct>-1;Ct--){const kt=Ye[Ct];kt!==fe&&"SCRIPT"!==kt.nodeName&&"STYLE"!==kt.nodeName&&!kt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(kt,kt.getAttribute("aria-hidden")),kt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const fe=this._parentDialog;return fe?fe._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return De.\u0275fac=function(fe){return new(fe||De)(A.LFG(r.aV),A.LFG(A.zs3),A.LFG(tt,8),A.LFG(De,12),A.LFG(r.Xj),A.LFG(Re))},De.\u0275prov=A.Yz7({token:De,factory:De.\u0275fac}),De})();function Ue(De,lt){let fe=De.length;for(;fe--;)lt(De[fe])}let Te=(()=>{class De{}return De.\u0275fac=function(fe){return new(fe||De)},De.\u0275mod=A.oAB({type:De}),De.\u0275inj=A.cJS({providers:[Ce,ue],imports:[r.U8,le.eL,B.rt,le.eL]}),De})();var ze=g(1281),ht=g(6451),vt=g(9300),Nt=g(5698),Mt=g(3238);function it(De,lt){}g(7340);class ct{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const gt="mdc-dialog--open",bt="mdc-dialog--opening",wt="mdc-dialog--closing";let qe=(()=>{class De extends Ne{constructor(fe,Ye,Ct,kt,ln,Ut,An,rn){super(fe,Ye,Ct,kt,ln,Ut,An,rn),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(fe){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:fe})}}return De.\u0275fac=function(fe){return new(fe||De)(A.Y36(A.SBq),A.Y36(B.qV),A.Y36(c.K0,8),A.Y36(ct),A.Y36(B.ic),A.Y36(A.R0b),A.Y36(r.Iu),A.Y36(B.tE))},De.\u0275cmp=A.Xpm({type:De,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(fe,Ye){},encapsulation:2}),De})();const L="--mat-dialog-transition-duration";function te(De){return null==De?null:"number"==typeof De?De:De.endsWith("ms")?(0,ze.su)(De.substring(0,De.length-2)):De.endsWith("s")?1e3*(0,ze.su)(De.substring(0,De.length-1)):"0"===De?0:null}let Ve=(()=>{class De extends qe{constructor(fe,Ye,Ct,kt,ln,Ut,An,rn,Tn){super(fe,Ye,Ct,kt,ln,Ut,An,Tn),this._animationMode=rn,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?te(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?te(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(L,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(bt),this._hostElement.classList.add(gt),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(gt),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(gt),this._animationsEnabled?(this._hostElement.style.setProperty(L,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(wt),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(bt),this._hostElement.classList.remove(wt)}_waitForAnimationToComplete(fe,Ye){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Ye,fe)}}return De.\u0275fac=function(fe){return new(fe||De)(A.Y36(A.SBq),A.Y36(B.qV),A.Y36(c.K0,8),A.Y36(ct),A.Y36(B.ic),A.Y36(A.R0b),A.Y36(r.Iu),A.Y36(A.QbO,8),A.Y36(B.tE))},De.\u0275cmp=A.Xpm({type:De,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(fe,Ye){2&fe&&(A.Ikx("id",Ye._config.id),A.uIk("aria-modal",Ye._config.ariaModal)("role",Ye._config.role)("aria-labelledby",Ye._config.ariaLabel?null:Ye._ariaLabelledBy)("aria-label",Ye._config.ariaLabel)("aria-describedby",Ye._config.ariaDescribedBy||null),A.ekj("_mat-animation-noopable",!Ye._animationsEnabled))},features:[A.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(fe,Ye){1&fe&&(A.TgZ(0,"div",0)(1,"div",1),A.YNc(2,it,0,0,"ng-template",2),A.qZA()())},dependencies:[le.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2}),De})();class ut{constructor(lt,fe,Ye){this._ref=lt,this._containerInstance=Ye,this._afterOpened=new ne.x,this._beforeClosed=new ne.x,this._state=0,this.disableClose=fe.disableClose,this.id=lt.id,Ye._animationStateChanged.pipe((0,vt.h)(Ct=>"opened"===Ct.state),(0,Nt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ye._animationStateChanged.pipe((0,vt.h)(Ct=>"closed"===Ct.state),(0,Nt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),lt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,ht.T)(this.backdropClick(),this.keydownEvents().pipe((0,vt.h)(Ct=>Ct.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(Ct)))).subscribe(Ct=>{this.disableClose||(Ct.preventDefault(),function Bt(De,lt,fe){De._closeInteractionType=lt,De.close(fe)}(this,"keydown"===Ct.type?"keyboard":"mouse"))})}close(lt){this._result=lt,this._containerInstance._animationStateChanged.pipe((0,vt.h)(fe=>"closing"===fe.state),(0,Nt.q)(1)).subscribe(fe=>{this._beforeClosed.next(lt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),fe.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(lt){let fe=this._ref.config.positionStrategy;return lt&&(lt.left||lt.right)?lt.left?fe.left(lt.left):fe.right(lt.right):fe.centerHorizontally(),lt&&(lt.top||lt.bottom)?lt.top?fe.top(lt.top):fe.bottom(lt.bottom):fe.centerVertically(),this._ref.updatePosition(),this}updateSize(lt="",fe=""){return this._ref.updateSize(lt,fe),this}addPanelClass(lt){return this._ref.addPanelClass(lt),this}removePanelClass(lt){return this._ref.removePanelClass(lt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Jt=new A.OlP("MatMdcDialogData"),Vt=new A.OlP("mat-mdc-dialog-default-options"),en=new A.OlP("mat-mdc-dialog-scroll-strategy"),In={provide:en,deps:[r.aV],useFactory:function En(De){return()=>De.scrollStrategies.block()}};let Fn=0,an=(()=>{class De{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const fe=this._parentDialog;return fe?fe._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(fe,Ye,Ct,kt,ln,Ut,An,rn,Tn,xn){this._overlay=fe,this._defaultOptions=Ct,this._parentDialog=kt,this._dialogRefConstructor=An,this._dialogContainerType=rn,this._dialogDataToken=Tn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ne.x,this._afterOpenedAtThisLevel=new ne.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=ct,this.afterAllClosed=(0,ie.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ae.O)(void 0))),this._scrollStrategy=Ut,this._dialog=Ye.get(Ce)}open(fe,Ye){let Ct;(Ye={...this._defaultOptions||new ct,...Ye}).id=Ye.id||`${this._idPrefix}${Fn++}`,Ye.scrollStrategy=Ye.scrollStrategy||this._scrollStrategy();const kt=this._dialog.open(fe,{...Ye,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Ye},{provide:Ee,useValue:Ye}]},templateContext:()=>({dialogRef:Ct}),providers:(ln,Ut,An)=>(Ct=new this._dialogRefConstructor(ln,Ye,An),Ct.updatePosition(Ye?.position),[{provide:this._dialogContainerType,useValue:An},{provide:this._dialogDataToken,useValue:Ut.data},{provide:this._dialogRefConstructor,useValue:Ct}])});return Ct.componentInstance=kt.componentInstance,this.openDialogs.push(Ct),this.afterOpened.next(Ct),Ct.afterClosed().subscribe(()=>{const ln=this.openDialogs.indexOf(Ct);ln>-1&&(this.openDialogs.splice(ln,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ct}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(fe){return this.openDialogs.find(Ye=>Ye.id===fe)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(fe){let Ye=fe.length;for(;Ye--;)fe[Ye].close()}}return De.\u0275fac=function(fe){A.$Z()},De.\u0275prov=A.Yz7({token:De,factory:De.\u0275fac}),De})(),et=(()=>{class De extends an{constructor(fe,Ye,Ct,kt,ln,Ut,An,rn){super(fe,Ye,kt,Ut,An,ln,ut,Ve,Jt,rn),this._idPrefix="mat-mdc-dialog-"}}return De.\u0275fac=function(fe){return new(fe||De)(A.LFG(r.aV),A.LFG(A.zs3),A.LFG(c.Ye,8),A.LFG(Vt,8),A.LFG(en),A.LFG(De,12),A.LFG(r.Xj),A.LFG(A.QbO,8))},De.\u0275prov=A.Yz7({token:De,factory:De.\u0275fac}),De})(),W=0,Ie=(()=>{class De{constructor(fe,Ye,Ct){this._dialogRef=fe,this._elementRef=Ye,this._dialog=Ct,this.id="mat-mdc-dialog-title-"+W++}ngOnInit(){this._dialogRef||(this._dialogRef=function At(De,lt){let fe=De.nativeElement.parentElement;for(;fe&&!fe.classList.contains("mat-mdc-dialog-container");)fe=fe.parentElement;return fe?lt.find(Ye=>Ye.id===fe.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const fe=this._dialogRef._containerInstance;fe&&!fe._ariaLabelledBy&&(fe._ariaLabelledBy=this.id)})}}return De.\u0275fac=function(fe){return new(fe||De)(A.Y36(ut,8),A.Y36(A.SBq),A.Y36(et))},De.\u0275dir=A.lG2({type:De,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(fe,Ye){2&fe&&A.Ikx("id",Ye.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),De})(),rt=(()=>{class De{}return De.\u0275fac=function(fe){return new(fe||De)},De.\u0275dir=A.lG2({type:De,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),De})(),st=(()=>{class De{constructor(){this.align="start"}}return De.\u0275fac=function(fe){return new(fe||De)},De.\u0275dir=A.lG2({type:De,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(fe,Ye){2&fe&&A.ekj("mat-mdc-dialog-actions-align-center","center"===Ye.align)("mat-mdc-dialog-actions-align-end","end"===Ye.align)},inputs:{align:"align"}}),De})(),$t=(()=>{class De{}return De.\u0275fac=function(fe){return new(fe||De)},De.\u0275mod=A.oAB({type:De}),De.\u0275inj=A.cJS({providers:[et,In],imports:[Te,r.U8,le.eL,Mt.BQ,Mt.BQ]}),De})()},1481:(Dt,Se,g)=>{g.d(Se,{Dx:()=>At,H7:()=>Pt,b2:()=>W,q6:()=>Pn,se:()=>Nt});var r=g(6895),c=g(4650);class A extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class B extends A{static makeCurrent(){(0,r.HT)(new B)}onAndCancel(p,_,I){return p.addEventListener(_,I,!1),()=>{p.removeEventListener(_,I,!1)}}dispatchEvent(p,_){p.dispatchEvent(_)}remove(p){p.parentNode&&p.parentNode.removeChild(p)}createElement(p,_){return(_=_||this.getDefaultDocument()).createElement(p)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(p){return p.nodeType===Node.ELEMENT_NODE}isShadowRoot(p){return p instanceof DocumentFragment}getGlobalEventTarget(p,_){return"window"===_?window:"document"===_?p:"body"===_?p.body:null}getBaseHref(p){const _=function le(){return X=X||document.querySelector("base"),X?X.getAttribute("href"):null}();return null==_?null:function ne(k){q=q||document.createElement("a"),q.setAttribute("href",k);const p=q.pathname;return"/"===p.charAt(0)?p:`/${p}`}(_)}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}getCookie(p){return(0,r.Mx)(document.cookie,p)}}let q,X=null;const ie=new c.OlP("TRANSITION_ID"),ee=[{provide:c.ip1,useFactory:function j(k,p,_){return()=>{_.get(c.CZH).donePromise.then(()=>{const I=(0,r.q)(),P=p.querySelectorAll(`style[ng-transition="${k}"]`);for(let re=0;re<P.length;re++)I.remove(P[re])})}},deps:[ie,r.K0,c.zs3],multi:!0}];let je=(()=>{class k{build(){return new XMLHttpRequest}}return k.\u0275fac=function(_){return new(_||k)},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();const Ee=new c.OlP("EventManagerPlugins");let Le=(()=>{class k{constructor(_,I){this._zone=I,this._eventNameToPlugin=new Map,_.forEach(P=>P.manager=this),this._plugins=_.slice().reverse()}addEventListener(_,I,P){return this._findPluginFor(I).addEventListener(_,I,P)}addGlobalEventListener(_,I,P){return this._findPluginFor(I).addGlobalEventListener(_,I,P)}getZone(){return this._zone}_findPluginFor(_){const I=this._eventNameToPlugin.get(_);if(I)return I;const P=this._plugins;for(let re=0;re<P.length;re++){const Be=P[re];if(Be.supports(_))return this._eventNameToPlugin.set(_,Be),Be}throw new Error(`No event manager plugin found for event ${_}`)}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(Ee),c.LFG(c.R0b))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();class Ne{constructor(p){this._doc=p}addGlobalEventListener(p,_,I){const P=(0,r.q)().getGlobalEventTarget(this._doc,p);if(!P)throw new Error(`Unsupported event target ${P} for event ${_}`);return this.addEventListener(P,_,I)}}let he=(()=>{class k{constructor(){this._stylesSet=new Set}addStyles(_){const I=new Set;_.forEach(P=>{this._stylesSet.has(P)||(this._stylesSet.add(P),I.add(P))}),this.onStylesAdded(I)}onStylesAdded(_){}getAllStyles(){return Array.from(this._stylesSet)}}return k.\u0275fac=function(_){return new(_||k)},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})(),Re=(()=>{class k extends he{constructor(_){super(),this._doc=_,this._hostNodes=new Map,this._hostNodes.set(_.head,[])}_addStylesToHost(_,I,P){_.forEach(re=>{const Be=this._doc.createElement("style");Be.textContent=re,P.push(I.appendChild(Be))})}addHost(_){const I=[];this._addStylesToHost(this._stylesSet,_,I),this._hostNodes.set(_,I)}removeHost(_){const I=this._hostNodes.get(_);I&&I.forEach(ke),this._hostNodes.delete(_)}onStylesAdded(_){this._hostNodes.forEach((I,P)=>{this._addStylesToHost(_,P,I)})}ngOnDestroy(){this._hostNodes.forEach(_=>_.forEach(ke))}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();function ke(k){(0,r.q)().remove(k)}const tt={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/"},ye=/%COMP%/g;function ht(k,p){return p.flat(100).map(_=>_.replace(ye,k))}function vt(k){return p=>{if("__ngUnwrap__"===p)return k;!1===k(p)&&(p.preventDefault(),p.returnValue=!1)}}let Nt=(()=>{class k{constructor(_,I,P){this.eventManager=_,this.sharedStylesHost=I,this.appId=P,this.rendererByCompId=new Map,this.defaultRenderer=new Mt(_)}createRenderer(_,I){if(!_||!I)return this.defaultRenderer;switch(I.encapsulation){case c.ifc.Emulated:{let P=this.rendererByCompId.get(I.id);return P||(P=new gt(this.eventManager,this.sharedStylesHost,I,this.appId),this.rendererByCompId.set(I.id,P)),P.applyToHost(_),P}case c.ifc.ShadowDom:return new bt(this.eventManager,this.sharedStylesHost,_,I);default:if(!this.rendererByCompId.has(I.id)){const P=ht(I.id,I.styles);this.sharedStylesHost.addStyles(P),this.rendererByCompId.set(I.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(Le),c.LFG(Re),c.LFG(c.AFp))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();class Mt{constructor(p){this.eventManager=p,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(p,_){return _?document.createElementNS(tt[_]||_,p):document.createElement(p)}createComment(p){return document.createComment(p)}createText(p){return document.createTextNode(p)}appendChild(p,_){(ct(p)?p.content:p).appendChild(_)}insertBefore(p,_,I){p&&(ct(p)?p.content:p).insertBefore(_,I)}removeChild(p,_){p&&p.removeChild(_)}selectRootElement(p,_){let I="string"==typeof p?document.querySelector(p):p;if(!I)throw new Error(`The selector "${p}" did not match any elements`);return _||(I.textContent=""),I}parentNode(p){return p.parentNode}nextSibling(p){return p.nextSibling}setAttribute(p,_,I,P){if(P){_=P+":"+_;const re=tt[P];re?p.setAttributeNS(re,_,I):p.setAttribute(_,I)}else p.setAttribute(_,I)}removeAttribute(p,_,I){if(I){const P=tt[I];P?p.removeAttributeNS(P,_):p.removeAttribute(`${I}:${_}`)}else p.removeAttribute(_)}addClass(p,_){p.classList.add(_)}removeClass(p,_){p.classList.remove(_)}setStyle(p,_,I,P){P&(c.JOm.DashCase|c.JOm.Important)?p.style.setProperty(_,I,P&c.JOm.Important?"important":""):p.style[_]=I}removeStyle(p,_,I){I&c.JOm.DashCase?p.style.removeProperty(_):p.style[_]=""}setProperty(p,_,I){p[_]=I}setValue(p,_){p.nodeValue=_}listen(p,_,I){return"string"==typeof p?this.eventManager.addGlobalEventListener(p,_,vt(I)):this.eventManager.addEventListener(p,_,vt(I))}}function ct(k){return"TEMPLATE"===k.tagName&&void 0!==k.content}class gt extends Mt{constructor(p,_,I,P){super(p),this.component=I;const re=ht(P+"-"+I.id,I.styles);_.addStyles(re),this.contentAttr=function Te(k){return"_ngcontent-%COMP%".replace(ye,k)}(P+"-"+I.id),this.hostAttr=function ze(k){return"_nghost-%COMP%".replace(ye,k)}(P+"-"+I.id)}applyToHost(p){super.setAttribute(p,this.hostAttr,"")}createElement(p,_){const I=super.createElement(p,_);return super.setAttribute(I,this.contentAttr,""),I}}class bt extends Mt{constructor(p,_,I,P){super(p),this.sharedStylesHost=_,this.hostEl=I,this.shadowRoot=I.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const re=ht(P.id,P.styles);for(let Be=0;Be<re.length;Be++){const yt=document.createElement("style");yt.textContent=re[Be],this.shadowRoot.appendChild(yt)}}nodeOrShadowRoot(p){return p===this.hostEl?this.shadowRoot:p}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(p,_){return super.appendChild(this.nodeOrShadowRoot(p),_)}insertBefore(p,_,I){return super.insertBefore(this.nodeOrShadowRoot(p),_,I)}removeChild(p,_){return super.removeChild(this.nodeOrShadowRoot(p),_)}parentNode(p){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(p)))}}let wt=(()=>{class k extends Ne{constructor(_){super(_)}supports(_){return!0}addEventListener(_,I,P){return _.addEventListener(I,P,!1),()=>this.removeEventListener(_,I,P)}removeEventListener(_,I,P){return _.removeEventListener(I,P)}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();const Ot=["alt","control","meta","shift"],ve={"\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"},qe={alt:k=>k.altKey,control:k=>k.ctrlKey,meta:k=>k.metaKey,shift:k=>k.shiftKey};let L=(()=>{class k extends Ne{constructor(_){super(_)}supports(_){return null!=k.parseEventName(_)}addEventListener(_,I,P){const re=k.parseEventName(I),Be=k.eventCallback(re.fullKey,P,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(_,re.domEventName,Be))}static parseEventName(_){const I=_.toLowerCase().split("."),P=I.shift();if(0===I.length||"keydown"!==P&&"keyup"!==P)return null;const re=k._normalizeKey(I.pop());let Be="",yt=I.indexOf("code");if(yt>-1&&(I.splice(yt,1),Be="code."),Ot.forEach(fn=>{const Mn=I.indexOf(fn);Mn>-1&&(I.splice(Mn,1),Be+=fn+".")}),Be+=re,0!=I.length||0===re.length)return null;const Lt={};return Lt.domEventName=P,Lt.fullKey=Be,Lt}static matchEventFullKeyCode(_,I){let P=ve[_.key]||_.key,re="";return I.indexOf("code.")>-1&&(P=_.code,re="code."),!(null==P||!P)&&(P=P.toLowerCase()," "===P?P="space":"."===P&&(P="dot"),Ot.forEach(Be=>{Be!==P&&(0,qe[Be])(_)&&(re+=Be+".")}),re+=P,re===I)}static eventCallback(_,I,P){return re=>{k.matchEventFullKeyCode(re,_)&&P.runGuarded(()=>I(re))}}static _normalizeKey(_){return"esc"===_?"escape":_}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:k.\u0275fac}),k})();const Pn=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:r.bD},{provide:c.g9A,useValue:function Vt(){B.makeCurrent()},multi:!0},{provide:r.K0,useFactory:function En(){return(0,c.RDi)(document),document},deps:[]}]),Fn=new c.OlP(""),an=[{provide:c.rWj,useClass:class ae{addToWindow(p){c.dqk.getAngularTestability=(I,P=!0)=>{const re=p.findTestabilityInTree(I,P);if(null==re)throw new Error("Could not find testability for element.");return re},c.dqk.getAllAngularTestabilities=()=>p.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>p.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(I=>{const P=c.dqk.getAllAngularTestabilities();let re=P.length,Be=!1;const yt=function(Lt){Be=Be||Lt,re--,0==re&&I(Be)};P.forEach(function(Lt){Lt.whenStable(yt)})})}findTestabilityInTree(p,_,I){return null==_?null:p.getTestability(_)??(I?(0,r.q)().isShadowRoot(_)?this.findTestabilityInTree(p,_.host,!0):this.findTestabilityInTree(p,_.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]}],et=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function en(){return new c.qLn},deps:[]},{provide:Ee,useClass:wt,multi:!0,deps:[r.K0,c.R0b,c.Lbi]},{provide:Ee,useClass:L,multi:!0,deps:[r.K0]},{provide:Nt,useClass:Nt,deps:[Le,Re,c.AFp]},{provide:c.FYo,useExisting:Nt},{provide:he,useExisting:Re},{provide:Re,useClass:Re,deps:[r.K0]},{provide:Le,useClass:Le,deps:[Ee,c.R0b]},{provide:r.JF,useClass:je,deps:[]},[]];let W=(()=>{class k{constructor(_){}static withServerTransition(_){return{ngModule:k,providers:[{provide:c.AFp,useValue:_.appId},{provide:ie,useExisting:c.AFp},ee]}}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(Fn,12))},k.\u0275mod=c.oAB({type:k}),k.\u0275inj=c.cJS({providers:[...et,...an],imports:[r.ez,c.hGG]}),k})(),At=(()=>{class k{constructor(_){this._doc=_}getTitle(){return this._doc.title}setTitle(_){this._doc.title=_||""}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:function(_){let I=null;return I=_?new _:function st(){return new At((0,c.LFG)(r.K0))}(),I},providedIn:"root"}),k})();typeof window<"u"&&window;let Pt=(()=>{class k{}return k.\u0275fac=function(_){return new(_||k)},k.\u0275prov=c.Yz7({token:k,factory:function(_){let I=null;return I=_?new(_||k):c.LFG(Xt),I},providedIn:"root"}),k})(),Xt=(()=>{class k extends Pt{constructor(_){super(),this._doc=_}sanitize(_,I){if(null==I)return null;switch(_){case c.q3G.NONE:return I;case c.q3G.HTML:return(0,c.qzn)(I,"HTML")?(0,c.z3N)(I):(0,c.EiD)(this._doc,String(I)).toString();case c.q3G.STYLE:return(0,c.qzn)(I,"Style")?(0,c.z3N)(I):I;case c.q3G.SCRIPT:if((0,c.qzn)(I,"Script"))return(0,c.z3N)(I);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(I,"URL")?(0,c.z3N)(I):(0,c.mCW)(String(I));case c.q3G.RESOURCE_URL:if((0,c.qzn)(I,"ResourceURL"))return(0,c.z3N)(I);throw new Error(`unsafe value used in a resource URL context (see ${c.JZr})`);default:throw new Error(`Unexpected SecurityContext ${_} (see ${c.JZr})`)}}bypassSecurityTrustHtml(_){return(0,c.JVY)(_)}bypassSecurityTrustStyle(_){return(0,c.L6k)(_)}bypassSecurityTrustScript(_){return(0,c.eBb)(_)}bypassSecurityTrustUrl(_){return(0,c.LAX)(_)}bypassSecurityTrustResourceUrl(_){return(0,c.pB0)(_)}}return k.\u0275fac=function(_){return new(_||k)(c.LFG(r.K0))},k.\u0275prov=c.Yz7({token:k,factory:function(_){let I=null;return I=_?new _:function Wt(k){return new Xt(k.get(r.K0))}(c.LFG(c.zs3)),I},providedIn:"root"}),k})()},3893:(Dt,Se,g)=>{g.d(Se,{gz:()=>sr,m2:()=>fi,F0:()=>Vi,Bz:()=>va,lC:()=>bn});var r=g(4650),c=g(8996),A=g(9646),B=g(1135),X=g(6805),le=g(9841),q=g(7272),ne=g(9770),ie=g(9635),j=g(2843),ee=g(9751),ae=g(515),je=g(4033),Ee=g(7579),Le=g(6895),Ne=g(4004),he=g(3900),Re=g(5698),ke=g(8675),tt=g(9300),ye=g(5577),ue=g(590),we=g(4351),Ce=g(8505),Ue=g(8421),Te=g(5403),ze=g(4482);function ht(h){return(0,ze.e)((m,u)=>{let $,C=null,O=!1;C=m.subscribe((0,Te.x)(u,void 0,void 0,Q=>{$=(0,Ue.Xf)(h(Q,ht(h)(m))),C?(C.unsubscribe(),C=null,$.subscribe(u)):O=!0})),O&&(C.unsubscribe(),C=null,$.subscribe(u))})}function vt(h,m,u,C,O){return($,Q)=>{let Ge=u,f=m,l=0;$.subscribe((0,Te.x)(Q,a=>{const v=l++;f=Ge?h(f,a,v):(Ge=!0,a),C&&Q.next(f)},O&&(()=>{Ge&&Q.next(f),Q.complete()})))}}function Nt(h,m){return(0,ze.e)(vt(h,m,arguments.length>=2,!0))}function Mt(h){return h<=0?()=>ae.E:(0,ze.e)((m,u)=>{let C=[];m.subscribe((0,Te.x)(u,O=>{C.push(O),h<C.length&&C.shift()},()=>{for(const O of C)u.next(O);u.complete()},void 0,()=>{C=null}))})}var We=g(8068),it=g(6590),ct=g(4671);function gt(h,m){const u=arguments.length>=2;return C=>C.pipe(h?(0,tt.h)((O,$)=>h(O,$,C)):ct.y,Mt(1),u?(0,it.d)(m):(0,We.T)(()=>new X.K))}var wt=g(9718),Ot=g(8746),ve=g(8343),qe=g(8189),L=g(1481);const te="primary",Ve=Symbol("RouteTitle");class ut{constructor(m){this.params=m||{}}has(m){return Object.prototype.hasOwnProperty.call(this.params,m)}get(m){if(this.has(m)){const u=this.params[m];return Array.isArray(u)?u[0]:u}return null}getAll(m){if(this.has(m)){const u=this.params[m];return Array.isArray(u)?u:[u]}return[]}get keys(){return Object.keys(this.params)}}function Bt(h){return new ut(h)}function Jt(h,m,u){const C=u.path.split("/");if(C.length>h.length||"full"===u.pathMatch&&(m.hasChildren()||C.length<h.length))return null;const O={};for(let $=0;$<C.length;$++){const Q=C[$],Ge=h[$];if(Q.startsWith(":"))O[Q.substring(1)]=Ge;else if(Q!==Ge.path)return null}return{consumed:h.slice(0,C.length),posParams:O}}function en(h,m){const u=h?Object.keys(h):void 0,C=m?Object.keys(m):void 0;if(!u||!C||u.length!=C.length)return!1;let O;for(let $=0;$<u.length;$++)if(O=u[$],!En(h[O],m[O]))return!1;return!0}function En(h,m){if(Array.isArray(h)&&Array.isArray(m)){if(h.length!==m.length)return!1;const u=[...h].sort(),C=[...m].sort();return u.every((O,$)=>C[$]===O)}return h===m}function In(h){return Array.prototype.concat.apply([],h)}function Pn(h){return h.length>0?h[h.length-1]:null}function an(h,m){for(const u in h)h.hasOwnProperty(u)&&m(h[u],u)}function et(h){return(0,r.CqO)(h)?h:(0,r.QGY)(h)?(0,c.D)(Promise.resolve(h)):(0,A.of)(h)}const W=!1,se={exact:function At(h,m,u){if(!kt(h.segments,m.segments)||!De(h.segments,m.segments,u)||h.numberOfChildren!==m.numberOfChildren)return!1;for(const C in m.children)if(!h.children[C]||!At(h.children[C],m.children[C],u))return!1;return!0},subset:It},Ie={exact:function st(h,m){return en(h,m)},subset:function $t(h,m){return Object.keys(m).length<=Object.keys(h).length&&Object.keys(m).every(u=>En(h[u],m[u]))},ignored:()=>!0};function rt(h,m,u){return se[u.paths](h.root,m.root,u.matrixParams)&&Ie[u.queryParams](h.queryParams,m.queryParams)&&!("exact"===u.fragment&&h.fragment!==m.fragment)}function It(h,m,u){return Tt(h,m,m.segments,u)}function Tt(h,m,u,C){if(h.segments.length>u.length){const O=h.segments.slice(0,u.length);return!(!kt(O,u)||m.hasChildren()||!De(O,u,C))}if(h.segments.length===u.length){if(!kt(h.segments,u)||!De(h.segments,u,C))return!1;for(const O in m.children)if(!h.children[O]||!It(h.children[O],m.children[O],C))return!1;return!0}{const O=u.slice(0,h.segments.length),$=u.slice(h.segments.length);return!!(kt(h.segments,O)&&De(h.segments,O,C)&&h.children[te])&&Tt(h.children[te],m,$,C)}}function De(h,m,u){return m.every((C,O)=>Ie[u](h[O].parameters,C.parameters))}class lt{constructor(m=new fe([],{}),u={},C=null){this.root=m,this.queryParams=u,this.fragment=C}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bt(this.queryParams)),this._queryParamMap}toString(){return rn.serialize(this)}}class fe{constructor(m,u){this.segments=m,this.children=u,this.parent=null,an(u,(C,O)=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tn(this)}}class Ye{constructor(m,u){this.path=m,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=Bt(this.parameters)),this._parameterMap}toString(){return K(this)}}function kt(h,m){return h.length===m.length&&h.every((u,C)=>u.path===m[C].path)}let Ut=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return new An},providedIn:"root"}),h})();class An{parse(m){const u=new k(m);return new lt(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(m){const u=`/${xn(m.root,!0)}`,C=function be(h){const m=Object.keys(h).map(u=>{const C=h[u];return Array.isArray(C)?C.map(O=>`${J(u)}=${J(O)}`).join("&"):`${J(u)}=${J(C)}`}).filter(u=>!!u);return m.length?`?${m.join("&")}`:""}(m.queryParams);return`${u}${C}${"string"==typeof m.fragment?`#${function V(h){return encodeURI(h)}(m.fragment)}`:""}`}}const rn=new An;function Tn(h){return h.segments.map(m=>K(m)).join("/")}function xn(h,m){if(!h.hasChildren())return Tn(h);if(m){const u=h.children[te]?xn(h.children[te],!1):"",C=[];return an(h.children,(O,$)=>{$!==te&&C.push(`${$}:${xn(O,!1)}`)}),C.length>0?`${u}(${C.join("//")})`:u}{const u=function ln(h,m){let u=[];return an(h.children,(C,O)=>{O===te&&(u=u.concat(m(C,O)))}),an(h.children,(C,O)=>{O!==te&&(u=u.concat(m(C,O)))}),u}(h,(C,O)=>O===te?[xn(h.children[te],!1)]:[`${O}:${xn(C,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[te]?`${Tn(h)}/${u[0]}`:`${Tn(h)}/(${u.join("//")})`}}function Oe(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function J(h){return Oe(h).replace(/%3B/gi,";")}function U(h){return Oe(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oe(h){return decodeURIComponent(h)}function Ze(h){return oe(h.replace(/\+/g,"%20"))}function K(h){return`${U(h.path)}${function ce(h){return Object.keys(h).map(m=>`;${U(m)}=${U(h[m])}`).join("")}(h.parameters)}`}const Je=/^[^\/()?;=#]+/;function xe(h){const m=h.match(Je);return m?m[0]:""}const Pt=/^[^=?&#]+/,Xt=/^[^&#]+/;class k{constructor(m){this.url=m,this.remaining=m}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){const m={};if(this.consumeOptional("?"))do{this.parseQueryParam(m)}while(this.consumeOptional("&"));return m}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const m=[];for(this.peekStartsWith("(")||m.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),m.push(this.parseSegment());let u={};this.peekStartsWith("/(")&&(this.capture("/"),u=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(m.length>0||Object.keys(u).length>0)&&(C[te]=new fe(m,u)),C}parseSegment(){const m=xe(this.remaining);if(""===m&&this.peekStartsWith(";"))throw new r.vHH(4009,W);return this.capture(m),new Ye(oe(m),this.parseMatrixParams())}parseMatrixParams(){const m={};for(;this.consumeOptional(";");)this.parseParam(m);return m}parseParam(m){const u=xe(this.remaining);if(!u)return;this.capture(u);let C="";if(this.consumeOptional("=")){const O=xe(this.remaining);O&&(C=O,this.capture(C))}m[oe(u)]=oe(C)}parseQueryParam(m){const u=function Wt(h){const m=h.match(Pt);return m?m[0]:""}(this.remaining);if(!u)return;this.capture(u);let C="";if(this.consumeOptional("=")){const Q=function de(h){const m=h.match(Xt);return m?m[0]:""}(this.remaining);Q&&(C=Q,this.capture(C))}const O=Ze(u),$=Ze(C);if(m.hasOwnProperty(O)){let Q=m[O];Array.isArray(Q)||(Q=[Q],m[O]=Q),Q.push($)}else m[O]=$}parseParens(m){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=xe(this.remaining),O=this.remaining[C.length];if("/"!==O&&")"!==O&&";"!==O)throw new r.vHH(4010,W);let $;C.indexOf(":")>-1?($=C.slice(0,C.indexOf(":")),this.capture($),this.capture(":")):m&&($=te);const Q=this.parseChildren();u[$]=1===Object.keys(Q).length?Q[te]:new fe([],Q),this.consumeOptional("//")}return u}peekStartsWith(m){return this.remaining.startsWith(m)}consumeOptional(m){return!!this.peekStartsWith(m)&&(this.remaining=this.remaining.substring(m.length),!0)}capture(m){if(!this.consumeOptional(m))throw new r.vHH(4011,W)}}function p(h){return h.segments.length>0?new fe([],{[te]:h}):h}function _(h){const m={};for(const C of Object.keys(h.children)){const $=_(h.children[C]);($.segments.length>0||$.hasChildren())&&(m[C]=$)}return function I(h){if(1===h.numberOfChildren&&h.children[te]){const m=h.children[te];return new fe(h.segments.concat(m.segments),m.children)}return h}(new fe(h.segments,m))}function P(h){return h instanceof lt}function fn(h,m,u,C,O){if(0===u.length)return St(m.root,m.root,m.root,C,O);const $=function Gt(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new pt(!0,0,h);let m=0,u=!1;const C=h.reduce((O,$,Q)=>{if("object"==typeof $&&null!=$){if($.outlets){const Ge={};return an($.outlets,(f,l)=>{Ge[l]="string"==typeof f?f.split("/"):f}),[...O,{outlets:Ge}]}if($.segmentPath)return[...O,$.segmentPath]}return"string"!=typeof $?[...O,$]:0===Q?($.split("/").forEach((Ge,f)=>{0==f&&"."===Ge||(0==f&&""===Ge?u=!0:".."===Ge?m++:""!=Ge&&O.push(Ge))}),O):[...O,$]},[]);return new pt(u,m,C)}(u);return $.toRoot()?St(m.root,m.root,new fe([],{}),C,O):function Q(f){const l=function zn(h,m,u,C){if(h.isAbsolute)return new mn(m.root,!0,0);if(-1===C)return new mn(u,u===m.root,0);return function ni(h,m,u){let C=h,O=m,$=u;for(;$>O;){if($-=O,C=C.parent,!C)throw new r.vHH(4005,!1);O=C.segments.length}return new mn(C,!1,O-$)}(u,C+(Mn(h.commands[0])?0:1),h.numberOfDoubleDots)}($,m,h.snapshot?._urlSegment,f),a=l.processChildren?ii(l.segmentGroup,l.index,$.commands):di(l.segmentGroup,l.index,$.commands);return St(m.root,l.segmentGroup,a,C,O)}(h.snapshot?._lastPathIndex)}function Mn(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function ft(h){return"object"==typeof h&&null!=h&&h.outlets}function St(h,m,u,C,O){let Q,$={};C&&an(C,(f,l)=>{$[l]=Array.isArray(f)?f.map(a=>`${a}`):`${f}`}),Q=h===m?u:Ae(h,m,u);const Ge=p(_(Q));return new lt(Ge,$,O)}function Ae(h,m,u){const C={};return an(h.children,(O,$)=>{C[$]=O===m?u:Ae(O,m,u)}),new fe(h.segments,C)}class pt{constructor(m,u,C){if(this.isAbsolute=m,this.numberOfDoubleDots=u,this.commands=C,m&&C.length>0&&Mn(C[0]))throw new r.vHH(4003,!1);const O=C.find(ft);if(O&&O!==Pn(C))throw new r.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class mn{constructor(m,u,C){this.segmentGroup=m,this.processChildren=u,this.index=C}}function di(h,m,u){if(h||(h=new fe([],{})),0===h.segments.length&&h.hasChildren())return ii(h,m,u);const C=function zt(h,m,u){let C=0,O=m;const $={match:!1,pathIndex:0,commandIndex:0};for(;O<h.segments.length;){if(C>=u.length)return $;const Q=h.segments[O],Ge=u[C];if(ft(Ge))break;const f=`${Ge}`,l=C<u.length-1?u[C+1]:null;if(O>0&&void 0===f)break;if(f&&l&&"object"==typeof l&&void 0===l.outlets){if(!yi(f,l,Q))return $;C+=2}else{if(!yi(f,{},Q))return $;C++}O++}return{match:!0,pathIndex:O,commandIndex:C}}(h,m,u),O=u.slice(C.commandIndex);if(C.match&&C.pathIndex<h.segments.length){const $=new fe(h.segments.slice(0,C.pathIndex),{});return $.children[te]=new fe(h.segments.slice(C.pathIndex),h.children),ii($,0,O)}return C.match&&0===O.length?new fe(h.segments,{}):C.match&&!h.hasChildren()?cn(h,m,u):C.match?ii(h,0,O):cn(h,m,u)}function ii(h,m,u){if(0===u.length)return new fe(h.segments,{});{const C=function Xn(h){return ft(h[0])?h[0].outlets:{[te]:h}}(u),O={};return!C[te]&&h.children[te]&&1===h.numberOfChildren&&0===h.children[te].segments.length?ii(h.children[te],m,u):(an(C,($,Q)=>{"string"==typeof $&&($=[$]),null!==$&&(O[Q]=di(h.children[Q],m,$))}),an(h.children,($,Q)=>{void 0===C[Q]&&(O[Q]=$)}),new fe(h.segments,O))}}function cn(h,m,u){const C=h.segments.slice(0,m);let O=0;for(;O<u.length;){const $=u[O];if(ft($)){const f=Gn($.outlets);return new fe(C,f)}if(0===O&&Mn(u[0])){C.push(new Ye(h.segments[m].path,li(u[0]))),O++;continue}const Q=ft($)?$.outlets[te]:`${$}`,Ge=O<u.length-1?u[O+1]:null;Q&&Ge&&Mn(Ge)?(C.push(new Ye(Q,li(Ge))),O+=2):(C.push(new Ye(Q,{})),O++)}return new fe(C,{})}function Gn(h){const m={};return an(h,(u,C)=>{"string"==typeof u&&(u=[u]),null!==u&&(m[C]=cn(new fe([],{}),0,u))}),m}function li(h){const m={};return an(h,(u,C)=>m[C]=`${u}`),m}function yi(h,m,u){return h==u.path&&en(m,u.parameters)}const qn="imperative";class ei{constructor(m,u){this.id=m,this.url=u}}class Rn extends ei{constructor(m,u,C="imperative",O=null){super(m,u),this.type=0,this.navigationTrigger=C,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fi extends ei{constructor(m,u,C){super(m,u),this.urlAfterRedirects=C,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wi extends ei{constructor(m,u,C,O){super(m,u),this.reason=C,this.code=O,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cn extends ei{constructor(m,u,C,O){super(m,u),this.reason=C,this.code=O,this.type=16}}class Yi extends ei{constructor(m,u,C,O){super(m,u),this.error=C,this.target=O,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rr extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fr extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ki extends ei{constructor(m,u,C,O,$){super(m,u),this.urlAfterRedirects=C,this.state=O,this.shouldActivate=$,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vi extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xi extends ei{constructor(m,u,C,O){super(m,u),this.urlAfterRedirects=C,this.state=O,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class or{constructor(m){this.route=m,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ai{constructor(m){this.route=m,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Zi{constructor(m){this.snapshot=m,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class so{constructor(m){this.snapshot=m,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zn{constructor(m){this.snapshot=m,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Li{constructor(m){this.snapshot=m,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tr{constructor(m,u,C){this.routerEvent=m,this.position=u,this.anchor=C,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let hr=(()=>{class h{createUrlTree(u,C,O,$,Q,Ge){return fn(u||C.root,O,$,Q,Ge)}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),h})(),mi=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(m){return hr.\u0275fac(m)},providedIn:"root"}),h})();class Rr{constructor(m){this._root=m}get root(){return this._root.value}parent(m){const u=this.pathFromRoot(m);return u.length>1?u[u.length-2]:null}children(m){const u=gi(m,this._root);return u?u.children.map(C=>C.value):[]}firstChild(m){const u=gi(m,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(m){const u=Mi(m,this._root);return u.length<2?[]:u[u.length-2].children.map(O=>O.value).filter(O=>O!==m)}pathFromRoot(m){return Mi(m,this._root).map(u=>u.value)}}function gi(h,m){if(h===m.value)return m;for(const u of m.children){const C=gi(h,u);if(C)return C}return null}function Mi(h,m){if(h===m.value)return[m];for(const u of m.children){const C=Mi(h,u);if(C.length)return C.unshift(m),C}return[]}class Qi{constructor(m,u){this.value=m,this.children=u}toString(){return`TreeNode(${this.value})`}}function Ui(h){const m={};return h&&h.children.forEach(u=>m[u.value.outlet]=u),m}class xr extends Rr{constructor(m,u){super(m),this.snapshot=u,Dr(this,m)}toString(){return this.snapshot.toString()}}function bi(h,m){const u=function No(h,m){const Q=new fr([],{},{},"",{},te,m,null,h.root,-1,{});return new Lo("",new Qi(Q,[]))}(h,m),C=new B.X([new Ye("",{})]),O=new B.X({}),$=new B.X({}),Q=new B.X({}),Ge=new B.X(""),f=new sr(C,O,Q,Ge,$,te,m,u.root);return f.snapshot=u.root,new xr(new Qi(f,[]),u)}class sr{constructor(m,u,C,O,$,Q,Ge,f){this.url=m,this.params=u,this.queryParams=C,this.fragment=O,this.data=$,this.outlet=Q,this.component=Ge,this.title=this.data?.pipe((0,Ne.U)(l=>l[Ve]))??(0,A.of)(void 0),this._futureSnapshot=f}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,Ne.U)(m=>Bt(m)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ne.U)(m=>Bt(m)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function kr(h,m="emptyOnly"){const u=h.pathFromRoot;let C=0;if("always"!==m)for(C=u.length-1;C>=1;){const O=u[C],$=u[C-1];if(O.routeConfig&&""===O.routeConfig.path)C--;else{if($.component)break;C--}}return function Yr(h){return h.reduce((m,u)=>({params:{...m.params,...u.params},data:{...m.data,...u.data},resolve:{...u.data,...m.resolve,...u.routeConfig?.data,...u._resolvedData}}),{params:{},data:{},resolve:{}})}(u.slice(C))}class fr{get title(){return this.data?.[Ve]}constructor(m,u,C,O,$,Q,Ge,f,l,a,v){this.url=m,this.params=u,this.queryParams=C,this.fragment=O,this.data=$,this.outlet=Q,this.component=Ge,this.routeConfig=f,this._urlSegment=l,this._lastPathIndex=a,this._resolve=v}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=Bt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Lo extends Rr{constructor(m,u){super(u),this.url=m,Dr(this,u)}toString(){return lo(this._root)}}function Dr(h,m){m.value._routerState=h,m.children.forEach(u=>Dr(h,u))}function lo(h){const m=h.children.length>0?` { ${h.children.map(lo).join(", ")} } `:"";return`${h.value}${m}`}function Nr(h){if(h.snapshot){const m=h.snapshot,u=h._futureSnapshot;h.snapshot=u,en(m.queryParams,u.queryParams)||h.queryParams.next(u.queryParams),m.fragment!==u.fragment&&h.fragment.next(u.fragment),en(m.params,u.params)||h.params.next(u.params),function Vt(h,m){if(h.length!==m.length)return!1;for(let u=0;u<h.length;++u)if(!en(h[u],m[u]))return!1;return!0}(m.url,u.url)||h.url.next(u.url),en(m.data,u.data)||h.data.next(u.data)}else h.snapshot=h._futureSnapshot,h.data.next(h._futureSnapshot.data)}function co(h,m){const u=en(h.params,m.params)&&function Ct(h,m){return kt(h,m)&&h.every((u,C)=>en(u.parameters,m[C].parameters))}(h.url,m.url);return u&&!(!h.parent!=!m.parent)&&(!h.parent||co(h.parent,m.parent))}function Ii(h,m,u){if(u&&h.shouldReuseRoute(m.value,u.value.snapshot)){const C=u.value;C._futureSnapshot=m.value;const O=function Oi(h,m,u){return m.children.map(C=>{for(const O of u.children)if(h.shouldReuseRoute(C.value,O.value.snapshot))return Ii(h,C,O);return Ii(h,C)})}(h,m,u);return new Qi(C,O)}{if(h.shouldAttach(m.value)){const $=h.retrieve(m.value);if(null!==$){const Q=$.route;return Q.value._futureSnapshot=m.value,Q.children=m.children.map(Ge=>Ii(h,Ge)),Q}}const C=function Bo(h){return new sr(new B.X(h.url),new B.X(h.params),new B.X(h.queryParams),new B.X(h.fragment),new B.X(h.data),h.outlet,h.component,h)}(m.value),O=m.children.map($=>Ii(h,$));return new Qi(C,O)}}const Pe="ngNavigationCancelingError";function Fe(h,m){const{redirectTo:u,navigationBehaviorOptions:C}=P(m)?{redirectTo:m,navigationBehaviorOptions:void 0}:m,O=Ke(!1,0,m);return O.url=u,O.navigationBehaviorOptions=C,O}function Ke(h,m,u){const C=new Error("NavigationCancelingError: "+(h||""));return C[Pe]=!0,C.cancellationCode=m,u&&(C.url=u),C}function dt(h){return Ft(h)&&P(h.url)}function Ft(h){return h&&h[Pe]}class tn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new hn,this.attachRef=null}}let hn=(()=>{class h{constructor(){this.contexts=new Map}onChildOutletCreated(u,C){const O=this.getOrCreateContext(u);O.outlet=C,this.contexts.set(u,O)}onChildOutletDestroyed(u){const C=this.getContext(u);C&&(C.outlet=null,C.attachRef=null)}onOutletDeactivated(){const u=this.contexts;return this.contexts=new Map,u}onOutletReAttached(u){this.contexts=u}getOrCreateContext(u){let C=this.getContext(u);return C||(C=new tn,this.contexts.set(u,C)),C}getContext(u){return this.contexts.get(u)||null}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const kn=!1;let bn=(()=>{class h{constructor(){this.activated=null,this._activatedRoute=null,this.name=te,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.attachEvents=new r.vpe,this.detachEvents=new r.vpe,this.parentContexts=(0,r.f3M)(hn),this.location=(0,r.f3M)(r.s_b),this.changeDetector=(0,r.f3M)(r.sBO),this.environmentInjector=(0,r.f3M)(r.lqb)}ngOnChanges(u){if(u.name){const{firstChange:C,previousValue:O}=u.name;if(C)return;this.isTrackedInParentContexts(O)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(O)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(u){return this.parentContexts.getContext(u)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const u=this.parentContexts.getContext(this.name);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 r.vHH(4012,kn);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.vHH(4012,kn);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.vHH(4012,kn);this.location.detach();const u=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(u.instance),u}attach(u,C){this.activated=u,this._activatedRoute=C,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,C){if(this.isActivated)throw new r.vHH(4013,kn);this._activatedRoute=u;const O=this.location,Q=u.snapshot.component,Ge=this.parentContexts.getOrCreateContext(this.name).children,f=new Ci(u,Ge,O.injector);if(C&&function ri(h){return!!h.resolveComponentFactory}(C)){const l=C.resolveComponentFactory(Q);this.activated=O.createComponent(l,O.length,f)}else this.activated=O.createComponent(Q,{index:O.length,injector:f,environmentInjector:C??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275dir=r.lG2({type:h,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[r.TTD]}),h})();class Ci{constructor(m,u,C){this.route=m,this.childContexts=u,this.parent=C}get(m,u){return m===sr?this.route:m===hn?this.childContexts:this.parent.get(m,u)}}let hi=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275cmp=r.Xpm({type:h,selectors:[["ng-component"]],standalone:!0,features:[r.jDz],decls:1,vars:0,template:function(u,C){1&u&&r._UZ(0,"router-outlet")},dependencies:[bn],encapsulation:2}),h})();function Hi(h,m){return h.providers&&!h._injector&&(h._injector=(0,r.MMx)(h.providers,m,`Route: ${h.path}`)),h._injector??m}function Un(h){const m=h.children&&h.children.map(Un),u=m?{...h,children:m}:{...h};return!u.component&&!u.loadComponent&&(m||u.loadChildren)&&u.outlet&&u.outlet!==te&&(u.component=hi),u}function oi(h){return h.outlet||te}function pr(h,m){const u=h.filter(C=>oi(C)===m);return u.push(...h.filter(C=>oi(C)!==m)),u}function Hn(h){if(!h)return null;if(h.routeConfig?._injector)return h.routeConfig._injector;for(let m=h.parent;m;m=m.parent){const u=m.routeConfig;if(u?._loadedInjector)return u._loadedInjector;if(u?._injector)return u._injector}return null}class uo{constructor(m,u,C,O){this.routeReuseStrategy=m,this.futureState=u,this.currState=C,this.forwardEvent=O}activate(m){const u=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,C,m),Nr(this.futureState.root),this.activateChildRoutes(u,C,m)}deactivateChildRoutes(m,u,C){const O=Ui(u);m.children.forEach($=>{const Q=$.value.outlet;this.deactivateRoutes($,O[Q],C),delete O[Q]}),an(O,($,Q)=>{this.deactivateRouteAndItsChildren($,C)})}deactivateRoutes(m,u,C){const O=m.value,$=u?u.value:null;if(O===$)if(O.component){const Q=C.getContext(O.outlet);Q&&this.deactivateChildRoutes(m,u,Q.children)}else this.deactivateChildRoutes(m,u,C);else $&&this.deactivateRouteAndItsChildren(u,C)}deactivateRouteAndItsChildren(m,u){m.value.component&&this.routeReuseStrategy.shouldDetach(m.value.snapshot)?this.detachAndStoreRouteSubtree(m,u):this.deactivateRouteAndOutlet(m,u)}detachAndStoreRouteSubtree(m,u){const C=u.getContext(m.value.outlet),O=C&&m.value.component?C.children:u,$=Ui(m);for(const Q of Object.keys($))this.deactivateRouteAndItsChildren($[Q],O);if(C&&C.outlet){const Q=C.outlet.detach(),Ge=C.children.onOutletDeactivated();this.routeReuseStrategy.store(m.value.snapshot,{componentRef:Q,route:m,contexts:Ge})}}deactivateRouteAndOutlet(m,u){const C=u.getContext(m.value.outlet),O=C&&m.value.component?C.children:u,$=Ui(m);for(const Q of Object.keys($))this.deactivateRouteAndItsChildren($[Q],O);C&&C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated(),C.attachRef=null,C.resolver=null,C.route=null)}activateChildRoutes(m,u,C){const O=Ui(u);m.children.forEach($=>{this.activateRoutes($,O[$.value.outlet],C),this.forwardEvent(new Li($.value.snapshot))}),m.children.length&&this.forwardEvent(new so(m.value.snapshot))}activateRoutes(m,u,C){const O=m.value,$=u?u.value:null;if(Nr(O),O===$)if(O.component){const Q=C.getOrCreateContext(O.outlet);this.activateChildRoutes(m,u,Q.children)}else this.activateChildRoutes(m,u,C);else if(O.component){const Q=C.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const Ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),Q.children.onOutletReAttached(Ge.contexts),Q.attachRef=Ge.componentRef,Q.route=Ge.route.value,Q.outlet&&Q.outlet.attach(Ge.componentRef,Ge.route.value),Nr(Ge.route.value),this.activateChildRoutes(m,null,Q.children)}else{const Ge=Hn(O.snapshot),f=Ge?.get(r._Vd)??null;Q.attachRef=null,Q.route=O,Q.resolver=f,Q.injector=Ge,Q.outlet&&Q.outlet.activateWith(O,Q.injector),this.activateChildRoutes(m,null,Q.children)}}else this.activateChildRoutes(m,null,C)}}class gr{constructor(m){this.path=m,this.route=this.path[this.path.length-1]}}class _i{constructor(m,u){this.component=m,this.route=u}}function wo(h,m,u){const C=h._root;return $i(C,m?m._root:null,u,[C.value])}function wr(h,m){const u=Symbol(),C=m.get(h,u);return C===u?"function"!=typeof h||(0,r.Z0I)(h)?m.get(h):h:C}function $i(h,m,u,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const $=Ui(m);return h.children.forEach(Q=>{(function fo(h,m,u,C,O={canDeactivateChecks:[],canActivateChecks:[]}){const $=h.value,Q=m?m.value:null,Ge=u?u.getContext(h.value.outlet):null;if(Q&&$.routeConfig===Q.routeConfig){const f=function Or(h,m,u){if("function"==typeof u)return u(h,m);switch(u){case"pathParamsChange":return!kt(h.url,m.url);case"pathParamsOrQueryParamsChange":return!kt(h.url,m.url)||!en(h.queryParams,m.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!co(h,m)||!en(h.queryParams,m.queryParams);default:return!co(h,m)}}(Q,$,$.routeConfig.runGuardsAndResolvers);f?O.canActivateChecks.push(new gr(C)):($.data=Q.data,$._resolvedData=Q._resolvedData),$i(h,m,$.component?Ge?Ge.children:null:u,C,O),f&&Ge&&Ge.outlet&&Ge.outlet.isActivated&&O.canDeactivateChecks.push(new _i(Ge.outlet.component,Q))}else Q&&gn(m,Ge,O),O.canActivateChecks.push(new gr(C)),$i(h,null,$.component?Ge?Ge.children:null:u,C,O)})(Q,$[Q.value.outlet],u,C.concat([Q.value]),O),delete $[Q.value.outlet]}),an($,(Q,Ge)=>gn(Q,u.getContext(Ge),O)),O}function gn(h,m,u){const C=Ui(h),O=h.value;an(C,($,Q)=>{gn($,O.component?m?m.children.getContext(Q):null:m,u)}),u.canDeactivateChecks.push(new _i(O.component&&m&&m.outlet&&m.outlet.isActivated?m.outlet.component:null,O))}function Ar(h){return"function"==typeof h}function M(h){return h instanceof X.K||"EmptyError"===h?.name}const S=Symbol("INITIAL_VALUE");function Z(){return(0,he.w)(h=>(0,le.a)(h.map(m=>m.pipe((0,Re.q)(1),(0,ke.O)(S)))).pipe((0,Ne.U)(m=>{for(const u of m)if(!0!==u){if(u===S)return S;if(!1===u||u instanceof lt)return u}return!0}),(0,tt.h)(m=>m!==S),(0,Re.q)(1)))}function Pi(h){return(0,ie.z)((0,Ce.b)(m=>{if(P(m))throw Fe(0,m)}),(0,Ne.U)(m=>!0===m))}const zi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vr(h,m,u,C,O){const $=yr(h,m,u);return $.matched?function ar(h,m,u,C){const O=m.canMatch;if(!O||0===O.length)return(0,A.of)(!0);const $=O.map(Q=>{const Ge=wr(Q,h);return et(function po(h){return h&&Ar(h.canMatch)}(Ge)?Ge.canMatch(m,u):h.runInContext(()=>Ge(m,u)))});return(0,A.of)($).pipe(Z(),Pi())}(C=Hi(m,C),m,u).pipe((0,Ne.U)(Q=>!0===Q?$:{...zi})):(0,A.of)($)}function yr(h,m,u){if(""===m.path)return"full"===m.pathMatch&&(h.hasChildren()||u.length>0)?{...zi}:{matched:!0,consumedSegments:[],remainingSegments:u,parameters:{},positionalParamSegments:{}};const O=(m.matcher||Jt)(u,h,m);if(!O)return{...zi};const $={};an(O.posParams,(Ge,f)=>{$[f]=Ge.path});const Q=O.consumed.length>0?{...$,...O.consumed[O.consumed.length-1].parameters}:$;return{matched:!0,consumedSegments:O.consumed,remainingSegments:u.slice(O.consumed.length),parameters:Q,positionalParamSegments:O.posParams??{}}}function Mo(h,m,u,C){if(u.length>0&&function So(h,m,u){return u.some(C=>Br(h,m,C)&&oi(C)!==te)}(h,u,C)){const $=new fe(m,function Ts(h,m,u,C){const O={};O[te]=C,C._sourceSegment=h,C._segmentIndexShift=m.length;for(const $ of u)if(""===$.path&&oi($)!==te){const Q=new fe([],{});Q._sourceSegment=h,Q._segmentIndexShift=m.length,O[oi($)]=Q}return O}(h,m,C,new fe(u,h.children)));return $._sourceSegment=h,$._segmentIndexShift=m.length,{segmentGroup:$,slicedSegments:[]}}if(0===u.length&&function Xo(h,m,u){return u.some(C=>Br(h,m,C))}(h,u,C)){const $=new fe(h.segments,function Qr(h,m,u,C,O){const $={};for(const Q of C)if(Br(h,u,Q)&&!O[oi(Q)]){const Ge=new fe([],{});Ge._sourceSegment=h,Ge._segmentIndexShift=m.length,$[oi(Q)]=Ge}return{...O,...$}}(h,m,u,C,h.children));return $._sourceSegment=h,$._segmentIndexShift=m.length,{segmentGroup:$,slicedSegments:u}}const O=new fe(h.segments,h.children);return O._sourceSegment=h,O._segmentIndexShift=m.length,{segmentGroup:O,slicedSegments:u}}function Br(h,m,u){return(!(h.hasChildren()||m.length>0)||"full"!==u.pathMatch)&&""===u.path}function us(h,m,u,C){return!!(oi(h)===C||C!==te&&Br(m,u,h))&&("**"===h.path||yr(m,h,u).matched)}function To(h,m,u){return 0===m.length&&!h.children[u]}const Xr=!1;class jo{constructor(m){this.segmentGroup=m||null}}class go{constructor(m){this.urlTree=m}}function _o(h){return(0,j._)(new jo(h))}function Vr(h){return(0,j._)(new go(h))}class Jr{constructor(m,u,C,O,$){this.injector=m,this.configLoader=u,this.urlSerializer=C,this.urlTree=O,this.config=$,this.allowRedirects=!0}apply(){const m=Mo(this.urlTree.root,[],[],this.config).segmentGroup,u=new fe(m.segments,m.children);return this.expandSegmentGroup(this.injector,this.config,u,te).pipe((0,Ne.U)($=>this.createUrlTree(_($),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ht($=>{if($ instanceof go)return this.allowRedirects=!1,this.match($.urlTree);throw $ instanceof jo?this.noMatchError($):$}))}match(m){return this.expandSegmentGroup(this.injector,this.config,m.root,te).pipe((0,Ne.U)(O=>this.createUrlTree(_(O),m.queryParams,m.fragment))).pipe(ht(O=>{throw O instanceof jo?this.noMatchError(O):O}))}noMatchError(m){return new r.vHH(4002,Xr)}createUrlTree(m,u,C){const O=p(m);return new lt(O,u,C)}expandSegmentGroup(m,u,C,O){return 0===C.segments.length&&C.hasChildren()?this.expandChildren(m,u,C).pipe((0,Ne.U)($=>new fe([],$))):this.expandSegment(m,C,u,C.segments,O,!0)}expandChildren(m,u,C){const O=[];for(const $ of Object.keys(C.children))"primary"===$?O.unshift($):O.push($);return(0,c.D)(O).pipe((0,we.b)($=>{const Q=C.children[$],Ge=pr(u,$);return this.expandSegmentGroup(m,Ge,Q,$).pipe((0,Ne.U)(f=>({segment:f,outlet:$})))}),Nt(($,Q)=>($[Q.outlet]=Q.segment,$),{}),gt())}expandSegment(m,u,C,O,$,Q){return(0,c.D)(C).pipe((0,we.b)(Ge=>this.expandSegmentAgainstRoute(m,u,C,Ge,O,$,Q).pipe(ht(l=>{if(l instanceof jo)return(0,A.of)(null);throw l}))),(0,ue.P)(Ge=>!!Ge),ht((Ge,f)=>{if(M(Ge))return To(u,O,$)?(0,A.of)(new fe([],{})):_o(u);throw Ge}))}expandSegmentAgainstRoute(m,u,C,O,$,Q,Ge){return us(O,u,$,Q)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(m,u,O,$,Q):Ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q):_o(u):_o(u)}expandSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(m,C,O,Q):this.expandRegularSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q)}expandWildCardWithParamsAgainstRouteUsingRedirect(m,u,C,O){const $=this.applyRedirectCommands([],C.redirectTo,{});return C.redirectTo.startsWith("/")?Vr($):this.lineralizeSegments(C,$).pipe((0,ye.z)(Q=>{const Ge=new fe(Q,{});return this.expandSegment(m,Ge,u,Q,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(m,u,C,O,$,Q){const{matched:Ge,consumedSegments:f,remainingSegments:l,positionalParamSegments:a}=yr(u,O,$);if(!Ge)return _o(u);const v=this.applyRedirectCommands(f,O.redirectTo,a);return O.redirectTo.startsWith("/")?Vr(v):this.lineralizeSegments(O,v).pipe((0,ye.z)(F=>this.expandSegment(m,u,C,F.concat(l),Q,!1)))}matchSegmentAgainstRoute(m,u,C,O,$){return"**"===C.path?(m=Hi(C,m),C.loadChildren?(C._loadedRoutes?(0,A.of)({routes:C._loadedRoutes,injector:C._loadedInjector}):this.configLoader.loadChildren(m,C)).pipe((0,Ne.U)(Ge=>(C._loadedRoutes=Ge.routes,C._loadedInjector=Ge.injector,new fe(O,{})))):(0,A.of)(new fe(O,{}))):vr(u,C,O,m).pipe((0,he.w)(({matched:Q,consumedSegments:Ge,remainingSegments:f})=>Q?this.getChildConfig(m=C._injector??m,C,O).pipe((0,ye.z)(a=>{const v=a.injector??m,F=a.routes,{segmentGroup:G,slicedSegments:ge}=Mo(u,Ge,f,F),Me=new fe(G.segments,G.children);if(0===ge.length&&Me.hasChildren())return this.expandChildren(v,F,Me).pipe((0,Ne.U)(Yt=>new fe(Ge,Yt)));if(0===F.length&&0===ge.length)return(0,A.of)(new fe(Ge,{}));const Qe=oi(C)===$;return this.expandSegment(v,Me,F,ge,Qe?te:$,!0).pipe((0,Ne.U)(jt=>new fe(Ge.concat(jt.segments),jt.children)))})):_o(u)))}getChildConfig(m,u,C){return u.children?(0,A.of)({routes:u.children,injector:m}):u.loadChildren?void 0!==u._loadedRoutes?(0,A.of)({routes:u._loadedRoutes,injector:u._loadedInjector}):function Ao(h,m,u,C){const O=m.canLoad;if(void 0===O||0===O.length)return(0,A.of)(!0);const $=O.map(Q=>{const Ge=wr(Q,h);return et(function Vo(h){return h&&Ar(h.canLoad)}(Ge)?Ge.canLoad(m,u):h.runInContext(()=>Ge(m,u)))});return(0,A.of)($).pipe(Z(),Pi())}(m,u,C).pipe((0,ye.z)(O=>O?this.configLoader.loadChildren(m,u).pipe((0,Ce.b)($=>{u._loadedRoutes=$.routes,u._loadedInjector=$.injector})):function xo(h){return(0,j._)(Ke(Xr,3))}())):(0,A.of)({routes:[],injector:m})}lineralizeSegments(m,u){let C=[],O=u.root;for(;;){if(C=C.concat(O.segments),0===O.numberOfChildren)return(0,A.of)(C);if(O.numberOfChildren>1||!O.children[te])return(0,j._)(new r.vHH(4e3,Xr));O=O.children[te]}}applyRedirectCommands(m,u,C){return this.applyRedirectCreateUrlTree(u,this.urlSerializer.parse(u),m,C)}applyRedirectCreateUrlTree(m,u,C,O){const $=this.createSegmentGroup(m,u.root,C,O);return new lt($,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(m,u){const C={};return an(m,(O,$)=>{if("string"==typeof O&&O.startsWith(":")){const Ge=O.substring(1);C[$]=u[Ge]}else C[$]=O}),C}createSegmentGroup(m,u,C,O){const $=this.createSegments(m,u.segments,C,O);let Q={};return an(u.children,(Ge,f)=>{Q[f]=this.createSegmentGroup(m,Ge,C,O)}),new fe($,Q)}createSegments(m,u,C,O){return u.map($=>$.path.startsWith(":")?this.findPosParam(m,$,O):this.findOrReturn($,C))}findPosParam(m,u,C){const O=C[u.path.substring(1)];if(!O)throw new r.vHH(4001,Xr);return O}findOrReturn(m,u){let C=0;for(const O of u){if(O.path===m.path)return u.splice(C),O;C++}return m}}class Hr{}class Is{constructor(m,u,C,O,$,Q,Ge){this.injector=m,this.rootComponentType=u,this.config=C,this.urlTree=O,this.url=$,this.paramsInheritanceStrategy=Q,this.urlSerializer=Ge}recognize(){const m=Mo(this.urlTree.root,[],[],this.config.filter(u=>void 0===u.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,m,te).pipe((0,Ne.U)(u=>{if(null===u)return null;const C=new fr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},te,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new Qi(C,u),$=new Lo(this.url,O);return this.inheritParamsAndData($._root),$}))}inheritParamsAndData(m){const u=m.value,C=kr(u,this.paramsInheritanceStrategy);u.params=Object.freeze(C.params),u.data=Object.freeze(C.data),m.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(m,u,C,O){return 0===C.segments.length&&C.hasChildren()?this.processChildren(m,u,C):this.processSegment(m,u,C,C.segments,O)}processChildren(m,u,C){return(0,c.D)(Object.keys(C.children)).pipe((0,we.b)(O=>{const $=C.children[O],Q=pr(u,O);return this.processSegmentGroup(m,Q,$,O)}),Nt((O,$)=>O&&$?(O.push(...$),O):null),function bt(h,m=!1){return(0,ze.e)((u,C)=>{let O=0;u.subscribe((0,Te.x)(C,$=>{const Q=h($,O++);(Q||m)&&C.next($),!Q&&C.complete()}))})}(O=>null!==O),(0,it.d)(null),gt(),(0,Ne.U)(O=>{if(null===O)return null;const $=Os(O);return function Ri(h){h.sort((m,u)=>m.value.outlet===te?-1:u.value.outlet===te?1:m.value.outlet.localeCompare(u.value.outlet))}($),$}))}processSegment(m,u,C,O,$){return(0,c.D)(u).pipe((0,we.b)(Q=>this.processSegmentAgainstRoute(Q._injector??m,Q,C,O,$)),(0,ue.P)(Q=>!!Q),ht(Q=>{if(M(Q))return To(C,O,$)?(0,A.of)([]):(0,A.of)(null);throw Q}))}processSegmentAgainstRoute(m,u,C,O,$){if(u.redirectTo||!us(u,C,O,$))return(0,A.of)(null);let Q;if("**"===u.path){const Ge=O.length>0?Pn(O).parameters:{},f=b(C)+O.length,l=new fr(O,Ge,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,T(u),oi(u),u.component??u._loadedComponent??null,u,eo(C),f,z(u));Q=(0,A.of)({snapshot:l,consumedSegments:[],remainingSegments:[]})}else Q=vr(C,u,O,m).pipe((0,Ne.U)(({matched:Ge,consumedSegments:f,remainingSegments:l,parameters:a})=>{if(!Ge)return null;const v=b(C)+f.length;return{snapshot:new fr(f,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,T(u),oi(u),u.component??u._loadedComponent??null,u,eo(C),v,z(u)),consumedSegments:f,remainingSegments:l}}));return Q.pipe((0,he.w)(Ge=>{if(null===Ge)return(0,A.of)(null);const{snapshot:f,consumedSegments:l,remainingSegments:a}=Ge;m=u._injector??m;const v=u._loadedInjector??m,F=function ds(h){return h.children?h.children:h.loadChildren?h._loadedRoutes:[]}(u),{segmentGroup:G,slicedSegments:ge}=Mo(C,l,a,F.filter(Qe=>void 0===Qe.redirectTo));if(0===ge.length&&G.hasChildren())return this.processChildren(v,F,G).pipe((0,Ne.U)(Qe=>null===Qe?null:[new Qi(f,Qe)]));if(0===F.length&&0===ge.length)return(0,A.of)([new Qi(f,[])]);const Me=oi(u)===$;return this.processSegment(v,F,G,ge,Me?te:$).pipe((0,Ne.U)(Qe=>null===Qe?null:[new Qi(f,Qe)]))}))}}function Hs(h){const m=h.value.routeConfig;return m&&""===m.path&&void 0===m.redirectTo}function Os(h){const m=[],u=new Set;for(const C of h){if(!Hs(C)){m.push(C);continue}const O=m.find($=>C.value.routeConfig===$.value.routeConfig);void 0!==O?(O.children.push(...C.children),u.add(O)):m.push(C)}for(const C of u){const O=Os(C.children);m.push(new Qi(C.value,O))}return m.filter(C=>!u.has(C))}function eo(h){let m=h;for(;m._sourceSegment;)m=m._sourceSegment;return m}function b(h){let m=h,u=m._segmentIndexShift??0;for(;m._sourceSegment;)m=m._sourceSegment,u+=m._segmentIndexShift??0;return u-1}function T(h){return h.data||{}}function z(h){return h.resolve||{}}function $n(h){return"string"==typeof h.title||null===h.title}function Nn(h){return(0,he.w)(m=>{const u=h(m);return u?(0,c.D)(u).pipe((0,Ne.U)(()=>m)):(0,A.of)(m)})}const ci=new r.OlP("ROUTES");let lr=(()=>{class h{constructor(u,C){this.injector=u,this.compiler=C,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,A.of)(u._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(u);const C=et(u.loadComponent()).pipe((0,Ne.U)(Gi),(0,Ce.b)($=>{this.onLoadEndListener&&this.onLoadEndListener(u),u._loadedComponent=$}),(0,Ot.x)(()=>{this.componentLoaders.delete(u)})),O=new je.c(C,()=>new Ee.x).pipe((0,ve.x)());return this.componentLoaders.set(u,O),O}loadChildren(u,C){if(this.childrenLoaders.get(C))return this.childrenLoaders.get(C);if(C._loadedRoutes)return(0,A.of)({routes:C._loadedRoutes,injector:C._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(C);const $=this.loadModuleFactoryOrRoutes(C.loadChildren).pipe((0,Ne.U)(Ge=>{this.onLoadEndListener&&this.onLoadEndListener(C);let f,l,a=!1;Array.isArray(Ge)?l=Ge:(f=Ge.create(u).injector,l=In(f.get(ci,[],r.XFs.Self|r.XFs.Optional)));return{routes:l.map(Un),injector:f}}),(0,Ot.x)(()=>{this.childrenLoaders.delete(C)})),Q=new je.c($,()=>new Ee.x).pipe((0,ve.x)());return this.childrenLoaders.set(C,Q),Q}loadModuleFactoryOrRoutes(u){return et(u()).pipe((0,Ne.U)(Gi),(0,ye.z)(O=>O instanceof r.YKP||Array.isArray(O)?(0,A.of)(O):(0,c.D)(this.compiler.compileModuleAsync(O))))}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(r.zs3),r.LFG(r.Sil))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Gi(h){return function Ji(h){return h&&"object"==typeof h&&"default"in h}(h)?h.default:h}let Pr=(()=>{class h{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Ee.x,this.configLoader=(0,r.f3M)(lr),this.environmentInjector=(0,r.f3M)(r.lqb),this.urlSerializer=(0,r.f3M)(Ut),this.rootContexts=(0,r.f3M)(hn),this.navigationId=0,this.afterPreactivation=()=>(0,A.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=O=>this.events.next(new Ai(O)),this.configLoader.onLoadStartListener=O=>this.events.next(new or(O))}complete(){this.transitions?.complete()}handleNavigationRequest(u){const C=++this.navigationId;this.transitions?.next({...this.transitions.value,...u,id:C})}setupNavigations(u){return this.transitions=new B.X({id:0,targetPageId:0,currentUrlTree:u.currentUrlTree,currentRawUrl:u.currentUrlTree,extractedUrl:u.urlHandlingStrategy.extract(u.currentUrlTree),urlAfterRedirects:u.urlHandlingStrategy.extract(u.currentUrlTree),rawUrl:u.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:qn,restoredState:null,currentSnapshot:u.routerState.snapshot,targetSnapshot:null,currentRouterState:u.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,tt.h)(C=>0!==C.id),(0,Ne.U)(C=>({...C,extractedUrl:u.urlHandlingStrategy.extract(C.rawUrl)})),(0,he.w)(C=>{let O=!1,$=!1;return(0,A.of)(C).pipe((0,Ce.b)(Q=>{this.currentNavigation={id:Q.id,initialUrl:Q.rawUrl,extractedUrl:Q.extractedUrl,trigger:Q.source,extras:Q.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,he.w)(Q=>{const Ge=u.browserUrlTree.toString(),f=!u.navigated||Q.extractedUrl.toString()!==Ge||Ge!==u.currentUrlTree.toString();if(!f&&"reload"!==(Q.extras.onSameUrlNavigation??u.onSameUrlNavigation)){const a="";return this.events.next(new Cn(Q.id,u.serializeUrl(C.rawUrl),a,0)),u.rawUrlTree=Q.rawUrl,Q.resolve(null),ae.E}if(u.urlHandlingStrategy.shouldProcessUrl(Q.rawUrl))return to(Q.source)&&(u.browserUrlTree=Q.extractedUrl),(0,A.of)(Q).pipe((0,he.w)(a=>{const v=this.transitions?.getValue();return this.events.next(new Rn(a.id,this.urlSerializer.serialize(a.extractedUrl),a.source,a.restoredState)),v!==this.transitions?.getValue()?ae.E:Promise.resolve(a)}),function Ur(h,m,u,C){return(0,he.w)(O=>function qr(h,m,u,C,O){return new Jr(h,m,u,C,O).apply()}(h,m,u,O.extractedUrl,C).pipe((0,Ne.U)($=>({...O,urlAfterRedirects:$}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,u.config),(0,Ce.b)(a=>{this.currentNavigation={...this.currentNavigation,finalUrl:a.urlAfterRedirects},C.urlAfterRedirects=a.urlAfterRedirects}),function _e(h,m,u,C,O){return(0,ye.z)($=>function xs(h,m,u,C,O,$,Q="emptyOnly"){return new Is(h,m,u,C,O,Q,$).recognize().pipe((0,he.w)(Ge=>null===Ge?function ai(h){return new ee.y(m=>m.error(h))}(new Hr):(0,A.of)(Ge)))}(h,m,u,$.urlAfterRedirects,C.serialize($.urlAfterRedirects),C,O).pipe((0,Ne.U)(Q=>({...$,targetSnapshot:Q}))))}(this.environmentInjector,this.rootComponentType,u.config,this.urlSerializer,u.paramsInheritanceStrategy),(0,Ce.b)(a=>{if(C.targetSnapshot=a.targetSnapshot,"eager"===u.urlUpdateStrategy){if(!a.extras.skipLocationChange){const F=u.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl);u.setBrowserUrl(F,a)}u.browserUrlTree=a.urlAfterRedirects}const v=new rr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(v)}));if(f&&u.urlHandlingStrategy.shouldProcessUrl(u.rawUrlTree)){const{id:a,extractedUrl:v,source:F,restoredState:G,extras:ge}=Q,Me=new Rn(a,this.urlSerializer.serialize(v),F,G);this.events.next(Me);const Qe=bi(v,this.rootComponentType).snapshot;return C={...Q,targetSnapshot:Qe,urlAfterRedirects:v,extras:{...ge,skipLocationChange:!1,replaceUrl:!1}},(0,A.of)(C)}{const a="";return this.events.next(new Cn(Q.id,u.serializeUrl(C.extractedUrl),a,1)),u.rawUrlTree=Q.rawUrl,Q.resolve(null),ae.E}}),(0,Ce.b)(Q=>{const Ge=new Fr(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects),Q.targetSnapshot);this.events.next(Ge)}),(0,Ne.U)(Q=>C={...Q,guards:wo(Q.targetSnapshot,Q.currentSnapshot,this.rootContexts)}),function ot(h,m){return(0,ye.z)(u=>{const{targetSnapshot:C,currentSnapshot:O,guards:{canActivateChecks:$,canDeactivateChecks:Q}}=u;return 0===Q.length&&0===$.length?(0,A.of)({...u,guardsResult:!0}):function on(h,m,u,C){return(0,c.D)(h).pipe((0,ye.z)(O=>function mo(h,m,u,C,O){const $=m&&m.routeConfig?m.routeConfig.canDeactivate:null;if(!$||0===$.length)return(0,A.of)(!0);const Q=$.map(Ge=>{const f=Hn(m)??O,l=wr(Ge,f);return et(function Ho(h){return h&&Ar(h.canDeactivate)}(l)?l.canDeactivate(h,m,u,C):f.runInContext(()=>l(h,m,u,C))).pipe((0,ue.P)())});return(0,A.of)(Q).pipe(Z())}(O.component,O.route,u,m,C)),(0,ue.P)(O=>!0!==O,!0))}(Q,C,O,h).pipe((0,ye.z)(Ge=>Ge&&function Ss(h){return"boolean"==typeof h}(Ge)?function Yn(h,m,u,C){return(0,c.D)(m).pipe((0,we.b)(O=>(0,q.z)(function qi(h,m){return null!==h&&m&&m(new Zi(h)),(0,A.of)(!0)}(O.route.parent,C),function si(h,m){return null!==h&&m&&m(new Zn(h)),(0,A.of)(!0)}(O.route,C),function Lr(h,m,u){const C=m[m.length-1],$=m.slice(0,m.length-1).reverse().map(Q=>function ho(h){const m=h.routeConfig?h.routeConfig.canActivateChild:null;return m&&0!==m.length?{node:h,guards:m}:null}(Q)).filter(Q=>null!==Q).map(Q=>(0,ne.P)(()=>{const Ge=Q.guards.map(f=>{const l=Hn(Q.node)??u,a=wr(f,l);return et(function Uo(h){return h&&Ar(h.canActivateChild)}(a)?a.canActivateChild(C,h):l.runInContext(()=>a(C,h))).pipe((0,ue.P)())});return(0,A.of)(Ge).pipe(Z())}));return(0,A.of)($).pipe(Z())}(h,O.path,u),function _r(h,m,u){const C=m.routeConfig?m.routeConfig.canActivate:null;if(!C||0===C.length)return(0,A.of)(!0);const O=C.map($=>(0,ne.P)(()=>{const Q=Hn(m)??u,Ge=wr($,Q);return et(function cs(h){return h&&Ar(h.canActivate)}(Ge)?Ge.canActivate(m,h):Q.runInContext(()=>Ge(m,h))).pipe((0,ue.P)())}));return(0,A.of)(O).pipe(Z())}(h,O.route,u))),(0,ue.P)(O=>!0!==O,!0))}(C,$,h,m):(0,A.of)(Ge)),(0,Ne.U)(Ge=>({...u,guardsResult:Ge})))})}(this.environmentInjector,Q=>this.events.next(Q)),(0,Ce.b)(Q=>{if(C.guardsResult=Q.guardsResult,P(Q.guardsResult))throw Fe(0,Q.guardsResult);const Ge=new Ki(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects),Q.targetSnapshot,!!Q.guardsResult);this.events.next(Ge)}),(0,tt.h)(Q=>!!Q.guardsResult||(u.restoreHistory(Q),this.cancelNavigationTransition(Q,"",3),!1)),Nn(Q=>{if(Q.guards.canActivateChecks.length)return(0,A.of)(Q).pipe((0,Ce.b)(Ge=>{const f=new vi(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(Ge.urlAfterRedirects),Ge.targetSnapshot);this.events.next(f)}),(0,he.w)(Ge=>{let f=!1;return(0,A.of)(Ge).pipe(function at(h,m){return(0,ye.z)(u=>{const{targetSnapshot:C,guards:{canActivateChecks:O}}=u;if(!O.length)return(0,A.of)(u);let $=0;return(0,c.D)(O).pipe((0,we.b)(Q=>function mt(h,m,u,C){const O=h.routeConfig,$=h._resolve;return void 0!==O?.title&&!$n(O)&&($[Ve]=O.title),function nn(h,m,u,C){const O=function jn(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}(h);if(0===O.length)return(0,A.of)({});const $={};return(0,c.D)(O).pipe((0,ye.z)(Q=>function Wn(h,m,u,C){const O=Hn(m)??C,$=wr(h,O);return et($.resolve?$.resolve(m,u):O.runInContext(()=>$(m,u)))}(h[Q],m,u,C).pipe((0,ue.P)(),(0,Ce.b)(Ge=>{$[Q]=Ge}))),Mt(1),(0,wt.h)($),ht(Q=>M(Q)?ae.E:(0,j._)(Q)))}($,h,m,C).pipe((0,Ne.U)(Q=>(h._resolvedData=Q,h.data=kr(h,u).resolve,O&&$n(O)&&(h.data[Ve]=O.title),null)))}(Q.route,C,h,m)),(0,Ce.b)(()=>$++),Mt(1),(0,ye.z)(Q=>$===O.length?(0,A.of)(u):ae.E))})}(u.paramsInheritanceStrategy,this.environmentInjector),(0,Ce.b)({next:()=>f=!0,complete:()=>{f||(u.restoreHistory(Ge),this.cancelNavigationTransition(Ge,"",2))}}))}),(0,Ce.b)(Ge=>{const f=new xi(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),this.urlSerializer.serialize(Ge.urlAfterRedirects),Ge.targetSnapshot);this.events.next(f)}))}),Nn(Q=>{const Ge=f=>{const l=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(f.routeConfig).pipe((0,Ce.b)(a=>{f.component=a}),(0,Ne.U)(()=>{})));for(const a of f.children)l.push(...Ge(a));return l};return(0,le.a)(Ge(Q.targetSnapshot.root)).pipe((0,it.d)(),(0,Re.q)(1))}),Nn(()=>this.afterPreactivation()),(0,Ne.U)(Q=>{const Ge=function Kr(h,m,u){const C=Ii(h,m._root,u?u._root:void 0);return new xr(C,m)}(u.routeReuseStrategy,Q.targetSnapshot,Q.currentRouterState);return C={...Q,targetRouterState:Ge}}),(0,Ce.b)(Q=>{u.currentUrlTree=Q.urlAfterRedirects,u.rawUrlTree=u.urlHandlingStrategy.merge(Q.urlAfterRedirects,Q.rawUrl),u.routerState=Q.targetRouterState,"deferred"===u.urlUpdateStrategy&&(Q.extras.skipLocationChange||u.setBrowserUrl(u.rawUrlTree,Q),u.browserUrlTree=Q.urlAfterRedirects)}),((h,m,u)=>(0,Ne.U)(C=>(new uo(m,C.targetRouterState,C.currentRouterState,u).activate(h),C)))(this.rootContexts,u.routeReuseStrategy,Q=>this.events.next(Q)),(0,Ce.b)({next:Q=>{O=!0,this.lastSuccessfulNavigation=this.currentNavigation,u.navigated=!0,this.events.next(new fi(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(u.currentUrlTree))),u.titleStrategy?.updateTitle(Q.targetRouterState.snapshot),Q.resolve(!0)},complete:()=>{O=!0}}),(0,Ot.x)(()=>{O||$||this.cancelNavigationTransition(C,"",1),this.currentNavigation?.id===C.id&&(this.currentNavigation=null)}),ht(Q=>{if($=!0,Ft(Q)){dt(Q)||(u.navigated=!0,u.restoreHistory(C,!0));const Ge=new wi(C.id,this.urlSerializer.serialize(C.extractedUrl),Q.message,Q.cancellationCode);if(this.events.next(Ge),dt(Q)){const f=u.urlHandlingStrategy.merge(Q.url,u.rawUrlTree),l={skipLocationChange:C.extras.skipLocationChange,replaceUrl:"eager"===u.urlUpdateStrategy||to(C.source)};u.scheduleNavigation(f,qn,null,l,{resolve:C.resolve,reject:C.reject,promise:C.promise})}else C.resolve(!1)}else{u.restoreHistory(C,!0);const Ge=new Yi(C.id,this.urlSerializer.serialize(C.extractedUrl),Q,C.targetSnapshot??void 0);this.events.next(Ge);try{C.resolve(u.errorHandler(Q))}catch(f){C.reject(f)}}return ae.E}))}))}cancelNavigationTransition(u,C,O){const $=new wi(u.id,this.urlSerializer.serialize(u.extractedUrl),C,O);this.events.next($),u.resolve(!1)}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function to(h){return h!==qn}let vo=(()=>{class h{buildTitle(u){let C,O=u.root;for(;void 0!==O;)C=this.getResolvedTitleForRoute(O)??C,O=O.children.find($=>$.outlet===te);return C}getResolvedTitleForRoute(u){return u.data[Ve]}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(hs)},providedIn:"root"}),h})(),hs=(()=>{class h extends vo{constructor(u){super(),this.title=u}updateTitle(u){const C=this.buildTitle(u);void 0!==C&&this.title.setTitle(C)}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(L.Dx))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),qo=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(js)},providedIn:"root"}),h})();class fs{shouldDetach(m){return!1}store(m,u){}shouldAttach(m){return!1}retrieve(m){return null}shouldReuseRoute(m,u){return m.routeConfig===u.routeConfig}}let js=(()=>{class h extends fs{}return h.\u0275fac=function(){let m;return function(C){return(m||(m=r.n5z(h)))(C||h)}}(),h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Io=new r.OlP("",{providedIn:"root",factory:()=>({})});let Js=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(Mr)},providedIn:"root"}),h})(),Mr=(()=>{class h{shouldProcessUrl(u){return!0}extract(u){return u}merge(u,C){return u}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function $o(h){throw h}function Jo(h,m,u){return m.parse("/")}const $r={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},es={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vi=(()=>{class h{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,r.f3M)(r.c2e),this.isNgZoneEnabled=!1,this.options=(0,r.f3M)(Io,{optional:!0})||{},this.errorHandler=this.options.errorHandler||$o,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Jo,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,r.f3M)(Js),this.routeReuseStrategy=(0,r.f3M)(qo),this.urlCreationStrategy=(0,r.f3M)(mi),this.titleStrategy=(0,r.f3M)(vo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=In((0,r.f3M)(ci,{optional:!0})??[]),this.navigationTransitions=(0,r.f3M)(Pr),this.urlSerializer=(0,r.f3M)(Ut),this.location=(0,r.f3M)(Le.Ye),this.isNgZoneEnabled=(0,r.f3M)(r.R0b)instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new lt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=bi(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(u=>{this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId},u=>{this.console.warn(`Unhandled Navigation Error: ${u}`)})}resetRootComponentType(u){this.routerState.root.component=u,this.navigationTransitions.rootComponentType=u}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const u=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),qn,u)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(u=>{const C="popstate"===u.type?"popstate":"hashchange";"popstate"===C&&setTimeout(()=>{this.navigateToSyncWithBrowser(u.url,C,u.state)},0)}))}navigateToSyncWithBrowser(u,C,O){const $={replaceUrl:!0},Q=O?.navigationId?O:null;if(O){const f={...O};delete f.navigationId,delete f.\u0275routerPageId,0!==Object.keys(f).length&&($.state=f)}const Ge=this.parseUrl(u);this.scheduleNavigation(Ge,C,Q,$)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(u){this.config=u.map(Un),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(u,C={}){const{relativeTo:O,queryParams:$,fragment:Q,queryParamsHandling:Ge,preserveFragment:f}=C,l=f?this.currentUrlTree.fragment:Q;let a=null;switch(Ge){case"merge":a={...this.currentUrlTree.queryParams,...$};break;case"preserve":a=this.currentUrlTree.queryParams;break;default:a=$||null}return null!==a&&(a=this.removeEmptyProps(a)),this.urlCreationStrategy.createUrlTree(O,this.routerState,this.currentUrlTree,u,a,l??null)}navigateByUrl(u,C={skipLocationChange:!1}){const O=P(u)?u:this.parseUrl(u),$=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation($,qn,null,C)}navigate(u,C={skipLocationChange:!1}){return function ps(h){for(let m=0;m<h.length;m++){if(null==h[m])throw new r.vHH(4008,!1)}}(u),this.navigateByUrl(this.createUrlTree(u,C),C)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let C;try{C=this.urlSerializer.parse(u)}catch(O){C=this.malformedUriErrorHandler(O,this.urlSerializer,u)}return C}isActive(u,C){let O;if(O=!0===C?{...$r}:!1===C?{...es}:C,P(u))return rt(this.currentUrlTree,u,O);const $=this.parseUrl(u);return rt(this.currentUrlTree,$,O)}removeEmptyProps(u){return Object.keys(u).reduce((C,O)=>{const $=u[O];return null!=$&&(C[O]=$),C},{})}scheduleNavigation(u,C,O,$,Q){if(this.disposed)return Promise.resolve(!1);let Ge,f,l,a;return Q?(Ge=Q.resolve,f=Q.reject,l=Q.promise):l=new Promise((v,F)=>{Ge=v,f=F}),a="computed"===this.canceledNavigationResolution?O&&O.\u0275routerPageId?O.\u0275routerPageId:$.replaceUrl||$.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:a,source:C,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:u,extras:$,resolve:Ge,reject:f,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(v=>Promise.reject(v))}setBrowserUrl(u,C){const O=this.urlSerializer.serialize(u),$={...C.extras.state,...this.generateNgRouterState(C.id,C.targetPageId)};this.location.isCurrentPathEqualTo(O)||C.extras.replaceUrl?this.location.replaceState(O,"",$):this.location.go(O,"",$)}restoreHistory(u,C=!1){if("computed"===this.canceledNavigationResolution){const O=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===O?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===O&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(O)}else"replace"===this.canceledNavigationResolution&&(C&&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))}generateNgRouterState(u,C){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:C}:{navigationId:u}}}return h.\u0275fac=function(u){return new(u||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();class Sr{}let no=(()=>{class h{constructor(u,C,O,$,Q){this.router=u,this.injector=O,this.preloadingStrategy=$,this.loader=Q}setUpPreloading(){this.subscription=this.router.events.pipe((0,tt.h)(u=>u instanceof fi),(0,we.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,C){const O=[];for(const $ of C){$.providers&&!$._injector&&($._injector=(0,r.MMx)($.providers,u,`Route: ${$.path}`));const Q=$._injector??u,Ge=$._loadedInjector??Q;$.loadChildren&&!$._loadedRoutes&&void 0===$.canLoad||$.loadComponent&&!$._loadedComponent?O.push(this.preloadConfig(Q,$)):($.children||$._loadedRoutes)&&O.push(this.processRoutes(Ge,$.children??$._loadedRoutes))}return(0,c.D)(O).pipe((0,qe.J)())}preloadConfig(u,C){return this.preloadingStrategy.preload(C,()=>{let O;O=C.loadChildren&&void 0===C.canLoad?this.loader.loadChildren(u,C):(0,A.of)(null);const $=O.pipe((0,ye.z)(Q=>null===Q?(0,A.of)(void 0):(C._loadedRoutes=Q.routes,C._loadedInjector=Q.injector,this.processRoutes(Q.injector??u,Q.routes))));if(C.loadComponent&&!C._loadedComponent){const Q=this.loader.loadComponent(C);return(0,c.D)([$,Q]).pipe((0,qe.J)())}return $})}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(Vi),r.LFG(r.Sil),r.LFG(r.lqb),r.LFG(Sr),r.LFG(lr))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const zo=new r.OlP("");let ms=(()=>{class h{constructor(u,C,O,$,Q={}){this.urlSerializer=u,this.transitions=C,this.viewportScroller=O,this.zone=$,this.options=Q,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Q.scrollPositionRestoration=Q.scrollPositionRestoration||"disabled",Q.anchorScrolling=Q.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(u=>{u instanceof Rn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof fi&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.urlSerializer.parse(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(u=>{u instanceof Tr&&(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,C){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Tr(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,C))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return h.\u0275fac=function(u){r.$Z()},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),h})();function br(h,m){return{\u0275kind:h,\u0275providers:m}}function io(){const h=(0,r.f3M)(r.zs3);return m=>{const u=h.get(r.z2F);if(m!==u.components[0])return;const C=h.get(Vi),O=h.get(ro);1===h.get(Po)&&C.initialNavigation(),h.get(ta,null,r.XFs.Optional)?.setUpPreloading(),h.get(zo,null,r.XFs.Optional)?.init(),C.resetRootComponentType(u.componentTypes[0]),O.closed||(O.next(),O.unsubscribe())}}const ro=new r.OlP("",{factory:()=>new Ee.x}),Po=new r.OlP("",{providedIn:"root",factory:()=>1});const ta=new r.OlP("");function gs(h){return br(0,[{provide:ta,useExisting:no},{provide:Sr,useExisting:h}])}const na=new r.OlP("ROUTER_FORROOT_GUARD"),ga=[Le.Ye,{provide:Ut,useClass:An},Vi,hn,{provide:sr,useFactory:function ea(h){return h.routerState.root},deps:[Vi]},lr,[]];function _a(){return new r.PXZ("Router",Vi)}let va=(()=>{class h{constructor(u){}static forRoot(u,C){return{ngModule:h,providers:[ga,[],{provide:ci,multi:!0,useValue:u},{provide:na,useFactory:Ti,deps:[[Vi,new r.FiY,new r.tp0]]},{provide:Io,useValue:C||{}},C?.useHash?{provide:Le.S$,useClass:Le.Do}:{provide:Le.S$,useClass:Le.b0},{provide:zo,useFactory:()=>{const h=(0,r.f3M)(Le.EM),m=(0,r.f3M)(r.R0b),u=(0,r.f3M)(Io),C=(0,r.f3M)(Pr),O=(0,r.f3M)(Ut);return u.scrollOffset&&h.setOffset(u.scrollOffset),new ms(O,C,h,m,u)}},C?.preloadingStrategy?gs(C.preloadingStrategy).\u0275providers:[],{provide:r.PXZ,multi:!0,useFactory:_a},C?.initialNavigation?bo(C):[],[{provide:Yo,useFactory:io},{provide:r.tb,multi:!0,useExisting:Yo}]]}}static forChild(u){return{ngModule:h,providers:[{provide:ci,multi:!0,useValue:u}]}}}return h.\u0275fac=function(u){return new(u||h)(r.LFG(na,8))},h.\u0275mod=r.oAB({type:h}),h.\u0275inj=r.cJS({imports:[hi]}),h})();function Ti(h){return"guarded"}function bo(h){return["disabled"===h.initialNavigation?br(3,[{provide:r.ip1,multi:!0,useFactory:()=>{const m=(0,r.f3M)(Vi);return()=>{m.setUpLocationChangeListener()}}},{provide:Po,useValue:2}]).\u0275providers:[],"enabledBlocking"===h.initialNavigation?br(2,[{provide:Po,useValue:0},{provide:r.ip1,multi:!0,deps:[r.zs3],useFactory:m=>{const u=m.get(Le.V_,Promise.resolve());return()=>u.then(()=>new Promise(O=>{const $=m.get(Vi),Q=m.get(ro);(function C(O){m.get(Vi).events.pipe((0,tt.h)(Q=>Q instanceof fi||Q instanceof wi||Q instanceof Yi),(0,Ne.U)(Q=>Q instanceof fi||Q instanceof wi&&(0===Q.code||1===Q.code)&&null),(0,tt.h)(Q=>null!==Q),(0,Re.q)(1)).subscribe(()=>{O()})})(()=>{O(!0)}),m.get(Pr).afterPreactivation=()=>(O(!0),Q.closed?(0,A.of)(void 0):Q),$.initialNavigation()}))}}]).\u0275providers:[]]}const Yo=new r.OlP("")},3942:(Dt,Se,g)=>{g.d(Se,{Z:()=>Le});var r=g(2090),c=g(4859),A=g(9681),B=g(1877);class X{constructor(he,Re){this._delegate=he,this.firebase=Re,(0,A._addComponent)(he,new c.wA("app-compat",()=>this,"PUBLIC")),this.container=he.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(he){this._delegate.automaticDataCollectionEnabled=he}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(he=>{this._delegate.checkDestroyed(),he()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,A.deleteApp)(this._delegate)))}_getService(he,Re=A._DEFAULT_ENTRY_NAME){var ke;this._delegate.checkDestroyed();const tt=this._delegate.container.getProvider(he);return!tt.isInitialized()&&"EXPLICIT"===(null===(ke=tt.getComponent())||void 0===ke?void 0:ke.instantiationMode)&&tt.initialize(),tt.getImmediate({identifier:Re})}_removeServiceInstance(he,Re=A._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(he).clearInstance(Re)}_addComponent(he){(0,A._addComponent)(this._delegate,he)}_addOrOverwriteComponent(he){(0,A._addOrOverwriteComponent)(this._delegate,he)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const q=new r.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."}),j=function ie(){const Ne=function ne(Ne){const he={},Re={__esModule:!0,initializeApp:function ye(Ue,Te={}){const ze=A.initializeApp(Ue,Te);if((0,r.r3)(he,ze.name))return he[ze.name];const ht=new Ne(ze,Re);return he[ze.name]=ht,ht},app:tt,registerVersion:A.registerVersion,setLogLevel:A.setLogLevel,onLog:A.onLog,apps:null,SDK_VERSION:A.SDK_VERSION,INTERNAL:{registerComponent:function we(Ue){const Te=Ue.name,ze=Te.replace("-compat","");if(A._registerComponent(Ue)&&"PUBLIC"===Ue.type){const ht=(vt=tt())=>{if("function"!=typeof vt[ze])throw q.create("invalid-app-argument",{appName:Te});return vt[ze]()};void 0!==Ue.serviceProps&&(0,r.ZB)(ht,Ue.serviceProps),Re[ze]=ht,Ne.prototype[ze]=function(...vt){return this._getService.bind(this,Te).apply(this,Ue.multipleInstances?vt:[])}}return"PUBLIC"===Ue.type?Re[ze]:null},removeApp:function ke(Ue){delete he[Ue]},useAsService:function Ce(Ue,Te){return"serverAuth"===Te?null:Te},modularAPIs:A}};function tt(Ue){if(!(0,r.r3)(he,Ue=Ue||A._DEFAULT_ENTRY_NAME))throw q.create("no-app",{appName:Ue});return he[Ue]}return Re.default=Re,Object.defineProperty(Re,"apps",{get:function ue(){return Object.keys(he).map(Ue=>he[Ue])}}),tt.App=Ne,Re}(X);return Ne.INTERNAL=Object.assign(Object.assign({},Ne.INTERNAL),{createFirebaseNamespace:ie,extendNamespace:function he(Re){(0,r.ZB)(Ne,Re)},createSubscribe:r.ne,ErrorFactory:r.LL,deepExtend:r.ZB}),Ne}(),ee=new B.Yd("@firebase/app-compat");if((0,r.jU)()&&void 0!==self.firebase){ee.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const Ne=self.firebase.SDK_VERSION;Ne&&Ne.indexOf("LITE")>=0&&ee.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 Le=j;!function Ee(Ne){(0,A.registerVersion)("@firebase/app-compat","0.2.3",Ne)}()},9681:(Dt,Se,g)=>{g.r(Se),g.d(Se,{FirebaseError:()=>B.ZR,SDK_VERSION:()=>En,_DEFAULT_ENTRY_NAME:()=>bt,_addComponent:()=>qe,_addOrOverwriteComponent:()=>L,_apps:()=>Ot,_clearComponents:()=>Bt,_components:()=>ve,_getProvider:()=>Ve,_registerComponent:()=>te,_removeServiceInstance:()=>ut,deleteApp:()=>an,getApp:()=>Pn,getApps:()=>Fn,initializeApp:()=>In,onLog:()=>se,registerVersion:()=>W,setLogLevel:()=>Ie});var r=g(5861),c=g(4859),A=g(1877),B=g(2090),X=g(8766);class le{constructor(J){this.container=J}getPlatformInfoString(){return this.container.getProviders().map(V=>{if(function q(Oe){return"VERSION"===Oe.getComponent()?.type}(V)){const U=V.getImmediate();return`${U.library}/${U.version}`}return null}).filter(V=>V).join(" ")}}const ne="@firebase/app",j=new A.Yd("@firebase/app"),bt="[DEFAULT]",wt={[ne]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Ot=new Map,ve=new Map;function qe(Oe,J){try{Oe.container.addComponent(J)}catch(V){j.debug(`Component ${J.name} failed to register with FirebaseApp ${Oe.name}`,V)}}function L(Oe,J){Oe.container.addOrOverwriteComponent(J)}function te(Oe){const J=Oe.name;if(ve.has(J))return j.debug(`There were multiple attempts to register component ${J}.`),!1;ve.set(J,Oe);for(const V of Ot.values())qe(V,Oe);return!0}function Ve(Oe,J){const V=Oe.container.getProvider("heartbeat").getImmediate({optional:!0});return V&&V.triggerHeartbeat(),Oe.container.getProvider(J)}function ut(Oe,J,V=bt){Ve(Oe,J).clearInstance(V)}function Bt(){ve.clear()}const Vt=new B.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 en{constructor(J,V,U){this._isDeleted=!1,this._options=Object.assign({},J),this._config=Object.assign({},V),this._name=V.name,this._automaticDataCollectionEnabled=V.automaticDataCollectionEnabled,this._container=U,this.container.addComponent(new c.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(J){this.checkDestroyed(),this._automaticDataCollectionEnabled=J}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(J){this._isDeleted=J}checkDestroyed(){if(this.isDeleted)throw Vt.create("app-deleted",{appName:this._name})}}const En="9.17.1";function In(Oe,J={}){let V=Oe;"object"!=typeof J&&(J={name:J});const U=Object.assign({name:bt,automaticDataCollectionEnabled:!1},J),oe=U.name;if("string"!=typeof oe||!oe)throw Vt.create("bad-app-name",{appName:String(oe)});if(V||(V=(0,B.aH)()),!V)throw Vt.create("no-options");const Ze=Ot.get(oe);if(Ze){if((0,B.vZ)(V,Ze.options)&&(0,B.vZ)(U,Ze.config))return Ze;throw Vt.create("duplicate-app",{appName:oe})}const K=new c.H0(oe);for(const be of ve.values())K.addComponent(be);const ce=new en(V,U,K);return Ot.set(oe,ce),ce}function Pn(Oe=bt){const J=Ot.get(Oe);if(!J&&Oe===bt)return In();if(!J)throw Vt.create("no-app",{appName:Oe});return J}function Fn(){return Array.from(Ot.values())}function an(Oe){return et.apply(this,arguments)}function et(){return(et=(0,r.Z)(function*(Oe){const J=Oe.name;Ot.has(J)&&(Ot.delete(J),yield Promise.all(Oe.container.getProviders().map(V=>V.delete())),Oe.isDeleted=!0)})).apply(this,arguments)}function W(Oe,J,V){var U;let oe=null!==(U=wt[Oe])&&void 0!==U?U:Oe;V&&(oe+=`-${V}`);const Ze=oe.match(/\s|\//),K=J.match(/\s|\//);if(Ze||K){const ce=[`Unable to register library "${oe}" with version "${J}":`];return Ze&&ce.push(`library name "${oe}" contains illegal characters (whitespace or "/")`),Ze&&K&&ce.push("and"),K&&ce.push(`version name "${J}" contains illegal characters (whitespace or "/")`),void j.warn(ce.join(" "))}te(new c.wA(`${oe}-version`,()=>({library:oe,version:J}),"VERSION"))}function se(Oe,J){if(null!==Oe&&"function"!=typeof Oe)throw Vt.create("invalid-log-argument");(0,A.Am)(Oe,J)}function Ie(Oe){(0,A.Ub)(Oe)}const At="firebase-heartbeat-store";let $t=null;function It(){return $t||($t=(0,X.X3)("firebase-heartbeat-database",1,{upgrade:(Oe,J)=>{0===J&&Oe.createObjectStore(At)}}).catch(Oe=>{throw Vt.create("idb-open",{originalErrorMessage:Oe.message})})),$t}function De(){return(De=(0,r.Z)(function*(Oe){try{return(yield It()).transaction(At).objectStore(At).get(Ye(Oe))}catch(J){if(J instanceof B.ZR)j.warn(J.message);else{const V=Vt.create("idb-get",{originalErrorMessage:J?.message});j.warn(V.message)}}})).apply(this,arguments)}function lt(Oe,J){return fe.apply(this,arguments)}function fe(){return(fe=(0,r.Z)(function*(Oe,J){try{const U=(yield It()).transaction(At,"readwrite");return yield U.objectStore(At).put(J,Ye(Oe)),U.done}catch(V){if(V instanceof B.ZR)j.warn(V.message);else{const U=Vt.create("idb-set",{originalErrorMessage:V?.message});j.warn(U.message)}}})).apply(this,arguments)}function Ye(Oe){return`${Oe.name}!${Oe.options.appId}`}class ln{constructor(J){this.container=J,this._heartbeatsCache=null;const V=this.container.getProvider("app").getImmediate();this._storage=new rn(V),this._heartbeatsCachePromise=this._storage.read().then(U=>(this._heartbeatsCache=U,U))}triggerHeartbeat(){var J=this;return(0,r.Z)(function*(){const U=J.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),oe=Ut();if(null===J._heartbeatsCache&&(J._heartbeatsCache=yield J._heartbeatsCachePromise),J._heartbeatsCache.lastSentHeartbeatDate!==oe&&!J._heartbeatsCache.heartbeats.some(Ze=>Ze.date===oe))return J._heartbeatsCache.heartbeats.push({date:oe,agent:U}),J._heartbeatsCache.heartbeats=J._heartbeatsCache.heartbeats.filter(Ze=>{const K=new Date(Ze.date).valueOf();return Date.now()-K<=2592e6}),J._storage.overwrite(J._heartbeatsCache)})()}getHeartbeatsHeader(){var J=this;return(0,r.Z)(function*(){if(null===J._heartbeatsCache&&(yield J._heartbeatsCachePromise),null===J._heartbeatsCache||0===J._heartbeatsCache.heartbeats.length)return"";const V=Ut(),{heartbeatsToSend:U,unsentEntries:oe}=function An(Oe,J=1024){const V=[];let U=Oe.slice();for(const oe of Oe){const Ze=V.find(K=>K.agent===oe.agent);if(Ze){if(Ze.dates.push(oe.date),Tn(V)>J){Ze.dates.pop();break}}else if(V.push({agent:oe.agent,dates:[oe.date]}),Tn(V)>J){V.pop();break}U=U.slice(1)}return{heartbeatsToSend:V,unsentEntries:U}}(J._heartbeatsCache.heartbeats),Ze=(0,B.L)(JSON.stringify({version:2,heartbeats:U}));return J._heartbeatsCache.lastSentHeartbeatDate=V,oe.length>0?(J._heartbeatsCache.heartbeats=oe,yield J._storage.overwrite(J._heartbeatsCache)):(J._heartbeatsCache.heartbeats=[],J._storage.overwrite(J._heartbeatsCache)),Ze})()}}function Ut(){return(new Date).toISOString().substring(0,10)}class rn{constructor(J){this.app=J,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,r.Z)(function*(){return!!(0,B.hl)()&&(0,B.eu)().then(()=>!0).catch(()=>!1)})()}read(){var J=this;return(0,r.Z)(function*(){return(yield J._canUseIndexedDBPromise)&&(yield function Tt(Oe){return De.apply(this,arguments)}(J.app))||{heartbeats:[]}})()}overwrite(J){var V=this;return(0,r.Z)(function*(){var U;if(yield V._canUseIndexedDBPromise){const Ze=yield V.read();return lt(V.app,{lastSentHeartbeatDate:null!==(U=J.lastSentHeartbeatDate)&&void 0!==U?U:Ze.lastSentHeartbeatDate,heartbeats:J.heartbeats})}})()}add(J){var V=this;return(0,r.Z)(function*(){var U;if(yield V._canUseIndexedDBPromise){const Ze=yield V.read();return lt(V.app,{lastSentHeartbeatDate:null!==(U=J.lastSentHeartbeatDate)&&void 0!==U?U:Ze.lastSentHeartbeatDate,heartbeats:[...Ze.heartbeats,...J.heartbeats]})}})()}}function Tn(Oe){return(0,B.L)(JSON.stringify({version:2,heartbeats:Oe})).length}!function xn(Oe){te(new c.wA("platform-logger",J=>new le(J),"PRIVATE")),te(new c.wA("heartbeat",J=>new ln(J),"PRIVATE")),W(ne,"0.9.3",Oe),W(ne,"0.9.3","esm2017"),W("fire-js","")}("")},4859:(Dt,Se,g)=>{g.d(Se,{H0:()=>ne,wA:()=>A});var r=g(5861),c=g(2090);class A{constructor(j,ee,ae){this.name=j,this.instanceFactory=ee,this.type=ae,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(j){return this.instantiationMode=j,this}setMultipleInstances(j){return this.multipleInstances=j,this}setServiceProps(j){return this.serviceProps=j,this}setInstanceCreatedCallback(j){return this.onInstanceCreated=j,this}}const B="[DEFAULT]";class X{constructor(j,ee){this.name=j,this.container=ee,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(j){const ee=this.normalizeInstanceIdentifier(j);if(!this.instancesDeferred.has(ee)){const ae=new c.BH;if(this.instancesDeferred.set(ee,ae),this.isInitialized(ee)||this.shouldAutoInitialize())try{const je=this.getOrInitializeService({instanceIdentifier:ee});je&&ae.resolve(je)}catch{}}return this.instancesDeferred.get(ee).promise}getImmediate(j){var ee;const ae=this.normalizeInstanceIdentifier(j?.identifier),je=null!==(ee=j?.optional)&&void 0!==ee&ⅇif(!this.isInitialized(ae)&&!this.shouldAutoInitialize()){if(je)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:ae})}catch(Ee){if(je)return null;throw Ee}}getComponent(){return this.component}setComponent(j){if(j.name!==this.name)throw Error(`Mismatching Component ${j.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=j,this.shouldAutoInitialize()){if(function q(ie){return"EAGER"===ie.instantiationMode}(j))try{this.getOrInitializeService({instanceIdentifier:B})}catch{}for(const[ee,ae]of this.instancesDeferred.entries()){const je=this.normalizeInstanceIdentifier(ee);try{const Ee=this.getOrInitializeService({instanceIdentifier:je});ae.resolve(Ee)}catch{}}}}clearInstance(j=B){this.instancesDeferred.delete(j),this.instancesOptions.delete(j),this.instances.delete(j)}delete(){var j=this;return(0,r.Z)(function*(){const ee=Array.from(j.instances.values());yield Promise.all([...ee.filter(ae=>"INTERNAL"in ae).map(ae=>ae.INTERNAL.delete()),...ee.filter(ae=>"_delete"in ae).map(ae=>ae._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(j=B){return this.instances.has(j)}getOptions(j=B){return this.instancesOptions.get(j)||{}}initialize(j={}){const{options:ee={}}=j,ae=this.normalizeInstanceIdentifier(j.instanceIdentifier);if(this.isInitialized(ae))throw Error(`${this.name}(${ae}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const je=this.getOrInitializeService({instanceIdentifier:ae,options:ee});for(const[Ee,Le]of this.instancesDeferred.entries())ae===this.normalizeInstanceIdentifier(Ee)&&Le.resolve(je);return je}onInit(j,ee){var ae;const je=this.normalizeInstanceIdentifier(ee),Ee=null!==(ae=this.onInitCallbacks.get(je))&&void 0!==ae?ae:new Set;Ee.add(j),this.onInitCallbacks.set(je,Ee);const Le=this.instances.get(je);return Le&&j(Le,je),()=>{Ee.delete(j)}}invokeOnInitCallbacks(j,ee){const ae=this.onInitCallbacks.get(ee);if(ae)for(const je of ae)try{je(j,ee)}catch{}}getOrInitializeService({instanceIdentifier:j,options:ee={}}){let ae=this.instances.get(j);if(!ae&&this.component&&(ae=this.component.instanceFactory(this.container,{instanceIdentifier:(ie=j,ie===B?void 0:ie),options:ee}),this.instances.set(j,ae),this.instancesOptions.set(j,ee),this.invokeOnInitCallbacks(ae,j),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,j,ae)}catch{}var ie;return ae||null}normalizeInstanceIdentifier(j=B){return this.component?this.component.multipleInstances?j:B:j}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ne{constructor(j){this.name=j,this.providers=new Map}addComponent(j){const ee=this.getProvider(j.name);if(ee.isComponentSet())throw new Error(`Component ${j.name} has already been registered with ${this.name}`);ee.setComponent(j)}addOrOverwriteComponent(j){this.getProvider(j.name).isComponentSet()&&this.providers.delete(j.name),this.addComponent(j)}getProvider(j){if(this.providers.has(j))return this.providers.get(j);const ee=new X(j,this);return this.providers.set(j,ee),ee}getProviders(){return Array.from(this.providers.values())}}},1877:(Dt,Se,g)=>{g.d(Se,{Am:()=>ie,Ub:()=>ne,Yd:()=>q,in:()=>c});const r=[];var c=(()=>{return(j=c||(c={}))[j.DEBUG=0]="DEBUG",j[j.VERBOSE=1]="VERBOSE",j[j.INFO=2]="INFO",j[j.WARN=3]="WARN",j[j.ERROR=4]="ERROR",j[j.SILENT=5]="SILENT",c;var j})();const A={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},B=c.INFO,X={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},le=(j,ee,...ae)=>{if(ee<j.logLevel)return;const je=(new Date).toISOString(),Ee=X[ee];if(!Ee)throw new Error(`Attempted to log a message with an invalid logType (value: ${ee})`);console[Ee](`[${je}] ${j.name}:`,...ae)};class q{constructor(ee){this.name=ee,this._logLevel=B,this._logHandler=le,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(ee){if(!(ee in c))throw new TypeError(`Invalid value "${ee}" assigned to \`logLevel\``);this._logLevel=ee}setLogLevel(ee){this._logLevel="string"==typeof ee?A[ee]:ee}get logHandler(){return this._logHandler}set logHandler(ee){if("function"!=typeof ee)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=ee}get userLogHandler(){return this._userLogHandler}set userLogHandler(ee){this._userLogHandler=ee}debug(...ee){this._userLogHandler&&this._userLogHandler(this,c.DEBUG,...ee),this._logHandler(this,c.DEBUG,...ee)}log(...ee){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...ee),this._logHandler(this,c.VERBOSE,...ee)}info(...ee){this._userLogHandler&&this._userLogHandler(this,c.INFO,...ee),this._logHandler(this,c.INFO,...ee)}warn(...ee){this._userLogHandler&&this._userLogHandler(this,c.WARN,...ee),this._logHandler(this,c.WARN,...ee)}error(...ee){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...ee),this._logHandler(this,c.ERROR,...ee)}}function ne(j){r.forEach(ee=>{ee.setLogLevel(j)})}function ie(j,ee){for(const ae of r){let je=null;ee&&ee.level&&(je=A[ee.level]),ae.userLogHandler=null===j?null:(Ee,Le,...Ne)=>{const he=Ne.map(Re=>{if(null==Re)return null;if("string"==typeof Re)return Re;if("number"==typeof Re||"boolean"==typeof Re)return Re.toString();if(Re instanceof Error)return Re.message;try{return JSON.stringify(Re)}catch{return null}}).filter(Re=>Re).join(" ");Le>=(je??Ee.logLevel)&&j({level:c[Le].toLowerCase(),message:he,args:Ne,type:Ee.name})}}}},8796:(Dt,Se,g)=>{g.d(Se,{A0:()=>Xt,w9:()=>xe});var r=g(4650),c=g(433),A=g(2722),B=g(3601),X=g(8675),le=g(8505),q=g(8372),ne=g(9300),ie=g(4004),j=g(6406),ee=g(3101),ae=g(7579),je=g(4968),Ee=g(6451),Le=g(6895);const Ne=["content"],he=["scroll"],Re=["padding"],ke=function(de){return{searchTerm:de}};function tt(de,k){if(1&de&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&de){const p=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",p.headerTemplate)("ngTemplateOutletContext",r.VKq(2,ke,p.filterValue))}}function ye(de,k){if(1&de&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&de){const p=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",p.footerTemplate)("ngTemplateOutletContext",r.VKq(2,ke,p.filterValue))}}const ue=["*"],we=["searchInput"];function Ce(de,k){if(1&de){const p=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(p);const I=r.oxw().$implicit,P=r.oxw(2);return r.KtG(P.unselect(I))}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&de){const p=r.oxw().$implicit,_=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",p.label)("escape",_.escapeHTML)}}function Ue(de,k){}const Te=function(de,k,p){return{item:de,clear:k,label:p}};function ze(de,k){if(1&de&&(r.TgZ(0,"div",12),r.YNc(1,Ce,3,2,"ng-template",null,13,r.W1O),r.YNc(3,Ue,0,0,"ng-template",14),r.qZA()),2&de){const p=k.$implicit,_=r.MAs(2),I=r.oxw(2);r.ekj("ng-value-disabled",p.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",I.labelTemplate||_)("ngTemplateOutletContext",r.kEZ(4,Te,p.value,I.clearItem,p.label))}}function ht(de,k){if(1&de&&(r.ynx(0),r.YNc(1,ze,4,8,"div",11),r.BQk()),2&de){const p=r.oxw();r.xp6(1),r.Q6J("ngForOf",p.selectedItems)("ngForTrackBy",p.trackByOption)}}function vt(de,k){}const Nt=function(de,k){return{items:de,clear:k}};function Mt(de,k){if(1&de&&r.YNc(0,vt,0,0,"ng-template",14),2&de){const p=r.oxw();r.Q6J("ngTemplateOutlet",p.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,Nt,p.selectedValues,p.clearItem))}}function We(de,k){1&de&&r._UZ(0,"div",19)}function it(de,k){}function ct(de,k){if(1&de&&(r.ynx(0),r.YNc(1,We,1,0,"ng-template",null,17,r.W1O),r.YNc(3,it,0,0,"ng-template",18),r.BQk()),2&de){const p=r.MAs(2),_=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",_.loadingSpinnerTemplate||p)}}function gt(de,k){if(1&de&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&de){const p=r.oxw();r.s9C("title",p.clearAllText)}}function bt(de,k){if(1&de&&r._UZ(0,"span",27),2&de){const p=r.oxw().$implicit,_=r.oxw(2);r.Q6J("ngItemLabel",p.label)("escape",_.escapeHTML)}}function wt(de,k){}const Ot=function(de,k,p,_){return{item:de,item$:k,index:p,searchTerm:_}};function ve(de,k){if(1&de){const p=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const P=r.CHM(p).$implicit,re=r.oxw(2);return r.KtG(re.toggleItem(P))})("mouseover",function(){const P=r.CHM(p).$implicit,re=r.oxw(2);return r.KtG(re.onItemHover(P))}),r.YNc(1,bt,1,2,"ng-template",null,26,r.W1O),r.YNc(3,wt,0,0,"ng-template",14),r.qZA()}if(2&de){const p=k.$implicit,_=r.MAs(2),I=r.oxw(2);r.ekj("ng-option-disabled",p.disabled)("ng-option-selected",p.selected)("ng-optgroup",p.children)("ng-option",!p.children)("ng-option-child",!!p.parent)("ng-option-marked",p===I.itemsList.markedItem),r.uIk("role",p.children?"group":"option")("aria-selected",p.selected)("id",null==p?null:p.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",p.children?I.optgroupTemplate||_:I.optionTemplate||_)("ngTemplateOutletContext",r.l5B(17,Ot,p.value,p,p.index,I.searchTerm))}}function qe(de,k){if(1&de&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&de){const p=r.oxw(3);r.xp6(2),r.Oqu(p.addTagText),r.xp6(1),r.hij('"',p.searchTerm,'"')}}function L(de,k){}function te(de,k){if(1&de){const p=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){r.CHM(p);const I=r.oxw(2);return r.KtG(I.itemsList.unmarkItem())})("click",function(){r.CHM(p);const I=r.oxw(2);return r.KtG(I.selectTag())}),r.YNc(1,qe,4,2,"ng-template",null,29,r.W1O),r.YNc(3,L,0,0,"ng-template",14),r.qZA()}if(2&de){const p=r.MAs(2),_=r.oxw(2);r.ekj("ng-option-marked",!_.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",_.tagTemplate||p)("ngTemplateOutletContext",r.VKq(4,ke,_.searchTerm))}}function Ve(de,k){if(1&de&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&de){const p=r.oxw(3);r.xp6(1),r.Oqu(p.notFoundText)}}function ut(de,k){}function Bt(de,k){if(1&de&&(r.ynx(0),r.YNc(1,Ve,2,1,"ng-template",null,31,r.W1O),r.YNc(3,ut,0,0,"ng-template",14),r.BQk()),2&de){const p=r.MAs(2),_=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",_.notFoundTemplate||p)("ngTemplateOutletContext",r.VKq(2,ke,_.searchTerm))}}function Jt(de,k){if(1&de&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&de){const p=r.oxw(3);r.xp6(1),r.Oqu(p.typeToSearchText)}}function Vt(de,k){}function en(de,k){if(1&de&&(r.ynx(0),r.YNc(1,Jt,2,1,"ng-template",null,33,r.W1O),r.YNc(3,Vt,0,0,"ng-template",18),r.BQk()),2&de){const p=r.MAs(2),_=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",_.typeToSearchTemplate||p)}}function En(de,k){if(1&de&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&de){const p=r.oxw(3);r.xp6(1),r.Oqu(p.loadingText)}}function In(de,k){}function Pn(de,k){if(1&de&&(r.ynx(0),r.YNc(1,En,2,1,"ng-template",null,34,r.W1O),r.YNc(3,In,0,0,"ng-template",14),r.BQk()),2&de){const p=r.MAs(2),_=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",_.loadingTextTemplate||p)("ngTemplateOutletContext",r.VKq(2,ke,_.searchTerm))}}function Fn(de,k){if(1&de){const p=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(I){r.CHM(p);const P=r.oxw();return r.KtG(P.viewPortItems=I)})("scroll",function(I){r.CHM(p);const P=r.oxw();return r.KtG(P.scroll.emit(I))})("scrollToEnd",function(I){r.CHM(p);const P=r.oxw();return r.KtG(P.scrollToEnd.emit(I))})("outsideClick",function(){r.CHM(p);const I=r.oxw();return r.KtG(I.close())}),r.ynx(1),r.YNc(2,ve,4,22,"div",23),r.YNc(3,te,4,6,"div",24),r.BQk(),r.YNc(4,Bt,4,4,"ng-container",3),r.YNc(5,en,4,1,"ng-container",3),r.YNc(6,Pn,4,4,"ng-container",3),r.qZA()}if(2&de){const p=r.oxw();r.ekj("ng-select-multiple",p.multiple),r.Q6J("virtualScroll",p.virtualScroll)("bufferAmount",p.bufferAmount)("appendTo",p.appendTo)("position",p.dropdownPosition)("headerTemplate",p.headerTemplate)("footerTemplate",p.footerTemplate)("filterValue",p.searchTerm)("items",p.itemsList.filteredItems)("markedItem",p.itemsList.markedItem)("ngClass",p.appendTo?p.classes:null)("id",p.dropdownId),r.xp6(2),r.Q6J("ngForOf",p.viewPortItems)("ngForTrackBy",p.trackByOption),r.xp6(1),r.Q6J("ngIf",p.showAddTag),r.xp6(1),r.Q6J("ngIf",p.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",p.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",p.loading&&0===p.itemsList.filteredItems.length)}}const an=/[&<>"']/g,et=RegExp(an.source),W={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ie(de){return null!=de}function rt(de){return"object"==typeof de&&Ie(de)}function At(de){return de instanceof Function}let $t=(()=>{class de{constructor(p){this.element=p,this.escape=!0}ngOnChanges(p){this.element.nativeElement.innerHTML=this.escape?function se(de){return de&&et.test(de)?de.replace(an,k=>W[k]):de}(this.ngItemLabel):this.ngItemLabel}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.SBq))},de.\u0275dir=r.lG2({type:de,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),de})(),It=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-option-tmp",""]]}),de})(),Tt=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-optgroup-tmp",""]]}),de})(),De=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-label-tmp",""]]}),de})(),lt=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-multi-label-tmp",""]]}),de})(),fe=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-header-tmp",""]]}),de})(),Ye=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-footer-tmp",""]]}),de})(),Ct=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-notfound-tmp",""]]}),de})(),kt=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-typetosearch-tmp",""]]}),de})(),ln=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-loadingtext-tmp",""]]}),de})(),Ut=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-tag-tmp",""]]}),de})(),An=(()=>{class de{constructor(p){this.template=p}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Rgc))},de.\u0275dir=r.lG2({type:de,selectors:[["","ng-loadingspinner-tmp",""]]}),de})();function rn(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Tn={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function xn(de){return de.replace(/[^\u0000-\u007E]/g,p=>Tn[p]||p)}class Oe{constructor(k,p){this._ngSelect=k,this._selectionModel=p,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let k=this.selectedItems.length-1;for(;k>=0;k--){const p=this.selectedItems[k];if(!p.disabled)return p}return null}setItems(k){this._items=k.map((p,_)=>this.mapItem(p,_)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(k){if(k.selected||this.maxItemsSelected)return;const p=this._ngSelect.multiple;p||this.clearSelected(),this._selectionModel.select(k,p,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(k)}unselect(k){k.selected&&(this._selectionModel.unselect(k,this._ngSelect.multiple),this._ngSelect.hideSelected&&Ie(k.index)&&this._ngSelect.multiple&&this._showSelected(k))}findItem(k){let p;return p=this._ngSelect.compareWith?_=>this._ngSelect.compareWith(_.value,k):this._ngSelect.bindValue?_=>!_.children&&this.resolveNested(_.value,this._ngSelect.bindValue)===k:_=>_.value===k||!_.children&&_.label&&_.label===this.resolveNested(k,this._ngSelect.bindLabel),this._items.find(_=>p(_))}addItem(k){const p=this.mapItem(k,this._items.length);return this._items.push(p),this._filteredItems.push(p),p}clearSelected(k=!1){this._selectionModel.clear(k),this._items.forEach(p=>{p.selected=k&&p.selected&&p.disabled,p.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(k){return k=xn(k).toLocaleLowerCase(),this.filteredItems.find(p=>xn(p.label).toLocaleLowerCase().substr(0,k.length)===k)}filter(k){if(!k)return void this.resetFilteredItems();this._filteredItems=[],k=this._ngSelect.searchFn?k:xn(k).toLocaleLowerCase();const p=this._ngSelect.searchFn||this._defaultSearchFn,_=this._ngSelect.hideSelected;for(const I of Array.from(this._groups.keys())){const P=[];for(const re of this._groups.get(I))_&&(re.parent&&re.parent.selected||re.selected)||p(k,this._ngSelect.searchFn?re.value:re)&&P.push(re);if(P.length>0){const[re]=P.slice(-1);if(re.parent){const Be=this._items.find(yt=>yt===re.parent);this._filteredItems.push(Be)}this._filteredItems.push(...P)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(k=>!k.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(k){this._markedIndex=this._filteredItems.indexOf(k)}markSelectedOrDefault(k){if(0===this._filteredItems.length)return;const p=this._getLastMarkedIndex();this._markedIndex=p>-1?p:k?this.filteredItems.findIndex(_=>!_.disabled):-1}resolveNested(k,p){if(!rt(k))return k;if(-1===p.indexOf("."))return k[p];{const _=p.split(".");let I=k;for(let P=0,re=_.length;P<re;++P){if(null==I)return null;I=I[_[P]]}return I}}mapItem(k,p){const _=Ie(k.$ngOptionLabel)?k.$ngOptionLabel:this.resolveNested(k,this._ngSelect.bindLabel),I=Ie(k.$ngOptionValue)?k.$ngOptionValue:k;return{index:p,label:Ie(_)?_.toString():"",value:I,disabled:k.disabled,htmlId:`${this._ngSelect.dropdownId}-${p}`}}mapSelectedItems(){const k=this._ngSelect.multiple;for(const p of this.selectedItems){const _=this._ngSelect.bindValue?this.resolveNested(p.value,this._ngSelect.bindValue):p.value,I=Ie(_)?this.findItem(_):null;this._selectionModel.unselect(p,k),this._selectionModel.select(I||p,k,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(p=>-1===this.selectedItems.indexOf(p)))}_showSelected(k){if(this._filteredItems.push(k),k.parent){const p=k.parent;this._filteredItems.find(I=>I===p)||this._filteredItems.push(p)}else if(k.children)for(const p of k.children)p.selected=!1,this._filteredItems.push(p);this._filteredItems=[...this._filteredItems.sort((p,_)=>p.index-_.index)]}_hideSelected(k){this._filteredItems=this._filteredItems.filter(p=>p!==k),k.parent?k.parent.children.every(_=>_.selected)&&(this._filteredItems=this._filteredItems.filter(_=>_!==k.parent)):k.children&&(this._filteredItems=this.filteredItems.filter(p=>p.parent!==k))}_defaultSearchFn(k,p){return xn(p.label).toLocaleLowerCase().indexOf(k)>-1}_getNextItemIndex(k){return k>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(k){0===this._filteredItems.length||this._filteredItems.every(p=>p.disabled)||(this._markedIndex=this._getNextItemIndex(k),this.markedItem.disabled&&this._stepToItem(k))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const k=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&k<0?-1:Math.max(this.markedIndex,k)}_groupBy(k,p){const _=new Map;if(0===k.length)return _;if(Array.isArray(k[0].value[p])){for(const re of k){const Be=(re.value[p]||[]).map((yt,Lt)=>this.mapItem(yt,Lt));_.set(re,Be)}return _}const I=At(this._ngSelect.groupBy),P=re=>{const Be=I?p(re.value):re.value[p];return Ie(Be)?Be:void 0};for(const re of k){const Be=P(re),yt=_.get(Be);yt?yt.push(re):_.set(Be,[re])}return _}_flatten(k){const p=At(this._ngSelect.groupBy),_=[];for(const I of Array.from(k.keys())){let P=_.length;if(void 0===I){const Mn=k.get(void 0)||[];_.push(...Mn.map(ft=>(ft.index=P++,ft)));continue}const re=rt(I),Be={label:re?"":String(I),children:void 0,parent:null,index:P++,disabled:!this._ngSelect.selectableGroup,htmlId:rn()},yt=p?this._ngSelect.bindLabel:this._ngSelect.groupBy,Lt=this._ngSelect.groupValue||(()=>re?I.value:{[yt]:I}),fn=k.get(I).map(Mn=>(Mn.parent=Be,Mn.children=void 0,Mn.index=P++,Mn));Be.children=fn,Be.value=Lt(I,fn.map(Mn=>Mn.value)),_.push(Be),_.push(...fn)}return _}}var J=(()=>{return(de=J||(J={}))[de.Tab=9]="Tab",de[de.Enter=13]="Enter",de[de.Esc=27]="Esc",de[de.Space=32]="Space",de[de.ArrowUp=38]="ArrowUp",de[de.ArrowDown=40]="ArrowDown",de[de.Backspace=8]="Backspace",J;var de})();let V=(()=>{class de{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(p,_,I){const P=this._dimensions,re=P.itemHeight*_,yt=Math.max(0,p)/re*_;let Lt=Math.min(_,Math.ceil(yt)+(P.itemsPerViewport+1));const Mn=Math.max(0,Lt-P.itemsPerViewport);let ft=Math.min(Mn,Math.floor(yt)),St=P.itemHeight*Math.ceil(ft)-P.itemHeight*Math.min(ft,I);return St=isNaN(St)?0:St,ft=isNaN(ft)?-1:ft,Lt=isNaN(Lt)?-1:Lt,ft-=I,ft=Math.max(0,ft),Lt+=I,Lt=Math.min(_,Lt),{topPadding:St,scrollHeight:re,start:ft,end:Lt}}setDimensions(p,_){const I=Math.max(1,Math.floor(_/p));this._dimensions={itemHeight:p,panelHeight:_,itemsPerViewport:I}}getScrollTo(p,_,I){const{panelHeight:P}=this.dimensions,re=p+_,yt=I+P;return P>=re&&I===p?null:re>yt?I+re-yt:p<=I?p:null}}return de.\u0275fac=function(p){return new(p||de)},de.\u0275prov=r.Yz7({token:de,factory:de.\u0275fac}),de})();const U=["top","right","bottom","left"],oe=typeof requestAnimationFrame<"u"?j.Z:ee.E;let Ze=(()=>{class de{constructor(p,_,I,P,re){this._renderer=p,this._zone=_,this._panelService=I,this._document=re,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.outsideClick=new r.vpe,this._destroy$=new ae.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=P.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(p){p!==this._itemsLength&&(this._itemsLength=p,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:p,panelHeight:_}=this._panelService.dimensions,I=this.markedItem.index*p;return _>I?0:I}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(p){if(p.items){const _=p.items;this._onItemsChange(_.currentValue,_.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(p,_=!1){if(!p)return;const I=this.items.indexOf(p);if(I<0||I>=this.itemsLength)return;let P;if(this.virtualScroll){const re=this._panelService.dimensions.itemHeight;P=this._panelService.getScrollTo(I*re,re,this._lastScrollPosition)}else{const re=this._dropdown.querySelector(`#${p.htmlId}`);P=this._panelService.getScrollTo(re.offsetTop,re.clientHeight,_?re.offsetTop:this._lastScrollPosition)}Ie(P)&&(this._scrollablePanel.scrollTop=P)}scrollToTag(){const p=this._scrollablePanel;p.scrollTop=p.scrollHeight-p.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),U.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(p){U.forEach(I=>{const P=`ng-select-${I}`;this._renderer.removeClass(this._dropdown,P),this._renderer.removeClass(this._select,P)});const _=`ng-select-${p}`;this._renderer.addClass(this._dropdown,_),this._renderer.addClass(this._select,_)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,je.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,A.R)(this._destroy$),(0,B.e)(0,oe)).subscribe(p=>{const _=p.path||p.composedPath&&p.composedPath();this._onContentScrolled(_&&0!==_.length?_[0].scrollTop:p.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,Ee.T)((0,je.R)(this._document,"touchstart",{capture:!0}),(0,je.R)(this._document,"mousedown",{capture:!0})).pipe((0,A.R)(this._destroy$)).subscribe(p=>this._checkToClose(p))})}_checkToClose(p){if(this._select.contains(p.target)||this._dropdown.contains(p.target))return;const _=p.path||p.composedPath&&p.composedPath();p.target&&p.target.shadowRoot&&_&&_[0]&&this._select.contains(_[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(p,_){this.items=p||[],this._scrollToEndFired=!1,this.itemsLength=p.length,this.virtualScroll?this._updateItemsRange(_):(this._setVirtualHeight(),this._updateItems(_))}_updateItems(p){this.update.emit(this.items),!1!==p&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,p)})})}_updateItemsRange(p){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{p?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(p){this.virtualScroll&&this._renderItemsRange(p),this._lastScrollPosition=p,this._fireScrollToEnd(p)}_updateVirtualHeight(p){this._updateScrollHeight&&(this._virtualPadding.style.height=`${p}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(p=null){if(p&&this._lastScrollPosition===p)return;const _=this._panelService.calculateItems(p=p||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(_.scrollHeight),this._contentPanel.style.transform=`translateY(${_.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(_.start,_.end)),this.scroll.emit({start:_.start,end:_.end})}),Ie(p)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=p,this._lastScrollPosition=p)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[p]=this.items;return this.update.emit([p]),Promise.resolve().then(()=>{const I=this._dropdown.querySelector(`#${p.htmlId}`).clientHeight;return this._virtualPadding.style.height=I*this.itemsLength+"px",this._panelService.setDimensions(I,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(p){this._scrollToEndFired||0===p||p+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(p){if("auto"!==this.position)return this.position;const _=this._select.getBoundingClientRect(),I=document.documentElement.scrollTop||document.body.scrollTop;return _.top+window.pageYOffset+_.height+p.getBoundingClientRect().height>I+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const p=this._select.getBoundingClientRect(),_=this._parent.getBoundingClientRect();this._dropdown.style.left=p.left-_.left+"px",this._dropdown.style.width=p.width+"px",this._dropdown.style.minWidth=p.width+"px"}_updateYPosition(){const p=this._select.getBoundingClientRect(),_=this._parent.getBoundingClientRect(),I=p.height;"top"===this._currentPosition?(this._dropdown.style.bottom=_.bottom-p.bottom+I+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=p.top-_.top+I+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,je.R)(this._dropdown,"mousedown").pipe((0,A.R)(this._destroy$)).subscribe(p=>{"INPUT"!==p.target.tagName&&p.preventDefault()})})}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(V),r.Y36(r.SBq),r.Y36(Le.K0,8))},de.\u0275cmp=r.Xpm({type:de,selectors:[["ng-dropdown-panel"]],viewQuery:function(p,_){if(1&p&&(r.Gf(Ne,7,r.SBq),r.Gf(he,7,r.SBq),r.Gf(Re,7,r.SBq)),2&p){let I;r.iGM(I=r.CRH())&&(_.contentElementRef=I.first),r.iGM(I=r.CRH())&&(_.scrollElementRef=I.first),r.iGM(I=r.CRH())&&(_.paddingElementRef=I.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[r.TTD],ngContentSelectors:ue,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(p,_){1&p&&(r.F$t(),r.YNc(0,tt,2,4,"div",0),r.TgZ(1,"div",1,2),r._UZ(3,"div",null,3),r.TgZ(5,"div",null,4),r.Hsn(7),r.qZA()(),r.YNc(8,ye,2,4,"div",5)),2&p&&(r.Q6J("ngIf",_.headerTemplate),r.xp6(3),r.ekj("total-padding",_.virtualScroll),r.xp6(2),r.ekj("scrollable-content",_.virtualScroll&&_.items.length),r.xp6(3),r.Q6J("ngIf",_.footerTemplate))},dependencies:[Le.O5,Le.tP],encapsulation:2,changeDetection:0}),de})(),K=(()=>{class de{constructor(p){this.elementRef=p,this.stateChange$=new ae.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(p){this._disabled=this._isDisabled(p)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(p){p.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(p){return null!=p&&"false"!=`${p}`}}return de.\u0275fac=function(p){return new(p||de)(r.Y36(r.SBq))},de.\u0275cmp=r.Xpm({type:de,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:ue,decls:1,vars:0,template:function(p,_){1&p&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),de})(),ce=(()=>{class de{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return de.\u0275fac=function(p){return new(p||de)},de.\u0275prov=r.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),be=(()=>{class de{warn(p){console.warn(p)}}return de.\u0275fac=function(p){return new(p||de)},de.\u0275prov=r.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const Je=new r.OlP("ng-select-selection-model");let xe=(()=>{class de{constructor(p,_,I,P,re,Be,yt){this.classes=p,this.autoFocus=_,this.config=I,this._cd=Be,this._console=yt,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=Lt=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new r.vpe,this.focusEvent=new r.vpe,this.changeEvent=new r.vpe,this.openEvent=new r.vpe,this.closeEvent=new r.vpe,this.searchEvent=new r.vpe,this.clearEvent=new r.vpe,this.addEvent=new r.vpe,this.removeEvent=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=rn(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new ae.x,this._keyPress$=new ae.x,this._onChange=Lt=>{},this._onTouched=()=>{},this.clearItem=Lt=>{const fn=this.selectedItems.find(Mn=>Mn.value===Lt);this.unselect(fn)},this.trackByOption=(Lt,fn)=>this.trackByFn?this.trackByFn(fn.value):fn,this._mergeGlobalConfig(I),this.itemsList=new Oe(this,P()),this.element=re.nativeElement}get items(){return this._items}set items(p){null===p&&(p=[]),this._itemsAreUsed=!0,this._items=p}get compareWith(){return this._compareWith}set compareWith(p){if(null!=p&&!At(p))throw Error("`compareWith` must be a function.");this._compareWith=p}get clearSearchOnAdd(){return Ie(this._clearSearchOnAdd)?this._clearSearchOnAdd:Ie(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(p){this._clearSearchOnAdd=p}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(p=>p.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(p){p.multiple&&this.itemsList.clearSelected(),p.items&&this._setItems(p.items.currentValue||[]),p.isOpen&&(this._manualOpen=Ie(p.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ie(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(p){if(J[p.which]){if(!1===this.keyDownFn(p))return;this.handleKeyCode(p)}else p.key&&1===p.key.length&&this._keyPress$.next(p.key.toLocaleLowerCase())}handleKeyCode(p){switch(p.which){case J.ArrowDown:this._handleArrowDown(p);break;case J.ArrowUp:this._handleArrowUp(p);break;case J.Space:this._handleSpace(p);break;case J.Enter:this._handleEnter(p);break;case J.Tab:this._handleTab(p);break;case J.Esc:this.close(),p.preventDefault();break;case J.Backspace:this._handleBackspace()}}handleMousedown(p){const _=p.target;"INPUT"!==_.tagName&&p.preventDefault(),_.classList.contains("ng-clear-wrapper")?this.handleClearClick():_.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():_.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(p){this.itemsList.clearSelected(),this._handleWriteValue(p),this._cd.markForCheck()}registerOnChange(p){this._onChange=p}registerOnTouched(p){this._onTouched=p}setDisabledState(p){this._disabled=p,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(p){!p||p.disabled||this.disabled||(this.multiple&&p.selected?this.unselect(p):this.select(p),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(p){p.selected||(this.itemsList.select(p),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(p.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(p){p&&(this.itemsList.unselect(p),this.focus(),this._updateNgModel(),this.removeEvent.emit(p))}selectTag(){let p;p=At(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const _=I=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(I,null):this.itemsList.addItem(I);!function st(de){return de instanceof Promise}(p)?p&&this.select(_(p)):p.then(I=>this.select(_(I))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const p=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(_=>_.label.toLowerCase()===p)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(_=>_.label.toLowerCase()===p))&&!this.loading}showNoItemsFound(){const p=0===this.itemsList.filteredItems.length;return(p&&!this._isTypeahead&&!this.loading||p&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(p){this._isComposing=!1,!this.searchWhileComposing&&this.filter(p)}filter(p){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=p,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(p),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:p,items:this.itemsList.filteredItems.map(_=>_.value)}),this.open())}onInputFocus(p){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(p),this.focused=!0)}onInputBlur(p){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(p),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(p){p.disabled||this.itemsList.markItem(p)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const p=this.selectedItems&&this.selectedItems[0];this.searchTerm=p&&p.label||null}_setItems(p){const _=p[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Ie(_)?!rt(_):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(p),p.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Ie(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const p=I=>{this.items=I.map(P=>({$ngOptionValue:P.value,$ngOptionLabel:P.elementRef.nativeElement.innerHTML,disabled:P.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},_=()=>{const I=(0,Ee.T)(this.ngOptions.changes,this._destroy$);(0,Ee.T)(...this.ngOptions.map(P=>P.stateChange$)).pipe((0,A.R)(I)).subscribe(P=>{const re=this.itemsList.findItem(P.value);re.disabled=P.disabled,re.label=P.label||re.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,X.O)(this.ngOptions),(0,A.R)(this._destroy$)).subscribe(I=>{this.bindLabel=this._defaultLabel,p(I),_()})}_isValidWriteValue(p){if(!Ie(p)||this.multiple&&""===p||Array.isArray(p)&&0===p.length)return!1;const _=I=>!(!Ie(this.compareWith)&&rt(I)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(I)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(p)?p.every(I=>_(I)):(this._console.warn("Multiple select ngModel should be array."),!1):_(p)}_handleWriteValue(p){if(!this._isValidWriteValue(p))return;const _=I=>{let P=this.itemsList.findItem(I);if(P)this.itemsList.select(P);else{const re=rt(I);re||!re&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(I,null)):this.bindValue&&(P={[this.bindLabel]:null,[this.bindValue]:I},this.itemsList.select(this.itemsList.mapItem(P,null)))}};this.multiple?p.forEach(I=>_(I)):_(p)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,A.R)(this._destroy$),(0,le.b)(p=>this._pressedKeys.push(p)),(0,q.b)(200),(0,ne.h)(()=>this._pressedKeys.length>0),(0,ie.U)(()=>this._pressedKeys.join(""))).subscribe(p=>{const _=this.itemsList.findByLabel(p);_&&(this.isOpen?(this.itemsList.markItem(_),this._scrollToMarked(),this._cd.markForCheck()):this.select(_)),this._pressedKeys=[]})}_setInputAttributes(){const p=this.searchInput.nativeElement,_={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const I of Object.keys(_))p.setAttribute(I,_[I])}_updateNgModel(){const p=[];for(const I of this.selectedItems)if(this.bindValue){let P=null;P=I.children?I.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(I.value,this.bindValue),p.push(P)}else p.push(I.value);const _=this.selectedItems.map(I=>I.value);this.multiple?(this._onChange(p),this.changeEvent.emit(_)):(this._onChange(Ie(p[0])?p[0]:null),this.changeEvent.emit(_[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(p){this.searchTerm=p,this._isTypeahead&&this.typeahead.next(p)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(p){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),p.preventDefault()):this.showAddTag?(this.selectTag(),p.preventDefault()):this.close():this.close())}_handleEnter(p){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}p.preventDefault()}_handleSpace(p){this.isOpen||this._manualOpen||(this.open(),p.preventDefault())}_handleArrowDown(p){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),p.preventDefault()}_handleArrowUp(p){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),p.preventDefault())}_nextItemIsTag(p){const _=this.itemsList.markedIndex+p;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(_<0||_===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const p=this.searchTerm&&this.searchTerm.trim();return p&&p.length>=this.minTermLength}_mergeGlobalConfig(p){this.placeholder=this.placeholder||p.placeholder,this.notFoundText=this.notFoundText||p.notFoundText,this.typeToSearchText=this.typeToSearchText||p.typeToSearchText,this.addTagText=this.addTagText||p.addTagText,this.loadingText=this.loadingText||p.loadingText,this.clearAllText=this.clearAllText||p.clearAllText,this.virtualScroll=Ie(this.virtualScroll)?this.virtualScroll:!!Ie(p.disableVirtualScroll)&&!p.disableVirtualScroll,this.openOnEnter=Ie(this.openOnEnter)?this.openOnEnter:p.openOnEnter,this.appendTo=this.appendTo||p.appendTo,this.bindValue=this.bindValue||p.bindValue,this.bindLabel=this.bindLabel||p.bindLabel,this.appearance=this.appearance||p.appearance}}return de.\u0275fac=function(p){return new(p||de)(r.$8M("class"),r.$8M("autofocus"),r.Y36(ce),r.Y36(Je),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(be))},de.\u0275cmp=r.Xpm({type:de,selectors:[["ng-select"]],contentQueries:function(p,_,I){if(1&p&&(r.Suo(I,It,5,r.Rgc),r.Suo(I,Tt,5,r.Rgc),r.Suo(I,De,5,r.Rgc),r.Suo(I,lt,5,r.Rgc),r.Suo(I,fe,5,r.Rgc),r.Suo(I,Ye,5,r.Rgc),r.Suo(I,Ct,5,r.Rgc),r.Suo(I,kt,5,r.Rgc),r.Suo(I,ln,5,r.Rgc),r.Suo(I,Ut,5,r.Rgc),r.Suo(I,An,5,r.Rgc),r.Suo(I,K,5)),2&p){let P;r.iGM(P=r.CRH())&&(_.optionTemplate=P.first),r.iGM(P=r.CRH())&&(_.optgroupTemplate=P.first),r.iGM(P=r.CRH())&&(_.labelTemplate=P.first),r.iGM(P=r.CRH())&&(_.multiLabelTemplate=P.first),r.iGM(P=r.CRH())&&(_.headerTemplate=P.first),r.iGM(P=r.CRH())&&(_.footerTemplate=P.first),r.iGM(P=r.CRH())&&(_.notFoundTemplate=P.first),r.iGM(P=r.CRH())&&(_.typeToSearchTemplate=P.first),r.iGM(P=r.CRH())&&(_.loadingTextTemplate=P.first),r.iGM(P=r.CRH())&&(_.tagTemplate=P.first),r.iGM(P=r.CRH())&&(_.loadingSpinnerTemplate=P.first),r.iGM(P=r.CRH())&&(_.ngOptions=P)}},viewQuery:function(p,_){if(1&p&&(r.Gf(Ze,5),r.Gf(we,7)),2&p){let I;r.iGM(I=r.CRH())&&(_.dropdownPanel=I.first),r.iGM(I=r.CRH())&&(_.searchInput=I.first)}},hostVars:20,hostBindings:function(p,_){1&p&&r.NdJ("keydown",function(P){return _.handleKeyDown(P)}),2&p&&r.ekj("ng-select-typeahead",_.typeahead)("ng-select-multiple",_.multiple)("ng-select-taggable",_.addTag)("ng-select-searchable",_.searchable)("ng-select-clearable",_.clearable)("ng-select-opened",_.isOpen)("ng-select",_.useDefaultClass)("ng-select-disabled",_.disabled)("ng-select-filtered",_.filtered)("ng-select-single",_.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[r._Bn([{provide:c.JU,useExisting:(0,r.Gpc)(()=>de),multi:!0},V]),r.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(p,_){if(1&p){const I=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(re){return _.handleMousedown(re)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,ht,2,2,"ng-container",3),r.YNc(5,Mt,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(I);const re=r.MAs(8);return r.KtG(_.filter(re.value))})("compositionstart",function(){return _.onCompositionStart()})("compositionend",function(){r.CHM(I);const re=r.MAs(8);return r.KtG(_.onCompositionEnd(re.value))})("focus",function(re){return _.onInputFocus(re)})("blur",function(re){return _.onInputBlur(re)})("change",function(re){return re.stopPropagation()}),r.qZA()()(),r.YNc(9,ct,4,1,"ng-container",3),r.YNc(10,gt,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,Fn,7,19,"ng-dropdown-panel",10)}2&p&&(r.ekj("ng-appearance-outline","outline"===_.appearance)("ng-has-value",_.hasValue),r.xp6(3),r.Oqu(_.placeholder),r.xp6(1),r.Q6J("ngIf",(!_.multiLabelTemplate||!_.multiple)&&_.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",_.multiple&&_.multiLabelTemplate&&_.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",_.isOpen)("aria-owns",_.isOpen?_.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!_.searchable||_.itemsList.maxItemsSelected)("disabled",_.disabled)("value",_.searchTerm?_.searchTerm:""),r.uIk("id",_.labelForId)("tabindex",_.tabIndex)("aria-activedescendant",_.isOpen?null==_.itemsList||null==_.itemsList.markedItem?null:_.itemsList.markedItem.htmlId:null)("aria-controls",_.isOpen?_.dropdownId:null),r.xp6(2),r.Q6J("ngIf",_.loading),r.xp6(1),r.Q6J("ngIf",_.showClear()),r.xp6(3),r.Q6J("ngIf",_.isOpen))},dependencies:[Le.mk,Le.sg,Le.O5,Le.tP,Ze,$t],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),de})();function Pt(){return new Wt}class Wt{constructor(){this._selected=[]}get value(){return this._selected}select(k,p,_){if(k.selected=!0,(!k.children||!p&&_)&&this._selected.push(k),p)if(k.parent){const I=k.parent.children.length,P=k.parent.children.filter(re=>re.selected).length;k.parent.selected=I===P}else k.children&&(this._setChildrenSelectedState(k.children,!0),this._removeChildren(k),this._selected=_&&this._activeChildren(k)?[...this._selected.filter(I=>I.parent!==k),k]:[...this._selected,...k.children.filter(I=>!I.disabled)])}unselect(k,p){if(this._selected=this._selected.filter(_=>_!==k),k.selected=!1,p)if(k.parent&&k.parent.selected){const _=k.parent.children;this._removeParent(k.parent),this._removeChildren(k.parent),this._selected.push(..._.filter(I=>I!==k&&!I.disabled)),k.parent.selected=!1}else k.children&&(this._setChildrenSelectedState(k.children,!1),this._removeChildren(k))}clear(k){this._selected=k?this._selected.filter(p=>p.disabled):[]}_setChildrenSelectedState(k,p){for(const _ of k)_.disabled||(_.selected=p)}_removeChildren(k){this._selected=[...this._selected.filter(p=>p.parent!==k),...k.children.filter(p=>p.parent===k&&p.disabled&&p.selected)]}_removeParent(k){this._selected=this._selected.filter(p=>p!==k)}_activeChildren(k){return k.children.every(p=>!p.disabled||p.selected)}}let Xt=(()=>{class de{}return de.\u0275fac=function(p){return new(p||de)},de.\u0275mod=r.oAB({type:de}),de.\u0275inj=r.cJS({providers:[{provide:Je,useValue:Pt}],imports:[Le.ez]}),de})()},259:(Dt,Se,g)=>{g.d(Se,{C6:()=>r.getApps,Mq:()=>r.getApp});var r=g(9681);(0,r.registerVersion)("firebase","9.17.1","app")},9260:(Dt,Se,g)=>{g.d(Se,{Z:()=>r.Z});var r=g(3942);r.Z.registerVersion("firebase","9.17.1","app-compat")},8766:(Dt,Se,g)=>{g.d(Se,{Lj:()=>ye,X3:()=>tt});var r=g(5861);let A,B;const q=new WeakMap,ne=new WeakMap,ie=new WeakMap,j=new WeakMap,ee=new WeakMap;let Ee={get(Te,ze,ht){if(Te instanceof IDBTransaction){if("done"===ze)return ne.get(Te);if("objectStoreNames"===ze)return Te.objectStoreNames||ie.get(Te);if("store"===ze)return ht.objectStoreNames[1]?void 0:ht.objectStore(ht.objectStoreNames[0])}return Re(Te[ze])},set:(Te,ze,ht)=>(Te[ze]=ht,!0),has:(Te,ze)=>Te instanceof IDBTransaction&&("done"===ze||"store"===ze)||ze in Te};function he(Te){return"function"==typeof Te?function Ne(Te){return Te!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function le(){return B||(B=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Te)?function(...ze){return Te.apply(ke(this),ze),Re(q.get(this))}:function(...ze){return Re(Te.apply(ke(this),ze))}:function(ze,...ht){const vt=Te.call(ke(this),ze,...ht);return ie.set(vt,ze.sort?ze.sort():[ze]),Re(vt)}}(Te):(Te instanceof IDBTransaction&&function je(Te){if(ne.has(Te))return;const ze=new Promise((ht,vt)=>{const Nt=()=>{Te.removeEventListener("complete",Mt),Te.removeEventListener("error",We),Te.removeEventListener("abort",We)},Mt=()=>{ht(),Nt()},We=()=>{vt(Te.error||new DOMException("AbortError","AbortError")),Nt()};Te.addEventListener("complete",Mt),Te.addEventListener("error",We),Te.addEventListener("abort",We)});ne.set(Te,ze)}(Te),((Te,ze)=>ze.some(ht=>Te instanceof ht))(Te,function X(){return A||(A=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Te,Ee):Te)}function Re(Te){if(Te instanceof IDBRequest)return function ae(Te){const ze=new Promise((ht,vt)=>{const Nt=()=>{Te.removeEventListener("success",Mt),Te.removeEventListener("error",We)},Mt=()=>{ht(Re(Te.result)),Nt()},We=()=>{vt(Te.error),Nt()};Te.addEventListener("success",Mt),Te.addEventListener("error",We)});return ze.then(ht=>{ht instanceof IDBCursor&&q.set(ht,Te)}).catch(()=>{}),ee.set(ze,Te),ze}(Te);if(j.has(Te))return j.get(Te);const ze=he(Te);return ze!==Te&&(j.set(Te,ze),ee.set(ze,Te)),ze}const ke=Te=>ee.get(Te);function tt(Te,ze,{blocked:ht,upgrade:vt,blocking:Nt,terminated:Mt}={}){const We=indexedDB.open(Te,ze),it=Re(We);return vt&&We.addEventListener("upgradeneeded",ct=>{vt(Re(We.result),ct.oldVersion,ct.newVersion,Re(We.transaction))}),ht&&We.addEventListener("blocked",()=>ht()),it.then(ct=>{Mt&&ct.addEventListener("close",()=>Mt()),Nt&&ct.addEventListener("versionchange",()=>Nt())}).catch(()=>{}),it}function ye(Te,{blocked:ze}={}){const ht=indexedDB.deleteDatabase(Te);return ze&&ht.addEventListener("blocked",()=>ze()),Re(ht).then(()=>{})}const ue=["get","getKey","getAll","getAllKeys","count"],we=["put","add","delete","clear"],Ce=new Map;function Ue(Te,ze){if(!(Te instanceof IDBDatabase)||ze in Te||"string"!=typeof ze)return;if(Ce.get(ze))return Ce.get(ze);const ht=ze.replace(/FromIndex$/,""),vt=ze!==ht,Nt=we.includes(ht);if(!(ht in(vt?IDBIndex:IDBObjectStore).prototype)||!Nt&&!ue.includes(ht))return;const Mt=function(){var We=(0,r.Z)(function*(it,...ct){const gt=this.transaction(it,Nt?"readwrite":"readonly");let bt=gt.store;return vt&&(bt=bt.index(ct.shift())),(yield Promise.all([bt[ht](...ct),Nt&>.done]))[0]});return function(ct){return We.apply(this,arguments)}}();return Ce.set(ze,Mt),Mt}!function Le(Te){Ee=Te(Ee)}(Te=>({...Te,get:(ze,ht,vt)=>Ue(ze,ht)||Te.get(ze,ht,vt),has:(ze,ht)=>!!Ue(ze,ht)||Te.has(ze,ht)}))},7185:(Dt,Se,g)=>{g.d(Se,{FN:()=>We,PR:()=>Ce,Rh:()=>ct,_W:()=>Mt});var r=g(4650),c=g(7340),A=g(7579),B=g(6895),X=g(1481);const le=["toast-component",""];function q(ve,qe){if(1&ve){const L=r.EpF();r.TgZ(0,"button",5),r.NdJ("click",function(){r.CHM(L);const Ve=r.oxw();return r.KtG(Ve.remove())}),r.TgZ(1,"span",6),r._uU(2,"\xd7"),r.qZA()()}}function ne(ve,qe){if(1&ve&&(r.ynx(0),r._uU(1),r.BQk()),2&ve){const L=r.oxw(2);r.xp6(1),r.hij("[",L.duplicatesCount+1,"]")}}function ie(ve,qe){if(1&ve&&(r.TgZ(0,"div"),r._uU(1),r.YNc(2,ne,2,1,"ng-container",4),r.qZA()),2&ve){const L=r.oxw();r.Tol(L.options.titleClass),r.uIk("aria-label",L.title),r.xp6(1),r.hij(" ",L.title," "),r.xp6(1),r.Q6J("ngIf",L.duplicatesCount)}}function j(ve,qe){if(1&ve&&r._UZ(0,"div",7),2&ve){const L=r.oxw();r.Tol(L.options.messageClass),r.Q6J("innerHTML",L.message,r.oJD)}}function ee(ve,qe){if(1&ve&&(r.TgZ(0,"div",8),r._uU(1),r.qZA()),2&ve){const L=r.oxw();r.Tol(L.options.messageClass),r.uIk("aria-label",L.message),r.xp6(1),r.hij(" ",L.message," ")}}function ae(ve,qe){if(1&ve&&(r.TgZ(0,"div"),r._UZ(1,"div",9),r.qZA()),2&ve){const L=r.oxw();r.xp6(1),r.Udp("width",L.width+"%")}}class ye{constructor(qe,L){this.component=qe,this.injector=L}attach(qe,L){return this._attachedHost=qe,qe.attach(this,L)}detach(){const qe=this._attachedHost;if(qe)return this._attachedHost=void 0,qe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(qe){this._attachedHost=qe}}class ue{attach(qe,L){return this._attachedPortal=qe,this.attachComponentPortal(qe,L)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(qe){this._disposeFn=qe}}class we{constructor(qe){this._overlayRef=qe,this.duplicatesCount=0,this._afterClosed=new A.x,this._activate=new A.x,this._manualClose=new A.x,this._resetTimeout=new A.x,this._countDuplicate=new A.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(qe,L){qe&&this._resetTimeout.next(),L&&this._countDuplicate.next(++this.duplicatesCount)}}class Ce{constructor(qe,L,te,Ve,ut,Bt){this.toastId=qe,this.config=L,this.message=te,this.title=Ve,this.toastType=ut,this.toastRef=Bt,this._onTap=new A.x,this._onAction=new A.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(qe){this._onAction.next(qe)}onAction(){return this._onAction.asObservable()}}const Te=new r.OlP("ToastConfig");class ze extends ue{constructor(qe,L,te){super(),this._hostDomElement=qe,this._componentFactoryResolver=L,this._appRef=te}attachComponentPortal(qe,L){const te=this._componentFactoryResolver.resolveComponentFactory(qe.component);let Ve;return Ve=te.create(qe.injector),this._appRef.attachView(Ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ve.hostView),Ve.destroy()}),L?this._hostDomElement.insertBefore(this._getComponentRootNode(Ve),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ve)),Ve}_getComponentRootNode(qe){return qe.hostView.rootNodes[0]}}class ht{constructor(qe){this._portalHost=qe}attach(qe,L=!0){return this._portalHost.attach(qe,L)}detach(){return this._portalHost.detach()}}let vt=(()=>{class ve{constructor(L){this._document=L}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const L=this._document.createElement("div");L.classList.add("overlay-container"),L.setAttribute("aria-live","polite"),this._document.body.appendChild(L),this._containerElement=L}}return ve.\u0275fac=function(L){return new(L||ve)(r.LFG(B.K0))},ve.\u0275prov=r.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Nt=(()=>{class ve{constructor(L,te,Ve,ut){this._overlayContainer=L,this._componentFactoryResolver=te,this._appRef=Ve,this._document=ut,this._paneElements=new Map}create(L,te){return this._createOverlayRef(this.getPaneElement(L,te))}getPaneElement(L="",te){return this._paneElements.get(te)||this._paneElements.set(te,{}),this._paneElements.get(te)[L]||(this._paneElements.get(te)[L]=this._createPaneElement(L,te)),this._paneElements.get(te)[L]}_createPaneElement(L,te){const Ve=this._document.createElement("div");return Ve.id="toast-container",Ve.classList.add(L),Ve.classList.add("toast-container"),te?te.getContainerElement().appendChild(Ve):this._overlayContainer.getContainerElement().appendChild(Ve),Ve}_createPortalHost(L){return new ze(L,this._componentFactoryResolver,this._appRef)}_createOverlayRef(L){return new ht(this._createPortalHost(L))}}return ve.\u0275fac=function(L){return new(L||ve)(r.LFG(vt),r.LFG(r._Vd),r.LFG(r.z2F),r.LFG(B.K0))},ve.\u0275prov=r.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),Mt=(()=>{class ve{constructor(L,te,Ve,ut,Bt){this.overlay=te,this._injector=Ve,this.sanitizer=ut,this.ngZone=Bt,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...L.default,...L.config},L.config.iconClasses&&(this.toastrConfig.iconClasses={...L.default.iconClasses,...L.config.iconClasses})}show(L,te,Ve={},ut=""){return this._preBuildNotification(ut,L,te,this.applyConfig(Ve))}success(L,te,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",L,te,this.applyConfig(Ve))}error(L,te,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",L,te,this.applyConfig(Ve))}info(L,te,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",L,te,this.applyConfig(Ve))}warning(L,te,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",L,te,this.applyConfig(Ve))}clear(L){for(const te of this.toasts)if(void 0!==L){if(te.toastId===L)return void te.toastRef.manualClose()}else te.toastRef.manualClose()}remove(L){const te=this._findToast(L);if(!te||(te.activeToast.toastRef.close(),this.toasts.splice(te.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 Ve=this.toasts[this.currentlyActive].toastRef;Ve.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ve.activate())}return!0}findDuplicate(L="",te="",Ve,ut){const{includeTitleDuplicates:Bt}=this.toastrConfig;for(const Jt of this.toasts)if((!Bt||Bt&&Jt.title===L)&&Jt.message===te)return Jt.toastRef.onDuplicate(Ve,ut),Jt;return null}applyConfig(L={}){return{...this.toastrConfig,...L}}_findToast(L){for(let te=0;te<this.toasts.length;te++)if(this.toasts[te].toastId===L)return{index:te,activeToast:this.toasts[te]};return null}_preBuildNotification(L,te,Ve,ut){return ut.onActivateTick?this.ngZone.run(()=>this._buildNotification(L,te,Ve,ut)):this._buildNotification(L,te,Ve,ut)}_buildNotification(L,te,Ve,ut){if(!ut.toastComponent)throw new Error("toastComponent required");const Bt=this.findDuplicate(Ve,te,this.toastrConfig.resetTimeoutOnDuplicate&&ut.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ve||te)&&this.toastrConfig.preventDuplicates&&null!==Bt)return Bt;this.previousToastMessage=te;let Jt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Jt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Vt=this.overlay.create(ut.positionClass,this.overlayContainer);this.index=this.index+1;let en=te;te&&ut.enableHtml&&(en=this.sanitizer.sanitize(r.q3G.HTML,te));const En=new we(Vt),In=new Ce(this.index,ut,en,Ve,L,En),Fn=r.zs3.create({providers:[{provide:Ce,useValue:In}],parent:this._injector}),an=new ye(ut.toastComponent,Fn),et=Vt.attach(an,ut.newestOnTop);En.componentInstance=et.instance;const W={toastId:this.index,title:Ve||"",message:te||"",toastRef:En,onShown:En.afterActivate(),onHidden:En.afterClosed(),onTap:In.onTap(),onAction:In.onAction(),portal:et};return Jt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{W.toastRef.activate()})),this.toasts.push(W),W}}return ve.\u0275fac=function(L){return new(L||ve)(r.LFG(Te),r.LFG(Nt),r.LFG(r.zs3),r.LFG(X.H7),r.LFG(r.R0b))},ve.\u0275prov=r.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),We=(()=>{class ve{constructor(L,te,Ve){this.toastrService=L,this.toastPackage=te,this.ngZone=Ve,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=te.message,this.title=te.title,this.options=te.config,this.originalTimeout=te.config.timeOut,this.toastClasses=`${te.toastType} ${te.config.toastClass}`,this.sub=te.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=te.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=te.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=te.toastRef.countDuplicate().subscribe(ut=>{this.duplicatesCount=ut})}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 L=(new Date).getTime();this.width=(this.hideTime-L)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(L,te){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(L),te)):this.timeout=setTimeout(()=>L(),te)}outsideInterval(L,te){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(L),te)):this.intervalId=setInterval(()=>L(),te)}runInsideAngular(L){this.ngZone?this.ngZone.run(()=>L()):L()}}return ve.\u0275fac=function(L){return new(L||ve)(r.Y36(Mt),r.Y36(Ce),r.Y36(r.R0b))},ve.\u0275cmp=r.Xpm({type:ve,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(L,te){1&L&&r.NdJ("click",function(){return te.tapToast()})("mouseenter",function(){return te.stickAround()})("mouseleave",function(){return te.delayedHideToast()}),2&L&&(r.d8E("@flyInOut",te.state),r.Tol(te.toastClasses),r.Udp("display",te.displayStyle))},attrs:le,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(L,te){1&L&&(r.YNc(0,q,3,0,"button",0),r.YNc(1,ie,3,5,"div",1),r.YNc(2,j,1,3,"div",2),r.YNc(3,ee,2,4,"div",3),r.YNc(4,ae,2,2,"div",4)),2&L&&(r.Q6J("ngIf",te.options.closeButton),r.xp6(1),r.Q6J("ngIf",te.title),r.xp6(1),r.Q6J("ngIf",te.message&&te.options.enableHtml),r.xp6(1),r.Q6J("ngIf",te.message&&!te.options.enableHtml),r.xp6(1),r.Q6J("ngIf",te.options.progressBar))},dependencies:[B.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 }}"))])]}}),ve})();const it={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:We};let ct=(()=>{class ve{static forRoot(L={}){return{ngModule:ve,providers:[{provide:Te,useValue:{default:it,config:L}}]}}}return ve.\u0275fac=function(L){return new(L||ve)},ve.\u0275mod=r.oAB({type:ve}),ve.\u0275inj=r.cJS({imports:[B.ez]}),ve})()},5861:(Dt,Se,g)=>{function r(A,B,X,le,q,ne,ie){try{var j=A[ne](ie),ee=j.value}catch(ae){return void X(ae)}j.done?B(ee):Promise.resolve(ee).then(le,q)}function c(A){return function(){var B=this,X=arguments;return new Promise(function(le,q){var ne=A.apply(B,X);function ie(ee){r(ne,le,q,ie,j,"next",ee)}function j(ee){r(ne,le,q,ie,j,"throw",ee)}ie(void 0)})}}g.d(Se,{Z:()=>c})}},Dt=>{Dt(Dt.s=7326)}]);
|