dealposbarcode 1.5.5 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkbarcode_app=self.webpackChunkbarcode_app||[]).push([[179],{6897:(It,Fe,g)=>{g.d(Fe,{zQ:()=>ai,ww:()=>Gi});var r=g(5879),c=g(8645),R=g(2096),te=g(5592),Z=g(2459),J=g(3019),q=g(3093),le=g(4664),K=g(7398),N=g(7081),z=g(1374),fe=g(4674);function Ve(He,we){return(0,fe.m)(we)?(0,le.w)(()=>He,we):(0,le.w)(()=>He)}var je=g(5137),Je=g(2181),Se=g(2994),Ue=g(6304),$e=g(6814);g(3182);var ot=g(5861),ht=g(4303),ae=g(4537),Pe=g(9058),F=g(7879);const oe=new Map,_e={activated:!1,tokenObservers:[]},vt={initialized:!1,enabled:!1};function At(He){return oe.get(He)||Object.assign({},_e)}function Nt(){return vt}const sn="https://content-firebaseappcheck.googleapis.com/v1",nn="exchangeDebugToken",In={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};class pt{constructor(we,et,wt,Ot,zt){if(this.operation=we,this.retryPolicy=et,this.getWaitDuration=wt,this.lowerBound=Ot,this.upperBound=zt,this.pending=null,this.nextErrorWaitInterval=Ot,Ot>zt)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(we){var et=this;return(0,ot.Z)(function*(){et.stop();try{et.pending=new Pe.BH,yield function $(He){return new Promise(we=>{setTimeout(we,He)})}(et.getNextRun(we)),et.pending.resolve(),yield et.pending.promise,et.pending=new Pe.BH,yield et.operation(),et.pending.resolve(),yield et.pending.promise,et.process(!0).catch(()=>{})}catch(wt){et.retryPolicy(wt)?et.process(!1).catch(()=>{}):et.stop()}})()}getNextRun(we){if(we)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const et=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),et}}}const ke=new Pe.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(){return($t=(0,ot.Z)(function*({url:He,body:we},et){const wt={"Content-Type":"application/json"},Ot=et.getImmediate({optional:!0});if(Ot){const ui=yield Ot.getHeartbeatsHeader();ui&&(wt["X-Firebase-Client"]=ui)}const zt={method:"POST",body:JSON.stringify(we),headers:wt};let cn,Kn;try{cn=yield fetch(He,zt)}catch(ui){throw ke.create("fetch-network-error",{originalErrorMessage:ui?.message})}if(200!==cn.status)throw ke.create("fetch-status-error",{httpStatus:cn.status});try{Kn=yield cn.json()}catch(ui){throw ke.create("fetch-parse-error",{originalErrorMessage:ui?.message})}const xn=Kn.ttl.match(/^([\d.]+)(s)$/);if(!xn||!xn[2]||isNaN(Number(xn[1])))throw ke.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${Kn.ttl}`});const Ui=1e3*Number(xn[1]),Ri=Date.now();return{token:Kn.token,expireTimeMillis:Ri+Ui,issuedAtTimeMillis:Ri}})).apply(this,arguments)}const st="firebase-app-check-database",yt=1,Yt="firebase-app-check-store";let tn=null;function ce(){return(ce=(0,ot.Z)(function*(He,we){const wt=(yield function En(){return tn||(tn=new Promise((He,we)=>{try{const et=indexedDB.open(st,yt);et.onsuccess=wt=>{He(wt.target.result)},et.onerror=wt=>{var Ot;we(ke.create("storage-open",{originalErrorMessage:null===(Ot=wt.target.error)||void 0===Ot?void 0:Ot.message}))},et.onupgradeneeded=wt=>{0===wt.oldVersion&&wt.target.result.createObjectStore(Yt,{keyPath:"compositeKey"})}}catch(et){we(ke.create("storage-open",{originalErrorMessage:et?.message}))}}),tn)}()).transaction(Yt,"readwrite"),zt=wt.objectStore(Yt).put({compositeKey:He,value:we});return new Promise((cn,Kn)=>{zt.onsuccess=xn=>{cn()},wt.onerror=xn=>{var Ui;Kn(ke.create("storage-set",{originalErrorMessage:null===(Ui=xn.target.error)||void 0===Ui?void 0:Ui.message}))}})})).apply(this,arguments)}const Ee=new F.Yd("@firebase/app-check");function X(He,we){return(0,Pe.hl)()?function Vn(He,we){return function ie(He,we){return ce.apply(this,arguments)}(function Kt(He){return`${He.options.appId}-${He.name}`}(He),we)}(He,we).catch(et=>{Ee.warn(`Failed to write token to IndexedDB. Error: ${et}`)}):Promise.resolve()}function W(){return(W=(0,ot.Z)(function*(){const He=Nt();if(He.enabled&&He.token)return He.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const E={error:"UNKNOWN_ERROR"};function P(He){return Pe.US.encodeString(JSON.stringify(He),!1)}function B(He){return V.apply(this,arguments)}function V(){return(V=(0,ot.Z)(function*(He,we=!1){const et=He.app;!function it(He){if(!At(He).activated)throw ke.create("use-before-activation",{appName:He.name})}(et);const wt=At(et);let zt,Ot=wt.token;if(Ot&&!Dt(Ot)&&(wt.token=void 0,Ot=void 0),!Ot){const xn=yield wt.cachedTokenPromise;xn&&(Dt(xn)?Ot=xn:yield X(et,void 0))}if(!we&&Ot&&Dt(Ot))return{token:Ot.token};let Kn,cn=!1;if(function Be(){return Nt().enabled}()){wt.exchangeTokenPromise||(wt.exchangeTokenPromise=function Zt(He,we){return $t.apply(this,arguments)}(function Re(He,we){const{projectId:et,appId:wt,apiKey:Ot}=He.options;return{url:`${sn}/projects/${et}/apps/${wt}:${nn}?key=${Ot}`,body:{debug_token:we}}}(et,yield function _t(){return W.apply(this,arguments)}()),He.heartbeatServiceProvider).finally(()=>{wt.exchangeTokenPromise=void 0}),cn=!0);const xn=yield wt.exchangeTokenPromise;return yield X(et,xn),wt.token=xn,{token:xn.token}}try{wt.exchangeTokenPromise||(wt.exchangeTokenPromise=wt.provider.getToken().finally(()=>{wt.exchangeTokenPromise=void 0}),cn=!0),Ot=yield At(et).exchangeTokenPromise}catch(xn){"appCheck/throttled"===xn.code?Ee.warn(xn.message):Ee.error(xn),zt=xn}return Ot?zt?Kn=Dt(Ot)?{token:Ot.token,internalError:zt}:Qe(zt):(Kn={token:Ot.token},wt.token=Ot,yield X(et,Ot)):Kn=Qe(zt),cn&&function Ct(He,we){const et=At(He).tokenObservers;for(const wt of et)try{"EXTERNAL"===wt.type&&null!=we.error?wt.error(we.error):wt.next(we)}catch{}}(et,Kn),Kn})).apply(this,arguments)}function L(He,we){const et=At(He),wt=et.tokenObservers.filter(Ot=>Ot.next!==we);0===wt.length&&et.tokenRefresher&&et.tokenRefresher.isRunning()&&et.tokenRefresher.stop(),et.tokenObservers=wt}function Ae(He){const{app:we}=He,et=At(we);let wt=et.tokenRefresher;wt||(wt=function Le(He){const{app:we}=He;return new pt((0,ot.Z)(function*(){let wt;if(wt=At(we).token?yield B(He,!0):yield B(He),wt.error)throw wt.error;if(wt.internalError)throw wt.internalError}),()=>!0,()=>{const et=At(we);if(et.token){let wt=et.token.issuedAtTimeMillis+.5*(et.token.expireTimeMillis-et.token.issuedAtTimeMillis)+3e5;return wt=Math.min(wt,et.token.expireTimeMillis-3e5),Math.max(0,wt-Date.now())}return 0},In.RETRIAL_MIN_WAIT,In.RETRIAL_MAX_WAIT)}(He),et.tokenRefresher=wt),!wt.isRunning()&&et.isTokenAutoRefreshEnabled&&wt.start()}function Dt(He){return He.expireTimeMillis-Date.now()>0}function Qe(He){return{token:P(E),error:He}}class tt{constructor(we,et){this.app=we,this.heartbeatServiceProvider=et}_delete(){const{tokenObservers:we}=At(this.app);for(const et of we)L(this.app,et.next);return Promise.resolve()}}const go="app-check-internal";!function or(){(0,ht._registerComponent)(new ae.wA("app-check",He=>function De(He,we){return new tt(He,we)}(He.getProvider("app").getImmediate(),He.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((He,we,et)=>{He.getProvider(go).initialize()})),(0,ht._registerComponent)(new ae.wA(go,He=>function rt(He){return{getToken:we=>B(He,we),addTokenListener:we=>function k(He,we,et,wt){const{app:Ot}=He,zt=At(Ot);if(zt.tokenObservers=[...zt.tokenObservers,{next:et,error:wt,type:we}],zt.token&&Dt(zt.token)){const Kn=zt.token;Promise.resolve().then(()=>{et({token:Kn.token}),Ae(He)}).catch(()=>{})}zt.cachedTokenPromise.then(()=>Ae(He))}(He,"INTERNAL",we),removeTokenListener:we=>L(He.app,we)}}(He.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,ht.registerVersion)("@firebase/app-check","0.6.3")}();class Nr{constructor(){return(0,Se.vb)("app-check")}}typeof window<"u"&&window;var Wr=g(7142);const Qt=new r.OlP("angularfire2.auth.use-emulator"),gn=new r.OlP("angularfire2.auth.settings"),ii=new r.OlP("angularfire2.auth.tenant-id"),_i=new r.OlP("angularfire2.auth.langugage-code"),ar=new r.OlP("angularfire2.auth.use-device-language"),vi=new r.OlP("angularfire.auth.persistence");let ai=(()=>{class He{constructor(et,wt,Ot,zt,cn,Kn,xn,Ui,Ri,ui,tr,Zi){const lr=new c.x,Dn=(0,R.of)(void 0).pipe((0,q.Q)(cn.outsideAngular),(0,le.w)(()=>zt.runOutsideAngular(()=>g.e(466).then(g.bind(g,9466)))),(0,K.U)(()=>(0,Ue.on)(et,zt,wt)),(0,K.U)(Di=>((He,we,et,wt,Ot,zt,cn,Kn)=>(0,Ue.cc)(`${He.name}.auth`,"AngularFireAuth",He.name,()=>{const xn=we.runOutsideAngular(()=>He.auth());if(et&&xn.useEmulator(...et),wt&&(xn.tenantId=wt),xn.languageCode=Ot,zt&&xn.useDeviceLanguage(),cn)for(const[Ui,Ri]of Object.entries(cn))xn.settings[Ui]=Ri;return Kn&&xn.setPersistence(Kn),xn},[et,wt,Ot,zt,cn,Kn]))(Di,zt,Kn,Ui,Ri,ui,xn,tr)),(0,N.d)({bufferSize:1,refCount:!1}));if((0,$e.PM)(Ot))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,R.of)(null);else{Dn.pipe((0,z.P)()).subscribe();const pr=Dn.pipe((0,le.w)(ri=>ri.getRedirectResult().then(Zn=>Zn,()=>null)),Se.iC,(0,N.d)({bufferSize:1,refCount:!1})),di=Dn.pipe((0,le.w)(ri=>new te.y(Zn=>({unsubscribe:zt.runOutsideAngular(()=>ri.onAuthStateChanged(Wi=>Zn.next(Wi),Wi=>Zn.error(Wi),()=>Zn.complete()))})))),hi=Dn.pipe((0,le.w)(ri=>new te.y(Zn=>({unsubscribe:zt.runOutsideAngular(()=>ri.onIdTokenChanged(Wi=>Zn.next(Wi),Wi=>Zn.error(Wi),()=>Zn.complete()))}))));this.authState=pr.pipe(Ve(di),(0,je.R)(cn.outsideAngular),(0,q.Q)(cn.insideAngular)),this.user=pr.pipe(Ve(hi),(0,je.R)(cn.outsideAngular),(0,q.Q)(cn.insideAngular)),this.idToken=this.user.pipe((0,le.w)(ri=>ri?(0,Z.D)(ri.getIdToken()):(0,R.of)(null))),this.idTokenResult=this.user.pipe((0,le.w)(ri=>ri?(0,Z.D)(ri.getIdTokenResult()):(0,R.of)(null))),this.credential=(0,J.T)(pr,lr,this.authState.pipe((0,Je.h)(ri=>!ri))).pipe((0,K.U)(ri=>ri?.user?ri:null),(0,je.R)(cn.outsideAngular),(0,q.Q)(cn.insideAngular))}return(0,Ue.pX)(this,Dn,zt,{spy:{apply:(Di,pr,di)=>{(Di.startsWith("signIn")||Di.startsWith("createUser"))&&di.then(hi=>lr.next(hi))}}})}}return He.\u0275fac=function(et){return new(et||He)(r.LFG(Ue.Dh),r.LFG(Ue.xv,8),r.LFG(r.Lbi),r.LFG(r.R0b),r.LFG(Se.HU),r.LFG(Qt,8),r.LFG(gn,8),r.LFG(ii,8),r.LFG(_i,8),r.LFG(ar,8),r.LFG(vi,8),r.LFG(Nr,8))},He.\u0275prov=r.Yz7({token:He,factory:He.\u0275fac,providedIn:"any"}),He})(),Gi=(()=>{class He{constructor(){Wr.Z.registerVersion("angularfire",Se.q4.full,"auth-compat")}}return He.\u0275fac=function(et){return new(et||He)},He.\u0275mod=r.oAB({type:He}),He.\u0275inj=r.cJS({providers:[ai]}),He})()},6304:(It,Fe,g)=>{g.d(Fe,{Dh:()=>le,GT:()=>J,cc:()=>je,hO:()=>Ve,on:()=>N,pX:()=>Z,xv:()=>K});var r=g(5879),c=g(7142),R=g(2994);It=g.hmd(It);const te=["ngOnDestroy"],Z=($e,Ke,lt,ee={})=>new Proxy($e,{get:(Ie,de)=>lt.runOutsideAngular(()=>{var ve;if($e[de])return!(null===(ve=ee?.spy)||void 0===ve)&&ve.get&&ee.spy.get(de,$e[de]),$e[de];if(te.indexOf(de)>-1)return()=>{};const ze=Ke.toPromise().then(Te=>{const ct=Te&&Te[de];return"function"==typeof ct?ct.bind(Te):ct&&ct.then?ct.then(Et=>lt.run(()=>Et)):lt.run(()=>ct)});return new Proxy(()=>{},{get:(Te,ct)=>ze[ct],apply:(Te,ct,Et)=>ze.then(Bt=>{var Jt;const un=Bt&&Bt(...Et);return!(null===(Jt=ee?.spy)||void 0===Jt)&&Jt.apply&&ee.spy.apply(de,Et,un),un})})})}),J=($e,Ke)=>{Ke.forEach(lt=>{Object.getOwnPropertyNames(lt.prototype||lt).forEach(ee=>{Object.defineProperty($e.prototype,ee,Object.getOwnPropertyDescriptor(lt.prototype||lt,ee))})})};class q{constructor(Ke){return Ke}}const le=new r.OlP("angularfire2.app.options"),K=new r.OlP("angularfire2.app.name");function N($e,Ke,lt){const Ie="object"==typeof lt&&lt||{};Ie.name=Ie.name||"string"==typeof lt&&lt||"[DEFAULT]";const ve=c.Z.apps.filter(ze=>ze&&ze.name===Ie.name)[0]||Ke.runOutsideAngular(()=>c.Z.initializeApp($e,Ie));try{JSON.stringify($e)!==JSON.stringify(ve.options)&&z("error",`${ve.name} Firebase App already initialized with different options${It.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new q(ve)}const z=($e,...Ke)=>{(0,r.X6Q)()&&typeof console<"u"&&console[$e](...Ke)},fe={provide:q,useFactory:N,deps:[le,r.R0b,[new r.FiY,K]]};let Ve=(()=>{class $e{constructor(lt){c.Z.registerVersion("angularfire",R.q4.full,"core"),c.Z.registerVersion("angularfire",R.q4.full,"app-compat"),c.Z.registerVersion("angular",r.q4F.full,lt.toString())}static initializeApp(lt,ee){return{ngModule:$e,providers:[{provide:le,useValue:lt},{provide:K,useValue:ee}]}}}return $e.\u0275fac=function(lt){return new(lt||$e)(r.LFG(r.Lbi))},$e.\u0275mod=r.oAB({type:$e}),$e.\u0275inj=r.cJS({providers:[fe]}),$e})();function je($e,Ke,lt,ee,Ie){const[,de,ve]=globalThis.\u0275AngularfireInstanceCache.find(ze=>ze[0]===$e)||[];if(de)return function Je($e,Ke){try{return $e.toString()===Ke.toString()}catch{return $e===Ke}}(Ie,ve)||(Ue("error",`${Ke} was already initialized on the ${lt} Firebase App with different settings.${Se?" You may need to reload as Firebase is not HMR aware.":""}`),Ue("warn",{is:Ie,was:ve})),de;{const ze=ee();return globalThis.\u0275AngularfireInstanceCache.push([$e,ze,Ie]),ze}}const Se=!!It.hot,Ue=($e,...Ke)=>{(0,r.X6Q)()&&typeof console<"u"&&console[$e](...Ke)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},2994:(It,Fe,g)=>{g.d(Fe,{q4:()=>Ni,iC:()=>ir,HU:()=>Hn,vb:()=>at,JM:()=>Oe});var r=g(5879),c=g(3182),R=g(5861),te=g(4303),Z=g(9058),J=g(4537),q=g(7879),le=g(1878);const K="@firebase/installations",N="0.6.3",z=1e4,fe=`w:${N}`,Ve="FIS_v2",je="https://firebaseinstallations.googleapis.com/v1",Je=36e5,Ke=new Z.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 lt(b){return b instanceof Z.ZR&&b.code.includes("request-failed")}function ee({projectId:b}){return`${je}/projects/${b}/installations`}function Ie(b){return{token:b.token,requestStatus:2,expiresIn:Bt(b.expiresIn),creationTime:Date.now()}}function de(b,A){return ve.apply(this,arguments)}function ve(){return(ve=(0,R.Z)(function*(b,A){const Ce=(yield A.json()).error;return Ke.create("request-failed",{requestName:b,serverCode:Ce.code,serverMessage:Ce.message,serverStatus:Ce.status})})).apply(this,arguments)}function ze({apiKey:b}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":b})}function ct(b){return Et.apply(this,arguments)}function Et(){return(Et=(0,R.Z)(function*(b){const A=yield b();return A.status>=500&&A.status<600?b():A})).apply(this,arguments)}function Bt(b){return Number(b.replace("s","000"))}function on(){return(on=(0,R.Z)(function*({appConfig:b,heartbeatServiceProvider:A},{fid:U}){const Ce=ee(b),Ze=ze(b),ft=A.getImmediate({optional:!0});if(ft){const fn=yield ft.getHeartbeatsHeader();fn&&Ze.append("x-firebase-client",fn)}const an={method:"POST",headers:Ze,body:JSON.stringify({fid:U,authVersion:Ve,appId:b.appId,sdkVersion:fe})},_n=yield ct(()=>fetch(Ce,an));if(_n.ok){const fn=yield _n.json();return{fid:fn.fid||U,registrationStatus:2,refreshToken:fn.refreshToken,authToken:Ie(fn.authToken)}}throw yield de("Create Installation",_n)})).apply(this,arguments)}function mn(b){return new Promise(A=>{setTimeout(A,b)})}const Yn=/^[cdef][\w-]{21}$/,Xe="";function ot(){try{const b=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(b),b[0]=112+b[0]%16;const U=function ht(b){return function Nn(b){return btoa(String.fromCharCode(...b)).replace(/\+/g,"-").replace(/\//g,"_")}(b).substr(0,22)}(b);return Yn.test(U)?U:Xe}catch{return Xe}}function ae(b){return`${b.appName}!${b.appId}`}const Pe=new Map;function F(b,A){const U=ae(b);vt(U,A),function At(b,A){const U=function Nt(){return!Ht&&"BroadcastChannel"in self&&(Ht=new BroadcastChannel("[Firebase] FID Change"),Ht.onmessage=b=>{vt(b.data.key,b.data.fid)}),Ht}();U&&U.postMessage({key:b,fid:A}),function sn(){0===Pe.size&&Ht&&(Ht.close(),Ht=null)}()}(U,A)}function vt(b,A){const U=Pe.get(b);if(U)for(const Ce of U)Ce(A)}let Ht=null;const dn="firebase-installations-database",Cn=1,nn="firebase-installations-store";let In=null;function Wn(){return In||(In=(0,le.X3)(dn,Cn,{upgrade:(b,A)=>{0===A&&b.createObjectStore(nn)}})),In}function pt(b,A){return $.apply(this,arguments)}function $(){return($=(0,R.Z)(function*(b,A){const U=ae(b),Ze=(yield Wn()).transaction(nn,"readwrite"),ft=Ze.objectStore(nn),Ft=yield ft.get(U);return yield ft.put(A,U),yield Ze.done,(!Ft||Ft.fid!==A.fid)&&F(b,A.fid),A})).apply(this,arguments)}function be(b){return ke.apply(this,arguments)}function ke(){return(ke=(0,R.Z)(function*(b){const A=ae(b),Ce=(yield Wn()).transaction(nn,"readwrite");yield Ce.objectStore(nn).delete(A),yield Ce.done})).apply(this,arguments)}function ut(b,A){return it.apply(this,arguments)}function it(){return(it=(0,R.Z)(function*(b,A){const U=ae(b),Ze=(yield Wn()).transaction(nn,"readwrite"),ft=Ze.objectStore(nn),Ft=yield ft.get(U),an=A(Ft);return void 0===an?yield ft.delete(U):yield ft.put(an,U),yield Ze.done,an&&(!Ft||Ft.fid!==an.fid)&&F(b,an.fid),an})).apply(this,arguments)}function mt(b){return xt.apply(this,arguments)}function xt(){return xt=(0,R.Z)(function*(b){let A;const U=yield ut(b.appConfig,Ce=>{const Ze=function Zt(b){return Yt(b||{fid:ot(),registrationStatus:0})}(Ce),ft=function $t(b,A){if(0===A.registrationStatus){if(!navigator.onLine)return{installationEntry:A,registrationPromise:Promise.reject(Ke.create("app-offline"))};const U={fid:A.fid,registrationStatus:1,registrationTime:Date.now()},Ce=function qe(b,A){return dt.apply(this,arguments)}(b,U);return{installationEntry:U,registrationPromise:Ce}}return 1===A.registrationStatus?{installationEntry:A,registrationPromise:Re(b)}:{installationEntry:A}}(b,Ze);return A=ft.registrationPromise,ft.installationEntry});return U.fid===Xe?{installationEntry:yield A}:{installationEntry:U,registrationPromise:A}}),xt.apply(this,arguments)}function dt(){return dt=(0,R.Z)(function*(b,A){try{const U=yield function un(b,A){return on.apply(this,arguments)}(b,A);return pt(b.appConfig,U)}catch(U){throw lt(U)&&409===U.customData.serverCode?yield be(b.appConfig):yield pt(b.appConfig,{fid:A.fid,registrationStatus:0}),U}}),dt.apply(this,arguments)}function Re(b){return st.apply(this,arguments)}function st(){return(st=(0,R.Z)(function*(b){let A=yield yt(b.appConfig);for(;1===A.registrationStatus;)yield mn(100),A=yield yt(b.appConfig);if(0===A.registrationStatus){const{installationEntry:U,registrationPromise:Ce}=yield mt(b);return Ce||U}return A})).apply(this,arguments)}function yt(b){return ut(b,A=>{if(!A)throw Ke.create("installation-not-found");return Yt(A)})}function Yt(b){return function Gt(b){return 1===b.registrationStatus&&b.registrationTime+z<Date.now()}(b)?{fid:b.fid,registrationStatus:0}:b}function En(){return(En=(0,R.Z)(function*({appConfig:b,heartbeatServiceProvider:A},U){const Ce=function jn(b,{fid:A}){return`${ee(b)}/${A}/authTokens:generate`}(b,U),Ze=function Te(b,{refreshToken:A}){const U=ze(b);return U.append("Authorization",function Jt(b){return`${Ve} ${b}`}(A)),U}(b,U),ft=A.getImmediate({optional:!0});if(ft){const fn=yield ft.getHeartbeatsHeader();fn&&Ze.append("x-firebase-client",fn)}const an={method:"POST",headers:Ze,body:JSON.stringify({installation:{sdkVersion:fe,appId:b.appId}})},_n=yield ct(()=>fetch(Ce,an));if(_n.ok)return Ie(yield _n.json());throw yield de("Generate Auth Token",_n)})).apply(this,arguments)}function Vn(b){return Mn.apply(this,arguments)}function Mn(){return Mn=(0,R.Z)(function*(b,A=!1){let U;const Ce=yield ut(b.appConfig,ft=>{if(!Kt(ft))throw Ke.create("not-registered");const Ft=ft.authToken;if(!A&&function Ee(b){return 2===b.requestStatus&&!function ye(b){const A=Date.now();return A<b.creationTime||b.creationTime+b.expiresIn<A+Je}(b)}(Ft))return ft;if(1===Ft.requestStatus)return U=function Ge(b,A){return ie.apply(this,arguments)}(b,A),ft;{if(!navigator.onLine)throw Ke.create("app-offline");const an=function G(b){const A={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},b),{authToken:A})}(ft);return U=function We(b,A){return St.apply(this,arguments)}(b,an),an}});return U?yield U:Ce.authToken}),Mn.apply(this,arguments)}function ie(){return(ie=(0,R.Z)(function*(b,A){let U=yield ce(b.appConfig);for(;1===U.authToken.requestStatus;)yield mn(100),U=yield ce(b.appConfig);const Ce=U.authToken;return 0===Ce.requestStatus?Vn(b,A):Ce})).apply(this,arguments)}function ce(b){return ut(b,A=>{if(!Kt(A))throw Ke.create("not-registered");return function X(b){return 1===b.requestStatus&&b.requestTime+z<Date.now()}(A.authToken)?Object.assign(Object.assign({},A),{authToken:{requestStatus:0}}):A})}function St(){return St=(0,R.Z)(function*(b,A){try{const U=yield function tn(b,A){return En.apply(this,arguments)}(b,A),Ce=Object.assign(Object.assign({},A),{authToken:U});return yield pt(b.appConfig,Ce),U}catch(U){if(!lt(U)||401!==U.customData.serverCode&&404!==U.customData.serverCode){const Ce=Object.assign(Object.assign({},A),{authToken:{requestStatus:0}});yield pt(b.appConfig,Ce)}else yield be(b.appConfig);throw U}}),St.apply(this,arguments)}function Kt(b){return void 0!==b&&2===b.registrationStatus}function ue(){return(ue=(0,R.Z)(function*(b){const A=b,{installationEntry:U,registrationPromise:Ce}=yield mt(A);return Ce?Ce.catch(console.error):Vn(A).catch(console.error),U.fid})).apply(this,arguments)}function _t(){return _t=(0,R.Z)(function*(b,A=!1){const U=b;return yield function W(b){return se.apply(this,arguments)}(U),(yield Vn(U,A)).token}),_t.apply(this,arguments)}function se(){return(se=(0,R.Z)(function*(b){const{registrationPromise:A}=yield mt(b);A&&(yield A)})).apply(this,arguments)}function Ct(b){return Ke.create("missing-app-config-values",{valueName:b})}const Dt="installations",tt=b=>{const A=b.getProvider("app").getImmediate(),U=function Le(b){if(!b||!b.options)throw Ct("App Configuration");if(!b.name)throw Ct("App Name");const A=["projectId","apiKey","appId"];for(const U of A)if(!b.options[U])throw Ct(U);return{appName:b.name,projectId:b.options.projectId,apiKey:b.options.apiKey,appId:b.options.appId}}(A);return{app:A,appConfig:U,heartbeatServiceProvider:(0,te._getProvider)(A,"heartbeat"),_delete:()=>Promise.resolve()}},De=b=>{const A=b.getProvider("app").getImmediate(),U=(0,te._getProvider)(A,Dt).getImmediate();return{getId:()=>function re(b){return ue.apply(this,arguments)}(U),getToken:Ze=>function Be(b){return _t.apply(this,arguments)}(U,Ze)}};(function rt(){(0,te._registerComponent)(new J.wA(Dt,tt,"PUBLIC")),(0,te._registerComponent)(new J.wA("installations-internal",De,"PRIVATE"))})(),(0,te.registerVersion)(K,N),(0,te.registerVersion)(K,N,"esm2017");const Xt="@firebase/remote-config",Qn=new Z.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 go{constructor(A,U,Ce,Ze){this.client=A,this.storage=U,this.storageCache=Ce,this.logger=Ze}isCachedDataFresh(A,U){if(!U)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const Ce=Date.now()-U,Ze=Ce<=A;return this.logger.debug(`Config fetch cache check. Cache age millis: ${Ce}. Cache max age millis (minimumFetchIntervalMillis setting): ${A}. Is cache hit: ${Ze}.`),Ze}fetch(A){var U=this;return(0,R.Z)(function*(){const[Ce,Ze]=yield Promise.all([U.storage.getLastSuccessfulFetchTimestampMillis(),U.storage.getLastSuccessfulFetchResponse()]);if(Ze&&U.isCachedDataFresh(A.cacheMaxAgeMillis,Ce))return Ze;A.eTag=Ze&&Ze.eTag;const ft=yield U.client.fetch(A),Ft=[U.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===ft.status&&Ft.push(U.storage.setLastSuccessfulFetchResponse(ft)),yield Promise.all(Ft),ft})()}}function or(b=navigator){return b.languages&&b.languages[0]||b.language}class Mr{constructor(A,U,Ce,Ze,ft,Ft){this.firebaseInstallations=A,this.sdkVersion=U,this.namespace=Ce,this.projectId=Ze,this.apiKey=ft,this.appId=Ft}fetch(A){var U=this;return(0,R.Z)(function*(){const[Ce,Ze]=yield Promise.all([U.firebaseInstallations.getId(),U.firebaseInstallations.getToken()]),Ft=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${U.projectId}/namespaces/${U.namespace}:fetch?key=${U.apiKey}`,an={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":A.eTag||"*"},_n={sdk_version:U.sdkVersion,app_instance_id:Ce,app_instance_id_token:Ze,app_id:U.appId,language_code:or()},fn={method:"POST",headers:an,body:JSON.stringify(_n)},Vt=fetch(Ft,fn),Lt=new Promise((rr,li)=>{A.signal.addEventListener(()=>{const Ys=new Error("The operation was aborted.");Ys.name="AbortError",li(Ys)})});let pn;try{yield Promise.race([Vt,Lt]),pn=yield Vt}catch(rr){let li="fetch-client-network";throw"AbortError"===rr?.name&&(li="fetch-timeout"),Qn.create(li,{originalErrorMessage:rr?.message})}let Rn=pn.status;const xi=pn.headers.get("ETag")||void 0;let Rr,hr;if(200===pn.status){let rr;try{rr=yield pn.json()}catch(li){throw Qn.create("fetch-client-parse",{originalErrorMessage:li?.message})}Rr=rr.entries,hr=rr.state}if("INSTANCE_STATE_UNSPECIFIED"===hr?Rn=500:"NO_CHANGE"===hr?Rn=304:("NO_TEMPLATE"===hr||"EMPTY_CONFIG"===hr)&&(Rr={}),304!==Rn&&200!==Rn)throw Qn.create("fetch-status",{httpStatus:Rn});return{status:Rn,eTag:xi,config:Rr}})()}}class Lr{constructor(A,U){this.client=A,this.storage=U}fetch(A){var U=this;return(0,R.Z)(function*(){const Ce=(yield U.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return U.attemptFetch(A,Ce)})()}attemptFetch(A,{throttleEndTimeMillis:U,backoffCount:Ce}){var Ze=this;return(0,R.Z)(function*(){yield function io(b,A){return new Promise((U,Ce)=>{const Ze=Math.max(A-Date.now(),0),ft=setTimeout(U,Ze);b.addEventListener(()=>{clearTimeout(ft),Ce(Qn.create("fetch-throttle",{throttleEndTimeMillis:A}))})})}(A.signal,U);try{const ft=yield Ze.client.fetch(A);return yield Ze.storage.deleteThrottleMetadata(),ft}catch(ft){if(!function Nr(b){if(!(b instanceof Z.ZR&&b.customData))return!1;const A=Number(b.customData.httpStatus);return 429===A||500===A||503===A||504===A}(ft))throw ft;const Ft={throttleEndTimeMillis:Date.now()+(0,Z.$s)(Ce),backoffCount:Ce+1};return yield Ze.storage.setThrottleMetadata(Ft),Ze.attemptFetch(A,Ft)}})()}}class Br{constructor(A,U,Ce,Ze,ft){this.app=A,this._client=U,this._storageCache=Ce,this._storage=Ze,this._logger=ft,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 Pi(b,A){const U=b.target.error||void 0;return Qn.create(A,{originalErrorMessage:U&&U?.message})}const Yi="app_namespace_store";class Ii{constructor(A,U,Ce,Ze=function Bi(){return new Promise((b,A)=>{try{const U=indexedDB.open("firebase_remote_config",1);U.onerror=Ce=>{A(Pi(Ce,"storage-open"))},U.onsuccess=Ce=>{b(Ce.target.result)},U.onupgradeneeded=Ce=>{0===Ce.oldVersion&&Ce.target.result.createObjectStore(Yi,{keyPath:"compositeKey"})}}catch(U){A(Qn.create("storage-open",{originalErrorMessage:U?.message}))}})}()){this.appId=A,this.appName=U,this.namespace=Ce,this.openDbPromise=Ze}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(A){return this.set("last_fetch_status",A)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(A){return this.set("last_successful_fetch_timestamp_millis",A)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(A){return this.set("last_successful_fetch_response",A)}getActiveConfig(){return this.get("active_config")}setActiveConfig(A){return this.set("active_config",A)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(A){return this.set("active_config_etag",A)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(A){return this.set("throttle_metadata",A)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(A){var U=this;return(0,R.Z)(function*(){const Ce=yield U.openDbPromise;return new Promise((Ze,ft)=>{const an=Ce.transaction([Yi],"readonly").objectStore(Yi),_n=U.createCompositeKey(A);try{const fn=an.get(_n);fn.onerror=Vt=>{ft(Pi(Vt,"storage-get"))},fn.onsuccess=Vt=>{const Lt=Vt.target.result;Ze(Lt?Lt.value:void 0)}}catch(fn){ft(Qn.create("storage-get",{originalErrorMessage:fn?.message}))}})})()}set(A,U){var Ce=this;return(0,R.Z)(function*(){const Ze=yield Ce.openDbPromise;return new Promise((ft,Ft)=>{const _n=Ze.transaction([Yi],"readwrite").objectStore(Yi),fn=Ce.createCompositeKey(A);try{const Vt=_n.put({compositeKey:fn,value:U});Vt.onerror=Lt=>{Ft(Pi(Lt,"storage-set"))},Vt.onsuccess=()=>{ft()}}catch(Vt){Ft(Qn.create("storage-set",{originalErrorMessage:Vt?.message}))}})})()}delete(A){var U=this;return(0,R.Z)(function*(){const Ce=yield U.openDbPromise;return new Promise((Ze,ft)=>{const an=Ce.transaction([Yi],"readwrite").objectStore(Yi),_n=U.createCompositeKey(A);try{const fn=an.delete(_n);fn.onerror=Vt=>{ft(Pi(Vt,"storage-delete"))},fn.onsuccess=()=>{Ze()}}catch(fn){ft(Qn.create("storage-delete",{originalErrorMessage:fn?.message}))}})})()}createCompositeKey(A){return[this.appId,this.appName,this.namespace,A].join()}}class Vi{constructor(A){this.storage=A}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var A=this;return(0,R.Z)(function*(){const U=A.storage.getLastFetchStatus(),Ce=A.storage.getLastSuccessfulFetchTimestampMillis(),Ze=A.storage.getActiveConfig(),ft=yield U;ft&&(A.lastFetchStatus=ft);const Ft=yield Ce;Ft&&(A.lastSuccessfulFetchTimestampMillis=Ft);const an=yield Ze;an&&(A.activeConfig=an)})()}setLastFetchStatus(A){return this.lastFetchStatus=A,this.storage.setLastFetchStatus(A)}setLastSuccessfulFetchTimestampMillis(A){return this.lastSuccessfulFetchTimestampMillis=A,this.storage.setLastSuccessfulFetchTimestampMillis(A)}setActiveConfig(A){return this.activeConfig=A,this.storage.setActiveConfig(A)}}function Gr(){return Wr.apply(this,arguments)}function Wr(){return(Wr=(0,R.Z)(function*(){if(!(0,Z.hl)())return!1;try{return yield(0,Z.eu)()}catch{return!1}})).apply(this,arguments)}!function wo(){(0,te._registerComponent)(new J.wA("remote-config",function b(A,{instanceIdentifier:U}){const Ce=A.getProvider("app").getImmediate(),Ze=A.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw Qn.create("registration-window");if(!(0,Z.hl)())throw Qn.create("indexed-db-unavailable");const{projectId:ft,apiKey:Ft,appId:an}=Ce.options;if(!ft)throw Qn.create("registration-project-id");if(!Ft)throw Qn.create("registration-api-key");if(!an)throw Qn.create("registration-app-id");const _n=new Ii(an,Ce.name,U=U||"firebase"),fn=new Vi(_n),Vt=new q.Yd(Xt);Vt.logLevel=q.in.ERROR;const Lt=new Mr(Ze,te.SDK_VERSION,U,ft,Ft,an),pn=new Lr(Lt,_n),Rn=new go(pn,_n,fn,Vt),xi=new Br(Ce,Rn,fn,_n,Vt);return function er(b){const A=(0,Z.m9)(b);A._initializePromise||(A._initializePromise=A._storageCache.loadFromStorage().then(()=>{A._isInitializationComplete=!0}))}(xi),xi},"PUBLIC").setMultipleInstances(!0)),(0,te.registerVersion)(Xt,"0.4.3"),(0,te.registerVersion)(Xt,"0.4.3","esm2017")}();const ni="/firebase-messaging-sw.js",Qt="/firebase-cloud-messaging-push-scope",gn="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ii="https://fcmregistrations.googleapis.com/v1",_i="google.c.a.c_id",ar="google.c.a.c_l",vi="google.c.a.ts";var Gi=function(b){return b.PUSH_RECEIVED="push-received",b.NOTIFICATION_CLICKED="notification-clicked",b}(Gi||{});function He(b){const A=new Uint8Array(b);return btoa(String.fromCharCode(...A)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function we(b){const U=(b+"=".repeat((4-b.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),Ce=atob(U),Ze=new Uint8Array(Ce.length);for(let ft=0;ft<Ce.length;++ft)Ze[ft]=Ce.charCodeAt(ft);return Ze}const et="fcm_token_details_db",wt=5,Ot="fcm_token_object_Store";function cn(){return cn=(0,R.Z)(function*(b){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(ft=>ft.name).includes(et))return null;let A=null;return(yield(0,le.X3)(et,wt,{upgrade:(Ce=(0,R.Z)(function*(Ze,ft,Ft,an){var _n;if(ft<2||!Ze.objectStoreNames.contains(Ot))return;const fn=an.objectStore(Ot),Vt=yield fn.index("fcmSenderId").get(b);if(yield fn.clear(),Vt)if(2===ft){const Lt=Vt;if(!Lt.auth||!Lt.p256dh||!Lt.endpoint)return;A={token:Lt.fcmToken,createTime:null!==(_n=Lt.createTime)&&void 0!==_n?_n:Date.now(),subscriptionOptions:{auth:Lt.auth,p256dh:Lt.p256dh,endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:"string"==typeof Lt.vapidKey?Lt.vapidKey:He(Lt.vapidKey)}}}else if(3===ft){const Lt=Vt;A={token:Lt.fcmToken,createTime:Lt.createTime,subscriptionOptions:{auth:He(Lt.auth),p256dh:He(Lt.p256dh),endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:He(Lt.vapidKey)}}}else if(4===ft){const Lt=Vt;A={token:Lt.fcmToken,createTime:Lt.createTime,subscriptionOptions:{auth:He(Lt.auth),p256dh:He(Lt.p256dh),endpoint:Lt.endpoint,swScope:Lt.swScope,vapidKey:He(Lt.vapidKey)}}}}),function(ft,Ft,an,_n){return Ce.apply(this,arguments)})})).close(),yield(0,le.Lj)(et),yield(0,le.Lj)("fcm_vapid_details_db"),yield(0,le.Lj)("undefined"),function Kn(b){if(!b||!b.subscriptionOptions)return!1;const{subscriptionOptions:A}=b;return"number"==typeof b.createTime&&b.createTime>0&&"string"==typeof b.token&&b.token.length>0&&"string"==typeof A.auth&&A.auth.length>0&&"string"==typeof A.p256dh&&A.p256dh.length>0&&"string"==typeof A.endpoint&&A.endpoint.length>0&&"string"==typeof A.swScope&&A.swScope.length>0&&"string"==typeof A.vapidKey&&A.vapidKey.length>0}(A)?A:null;var Ce}),cn.apply(this,arguments)}const xn="firebase-messaging-database",Ui=1,Ri="firebase-messaging-store";let ui=null;function tr(){return ui||(ui=(0,le.X3)(xn,Ui,{upgrade:(b,A)=>{0===A&&b.createObjectStore(Ri)}})),ui}function Zi(b){return lr.apply(this,arguments)}function lr(){return lr=(0,R.Z)(function*(b){const A=hi(b),Ce=yield(yield tr()).transaction(Ri).objectStore(Ri).get(A);if(Ce)return Ce;{const Ze=yield function zt(b){return cn.apply(this,arguments)}(b.appConfig.senderId);if(Ze)return yield Dn(b,Ze),Ze}}),lr.apply(this,arguments)}function Dn(b,A){return Di.apply(this,arguments)}function Di(){return(Di=(0,R.Z)(function*(b,A){const U=hi(b),Ze=(yield tr()).transaction(Ri,"readwrite");return yield Ze.objectStore(Ri).put(A,U),yield Ze.done,A})).apply(this,arguments)}function di(){return(di=(0,R.Z)(function*(b){const A=hi(b),Ce=(yield tr()).transaction(Ri,"readwrite");yield Ce.objectStore(Ri).delete(A),yield Ce.done})).apply(this,arguments)}function hi({appConfig:b}){return b.appId}const Zn=new Z.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 Wi(b,A){return fi.apply(this,arguments)}function fi(){return(fi=(0,R.Z)(function*(b,A){const U=yield Yr(b),Ce=Vr(A),Ze={method:"POST",headers:U,body:JSON.stringify(Ce)};let ft;try{ft=yield(yield fetch(cr(b.appConfig),Ze)).json()}catch(Ft){throw Zn.create("token-subscribe-failed",{errorInfo:Ft?.toString()})}if(ft.error)throw Zn.create("token-subscribe-failed",{errorInfo:ft.error.message});if(!ft.token)throw Zn.create("token-subscribe-no-token");return ft.token})).apply(this,arguments)}function wi(){return(wi=(0,R.Z)(function*(b,A){const U=yield Yr(b),Ce=Vr(A.subscriptionOptions),Ze={method:"PATCH",headers:U,body:JSON.stringify(Ce)};let ft;try{ft=yield(yield fetch(`${cr(b.appConfig)}/${A.token}`,Ze)).json()}catch(Ft){throw Zn.create("token-update-failed",{errorInfo:Ft?.toString()})}if(ft.error)throw Zn.create("token-update-failed",{errorInfo:ft.error.message});if(!ft.token)throw Zn.create("token-update-no-token");return ft.token})).apply(this,arguments)}function bi(b,A){return gr.apply(this,arguments)}function gr(){return(gr=(0,R.Z)(function*(b,A){const Ce={method:"DELETE",headers:yield Yr(b)};try{const ft=yield(yield fetch(`${cr(b.appConfig)}/${A}`,Ce)).json();if(ft.error)throw Zn.create("token-unsubscribe-failed",{errorInfo:ft.error.message})}catch(Ze){throw Zn.create("token-unsubscribe-failed",{errorInfo:Ze?.toString()})}})).apply(this,arguments)}function cr({projectId:b}){return`${ii}/projects/${b}/registrations`}function Yr(b){return Hi.apply(this,arguments)}function Hi(){return(Hi=(0,R.Z)(function*({appConfig:b,installations:A}){const U=yield A.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":b.apiKey,"x-goog-firebase-installations-auth":`FIS ${U}`})})).apply(this,arguments)}function Vr({p256dh:b,auth:A,endpoint:U,vapidKey:Ce}){const Ze={web:{endpoint:U,auth:A,p256dh:b}};return Ce!==gn&&(Ze.web.applicationPubKey=Ce),Ze}const ls=6048e5;function $o(){return $o=(0,R.Z)(function*(b){const A=yield function pi(b,A){return Kr.apply(this,arguments)}(b.swRegistration,b.vapidKey),U={vapidKey:b.vapidKey,swScope:b.swRegistration.scope,endpoint:A.endpoint,auth:He(A.getKey("auth")),p256dh:He(A.getKey("p256dh"))},Ce=yield Zi(b.firebaseDependencies);if(Ce){if(function Ms(b,A){return A.vapidKey===b.vapidKey&&A.endpoint===b.endpoint&&A.auth===b.auth&&A.p256dh===b.p256dh}(Ce.subscriptionOptions,U))return Date.now()>=Ce.createTime+ls?function cs(b,A){return us.apply(this,arguments)}(b,{token:Ce.token,createTime:Date.now(),subscriptionOptions:U}):Ce.token;try{yield bi(b.firebaseDependencies,Ce.token)}catch(Ze){console.warn(Ze)}return ds(b.firebaseDependencies,U)}return ds(b.firebaseDependencies,U)}),$o.apply(this,arguments)}function so(){return so=(0,R.Z)(function*(b){const A=yield Zi(b.firebaseDependencies);A&&(yield bi(b.firebaseDependencies,A.token),yield function pr(b){return di.apply(this,arguments)}(b.firebaseDependencies));const U=yield b.swRegistration.pushManager.getSubscription();return!U||U.unsubscribe()}),so.apply(this,arguments)}function us(){return us=(0,R.Z)(function*(b,A){try{const U=yield function as(b,A){return wi.apply(this,arguments)}(b.firebaseDependencies,A),Ce=Object.assign(Object.assign({},A),{token:U,createTime:Date.now()});return yield Dn(b.firebaseDependencies,Ce),U}catch(U){throw yield function zo(b){return so.apply(this,arguments)}(b),U}}),us.apply(this,arguments)}function ds(b,A){return Go.apply(this,arguments)}function Go(){return(Go=(0,R.Z)(function*(b,A){const Ce={token:yield Wi(b,A),createTime:Date.now(),subscriptionOptions:A};return yield Dn(b,Ce),Ce.token})).apply(this,arguments)}function Kr(){return(Kr=(0,R.Z)(function*(b,A){return(yield b.pushManager.getSubscription())||b.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:we(A)})})).apply(this,arguments)}function I(b){const A={from:b.from,collapseKey:b.collapse_key,messageId:b.fcmMessageId};return function w(b,A){if(!A.notification)return;b.notification={};const U=A.notification.title;U&&(b.notification.title=U);const Ce=A.notification.body;Ce&&(b.notification.body=Ce);const Ze=A.notification.image;Ze&&(b.notification.image=Ze);const ft=A.notification.icon;ft&&(b.notification.icon=ft)}(A,b),function Q(b,A){A.data&&(b.data=A.data)}(A,b),function x(b,A){var U,Ce,Ze,ft,Ft;if(!(A.fcmOptions||null!==(U=A.notification)&&void 0!==U&&U.click_action))return;b.fcmOptions={};const an=null!==(Ze=null===(Ce=A.fcmOptions)||void 0===Ce?void 0:Ce.link)&&void 0!==Ze?Ze:null===(ft=A.notification)||void 0===ft?void 0:ft.click_action;an&&(b.fcmOptions.link=an);const _n=null===(Ft=A.fcmOptions)||void 0===Ft?void 0:Ft.analytics_label;_n&&(b.fcmOptions.analyticsLabel=_n)}(A,b),A}function Rt(b,A){const U=[];for(let Ce=0;Ce<b.length;Ce++)U.push(b.charAt(Ce)),Ce<A.length&&U.push(A.charAt(Ce));return U.join("")}function Fi(b){return Zn.create("missing-app-config-values",{valueName:b})}Rt("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Rt("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class mr{constructor(A,U,Ce){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Ze=function wn(b){if(!b||!b.options)throw Fi("App Configuration Object");if(!b.name)throw Fi("App Name");const A=["projectId","apiKey","appId","messagingSenderId"],{options:U}=b;for(const Ce of A)if(!U[Ce])throw Fi(Ce);return{appName:b.name,projectId:U.projectId,apiKey:U.apiKey,appId:U.appId,senderId:U.messagingSenderId}}(A);this.firebaseDependencies={app:A,appConfig:Ze,installations:U,analyticsProvider:Ce}}_delete(){return Promise.resolve()}}function mi(){return(mi=(0,R.Z)(function*(b){try{b.swRegistration=yield navigator.serviceWorker.register(ni,{scope:Qt}),b.swRegistration.update().catch(()=>{})}catch(A){throw Zn.create("failed-service-worker-registration",{browserErrorMessage:A?.message})}})).apply(this,arguments)}function Cr(){return(Cr=(0,R.Z)(function*(b,A){if(!A&&!b.swRegistration&&(yield function Qi(b){return mi.apply(this,arguments)}(b)),A||!b.swRegistration){if(!(A instanceof ServiceWorkerRegistration))throw Zn.create("invalid-sw-registration");b.swRegistration=A}})).apply(this,arguments)}function Wo(){return(Wo=(0,R.Z)(function*(b,A){A?b.vapidKey=A:b.vapidKey||(b.vapidKey=gn)})).apply(this,arguments)}function Po(){return Po=(0,R.Z)(function*(b,A){if(!navigator)throw Zn.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw Zn.create("permission-blocked");return yield function Ar(b,A){return Wo.apply(this,arguments)}(b,A?.vapidKey),yield function Zr(b,A){return Cr.apply(this,arguments)}(b,A?.serviceWorkerRegistration),function Oo(b){return $o.apply(this,arguments)}(b)}),Po.apply(this,arguments)}function Ts(){return(Ts=(0,R.Z)(function*(b,A,U){const Ce=function Yo(b){switch(b){case Gi.NOTIFICATION_CLICKED:return"notification_open";case Gi.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(A);(yield b.firebaseDependencies.analyticsProvider.get()).logEvent(Ce,{message_id:U[_i],message_name:U[ar],message_time:U[vi],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function ao(){return ao=(0,R.Z)(function*(b,A){const U=A.data;if(!U.isFirebaseMessaging)return;b.onMessageHandler&&U.messageType===Gi.PUSH_RECEIVED&&("function"==typeof b.onMessageHandler?b.onMessageHandler(I(U)):b.onMessageHandler.next(I(U)));const Ce=U.data;(function pe(b){return"object"==typeof b&&!!b&&_i in b})(Ce)&&"1"===Ce["google.c.a.e"]&&(yield function Mo(b,A,U){return Ts.apply(this,arguments)}(b,U.messageType,Ce))}),ao.apply(this,arguments)}const ki="@firebase/messaging",mo=b=>{const A=new mr(b.getProvider("app").getImmediate(),b.getProvider("installations-internal").getImmediate(),b.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",U=>function ur(b,A){return ao.apply(this,arguments)}(A,U)),A},Ro=b=>{const A=b.getProvider("messaging").getImmediate();return{getToken:Ce=>function As(b,A){return Po.apply(this,arguments)}(A,Ce)}};function Tr(){return Ur.apply(this,arguments)}function Ur(){return(Ur=(0,R.Z)(function*(){try{yield(0,Z.eu)()}catch{return!1}return typeof window<"u"&&(0,Z.hl)()&&(0,Z.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 Fo(){(0,te._registerComponent)(new J.wA("messaging",mo,"PUBLIC")),(0,te._registerComponent)(new J.wA("messaging-internal",Ro,"PRIVATE")),(0,te.registerVersion)(ki,"0.12.3"),(0,te.registerVersion)(ki,"0.12.3","esm2017")}();const Xo="analytics",Ss="firebase_id",Ao="origin",Is=6e4,hs="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",lo="https://www.googletagmanager.com/gtag/js",ji=new q.Yd("@firebase/analytics");function dr(b){return Promise.all(b.map(A=>A.catch(U=>U)))}function D(){return(D=(0,R.Z)(function*(b,A,U,Ce,Ze,ft){const Ft=Ce[Ze];try{if(Ft)yield A[Ft];else{const _n=(yield dr(U)).find(fn=>fn.measurementId===Ze);_n&&(yield A[_n.appId])}}catch(an){ji.error(an)}b("config",Ze,ft)})).apply(this,arguments)}function Ne(){return(Ne=(0,R.Z)(function*(b,A,U,Ce,Ze){try{let ft=[];if(Ze&&Ze.send_to){let Ft=Ze.send_to;Array.isArray(Ft)||(Ft=[Ft]);const an=yield dr(U);for(const _n of Ft){const fn=an.find(Lt=>Lt.measurementId===_n),Vt=fn&&A[fn.appId];if(!Vt){ft=[];break}ft.push(Vt)}}0===ft.length&&(ft=Object.values(A)),yield Promise.all(ft),b("event",Ce,Ze||{})}catch(ft){ji.error(ft)}})).apply(this,arguments)}const Tn=new Z.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.'}),vn=30,gi=new class Jn{constructor(A={},U=1e3){this.throttleMetadata=A,this.intervalMillis=U}getThrottleMetadata(A){return this.throttleMetadata[A]}setThrottleMetadata(A,U){this.throttleMetadata[A]=U}deleteThrottleMetadata(A){delete this.throttleMetadata[A]}};function Ai(b){return new Headers({Accept:"application/json","x-goog-api-key":b})}function Qr(){return(Qr=(0,R.Z)(function*(b){var A;const{appId:U,apiKey:Ce}=b,Ze={method:"GET",headers:Ai(Ce)},ft=hs.replace("{app-id}",U),Ft=yield fetch(ft,Ze);if(200!==Ft.status&&304!==Ft.status){let an="";try{const _n=yield Ft.json();null!==(A=_n.error)&&void 0!==A&&A.message&&(an=_n.error.message)}catch{}throw Tn.create("config-fetch-failed",{httpStatus:Ft.status,responseMessage:an})}return Ft.json()})).apply(this,arguments)}function oi(){return(oi=(0,R.Z)(function*(b,A=gi,U){const{appId:Ce,apiKey:Ze,measurementId:ft}=b.options;if(!Ce)throw Tn.create("no-app-id");if(!Ze){if(ft)return{measurementId:ft,appId:Ce};throw Tn.create("no-api-key")}const Ft=A.getThrottleMetadata(Ce)||{backoffCount:0,throttleEndTimeMillis:Date.now()},an=new xs;return setTimeout((0,R.Z)(function*(){an.abort()}),void 0!==U?U:Is),Hr({appId:Ce,apiKey:Ze,measurementId:ft},Ft,an,A)})).apply(this,arguments)}function Hr(b,A,U){return Ir.apply(this,arguments)}function Ir(){return Ir=(0,R.Z)(function*(b,{throttleEndTimeMillis:A,backoffCount:U},Ce,Ze=gi){var ft;const{appId:Ft,measurementId:an}=b;try{yield function Hs(b,A){return new Promise((U,Ce)=>{const Ze=Math.max(A-Date.now(),0),ft=setTimeout(U,Ze);b.addEventListener(()=>{clearTimeout(ft),Ce(Tn.create("fetch-throttle",{throttleEndTimeMillis:A}))})})}(Ce,A)}catch(_n){if(an)return ji.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${an} provided in the "measurementId" field in the local Firebase config. [${_n?.message}]`),{appId:Ft,measurementId:an};throw _n}try{const _n=yield function Sr(b){return Qr.apply(this,arguments)}(b);return Ze.deleteThrottleMetadata(Ft),_n}catch(_n){const fn=_n;if(!function js(b){if(!(b instanceof Z.ZR&&b.customData))return!1;const A=Number(b.customData.httpStatus);return 429===A||500===A||503===A||504===A}(fn)){if(Ze.deleteThrottleMetadata(Ft),an)return ji.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${an} provided in the "measurementId" field in the local Firebase config. [${fn?.message}]`),{appId:Ft,measurementId:an};throw _n}const Vt=503===Number(null===(ft=fn?.customData)||void 0===ft?void 0:ft.httpStatus)?(0,Z.$s)(U,Ze.intervalMillis,vn):(0,Z.$s)(U,Ze.intervalMillis),Lt={throttleEndTimeMillis:Date.now()+Vt,backoffCount:U+1};return Ze.setThrottleMetadata(Ft,Lt),ji.debug(`Calling attemptFetch again in ${Vt} millis`),Hr(b,Lt,Ce,Ze)}}),Ir.apply(this,arguments)}class xs{constructor(){this.listeners=[]}addEventListener(A){this.listeners.push(A)}abort(){this.listeners.forEach(A=>A())}}let $s,Ps;function fs(){return(fs=(0,R.Z)(function*(b,A,U,Ce,Ze){if(Ze&&Ze.global)b("event",U,Ce);else{const ft=yield A;b("event",U,Object.assign(Object.assign({},Ce),{send_to:ft}))}})).apply(this,arguments)}function qn(){return(qn=(0,R.Z)(function*(){if(!(0,Z.hl)())return ji.warn(Tn.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,Z.eu)()}catch(b){return ji.warn(Tn.create("indexeddb-unavailable",{errorInfo:b?.toString()}).message),!1}return!0})).apply(this,arguments)}function Rs(){return Rs=(0,R.Z)(function*(b,A,U,Ce,Ze,ft,Ft){var an;const _n=function _r(b){return oi.apply(this,arguments)}(b);_n.then(Rn=>{U[Rn.measurementId]=Rn.appId,b.options.measurementId&&Rn.measurementId!==b.options.measurementId&&ji.warn(`The measurement ID in the local Firebase config (${b.options.measurementId}) does not match the measurement ID fetched from the server (${Rn.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(Rn=>ji.error(Rn)),A.push(_n);const fn=function Pt(){return qn.apply(this,arguments)}().then(Rn=>{if(Rn)return Ce.getId()}),[Vt,Lt]=yield Promise.all([_n,fn]);(function ln(b){const A=window.document.getElementsByTagName("script");for(const U of Object.values(A))if(U.src&&U.src.includes(lo)&&U.src.includes(b))return U;return null})(ft)||function p(b,A){const U=document.createElement("script");U.src=`${lo}?l=${b}&id=${A}`,U.async=!0,document.head.appendChild(U)}(ft,Vt.measurementId),Ps&&(Ze("consent","default",Ps),function gs(b){Ps=b}(void 0)),Ze("js",new Date);const pn=null!==(an=Ft?.config)&&void 0!==an?an:{};return pn[Ao]="firebase",pn.update=!0,null!=Lt&&(pn[Ss]=Lt),Ze("config",Vt.measurementId,pn),$s&&(Ze("set",$s),function ms(b){$s=b}(void 0)),Vt.measurementId}),Rs.apply(this,arguments)}class qi{constructor(A){this.app=A}_delete(){return delete qr[this.app.options.appId],Promise.resolve()}}let qr={},es=[];const $r={};let Fs,Xr,Bo="dataLayer",vs=!1;function ks(b,A,U){!function uo(){const b=[];if((0,Z.ru)()&&b.push("This is a browser extension environment."),(0,Z.zI)()||b.push("Cookies are not available."),b.length>0){const A=b.map((Ce,Ze)=>`(${Ze+1}) ${Ce}`).join(" "),U=Tn.create("invalid-analytics-context",{errorInfo:A});ji.warn(U.message)}}();const Ce=b.options.appId;if(!Ce)throw Tn.create("no-app-id");if(!b.options.apiKey){if(!b.options.measurementId)throw Tn.create("no-api-key");ji.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 ${b.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=qr[Ce])throw Tn.create("already-exists",{id:Ce});if(!vs){!function T(b){let A=[];Array.isArray(window[b])?A=window[b]:window[b]=A}(Bo);const{wrappedGtag:ft,gtagCore:Ft}=function jt(b,A,U,Ce,Ze){let ft=function(...Ft){window[Ce].push(arguments)};return window[Ze]&&"function"==typeof window[Ze]&&(ft=window[Ze]),window[Ze]=function Mt(b,A,U,Ce){function ft(){return ft=(0,R.Z)(function*(Ft,an,_n){try{"event"===Ft?yield function ne(b,A,U,Ce,Ze){return Ne.apply(this,arguments)}(b,A,U,an,_n):"config"===Ft?yield function he(b,A,U,Ce,Ze,ft){return D.apply(this,arguments)}(b,A,U,Ce,an,_n):"consent"===Ft?b("consent","update",_n):b("set",an)}catch(fn){ji.error(fn)}}),ft.apply(this,arguments)}return function Ze(Ft,an,_n){return ft.apply(this,arguments)}}(ft,b,A,U),{gtagCore:ft,wrappedGtag:window[Ze]}}(qr,es,$r,Bo,"gtag");Xr=ft,Fs=Ft,vs=!0}return qr[Ce]=function _s(b,A,U,Ce,Ze,ft,Ft){return Rs.apply(this,arguments)}(b,es,$r,A,Fs,Bo,U),new qi(b)}function Js(){return _o.apply(this,arguments)}function _o(){return(_o=(0,R.Z)(function*(){if((0,Z.ru)()||!(0,Z.zI)()||!(0,Z.hl)())return!1;try{return yield(0,Z.eu)()}catch{return!1}})).apply(this,arguments)}const Ws="@firebase/analytics",h="0.9.3";!function _(){(0,te._registerComponent)(new J.wA(Xo,(A,{options:U})=>ks(A.getProvider("app").getImmediate(),A.getProvider("installations-internal").getImmediate(),U),"PUBLIC")),(0,te._registerComponent)(new J.wA("analytics-internal",function b(A){try{const U=A.getProvider(Xo).getImmediate();return{logEvent:(Ce,Ze,ft)=>function Gs(b,A,U,Ce){b=(0,Z.m9)(b),function Fn(b,A,U,Ce,Ze){return fs.apply(this,arguments)}(Xr,qr[b.app.options.appId],A,U,Ce).catch(Ze=>ji.error(Ze))}(U,Ce,Ze,ft)}}catch(U){throw Tn.create("interop-component-reg-failed",{reason:U})}},"PRIVATE")),(0,te.registerVersion)(Ws,h),(0,te.registerVersion)(Ws,h,"esm2017")}();var C=g(1954),M=g(2631);const ge=new class Y extends M.v{}(class f extends C.o{constructor(A,U){super(A,U),this.scheduler=A,this.work=U}schedule(A,U=0){return U>0?super.schedule(A,U):(this.delay=U,this.state=A,this.scheduler.flush(this),this)}execute(A,U){return U>0||this.closed?super.execute(A,U):this._execute(A,U)}requestAsyncId(A,U,Ce=0){return null!=Ce&&Ce>0||null==Ce&&this.delay>0?super.requestAsyncId(A,U,Ce):(A.flush(this),0)}});var bt=g(6321),Wt=g(9397),hn=g(5137),yn=g(3093);const Ni=new r.GfV("7.5.0"),Or="__angularfire_symbol__analyticsIsSupportedValue",So="__angularfire_symbol__analyticsIsSupported",vo="__angularfire_symbol__remoteConfigIsSupportedValue",y="__angularfire_symbol__remoteConfigIsSupported",a="__angularfire_symbol__messagingIsSupportedValue",u="__angularfire_symbol__messagingIsSupported";function Oe(b,A,U){if(A){if(1===A.length)return A[0];const ft=A.filter(Ft=>Ft.app===U);if(1===ft.length)return ft[0]}return U.container.getProvider(b).getImmediate({optional:!0})}globalThis[So]||(globalThis[So]=Js().then(b=>globalThis[Or]=b).catch(()=>globalThis[Or]=!1)),globalThis[u]||(globalThis[u]=Tr().then(b=>globalThis[a]=b).catch(()=>globalThis[a]=!1)),globalThis[y]||(globalThis[y]=Gr().then(b=>globalThis[vo]=b).catch(()=>globalThis[vo]=!1));const at=(b,A)=>{const U=A?[A]:(0,c.C6)(),Ce=[];return U.forEach(Ze=>{Ze.container.getProvider(b).instances.forEach(Ft=>{Ce.includes(Ft)||Ce.push(Ft)})}),Ce};function gt(){}class en{constructor(A,U=ge){this.zone=A,this.delegate=U}now(){return this.delegate.now()}schedule(A,U,Ce){const Ze=this.zone;return this.delegate.schedule(function(Ft){Ze.runGuarded(()=>{A.apply(this,[Ft])})},U,Ce)}}class qt{constructor(A){this.zone=A,this.task=null}call(A,U){const Ce=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",gt,{},gt,gt)),U.pipe((0,Wt.b)({next:Ce,complete:Ce,error:Ce})).subscribe(A).add(Ce)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Hn=(()=>{class b{constructor(U){this.ngZone=U,this.outsideAngular=U.runOutsideAngular(()=>new en(Zone.current)),this.insideAngular=U.run(()=>new en(Zone.current,bt.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return b.\u0275fac=function(U){return new(U||b)(r.LFG(r.R0b))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();function kn(){const b=globalThis.\u0275AngularFireScheduler;if(!b)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 b}function ir(b){return kn(),function Pr(b){return function(U){return(U=U.lift(new qt(b.ngZone))).pipe((0,hn.R)(b.outsideAngular),(0,yn.Q)(b.insideAngular))}}(kn())(b)}},9058:(It,Fe,g)=>{g.d(Fe,{$s:()=>ce,BH:()=>Ie,L:()=>le,LL:()=>Pe,Pz:()=>ee,UG:()=>Te,US:()=>J,ZB:()=>z,ZR:()=>ae,aH:()=>lt,b$:()=>Bt,eu:()=>Xe,hl:()=>Yn,jU:()=>ct,m9:()=>Kt,ne:()=>xt,pd:()=>it,r3:()=>Cn,ru:()=>Et,tV:()=>K,uI:()=>ze,vZ:()=>pt,w1:()=>un,xO:()=>ke,xb:()=>In,z$:()=>ve,zI:()=>ot,zd:()=>ut});const te=function(Ee){const ye=[];let G=0;for(let X=0;X<Ee.length;X++){let re=Ee.charCodeAt(X);re<128?ye[G++]=re:re<2048?(ye[G++]=re>>6|192,ye[G++]=63&re|128):55296==(64512&re)&&X+1<Ee.length&&56320==(64512&Ee.charCodeAt(X+1))?(re=65536+((1023&re)<<10)+(1023&Ee.charCodeAt(++X)),ye[G++]=re>>18|240,ye[G++]=re>>12&63|128,ye[G++]=re>>6&63|128,ye[G++]=63&re|128):(ye[G++]=re>>12|224,ye[G++]=re>>6&63|128,ye[G++]=63&re|128)}return ye},J={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(Ee,ye){if(!Array.isArray(Ee))throw Error("encodeByteArray takes an array as a parameter");this.init_();const G=ye?this.byteToCharMapWebSafe_:this.byteToCharMap_,X=[];for(let re=0;re<Ee.length;re+=3){const ue=Ee[re],Be=re+1<Ee.length,_t=Be?Ee[re+1]:0,W=re+2<Ee.length,se=W?Ee[re+2]:0;let B=(15&_t)<<2|se>>6,V=63&se;W||(V=64,Be||(B=64)),X.push(G[ue>>2],G[(3&ue)<<4|_t>>4],G[B],G[V])}return X.join("")},encodeString(Ee,ye){return this.HAS_NATIVE_SUPPORT&&!ye?btoa(Ee):this.encodeByteArray(te(Ee),ye)},decodeString(Ee,ye){return this.HAS_NATIVE_SUPPORT&&!ye?atob(Ee):function(Ee){const ye=[];let G=0,X=0;for(;G<Ee.length;){const re=Ee[G++];if(re<128)ye[X++]=String.fromCharCode(re);else if(re>191&&re<224){const ue=Ee[G++];ye[X++]=String.fromCharCode((31&re)<<6|63&ue)}else if(re>239&&re<365){const W=((7&re)<<18|(63&Ee[G++])<<12|(63&Ee[G++])<<6|63&Ee[G++])-65536;ye[X++]=String.fromCharCode(55296+(W>>10)),ye[X++]=String.fromCharCode(56320+(1023&W))}else{const ue=Ee[G++],Be=Ee[G++];ye[X++]=String.fromCharCode((15&re)<<12|(63&ue)<<6|63&Be)}}return ye.join("")}(this.decodeStringToByteArray(Ee,ye))},decodeStringToByteArray(Ee,ye){this.init_();const G=ye?this.charToByteMapWebSafe_:this.charToByteMap_,X=[];for(let re=0;re<Ee.length;){const ue=G[Ee.charAt(re++)],_t=re<Ee.length?G[Ee.charAt(re)]:0;++re;const se=re<Ee.length?G[Ee.charAt(re)]:64;++re;const P=re<Ee.length?G[Ee.charAt(re)]:64;if(++re,null==ue||null==_t||null==se||null==P)throw Error();X.push(ue<<2|_t>>4),64!==se&&(X.push(_t<<4&240|se>>2),64!==P&&X.push(se<<6&192|P))}return X},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let Ee=0;Ee<this.ENCODED_VALS.length;Ee++)this.byteToCharMap_[Ee]=this.ENCODED_VALS.charAt(Ee),this.charToByteMap_[this.byteToCharMap_[Ee]]=Ee,this.byteToCharMapWebSafe_[Ee]=this.ENCODED_VALS_WEBSAFE.charAt(Ee),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[Ee]]=Ee,Ee>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(Ee)]=Ee,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(Ee)]=Ee)}}},le=function(Ee){return function(Ee){const ye=te(Ee);return J.encodeByteArray(ye,!0)}(Ee).replace(/\./g,"")},K=function(Ee){try{return J.decodeString(Ee,!0)}catch(ye){console.error("base64Decode failed: ",ye)}return null};function z(Ee,ye){if(!(ye instanceof Object))return ye;switch(ye.constructor){case Date:return new Date(ye.getTime());case Object:void 0===Ee&&(Ee={});break;case Array:Ee=[];break;default:return ye}for(const G in ye)!ye.hasOwnProperty(G)||!fe(G)||(Ee[G]=z(Ee[G],ye[G]));return Ee}function fe(Ee){return"__proto__"!==Ee}const Ue=()=>{try{return function Ve(){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 Ee=process.env.__FIREBASE_DEFAULTS__;return Ee?JSON.parse(Ee):void 0})()||(()=>{if(typeof document>"u")return;let Ee;try{Ee=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ye=Ee&&K(Ee[1]);return ye&&JSON.parse(ye)})()}catch(Ee){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${Ee}`)}},lt=()=>{var Ee;return null===(Ee=Ue())||void 0===Ee?void 0:Ee.config},ee=Ee=>{var ye;return null===(ye=Ue())||void 0===ye?void 0:ye[`_${Ee}`]};class Ie{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ye,G)=>{this.resolve=ye,this.reject=G})}wrapCallback(ye){return(G,X)=>{G?this.reject(G):this.resolve(X),"function"==typeof ye&&(this.promise.catch(()=>{}),1===ye.length?ye(G):ye(G,X))}}}function ve(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function ze(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ve())}function Te(){var Ee;const ye=null===(Ee=Ue())||void 0===Ee?void 0:Ee.forceEnvironment;if("node"===ye)return!0;if("browser"===ye)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function ct(){return"object"==typeof self&&self.self===self}function Et(){const Ee="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof Ee&&void 0!==Ee.id}function Bt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function un(){const Ee=ve();return Ee.indexOf("MSIE ")>=0||Ee.indexOf("Trident/")>=0}function Yn(){try{return"object"==typeof indexedDB}catch{return!1}}function Xe(){return new Promise((Ee,ye)=>{try{let G=!0;const X="validate-browser-context-for-indexeddb-analytics-module",re=self.indexedDB.open(X);re.onsuccess=()=>{re.result.close(),G||self.indexedDB.deleteDatabase(X),Ee(!0)},re.onupgradeneeded=()=>{G=!1},re.onerror=()=>{var ue;ye((null===(ue=re.error)||void 0===ue?void 0:ue.message)||"")}}catch(G){ye(G)}})}function ot(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class ae extends Error{constructor(ye,G,X){super(G),this.code=ye,this.customData=X,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Pe.prototype.create)}}class Pe{constructor(ye,G,X){this.service=ye,this.serviceName=G,this.errors=X}create(ye,...G){const X=G[0]||{},re=`${this.service}/${ye}`,ue=this.errors[ye],Be=ue?function F(Ee,ye){return Ee.replace(oe,(G,X)=>{const re=ye[X];return null!=re?String(re):`<${X}?>`})}(ue,X):"Error";return new ae(re,`${this.serviceName}: ${Be} (${re}).`,X)}}const oe=/\{\$([^}]+)}/g;function Cn(Ee,ye){return Object.prototype.hasOwnProperty.call(Ee,ye)}function In(Ee){for(const ye in Ee)if(Object.prototype.hasOwnProperty.call(Ee,ye))return!1;return!0}function pt(Ee,ye){if(Ee===ye)return!0;const G=Object.keys(Ee),X=Object.keys(ye);for(const re of G){if(!X.includes(re))return!1;const ue=Ee[re],Be=ye[re];if($(ue)&&$(Be)){if(!pt(ue,Be))return!1}else if(ue!==Be)return!1}for(const re of X)if(!G.includes(re))return!1;return!0}function $(Ee){return null!==Ee&&"object"==typeof Ee}function ke(Ee){const ye=[];for(const[G,X]of Object.entries(Ee))Array.isArray(X)?X.forEach(re=>{ye.push(encodeURIComponent(G)+"="+encodeURIComponent(re))}):ye.push(encodeURIComponent(G)+"="+encodeURIComponent(X));return ye.length?"&"+ye.join("&"):""}function ut(Ee){const ye={};return Ee.replace(/^\?/,"").split("&").forEach(X=>{if(X){const[re,ue]=X.split("=");ye[decodeURIComponent(re)]=decodeURIComponent(ue)}}),ye}function it(Ee){const ye=Ee.indexOf("?");if(!ye)return"";const G=Ee.indexOf("#",ye);return Ee.substring(ye,G>0?G:void 0)}function xt(Ee,ye){const G=new Zt(Ee,ye);return G.subscribe.bind(G)}class Zt{constructor(ye,G){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=G,this.task.then(()=>{ye(this)}).catch(X=>{this.error(X)})}next(ye){this.forEachObserver(G=>{G.next(ye)})}error(ye){this.forEachObserver(G=>{G.error(ye)}),this.close(ye)}complete(){this.forEachObserver(ye=>{ye.complete()}),this.close()}subscribe(ye,G,X){let re;if(void 0===ye&&void 0===G&&void 0===X)throw new Error("Missing Observer.");re=function qe(Ee,ye){if("object"!=typeof Ee||null===Ee)return!1;for(const G of ye)if(G in Ee&&"function"==typeof Ee[G])return!0;return!1}(ye,["next","error","complete"])?ye:{next:ye,error:G,complete:X},void 0===re.next&&(re.next=dt),void 0===re.error&&(re.error=dt),void 0===re.complete&&(re.complete=dt);const ue=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?re.error(this.finalError):re.complete()}catch{}}),this.observers.push(re),ue}unsubscribeOne(ye){void 0===this.observers||void 0===this.observers[ye]||(delete this.observers[ye],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ye){if(!this.finalized)for(let G=0;G<this.observers.length;G++)this.sendOne(G,ye)}sendOne(ye,G){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[ye])try{G(this.observers[ye])}catch(X){typeof console<"u"&&console.error&&console.error(X)}})}close(ye){this.finalized||(this.finalized=!0,void 0!==ye&&(this.finalError=ye),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function dt(){}const Vn=1e3,Mn=2,Ge=144e5,ie=.5;function ce(Ee,ye=Vn,G=Mn){const X=ye*Math.pow(G,Ee),re=Math.round(ie*X*(Math.random()-.5)*2);return Math.min(Ge,X+re)}function Kt(Ee){return Ee&&Ee._delegate?Ee._delegate:Ee}},9049:(It,Fe,g)=>{g.d(Fe,{$:()=>fe});var r=g(5619),c=g(2459),R=g(7398),te=g(4664),Z=g(9397),J=g(3106),q=g(5879),le=g(915),K=g(8763),N=g(6897),z=g(631);let fe=(()=>{var Ve;class je{constructor(Se,Ue,$e,Ke){this._router=Se,this.toaster=Ue,this.afAuth=$e,this.http=Ke,this._roles$=new r.X([])}login(Se){this._router.navigate([Se])}logout(){this._roles$.next([]),localStorage.removeItem("ExpireDate"),localStorage.removeItem("Roles"),this._router.navigate([""])}setRoles(Se){localStorage.setItem("Roles",JSON.stringify(Se)),this._roles$.next(Se)}getRoles(){let Se=this._roles$.getValue();if(0==Se.length){let Ue=localStorage.getItem("Roles");Se=JSON.parse(Ue),this._roles$.next(Se)}return Se}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!(new Date(localStorage.getItem("ExpireDate")).getTime()-(new Date).getTime()>0)}saveLoginForm(Se,Ue){localStorage.setItem("Domain",Se),localStorage.setItem("Username",Ue)}getUsername(){return localStorage.getItem("Username")}getDomain(){return localStorage.getItem("Domain")}isLoginFormExist(){let Se=this.getDomain(),Ue=this.getUsername(),$e=!1;return Se&&Ue&&($e=!0),$e}loginWithGoogle(Se,Ue){Se.preventDefault();const $e=new J.Z.auth.GoogleAuthProvider;return $e.setCustomParameters({prompt:"select_account"}),(0,c.D)(this.afAuth.signInWithPopup($e)).pipe((0,R.U)(Ke=>Ke.credential),(0,R.U)(Ke=>Ke.idToken),(0,te.w)(Ke=>this.http.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:Ke,Host:Ue}))),(0,Z.b)(Ke=>{this.setLocalStorage(Ke,Ue,null)}))}setLocalStorage(Se,Ue,$e){localStorage.setItem("Token",Se.access_token),localStorage.setItem("Authorization",JSON.stringify({Host:Ue,username:$e})),localStorage.setItem("Intercom",JSON.stringify(Se.IntercomWidget))}}return(Ve=je).\u0275fac=function(Se){return new(Se||Ve)(q.LFG(le.F0),q.LFG(K._W),q.LFG(N.zQ),q.LFG(z.O))},Ve.\u0275prov=q.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),je})()},631:(It,Fe,g)=>{g.d(Fe,{O:()=>Je});var r=g(5592),c=g(9862),R=g(6321),te=g(93),Z=g(9360),J=g(4829),q=g(2306),le=g(8251),K=g(7103);const N=(0,q.d)(Se=>function($e=null){Se(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=$e});function z(Se,Ue){const{first:$e,each:Ke,with:lt=fe,scheduler:ee=Ue??R.z,meta:Ie=null}=(0,te.q)(Se)?{first:Se}:"number"==typeof Se?{each:Se}:Se;if(null==$e&&null==Ke)throw new TypeError("No timeout provided.");return(0,Z.e)((de,ve)=>{let ze,Te,ct=null,Et=0;const Bt=Jt=>{Te=(0,K.f)(ve,ee,()=>{try{ze.unsubscribe(),(0,J.Xf)(lt({meta:Ie,lastValue:ct,seen:Et})).subscribe(ve)}catch(un){ve.error(un)}},Jt)};ze=de.subscribe((0,le.x)(ve,Jt=>{Te?.unsubscribe(),Et++,ve.next(ct=Jt),Ke>0&&Bt(Ke)},void 0,void 0,()=>{Te?.closed||Te?.unsubscribe(),ct=null})),!Et&&Bt(null!=$e?"number"==typeof $e?$e:+$e-ee.now():Ke)})}function fe(Se){throw new N(Se)}var Ve=g(5879),je=g(8763);let Je=(()=>{var Se;class Ue{constructor(Ke,lt){this.http=Ke,this.toastr=lt}postFormData(Ke,lt){return new r.y(ee=>{let Ie=localStorage.getItem("Token"),ve={headers:new c.WM({Authorization:"Bearer "+Ie})};this.http.post(Ke,lt,ve).pipe(z(1e5)).subscribe(ze=>{ee.next(ze),ee.complete()},ze=>{if(200==ze.status)ee.next(ze.error.text),ee.complete();else{let Te=this.errorMessageHandling(ze);this.toastr.error(Te.message,Te.header),ee.error(ze)}})})}post(Ke,lt,ee=1e5){return new r.y(Ie=>{let de=localStorage.getItem("Token"),ve=new c.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});de&&(ve=new c.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+de})),this.http.post(Ke,lt,{headers:ve}).pipe(z(ee)).subscribe(Te=>{Ie.next(Te),Ie.complete()},Te=>{if(200==Te.status)Ie.next(Te.error.text),Ie.complete();else{if(!this.unauthorizedErrorHandling(Te)){let Et=this.errorMessageHandling(Te);this.toastr.error(""!=Et.message?Et.message:"An unknown error has occured!",Et.header)}Ie.error(Te)}})})}unauthorizedErrorHandling(Ke){let lt=!1;return 401==Ke.status&&(this.toastr.error("We can't log you in because of authenctication error","Unauthorized"),lt=!0),lt}errorMessageHandling(Ke){let lt="API Error",ee="Exception Message";return Ke.error?(lt="API Error - "+Ke.status,Ke.error.Message&&(ee=Ke.error.Message)):Ke.message&&(lt="API Error - "+Ke.name,ee=Ke.message),{header:lt,message:ee}}}return(Se=Ue).\u0275fac=function(Ke){return new(Ke||Se)(Ve.LFG(c.eN),Ve.LFG(je._W))},Se.\u0275prov=Ve.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Ue})()},2262:(It,Fe,g)=>{g.d(Fe,{U:()=>R});var r=g(5619),c=g(5879);let R=(()=>{var te;class Z{constructor(){this.store=new r.X({ID:null,billNumber:null,outletName:null})}getState(){return this.store.asObservable()}setState(q){this.store.next(q)}}return(te=Z).\u0275fac=function(q){return new(q||te)},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),Z})()},6013:(It,Fe,g)=>{g.d(Fe,{gT:()=>r});let r=(()=>{var J;class q{static StringFormat(K,...N){for(let z=0;z<N.length;z++)K=K.replace(`{${z}}`,N[z]);return K}static parseJwt(K){var z=K.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),fe=decodeURIComponent(atob(z).split("").map(function(Ve){return"%"+("00"+Ve.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(fe)}static IsNotEmpty(K){return""!=K&&K!=q.GuidEmpty&&null!=K&&null!=K}static IsEmpty(K){return""==K||null==K||null==K||K==q.GuidEmpty}static FilterByID(K,N){try{const z=K.filter(fe=>fe.ID==N);if(z.length>0)return z[0]}catch{console.log("error filter")}return null}static DateOnly(K){return K?new Date(new Date(K).toDateString()):new Date((new Date).toDateString())}}return(J=q).GuidEmpty="00000000-0000-0000-0000-000000000000",J.DecimalMinValue="-7.922816251426434e+28",J.InputLockTimeSpan=500,J.MinDate="0001-01-01T00:00:00",J.MinTime="00:00:00",q})()},5141:(It,Fe,g)=>{g.d(Fe,{O:()=>c});var r=g(3082);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}}},4211:(It,Fe,g)=>{g.d(Fe,{M:()=>$e});var r=g(5879),c=g(3082),R=g(5141),te=g(6814),Z=g(8189);function J(Ke,lt){if(1&Ke){const ee=r.EpF();r.TgZ(0,"div",8),r.NdJ("click",function(){r.CHM(ee);const de=r.oxw();return r.KtG(de.onBack.emit())}),r.TgZ(1,"a",9),r._UZ(2,"i",10),r.qZA()()}}function q(Ke,lt){if(1&Ke){const ee=r.EpF();r.TgZ(0,"div")(1,"a",11),r.NdJ("click",function(){r.CHM(ee);const de=r.oxw();return r.KtG(de.onCancel.emit())}),r._UZ(2,"i",12),r.qZA()()}}function le(Ke,lt){1&Ke&&r.Hsn(0,2,["*ngIf","more"])}function K(Ke,lt){if(1&Ke){const ee=r.EpF();r.TgZ(0,"a",17),r.NdJ("click",function(){r.CHM(ee);const de=r.oxw(2);return r.KtG(de.more=!de.more)}),r._uU(1,"More"),r.qZA()}}function N(Ke,lt){if(1&Ke){const ee=r.EpF();r.TgZ(0,"a",18),r.NdJ("click",function(){r.CHM(ee);const de=r.oxw(2);return r.KtG(de.onCancel.emit())}),r._uU(1),r.qZA()}if(2&Ke){const ee=r.oxw(2);r.xp6(1),r.hij(" ",null!=ee.config&&ee.config.cancelText?null==ee.config?null:ee.config.cancelText:"Cancel","")}}function z(Ke,lt){if(1&Ke){const ee=r.EpF();r.TgZ(0,"button",19),r.NdJ("click",function(){r.CHM(ee);const de=r.oxw(2);return r.KtG(de.onOk.emit())}),r._uU(1),r.qZA()}if(2&Ke){const ee=r.oxw(2);r.Q6J("disabled",!(null!=ee.config&&ee.config.validated)),r.xp6(1),r.hij(" ",null!=ee.config&&ee.config.okText?null==ee.config?null:ee.config.okText:"Ok (F2)"," ")}}function fe(Ke,lt){if(1&Ke&&(r.TgZ(0,"mat-dialog-actions",13),r.YNc(1,K,2,0,"a",14),r.Hsn(2,3),r.YNc(3,N,2,1,"a",15),r.YNc(4,z,2,2,"button",16),r.qZA()),2&Ke){const ee=r.oxw();r.xp6(1),r.Q6J("ngIf",!(null!=ee.config&&ee.config.hideMoreButton)),r.xp6(2),r.Q6J("ngIf",!(null!=ee.config&&ee.config.hideCancel)),r.xp6(1),r.Q6J("ngIf",!(null!=ee.config&&ee.config.hideOk))}}const Ve=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],je=function(Ke,lt){return{bodyScrollable:Ke,hideScrollbar:lt}},Je=function(Ke){return{"mx-auto":Ke}},Se=function(Ke){return{"show-footer":Ke}},Ue=["header","content","more-content","footer"];let $e=(()=>{var Ke;class lt{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 R.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(Ie){this.config&&(this.config.disableKeyup||"F2"==Ie.code&&this.onOk.emit())}}return(Ke=lt).\u0275fac=function(Ie){return new(Ie||Ke)},Ke.\u0275cmp=r.Xpm({type:Ke,selectors:[["modal-material"]],inputs:{config:"config"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack",onShowMore:"onShowMore"},ngContentSelectors:Ue,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(Ie,de){1&Ie&&(r.F$t(Ve),r.TgZ(0,"div",0),r.NdJ("keyup",function(ze){return de.onKeyup(ze)}),r.TgZ(1,"div",1),r.YNc(2,J,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,le,1,0,"ng-content",5),r.qZA(),r.YNc(11,fe,5,3,"mat-dialog-actions",7),r.qZA()),2&Ie&&(r.Udp("width",null==de.config?null:de.config.customWidth),r.Q6J("ngClass",r.WLB(13,je,null==de.config?null:de.config.bodyScrollable,null==de.config?null:de.config.hideScrollbar)),r.xp6(1),r.Gre("d-flex w-100 justify-content-between modal-header position-relative ",de.background,""),r.xp6(1),r.Q6J("ngIf",null==de.config?null:de.config.eMoney),r.xp6(1),r.Q6J("ngClass",r.VKq(16,Je,null==de.config?null:de.config.eMoney)),r.xp6(2),r.Oqu(null==de.config?null:de.config.title),r.xp6(2),r.Q6J("ngIf",!(null!=de.config&&de.config.hideClose)),r.xp6(1),r.Q6J("ngClass",r.VKq(18,Se,!(null!=de.config&&de.config.hideFooter))),r.xp6(2),r.Q6J("ngIf",de.more),r.xp6(1),r.Q6J("ngIf",!(null!=de.config&&de.config.hideFooter)))},dependencies:[te.mk,te.O5,Z.uh,Z.xY,Z.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}"]}),lt})()},3082:(It,Fe,g)=>{g.d(Fe,{n:()=>r});var r=function(c){return c.Success="Success",c.Info="Info",c.Warning="Warning",c.Error="Error",c}(r||{})},4007:(It,Fe,g)=>{g.d(Fe,{m:()=>le});var r=g(6814),c=g(95),R=g(9717),te=g(8189),Z=g(940),J=g(5879);let q=(()=>{var K;class N{}return(K=N).\u0275fac=function(fe){return new(fe||K)},K.\u0275mod=J.oAB({type:K}),K.\u0275inj=J.cJS({imports:[r.ez]}),N})(),le=(()=>{var K;class N{}return(K=N).\u0275fac=function(fe){return new(fe||K)},K.\u0275mod=J.oAB({type:K}),K.\u0275inj=J.cJS({imports:[r.ez,c.u5,R.A0,c.UX,te.Is,Z.Bb,q,c.u5,R.A0,c.UX,te.Is,Z.Bb,q]}),N})()},9126:(It,Fe,g)=>{var r=g(6593),c=g(5879),R=g(6304),te=g(6897),Z=g(6814),J=g(95),q=g(6825);function K(y){return new c.vHH(3e3,!1)}function Ht(y){switch(y.length){case 0:return new q.ZN;case 1:return y[0];default:return new q.ZE(y)}}function Nt(y,a,u=new Map,m=new Map){const S=[],H=[];let Me=-1,Oe=null;if(a.forEach(at=>{const gt=at.get("offset"),en=gt==Me,qt=en&&Oe||new Map;at.forEach((Hn,kn)=>{let On=kn,Sn=Hn;if("offset"!==kn)switch(On=y.normalizePropertyName(On,S),Sn){case q.k1:Sn=u.get(kn);break;case q.l3:Sn=m.get(kn);break;default:Sn=y.normalizeStyleValue(kn,On,Sn,S)}qt.set(On,Sn)}),en||H.push(qt),Oe=qt,Me=gt}),S.length)throw function mn(y){return new c.vHH(3502,!1)}();return H}function sn(y,a,u,m){switch(a){case"start":y.onStart(()=>m(u&&dn(u,"start",y)));break;case"done":y.onDone(()=>m(u&&dn(u,"done",y)));break;case"destroy":y.onDestroy(()=>m(u&&dn(u,"destroy",y)))}}function dn(y,a,u){const H=Cn(y.element,y.triggerName,y.fromState,y.toState,a||y.phaseName,u.totalTime??y.totalTime,!!u.disabled),Me=y._data;return null!=Me&&(H._data=Me),H}function Cn(y,a,u,m,S="",H=0,Me){return{element:y,triggerName:a,fromState:u,toState:m,phaseName:S,totalTime:H,disabled:!!Me}}function nn(y,a,u){let m=y.get(a);return m||y.set(a,m=u),m}function In(y){const a=y.indexOf(":");return[y.substring(1,a),y.slice(a+1)]}const Wn=(()=>typeof document>"u"?null:document.documentElement)();function pt(y){const a=y.parentNode||y.host||null;return a===Wn?null:a}let be=null,ke=!1;function xt(y,a){for(;a;){if(a===y)return!0;a=pt(a)}return!1}function Zt(y,a,u){if(u)return Array.from(y.querySelectorAll(a));const m=y.querySelector(a);return m?[m]:[]}let qe=(()=>{var y;class a{validateStyleProperty(m){return function ut(y){be||(be=function mt(){return typeof document<"u"?document.body:null}()||{},ke=!!be.style&&"WebkitAppearance"in be.style);let a=!0;return be.style&&!function $(y){return"ebkit"==y.substring(1,6)}(y)&&(a=y in be.style,!a&&ke&&(a="Webkit"+y.charAt(0).toUpperCase()+y.slice(1)in be.style)),a}(m)}matchesElement(m,S){return!1}containsElement(m,S){return xt(m,S)}getParentElement(m){return pt(m)}query(m,S,H){return Zt(m,S,H)}computeStyle(m,S,H){return H||""}animate(m,S,H,Me,Oe,at=[],gt){return new q.ZN(H,Me)}}return(y=a).\u0275fac=function(m){return new(m||y)},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})(),dt=(()=>{class a{}return a.NOOP=new qe,a})();const Re=1e3,Yt="ng-enter",Gt="ng-leave",tn="ng-trigger",En=".ng-trigger",jn="ng-animating",Vn=".ng-animating";function Mn(y){if("number"==typeof y)return y;const a=y.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Ge(parseFloat(a[1]),a[2])}function Ge(y,a){return"s"===a?y*Re:y}function ie(y,a,u){return y.hasOwnProperty("duration")?y:function ce(y,a,u){let S,H=0,Me="";if("string"==typeof y){const Oe=y.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Oe)return a.push(K()),{duration:0,delay:0,easing:""};S=Ge(parseFloat(Oe[1]),Oe[2]);const at=Oe[3];null!=at&&(H=Ge(parseFloat(at),Oe[4]));const gt=Oe[5];gt&&(Me=gt)}else S=y;if(!u){let Oe=!1,at=a.length;S<0&&(a.push(function N(){return new c.vHH(3100,!1)}()),Oe=!0),H<0&&(a.push(function z(){return new c.vHH(3101,!1)}()),Oe=!0),Oe&&a.splice(at,0,K())}return{duration:S,delay:H,easing:Me}}(y,a,u)}function We(y,a={}){return Object.keys(y).forEach(u=>{a[u]=y[u]}),a}function St(y){const a=new Map;return Object.keys(y).forEach(u=>{a.set(u,y[u])}),a}function ye(y,a=new Map,u){if(u)for(let[m,S]of u)a.set(m,S);for(let[m,S]of y)a.set(m,S);return a}function G(y,a,u){a.forEach((m,S)=>{const H=P(S);u&&!u.has(S)&&u.set(S,y.style[H]),y.style[H]=m})}function X(y,a){a.forEach((u,m)=>{const S=P(m);y.style[S]=""})}function re(y){return Array.isArray(y)?1==y.length?y[0]:(0,q.vP)(y):y}const Be=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(y){let a=[];if("string"==typeof y){let u;for(;u=Be.exec(y);)a.push(u[1]);Be.lastIndex=0}return a}function W(y,a,u){const m=y.toString(),S=m.replace(Be,(H,Me)=>{let Oe=a[Me];return null==Oe&&(u.push(function Ve(y){return new c.vHH(3003,!1)}()),Oe=""),Oe.toString()});return S==m?y:S}function se(y){const a=[];let u=y.next();for(;!u.done;)a.push(u.value),u=y.next();return a}const E=/-+([a-z0-9])/g;function P(y){return y.replace(E,(...a)=>a[1].toUpperCase())}function L(y,a,u){switch(a.type){case 7:return y.visitTrigger(a,u);case 0:return y.visitState(a,u);case 1:return y.visitTransition(a,u);case 2:return y.visitSequence(a,u);case 3:return y.visitGroup(a,u);case 4:return y.visitAnimate(a,u);case 5:return y.visitKeyframes(a,u);case 6:return y.visitStyle(a,u);case 8:return y.visitReference(a,u);case 9:return y.visitAnimateChild(a,u);case 10:return y.visitAnimateRef(a,u);case 11:return y.visitQuery(a,u);case 12:return y.visitStagger(a,u);default:throw function je(y){return new c.vHH(3004,!1)}()}}function Ae(y,a){return window.getComputedStyle(y)[a]}const rt="*";function Xt(y,a){const u=[];return"string"==typeof y?y.split(/\s*,\s*/).forEach(m=>function An(y,a,u){if(":"==y[0]){const at=function Pn(y,a){switch(y){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,m)=>parseFloat(m)>parseFloat(u);case":decrement":return(u,m)=>parseFloat(m)<parseFloat(u);default:return a.push(function Bt(y){return new c.vHH(3016,!1)}()),"* => *"}}(y,u);if("function"==typeof at)return void a.push(at);y=at}const m=y.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return u.push(function Et(y){return new c.vHH(3015,!1)}()),a;const S=m[1],H=m[2],Me=m[3];a.push(Qn(S,Me));"<"==H[0]&&!(S==rt&&Me==rt)&&a.push(Qn(Me,S))}(m,u,a)):u.push(y),u}const Xn=new Set(["true","1"]),Si=new Set(["false","0"]);function Qn(y,a){const u=Xn.has(y)||Si.has(y),m=Xn.has(a)||Si.has(a);return(S,H)=>{let Me=y==rt||y==S,Oe=a==rt||a==H;return!Me&&u&&"boolean"==typeof S&&(Me=S?Xn.has(y):Si.has(y)),!Oe&&m&&"boolean"==typeof H&&(Oe=H?Xn.has(a):Si.has(a)),Me&&Oe}}const zn=new RegExp("s*:selfs*,?","g");function Ci(y,a,u,m){return new $n(y).build(a,u,m)}class $n{constructor(a){this._driver=a}build(a,u,m){const S=new Oi(u);return this._resetContextStyleTimingState(S),L(this,re(a),S)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,u){let m=u.queryCount=0,S=u.depCount=0;const H=[],Me=[];return"@"==a.name.charAt(0)&&u.errors.push(function Se(){return new c.vHH(3006,!1)}()),a.definitions.forEach(Oe=>{if(this._resetContextStyleTimingState(u),0==Oe.type){const at=Oe,gt=at.name;gt.toString().split(/\s*,\s*/).forEach(en=>{at.name=en,H.push(this.visitState(at,u))}),at.name=gt}else if(1==Oe.type){const at=this.visitTransition(Oe,u);m+=at.queryCount,S+=at.depCount,Me.push(at)}else u.errors.push(function Ue(){return new c.vHH(3007,!1)}())}),{type:7,name:a.name,states:H,transitions:Me,queryCount:m,depCount:S,options:null}}visitState(a,u){const m=this.visitStyle(a.styles,u),S=a.options&&a.options.params||null;if(m.containsDynamicStyles){const H=new Set,Me=S||{};m.styles.forEach(Oe=>{Oe instanceof Map&&Oe.forEach(at=>{_t(at).forEach(gt=>{Me.hasOwnProperty(gt)||H.add(gt)})})}),H.size&&(se(H.values()),u.errors.push(function $e(y,a){return new c.vHH(3008,!1)}()))}return{type:0,name:a.name,style:m,options:S?{params:S}:null}}visitTransition(a,u){u.queryCount=0,u.depCount=0;const m=L(this,re(a.animation),u);return{type:1,matchers:Xt(a.expr,u.errors),animation:m,queryCount:u.queryCount,depCount:u.depCount,options:si(a.options)}}visitSequence(a,u){return{type:2,steps:a.steps.map(m=>L(this,m,u)),options:si(a.options)}}visitGroup(a,u){const m=u.currentTime;let S=0;const H=a.steps.map(Me=>{u.currentTime=m;const Oe=L(this,Me,u);return S=Math.max(S,u.currentTime),Oe});return u.currentTime=S,{type:3,steps:H,options:si(a.options)}}visitAnimate(a,u){const m=function er(y,a){if(y.hasOwnProperty("duration"))return y;if("number"==typeof y)return Li(ie(y,a).duration,0,"");const u=y;if(u.split(/\s+/).some(H=>"{"==H.charAt(0)&&"{"==H.charAt(1))){const H=Li(0,0,"");return H.dynamic=!0,H.strValue=u,H}const S=ie(u,a);return Li(S.duration,S.delay,S.easing)}(a.timings,u.errors);u.currentAnimateTimings=m;let S,H=a.styles?a.styles:(0,q.oB)({});if(5==H.type)S=this.visitKeyframes(H,u);else{let Me=a.styles,Oe=!1;if(!Me){Oe=!0;const gt={};m.easing&&(gt.easing=m.easing),Me=(0,q.oB)(gt)}u.currentTime+=m.duration+m.delay;const at=this.visitStyle(Me,u);at.isEmptyStep=Oe,S=at}return u.currentAnimateTimings=null,{type:4,timings:m,style:S,options:null}}visitStyle(a,u){const m=this._makeStyleAst(a,u);return this._validateStyleAst(m,u),m}_makeStyleAst(a,u){const m=[],S=Array.isArray(a.styles)?a.styles:[a.styles];for(let Oe of S)"string"==typeof Oe?Oe===q.l3?m.push(Oe):u.errors.push(new c.vHH(3002,!1)):m.push(St(Oe));let H=!1,Me=null;return m.forEach(Oe=>{if(Oe instanceof Map&&(Oe.has("easing")&&(Me=Oe.get("easing"),Oe.delete("easing")),!H))for(let at of Oe.values())if(at.toString().indexOf("{{")>=0){H=!0;break}}),{type:6,styles:m,easing:Me,offset:a.offset,containsDynamicStyles:H,options:null}}_validateStyleAst(a,u){const m=u.currentAnimateTimings;let S=u.currentTime,H=u.currentTime;m&&H>0&&(H-=m.duration+m.delay),a.styles.forEach(Me=>{"string"!=typeof Me&&Me.forEach((Oe,at)=>{const gt=u.collectedStyles.get(u.currentQuerySelector),en=gt.get(at);let qt=!0;en&&(H!=S&&H>=en.startTime&&S<=en.endTime&&(u.errors.push(function ee(y,a,u,m,S){return new c.vHH(3010,!1)}()),qt=!1),H=en.startTime),qt&&gt.set(at,{startTime:H,endTime:S}),u.options&&function ue(y,a,u){const m=a.params||{},S=_t(y);S.length&&S.forEach(H=>{m.hasOwnProperty(H)||u.push(function fe(y){return new c.vHH(3001,!1)}())})}(Oe,u.options,u.errors)})})}visitKeyframes(a,u){const m={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function Ie(){return new c.vHH(3011,!1)}()),m;let H=0;const Me=[];let Oe=!1,at=!1,gt=0;const en=a.steps.map(sr=>{const ir=this._makeStyleAst(sr,u);let Pr=null!=ir.offset?ir.offset:function Ji(y){if("string"==typeof y)return null;let a=null;if(Array.isArray(y))y.forEach(u=>{if(u instanceof Map&&u.has("offset")){const m=u;a=parseFloat(m.get("offset")),m.delete("offset")}});else if(y instanceof Map&&y.has("offset")){const u=y;a=parseFloat(u.get("offset")),u.delete("offset")}return a}(ir.styles),vr=0;return null!=Pr&&(H++,vr=ir.offset=Pr),at=at||vr<0||vr>1,Oe=Oe||vr<gt,gt=vr,Me.push(vr),ir});at&&u.errors.push(function de(){return new c.vHH(3012,!1)}()),Oe&&u.errors.push(function ve(){return new c.vHH(3200,!1)}());const qt=a.steps.length;let Hn=0;H>0&&H<qt?u.errors.push(function ze(){return new c.vHH(3202,!1)}()):0==H&&(Hn=1/(qt-1));const kn=qt-1,On=u.currentTime,Sn=u.currentAnimateTimings,$i=Sn.duration;return en.forEach((sr,ir)=>{const Pr=Hn>0?ir==kn?1:Hn*ir:Me[ir],vr=Pr*$i;u.currentTime=On+Sn.delay+vr,Sn.duration=vr,this._validateStyleAst(sr,u),sr.offset=Pr,m.styles.push(sr)}),m}visitReference(a,u){return{type:8,animation:L(this,re(a.animation),u),options:si(a.options)}}visitAnimateChild(a,u){return u.depCount++,{type:9,options:si(a.options)}}visitAnimateRef(a,u){return{type:10,animation:this.visitReference(a.animation,u),options:si(a.options)}}visitQuery(a,u){const m=u.currentQuerySelector,S=a.options||{};u.queryCount++,u.currentQuery=a;const[H,Me]=function zi(y){const a=!!y.split(/\s*,\s*/).find(u=>":self"==u);return a&&(y=y.replace(zn,"")),y=y.replace(/@\*/g,En).replace(/@\w+/g,u=>En+"-"+u.slice(1)).replace(/:animating/g,Vn),[y,a]}(a.selector);u.currentQuerySelector=m.length?m+" "+H:H,nn(u.collectedStyles,u.currentQuerySelector,new Map);const Oe=L(this,re(a.animation),u);return u.currentQuery=null,u.currentQuerySelector=m,{type:11,selector:H,limit:S.limit||0,optional:!!S.optional,includeSelf:Me,animation:Oe,originalSelector:a.selector,options:si(a.options)}}visitStagger(a,u){u.currentQuery||u.errors.push(function Te(){return new c.vHH(3013,!1)}());const m="full"===a.timings?{duration:0,delay:0,easing:"full"}:ie(a.timings,u.errors,!0);return{type:12,animation:L(this,re(a.animation),u),timings:m,options:null}}}class Oi{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function si(y){return y?(y=We(y)).params&&(y.params=function Xi(y){return y?We(y):null}(y.params)):y={},y}function Li(y,a,u){return{duration:y,delay:a,easing:u}}function kr(y,a,u,m,S,H,Me=null,Oe=!1){return{type:1,element:y,keyframes:a,preStyleProps:u,postStyleProps:m,duration:S,delay:H,totalTime:S+H,easing:Me,subTimeline:Oe}}class zr{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,u){let m=this._map.get(a);m||this._map.set(a,m=[]),m.push(...u)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const wr=new RegExp(":enter","g"),no=new RegExp(":leave","g");function go(y,a,u,m,S,H=new Map,Me=new Map,Oe,at,gt=[]){return(new or).buildKeyframes(y,a,u,m,S,H,Me,Oe,at,gt)}class or{buildKeyframes(a,u,m,S,H,Me,Oe,at,gt,en=[]){gt=gt||new zr;const qt=new io(a,u,gt,S,H,en,[]);qt.options=at;const Hn=at.delay?Mn(at.delay):0;qt.currentTimeline.delayNextStep(Hn),qt.currentTimeline.setStyles([Me],null,qt.errors,at),L(this,m,qt);const kn=qt.timelines.filter(On=>On.containsAnimation());if(kn.length&&Oe.size){let On;for(let Sn=kn.length-1;Sn>=0;Sn--){const $i=kn[Sn];if($i.element===u){On=$i;break}}On&&!On.allowOnlyTimelineStyles()&&On.setStyles([Oe],null,qt.errors,at)}return kn.length?kn.map(On=>On.buildKeyframes()):[kr(u,[],[],[],0,Hn,"",!1)]}visitTrigger(a,u){}visitState(a,u){}visitTransition(a,u){}visitAnimateChild(a,u){const m=u.subInstructions.get(u.element);if(m){const S=u.createSubContext(a.options),H=u.currentTimeline.currentTime,Me=this._visitSubInstructions(m,S,S.options);H!=Me&&u.transformIntoNewTimeline(Me)}u.previousNode=a}visitAnimateRef(a,u){const m=u.createSubContext(a.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([a.options,a.animation.options],u,m),this.visitReference(a.animation,m),u.transformIntoNewTimeline(m.currentTimeline.currentTime),u.previousNode=a}_applyAnimationRefDelays(a,u,m){for(const S of a){const H=S?.delay;if(H){const Me="number"==typeof H?H:Mn(W(H,S?.params??{},u.errors));m.delayNextStep(Me)}}}_visitSubInstructions(a,u,m){let H=u.currentTimeline.currentTime;const Me=null!=m.duration?Mn(m.duration):null,Oe=null!=m.delay?Mn(m.delay):null;return 0!==Me&&a.forEach(at=>{const gt=u.appendInstructionToTimeline(at,Me,Oe);H=Math.max(H,gt.duration+gt.delay)}),H}visitReference(a,u){u.updateOptions(a.options,!0),L(this,a.animation,u),u.previousNode=a}visitSequence(a,u){const m=u.subContextCount;let S=u;const H=a.options;if(H&&(H.params||H.delay)&&(S=u.createSubContext(H),S.transformIntoNewTimeline(),null!=H.delay)){6==S.previousNode.type&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=Mr);const Me=Mn(H.delay);S.delayNextStep(Me)}a.steps.length&&(a.steps.forEach(Me=>L(this,Me,S)),S.currentTimeline.applyStylesToKeyframe(),S.subContextCount>m&&S.transformIntoNewTimeline()),u.previousNode=a}visitGroup(a,u){const m=[];let S=u.currentTimeline.currentTime;const H=a.options&&a.options.delay?Mn(a.options.delay):0;a.steps.forEach(Me=>{const Oe=u.createSubContext(a.options);H&&Oe.delayNextStep(H),L(this,Me,Oe),S=Math.max(S,Oe.currentTimeline.currentTime),m.push(Oe.currentTimeline)}),m.forEach(Me=>u.currentTimeline.mergeTimelineCollectedStyles(Me)),u.transformIntoNewTimeline(S),u.previousNode=a}_visitTiming(a,u){if(a.dynamic){const m=a.strValue;return ie(u.params?W(m,u.params,u.errors):m,u.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,u){const m=u.currentAnimateTimings=this._visitTiming(a.timings,u),S=u.currentTimeline;m.delay&&(u.incrementTime(m.delay),S.snapshotCurrentStyles());const H=a.style;5==H.type?this.visitKeyframes(H,u):(u.incrementTime(m.duration),this.visitStyle(H,u),S.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=a}visitStyle(a,u){const m=u.currentTimeline,S=u.currentAnimateTimings;!S&&m.hasCurrentStyleProperties()&&m.forwardFrame();const H=S&&S.easing||a.easing;a.isEmptyStep?m.applyEmptyStep(H):m.setStyles(a.styles,H,u.errors,u.options),u.previousNode=a}visitKeyframes(a,u){const m=u.currentAnimateTimings,S=u.currentTimeline.duration,H=m.duration,Oe=u.createSubContext().currentTimeline;Oe.easing=m.easing,a.styles.forEach(at=>{Oe.forwardTime((at.offset||0)*H),Oe.setStyles(at.styles,at.easing,u.errors,u.options),Oe.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Oe),u.transformIntoNewTimeline(S+H),u.previousNode=a}visitQuery(a,u){const m=u.currentTimeline.currentTime,S=a.options||{},H=S.delay?Mn(S.delay):0;H&&(6===u.previousNode.type||0==m&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Mr);let Me=m;const Oe=u.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!S.optional,u.errors);u.currentQueryTotal=Oe.length;let at=null;Oe.forEach((gt,en)=>{u.currentQueryIndex=en;const qt=u.createSubContext(a.options,gt);H&&qt.delayNextStep(H),gt===u.element&&(at=qt.currentTimeline),L(this,a.animation,qt),qt.currentTimeline.applyStylesToKeyframe(),Me=Math.max(Me,qt.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(Me),at&&(u.currentTimeline.mergeTimelineCollectedStyles(at),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=a}visitStagger(a,u){const m=u.parentContext,S=u.currentTimeline,H=a.timings,Me=Math.abs(H.duration),Oe=Me*(u.currentQueryTotal-1);let at=Me*u.currentQueryIndex;switch(H.duration<0?"reverse":H.easing){case"reverse":at=Oe-at;break;case"full":at=m.currentStaggerTime}const en=u.currentTimeline;at&&en.delayNextStep(at);const qt=en.currentTime;L(this,a.animation,u),u.previousNode=a,m.currentStaggerTime=S.currentTime-qt+(S.startTime-m.currentTimeline.startTime)}}const Mr={};class io{constructor(a,u,m,S,H,Me,Oe,at){this._driver=a,this.element=u,this.subInstructions=m,this._enterClassName=S,this._leaveClassName=H,this.errors=Me,this.timelines=Oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=at||new Nr(this._driver,u,0),Oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,u){if(!a)return;const m=a;let S=this.options;null!=m.duration&&(S.duration=Mn(m.duration)),null!=m.delay&&(S.delay=Mn(m.delay));const H=m.params;if(H){let Me=S.params;Me||(Me=this.options.params={}),Object.keys(H).forEach(Oe=>{(!u||!Me.hasOwnProperty(Oe))&&(Me[Oe]=W(H[Oe],Me,this.errors))})}}_copyOptions(){const a={};if(this.options){const u=this.options.params;if(u){const m=a.params={};Object.keys(u).forEach(S=>{m[S]=u[S]})}}return a}createSubContext(a=null,u,m){const S=u||this.element,H=new io(this._driver,S,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(S,m||0));return H.previousNode=this.previousNode,H.currentAnimateTimings=this.currentAnimateTimings,H.options=this._copyOptions(),H.updateOptions(a),H.currentQueryIndex=this.currentQueryIndex,H.currentQueryTotal=this.currentQueryTotal,H.parentContext=this,this.subContextCount++,H}transformIntoNewTimeline(a){return this.previousNode=Mr,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,u,m){const S={duration:u??a.duration,delay:this.currentTimeline.currentTime+(m??0)+a.delay,easing:""},H=new Lr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,S,a.stretchStartingKeyframe);return this.timelines.push(H),S}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,u,m,S,H,Me){let Oe=[];if(S&&Oe.push(this.element),a.length>0){a=(a=a.replace(wr,"."+this._enterClassName)).replace(no,"."+this._leaveClassName);let gt=this._driver.query(this.element,a,1!=m);0!==m&&(gt=m<0?gt.slice(gt.length+m,gt.length):gt.slice(0,m)),Oe.push(...gt)}return!H&&0==Oe.length&&Me.push(function ct(y){return new c.vHH(3014,!1)}()),Oe}}class Nr{constructor(a,u,m,S){this._driver=a,this.element=u,this.startTime=m,this._elementTimelineStylesLookup=S,this.duration=0,this.easing=null,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(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+a),u&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,u){return this.applyStylesToKeyframe(),new Nr(this._driver,a,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,u){this._localTimelineStyles.set(a,u),this._globalTimelineStyles.set(a,u),this._styleSummary.set(a,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[u,m]of this._globalTimelineStyles)this._backFill.set(u,m||q.l3),this._currentKeyframe.set(u,q.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,u,m,S){u&&this._previousKeyframe.set("easing",u);const H=S&&S.params||{},Me=function ro(y,a){const u=new Map;let m;return y.forEach(S=>{if("*"===S){m=m||a.keys();for(let H of m)u.set(H,q.l3)}else ye(S,u)}),u}(a,this._globalTimelineStyles);for(let[Oe,at]of Me){const gt=W(at,H,m);this._pendingStyles.set(Oe,gt),this._localTimelineStyles.has(Oe)||this._backFill.set(Oe,this._globalTimelineStyles.get(Oe)??q.l3),this._updateStyle(Oe,gt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,u)=>{this._currentKeyframe.set(u,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,a)}))}snapshotCurrentStyles(){for(let[a,u]of this._localTimelineStyles)this._pendingStyles.set(a,u),this._updateStyle(a,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let u in this._currentKeyframe)a.push(u);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((u,m)=>{const S=this._styleSummary.get(m);(!S||u.time>S.time)&&this._updateStyle(m,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,u=new Set,m=1===this._keyframes.size&&0===this.duration;let S=[];this._keyframes.forEach((Oe,at)=>{const gt=ye(Oe,new Map,this._backFill);gt.forEach((en,qt)=>{en===q.k1?a.add(qt):en===q.l3&&u.add(qt)}),m||gt.set("offset",at/this.duration),S.push(gt)});const H=a.size?se(a.values()):[],Me=u.size?se(u.values()):[];if(m){const Oe=S[0],at=new Map(Oe);Oe.set("offset",0),at.set("offset",1),S=[Oe,at]}return kr(this.element,S,H,Me,this.duration,this.startTime,this.easing,!1)}}class Lr extends Nr{constructor(a,u,m,S,H,Me,Oe=!1){super(a,u,Me.delay),this.keyframes=m,this.preStyleProps=S,this.postStyleProps=H,this._stretchStartingKeyframe=Oe,this.timings={duration:Me.duration,delay:Me.delay,easing:Me.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:u,duration:m,easing:S}=this.timings;if(this._stretchStartingKeyframe&&u){const H=[],Me=m+u,Oe=u/Me,at=ye(a[0]);at.set("offset",0),H.push(at);const gt=ye(a[0]);gt.set("offset",fr(Oe)),H.push(gt);const en=a.length-1;for(let qt=1;qt<=en;qt++){let Hn=ye(a[qt]);const kn=Hn.get("offset");Hn.set("offset",fr((u+kn*m)/Me)),H.push(Hn)}m=Me,u=0,S="",a=H}return kr(this.element,a,this.preStyleProps,this.postStyleProps,m,u,S,!0)}}function fr(y,a=3){const u=Math.pow(10,a-1);return Math.round(y*u)/u}class Pi{}const Ln=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 Ei extends Pi{normalizePropertyName(a,u){return P(a)}normalizeStyleValue(a,u,m,S){let H="";const Me=m.toString().trim();if(Ln.has(u)&&0!==m&&"0"!==m)if("number"==typeof m)H="px";else{const Oe=m.match(/^[+-]?[\d\.]+([a-z]*)$/);Oe&&0==Oe[1].length&&S.push(function Je(y,a){return new c.vHH(3005,!1)}())}return Me+H}}function Bi(y,a,u,m,S,H,Me,Oe,at,gt,en,qt,Hn){return{type:0,element:y,triggerName:a,isRemovalTransition:S,fromState:u,fromStyles:H,toState:m,toStyles:Me,timelines:Oe,queriedElements:at,preStyleProps:gt,postStyleProps:en,totalTime:qt,errors:Hn}}const Ii={};class Vi{constructor(a,u,m){this._triggerName=a,this.ast=u,this._stateStyles=m}match(a,u,m,S){return function oo(y,a,u,m,S){return y.some(H=>H(a,u,m,S))}(this.ast.matchers,a,u,m,S)}buildStyles(a,u,m){let S=this._stateStyles.get("*");return void 0!==a&&(S=this._stateStyles.get(a?.toString())||S),S?S.buildStyles(u,m):new Map}build(a,u,m,S,H,Me,Oe,at,gt,en){const qt=[],Hn=this.ast.options&&this.ast.options.params||Ii,On=this.buildStyles(m,Oe&&Oe.params||Ii,qt),Sn=at&&at.params||Ii,$i=this.buildStyles(S,Sn,qt),sr=new Set,ir=new Map,Pr=new Map,vr="void"===S,is={params:br(Sn,Hn),delay:this.ast.options?.delay},b=en?[]:go(a,u,this.ast.animation,H,Me,On,$i,is,gt,qt);let A=0;if(b.forEach(Ce=>{A=Math.max(Ce.duration+Ce.delay,A)}),qt.length)return Bi(u,this._triggerName,m,S,vr,On,$i,[],[],ir,Pr,A,qt);b.forEach(Ce=>{const Ze=Ce.element,ft=nn(ir,Ze,new Set);Ce.preStyleProps.forEach(an=>ft.add(an));const Ft=nn(Pr,Ze,new Set);Ce.postStyleProps.forEach(an=>Ft.add(an)),Ze!==u&&sr.add(Ze)});const U=se(sr.values());return Bi(u,this._triggerName,m,S,vr,On,$i,b,U,ir,Pr,A)}}function br(y,a){const u=We(a);for(const m in y)y.hasOwnProperty(m)&&null!=y[m]&&(u[m]=y[m]);return u}class Gr{constructor(a,u,m){this.styles=a,this.defaultParams=u,this.normalizer=m}buildStyles(a,u){const m=new Map,S=We(this.defaultParams);return Object.keys(a).forEach(H=>{const Me=a[H];null!==Me&&(S[H]=Me)}),this.styles.styles.forEach(H=>{"string"!=typeof H&&H.forEach((Me,Oe)=>{Me&&(Me=W(Me,S,u));const at=this.normalizer.normalizePropertyName(Oe,u);Me=this.normalizer.normalizeStyleValue(Oe,at,Me,u),m.set(Oe,Me)})}),m}}class ni{constructor(a,u,m){this.name=a,this.ast=u,this._normalizer=m,this.transitionFactories=[],this.states=new Map,u.states.forEach(S=>{this.states.set(S.name,new Gr(S.style,S.options&&S.options.params||{},m))}),gn(this.states,"true","1"),gn(this.states,"false","0"),u.transitions.forEach(S=>{this.transitionFactories.push(new Vi(a,S,this.states))}),this.fallbackTransition=function Qt(y,a,u){return new Vi(y,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Me,Oe)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,u,m,S){return this.transitionFactories.find(Me=>Me.match(a,u,m,S))||null}matchStyles(a,u,m){return this.fallbackTransition.buildStyles(a,u,m)}}function gn(y,a,u){y.has(a)?y.has(u)||y.set(u,y.get(a)):y.has(u)&&y.set(a,y.get(u))}const ii=new zr;class _i{constructor(a,u,m){this.bodyNode=a,this._driver=u,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,u){const m=[],H=Ci(this._driver,u,m,[]);if(m.length)throw function Nn(y){return new c.vHH(3503,!1)}();this._animations.set(a,H)}_buildPlayer(a,u,m){const S=a.element,H=Nt(this._normalizer,a.keyframes,u,m);return this._driver.animate(S,H,a.duration,a.delay,a.easing,[],!0)}create(a,u,m={}){const S=[],H=this._animations.get(a);let Me;const Oe=new Map;if(H?(Me=go(this._driver,u,H,Yt,Gt,new Map,new Map,m,ii,S),Me.forEach(en=>{const qt=nn(Oe,en.element,new Map);en.postStyleProps.forEach(Hn=>qt.set(Hn,null))})):(S.push(function Yn(){return new c.vHH(3300,!1)}()),Me=[]),S.length)throw function Xe(y){return new c.vHH(3504,!1)}();Oe.forEach((en,qt)=>{en.forEach((Hn,kn)=>{en.set(kn,this._driver.computeStyle(qt,kn,q.l3))})});const gt=Ht(Me.map(en=>{const qt=Oe.get(en.element);return this._buildPlayer(en,new Map,qt)}));return this._playersById.set(a,gt),gt.onDestroy(()=>this.destroy(a)),this.players.push(gt),gt}destroy(a){const u=this._getPlayer(a);u.destroy(),this._playersById.delete(a);const m=this.players.indexOf(u);m>=0&&this.players.splice(m,1)}_getPlayer(a){const u=this._playersById.get(a);if(!u)throw function ot(y){return new c.vHH(3301,!1)}();return u}listen(a,u,m,S){const H=Cn(u,"","","");return sn(this._getPlayer(a),m,H,S),()=>{}}command(a,u,m,S){if("register"==m)return void this.register(a,S[0]);if("create"==m)return void this.create(a,u,S[0]||{});const H=this._getPlayer(a);switch(m){case"play":H.play();break;case"pause":H.pause();break;case"reset":H.reset();break;case"restart":H.restart();break;case"finish":H.finish();break;case"init":H.init();break;case"setPosition":H.setPosition(parseFloat(S[0]));break;case"destroy":this.destroy(a)}}}const ar="ng-animate-queued",Ki="ng-animate-disabled",we=[],et={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ot="__ng_removed";class zt{get params(){return this.options.params}constructor(a,u=""){this.namespaceId=u;const m=a&&a.hasOwnProperty("value");if(this.value=function tr(y){return y??null}(m?a.value:a),m){const H=We(a);delete H.value,this.options=H}else this.options={};this.options.params||(this.options.params={})}absorbOptions(a){const u=a.params;if(u){const m=this.options.params;Object.keys(u).forEach(S=>{null==m[S]&&(m[S]=u[S])})}}}const cn="void",Kn=new zt(cn);class xn{constructor(a,u,m){this.id=a,this.hostElement=u,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,di(u,this._hostClassName)}listen(a,u,m,S){if(!this._triggers.has(u))throw function ht(y,a){return new c.vHH(3302,!1)}();if(null==m||0==m.length)throw function ae(y){return new c.vHH(3303,!1)}();if(!function lr(y){return"start"==y||"done"==y}(m))throw function Pe(y,a){return new c.vHH(3400,!1)}();const H=nn(this._elementListeners,a,[]),Me={name:u,phase:m,callback:S};H.push(Me);const Oe=nn(this._engine.statesByElement,a,new Map);return Oe.has(u)||(di(a,tn),di(a,tn+"-"+u),Oe.set(u,Kn)),()=>{this._engine.afterFlush(()=>{const at=H.indexOf(Me);at>=0&&H.splice(at,1),this._triggers.has(u)||Oe.delete(u)})}}register(a,u){return!this._triggers.has(a)&&(this._triggers.set(a,u),!0)}_getTrigger(a){const u=this._triggers.get(a);if(!u)throw function F(y){return new c.vHH(3401,!1)}();return u}trigger(a,u,m,S=!0){const H=this._getTrigger(u),Me=new Ri(this.id,u,a);let Oe=this._engine.statesByElement.get(a);Oe||(di(a,tn),di(a,tn+"-"+u),this._engine.statesByElement.set(a,Oe=new Map));let at=Oe.get(u);const gt=new zt(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&at&&gt.absorbOptions(at.options),Oe.set(u,gt),at||(at=Kn),gt.value!==cn&&at.value===gt.value){if(!function fi(y,a){const u=Object.keys(y),m=Object.keys(a);if(u.length!=m.length)return!1;for(let S=0;S<u.length;S++){const H=u[S];if(!a.hasOwnProperty(H)||y[H]!==a[H])return!1}return!0}(at.params,gt.params)){const Sn=[],$i=H.matchStyles(at.value,at.params,Sn),sr=H.matchStyles(gt.value,gt.params,Sn);Sn.length?this._engine.reportError(Sn):this._engine.afterFlush(()=>{X(a,$i),G(a,sr)})}return}const Hn=nn(this._engine.playersByElement,a,[]);Hn.forEach(Sn=>{Sn.namespaceId==this.id&&Sn.triggerName==u&&Sn.queued&&Sn.destroy()});let kn=H.matchTransition(at.value,gt.value,a,gt.params),On=!1;if(!kn){if(!S)return;kn=H.fallbackTransition,On=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:u,transition:kn,fromState:at,toState:gt,player:Me,isFallbackTransition:On}),On||(di(a,ar),Me.onStart(()=>{hi(a,ar)})),Me.onDone(()=>{let Sn=this.players.indexOf(Me);Sn>=0&&this.players.splice(Sn,1);const $i=this._engine.playersByElement.get(a);if($i){let sr=$i.indexOf(Me);sr>=0&&$i.splice(sr,1)}}),this.players.push(Me),Hn.push(Me),Me}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(u=>u.delete(a)),this._elementListeners.forEach((u,m)=>{this._elementListeners.set(m,u.filter(S=>S.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const u=this._engine.playersByElement.get(a);u&&(u.forEach(m=>m.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,u){const m=this._engine.driver.query(a,En,!0);m.forEach(S=>{if(S[Ot])return;const H=this._engine.fetchNamespacesByElement(S);H.size?H.forEach(Me=>Me.triggerLeaveAnimation(S,u,!1,!0)):this.clearElementCache(S)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(S=>this.clearElementCache(S)))}triggerLeaveAnimation(a,u,m,S){const H=this._engine.statesByElement.get(a),Me=new Map;if(H){const Oe=[];if(H.forEach((at,gt)=>{if(Me.set(gt,at.value),this._triggers.has(gt)){const en=this.trigger(a,gt,cn,S);en&&Oe.push(en)}}),Oe.length)return this._engine.markElementAsRemoved(this.id,a,!0,u,Me),m&&Ht(Oe).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const u=this._elementListeners.get(a),m=this._engine.statesByElement.get(a);if(u&&m){const S=new Set;u.forEach(H=>{const Me=H.name;if(S.has(Me))return;S.add(Me);const at=this._triggers.get(Me).fallbackTransition,gt=m.get(Me)||Kn,en=new zt(cn),qt=new Ri(this.id,Me,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:Me,transition:at,fromState:gt,toState:en,player:qt,isFallbackTransition:!0})})}}removeNode(a,u){const m=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,u),this.triggerLeaveAnimation(a,u,!0))return;let S=!1;if(m.totalAnimations){const H=m.players.length?m.playersByQueriedElement.get(a):[];if(H&&H.length)S=!0;else{let Me=a;for(;Me=Me.parentNode;)if(m.statesByElement.get(Me)){S=!0;break}}}if(this.prepareLeaveAnimationListeners(a),S)m.markElementAsRemoved(this.id,a,!1,u);else{const H=a[Ot];(!H||H===et)&&(m.afterFlush(()=>this.clearElementCache(a)),m.destroyInnerAnimations(a),m._onRemovalComplete(a,u))}}insertNode(a,u){di(a,this._hostClassName)}drainQueuedTransitions(a){const u=[];return this._queue.forEach(m=>{const S=m.player;if(S.destroyed)return;const H=m.element,Me=this._elementListeners.get(H);Me&&Me.forEach(Oe=>{if(Oe.name==m.triggerName){const at=Cn(H,m.triggerName,m.fromState.value,m.toState.value);at._data=a,sn(m.player,Oe.phase,at,Oe.callback)}}),S.markedForDestroy?this._engine.afterFlush(()=>{S.destroy()}):u.push(m)}),this._queue=[],u.sort((m,S)=>{const H=m.transition.ast.depCount,Me=S.transition.ast.depCount;return 0==H||0==Me?H-Me:this._engine.driver.containsElement(m.element,S.element)?1:-1})}destroy(a){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}}class Ui{_onRemovalComplete(a,u){this.onRemovalComplete(a,u)}constructor(a,u,m){this.bodyNode=a,this.driver=u,this._normalizer=m,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(S,H)=>{}}get queuedPlayers(){const a=[];return this._namespaceList.forEach(u=>{u.players.forEach(m=>{m.queued&&a.push(m)})}),a}createNamespace(a,u){const m=new xn(a,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(m,u):(this.newHostElements.set(u,m),this.collectEnterElement(u)),this._namespaceLookup[a]=m}_balanceNamespaceList(a,u){const m=this._namespaceList,S=this.namespacesByHostElement;if(m.length-1>=0){let Me=!1,Oe=this.driver.getParentElement(u);for(;Oe;){const at=S.get(Oe);if(at){const gt=m.indexOf(at);m.splice(gt+1,0,a),Me=!0;break}Oe=this.driver.getParentElement(Oe)}Me||m.unshift(a)}else m.push(a);return S.set(u,a),a}register(a,u){let m=this._namespaceLookup[a];return m||(m=this.createNamespace(a,u)),m}registerTrigger(a,u,m){let S=this._namespaceLookup[a];S&&S.register(u,m)&&this.totalAnimations++}destroy(a,u){a&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const m=this._fetchNamespace(a);this.namespacesByHostElement.delete(m.hostElement);const S=this._namespaceList.indexOf(m);S>=0&&this._namespaceList.splice(S,1),m.destroy(u),delete this._namespaceLookup[a]}))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const u=new Set,m=this.statesByElement.get(a);if(m)for(let S of m.values())if(S.namespaceId){const H=this._fetchNamespace(S.namespaceId);H&&u.add(H)}return u}trigger(a,u,m,S){if(Zi(u)){const H=this._fetchNamespace(a);if(H)return H.trigger(u,m,S),!0}return!1}insertNode(a,u,m,S){if(!Zi(u))return;const H=u[Ot];if(H&&H.setForRemoval){H.setForRemoval=!1,H.setForMove=!0;const Me=this.collectedLeaveElements.indexOf(u);Me>=0&&this.collectedLeaveElements.splice(Me,1)}if(a){const Me=this._fetchNamespace(a);Me&&Me.insertNode(u,m)}S&&this.collectEnterElement(u)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,u){u?this.disabledNodes.has(a)||(this.disabledNodes.add(a),di(a,Ki)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),hi(a,Ki))}removeNode(a,u,m){if(Zi(u)){const S=a?this._fetchNamespace(a):null;S?S.removeNode(u,m):this.markElementAsRemoved(a,u,!1,m);const H=this.namespacesByHostElement.get(u);H&&H.id!==a&&H.removeNode(u,m)}else this._onRemovalComplete(u,m)}markElementAsRemoved(a,u,m,S,H){this.collectedLeaveElements.push(u),u[Ot]={namespaceId:a,setForRemoval:S,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:H}}listen(a,u,m,S,H){return Zi(u)?this._fetchNamespace(a).listen(u,m,S,H):()=>{}}_buildInstruction(a,u,m,S,H){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,m,S,a.fromState.options,a.toState.options,u,H)}destroyInnerAnimations(a){let u=this.driver.query(a,En,!0);u.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(a,Vn,!0),u.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(a){const u=this.playersByElement.get(a);u&&u.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(a){const u=this.playersByQueriedElement.get(a);u&&u.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ht(this.players).onDone(()=>a());a()})}processLeaveNode(a){const u=a[Ot];if(u&&u.setForRemoval){if(a[Ot]=et,u.namespaceId){this.destroyInnerAnimations(a);const m=this._fetchNamespace(u.namespaceId);m&&m.clearElementCache(a)}this._onRemovalComplete(a,u.setForRemoval)}a.classList?.contains(Ki)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(m=>{this.markElementAsDisabled(m,!1)})}flush(a=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,S)=>this._balanceNamespaceList(m,S)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;m<this.collectedEnterElements.length;m++)di(this.collectedEnterElements[m],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const m=[];try{u=this._flushAnimations(m,a)}finally{for(let S=0;S<m.length;S++)m[S]()}}else for(let m=0;m<this.collectedLeaveElements.length;m++)this.processLeaveNode(this.collectedLeaveElements[m]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(m=>m()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],u.length?Ht(u).onDone(()=>{m.forEach(S=>S())}):m.forEach(S=>S())}}reportError(a){throw function oe(y){return new c.vHH(3402,!1)}()}_flushAnimations(a,u){const m=new zr,S=[],H=new Map,Me=[],Oe=new Map,at=new Map,gt=new Map,en=new Set;this.disabledNodes.forEach(Vt=>{en.add(Vt);const Lt=this.driver.query(Vt,".ng-animate-queued",!0);for(let pn=0;pn<Lt.length;pn++)en.add(Lt[pn])});const qt=this.bodyNode,Hn=Array.from(this.statesByElement.keys()),kn=pr(Hn,this.collectedEnterElements),On=new Map;let Sn=0;kn.forEach((Vt,Lt)=>{const pn=Yt+Sn++;On.set(Lt,pn),Vt.forEach(Rn=>di(Rn,pn))});const $i=[],sr=new Set,ir=new Set;for(let Vt=0;Vt<this.collectedLeaveElements.length;Vt++){const Lt=this.collectedLeaveElements[Vt],pn=Lt[Ot];pn&&pn.setForRemoval&&($i.push(Lt),sr.add(Lt),pn.hasAnimation?this.driver.query(Lt,".ng-star-inserted",!0).forEach(Rn=>sr.add(Rn)):ir.add(Lt))}const Pr=new Map,vr=pr(Hn,Array.from(sr));vr.forEach((Vt,Lt)=>{const pn=Gt+Sn++;Pr.set(Lt,pn),Vt.forEach(Rn=>di(Rn,pn))}),a.push(()=>{kn.forEach((Vt,Lt)=>{const pn=On.get(Lt);Vt.forEach(Rn=>hi(Rn,pn))}),vr.forEach((Vt,Lt)=>{const pn=Pr.get(Lt);Vt.forEach(Rn=>hi(Rn,pn))}),$i.forEach(Vt=>{this.processLeaveNode(Vt)})});const is=[],b=[];for(let Vt=this._namespaceList.length-1;Vt>=0;Vt--)this._namespaceList[Vt].drainQueuedTransitions(u).forEach(pn=>{const Rn=pn.player,xi=pn.element;if(is.push(Rn),this.collectedEnterElements.length){const Fr=xi[Ot];if(Fr&&Fr.setForMove){if(Fr.previousTriggersValues&&Fr.previousTriggersValues.has(pn.triggerName)){const Vo=Fr.previousTriggersValues.get(pn.triggerName),yr=this.statesByElement.get(pn.element);if(yr&&yr.has(pn.triggerName)){const pa=yr.get(pn.triggerName);pa.value=Vo,yr.set(pn.triggerName,pa)}}return void Rn.destroy()}}const Rr=!qt||!this.driver.containsElement(qt,xi),hr=Pr.get(xi),rr=On.get(xi),li=this._buildInstruction(pn,m,rr,hr,Rr);if(li.errors&&li.errors.length)return void b.push(li);if(Rr)return Rn.onStart(()=>X(xi,li.fromStyles)),Rn.onDestroy(()=>G(xi,li.toStyles)),void S.push(Rn);if(pn.isFallbackTransition)return Rn.onStart(()=>X(xi,li.fromStyles)),Rn.onDestroy(()=>G(xi,li.toStyles)),void S.push(Rn);const Ys=[];li.timelines.forEach(Fr=>{Fr.stretchStartingKeyframe=!0,this.disabledNodes.has(Fr.element)||Ys.push(Fr)}),li.timelines=Ys,m.append(xi,li.timelines),Me.push({instruction:li,player:Rn,element:xi}),li.queriedElements.forEach(Fr=>nn(Oe,Fr,[]).push(Rn)),li.preStyleProps.forEach((Fr,Vo)=>{if(Fr.size){let yr=at.get(Vo);yr||at.set(Vo,yr=new Set),Fr.forEach((pa,ga)=>yr.add(ga))}}),li.postStyleProps.forEach((Fr,Vo)=>{let yr=gt.get(Vo);yr||gt.set(Vo,yr=new Set),Fr.forEach((pa,ga)=>yr.add(ga))})});if(b.length){const Vt=[];b.forEach(Lt=>{Vt.push(function vt(y,a){return new c.vHH(3505,!1)}())}),is.forEach(Lt=>Lt.destroy()),this.reportError(Vt)}const A=new Map,U=new Map;Me.forEach(Vt=>{const Lt=Vt.element;m.has(Lt)&&(U.set(Lt,Lt),this._beforeAnimationBuild(Vt.player.namespaceId,Vt.instruction,A))}),S.forEach(Vt=>{const Lt=Vt.element;this._getPreviousPlayers(Lt,!1,Vt.namespaceId,Vt.triggerName,null).forEach(Rn=>{nn(A,Lt,[]).push(Rn),Rn.destroy()})});const Ce=$i.filter(Vt=>as(Vt,at,gt)),Ze=new Map;Di(Ze,this.driver,ir,gt,q.l3).forEach(Vt=>{as(Vt,at,gt)&&Ce.push(Vt)});const Ft=new Map;kn.forEach((Vt,Lt)=>{Di(Ft,this.driver,new Set(Vt),at,q.k1)}),Ce.forEach(Vt=>{const Lt=Ze.get(Vt),pn=Ft.get(Vt);Ze.set(Vt,new Map([...Lt?.entries()??[],...pn?.entries()??[]]))});const an=[],_n=[],fn={};Me.forEach(Vt=>{const{element:Lt,player:pn,instruction:Rn}=Vt;if(m.has(Lt)){if(en.has(Lt))return pn.onDestroy(()=>G(Lt,Rn.toStyles)),pn.disabled=!0,pn.overrideTotalTime(Rn.totalTime),void S.push(pn);let xi=fn;if(U.size>1){let hr=Lt;const rr=[];for(;hr=hr.parentNode;){const li=U.get(hr);if(li){xi=li;break}rr.push(hr)}rr.forEach(li=>U.set(li,xi))}const Rr=this._buildAnimation(pn.namespaceId,Rn,A,H,Ft,Ze);if(pn.setRealPlayer(Rr),xi===fn)an.push(pn);else{const hr=this.playersByElement.get(xi);hr&&hr.length&&(pn.parentPlayer=Ht(hr)),S.push(pn)}}else X(Lt,Rn.fromStyles),pn.onDestroy(()=>G(Lt,Rn.toStyles)),_n.push(pn),en.has(Lt)&&S.push(pn)}),_n.forEach(Vt=>{const Lt=H.get(Vt.element);if(Lt&&Lt.length){const pn=Ht(Lt);Vt.setRealPlayer(pn)}}),S.forEach(Vt=>{Vt.parentPlayer?Vt.syncPlayerEvents(Vt.parentPlayer):Vt.destroy()});for(let Vt=0;Vt<$i.length;Vt++){const Lt=$i[Vt],pn=Lt[Ot];if(hi(Lt,Gt),pn&&pn.hasAnimation)continue;let Rn=[];if(Oe.size){let Rr=Oe.get(Lt);Rr&&Rr.length&&Rn.push(...Rr);let hr=this.driver.query(Lt,Vn,!0);for(let rr=0;rr<hr.length;rr++){let li=Oe.get(hr[rr]);li&&li.length&&Rn.push(...li)}}const xi=Rn.filter(Rr=>!Rr.destroyed);xi.length?ri(this,Lt,xi):this.processLeaveNode(Lt)}return $i.length=0,an.forEach(Vt=>{this.players.push(Vt),Vt.onDone(()=>{Vt.destroy();const Lt=this.players.indexOf(Vt);this.players.splice(Lt,1)}),Vt.play()}),an}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,u,m,S,H){let Me=[];if(u){const Oe=this.playersByQueriedElement.get(a);Oe&&(Me=Oe)}else{const Oe=this.playersByElement.get(a);if(Oe){const at=!H||H==cn;Oe.forEach(gt=>{gt.queued||!at&&gt.triggerName!=S||Me.push(gt)})}}return(m||S)&&(Me=Me.filter(Oe=>!(m&&m!=Oe.namespaceId||S&&S!=Oe.triggerName))),Me}_beforeAnimationBuild(a,u,m){const H=u.element,Me=u.isRemovalTransition?void 0:a,Oe=u.isRemovalTransition?void 0:u.triggerName;for(const at of u.timelines){const gt=at.element,en=gt!==H,qt=nn(m,gt,[]);this._getPreviousPlayers(gt,en,Me,Oe,u.toState).forEach(kn=>{const On=kn.getRealPlayer();On.beforeDestroy&&On.beforeDestroy(),kn.destroy(),qt.push(kn)})}X(H,u.fromStyles)}_buildAnimation(a,u,m,S,H,Me){const Oe=u.triggerName,at=u.element,gt=[],en=new Set,qt=new Set,Hn=u.timelines.map(On=>{const Sn=On.element;en.add(Sn);const $i=Sn[Ot];if($i&&$i.removedBeforeQueried)return new q.ZN(On.duration,On.delay);const sr=Sn!==at,ir=function Zn(y){const a=[];return Wi(y,a),a}((m.get(Sn)||we).map(A=>A.getRealPlayer())).filter(A=>!!A.element&&A.element===Sn),Pr=H.get(Sn),vr=Me.get(Sn),is=Nt(this._normalizer,On.keyframes,Pr,vr),b=this._buildPlayer(On,is,ir);if(On.subTimeline&&S&&qt.add(Sn),sr){const A=new Ri(a,Oe,Sn);A.setRealPlayer(b),gt.push(A)}return b});gt.forEach(On=>{nn(this.playersByQueriedElement,On.element,[]).push(On),On.onDone(()=>function ui(y,a,u){let m=y.get(a);if(m){if(m.length){const S=m.indexOf(u);m.splice(S,1)}0==m.length&&y.delete(a)}return m}(this.playersByQueriedElement,On.element,On))}),en.forEach(On=>di(On,jn));const kn=Ht(Hn);return kn.onDestroy(()=>{en.forEach(On=>hi(On,jn)),G(at,u.toStyles)}),qt.forEach(On=>{nn(S,On,[]).push(kn)}),kn}_buildPlayer(a,u,m){return u.length>0?this.driver.animate(a.element,u,a.duration,a.delay,a.easing,m):new q.ZN(a.duration,a.delay)}}class Ri{constructor(a,u,m){this.namespaceId=a,this.triggerName=u,this.element=m,this._player=new q.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((u,m)=>{u.forEach(S=>sn(a,m,void 0,S))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const u=this._player;u.triggerCallback&&a.onStart(()=>u.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,u){nn(this._queuedCallbacks,a,[]).push(u)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const u=this._player;u.triggerCallback&&u.triggerCallback(a)}}function Zi(y){return y&&1===y.nodeType}function Dn(y,a){const u=y.style.display;return y.style.display=a??"none",u}function Di(y,a,u,m,S){const H=[];u.forEach(at=>H.push(Dn(at)));const Me=[];m.forEach((at,gt)=>{const en=new Map;at.forEach(qt=>{const Hn=a.computeStyle(gt,qt,S);en.set(qt,Hn),(!Hn||0==Hn.length)&&(gt[Ot]=wt,Me.push(gt))}),y.set(gt,en)});let Oe=0;return u.forEach(at=>Dn(at,H[Oe++])),Me}function pr(y,a){const u=new Map;if(y.forEach(Oe=>u.set(Oe,[])),0==a.length)return u;const S=new Set(a),H=new Map;function Me(Oe){if(!Oe)return 1;let at=H.get(Oe);if(at)return at;const gt=Oe.parentNode;return at=u.has(gt)?gt:S.has(gt)?1:Me(gt),H.set(Oe,at),at}return a.forEach(Oe=>{const at=Me(Oe);1!==at&&u.get(at).push(Oe)}),u}function di(y,a){y.classList?.add(a)}function hi(y,a){y.classList?.remove(a)}function ri(y,a,u){Ht(u).onDone(()=>y.processLeaveNode(a))}function Wi(y,a){for(let u=0;u<y.length;u++){const m=y[u];m instanceof q.ZE?Wi(m.players,a):a.push(m)}}function as(y,a,u){const m=u.get(y);if(!m)return!1;let S=a.get(y);return S?m.forEach(H=>S.add(H)):a.set(y,m),u.delete(y),!0}class wi{constructor(a,u,m){this.bodyNode=a,this._driver=u,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(S,H)=>{},this._transitionEngine=new Ui(a,u,m),this._timelineEngine=new _i(a,u,m),this._transitionEngine.onRemovalComplete=(S,H)=>this.onRemovalComplete(S,H)}registerTrigger(a,u,m,S,H){const Me=a+"-"+S;let Oe=this._triggerCache[Me];if(!Oe){const at=[],en=Ci(this._driver,H,at,[]);if(at.length)throw function on(y,a){return new c.vHH(3404,!1)}();Oe=function Wr(y,a,u){return new ni(y,a,u)}(S,en,this._normalizer),this._triggerCache[Me]=Oe}this._transitionEngine.registerTrigger(u,S,Oe)}register(a,u){this._transitionEngine.register(a,u)}destroy(a,u){this._transitionEngine.destroy(a,u)}onInsert(a,u,m,S){this._transitionEngine.insertNode(a,u,m,S)}onRemove(a,u,m){this._transitionEngine.removeNode(a,u,m)}disableAnimations(a,u){this._transitionEngine.markElementAsDisabled(a,u)}process(a,u,m,S){if("@"==m.charAt(0)){const[H,Me]=In(m);this._timelineEngine.command(H,u,Me,S)}else this._transitionEngine.trigger(a,u,m,S)}listen(a,u,m,S,H){if("@"==m.charAt(0)){const[Me,Oe]=In(m);return this._timelineEngine.listen(Me,u,Oe,H)}return this._transitionEngine.listen(a,u,m,S,H)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(a){this._transitionEngine.afterFlushAnimationsDone(a)}}let gr=(()=>{class a{constructor(m,S,H){this._element=m,this._startStyles=S,this._endStyles=H,this._state=0;let Me=a.initialStylesByElement.get(m);Me||a.initialStylesByElement.set(m,Me=new Map),this._initialStyles=Me}start(){this._state<1&&(this._startStyles&&G(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(G(this._element,this._initialStyles),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),G(this._element,this._initialStyles),this._state=3)}}return a.initialStylesByElement=new WeakMap,a})();function cr(y){let a=null;return y.forEach((u,m)=>{(function Yr(y){return"display"===y||"position"===y})(m)&&(a=a||new Map,a.set(m,u))}),a}class Hi{constructor(a,u,m,S){this.element=a,this.keyframes=u,this.options=m,this._specialStyles=S,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const u=[];return a.forEach(m=>{u.push(Object.fromEntries(m))}),u}_triggerWebAnimation(a,u,m){return a.animate(this._convertKeyframesToObject(u),m)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,S)=>{"offset"!==S&&a.set(S,this._finished?m:Ae(this.element,S))}),this.currentSnapshot=a}triggerCallback(a){const u="start"===a?this._onStartFns:this._onDoneFns;u.forEach(m=>m()),u.length=0}}class Vr{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,u){return!1}containsElement(a,u){return xt(a,u)}getParentElement(a){return pt(a)}query(a,u,m){return Zt(a,u,m)}computeStyle(a,u,m){return window.getComputedStyle(a)[u]}animate(a,u,m,S,H,Me=[]){const at={duration:m,delay:S,fill:0==S?"both":"forwards"};H&&(at.easing=H);const gt=new Map,en=Me.filter(kn=>kn instanceof Hi);(function V(y,a){return 0===y||0===a})(m,S)&&en.forEach(kn=>{kn.currentSnapshot.forEach((On,Sn)=>gt.set(Sn,On))});let qt=function Kt(y){return y.length?y[0]instanceof Map?y:y.map(a=>St(a)):[]}(u).map(kn=>ye(kn));qt=function k(y,a,u){if(u.size&&a.length){let m=a[0],S=[];if(u.forEach((H,Me)=>{m.has(Me)||S.push(Me),m.set(Me,H)}),S.length)for(let H=1;H<a.length;H++){let Me=a[H];S.forEach(Oe=>Me.set(Oe,Ae(y,Oe)))}}return a}(a,qt,gt);const Hn=function bi(y,a){let u=null,m=null;return Array.isArray(a)&&a.length?(u=cr(a[0]),a.length>1&&(m=cr(a[a.length-1]))):a instanceof Map&&(u=cr(a)),u||m?new gr(y,u,m):null}(a,qt);return new Hi(a,qt,at,Hn)}}let ls=(()=>{var y;class a extends q._j{constructor(m,S){super(),this._nextAnimationId=0,this._renderer=m.createRenderer(S.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(m){const S=this._nextAnimationId.toString();this._nextAnimationId++;const H=Array.isArray(m)?(0,q.vP)(m):m;return zo(this._renderer,null,S,"register",[H]),new Oo(S,this._renderer)}}return(y=a).\u0275fac=function(m){return new(m||y)(c.LFG(c.FYo),c.LFG(Z.K0))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})();class Oo extends q.LC{constructor(a,u){super(),this._id=a,this._renderer=u}create(a,u){return new $o(this._id,a,u||{},this._renderer)}}class $o{constructor(a,u,m,S){this.id=a,this.element=u,this._renderer=S,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(a,u){return this._renderer.listen(this.element,`@@${this.id}:${a}`,u)}_command(a,...u){return zo(this._renderer,this.element,this.id,a,u)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function zo(y,a,u,m,S){return y.setProperty(a,`@@${u}:${m}`,S)}const cs="@.disabled";let us=(()=>{var y;class a{constructor(m,S,H){this.delegate=m,this.engine=S,this._zone=H,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,S.onRemovalComplete=(Me,Oe)=>{const at=Oe?.parentNode(Me);at&&Oe.removeChild(at,Me)}}createRenderer(m,S){const Me=this.delegate.createRenderer(m,S);if(!(m&&S&&S.data&&S.data.animation)){let qt=this._rendererCache.get(Me);return qt||(qt=new ds("",Me,this.engine,()=>this._rendererCache.delete(Me)),this._rendererCache.set(Me,qt)),qt}const Oe=S.id,at=S.id+"-"+this._currentId;this._currentId++,this.engine.register(at,m);const gt=qt=>{Array.isArray(qt)?qt.forEach(gt):this.engine.registerTrigger(Oe,at,m,qt.name,qt)};return S.data.animation.forEach(gt),new Go(this,at,Me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,S,H){m>=0&&m<this._microtaskId?this._zone.run(()=>S(H)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Me=>{const[Oe,at]=Me;Oe(at)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([S,H]))}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(y=a).\u0275fac=function(m){return new(m||y)(c.LFG(c.FYo),c.LFG(wi),c.LFG(c.R0b))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})();class ds{constructor(a,u,m,S){this.namespaceId=a,this.delegate=u,this.engine=m,this._onDestroy=S}get data(){return this.delegate.data}destroyNode(a){this.delegate.destroyNode?.(a)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(a,u){return this.delegate.createElement(a,u)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,u){this.delegate.appendChild(a,u),this.engine.onInsert(this.namespaceId,u,a,!1)}insertBefore(a,u,m,S=!0){this.delegate.insertBefore(a,u,m),this.engine.onInsert(this.namespaceId,u,a,S)}removeChild(a,u,m){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(a,u){return this.delegate.selectRootElement(a,u)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,u,m,S){this.delegate.setAttribute(a,u,m,S)}removeAttribute(a,u,m){this.delegate.removeAttribute(a,u,m)}addClass(a,u){this.delegate.addClass(a,u)}removeClass(a,u){this.delegate.removeClass(a,u)}setStyle(a,u,m,S){this.delegate.setStyle(a,u,m,S)}removeStyle(a,u,m){this.delegate.removeStyle(a,u,m)}setProperty(a,u,m){"@"==u.charAt(0)&&u==cs?this.disableAnimations(a,!!m):this.delegate.setProperty(a,u,m)}setValue(a,u){this.delegate.setValue(a,u)}listen(a,u,m){return this.delegate.listen(a,u,m)}disableAnimations(a,u){this.engine.disableAnimations(a,u)}}class Go extends ds{constructor(a,u,m,S,H){super(u,m,S,H),this.factory=a,this.namespaceId=u}setProperty(a,u,m){"@"==u.charAt(0)?"."==u.charAt(1)&&u==cs?this.disableAnimations(a,m=void 0===m||!!m):this.engine.process(this.namespaceId,a,u.slice(1),m):this.delegate.setProperty(a,u,m)}listen(a,u,m){if("@"==u.charAt(0)){const S=function pi(y){switch(y){case"body":return document.body;case"document":return document;case"window":return window;default:return y}}(a);let H=u.slice(1),Me="";return"@"!=H.charAt(0)&&([H,Me]=function Kr(y){const a=y.indexOf(".");return[y.substring(0,a),y.slice(a+1)]}(H)),this.engine.listen(this.namespaceId,S,H,Me,Oe=>{this.factory.scheduleListenerCallback(Oe._data||-1,m,Oe)})}return this.delegate.listen(a,u,m)}}const Q=[{provide:q._j,useClass:ls},{provide:Pi,useFactory:function I(){return new Ei}},{provide:wi,useClass:(()=>{var y;class a extends wi{constructor(m,S,H,Me){super(m.body,S,H)}ngOnDestroy(){this.flush()}}return(y=a).\u0275fac=function(m){return new(m||y)(c.LFG(Z.K0),c.LFG(dt),c.LFG(Pi),c.LFG(c.z2F))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})()},{provide:c.FYo,useFactory:function w(y,a,u){return new us(y,a,u)},deps:[r.se,wi,c.R0b]}],x=[{provide:dt,useFactory:()=>new Vr},{provide:c.QbO,useValue:"BrowserAnimations"},...Q],pe=[{provide:dt,useClass:qe},{provide:c.QbO,useValue:"NoopAnimations"},...Q];let Rt=(()=>{var y;class a{static withConfig(m){return{ngModule:a,providers:m.disableAnimations?pe:x}}}return(y=a).\u0275fac=function(m){return new(m||y)},y.\u0275mod=c.oAB({type:y}),y.\u0275inj=c.cJS({providers:x,imports:[r.b2]}),a})();var Qi=g(915),mi=g(8645),Zr=g(9773),Cr=g(5141),Ar=g(8189),Wo=g(4211);let As=(()=>{var y;class a{constructor(m){this.dialogRef=m,this.config=new Cr.O,this.config.title="There is a new update available",this.config.hideMoreButton=!0}onOk(){document.location.reload()}}return(y=a).\u0275fac=function(m){return new(m||y)(c.Y36(Ar.so))},y.\u0275cmp=c.Xpm({type:y,selectors:[["app-modal-confirm-update"]],decls:5,vars:1,consts:[[3,"config","onOk","onCancel"],[1,"row","p-3"]],template:function(m,S){1&m&&(c.TgZ(0,"modal-material",0),c.NdJ("onOk",function(){return S.onOk()})("onCancel",function(){return S.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&m&&c.Q6J("config",S.config)},dependencies:[Wo.M]}),a})();var Po=g(2262),Mo=g(4911),Ts=g(8504),Yo=g(2438),ur=g(2096),ao=g(5211),ki=g(5592),Ko=g(2420);const mo=new ki.y(Ko.Z);var Fo=g(3019),Tr=g(7398),Ur=g(2181),ko=g(4664),No=g(3168),Zo=g(4674),Lo=g(4829),Qo=g(9360);const Qs={connector:()=>new mi.x};function qs(y,a=Qs){const{connector:u}=a;return(0,Qo.e)((m,S)=>{const H=u();(0,Lo.Xf)(y(function qo(y){return new ki.y(a=>y.subscribe(a))}(H))).subscribe(S),S.add(m.subscribe(H))})}var Ao=g(8180),Is=g(9397),hs=g(5177);const lo="Service workers are disabled or not supported by this browser";class dr{constructor(a){if(this.serviceWorker=a,a){const m=(0,Yo.R)(a,"controllerchange").pipe((0,Tr.U)(()=>a.controller)),S=(0,Mo.P)(()=>(0,ur.of)(a.controller)),H=(0,ao.z)(S,m);this.worker=H.pipe((0,Ur.h)(en=>!!en)),this.registration=this.worker.pipe((0,ko.w)(()=>a.getRegistration()));const gt=(0,Yo.R)(a,"message").pipe((0,Tr.U)(en=>en.data)).pipe((0,Ur.h)(en=>en&&en.type)).pipe(function Ss(y){return y?a=>qs(y)(a):a=>function Xo(y,a){const u=(0,Zo.m)(y)?y:()=>y;return(0,Zo.m)(a)?qs(a,{connector:u}):m=>new No.c(m,u)}(new mi.x)(a)}());gt.connect(),this.events=gt}else this.worker=this.events=this.registration=function ji(y){return(0,Mo.P)(()=>(0,Ts._)(new Error(y)))}(lo)}postMessage(a,u){return this.worker.pipe((0,Ao.q)(1),(0,Is.b)(m=>{m.postMessage({action:a,...u})})).toPromise().then(()=>{})}postMessageWithOperation(a,u,m){const S=this.waitForOperationCompleted(m),H=this.postMessage(a,u);return Promise.all([H,S]).then(([,Me])=>Me)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(a){let u;return u="string"==typeof a?m=>m.type===a:m=>a.includes(m.type),this.events.pipe((0,Ur.h)(u))}nextEventOfType(a){return this.eventsOfType(a).pipe((0,Ao.q)(1))}waitForOperationCompleted(a){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Ur.h)(u=>u.nonce===a),(0,Ao.q)(1),(0,Tr.U)(u=>{if(void 0!==u.result)return u.result;throw new Error(u.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let p=(()=>{var y;class a{get isEnabled(){return this.sw.isEnabled}constructor(m){if(this.sw=m,this.pushManager=null,this.subscriptionChanges=new mi.x,!m.isEnabled)return this.messages=mo,this.notificationClicks=mo,void(this.subscription=mo);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Tr.U)(H=>H.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Tr.U)(H=>H.data)),this.pushManager=this.sw.registration.pipe((0,Tr.U)(H=>H.pushManager));const S=this.pushManager.pipe((0,ko.w)(H=>H.getSubscription()));this.subscription=(0,Fo.T)(S,this.subscriptionChanges)}requestSubscription(m){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(lo));const S={userVisibleOnly:!0};let H=this.decodeBase64(m.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),Me=new Uint8Array(new ArrayBuffer(H.length));for(let Oe=0;Oe<H.length;Oe++)Me[Oe]=H.charCodeAt(Oe);return S.applicationServerKey=Me,this.pushManager.pipe((0,ko.w)(Oe=>Oe.subscribe(S)),(0,Ao.q)(1)).toPromise().then(Oe=>(this.subscriptionChanges.next(Oe),Oe))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Ao.q)(1),(0,ko.w)(S=>{if(null===S)throw new Error("Not subscribed to push notifications.");return S.unsubscribe().then(H=>{if(!H)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(lo))}decodeBase64(m){return atob(m)}}return(y=a).\u0275fac=function(m){return new(m||y)(c.LFG(dr))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})(),T=(()=>{var y;class a{get isEnabled(){return this.sw.isEnabled}constructor(m){if(this.sw=m,!m.isEnabled)return this.versionUpdates=mo,this.available=mo,this.activated=mo,void(this.unrecoverable=mo);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,Ur.h)(S=>"VERSION_READY"===S.type),(0,Tr.U)(S=>({type:"UPDATE_AVAILABLE",current:S.currentVersion,available:S.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(lo));const m=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:m},m)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(lo));const m=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:m},m)}}return(y=a).\u0275fac=function(m){return new(m||y)(c.LFG(dr))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})();const he=new c.OlP("NGSW_REGISTER_SCRIPT");function D(y,a,u,m){return()=>{if(!(0,Z.NF)(m)||!("serviceWorker"in navigator)||!1===u.enabled)return;let S;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof u.registrationStrategy)S=u.registrationStrategy();else{const[Me,...Oe]=(u.registrationStrategy||"registerWhenStable:30000").split(":");switch(Me){case"registerImmediately":S=(0,ur.of)(null);break;case"registerWithDelay":S=ne(+Oe[0]||0);break;case"registerWhenStable":S=Oe[0]?(0,Fo.T)(Ne(y),ne(+Oe[0])):Ne(y);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${u.registrationStrategy}`)}}y.get(c.R0b).runOutsideAngular(()=>S.pipe((0,Ao.q)(1)).subscribe(()=>navigator.serviceWorker.register(a,{scope:u.scope}).catch(Me=>console.error("Service worker registration failed with:",Me))))}}function ne(y){return(0,ur.of)(null).pipe((0,hs.g)(y))}function Ne(y){return y.get(c.z2F).isStable.pipe((0,Ur.h)(u=>u))}function Mt(y,a){return new dr((0,Z.NF)(a)&&!1!==y.enabled?navigator.serviceWorker:void 0)}class jt{}function ln(y,a={}){return(0,c.MR2)([p,T,{provide:he,useValue:y},{provide:jt,useValue:a},{provide:dr,useFactory:Mt,deps:[jt,c.Lbi]},{provide:c.ip1,useFactory:D,deps:[c.zs3,he,jt,c.Lbi],multi:!0}])}let ti=(()=>{var y;class a{static register(m,S={}){return{ngModule:a,providers:[ln(m,S)]}}}return(y=a).\u0275fac=function(m){return new(m||y)},y.\u0275mod=c.oAB({type:y}),y.\u0275inj=c.cJS({providers:[p,T]}),a})();var Tn=g(7328);function vn(y,a){return(u,m)=>!y.call(a,u,m)}var Jn=g(9080),gi=g(4716),Ai=g(8251);function Sr(y){return(0,Qo.e)((a,u)=>{let m=!1,S=null,H=null;const Me=()=>{if(H?.unsubscribe(),H=null,m){m=!1;const Oe=S;S=null,u.next(Oe)}};a.subscribe((0,Ai.x)(u,Oe=>{H?.unsubscribe(),m=!0,S=Oe,H=(0,Ai.x)(u,Me,Ko.Z),(0,Lo.Xf)(y(Oe)).subscribe(H)},()=>{Me(),u.complete()},void 0,()=>{S=H=null}))})}var Qr=g(3997),_r=g(9862);function oi(y,a){1&y&&c.GkF(0)}function Hr(y,a){if(1&y&&c._UZ(0,"sk-cube-grid",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function Ir(y,a){if(1&y&&c._UZ(0,"sk-chasing-dots",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function Hs(y,a){if(1&y&&c._UZ(0,"sk-double-bounce",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function js(y,a){if(1&y&&c._UZ(0,"sk-rotating-plane",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function xs(y,a){if(1&y&&c._UZ(0,"sk-spinner-pulse",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function $s(y,a){if(1&y&&c._UZ(0,"sk-three-bounce",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function Fn(y,a){if(1&y&&c._UZ(0,"sk-wandering-cubes",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}function fs(y,a){if(1&y&&c._UZ(0,"sk-wave",4),2&y){const u=c.oxw(2);c.Q6J("backgroundColor",u.backgroundColor)}}const zs=function(y){return{"background-color":y}};function ps(y,a){if(1&y&&(c.TgZ(0,"div",1),c.YNc(1,oi,1,0,"ng-container",2),c.YNc(2,Hr,1,1,"sk-cube-grid",3),c.YNc(3,Ir,1,1,"sk-chasing-dots",3),c.YNc(4,Hs,1,1,"sk-double-bounce",3),c.YNc(5,js,1,1,"sk-rotating-plane",3),c.YNc(6,xs,1,1,"sk-spinner-pulse",3),c.YNc(7,$s,1,1,"sk-three-bounce",3),c.YNc(8,Fn,1,1,"sk-wandering-cubes",3),c.YNc(9,fs,1,1,"sk-wave",3),c.qZA()),2&y){const u=c.oxw();c.Udp("opacity",u.opacity),c.ekj("backdrop",u.backdrop),c.Q6J("ngStyle",c.VKq(14,zs,u.backdrop?u.backdropBackgroundColor:"transparent")),c.xp6(1),c.Q6J("ngComponentOutlet",u.entryComponent),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skCubeGrid),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skChasingDots),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skDoubleBounce),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skRotatingPlane),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skSpinnerPulse),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skThreeBounce),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skWanderingCubes),c.xp6(1),c.Q6J("ngIf",u.spinner===u.spinkit.skWave)}}let To=(()=>{class y{}return y.\u0275fac=function(u){return new(u||y)},y.\u0275dir=c.lG2({type:y,inputs:{backgroundColor:"backgroundColor"}}),y})(),Jo=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&u&&(c.ekj("colored",!m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.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)}}"]}),y})(),jr=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(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&u&&(c.ekj("colored",!m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.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)}}"]}),y})(),co=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&u&&(c.ekj("colored",!m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.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)}}"]}),y})(),Xs=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,selectors:[["sk-rotating-plane"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(u,m){1&u&&c._UZ(0,"div",0),2&u&&c.Udp("background-color",m.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)}}"]}),y})(),Os=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,selectors:[["sk-spinner-pulse"]],features:[c.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(u,m){1&u&&c._UZ(0,"div",0),2&u&&c.Udp("background-color",m.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}}"]}),y})(),Ps=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2)(3,"div",3),c.qZA()),2&u&&(c.ekj("colored",!m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.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)}}"]}),y})(),gs=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(c.TgZ(0,"div",0),c._UZ(1,"div",1)(2,"div",2),c.qZA()),2&u&&(c.ekj("colored",!m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.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)}}"]}),y})(),ms=(()=>{class y extends To{}return y.\u0275fac=function(){let a;return function(m){return(a||(a=c.n5z(y)))(m||y)}}(),y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(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&u&&(c.ekj("colored",!m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.backgroundColor),c.xp6(1),c.Udp("background-color",m.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)}}"]}),y})();const Pt={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 _s=(()=>{class y{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Tn.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(u){this._filteredMethods=u}set filteredHeaders(u){this._filteredHeaders=u}set forceByPass(u){this._forceByPass=u}shouldBypassUrl(u){return this._filteredUrlPatterns.some(m=>m.test(u))}shouldBypassMethod(u){return this._filteredMethods.some(m=>m.toUpperCase()===u.method.toUpperCase())}shouldBypassHeader(u){return this._filteredHeaders.some(m=>u.headers.has(m))}shouldBypass(u){return this._forceByPass||this.shouldBypassUrl(u.urlWithParams)||this.shouldBypassMethod(u)||this.shouldBypassHeader(u)}intercept(u,m){const S=this.shouldBypass(u);return S||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),m.handle(u).pipe((0,gi.x)(()=>{S||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return y.\u0275fac=function(u){return new(u||y)},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})();const Rs=[{provide:_r.TP,useExisting:_s,multi:!0}];let qi=(()=>{class y{constructor(u){this.pendingRequestsInterceptor=u,this._visibility$=new Tn.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 y.\u0275fac=function(u){return new(u||y)(c.LFG(_s))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"}),y})(),qr=(()=>{class y{constructor(u,m){this.pendingRequestsInterceptor=u,this.spinnerVisibility=m,this.spinkit=Pt,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=Pt.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[u,m]=function Mi(y,a,u){return[(0,Ur.h)(a,u)((0,Lo.Xf)(y)),(0,Ur.h)(vn(a,u))((0,Lo.Xf)(y))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,S=>S);this.isVisible$=(0,Fo.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,ko.w)(()=>u.pipe(Sr(()=>(0,Jn.H)(this.debounceDelay))))),u.pipe((0,ko.w)(()=>m.pipe(Sr(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Qr.x)(),(0,Is.b)(S=>this.updateExpirationDelay(S)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(u=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(u)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(u){u&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,Jn.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return y.\u0275fac=function(u){return new(u||y)(c.Y36(_s),c.Y36(qi))},y.\u0275cmp=c.Xpm({type:y,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(u,m){1&u&&(c.YNc(0,ps,10,16,"div",0),c.ALo(1,"async")),2&u&&c.Q6J("ngIf",c.lcZ(1,1,m.isVisible$))},dependencies:[Z.$G,Z.O5,Z.PC,jr,Jo,co,Xs,Os,Ps,gs,ms,Z.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}"]}),y})(),es=(()=>{class y{static forRoot(){return{ngModule:y,providers:[Rs]}}}return y.\u0275fac=function(u){return new(u||y)},y.\u0275mod=c.oAB({type:y}),y.\u0275inj=c.cJS({imports:[Z.ez]}),y})(),$r=(()=>{var y;class a{constructor(m,S,H,Me,Oe){this.route=m,this.activateRoute=S,this.queryParamService=H,this.matDialog=Oe,this.destroy$=new mi.x,Me.versionUpdates.subscribe(at=>{Me.activateUpdate().then(()=>this.updateApp(at))})}updateApp(m){"VERSION_READY"==m.type&&this.matDialog.open(As,{disableClose:!0})}ngOnInit(){this.getLastRouteEvent()}getLastRouteEvent(){this.route.events.pipe((0,Zr.R)(this.destroy$)).subscribe(m=>{m instanceof Qi.m2&&this.getParam()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getParam(){this.activateRoute.queryParamMap.pipe((0,Zr.R)(this.destroy$)).subscribe(m=>{if(m){let S=m.get("ID"),H=m.get("Number"),Me=m.get("Outlet");this.queryParamService.setState({ID:S,billNumber:H,outletName:Me})}})}}return(y=a).\u0275fac=function(m){return new(m||y)(c.Y36(Qi.F0),c.Y36(Qi.gz),c.Y36(Po.U),c.Y36(T),c.Y36(Ar.uw))},y.\u0275cmp=c.Xpm({type:y,selectors:[["app-root"]],decls:2,vars:0,template:function(m,S){1&m&&c._UZ(0,"ng-http-loader")(1,"router-outlet")},dependencies:[Qi.lC,qr]}),a})();var Bo=g(9049);let ts=(()=>{var y;class a{constructor(m,S){this._authService=m,this._router=S}canActivate(m,S){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}return(y=a).\u0275fac=function(m){return new(m||y)(c.LFG(Bo.$),c.LFG(Qi.F0))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),a})();function Fs(y){this.message=y}(Fs.prototype=new Error).name="InvalidCharacterError";var Xr=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(y){var a=String(y).replace(/=+$/,"");if(a.length%4==1)throw new Fs("'atob' failed: The string to be decoded is not correctly encoded.");for(var u,m,S=0,H=0,Me="";m=a.charAt(H++);~m&&(u=S%4?64*u+m:m,S++%4)?Me+=String.fromCharCode(255&u>>(-2*S&6)):0)m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(m);return Me};function nr(y){this.message=y}(nr.prototype=new Error).name="InvalidTokenError";const ks=function uo(y,a){if("string"!=typeof y)throw new nr("Invalid token specified");var u=!0===(a=a||{}).header?0:1;try{return JSON.parse(function vs(y){var a=y.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(Xr(a).replace(/(.)/g,function(m,S){var H=S.charCodeAt(0).toString(16).toUpperCase();return H.length<2&&(H="0"+H),"%"+H}))}catch{return Xr(a)}}(y.split(".")[u]))}catch(m){throw new nr("Invalid token specified: "+m.message)}};var ns=g(6013);const xr_firebaseConfig={apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"};var Js=g(631),_o=g(8763);const ea=["domainAutoFocus"],ha=["passAutoFocus"];function ta(y,a){if(1&y){const u=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(S){c.CHM(u);const H=c.oxw();return c.KtG(H.subdomain=S)}),c.qZA()()(),c.TgZ(14,"select",32),c.NdJ("ngModelChange",function(S){c.CHM(u);const H=c.oxw();return c.KtG(H.domain=S)}),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(u);const S=c.oxw();return c.KtG(S.onNextState())}),c._uU(23," Next "),c.qZA()()()()(),c.BQk()}if(2&y){const u=c.oxw();c.xp6(12),c.Q6J("ngModel",u.subdomain),c.xp6(2),c.Q6J("ngModel",u.domain)}}function na(y,a){1&y&&(c.TgZ(0,"p"),c._uU(1," Username is required "),c.qZA())}function fa(y,a){if(1&y&&(c.TgZ(0,"div",61),c.YNc(1,na,2,0,"p",62),c.qZA()),2&y){c.oxw();const u=c.MAs(13);c.xp6(1),c.Q6J("ngIf",u.errors.required)}}const Gs=function(y,a){return{"fa-eye":y,"fa-eye-slash":a}};function el(y,a){if(1&y){const u=c.EpF();c.TgZ(0,"i",63),c.NdJ("click",function(){c.CHM(u);const S=c.oxw(2);return c.KtG(S.hideShowPassword())}),c.qZA()}if(2&y){const u=c.oxw(2);c.Q6J("ngClass",c.WLB(1,Gs,"eye-off"==u.passwordIcon,"eye"==u.passwordIcon))}}function Ws(y,a){1&y&&(c.TgZ(0,"p"),c._uU(1," Password is required "),c.qZA())}function h(y,a){if(1&y&&(c.TgZ(0,"div",61),c.YNc(1,Ws,2,0,"p",62),c.qZA()),2&y){c.oxw();const u=c.MAs(19);c.xp6(1),c.Q6J("ngIf",u.errors.required)}}function _(y,a){if(1&y){const u=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(u);const S=c.oxw();return c.KtG(S.onEditDomain())}),c.qZA()()(),c.TgZ(10,"form",42)(11,"div",43)(12,"input",44,45),c.NdJ("ngModelChange",function(S){c.CHM(u);const H=c.oxw();return c.KtG(H.username=S)}),c.qZA(),c.TgZ(14,"label",46),c._uU(15,"Username"),c.qZA(),c.YNc(16,fa,2,1,"div",47),c.qZA(),c.TgZ(17,"div",48)(18,"input",49,50),c.NdJ("ngModelChange",function(S){c.CHM(u);const H=c.oxw();return c.KtG(H.password=S)}),c.qZA(),c.TgZ(20,"label",51),c._uU(21,"Password"),c.qZA(),c.YNc(22,el,1,4,"i",52),c.YNc(23,h,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(u);const S=c.oxw();return c.KtG(S.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(S){c.CHM(u);const H=c.oxw();return c.KtG(H.onLoginByGoogle(S))}),c._UZ(37,"i",60),c._uU(38," Sign In with Google "),c.qZA()()()()()}if(2&y){const u=c.MAs(13),m=c.MAs(19),S=c.oxw();c.xp6(8),c.AsE(" (",S.subdomain,"",S.domain,") "),c.xp6(4),c.Q6J("ngModel",S.username),c.xp6(4),c.Q6J("ngIf",u.invalid&&(u.dirty||u.touched)),c.xp6(2),c.Q6J("type",S.passwordType)("ngModel",S.password),c.xp6(4),c.Q6J("ngIf",""!=S.password),c.xp6(1),c.Q6J("ngIf",m.invalid&&(m.dirty||m.touched)),c.xp6(2),c.Q6J("href","https://"+S.subdomain+S.domain+"/ForgotPassword",c.LSH)}}const f=[{path:"",component:$r,children:[{path:"",component:(()=>{var y;class a{constructor(m,S,H,Me,Oe){this._httpService=m,this.toastr=S,this.auth=H,this.elementRef=Me,this.cdr=Oe,this.version="1.5.6",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 m=this.auth.isLoginFormExist();if(this.setAutoFocusDomain(),m){this.username=this.auth.getUsername(),this.subdomain=this.auth.getDomain().split(".dealpos")[0];const S=this.auth.getDomain().split(".dealpos")[1];this.domain=".co.id"==S?".dealpos.co.id":".net"==S?".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(){ns.gT.IsEmpty(this.subdomain)?this.toastr.warning("Account Domain is required","Warning"):this.loginState="FORM_AUTH"}login(){var m={Username:this.username,Password:this.password,Host:this.subdomain+(this.subdomain.includes("localhost")?"":this.domain)};this._httpService.post("/api/Token/Login",JSON.stringify(m)).subscribe(S=>{if(null!=S.access_token||null!=S.access_token){let H=S.access_token,Me=S.expiredAt;localStorage.setItem("Token",H),localStorage.setItem("ExpireDate",Me),this.auth.saveLoginForm(this.subdomain+(this.subdomain.includes("localhost")?"":this.domain),this.username);let at=ks(H)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],gt=at?at.find(en=>"Products"==en||"Prod"==en):null;this.auth.setRoles(at),"Products"==gt||"Prod"==gt?this.auth.login("/pages"):this.toastr.error("Require products role to access this feature!","Error")}},S=>{console.error(S)})}onLoginByGoogle(m){this.auth.loginWithGoogle(m,`${this.subdomain}${this.domain}`).subscribe(H=>{console.log(H);let Oe=ks(H.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];Oe&&Oe.find(gt=>"Products"==gt||"Prod"==gt),this.auth.setRoles(Oe),this.auth.login("/pages")})}}return(y=a).\u0275fac=function(m){return new(m||y)(c.Y36(Js.O),c.Y36(_o._W),c.Y36(Bo.$),c.Y36(c.SBq),c.Y36(c.sBO))},y.\u0275cmp=c.Xpm({type:y,selectors:[["app-login"]],viewQuery:function(m,S){if(1&m&&(c.Gf(ea,5),c.Gf(ha,5)),2&m){let H;c.iGM(H=c.CRH())&&(S.domainElementRef=H.first),c.iGM(H=c.CRH())&&(S.passElementRef=H.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"],[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","fs-6",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","fs-6",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","fs-6",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start","fs-6"],["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","fs-6",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start","fs-6"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end"],[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","fs-6","robotoslab",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(m,S){if(1&m&&(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,ta,24,2,"ng-container",7),c.YNc(10,_,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&m){const H=c.MAs(11);c.xp6(9),c.Q6J("ngIf","FORM_DOMAIN"==S.loginState)("ngIfElse",H),c.xp6(10),c.hij("Version ",S.version,""),c.xp6(12),c.hij("Version ",S.version,"")}},dependencies:[Z.mk,Z.O5,J._Y,J.YN,J.Kr,J.Fj,J.EJ,J.JJ,J.JL,J.Q7,J.On,J.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}"]}),a})()},{path:"pages",loadChildren:()=>g.e(571).then(g.bind(g,571)).then(y=>y.PagesModule),canActivate:[ts]},{path:"",redirectTo:"",pathMatch:"full"}]}];let M=(()=>{var y;class a{}return(y=a).\u0275fac=function(m){return new(m||y)},y.\u0275mod=c.oAB({type:y}),y.\u0275inj=c.cJS({imports:[Z.ez,J.u5,Rt,Qi.Bz.forRoot(f),Qi.Bz]}),a})();const Y=["custom-toast-component",""];function ge(y,a){if(1&y){const u=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(u);const S=c.oxw(2);return c.KtG(S.remove())}),c._uU(1," x "),c.qZA()}}function xe(y,a){if(1&y&&(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,ge,2,0,"a",9),c.qZA()()),2&y){const u=c.oxw();c.Udp("display","inactive"===u.state.value?"none":""),c.xp6(2),c.Tol(u.options.titleClass),c.uIk("aria-label",u.title),c.xp6(2),c.Oqu(u.title),c.xp6(2),c.Q6J("ngIf",u.options.closeButton)}}const bt=function(y){return{notitle:y}};function Wt(y,a){if(1&y&&c._UZ(0,"div",11),2&y){const u=c.oxw();c.Tol(u.options.messageClass),c.Q6J("ngClass",c.VKq(4,bt,null==u.title))("innerHTML",u.message,c.oJD)}}function hn(y,a){if(1&y&&(c.TgZ(0,"div",12),c._uU(1),c.qZA()),2&y){const u=c.oxw();c.Tol(u.options.messageClass),c.Q6J("ngClass",c.VKq(5,bt,null==u.title)),c.uIk("aria-label",u.message),c.xp6(1),c.hij(" ",u.message," ")}}function yn(y,a){if(1&y){const u=c.EpF();c.TgZ(0,"a",10),c.NdJ("click",function(){c.CHM(u);const S=c.oxw();return c.KtG(S.remove())}),c._uU(1," x "),c.qZA()}}function Ni(y,a){if(1&y&&(c.TgZ(0,"div"),c._UZ(1,"div",13),c.qZA()),2&y){const u=c.oxw();c.xp6(1),c.Udp("width",u.width+"%")}}let Or=(()=>{var y;class a extends _o.FN{constructor(m,S){super(m,S),this.toastrService=m,this.toastPackage=S}ngOnInit(){}action(m){return m.stopPropagation(),this.toastPackage.triggerAction(),!1}}return(y=a).\u0275fac=function(m){return new(m||y)(c.Y36(_o._W),c.Y36(_o.PR))},y.\u0275cmp=c.Xpm({type:y,selectors:[["","custom-toast-component",""]],features:[c.qOj],attrs:Y,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(m,S){1&m&&(c.TgZ(0,"div",0),c.YNc(1,xe,7,7,"div",1),c.YNc(2,Wt,1,6,"div",2),c.YNc(3,hn,2,7,"div",3),c.YNc(4,yn,2,0,"a",4),c.YNc(5,Ni,2,2,"div",5),c.qZA()),2&m&&(c.xp6(1),c.Q6J("ngIf",S.title),c.xp6(1),c.Q6J("ngIf",S.message&&S.options.enableHtml),c.xp6(1),c.Q6J("ngIf",S.message&&!S.options.enableHtml),c.xp6(1),c.Q6J("ngIf",S.options.closeButton&&null==S.title),c.xp6(1),c.Q6J("ngIf",S.options.progressBar))},dependencies:[Z.mk,Z.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:.7rem;padding-bottom:.7rem}.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})])))])]}}),a})();var So=g(4007);let vo=(()=>{var y;class a{}return(y=a).\u0275fac=function(m){return new(m||y)},y.\u0275mod=c.oAB({type:y,bootstrap:[$r]}),y.\u0275inj=c.cJS({providers:[ts],imports:[r.b2,M,Rt,_r.JF,_o.Rh.forRoot({toastComponent:Or,positionClass:"toast-bottom-right",closeButton:!0}),es.forRoot(),ti.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),Ar.Is,So.m,R.hO.initializeApp(xr_firebaseConfig),te.ww]}),a})();(0,c.G48)(),r.q6().bootstrapModule(vo).catch(y=>console.error(y))},5619:(It,Fe,g)=>{g.d(Fe,{X:()=>c});var r=g(8645);class c extends r.x{constructor(te){super(),this._value=te}get value(){return this.getValue()}_subscribe(te){const Z=super._subscribe(te);return!Z.closed&&te.next(this._value),Z}getValue(){const{hasError:te,thrownError:Z,_value:J}=this;if(te)throw Z;return this._throwIfClosed(),J}next(te){super.next(this._value=te)}}},5592:(It,Fe,g)=>{g.d(Fe,{y:()=>le});var r=g(305),c=g(7394),R=g(4850),te=g(8407),Z=g(2653),J=g(4674),q=g(1441);let le=(()=>{class fe{constructor(je){je&&(this._subscribe=je)}lift(je){const Je=new fe;return Je.source=this,Je.operator=je,Je}subscribe(je,Je,Se){const Ue=function z(fe){return fe&&fe instanceof r.Lv||function N(fe){return fe&&(0,J.m)(fe.next)&&(0,J.m)(fe.error)&&(0,J.m)(fe.complete)}(fe)&&(0,c.Nn)(fe)}(je)?je:new r.Hp(je,Je,Se);return(0,q.x)(()=>{const{operator:$e,source:Ke}=this;Ue.add($e?$e.call(Ue,Ke):Ke?this._subscribe(Ue):this._trySubscribe(Ue))}),Ue}_trySubscribe(je){try{return this._subscribe(je)}catch(Je){je.error(Je)}}forEach(je,Je){return new(Je=K(Je))((Se,Ue)=>{const $e=new r.Hp({next:Ke=>{try{je(Ke)}catch(lt){Ue(lt),$e.unsubscribe()}},error:Ue,complete:Se});this.subscribe($e)})}_subscribe(je){var Je;return null===(Je=this.source)||void 0===Je?void 0:Je.subscribe(je)}[R.L](){return this}pipe(...je){return(0,te.U)(je)(this)}toPromise(je){return new(je=K(je))((Je,Se)=>{let Ue;this.subscribe($e=>Ue=$e,$e=>Se($e),()=>Je(Ue))})}}return fe.create=Ve=>new fe(Ve),fe})();function K(fe){var Ve;return null!==(Ve=fe??Z.config.Promise)&&void 0!==Ve?Ve:Promise}},7328:(It,Fe,g)=>{g.d(Fe,{t:()=>R});var r=g(8645),c=g(4552);class R extends r.x{constructor(Z=1/0,J=1/0,q=c.l){super(),this._bufferSize=Z,this._windowTime=J,this._timestampProvider=q,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=J===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,J)}next(Z){const{isStopped:J,_buffer:q,_infiniteTimeWindow:le,_timestampProvider:K,_windowTime:N}=this;J||(q.push(Z),!le&&q.push(K.now()+N)),this._trimBuffer(),super.next(Z)}_subscribe(Z){this._throwIfClosed(),this._trimBuffer();const J=this._innerSubscribe(Z),{_infiniteTimeWindow:q,_buffer:le}=this,K=le.slice();for(let N=0;N<K.length&&!Z.closed;N+=q?1:2)Z.next(K[N]);return this._checkFinalizedStatuses(Z),J}_trimBuffer(){const{_bufferSize:Z,_timestampProvider:J,_buffer:q,_infiniteTimeWindow:le}=this,K=(le?1:2)*Z;if(Z<1/0&&K<q.length&&q.splice(0,q.length-K),!le){const N=J.now();let z=0;for(let fe=1;fe<q.length&&q[fe]<=N;fe+=2)z=fe;z&&q.splice(0,z+1)}}}},8645:(It,Fe,g)=>{g.d(Fe,{x:()=>q});var r=g(5592),c=g(7394);const te=(0,g(2306).d)(K=>function(){K(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Z=g(9039),J=g(1441);let q=(()=>{class K extends r.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(z){const fe=new le(this,this);return fe.operator=z,fe}_throwIfClosed(){if(this.closed)throw new te}next(z){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const fe of this.currentObservers)fe.next(z)}})}error(z){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=z;const{observers:fe}=this;for(;fe.length;)fe.shift().error(z)}})}complete(){(0,J.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:z}=this;for(;z.length;)z.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var z;return(null===(z=this.observers)||void 0===z?void 0:z.length)>0}_trySubscribe(z){return this._throwIfClosed(),super._trySubscribe(z)}_subscribe(z){return this._throwIfClosed(),this._checkFinalizedStatuses(z),this._innerSubscribe(z)}_innerSubscribe(z){const{hasError:fe,isStopped:Ve,observers:je}=this;return fe||Ve?c.Lc:(this.currentObservers=null,je.push(z),new c.w0(()=>{this.currentObservers=null,(0,Z.P)(je,z)}))}_checkFinalizedStatuses(z){const{hasError:fe,thrownError:Ve,isStopped:je}=this;fe?z.error(Ve):je&&z.complete()}asObservable(){const z=new r.y;return z.source=this,z}}return K.create=(N,z)=>new le(N,z),K})();class le extends q{constructor(N,z){super(),this.destination=N,this.source=z}next(N){var z,fe;null===(fe=null===(z=this.destination)||void 0===z?void 0:z.next)||void 0===fe||fe.call(z,N)}error(N){var z,fe;null===(fe=null===(z=this.destination)||void 0===z?void 0:z.error)||void 0===fe||fe.call(z,N)}complete(){var N,z;null===(z=null===(N=this.destination)||void 0===N?void 0:N.complete)||void 0===z||z.call(N)}_subscribe(N){var z,fe;return null!==(fe=null===(z=this.source)||void 0===z?void 0:z.subscribe(N))&&void 0!==fe?fe:c.Lc}}},305:(It,Fe,g)=>{g.d(Fe,{Hp:()=>Se,Lv:()=>fe});var r=g(4674),c=g(7394),R=g(2653),te=g(3894),Z=g(2420);const J=K("C",void 0,void 0);function K(ee,Ie,de){return{kind:ee,value:Ie,error:de}}var N=g(7599),z=g(1441);class fe extends c.w0{constructor(Ie){super(),this.isStopped=!1,Ie?(this.destination=Ie,(0,c.Nn)(Ie)&&Ie.add(this)):this.destination=lt}static create(Ie,de,ve){return new Se(Ie,de,ve)}next(Ie){this.isStopped?Ke(function le(ee){return K("N",ee,void 0)}(Ie),this):this._next(Ie)}error(Ie){this.isStopped?Ke(function q(ee){return K("E",void 0,ee)}(Ie),this):(this.isStopped=!0,this._error(Ie))}complete(){this.isStopped?Ke(J,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ie){this.destination.next(Ie)}_error(Ie){try{this.destination.error(Ie)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ve=Function.prototype.bind;function je(ee,Ie){return Ve.call(ee,Ie)}class Je{constructor(Ie){this.partialObserver=Ie}next(Ie){const{partialObserver:de}=this;if(de.next)try{de.next(Ie)}catch(ve){Ue(ve)}}error(Ie){const{partialObserver:de}=this;if(de.error)try{de.error(Ie)}catch(ve){Ue(ve)}else Ue(Ie)}complete(){const{partialObserver:Ie}=this;if(Ie.complete)try{Ie.complete()}catch(de){Ue(de)}}}class Se extends fe{constructor(Ie,de,ve){let ze;if(super(),(0,r.m)(Ie)||!Ie)ze={next:Ie??void 0,error:de??void 0,complete:ve??void 0};else{let Te;this&&R.config.useDeprecatedNextContext?(Te=Object.create(Ie),Te.unsubscribe=()=>this.unsubscribe(),ze={next:Ie.next&&je(Ie.next,Te),error:Ie.error&&je(Ie.error,Te),complete:Ie.complete&&je(Ie.complete,Te)}):ze=Ie}this.destination=new Je(ze)}}function Ue(ee){R.config.useDeprecatedSynchronousErrorHandling?(0,z.O)(ee):(0,te.h)(ee)}function Ke(ee,Ie){const{onStoppedNotification:de}=R.config;de&&N.z.setTimeout(()=>de(ee,Ie))}const lt={closed:!0,next:Z.Z,error:function $e(ee){throw ee},complete:Z.Z}},7394:(It,Fe,g)=>{g.d(Fe,{Lc:()=>J,w0:()=>Z,Nn:()=>q});var r=g(4674);const R=(0,g(2306).d)(K=>function(z){K(this),this.message=z?`${z.length} errors occurred during unsubscription:\n${z.map((fe,Ve)=>`${Ve+1}) ${fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=z});var te=g(9039);class Z{constructor(N){this.initialTeardown=N,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let N;if(!this.closed){this.closed=!0;const{_parentage:z}=this;if(z)if(this._parentage=null,Array.isArray(z))for(const je of z)je.remove(this);else z.remove(this);const{initialTeardown:fe}=this;if((0,r.m)(fe))try{fe()}catch(je){N=je instanceof R?je.errors:[je]}const{_finalizers:Ve}=this;if(Ve){this._finalizers=null;for(const je of Ve)try{le(je)}catch(Je){N=N??[],Je instanceof R?N=[...N,...Je.errors]:N.push(Je)}}if(N)throw new R(N)}}add(N){var z;if(N&&N!==this)if(this.closed)le(N);else{if(N instanceof Z){if(N.closed||N._hasParent(this))return;N._addParent(this)}(this._finalizers=null!==(z=this._finalizers)&&void 0!==z?z:[]).push(N)}}_hasParent(N){const{_parentage:z}=this;return z===N||Array.isArray(z)&&z.includes(N)}_addParent(N){const{_parentage:z}=this;this._parentage=Array.isArray(z)?(z.push(N),z):z?[z,N]:N}_removeParent(N){const{_parentage:z}=this;z===N?this._parentage=null:Array.isArray(z)&&(0,te.P)(z,N)}remove(N){const{_finalizers:z}=this;z&&(0,te.P)(z,N),N instanceof Z&&N._removeParent(this)}}Z.EMPTY=(()=>{const K=new Z;return K.closed=!0,K})();const J=Z.EMPTY;function q(K){return K instanceof Z||K&&"closed"in K&&(0,r.m)(K.remove)&&(0,r.m)(K.add)&&(0,r.m)(K.unsubscribe)}function le(K){(0,r.m)(K)?K():K.unsubscribe()}},2653:(It,Fe,g)=>{g.d(Fe,{config:()=>r});const r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(It,Fe,g)=>{g.d(Fe,{c:()=>J});var r=g(5592),c=g(7394),R=g(6196),te=g(8251),Z=g(9360);class J extends r.y{constructor(le,K){super(),this.source=le,this.subjectFactory=K,this._subject=null,this._refCount=0,this._connection=null,(0,Z.A)(le)&&(this.lift=le.lift)}_subscribe(le){return this.getSubject().subscribe(le)}getSubject(){const le=this._subject;return(!le||le.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:le}=this;this._subject=this._connection=null,le?.unsubscribe()}connect(){let le=this._connection;if(!le){le=this._connection=new c.w0;const K=this.getSubject();le.add(this.source.subscribe((0,te.x)(K,void 0,()=>{this._teardown(),K.complete()},N=>{this._teardown(),K.error(N)},()=>this._teardown()))),le.closed&&(this._connection=null,le=c.w0.EMPTY)}return le}refCount(){return(0,R.x)()(this)}}},2572:(It,Fe,g)=>{g.d(Fe,{a:()=>N});var r=g(5592),c=g(7453),R=g(2459),te=g(2737),Z=g(7400),J=g(9940),q=g(2714),le=g(8251),K=g(7103);function N(...Ve){const je=(0,J.yG)(Ve),Je=(0,J.jO)(Ve),{args:Se,keys:Ue}=(0,c.D)(Ve);if(0===Se.length)return(0,R.D)([],je);const $e=new r.y(function z(Ve,je,Je=te.y){return Se=>{fe(je,()=>{const{length:Ue}=Ve,$e=new Array(Ue);let Ke=Ue,lt=Ue;for(let ee=0;ee<Ue;ee++)fe(je,()=>{const Ie=(0,R.D)(Ve[ee],je);let de=!1;Ie.subscribe((0,le.x)(Se,ve=>{$e[ee]=ve,de||(de=!0,lt--),lt||Se.next(Je($e.slice()))},()=>{--Ke||Se.complete()}))},Se)},Se)}}(Se,je,Ue?Ke=>(0,q.n)(Ue,Ke):te.y));return Je?$e.pipe((0,Z.Z)(Je)):$e}function fe(Ve,je,Je){Ve?(0,K.f)(Je,Ve,je):je()}},5211:(It,Fe,g)=>{g.d(Fe,{z:()=>Z});var r=g(7537),R=g(9940),te=g(2459);function Z(...J){return function c(){return(0,r.J)(1)}()((0,te.D)(J,(0,R.yG)(J)))}},4911:(It,Fe,g)=>{g.d(Fe,{P:()=>R});var r=g(5592),c=g(4829);function R(te){return new r.y(Z=>{(0,c.Xf)(te()).subscribe(Z)})}},6232:(It,Fe,g)=>{g.d(Fe,{E:()=>c});const c=new(g(5592).y)(Z=>Z.complete())},2459:(It,Fe,g)=>{g.d(Fe,{D:()=>Ie});var r=g(4829),c=g(3093),R=g(5137),J=g(5592),le=g(4971),K=g(4674),N=g(7103);function fe(de,ve){if(!de)throw new Error("Iterable cannot be null");return new J.y(ze=>{(0,N.f)(ze,ve,()=>{const Te=de[Symbol.asyncIterator]();(0,N.f)(ze,ve,()=>{Te.next().then(ct=>{ct.done?ze.complete():ze.next(ct.value)})},0,!0)})})}var Ve=g(8382),je=g(4026),Je=g(4266),Se=g(3664),Ue=g(5726),$e=g(9853),Ke=g(541);function Ie(de,ve){return ve?function ee(de,ve){if(null!=de){if((0,Ve.c)(de))return function te(de,ve){return(0,r.Xf)(de).pipe((0,R.R)(ve),(0,c.Q)(ve))}(de,ve);if((0,Je.z)(de))return function q(de,ve){return new J.y(ze=>{let Te=0;return ve.schedule(function(){Te===de.length?ze.complete():(ze.next(de[Te++]),ze.closed||this.schedule())})})}(de,ve);if((0,je.t)(de))return function Z(de,ve){return(0,r.Xf)(de).pipe((0,R.R)(ve),(0,c.Q)(ve))}(de,ve);if((0,Ue.D)(de))return fe(de,ve);if((0,Se.T)(de))return function z(de,ve){return new J.y(ze=>{let Te;return(0,N.f)(ze,ve,()=>{Te=de[le.h](),(0,N.f)(ze,ve,()=>{let ct,Et;try{({value:ct,done:Et}=Te.next())}catch(Bt){return void ze.error(Bt)}Et?ze.complete():ze.next(ct)},0,!0)}),()=>(0,K.m)(Te?.return)&&Te.return()})}(de,ve);if((0,Ke.L)(de))return function lt(de,ve){return fe((0,Ke.Q)(de),ve)}(de,ve)}throw(0,$e.z)(de)}(de,ve):(0,r.Xf)(de)}},2438:(It,Fe,g)=>{g.d(Fe,{R:()=>N});var r=g(4829),c=g(5592),R=g(1631),te=g(4266),Z=g(4674),J=g(7400);const q=["addListener","removeListener"],le=["addEventListener","removeEventListener"],K=["on","off"];function N(Je,Se,Ue,$e){if((0,Z.m)(Ue)&&($e=Ue,Ue=void 0),$e)return N(Je,Se,Ue).pipe((0,J.Z)($e));const[Ke,lt]=function je(Je){return(0,Z.m)(Je.addEventListener)&&(0,Z.m)(Je.removeEventListener)}(Je)?le.map(ee=>Ie=>Je[ee](Se,Ie,Ue)):function fe(Je){return(0,Z.m)(Je.addListener)&&(0,Z.m)(Je.removeListener)}(Je)?q.map(z(Je,Se)):function Ve(Je){return(0,Z.m)(Je.on)&&(0,Z.m)(Je.off)}(Je)?K.map(z(Je,Se)):[];if(!Ke&&(0,te.z)(Je))return(0,R.z)(ee=>N(ee,Se,Ue))((0,r.Xf)(Je));if(!Ke)throw new TypeError("Invalid event target");return new c.y(ee=>{const Ie=(...de)=>ee.next(1<de.length?de:de[0]);return Ke(Ie),()=>lt(Ie)})}function z(Je,Se){return Ue=>$e=>Je[Ue](Se,$e)}},4829:(It,Fe,g)=>{g.d(Fe,{Xf:()=>Ve});var r=g(7582),c=g(4266),R=g(4026),te=g(5592),Z=g(8382),J=g(5726),q=g(9853),le=g(3664),K=g(541),N=g(4674),z=g(3894),fe=g(4850);function Ve(ee){if(ee instanceof te.y)return ee;if(null!=ee){if((0,Z.c)(ee))return function je(ee){return new te.y(Ie=>{const de=ee[fe.L]();if((0,N.m)(de.subscribe))return de.subscribe(Ie);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ee);if((0,c.z)(ee))return function Je(ee){return new te.y(Ie=>{for(let de=0;de<ee.length&&!Ie.closed;de++)Ie.next(ee[de]);Ie.complete()})}(ee);if((0,R.t)(ee))return function Se(ee){return new te.y(Ie=>{ee.then(de=>{Ie.closed||(Ie.next(de),Ie.complete())},de=>Ie.error(de)).then(null,z.h)})}(ee);if((0,J.D)(ee))return $e(ee);if((0,le.T)(ee))return function Ue(ee){return new te.y(Ie=>{for(const de of ee)if(Ie.next(de),Ie.closed)return;Ie.complete()})}(ee);if((0,K.L)(ee))return function Ke(ee){return $e((0,K.Q)(ee))}(ee)}throw(0,q.z)(ee)}function $e(ee){return new te.y(Ie=>{(function lt(ee,Ie){var de,ve,ze,Te;return(0,r.mG)(this,void 0,void 0,function*(){try{for(de=(0,r.KL)(ee);!(ve=yield de.next()).done;)if(Ie.next(ve.value),Ie.closed)return}catch(ct){ze={error:ct}}finally{try{ve&&!ve.done&&(Te=de.return)&&(yield Te.call(de))}finally{if(ze)throw ze.error}}Ie.complete()})})(ee,Ie).catch(de=>Ie.error(de))})}},3019:(It,Fe,g)=>{g.d(Fe,{T:()=>J});var r=g(7537),c=g(4829),R=g(6232),te=g(9940),Z=g(2459);function J(...q){const le=(0,te.yG)(q),K=(0,te._6)(q,1/0),N=q;return N.length?1===N.length?(0,c.Xf)(N[0]):(0,r.J)(K)((0,Z.D)(N,le)):R.E}},2096:(It,Fe,g)=>{g.d(Fe,{of:()=>R});var r=g(9940),c=g(2459);function R(...te){const Z=(0,r.yG)(te);return(0,c.D)(te,Z)}},8504:(It,Fe,g)=>{g.d(Fe,{_:()=>R});var r=g(5592),c=g(4674);function R(te,Z){const J=(0,c.m)(te)?te:()=>te,q=le=>le.error(J());return new r.y(Z?le=>Z.schedule(q,0,le):q)}},9080:(It,Fe,g)=>{g.d(Fe,{H:()=>Z});var r=g(5592),c=g(6321),R=g(671),te=g(93);function Z(J=0,q,le=c.P){let K=-1;return null!=q&&((0,R.K)(q)?le=q:K=q),new r.y(N=>{let z=(0,te.q)(J)?+J-le.now():J;z<0&&(z=0);let fe=0;return le.schedule(function(){N.closed||(N.next(fe++),0<=K?this.schedule(void 0,K):N.complete())},z)})}},8251:(It,Fe,g)=>{g.d(Fe,{x:()=>c});var r=g(305);function c(te,Z,J,q,le){return new R(te,Z,J,q,le)}class R extends r.Lv{constructor(Z,J,q,le,K,N){super(Z),this.onFinalize=K,this.shouldUnsubscribe=N,this._next=J?function(z){try{J(z)}catch(fe){Z.error(fe)}}:super._next,this._error=le?function(z){try{le(z)}catch(fe){Z.error(fe)}finally{this.unsubscribe()}}:super._error,this._complete=q?function(){try{q()}catch(z){Z.error(z)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Z;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:J}=this;super.unsubscribe(),!J&&(null===(Z=this.onFinalize)||void 0===Z||Z.call(this))}}}},9028:(It,Fe,g)=>{g.d(Fe,{e:()=>q});var r=g(6321),c=g(9360),R=g(4829),te=g(8251),J=g(9080);function q(le,K=r.z){return function Z(le){return(0,c.e)((K,N)=>{let z=!1,fe=null,Ve=null,je=!1;const Je=()=>{if(Ve?.unsubscribe(),Ve=null,z){z=!1;const Ue=fe;fe=null,N.next(Ue)}je&&N.complete()},Se=()=>{Ve=null,je&&N.complete()};K.subscribe((0,te.x)(N,Ue=>{z=!0,fe=Ue,Ve||(0,R.Xf)(le(Ue)).subscribe(Ve=(0,te.x)(N,Je,Se))},()=>{je=!0,(!z||!Ve||Ve.closed)&&N.complete()}))})}(()=>(0,J.H)(le,K))}},6328:(It,Fe,g)=>{g.d(Fe,{b:()=>R});var r=g(1631),c=g(4674);function R(te,Z){return(0,c.m)(Z)?(0,r.z)(te,Z,1):(0,r.z)(te,1)}},3620:(It,Fe,g)=>{g.d(Fe,{b:()=>te});var r=g(6321),c=g(9360),R=g(8251);function te(Z,J=r.z){return(0,c.e)((q,le)=>{let K=null,N=null,z=null;const fe=()=>{if(K){K.unsubscribe(),K=null;const je=N;N=null,le.next(je)}};function Ve(){const je=z+Z,Je=J.now();if(Je<je)return K=this.schedule(void 0,je-Je),void le.add(K);fe()}q.subscribe((0,R.x)(le,je=>{N=je,z=J.now(),K||(K=J.schedule(Ve,Z),le.add(K))},()=>{fe(),le.complete()},void 0,()=>{N=K=null}))})}},3572:(It,Fe,g)=>{g.d(Fe,{d:()=>R});var r=g(9360),c=g(8251);function R(te){return(0,r.e)((Z,J)=>{let q=!1;Z.subscribe((0,c.x)(J,le=>{q=!0,J.next(le)},()=>{q||J.next(te),J.complete()}))})}},5177:(It,Fe,g)=>{g.d(Fe,{g:()=>Ve});var r=g(6321),c=g(5211),R=g(8180),te=g(9360),Z=g(8251),J=g(2420),le=g(975),K=g(1631),N=g(4829);function z(je,Je){return Je?Se=>(0,c.z)(Je.pipe((0,R.q)(1),function q(){return(0,te.e)((je,Je)=>{je.subscribe((0,Z.x)(Je,J.Z))})}()),Se.pipe(z(je))):(0,K.z)((Se,Ue)=>(0,N.Xf)(je(Se,Ue)).pipe((0,R.q)(1),(0,le.h)(Se)))}var fe=g(9080);function Ve(je,Je=r.z){const Se=(0,fe.H)(je,Je);return z(()=>Se)}},3997:(It,Fe,g)=>{g.d(Fe,{x:()=>te});var r=g(2737),c=g(9360),R=g(8251);function te(J,q=r.y){return J=J??Z,(0,c.e)((le,K)=>{let N,z=!0;le.subscribe((0,R.x)(K,fe=>{const Ve=q(fe);(z||!J(N,Ve))&&(z=!1,N=Ve,K.next(fe))}))})}function Z(J,q){return J===q}},2181:(It,Fe,g)=>{g.d(Fe,{h:()=>R});var r=g(9360),c=g(8251);function R(te,Z){return(0,r.e)((J,q)=>{let le=0;J.subscribe((0,c.x)(q,K=>te.call(Z,K,le++)&&q.next(K)))})}},4716:(It,Fe,g)=>{g.d(Fe,{x:()=>c});var r=g(9360);function c(R){return(0,r.e)((te,Z)=>{try{te.subscribe(Z)}finally{Z.add(R)}})}},1374:(It,Fe,g)=>{g.d(Fe,{P:()=>q});var r=g(6973),c=g(2181),R=g(8180),te=g(3572),Z=g(3026),J=g(2737);function q(le,K){const N=arguments.length>=2;return z=>z.pipe(le?(0,c.h)((fe,Ve)=>le(fe,Ve,z)):J.y,(0,R.q)(1),N?(0,te.d)(K):(0,Z.T)(()=>new r.K))}},7398:(It,Fe,g)=>{g.d(Fe,{U:()=>R});var r=g(9360),c=g(8251);function R(te,Z){return(0,r.e)((J,q)=>{let le=0;J.subscribe((0,c.x)(q,K=>{q.next(te.call(Z,K,le++))}))})}},975:(It,Fe,g)=>{g.d(Fe,{h:()=>c});var r=g(7398);function c(R){return(0,r.U)(()=>R)}},7537:(It,Fe,g)=>{g.d(Fe,{J:()=>R});var r=g(1631),c=g(2737);function R(te=1/0){return(0,r.z)(c.y,te)}},1631:(It,Fe,g)=>{g.d(Fe,{z:()=>le});var r=g(7398),c=g(4829),R=g(9360),te=g(7103),Z=g(8251),q=g(4674);function le(K,N,z=1/0){return(0,q.m)(N)?le((fe,Ve)=>(0,r.U)((je,Je)=>N(fe,je,Ve,Je))((0,c.Xf)(K(fe,Ve))),z):("number"==typeof N&&(z=N),(0,R.e)((fe,Ve)=>function J(K,N,z,fe,Ve,je,Je,Se){const Ue=[];let $e=0,Ke=0,lt=!1;const ee=()=>{lt&&!Ue.length&&!$e&&N.complete()},Ie=ve=>$e<fe?de(ve):Ue.push(ve),de=ve=>{je&&N.next(ve),$e++;let ze=!1;(0,c.Xf)(z(ve,Ke++)).subscribe((0,Z.x)(N,Te=>{Ve?.(Te),je?Ie(Te):N.next(Te)},()=>{ze=!0},void 0,()=>{if(ze)try{for($e--;Ue.length&&$e<fe;){const Te=Ue.shift();Je?(0,te.f)(N,Je,()=>de(Te)):de(Te)}ee()}catch(Te){N.error(Te)}}))};return K.subscribe((0,Z.x)(N,Ie,()=>{lt=!0,ee()})),()=>{Se?.()}}(fe,Ve,K,z)))}},3093:(It,Fe,g)=>{g.d(Fe,{Q:()=>te});var r=g(7103),c=g(9360),R=g(8251);function te(Z,J=0){return(0,c.e)((q,le)=>{q.subscribe((0,R.x)(le,K=>(0,r.f)(le,Z,()=>le.next(K),J),()=>(0,r.f)(le,Z,()=>le.complete(),J),K=>(0,r.f)(le,Z,()=>le.error(K),J)))})}},6196:(It,Fe,g)=>{g.d(Fe,{x:()=>R});var r=g(9360),c=g(8251);function R(){return(0,r.e)((te,Z)=>{let J=null;te._refCount++;const q=(0,c.x)(Z,void 0,void 0,void 0,()=>{if(!te||te._refCount<=0||0<--te._refCount)return void(J=null);const le=te._connection,K=J;J=null,le&&(!K||le===K)&&le.unsubscribe(),Z.unsubscribe()});te.subscribe(q),q.closed||(J=te.connect())})}},3020:(It,Fe,g)=>{g.d(Fe,{B:()=>Z});var r=g(4829),c=g(8645),R=g(305),te=g(9360);function Z(q={}){const{connector:le=(()=>new c.x),resetOnError:K=!0,resetOnComplete:N=!0,resetOnRefCountZero:z=!0}=q;return fe=>{let Ve,je,Je,Se=0,Ue=!1,$e=!1;const Ke=()=>{je?.unsubscribe(),je=void 0},lt=()=>{Ke(),Ve=Je=void 0,Ue=$e=!1},ee=()=>{const Ie=Ve;lt(),Ie?.unsubscribe()};return(0,te.e)((Ie,de)=>{Se++,!$e&&!Ue&&Ke();const ve=Je=Je??le();de.add(()=>{Se--,0===Se&&!$e&&!Ue&&(je=J(ee,z))}),ve.subscribe(de),!Ve&&Se>0&&(Ve=new R.Hp({next:ze=>ve.next(ze),error:ze=>{$e=!0,Ke(),je=J(lt,K,ze),ve.error(ze)},complete:()=>{Ue=!0,Ke(),je=J(lt,N),ve.complete()}}),(0,r.Xf)(Ie).subscribe(Ve))})(fe)}}function J(q,le,...K){if(!0===le)return void q();if(!1===le)return;const N=new R.Hp({next:()=>{N.unsubscribe(),q()}});return(0,r.Xf)(le(...K)).subscribe(N)}},7081:(It,Fe,g)=>{g.d(Fe,{d:()=>R});var r=g(7328),c=g(3020);function R(te,Z,J){let q,le=!1;return te&&"object"==typeof te?({bufferSize:q=1/0,windowTime:Z=1/0,refCount:le=!1,scheduler:J}=te):q=te??1/0,(0,c.B)({connector:()=>new r.t(q,Z,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:le})}},7921:(It,Fe,g)=>{g.d(Fe,{O:()=>te});var r=g(5211),c=g(9940),R=g(9360);function te(...Z){const J=(0,c.yG)(Z);return(0,R.e)((q,le)=>{(J?(0,r.z)(Z,q,J):(0,r.z)(Z,q)).subscribe(le)})}},5137:(It,Fe,g)=>{g.d(Fe,{R:()=>c});var r=g(9360);function c(R,te=0){return(0,r.e)((Z,J)=>{J.add(R.schedule(()=>Z.subscribe(J),te))})}},4664:(It,Fe,g)=>{g.d(Fe,{w:()=>te});var r=g(4829),c=g(9360),R=g(8251);function te(Z,J){return(0,c.e)((q,le)=>{let K=null,N=0,z=!1;const fe=()=>z&&!K&&le.complete();q.subscribe((0,R.x)(le,Ve=>{K?.unsubscribe();let je=0;const Je=N++;(0,r.Xf)(Z(Ve,Je)).subscribe(K=(0,R.x)(le,Se=>le.next(J?J(Ve,Se,Je,je++):Se),()=>{K=null,fe()}))},()=>{z=!0,fe()}))})}},8180:(It,Fe,g)=>{g.d(Fe,{q:()=>te});var r=g(6232),c=g(9360),R=g(8251);function te(Z){return Z<=0?()=>r.E:(0,c.e)((J,q)=>{let le=0;J.subscribe((0,R.x)(q,K=>{++le<=Z&&(q.next(K),Z<=le&&q.complete())}))})}},9773:(It,Fe,g)=>{g.d(Fe,{R:()=>Z});var r=g(9360),c=g(8251),R=g(4829),te=g(2420);function Z(J){return(0,r.e)((q,le)=>{(0,R.Xf)(J).subscribe((0,c.x)(le,()=>le.complete(),te.Z)),!le.closed&&q.subscribe(le)})}},9397:(It,Fe,g)=>{g.d(Fe,{b:()=>Z});var r=g(4674),c=g(9360),R=g(8251),te=g(2737);function Z(J,q,le){const K=(0,r.m)(J)||q||le?{next:J,error:q,complete:le}:J;return K?(0,c.e)((N,z)=>{var fe;null===(fe=K.subscribe)||void 0===fe||fe.call(K);let Ve=!0;N.subscribe((0,R.x)(z,je=>{var Je;null===(Je=K.next)||void 0===Je||Je.call(K,je),z.next(je)},()=>{var je;Ve=!1,null===(je=K.complete)||void 0===je||je.call(K),z.complete()},je=>{var Je;Ve=!1,null===(Je=K.error)||void 0===Je||Je.call(K,je),z.error(je)},()=>{var je,Je;Ve&&(null===(je=K.unsubscribe)||void 0===je||je.call(K)),null===(Je=K.finalize)||void 0===Je||Je.call(K)}))}):te.y}},3026:(It,Fe,g)=>{g.d(Fe,{T:()=>te});var r=g(6973),c=g(9360),R=g(8251);function te(J=Z){return(0,c.e)((q,le)=>{let K=!1;q.subscribe((0,R.x)(le,N=>{K=!0,le.next(N)},()=>K?le.complete():le.error(J())))})}function Z(){return new r.K}},1954:(It,Fe,g)=>{g.d(Fe,{o:()=>Z});var r=g(7394);class c extends r.w0{constructor(q,le){super()}schedule(q,le=0){return this}}const R={setInterval(J,q,...le){const{delegate:K}=R;return K?.setInterval?K.setInterval(J,q,...le):setInterval(J,q,...le)},clearInterval(J){const{delegate:q}=R;return(q?.clearInterval||clearInterval)(J)},delegate:void 0};var te=g(9039);class Z extends c{constructor(q,le){super(q,le),this.scheduler=q,this.work=le,this.pending=!1}schedule(q,le=0){var K;if(this.closed)return this;this.state=q;const N=this.id,z=this.scheduler;return null!=N&&(this.id=this.recycleAsyncId(z,N,le)),this.pending=!0,this.delay=le,this.id=null!==(K=this.id)&&void 0!==K?K:this.requestAsyncId(z,this.id,le),this}requestAsyncId(q,le,K=0){return R.setInterval(q.flush.bind(q,this),K)}recycleAsyncId(q,le,K=0){if(null!=K&&this.delay===K&&!1===this.pending)return le;null!=le&&R.clearInterval(le)}execute(q,le){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const K=this._execute(q,le);if(K)return K;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,le){let N,K=!1;try{this.work(q)}catch(z){K=!0,N=z||new Error("Scheduled action threw falsy error")}if(K)return this.unsubscribe(),N}unsubscribe(){if(!this.closed){const{id:q,scheduler:le}=this,{actions:K}=le;this.work=this.state=this.scheduler=null,this.pending=!1,(0,te.P)(K,this),null!=q&&(this.id=this.recycleAsyncId(le,q,null)),this.delay=null,super.unsubscribe()}}}},2631:(It,Fe,g)=>{g.d(Fe,{v:()=>R});var r=g(4552);class c{constructor(Z,J=c.now){this.schedulerActionCtor=Z,this.now=J}schedule(Z,J=0,q){return new this.schedulerActionCtor(this,Z).schedule(q,J)}}c.now=r.l.now;class R extends c{constructor(Z,J=c.now){super(Z,J),this.actions=[],this._active=!1}flush(Z){const{actions:J}=this;if(this._active)return void J.push(Z);let q;this._active=!0;do{if(q=Z.execute(Z.state,Z.delay))break}while(Z=J.shift());if(this._active=!1,q){for(;Z=J.shift();)Z.unsubscribe();throw q}}}},927:(It,Fe,g)=>{g.d(Fe,{Z:()=>q});var r=g(1954),c=g(7394);const R={schedule(K){let N=requestAnimationFrame,z=cancelAnimationFrame;const{delegate:fe}=R;fe&&(N=fe.requestAnimationFrame,z=fe.cancelAnimationFrame);const Ve=N(je=>{z=void 0,K(je)});return new c.w0(()=>z?.(Ve))},requestAnimationFrame(...K){const{delegate:N}=R;return(N?.requestAnimationFrame||requestAnimationFrame)(...K)},cancelAnimationFrame(...K){const{delegate:N}=R;return(N?.cancelAnimationFrame||cancelAnimationFrame)(...K)},delegate:void 0};var Z=g(2631);const q=new class J extends Z.v{flush(N){this._active=!0;const z=this._scheduled;this._scheduled=void 0;const{actions:fe}=this;let Ve;N=N||fe.shift();do{if(Ve=N.execute(N.state,N.delay))break}while((N=fe[0])&&N.id===z&&fe.shift());if(this._active=!1,Ve){for(;(N=fe[0])&&N.id===z&&fe.shift();)N.unsubscribe();throw Ve}}}(class te extends r.o{constructor(N,z){super(N,z),this.scheduler=N,this.work=z}requestAsyncId(N,z,fe=0){return null!==fe&&fe>0?super.requestAsyncId(N,z,fe):(N.actions.push(this),N._scheduled||(N._scheduled=R.requestAnimationFrame(()=>N.flush(void 0))))}recycleAsyncId(N,z,fe=0){var Ve;if(null!=fe?fe>0:this.delay>0)return super.recycleAsyncId(N,z,fe);const{actions:je}=N;null!=z&&(null===(Ve=je[je.length-1])||void 0===Ve?void 0:Ve.id)!==z&&(R.cancelAnimationFrame(z),N._scheduled=void 0)}})},6410:(It,Fe,g)=>{g.d(Fe,{E:()=>je});var r=g(1954);let R,c=1;const te={};function Z(Se){return Se in te&&(delete te[Se],!0)}const J={setImmediate(Se){const Ue=c++;return te[Ue]=!0,R||(R=Promise.resolve()),R.then(()=>Z(Ue)&&Se()),Ue},clearImmediate(Se){Z(Se)}},{setImmediate:le,clearImmediate:K}=J,N={setImmediate(...Se){const{delegate:Ue}=N;return(Ue?.setImmediate||le)(...Se)},clearImmediate(Se){const{delegate:Ue}=N;return(Ue?.clearImmediate||K)(Se)},delegate:void 0};var fe=g(2631);const je=new class Ve extends fe.v{flush(Ue){this._active=!0;const $e=this._scheduled;this._scheduled=void 0;const{actions:Ke}=this;let lt;Ue=Ue||Ke.shift();do{if(lt=Ue.execute(Ue.state,Ue.delay))break}while((Ue=Ke[0])&&Ue.id===$e&&Ke.shift());if(this._active=!1,lt){for(;(Ue=Ke[0])&&Ue.id===$e&&Ke.shift();)Ue.unsubscribe();throw lt}}}(class z extends r.o{constructor(Ue,$e){super(Ue,$e),this.scheduler=Ue,this.work=$e}requestAsyncId(Ue,$e,Ke=0){return null!==Ke&&Ke>0?super.requestAsyncId(Ue,$e,Ke):(Ue.actions.push(this),Ue._scheduled||(Ue._scheduled=N.setImmediate(Ue.flush.bind(Ue,void 0))))}recycleAsyncId(Ue,$e,Ke=0){var lt;if(null!=Ke?Ke>0:this.delay>0)return super.recycleAsyncId(Ue,$e,Ke);const{actions:ee}=Ue;null!=$e&&(null===(lt=ee[ee.length-1])||void 0===lt?void 0:lt.id)!==$e&&(N.clearImmediate($e),Ue._scheduled===$e&&(Ue._scheduled=void 0))}})},6321:(It,Fe,g)=>{g.d(Fe,{P:()=>te,z:()=>R});var r=g(1954);const R=new(g(2631).v)(r.o),te=R},4552:(It,Fe,g)=>{g.d(Fe,{l:()=>r});const r={now:()=>(r.delegate||Date).now(),delegate:void 0}},7599:(It,Fe,g)=>{g.d(Fe,{z:()=>r});const r={setTimeout(c,R,...te){const{delegate:Z}=r;return Z?.setTimeout?Z.setTimeout(c,R,...te):setTimeout(c,R,...te)},clearTimeout(c){const{delegate:R}=r;return(R?.clearTimeout||clearTimeout)(c)},delegate:void 0}},4971:(It,Fe,g)=>{g.d(Fe,{h:()=>c});const c=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(It,Fe,g)=>{g.d(Fe,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(It,Fe,g)=>{g.d(Fe,{K:()=>c});const c=(0,g(2306).d)(R=>function(){R(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(It,Fe,g)=>{g.d(Fe,{_6:()=>J,jO:()=>te,yG:()=>Z});var r=g(4674),c=g(671);function R(q){return q[q.length-1]}function te(q){return(0,r.m)(R(q))?q.pop():void 0}function Z(q){return(0,c.K)(R(q))?q.pop():void 0}function J(q,le){return"number"==typeof R(q)?q.pop():le}},7453:(It,Fe,g)=>{g.d(Fe,{D:()=>Z});const{isArray:r}=Array,{getPrototypeOf:c,prototype:R,keys:te}=Object;function Z(q){if(1===q.length){const le=q[0];if(r(le))return{args:le,keys:null};if(function J(q){return q&&"object"==typeof q&&c(q)===R}(le)){const K=te(le);return{args:K.map(N=>le[N]),keys:K}}}return{args:q,keys:null}}},9039:(It,Fe,g)=>{function r(c,R){if(c){const te=c.indexOf(R);0<=te&&c.splice(te,1)}}g.d(Fe,{P:()=>r})},2306:(It,Fe,g)=>{function r(c){const te=c(Z=>{Error.call(Z),Z.stack=(new Error).stack});return te.prototype=Object.create(Error.prototype),te.prototype.constructor=te,te}g.d(Fe,{d:()=>r})},2714:(It,Fe,g)=>{function r(c,R){return c.reduce((te,Z,J)=>(te[Z]=R[J],te),{})}g.d(Fe,{n:()=>r})},1441:(It,Fe,g)=>{g.d(Fe,{O:()=>te,x:()=>R});var r=g(2653);let c=null;function R(Z){if(r.config.useDeprecatedSynchronousErrorHandling){const J=!c;if(J&&(c={errorThrown:!1,error:null}),Z(),J){const{errorThrown:q,error:le}=c;if(c=null,q)throw le}}else Z()}function te(Z){r.config.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=Z)}},7103:(It,Fe,g)=>{function r(c,R,te,Z=0,J=!1){const q=R.schedule(function(){te(),J?c.add(this.schedule(null,Z)):this.unsubscribe()},Z);if(c.add(q),!J)return q}g.d(Fe,{f:()=>r})},2737:(It,Fe,g)=>{function r(c){return c}g.d(Fe,{y:()=>r})},4266:(It,Fe,g)=>{g.d(Fe,{z:()=>r});const r=c=>c&&"number"==typeof c.length&&"function"!=typeof c},5726:(It,Fe,g)=>{g.d(Fe,{D:()=>c});var r=g(4674);function c(R){return Symbol.asyncIterator&&(0,r.m)(R?.[Symbol.asyncIterator])}},93:(It,Fe,g)=>{function r(c){return c instanceof Date&&!isNaN(c)}g.d(Fe,{q:()=>r})},4674:(It,Fe,g)=>{function r(c){return"function"==typeof c}g.d(Fe,{m:()=>r})},8382:(It,Fe,g)=>{g.d(Fe,{c:()=>R});var r=g(4850),c=g(4674);function R(te){return(0,c.m)(te[r.L])}},3664:(It,Fe,g)=>{g.d(Fe,{T:()=>R});var r=g(4971),c=g(4674);function R(te){return(0,c.m)(te?.[r.h])}},4026:(It,Fe,g)=>{g.d(Fe,{t:()=>c});var r=g(4674);function c(R){return(0,r.m)(R?.then)}},541:(It,Fe,g)=>{g.d(Fe,{L:()=>te,Q:()=>R});var r=g(7582),c=g(4674);function R(Z){return(0,r.FC)(this,arguments,function*(){const q=Z.getReader();try{for(;;){const{value:le,done:K}=yield(0,r.qq)(q.read());if(K)return yield(0,r.qq)(void 0);yield yield(0,r.qq)(le)}}finally{q.releaseLock()}})}function te(Z){return(0,c.m)(Z?.getReader)}},671:(It,Fe,g)=>{g.d(Fe,{K:()=>c});var r=g(4674);function c(R){return R&&(0,r.m)(R.schedule)}},9360:(It,Fe,g)=>{g.d(Fe,{A:()=>c,e:()=>R});var r=g(4674);function c(te){return(0,r.m)(te?.lift)}function R(te){return Z=>{if(c(Z))return Z.lift(function(J){try{return te(J,this)}catch(q){this.error(q)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(It,Fe,g)=>{g.d(Fe,{Z:()=>te});var r=g(7398);const{isArray:c}=Array;function te(Z){return(0,r.U)(J=>function R(Z,J){return c(J)?Z(...J):Z(J)}(Z,J))}},2420:(It,Fe,g)=>{function r(){}g.d(Fe,{Z:()=>r})},8407:(It,Fe,g)=>{g.d(Fe,{U:()=>R,z:()=>c});var r=g(2737);function c(...te){return R(te)}function R(te){return 0===te.length?r.y:1===te.length?te[0]:function(J){return te.reduce((q,le)=>le(q),J)}}},3894:(It,Fe,g)=>{g.d(Fe,{h:()=>R});var r=g(2653),c=g(7599);function R(te){c.z.setTimeout(()=>{const{onUnhandledError:Z}=r.config;if(!Z)throw te;Z(te)})}},9853:(It,Fe,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(Fe,{z:()=>r})},6825:(It,Fe,g)=>{g.d(Fe,{F4:()=>N,IO:()=>Je,LC:()=>c,SB:()=>K,X$:()=>te,ZE:()=>$e,ZN:()=>Ue,_j:()=>r,eR:()=>z,jt:()=>Z,k1:()=>Ke,l3:()=>R,oB:()=>le,pV:()=>Ve,ru:()=>J,vP:()=>q});class r{}class c{}const R="*";function te(lt,ee){return{type:7,name:lt,definitions:ee,options:{}}}function Z(lt,ee=null){return{type:4,styles:ee,timings:lt}}function J(lt,ee=null){return{type:3,steps:lt,options:ee}}function q(lt,ee=null){return{type:2,steps:lt,options:ee}}function le(lt){return{type:6,styles:lt,offset:null}}function K(lt,ee,Ie){return{type:0,name:lt,styles:ee,options:Ie}}function N(lt){return{type:5,steps:lt}}function z(lt,ee,Ie=null){return{type:1,expr:lt,animation:ee,options:Ie}}function Ve(lt=null){return{type:9,options:lt}}function Je(lt,ee,Ie=null){return{type:11,selector:lt,animation:ee,options:Ie}}class Ue{constructor(ee=0,Ie=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=ee+Ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}onStart(ee){this._originalOnStartFns.push(ee),this._onStartFns.push(ee)}onDone(ee){this._originalOnDoneFns.push(ee),this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ee=>ee()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(ee){this._position=this.totalTime?ee*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ee){const Ie="start"==ee?this._onStartFns:this._onDoneFns;Ie.forEach(de=>de()),Ie.length=0}}class $e{constructor(ee){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ee;let Ie=0,de=0,ve=0;const ze=this.players.length;0==ze?queueMicrotask(()=>this._onFinish()):this.players.forEach(Te=>{Te.onDone(()=>{++Ie==ze&&this._onFinish()}),Te.onDestroy(()=>{++de==ze&&this._onDestroy()}),Te.onStart(()=>{++ve==ze&&this._onStart()})}),this.totalTime=this.players.reduce((Te,ct)=>Math.max(Te,ct.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ee=>ee()),this._onDoneFns=[])}init(){this.players.forEach(ee=>ee.init())}onStart(ee){this._onStartFns.push(ee)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ee=>ee()),this._onStartFns=[])}onDone(ee){this._onDoneFns.push(ee)}onDestroy(ee){this._onDestroyFns.push(ee)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ee=>ee.play())}pause(){this.players.forEach(ee=>ee.pause())}restart(){this.players.forEach(ee=>ee.restart())}finish(){this._onFinish(),this.players.forEach(ee=>ee.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ee=>ee.destroy()),this._onDestroyFns.forEach(ee=>ee()),this._onDestroyFns=[])}reset(){this.players.forEach(ee=>ee.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ee){const Ie=ee*this.totalTime;this.players.forEach(de=>{const ve=de.totalTime?Math.min(1,Ie/de.totalTime):1;de.setPosition(ve)})}getPosition(){const ee=this.players.reduce((Ie,de)=>null===Ie||de.totalTime>Ie.totalTime?de:Ie,null);return null!=ee?ee.getPosition():0}beforeDestroy(){this.players.forEach(ee=>{ee.beforeDestroy&&ee.beforeDestroy()})}triggerCallback(ee){const Ie="start"==ee?this._onStartFns:this._onDoneFns;Ie.forEach(de=>de()),Ie.length=0}}const Ke="!"},3745:(It,Fe,g)=>{g.d(Fe,{rt:()=>E,s1:()=>Nt,tE:()=>re,qV:()=>qe,qm:()=>se,ic:()=>Cn,X6:()=>tn,yG:()=>En});var r=g(6814),c=g(5879),R=g(8748),te=g(8645),Z=g(7394),J=g(5619),q=g(2096),le=g(4880),K=g(9397),N=g(3620),z=g(2181),fe=g(7398),Ve=g(8180);function je(P){return(0,z.h)((B,V)=>P<=V)}var Je=g(3997),Se=g(9773),Ue=g(1417);let $e=(()=>{class P{create(V){return typeof MutationObserver>"u"?null:new MutationObserver(V)}}return P.\u0275fac=function(V){return new(V||P)},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),ee=(()=>{class P{}return P.\u0275fac=function(V){return new(V||P)},P.\u0275mod=c.oAB({type:P}),P.\u0275inj=c.cJS({providers:[$e]}),P})();var Ie=g(2572),de=g(5211),ve=g(5592),ze=g(7921);const ct=new Set;let Et,Bt=(()=>{class P{constructor(V){this._platform=V,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):un}matchMedia(V){return(this._platform.WEBKIT||this._platform.BLINK)&&function Jt(P){if(!ct.has(P))try{Et||(Et=document.createElement("style"),Et.setAttribute("type","text/css"),document.head.appendChild(Et)),Et.sheet&&(Et.sheet.insertRule(`@media ${P} {body{ }}`,0),ct.add(P))}catch(B){console.error(B)}}(V),this._matchMedia(V)}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(R.t4))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();function un(P){return{matches:"all"===P||""===P,media:P,addListener:()=>{},removeListener:()=>{}}}let on=(()=>{class P{constructor(V,k){this._mediaMatcher=V,this._zone=k,this._queries=new Map,this._destroySubject=new te.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(V){return mn((0,Ue.Eq)(V)).some(L=>this._registerQuery(L).mql.matches)}observe(V){const L=mn((0,Ue.Eq)(V)).map(Le=>this._registerQuery(Le).observable);let Ae=(0,Ie.a)(L);return Ae=(0,de.z)(Ae.pipe((0,Ve.q)(1)),Ae.pipe(je(1),(0,N.b)(0))),Ae.pipe((0,fe.U)(Le=>{const Ct={matches:!1,breakpoints:{}};return Le.forEach(({matches:Dt,query:Qe})=>{Ct.matches=Ct.matches||Dt,Ct.breakpoints[Qe]=Dt}),Ct}))}_registerQuery(V){if(this._queries.has(V))return this._queries.get(V);const k=this._mediaMatcher.matchMedia(V),Ae={observable:new ve.y(Le=>{const Ct=Dt=>this._zone.run(()=>Le.next(Dt));return k.addListener(Ct),()=>{k.removeListener(Ct)}}).pipe((0,ze.O)(k),(0,fe.U)(({matches:Le})=>({query:V,matches:Le})),(0,Se.R)(this._destroySubject)),mql:k};return this._queries.set(V,Ae),Ae}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(Bt),c.LFG(c.R0b))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();function mn(P){return P.map(B=>B.split(",")).reduce((B,V)=>B.concat(V)).map(B=>B.trim())}class Ht{constructor(B){this._items=B,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new te.x,this._typeaheadSubscription=Z.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=V=>V.disabled,this._pressedLetters=[],this.tabOut=new te.x,this.change=new te.x,B instanceof c.n_E&&(this._itemChangesSubscription=B.changes.subscribe(V=>{if(this._activeItem){const L=V.toArray().indexOf(this._activeItem);L>-1&&L!==this._activeItemIndex&&(this._activeItemIndex=L)}}))}skipPredicate(B){return this._skipPredicateFn=B,this}withWrap(B=!0){return this._wrap=B,this}withVerticalOrientation(B=!0){return this._vertical=B,this}withHorizontalOrientation(B){return this._horizontal=B,this}withAllowedModifierKeys(B){return this._allowedModifierKeys=B,this}withTypeAhead(B=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,K.b)(V=>this._pressedLetters.push(V)),(0,N.b)(B),(0,z.h)(()=>this._pressedLetters.length>0),(0,fe.U)(()=>this._pressedLetters.join(""))).subscribe(V=>{const k=this._getItemsArray();for(let L=1;L<k.length+1;L++){const Ae=(this._activeItemIndex+L)%k.length,Le=k[Ae];if(!this._skipPredicateFn(Le)&&0===Le.getLabel().toUpperCase().trim().indexOf(V)){this.setActiveItem(Ae);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(B=!0){return this._homeAndEnd=B,this}withPageUpDown(B=!0,V=10){return this._pageUpAndDown={enabled:B,delta:V},this}setActiveItem(B){const V=this._activeItem;this.updateActiveItem(B),this._activeItem!==V&&this.change.next(this._activeItemIndex)}onKeydown(B){const V=B.keyCode,L=["altKey","ctrlKey","metaKey","shiftKey"].every(Ae=>!B[Ae]||this._allowedModifierKeys.indexOf(Ae)>-1);switch(V){case le.Mf:return void this.tabOut.next();case le.JH:if(this._vertical&&L){this.setNextItemActive();break}return;case le.LH:if(this._vertical&&L){this.setPreviousItemActive();break}return;case le.SV:if(this._horizontal&&L){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case le.oh:if(this._horizontal&&L){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case le.Sd:if(this._homeAndEnd&&L){this.setFirstItemActive();break}return;case le.uR:if(this._homeAndEnd&&L){this.setLastItemActive();break}return;case le.Ku:if(this._pageUpAndDown.enabled&&L){const Ae=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Ae>0?Ae:0,1);break}return;case le.VM:if(this._pageUpAndDown.enabled&&L){const Ae=this._activeItemIndex+this._pageUpAndDown.delta,Le=this._getItemsArray().length;this._setActiveItemByIndex(Ae<Le?Ae:Le-1,-1);break}return;default:return void((L||(0,le.Vb)(B,"shiftKey"))&&(B.key&&1===B.key.length?this._letterKeyStream.next(B.key.toLocaleUpperCase()):(V>=le.A&&V<=le.Z||V>=le.xE&&V<=le.aO)&&this._letterKeyStream.next(String.fromCharCode(V))))}this._pressedLetters=[],B.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(B){const V=this._getItemsArray(),k="number"==typeof B?B:V.indexOf(B);this._activeItem=V[k]??null,this._activeItemIndex=k}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(B){this._wrap?this._setActiveInWrapMode(B):this._setActiveInDefaultMode(B)}_setActiveInWrapMode(B){const V=this._getItemsArray();for(let k=1;k<=V.length;k++){const L=(this._activeItemIndex+B*k+V.length)%V.length;if(!this._skipPredicateFn(V[L]))return void this.setActiveItem(L)}}_setActiveInDefaultMode(B){this._setActiveItemByIndex(this._activeItemIndex+B,B)}_setActiveItemByIndex(B,V){const k=this._getItemsArray();if(k[B]){for(;this._skipPredicateFn(k[B]);)if(!k[B+=V])return;this.setActiveItem(B)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class Nt extends Ht{setActiveItem(B){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(B),this.activeItem&&this.activeItem.setActiveStyles()}}let Cn=(()=>{class P{constructor(V){this._platform=V}isDisabled(V){return V.hasAttribute("disabled")}isVisible(V){return function In(P){return!!(P.offsetWidth||P.offsetHeight||"function"==typeof P.getClientRects&&P.getClientRects().length)}(V)&&"visible"===getComputedStyle(V).visibility}isTabbable(V){if(!this._platform.isBrowser)return!1;const k=function nn(P){try{return P.frameElement}catch{return null}}(function Zt(P){return P.ownerDocument&&P.ownerDocument.defaultView||window}(V));if(k&&(-1===it(k)||!this.isVisible(k)))return!1;let L=V.nodeName.toLowerCase(),Ae=it(V);return V.hasAttribute("contenteditable")?-1!==Ae:!("iframe"===L||"object"===L||this._platform.WEBKIT&&this._platform.IOS&&!function mt(P){let B=P.nodeName.toLowerCase(),V="input"===B&&P.type;return"text"===V||"password"===V||"select"===B||"textarea"===B}(V))&&("audio"===L?!!V.hasAttribute("controls")&&-1!==Ae:"video"===L?-1!==Ae&&(null!==Ae||this._platform.FIREFOX||V.hasAttribute("controls")):V.tabIndex>=0)}isFocusable(V,k){return function xt(P){return!function pt(P){return function be(P){return"input"==P.nodeName.toLowerCase()}(P)&&"hidden"==P.type}(P)&&(function Wn(P){let B=P.nodeName.toLowerCase();return"input"===B||"select"===B||"button"===B||"textarea"===B}(P)||function $(P){return function ke(P){return"a"==P.nodeName.toLowerCase()}(P)&&P.hasAttribute("href")}(P)||P.hasAttribute("contenteditable")||ut(P))}(V)&&!this.isDisabled(V)&&(k?.ignoreVisibility||this.isVisible(V))}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(R.t4))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();function ut(P){if(!P.hasAttribute("tabindex")||void 0===P.tabIndex)return!1;let B=P.getAttribute("tabindex");return!(!B||isNaN(parseInt(B,10)))}function it(P){if(!ut(P))return null;const B=parseInt(P.getAttribute("tabindex")||"",10);return isNaN(B)?-1:B}class $t{get enabled(){return this._enabled}set enabled(B){this._enabled=B,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(B,this._startAnchor),this._toggleAnchorTabIndex(B,this._endAnchor))}constructor(B,V,k,L,Ae=!1){this._element=B,this._checker=V,this._ngZone=k,this._document=L,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ae||this.attachAnchors()}destroy(){const B=this._startAnchor,V=this._endAnchor;B&&(B.removeEventListener("focus",this.startAnchorListener),B.remove()),V&&(V.removeEventListener("focus",this.endAnchorListener),V.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(B){return new Promise(V=>{this._executeOnStable(()=>V(this.focusInitialElement(B)))})}focusFirstTabbableElementWhenReady(B){return new Promise(V=>{this._executeOnStable(()=>V(this.focusFirstTabbableElement(B)))})}focusLastTabbableElementWhenReady(B){return new Promise(V=>{this._executeOnStable(()=>V(this.focusLastTabbableElement(B)))})}_getRegionBoundary(B){const V=this._element.querySelectorAll(`[cdk-focus-region-${B}], [cdkFocusRegion${B}], [cdk-focus-${B}]`);return"start"==B?V.length?V[0]:this._getFirstTabbableElement(this._element):V.length?V[V.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(B){const V=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(V){if(!this._checker.isFocusable(V)){const k=this._getFirstTabbableElement(V);return k?.focus(B),!!k}return V.focus(B),!0}return this.focusFirstTabbableElement(B)}focusFirstTabbableElement(B){const V=this._getRegionBoundary("start");return V&&V.focus(B),!!V}focusLastTabbableElement(B){const V=this._getRegionBoundary("end");return V&&V.focus(B),!!V}hasAttached(){return this._hasAttached}_getFirstTabbableElement(B){if(this._checker.isFocusable(B)&&this._checker.isTabbable(B))return B;const V=B.children;for(let k=0;k<V.length;k++){const L=V[k].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(V[k]):null;if(L)return L}return null}_getLastTabbableElement(B){if(this._checker.isFocusable(B)&&this._checker.isTabbable(B))return B;const V=B.children;for(let k=V.length-1;k>=0;k--){const L=V[k].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(V[k]):null;if(L)return L}return null}_createAnchor(){const B=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,B),B.classList.add("cdk-visually-hidden"),B.classList.add("cdk-focus-trap-anchor"),B.setAttribute("aria-hidden","true"),B}_toggleAnchorTabIndex(B,V){B?V.setAttribute("tabindex","0"):V.removeAttribute("tabindex")}toggleAnchors(B){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(B,this._startAnchor),this._toggleAnchorTabIndex(B,this._endAnchor))}_executeOnStable(B){this._ngZone.isStable?B():this._ngZone.onStable.pipe((0,Ve.q)(1)).subscribe(B)}}let qe=(()=>{class P{constructor(V,k,L){this._checker=V,this._ngZone=k,this._document=L}create(V,k=!1){return new $t(V,this._checker,this._ngZone,this._document,k)}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(Cn),c.LFG(c.R0b),c.LFG(r.K0))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();function tn(P){return 0===P.buttons||0===P.offsetX&&0===P.offsetY}function En(P){const B=P.touches&&P.touches[0]||P.changedTouches&&P.changedTouches[0];return!(!B||-1!==B.identifier||null!=B.radiusX&&1!==B.radiusX||null!=B.radiusY&&1!==B.radiusY)}const jn=new c.OlP("cdk-input-modality-detector-options"),Vn={ignoreKeys:[le.zL,le.jx,le.b2,le.MW,le.JU]},Ge=(0,R.i$)({passive:!0,capture:!0});let ie=(()=>{class P{get mostRecentModality(){return this._modality.value}constructor(V,k,L,Ae){this._platform=V,this._mostRecentTarget=null,this._modality=new J.X(null),this._lastTouchMs=0,this._onKeydown=Le=>{this._options?.ignoreKeys?.some(Ct=>Ct===Le.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,R.sA)(Le))},this._onMousedown=Le=>{Date.now()-this._lastTouchMs<650||(this._modality.next(tn(Le)?"keyboard":"mouse"),this._mostRecentTarget=(0,R.sA)(Le))},this._onTouchstart=Le=>{En(Le)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,R.sA)(Le))},this._options={...Vn,...Ae},this.modalityDetected=this._modality.pipe(je(1)),this.modalityChanged=this.modalityDetected.pipe((0,Je.x)()),V.isBrowser&&k.runOutsideAngular(()=>{L.addEventListener("keydown",this._onKeydown,Ge),L.addEventListener("mousedown",this._onMousedown,Ge),L.addEventListener("touchstart",this._onTouchstart,Ge)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ge),document.removeEventListener("mousedown",this._onMousedown,Ge),document.removeEventListener("touchstart",this._onTouchstart,Ge))}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(R.t4),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(jn,8))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const G=new c.OlP("cdk-focus-monitor-default-options"),X=(0,R.i$)({passive:!0,capture:!0});let re=(()=>{class P{constructor(V,k,L,Ae,Le){this._ngZone=V,this._platform=k,this._inputModalityDetector=L,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 te.x,this._rootNodeFocusAndBlurListener=Ct=>{for(let Qe=(0,R.sA)(Ct);Qe;Qe=Qe.parentElement)"focus"===Ct.type?this._onFocus(Ct,Qe):this._onBlur(Ct,Qe)},this._document=Ae,this._detectionMode=Le?.detectionMode||0}monitor(V,k=!1){const L=(0,Ue.fI)(V);if(!this._platform.isBrowser||1!==L.nodeType)return(0,q.of)(null);const Ae=(0,R.kV)(L)||this._getDocument(),Le=this._elementInfo.get(L);if(Le)return k&&(Le.checkChildren=!0),Le.subject;const Ct={checkChildren:k,subject:new te.x,rootNode:Ae};return this._elementInfo.set(L,Ct),this._registerGlobalListeners(Ct),Ct.subject}stopMonitoring(V){const k=(0,Ue.fI)(V),L=this._elementInfo.get(k);L&&(L.subject.complete(),this._setClasses(k),this._elementInfo.delete(k),this._removeGlobalListeners(L))}focusVia(V,k,L){const Ae=(0,Ue.fI)(V);Ae===this._getDocument().activeElement?this._getClosestElementsInfo(Ae).forEach(([Ct,Dt])=>this._originChanged(Ct,k,Dt)):(this._setOrigin(k),"function"==typeof Ae.focus&&Ae.focus(L))}ngOnDestroy(){this._elementInfo.forEach((V,k)=>this.stopMonitoring(k))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(V){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(V)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:V&&this._isLastInteractionFromInputLabel(V)?"mouse":"program"}_shouldBeAttributedToTouch(V){return 1===this._detectionMode||!!V?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(V,k){V.classList.toggle("cdk-focused",!!k),V.classList.toggle("cdk-touch-focused","touch"===k),V.classList.toggle("cdk-keyboard-focused","keyboard"===k),V.classList.toggle("cdk-mouse-focused","mouse"===k),V.classList.toggle("cdk-program-focused","program"===k)}_setOrigin(V,k=!1){this._ngZone.runOutsideAngular(()=>{this._origin=V,this._originFromTouchInteraction="touch"===V&&k,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(V,k){const L=this._elementInfo.get(k),Ae=(0,R.sA)(V);!L||!L.checkChildren&&k!==Ae||this._originChanged(k,this._getFocusOrigin(Ae),L)}_onBlur(V,k){const L=this._elementInfo.get(k);!L||L.checkChildren&&V.relatedTarget instanceof Node&&k.contains(V.relatedTarget)||(this._setClasses(k),this._emitOrigin(L,null))}_emitOrigin(V,k){V.subject.observers.length&&this._ngZone.run(()=>V.subject.next(k))}_registerGlobalListeners(V){if(!this._platform.isBrowser)return;const k=V.rootNode,L=this._rootNodeFocusListenerCount.get(k)||0;L||this._ngZone.runOutsideAngular(()=>{k.addEventListener("focus",this._rootNodeFocusAndBlurListener,X),k.addEventListener("blur",this._rootNodeFocusAndBlurListener,X)}),this._rootNodeFocusListenerCount.set(k,L+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Se.R)(this._stopInputModalityDetector)).subscribe(Ae=>{this._setOrigin(Ae,!0)}))}_removeGlobalListeners(V){const k=V.rootNode;if(this._rootNodeFocusListenerCount.has(k)){const L=this._rootNodeFocusListenerCount.get(k);L>1?this._rootNodeFocusListenerCount.set(k,L-1):(k.removeEventListener("focus",this._rootNodeFocusAndBlurListener,X),k.removeEventListener("blur",this._rootNodeFocusAndBlurListener,X),this._rootNodeFocusListenerCount.delete(k))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(V,k,L){this._setClasses(V,k),this._emitOrigin(L,k),this._lastFocusOrigin=k}_getClosestElementsInfo(V){const k=[];return this._elementInfo.forEach((L,Ae)=>{(Ae===V||L.checkChildren&&Ae.contains(V))&&k.push([Ae,L])}),k}_isLastInteractionFromInputLabel(V){const{_mostRecentTarget:k,mostRecentModality:L}=this._inputModalityDetector;if("mouse"!==L||!k||k===V||"INPUT"!==V.nodeName&&"TEXTAREA"!==V.nodeName||V.disabled)return!1;const Ae=V.labels;if(Ae)for(let Le=0;Le<Ae.length;Le++)if(Ae[Le].contains(k))return!0;return!1}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(c.R0b),c.LFG(R.t4),c.LFG(ie),c.LFG(r.K0,8),c.LFG(G,8))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const Be="cdk-high-contrast-black-on-white",_t="cdk-high-contrast-white-on-black",W="cdk-high-contrast-active";let se=(()=>{class P{constructor(V,k){this._platform=V,this._document=k,this._breakpointSubscription=(0,c.f3M)(on).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const V=this._document.createElement("div");V.style.backgroundColor="rgb(1,2,3)",V.style.position="absolute",this._document.body.appendChild(V);const k=this._document.defaultView||window,L=k&&k.getComputedStyle?k.getComputedStyle(V):null,Ae=(L&&L.backgroundColor||"").replace(/ /g,"");switch(V.remove(),Ae){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 V=this._document.body.classList;V.remove(W,Be,_t),this._hasCheckedHighContrastMode=!0;const k=this.getHighContrastMode();1===k?V.add(W,Be):2===k&&V.add(W,_t)}}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(R.t4),c.LFG(r.K0))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),E=(()=>{class P{constructor(V){V._applyBodyHighContrastModeCssClasses()}}return P.\u0275fac=function(V){return new(V||P)(c.LFG(se))},P.\u0275mod=c.oAB({type:P}),P.\u0275inj=c.cJS({imports:[ee]}),P})()},5114:(It,Fe,g)=>{g.d(Fe,{Is:()=>q,vT:()=>K});var r=g(5879),c=g(6814);const R=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function te(){return(0,r.f3M)(c.K0)}}),Z=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let q=(()=>{class N{constructor(fe){this.value="ltr",this.change=new r.vpe,fe&&(this.value=function J(N){const z=N?.toLowerCase()||"";return"auto"===z&&typeof navigator<"u"&&navigator?.language?Z.test(navigator.language)?"rtl":"ltr":"rtl"===z?"rtl":"ltr"}((fe.body?fe.body.dir:null)||(fe.documentElement?fe.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return N.\u0275fac=function(fe){return new(fe||N)(r.LFG(R,8))},N.\u0275prov=r.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),K=(()=>{class N{}return N.\u0275fac=function(fe){return new(fe||N)},N.\u0275mod=r.oAB({type:N}),N.\u0275inj=r.cJS({}),N})()},1417:(It,Fe,g)=>{g.d(Fe,{Eq:()=>Z,HM:()=>J,Ig:()=>c,du:()=>le,fI:()=>q,su:()=>R});var r=g(5879);function c(K){return null!=K&&"false"!=`${K}`}function R(K,N=0){return function te(K){return!isNaN(parseFloat(K))&&!isNaN(Number(K))}(K)?Number(K):N}function Z(K){return Array.isArray(K)?K:[K]}function J(K){return null==K?"":"string"==typeof K?K:`${K}px`}function q(K){return K instanceof r.SBq?K.nativeElement:K}function le(K,N=/\s+/){const z=[];if(null!=K){const fe=Array.isArray(K)?K:`${K}`.split(N);for(const Ve of fe){const je=`${Ve}`.trim();je&&z.push(je)}}return z}},4880:(It,Fe,g)=>{g.d(Fe,{A:()=>ae,JH:()=>lt,JU:()=>J,K5:()=>Z,Ku:()=>Ve,LH:()=>$e,L_:()=>fe,MW:()=>dt,Mf:()=>R,SV:()=>Ke,Sd:()=>Se,VM:()=>je,Vb:()=>Ji,Z:()=>qe,aO:()=>Nn,b2:()=>Oi,hY:()=>z,jx:()=>q,oh:()=>Ue,uR:()=>Je,xE:()=>ze,zL:()=>le});const R=9,Z=13,J=16,q=17,le=18,z=27,fe=32,Ve=33,je=34,Je=35,Se=36,Ue=37,$e=38,Ke=39,lt=40,ze=48,Nn=57,ae=65,qe=90,dt=91,Oi=224;function Ji(er,...si){return si.length?si.some(Li=>er[Li]):er.altKey||er.shiftKey||er.ctrlKey||er.metaKey}},3952:(It,Fe,g)=>{g.d(Fe,{Iu:()=>on,U8:()=>In,X_:()=>Ie,Xj:()=>un,aV:()=>At});var r=g(7259),c=g(6814),R=g(5879),te=g(1417),Z=g(8748),J=g(5114),q=g(8549),le=g(8645),K=g(7394),N=g(3019),z=g(8180),fe=g(9773);const Ve=(0,Z.Mq)();class je{constructor($,be){this._viewportRuler=$,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=be}attach(){}enable(){if(this._canBeEnabled()){const $=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=$.style.left||"",this._previousHTMLStyles.top=$.style.top||"",$.style.left=(0,te.HM)(-this._previousScrollPosition.left),$.style.top=(0,te.HM)(-this._previousScrollPosition.top),$.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const $=this._document.documentElement,ke=$.style,ut=this._document.body.style,it=ke.scrollBehavior||"",mt=ut.scrollBehavior||"";this._isEnabled=!1,ke.left=this._previousHTMLStyles.left,ke.top=this._previousHTMLStyles.top,$.classList.remove("cdk-global-scrollblock"),Ve&&(ke.scrollBehavior=ut.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ve&&(ke.scrollBehavior=it,ut.scrollBehavior=mt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const be=this._document.body,ke=this._viewportRuler.getViewportSize();return be.scrollHeight>ke.height||be.scrollWidth>ke.width}}class Se{constructor($,be,ke,ut){this._scrollDispatcher=$,this._ngZone=be,this._viewportRuler=ke,this._config=ut,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach($){this._overlayRef=$}enable(){if(this._scrollSubscription)return;const $=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=$.subscribe(()=>{const be=this._viewportRuler.getViewportScrollPosition().top;Math.abs(be-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=$.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ue{enable(){}disable(){}attach(){}}function $e(pt,$){return $.some(be=>pt.bottom<be.top||pt.top>be.bottom||pt.right<be.left||pt.left>be.right)}function Ke(pt,$){return $.some(be=>pt.top<be.top||pt.bottom>be.bottom||pt.left<be.left||pt.right>be.right)}class lt{constructor($,be,ke,ut){this._scrollDispatcher=$,this._viewportRuler=be,this._ngZone=ke,this._config=ut,this._scrollSubscription=null}attach($){this._overlayRef=$}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 be=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ke,height:ut}=this._viewportRuler.getViewportSize();$e(be,[{width:ke,height:ut,bottom:ut,right:ke,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 ee=(()=>{class pt{constructor(be,ke,ut,it){this._scrollDispatcher=be,this._viewportRuler=ke,this._ngZone=ut,this.noop=()=>new Ue,this.close=mt=>new Se(this._scrollDispatcher,this._ngZone,this._viewportRuler,mt),this.block=()=>new je(this._viewportRuler,this._document),this.reposition=mt=>new lt(this._scrollDispatcher,this._viewportRuler,this._ngZone,mt),this._document=it}}return pt.\u0275fac=function(be){return new(be||pt)(R.LFG(r.mF),R.LFG(r.rL),R.LFG(R.R0b),R.LFG(c.K0))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();class Ie{constructor($){if(this.scrollStrategy=new Ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,$){const be=Object.keys($);for(const ke of be)void 0!==$[ke]&&(this[ke]=$[ke])}}}class ze{constructor($,be){this.connectionPair=$,this.scrollableViewProperties=be}}let Et=(()=>{class pt{constructor(be){this._attachedOverlays=[],this._document=be}ngOnDestroy(){this.detach()}add(be){this.remove(be),this._attachedOverlays.push(be)}remove(be){const ke=this._attachedOverlays.indexOf(be);ke>-1&&this._attachedOverlays.splice(ke,1),0===this._attachedOverlays.length&&this.detach()}}return pt.\u0275fac=function(be){return new(be||pt)(R.LFG(c.K0))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})(),Bt=(()=>{class pt extends Et{constructor(be,ke){super(be),this._ngZone=ke,this._keydownListener=ut=>{const it=this._attachedOverlays;for(let mt=it.length-1;mt>-1;mt--)if(it[mt]._keydownEvents.observers.length>0){const xt=it[mt]._keydownEvents;this._ngZone?this._ngZone.run(()=>xt.next(ut)):xt.next(ut);break}}}add(be){super.add(be),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 pt.\u0275fac=function(be){return new(be||pt)(R.LFG(c.K0),R.LFG(R.R0b,8))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})(),Jt=(()=>{class pt extends Et{constructor(be,ke,ut){super(be),this._platform=ke,this._ngZone=ut,this._cursorStyleIsSet=!1,this._pointerDownListener=it=>{this._pointerDownEventTarget=(0,Z.sA)(it)},this._clickListener=it=>{const mt=(0,Z.sA)(it),xt="click"===it.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:mt;this._pointerDownEventTarget=null;const Zt=this._attachedOverlays.slice();for(let $t=Zt.length-1;$t>-1;$t--){const qe=Zt[$t];if(qe._outsidePointerEvents.observers.length<1||!qe.hasAttached())continue;if(qe.overlayElement.contains(mt)||qe.overlayElement.contains(xt))break;const dt=qe._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>dt.next(it)):dt.next(it)}}}add(be){if(super.add(be),!this._isAttached){const ke=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(ke)):this._addEventListeners(ke),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ke.style.cursor,ke.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const be=this._document.body;be.removeEventListener("pointerdown",this._pointerDownListener,!0),be.removeEventListener("click",this._clickListener,!0),be.removeEventListener("auxclick",this._clickListener,!0),be.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(be.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(be){be.addEventListener("pointerdown",this._pointerDownListener,!0),be.addEventListener("click",this._clickListener,!0),be.addEventListener("auxclick",this._clickListener,!0),be.addEventListener("contextmenu",this._clickListener,!0)}}return pt.\u0275fac=function(be){return new(be||pt)(R.LFG(c.K0),R.LFG(Z.t4),R.LFG(R.R0b,8))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})(),un=(()=>{class pt{constructor(be,ke){this._platform=ke,this._document=be}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const be="cdk-overlay-container";if(this._platform.isBrowser||(0,Z.Oy)()){const ut=this._document.querySelectorAll(`.${be}[platform="server"], .${be}[platform="test"]`);for(let it=0;it<ut.length;it++)ut[it].remove()}const ke=this._document.createElement("div");ke.classList.add(be),(0,Z.Oy)()?ke.setAttribute("platform","test"):this._platform.isBrowser||ke.setAttribute("platform","server"),this._document.body.appendChild(ke),this._containerElement=ke}}return pt.\u0275fac=function(be){return new(be||pt)(R.LFG(c.K0),R.LFG(Z.t4))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();class on{constructor($,be,ke,ut,it,mt,xt,Zt,$t,qe=!1){this._portalOutlet=$,this._host=be,this._pane=ke,this._config=ut,this._ngZone=it,this._keyboardDispatcher=mt,this._document=xt,this._location=Zt,this._outsideClickDispatcher=$t,this._animationsDisabled=qe,this._backdropElement=null,this._backdropClick=new le.x,this._attachments=new le.x,this._detachments=new le.x,this._locationChanges=K.w0.EMPTY,this._backdropClickHandler=dt=>this._backdropClick.next(dt),this._backdropTransitionendHandler=dt=>{this._disposeBackdrop(dt.target)},this._keydownEvents=new le.x,this._outsidePointerEvents=new le.x,ut.scrollStrategy&&(this._scrollStrategy=ut.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ut.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach($){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const be=this._portalOutlet.attach($);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,z.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 be?.onDestroy&&be.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),be}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const $=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),$}dispose(){const $=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,$&&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($){$!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=$,this.hasAttached()&&($.attach(this),this.updatePosition()))}updateSize($){this._config={...this._config,...$},this._updateElementSize()}setDirection($){this._config={...this._config,direction:$},this._updateElementDirection()}addPanelClass($){this._pane&&this._toggleClasses(this._pane,$,!0)}removePanelClass($){this._pane&&this._toggleClasses(this._pane,$,!1)}getDirection(){const $=this._config.direction;return $?"string"==typeof $?$:$.value:"ltr"}updateScrollStrategy($){$!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=$,this.hasAttached()&&($.attach(this),$.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const $=this._pane.style;$.width=(0,te.HM)(this._config.width),$.height=(0,te.HM)(this._config.height),$.minWidth=(0,te.HM)(this._config.minWidth),$.minHeight=(0,te.HM)(this._config.minHeight),$.maxWidth=(0,te.HM)(this._config.maxWidth),$.maxHeight=(0,te.HM)(this._config.maxHeight)}_togglePointerEvents($){this._pane.style.pointerEvents=$?"":"none"}_attachBackdrop(){const $="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($)})}):this._backdropElement.classList.add($)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const $=this._backdropElement;if($){if(this._animationsDisabled)return void this._disposeBackdrop($);$.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{$.addEventListener("transitionend",this._backdropTransitionendHandler)}),$.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop($)},500))}}_toggleClasses($,be,ke){const ut=(0,te.Eq)(be||[]).filter(it=>!!it);ut.length&&(ke?$.classList.add(...ut):$.classList.remove(...ut))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const $=this._ngZone.onStable.pipe((0,fe.R)((0,N.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()),$.unsubscribe())})})}_disposeScrollStrategy(){const $=this._scrollStrategy;$&&($.disable(),$.detach&&$.detach())}_disposeBackdrop($){$&&($.removeEventListener("click",this._backdropClickHandler),$.removeEventListener("transitionend",this._backdropTransitionendHandler),$.remove(),this._backdropElement===$&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const mn="cdk-overlay-connected-position-bounding-box",Nn=/([A-Za-z%]+)$/;class Yn{get positions(){return this._preferredPositions}constructor($,be,ke,ut,it){this._viewportRuler=be,this._document=ke,this._platform=ut,this._overlayContainer=it,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 le.x,this._resizeSubscription=K.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin($)}attach($){this._validatePositions(),$.hostElement.classList.add(mn),this._overlayRef=$,this._boundingBox=$.hostElement,this._pane=$.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 $=this._originRect,be=this._overlayRect,ke=this._viewportRect,ut=this._containerRect,it=[];let mt;for(let xt of this._preferredPositions){let Zt=this._getOriginPoint($,ut,xt),$t=this._getOverlayPoint(Zt,be,xt),qe=this._getOverlayFit($t,be,ke,xt);if(qe.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(xt,Zt);this._canFitWithFlexibleDimensions(qe,$t,ke)?it.push({position:xt,origin:Zt,overlayRect:be,boundingBoxRect:this._calculateBoundingBoxRect(Zt,xt)}):(!mt||mt.overlayFit.visibleArea<qe.visibleArea)&&(mt={overlayFit:qe,overlayPoint:$t,originPoint:Zt,position:xt,overlayRect:be})}if(it.length){let xt=null,Zt=-1;for(const $t of it){const qe=$t.boundingBoxRect.width*$t.boundingBoxRect.height*($t.position.weight||1);qe>Zt&&(Zt=qe,xt=$t)}return this._isPushed=!1,void this._applyPosition(xt.position,xt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(mt.position,mt.originPoint);this._applyPosition(mt.position,mt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Xe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mn),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const $=this._lastPosition;if($){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const be=this._getOriginPoint(this._originRect,this._containerRect,$);this._applyPosition($,be)}else this.apply()}withScrollableContainers($){return this._scrollables=$,this}withPositions($){return this._preferredPositions=$,-1===$.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin($){return this._viewportMargin=$,this}withFlexibleDimensions($=!0){return this._hasFlexibleDimensions=$,this}withGrowAfterOpen($=!0){return this._growAfterOpen=$,this}withPush($=!0){return this._canPush=$,this}withLockedPosition($=!0){return this._positionLocked=$,this}setOrigin($){return this._origin=$,this}withDefaultOffsetX($){return this._offsetX=$,this}withDefaultOffsetY($){return this._offsetY=$,this}withTransformOriginOn($){return this._transformOriginSelector=$,this}_getOriginPoint($,be,ke){let ut,it;if("center"==ke.originX)ut=$.left+$.width/2;else{const mt=this._isRtl()?$.right:$.left,xt=this._isRtl()?$.left:$.right;ut="start"==ke.originX?mt:xt}return be.left<0&&(ut-=be.left),it="center"==ke.originY?$.top+$.height/2:"top"==ke.originY?$.top:$.bottom,be.top<0&&(it-=be.top),{x:ut,y:it}}_getOverlayPoint($,be,ke){let ut,it;return ut="center"==ke.overlayX?-be.width/2:"start"===ke.overlayX?this._isRtl()?-be.width:0:this._isRtl()?0:-be.width,it="center"==ke.overlayY?-be.height/2:"top"==ke.overlayY?0:-be.height,{x:$.x+ut,y:$.y+it}}_getOverlayFit($,be,ke,ut){const it=ht(be);let{x:mt,y:xt}=$,Zt=this._getOffset(ut,"x"),$t=this._getOffset(ut,"y");Zt&&(mt+=Zt),$t&&(xt+=$t);let Re=0-xt,st=xt+it.height-ke.height,yt=this._subtractOverflows(it.width,0-mt,mt+it.width-ke.width),Yt=this._subtractOverflows(it.height,Re,st),Gt=yt*Yt;return{visibleArea:Gt,isCompletelyWithinViewport:it.width*it.height===Gt,fitsInViewportVertically:Yt===it.height,fitsInViewportHorizontally:yt==it.width}}_canFitWithFlexibleDimensions($,be,ke){if(this._hasFlexibleDimensions){const ut=ke.bottom-be.y,it=ke.right-be.x,mt=ot(this._overlayRef.getConfig().minHeight),xt=ot(this._overlayRef.getConfig().minWidth);return($.fitsInViewportVertically||null!=mt&&mt<=ut)&&($.fitsInViewportHorizontally||null!=xt&&xt<=it)}return!1}_pushOverlayOnScreen($,be,ke){if(this._previousPushAmount&&this._positionLocked)return{x:$.x+this._previousPushAmount.x,y:$.y+this._previousPushAmount.y};const ut=ht(be),it=this._viewportRect,mt=Math.max($.x+ut.width-it.width,0),xt=Math.max($.y+ut.height-it.height,0),Zt=Math.max(it.top-ke.top-$.y,0),$t=Math.max(it.left-ke.left-$.x,0);let qe=0,dt=0;return qe=ut.width<=it.width?$t||-mt:$.x<this._viewportMargin?it.left-ke.left-$.x:0,dt=ut.height<=it.height?Zt||-xt:$.y<this._viewportMargin?it.top-ke.top-$.y:0,this._previousPushAmount={x:qe,y:dt},{x:$.x+qe,y:$.y+dt}}_applyPosition($,be){if(this._setTransformOrigin($),this._setOverlayElementStyles(be,$),this._setBoundingBoxStyles(be,$),$.panelClass&&this._addPanelClasses($.panelClass),this._lastPosition=$,this._positionChanges.observers.length){const ke=this._getScrollVisibility(),ut=new ze($,ke);this._positionChanges.next(ut)}this._isInitialRender=!1}_setTransformOrigin($){if(!this._transformOriginSelector)return;const be=this._boundingBox.querySelectorAll(this._transformOriginSelector);let ke,ut=$.overlayY;ke="center"===$.overlayX?"center":this._isRtl()?"start"===$.overlayX?"right":"left":"start"===$.overlayX?"left":"right";for(let it=0;it<be.length;it++)be[it].style.transformOrigin=`${ke} ${ut}`}_calculateBoundingBoxRect($,be){const ke=this._viewportRect,ut=this._isRtl();let it,mt,xt,qe,dt,Re;if("top"===be.overlayY)mt=$.y,it=ke.height-mt+this._viewportMargin;else if("bottom"===be.overlayY)xt=ke.height-$.y+2*this._viewportMargin,it=ke.height-xt+this._viewportMargin;else{const st=Math.min(ke.bottom-$.y+ke.top,$.y),yt=this._lastBoundingBoxSize.height;it=2*st,mt=$.y-st,it>yt&&!this._isInitialRender&&!this._growAfterOpen&&(mt=$.y-yt/2)}if("end"===be.overlayX&&!ut||"start"===be.overlayX&&ut)Re=ke.width-$.x+this._viewportMargin,qe=$.x-this._viewportMargin;else if("start"===be.overlayX&&!ut||"end"===be.overlayX&&ut)dt=$.x,qe=ke.right-$.x;else{const st=Math.min(ke.right-$.x+ke.left,$.x),yt=this._lastBoundingBoxSize.width;qe=2*st,dt=$.x-st,qe>yt&&!this._isInitialRender&&!this._growAfterOpen&&(dt=$.x-yt/2)}return{top:mt,left:dt,bottom:xt,right:Re,width:qe,height:it}}_setBoundingBoxStyles($,be){const ke=this._calculateBoundingBoxRect($,be);!this._isInitialRender&&!this._growAfterOpen&&(ke.height=Math.min(ke.height,this._lastBoundingBoxSize.height),ke.width=Math.min(ke.width,this._lastBoundingBoxSize.width));const ut={};if(this._hasExactPosition())ut.top=ut.left="0",ut.bottom=ut.right=ut.maxHeight=ut.maxWidth="",ut.width=ut.height="100%";else{const it=this._overlayRef.getConfig().maxHeight,mt=this._overlayRef.getConfig().maxWidth;ut.height=(0,te.HM)(ke.height),ut.top=(0,te.HM)(ke.top),ut.bottom=(0,te.HM)(ke.bottom),ut.width=(0,te.HM)(ke.width),ut.left=(0,te.HM)(ke.left),ut.right=(0,te.HM)(ke.right),ut.alignItems="center"===be.overlayX?"center":"end"===be.overlayX?"flex-end":"flex-start",ut.justifyContent="center"===be.overlayY?"center":"bottom"===be.overlayY?"flex-end":"flex-start",it&&(ut.maxHeight=(0,te.HM)(it)),mt&&(ut.maxWidth=(0,te.HM)(mt))}this._lastBoundingBoxSize=ke,Xe(this._boundingBox.style,ut)}_resetBoundingBoxStyles(){Xe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Xe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles($,be){const ke={},ut=this._hasExactPosition(),it=this._hasFlexibleDimensions,mt=this._overlayRef.getConfig();if(ut){const qe=this._viewportRuler.getViewportScrollPosition();Xe(ke,this._getExactOverlayY(be,$,qe)),Xe(ke,this._getExactOverlayX(be,$,qe))}else ke.position="static";let xt="",Zt=this._getOffset(be,"x"),$t=this._getOffset(be,"y");Zt&&(xt+=`translateX(${Zt}px) `),$t&&(xt+=`translateY(${$t}px)`),ke.transform=xt.trim(),mt.maxHeight&&(ut?ke.maxHeight=(0,te.HM)(mt.maxHeight):it&&(ke.maxHeight="")),mt.maxWidth&&(ut?ke.maxWidth=(0,te.HM)(mt.maxWidth):it&&(ke.maxWidth="")),Xe(this._pane.style,ke)}_getExactOverlayY($,be,ke){let ut={top:"",bottom:""},it=this._getOverlayPoint(be,this._overlayRect,$);return this._isPushed&&(it=this._pushOverlayOnScreen(it,this._overlayRect,ke)),"bottom"===$.overlayY?ut.bottom=this._document.documentElement.clientHeight-(it.y+this._overlayRect.height)+"px":ut.top=(0,te.HM)(it.y),ut}_getExactOverlayX($,be,ke){let mt,ut={left:"",right:""},it=this._getOverlayPoint(be,this._overlayRect,$);return this._isPushed&&(it=this._pushOverlayOnScreen(it,this._overlayRect,ke)),mt=this._isRtl()?"end"===$.overlayX?"left":"right":"end"===$.overlayX?"right":"left","right"===mt?ut.right=this._document.documentElement.clientWidth-(it.x+this._overlayRect.width)+"px":ut.left=(0,te.HM)(it.x),ut}_getScrollVisibility(){const $=this._getOriginRect(),be=this._pane.getBoundingClientRect(),ke=this._scrollables.map(ut=>ut.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ke($,ke),isOriginOutsideView:$e($,ke),isOverlayClipped:Ke(be,ke),isOverlayOutsideView:$e(be,ke)}}_subtractOverflows($,...be){return be.reduce((ke,ut)=>ke-Math.max(ut,0),$)}_getNarrowedViewportRect(){const $=this._document.documentElement.clientWidth,be=this._document.documentElement.clientHeight,ke=this._viewportRuler.getViewportScrollPosition();return{top:ke.top+this._viewportMargin,left:ke.left+this._viewportMargin,right:ke.left+$-this._viewportMargin,bottom:ke.top+be-this._viewportMargin,width:$-2*this._viewportMargin,height:be-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset($,be){return"x"===be?null==$.offsetX?this._offsetX:$.offsetX:null==$.offsetY?this._offsetY:$.offsetY}_validatePositions(){}_addPanelClasses($){this._pane&&(0,te.Eq)($).forEach(be=>{""!==be&&-1===this._appliedPanelClasses.indexOf(be)&&(this._appliedPanelClasses.push(be),this._pane.classList.add(be))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach($=>{this._pane.classList.remove($)}),this._appliedPanelClasses=[])}_getOriginRect(){const $=this._origin;if($ instanceof R.SBq)return $.nativeElement.getBoundingClientRect();if($ instanceof Element)return $.getBoundingClientRect();const be=$.width||0,ke=$.height||0;return{top:$.y,bottom:$.y+ke,left:$.x,right:$.x+be,height:ke,width:be}}}function Xe(pt,$){for(let be in $)$.hasOwnProperty(be)&&(pt[be]=$[be]);return pt}function ot(pt){if("number"!=typeof pt&&null!=pt){const[$,be]=pt.split(Nn);return be&&"px"!==be?null:parseFloat($)}return pt||null}function ht(pt){return{top:Math.floor(pt.top),right:Math.floor(pt.right),bottom:Math.floor(pt.bottom),left:Math.floor(pt.left),width:Math.floor(pt.width),height:Math.floor(pt.height)}}const F="cdk-global-overlay-wrapper";class oe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach($){const be=$.getConfig();this._overlayRef=$,this._width&&!be.width&&$.updateSize({width:this._width}),this._height&&!be.height&&$.updateSize({height:this._height}),$.hostElement.classList.add(F),this._isDisposed=!1}top($=""){return this._bottomOffset="",this._topOffset=$,this._alignItems="flex-start",this}left($=""){return this._xOffset=$,this._xPosition="left",this}bottom($=""){return this._topOffset="",this._bottomOffset=$,this._alignItems="flex-end",this}right($=""){return this._xOffset=$,this._xPosition="right",this}start($=""){return this._xOffset=$,this._xPosition="start",this}end($=""){return this._xOffset=$,this._xPosition="end",this}width($=""){return this._overlayRef?this._overlayRef.updateSize({width:$}):this._width=$,this}height($=""){return this._overlayRef?this._overlayRef.updateSize({height:$}):this._height=$,this}centerHorizontally($=""){return this.left($),this._xPosition="center",this}centerVertically($=""){return this.top($),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const $=this._overlayRef.overlayElement.style,be=this._overlayRef.hostElement.style,ke=this._overlayRef.getConfig(),{width:ut,height:it,maxWidth:mt,maxHeight:xt}=ke,Zt=!("100%"!==ut&&"100vw"!==ut||mt&&"100%"!==mt&&"100vw"!==mt),$t=!("100%"!==it&&"100vh"!==it||xt&&"100%"!==xt&&"100vh"!==xt),qe=this._xPosition,dt=this._xOffset,Re="rtl"===this._overlayRef.getConfig().direction;let st="",yt="",Yt="";Zt?Yt="flex-start":"center"===qe?(Yt="center",Re?yt=dt:st=dt):Re?"left"===qe||"end"===qe?(Yt="flex-end",st=dt):("right"===qe||"start"===qe)&&(Yt="flex-start",yt=dt):"left"===qe||"start"===qe?(Yt="flex-start",st=dt):("right"===qe||"end"===qe)&&(Yt="flex-end",yt=dt),$.position=this._cssPosition,$.marginLeft=Zt?"0":st,$.marginTop=$t?"0":this._topOffset,$.marginBottom=this._bottomOffset,$.marginRight=Zt?"0":yt,be.justifyContent=Yt,be.alignItems=$t?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const $=this._overlayRef.overlayElement.style,be=this._overlayRef.hostElement,ke=be.style;be.classList.remove(F),ke.justifyContent=ke.alignItems=$.marginTop=$.marginBottom=$.marginLeft=$.marginRight=$.position="",this._overlayRef=null,this._isDisposed=!0}}let _e=(()=>{class pt{constructor(be,ke,ut,it){this._viewportRuler=be,this._document=ke,this._platform=ut,this._overlayContainer=it}global(){return new oe}flexibleConnectedTo(be){return new Yn(be,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return pt.\u0275fac=function(be){return new(be||pt)(R.LFG(r.rL),R.LFG(c.K0),R.LFG(Z.t4),R.LFG(un))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})(),vt=0,At=(()=>{class pt{constructor(be,ke,ut,it,mt,xt,Zt,$t,qe,dt,Re,st){this.scrollStrategies=be,this._overlayContainer=ke,this._componentFactoryResolver=ut,this._positionBuilder=it,this._keyboardDispatcher=mt,this._injector=xt,this._ngZone=Zt,this._document=$t,this._directionality=qe,this._location=dt,this._outsideClickDispatcher=Re,this._animationsModuleType=st}create(be){const ke=this._createHostElement(),ut=this._createPaneElement(ke),it=this._createPortalOutlet(ut),mt=new Ie(be);return mt.direction=mt.direction||this._directionality.value,new on(it,ke,ut,mt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(be){const ke=this._document.createElement("div");return ke.id="cdk-overlay-"+vt++,ke.classList.add("cdk-overlay-pane"),be.appendChild(ke),ke}_createHostElement(){const be=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(be),be}_createPortalOutlet(be){return this._appRef||(this._appRef=this._injector.get(R.z2F)),new q.u0(be,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return pt.\u0275fac=function(be){return new(be||pt)(R.LFG(ee),R.LFG(un),R.LFG(R._Vd),R.LFG(_e),R.LFG(Bt),R.LFG(R.zs3),R.LFG(R.R0b),R.LFG(c.K0),R.LFG(J.Is),R.LFG(c.Ye),R.LFG(Jt),R.LFG(R.QbO,8))},pt.\u0275prov=R.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"}),pt})();const nn={provide:new R.OlP("cdk-connected-overlay-scroll-strategy"),deps:[At],useFactory:function Cn(pt){return()=>pt.scrollStrategies.reposition()}};let In=(()=>{class pt{}return pt.\u0275fac=function(be){return new(be||pt)},pt.\u0275mod=R.oAB({type:pt}),pt.\u0275inj=R.cJS({providers:[At,nn],imports:[J.vT,q.eL,r.Cl,r.Cl]}),pt})()},8748:(It,Fe,g)=>{g.d(Fe,{Mq:()=>je,Oy:()=>ee,_i:()=>Je,ht:()=>Ke,i$:()=>z,kV:()=>$e,sA:()=>lt,t4:()=>te});var r=g(5879),c=g(6814);let R;try{R=typeof Intl<"u"&&Intl.v8BreakIterator}catch{R=!1}let K,fe,Ve,Se,te=(()=>{class Ie{constructor(ve){this._platformId=ve,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&&!R)&&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 Ie.\u0275fac=function(ve){return new(ve||Ie)(r.LFG(r.Lbi))},Ie.\u0275prov=r.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})();function z(Ie){return function N(){if(null==K&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>K=!0}))}finally{K=K||!1}return K}()?Ie:!!Ie.capture}function je(){if(null==Ve){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ve=!1,Ve;if("scrollBehavior"in document.documentElement.style)Ve=!0;else{const Ie=Element.prototype.scrollTo;Ve=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return Ve}function Je(){if("object"!=typeof document||!document)return 0;if(null==fe){const Ie=document.createElement("div"),de=Ie.style;Ie.dir="rtl",de.width="1px",de.overflow="auto",de.visibility="hidden",de.pointerEvents="none",de.position="absolute";const ve=document.createElement("div"),ze=ve.style;ze.width="2px",ze.height="1px",Ie.appendChild(ve),document.body.appendChild(Ie),fe=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,fe=0===Ie.scrollLeft?1:2),Ie.remove()}return fe}function $e(Ie){if(function Ue(){if(null==Se){const Ie=typeof document<"u"?document.head:null;Se=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return Se}()){const de=Ie.getRootNode?Ie.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&de instanceof ShadowRoot)return de}return null}function Ke(){let Ie=typeof document<"u"&&document?document.activeElement:null;for(;Ie&&Ie.shadowRoot;){const de=Ie.shadowRoot.activeElement;if(de===Ie)break;Ie=de}return Ie}function lt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ee(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8549:(It,Fe,g)=>{g.d(Fe,{C5:()=>N,Pl:()=>Ke,UE:()=>z,eL:()=>ee,en:()=>Ve,u0:()=>Je});var r=g(5879),c=g(6814);class K{attach(ve){return this._attachedHost=ve,ve.attach(this)}detach(){let ve=this._attachedHost;null!=ve&&(this._attachedHost=null,ve.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ve){this._attachedHost=ve}}class N extends K{constructor(ve,ze,Te,ct,Et){super(),this.component=ve,this.viewContainerRef=ze,this.injector=Te,this.componentFactoryResolver=ct,this.projectableNodes=Et}}class z extends K{constructor(ve,ze,Te,ct){super(),this.templateRef=ve,this.viewContainerRef=ze,this.context=Te,this.injector=ct}get origin(){return this.templateRef.elementRef}attach(ve,ze=this.context){return this.context=ze,super.attach(ve)}detach(){return this.context=void 0,super.detach()}}class fe extends K{constructor(ve){super(),this.element=ve instanceof r.SBq?ve.nativeElement:ve}}class Ve{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ve){return ve instanceof N?(this._attachedPortal=ve,this.attachComponentPortal(ve)):ve instanceof z?(this._attachedPortal=ve,this.attachTemplatePortal(ve)):this.attachDomPortal&&ve instanceof fe?(this._attachedPortal=ve,this.attachDomPortal(ve)):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(ve){this._disposeFn=ve}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Je extends Ve{constructor(ve,ze,Te,ct,Et){super(),this.outletElement=ve,this._componentFactoryResolver=ze,this._appRef=Te,this._defaultInjector=ct,this.attachDomPortal=Bt=>{const Jt=Bt.element,un=this._document.createComment("dom-portal");Jt.parentNode.insertBefore(un,Jt),this.outletElement.appendChild(Jt),this._attachedPortal=Bt,super.setDisposeFn(()=>{un.parentNode&&un.parentNode.replaceChild(Jt,un)})},this._document=Et}attachComponentPortal(ve){const Te=(ve.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ve.component);let ct;return ve.viewContainerRef?(ct=ve.viewContainerRef.createComponent(Te,ve.viewContainerRef.length,ve.injector||ve.viewContainerRef.injector,ve.projectableNodes||void 0),this.setDisposeFn(()=>ct.destroy())):(ct=Te.create(ve.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(ct.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ct.hostView),ct.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ct)),this._attachedPortal=ve,ct}attachTemplatePortal(ve){let ze=ve.viewContainerRef,Te=ze.createEmbeddedView(ve.templateRef,ve.context,{injector:ve.injector});return Te.rootNodes.forEach(ct=>this.outletElement.appendChild(ct)),Te.detectChanges(),this.setDisposeFn(()=>{let ct=ze.indexOf(Te);-1!==ct&&ze.remove(ct)}),this._attachedPortal=ve,Te}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ve){return ve.hostView.rootNodes[0]}}let Ke=(()=>{class de extends Ve{constructor(ze,Te,ct){super(),this._componentFactoryResolver=ze,this._viewContainerRef=Te,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=Et=>{const Bt=Et.element,Jt=this._document.createComment("dom-portal");Et.setAttachedHost(this),Bt.parentNode.insertBefore(Jt,Bt),this._getRootNode().appendChild(Bt),this._attachedPortal=Et,super.setDisposeFn(()=>{Jt.parentNode&&Jt.parentNode.replaceChild(Bt,Jt)})},this._document=ct}get portal(){return this._attachedPortal}set portal(ze){this.hasAttached()&&!ze&&!this._isInitialized||(this.hasAttached()&&super.detach(),ze&&super.attach(ze),this._attachedPortal=ze||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ze){ze.setAttachedHost(this);const Te=null!=ze.viewContainerRef?ze.viewContainerRef:this._viewContainerRef,Et=(ze.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ze.component),Bt=Te.createComponent(Et,Te.length,ze.injector||Te.injector,ze.projectableNodes||void 0);return Te!==this._viewContainerRef&&this._getRootNode().appendChild(Bt.hostView.rootNodes[0]),super.setDisposeFn(()=>Bt.destroy()),this._attachedPortal=ze,this._attachedRef=Bt,this.attached.emit(Bt),Bt}attachTemplatePortal(ze){ze.setAttachedHost(this);const Te=this._viewContainerRef.createEmbeddedView(ze.templateRef,ze.context,{injector:ze.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ze,this._attachedRef=Te,this.attached.emit(Te),Te}_getRootNode(){const ze=this._viewContainerRef.element.nativeElement;return ze.nodeType===ze.ELEMENT_NODE?ze:ze.parentNode}}return de.\u0275fac=function(ze){return new(ze||de)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(c.K0))},de.\u0275dir=r.lG2({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),de})(),ee=(()=>{class de{}return de.\u0275fac=function(ze){return new(ze||de)},de.\u0275mod=r.oAB({type:de}),de.\u0275inj=r.cJS({}),de})()},7259:(It,Fe,g)=>{g.d(Fe,{Cl:()=>ht,ZD:()=>ot,mF:()=>ve,rL:()=>ct});var r=g(1417),c=g(5879),R=g(8645),te=g(2096),Z=g(5592),J=g(2438),q=g(927),le=g(6410),K=g(7394),N=g(9028),z=g(2181),fe=g(9773),Ve=g(7921),je=g(8748),Je=g(6814),Se=g(5114);const Ue=["contentWrapper"],$e=["*"],Ke=new c.OlP("VIRTUAL_SCROLL_STRATEGY");let ve=(()=>{class ae{constructor(F,oe,_e){this._ngZone=F,this._platform=oe,this._scrolled=new R.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=_e}register(F){this.scrollContainers.has(F)||this.scrollContainers.set(F,F.elementScrolled().subscribe(()=>this._scrolled.next(F)))}deregister(F){const oe=this.scrollContainers.get(F);oe&&(oe.unsubscribe(),this.scrollContainers.delete(F))}scrolled(F=20){return this._platform.isBrowser?new Z.y(oe=>{this._globalSubscription||this._addGlobalListener();const _e=F>0?this._scrolled.pipe((0,N.e)(F)).subscribe(oe):this._scrolled.subscribe(oe);return this._scrolledCount++,()=>{_e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,te.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((F,oe)=>this.deregister(oe)),this._scrolled.complete()}ancestorScrolled(F,oe){const _e=this.getAncestorScrollContainers(F);return this.scrolled(oe).pipe((0,z.h)(vt=>!vt||_e.indexOf(vt)>-1))}getAncestorScrollContainers(F){const oe=[];return this.scrollContainers.forEach((_e,vt)=>{this._scrollableContainsElement(vt,F)&&oe.push(vt)}),oe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(F,oe){let _e=(0,r.fI)(oe),vt=F.getElementRef().nativeElement;do{if(_e==vt)return!0}while(_e=_e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const F=this._getWindow();return(0,J.R)(F.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ae.\u0275fac=function(F){return new(F||ae)(c.LFG(c.R0b),c.LFG(je.t4),c.LFG(Je.K0,8))},ae.\u0275prov=c.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),ze=(()=>{class ae{constructor(F,oe,_e,vt){this.elementRef=F,this.scrollDispatcher=oe,this.ngZone=_e,this.dir=vt,this._destroyed=new R.x,this._elementScrolled=new Z.y(At=>this.ngZone.runOutsideAngular(()=>(0,J.R)(this.elementRef.nativeElement,"scroll").pipe((0,fe.R)(this._destroyed)).subscribe(At)))}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(F){const oe=this.elementRef.nativeElement,_e=this.dir&&"rtl"==this.dir.value;null==F.left&&(F.left=_e?F.end:F.start),null==F.right&&(F.right=_e?F.start:F.end),null!=F.bottom&&(F.top=oe.scrollHeight-oe.clientHeight-F.bottom),_e&&0!=(0,je._i)()?(null!=F.left&&(F.right=oe.scrollWidth-oe.clientWidth-F.left),2==(0,je._i)()?F.left=F.right:1==(0,je._i)()&&(F.left=F.right?-F.right:F.right)):null!=F.right&&(F.left=oe.scrollWidth-oe.clientWidth-F.right),this._applyScrollToOptions(F)}_applyScrollToOptions(F){const oe=this.elementRef.nativeElement;(0,je.Mq)()?oe.scrollTo(F):(null!=F.top&&(oe.scrollTop=F.top),null!=F.left&&(oe.scrollLeft=F.left))}measureScrollOffset(F){const oe="left",vt=this.elementRef.nativeElement;if("top"==F)return vt.scrollTop;if("bottom"==F)return vt.scrollHeight-vt.clientHeight-vt.scrollTop;const At=this.dir&&"rtl"==this.dir.value;return"start"==F?F=At?"right":oe:"end"==F&&(F=At?oe:"right"),At&&2==(0,je._i)()?F==oe?vt.scrollWidth-vt.clientWidth-vt.scrollLeft:vt.scrollLeft:At&&1==(0,je._i)()?F==oe?vt.scrollLeft+vt.scrollWidth-vt.clientWidth:-vt.scrollLeft:F==oe?vt.scrollLeft:vt.scrollWidth-vt.clientWidth-vt.scrollLeft}}return ae.\u0275fac=function(F){return new(F||ae)(c.Y36(c.SBq),c.Y36(ve),c.Y36(c.R0b),c.Y36(Se.Is,8))},ae.\u0275dir=c.lG2({type:ae,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),ae})(),ct=(()=>{class ae{constructor(F,oe,_e){this._platform=F,this._change=new R.x,this._changeListener=vt=>{this._change.next(vt)},this._document=_e,oe.runOutsideAngular(()=>{if(F.isBrowser){const vt=this._getWindow();vt.addEventListener("resize",this._changeListener),vt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const F=this._getWindow();F.removeEventListener("resize",this._changeListener),F.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const F={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),F}getViewportRect(){const F=this.getViewportScrollPosition(),{width:oe,height:_e}=this.getViewportSize();return{top:F.top,left:F.left,bottom:F.top+_e,right:F.left+oe,height:_e,width:oe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const F=this._document,oe=this._getWindow(),_e=F.documentElement,vt=_e.getBoundingClientRect();return{top:-vt.top||F.body.scrollTop||oe.scrollY||_e.scrollTop||0,left:-vt.left||F.body.scrollLeft||oe.scrollX||_e.scrollLeft||0}}change(F=20){return F>0?this._change.pipe((0,N.e)(F)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const F=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:F.innerWidth,height:F.innerHeight}:{width:0,height:0}}}return ae.\u0275fac=function(F){return new(F||ae)(c.LFG(je.t4),c.LFG(c.R0b),c.LFG(Je.K0,8))},ae.\u0275prov=c.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();const Et=new c.OlP("VIRTUAL_SCROLLABLE");let Bt=(()=>{class ae extends ze{constructor(F,oe,_e,vt){super(F,oe,_e,vt)}measureViewportSize(F){const oe=this.elementRef.nativeElement;return"horizontal"===F?oe.clientWidth:oe.clientHeight}}return ae.\u0275fac=function(F){return new(F||ae)(c.Y36(c.SBq),c.Y36(ve),c.Y36(c.R0b),c.Y36(Se.Is,8))},ae.\u0275dir=c.lG2({type:ae,features:[c.qOj]}),ae})();const un=typeof requestAnimationFrame<"u"?q.Z:le.E;let on=(()=>{class ae extends Bt{get orientation(){return this._orientation}set orientation(F){this._orientation!==F&&(this._orientation=F,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(F){this._appendOnly=(0,r.Ig)(F)}constructor(F,oe,_e,vt,At,Ht,Nt,sn){super(F,Ht,_e,At),this.elementRef=F,this._changeDetectorRef=oe,this._scrollStrategy=vt,this.scrollable=sn,this._platform=(0,c.f3M)(je.t4),this._detachedSubject=new R.x,this._renderedRangeSubject=new R.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Z.y(dn=>this._scrollStrategy.scrolledIndexChange.subscribe(Cn=>Promise.resolve().then(()=>this.ngZone.run(()=>dn.next(Cn))))),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=K.w0.EMPTY,this._viewportChanges=Nt.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,Ve.O)(null),(0,N.e)(0,un)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(F){this.ngZone.runOutsideAngular(()=>{this._forOf=F,this._forOf.dataStream.pipe((0,fe.R)(this._detachedSubject)).subscribe(oe=>{const _e=oe.length;_e!==this._dataLength&&(this._dataLength=_e,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(F){return this.getElementRef().nativeElement.getBoundingClientRect()[F]}setTotalContentSize(F){this._totalContentSize!==F&&(this._totalContentSize=F,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(F){(function Jt(ae,Pe){return ae.start==Pe.start&&ae.end==Pe.end})(this._renderedRange,F)||(this.appendOnly&&(F={start:0,end:Math.max(this._renderedRange.end,F.end)}),this._renderedRangeSubject.next(this._renderedRange=F),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(F,oe="to-start"){F=this.appendOnly&&"to-start"===oe?0:F;const vt="horizontal"==this.orientation,At=vt?"X":"Y";let Nt=`translate${At}(${Number((vt&&this.dir&&"rtl"==this.dir.value?-1:1)*F)}px)`;this._renderedContentOffset=F,"to-end"===oe&&(Nt+=` translate${At}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Nt&&(this._renderedContentTransform=Nt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(F,oe="auto"){const _e={behavior:oe};"horizontal"===this.orientation?_e.start=F:_e.top=F,this.scrollable.scrollTo(_e)}scrollToIndex(F,oe="auto"){this._scrollStrategy.scrollToIndex(F,oe)}measureScrollOffset(F){let oe;return oe=this.scrollable==this?_e=>super.measureScrollOffset(_e):_e=>this.scrollable.measureScrollOffset(_e),Math.max(0,oe(F??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(F){let oe;const At="rtl"==this.dir?.value;oe="start"==F?At?"right":"left":"end"==F?At?"left":"right":F||("horizontal"===this.orientation?"left":"top");const Ht=this.scrollable.measureBoundingClientRectWithScrollOffset(oe);return this.elementRef.nativeElement.getBoundingClientRect()[oe]-Ht}measureRenderedContentSize(){const F=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?F.offsetWidth:F.offsetHeight}measureRangeSize(F){return this._forOf?this._forOf.measureRangeSize(F,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(F){F&&this._runAfterChangeDetection.push(F),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 F=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const oe of F)oe()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return ae.\u0275fac=function(F){return new(F||ae)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(Ke,8),c.Y36(Se.Is,8),c.Y36(ve),c.Y36(ct),c.Y36(Et,8))},ae.\u0275cmp=c.Xpm({type:ae,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(F,oe){if(1&F&&c.Gf(Ue,7),2&F){let _e;c.iGM(_e=c.CRH())&&(oe._contentWrapper=_e.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(F,oe){2&F&&c.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===oe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==oe.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[c._Bn([{provide:ze,useFactory:(Pe,F)=>Pe||F,deps:[[new c.FiY,new c.tBr(Et)],ae]}]),c.qOj,c.jDz],ngContentSelectors:$e,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(F,oe){1&F&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA(),c._UZ(3,"div",2)),2&F&&(c.xp6(3),c.Udp("width",oe._totalContentWidth)("height",oe._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}),ae})(),ot=(()=>{class ae{}return ae.\u0275fac=function(F){return new(F||ae)},ae.\u0275mod=c.oAB({type:ae}),ae.\u0275inj=c.cJS({}),ae})(),ht=(()=>{class ae{}return ae.\u0275fac=function(F){return new(F||ae)},ae.\u0275mod=c.oAB({type:ae}),ae.\u0275inj=c.cJS({imports:[Se.vT,ot,on,Se.vT,ot]}),ae})()},6814:(It,Fe,g)=>{g.d(Fe,{$G:()=>zn,Do:()=>Se,EM:()=>xn,HT:()=>te,JF:()=>tr,JJ:()=>Qt,K0:()=>J,Mx:()=>Xn,NF:()=>wt,O5:()=>Oi,OU:()=>vi,Ov:()=>fr,PC:()=>Do,PM:()=>Ot,S$:()=>Ve,V_:()=>le,Ye:()=>Ue,b0:()=>Je,bD:()=>Gi,ez:()=>ai,mk:()=>Bn,q:()=>R,sg:()=>$n,tP:()=>no,uU:()=>Ii,w_:()=>Z});var r=g(5879);let c=null;function R(){return c}function te(p){c||(c=p)}class Z{}const J=new r.OlP("DocumentToken");let q=(()=>{var p;class T{historyGo(D){throw new Error("Not implemented")}}return(p=T).\u0275fac=function(D){return new(D||p)},p.\u0275prov=r.Yz7({token:p,factory:function(){return(0,r.f3M)(K)},providedIn:"platform"}),T})();const le=new r.OlP("Location Initialized");let K=(()=>{var p;class T extends q{constructor(){super(),this._doc=(0,r.f3M)(J),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState(D){const ne=R().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",D,!1),()=>ne.removeEventListener("popstate",D)}onHashChange(D){const ne=R().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",D,!1),()=>ne.removeEventListener("hashchange",D)}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(D){this._location.pathname=D}pushState(D,ne,Ne){this._history.pushState(D,ne,Ne)}replaceState(D,ne,Ne){this._history.replaceState(D,ne,Ne)}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return(p=T).\u0275fac=function(D){return new(D||p)},p.\u0275prov=r.Yz7({token:p,factory:function(){return new p},providedIn:"platform"}),T})();function N(p,T){if(0==p.length)return T;if(0==T.length)return p;let he=0;return p.endsWith("/")&&he++,T.startsWith("/")&&he++,2==he?p+T.substring(1):1==he?p+T:p+"/"+T}function z(p){const T=p.match(/#|\?|$/),he=T&&T.index||p.length;return p.slice(0,he-("/"===p[he-1]?1:0))+p.slice(he)}function fe(p){return p&&"?"!==p[0]?"?"+p:p}let Ve=(()=>{var p;class T{historyGo(D){throw new Error("Not implemented")}}return(p=T).\u0275fac=function(D){return new(D||p)},p.\u0275prov=r.Yz7({token:p,factory:function(){return(0,r.f3M)(Je)},providedIn:"root"}),T})();const je=new r.OlP("appBaseHref");let Je=(()=>{var p;class T extends Ve{constructor(D,ne){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=ne??this._platformLocation.getBaseHrefFromDOM()??(0,r.f3M)(J).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return N(this._baseHref,D)}path(D=!1){const ne=this._platformLocation.pathname+fe(this._platformLocation.search),Ne=this._platformLocation.hash;return Ne&&D?`${ne}${Ne}`:ne}pushState(D,ne,Ne,Mt){const jt=this.prepareExternalUrl(Ne+fe(Mt));this._platformLocation.pushState(D,ne,jt)}replaceState(D,ne,Ne,Mt){const jt=this.prepareExternalUrl(Ne+fe(Mt));this._platformLocation.replaceState(D,ne,jt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return(p=T).\u0275fac=function(D){return new(D||p)(r.LFG(q),r.LFG(je,8))},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),T})(),Se=(()=>{var p;class T extends Ve{constructor(D,ne){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(D){const ne=N(this._baseHref,D);return ne.length>0?"#"+ne:ne}pushState(D,ne,Ne,Mt){let jt=this.prepareExternalUrl(Ne+fe(Mt));0==jt.length&&(jt=this._platformLocation.pathname),this._platformLocation.pushState(D,ne,jt)}replaceState(D,ne,Ne,Mt){let jt=this.prepareExternalUrl(Ne+fe(Mt));0==jt.length&&(jt=this._platformLocation.pathname),this._platformLocation.replaceState(D,ne,jt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return(p=T).\u0275fac=function(D){return new(D||p)(r.LFG(q),r.LFG(je,8))},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac}),T})(),Ue=(()=>{var p;class T{constructor(D){this._subject=new r.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const ne=this._locationStrategy.getBaseHref();this._basePath=function ee(p){if(new RegExp("^(https?:)?//").test(p)){const[,he]=p.split(/\/\/[^\/]+/);return he}return p}(z(lt(ne))),this._locationStrategy.onPopState(Ne=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ne.state,type:Ne.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,ne=""){return this.path()==this.normalize(D+fe(ne))}normalize(D){return T.stripTrailingSlash(function Ke(p,T){if(!p||!T.startsWith(p))return T;const he=T.substring(p.length);return""===he||["/",";","?","#"].includes(he[0])?he:T}(this._basePath,lt(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,ne="",Ne=null){this._locationStrategy.pushState(Ne,"",D,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+fe(ne)),Ne)}replaceState(D,ne="",Ne=null){this._locationStrategy.replaceState(Ne,"",D,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+fe(ne)),Ne)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)})),()=>{const ne=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",ne){this._urlChangeListeners.forEach(Ne=>Ne(D,ne))}subscribe(D,ne,Ne){return this._subject.subscribe({next:D,error:ne,complete:Ne})}}return(p=T).normalizeQueryParams=fe,p.joinWithSlash=N,p.stripTrailingSlash=z,p.\u0275fac=function(D){return new(D||p)(r.LFG(Ve))},p.\u0275prov=r.Yz7({token:p,factory:function(){return function $e(){return new Ue((0,r.LFG)(Ve))}()},providedIn:"root"}),T})();function lt(p){return p.replace(/\/index.html$/,"")}var de=function(p){return p[p.Decimal=0]="Decimal",p[p.Percent=1]="Percent",p[p.Currency=2]="Currency",p[p.Scientific=3]="Scientific",p}(de||{}),ze=function(p){return p[p.Format=0]="Format",p[p.Standalone=1]="Standalone",p}(ze||{}),Te=function(p){return p[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p}(Te||{}),ct=function(p){return p[p.Short=0]="Short",p[p.Medium=1]="Medium",p[p.Long=2]="Long",p[p.Full=3]="Full",p}(ct||{}),Et=function(p){return p[p.Decimal=0]="Decimal",p[p.Group=1]="Group",p[p.List=2]="List",p[p.PercentSign=3]="PercentSign",p[p.PlusSign=4]="PlusSign",p[p.MinusSign=5]="MinusSign",p[p.Exponential=6]="Exponential",p[p.SuperscriptingExponent=7]="SuperscriptingExponent",p[p.PerMille=8]="PerMille",p[p.Infinity=9]="Infinity",p[p.NaN=10]="NaN",p[p.TimeSeparator=11]="TimeSeparator",p[p.CurrencyDecimal=12]="CurrencyDecimal",p[p.CurrencyGroup=13]="CurrencyGroup",p}(Et||{});function ot(p,T){return nn((0,r.cg1)(p)[r.wAp.DateFormat],T)}function ht(p,T){return nn((0,r.cg1)(p)[r.wAp.TimeFormat],T)}function ae(p,T){return nn((0,r.cg1)(p)[r.wAp.DateTimeFormat],T)}function Pe(p,T){const he=(0,r.cg1)(p),D=he[r.wAp.NumberSymbols][T];if(typeof D>"u"){if(T===Et.CurrencyDecimal)return he[r.wAp.NumberSymbols][Et.Decimal];if(T===Et.CurrencyGroup)return he[r.wAp.NumberSymbols][Et.Group]}return D}function Nt(p){if(!p[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${p[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nn(p,T){for(let he=T;he>-1;he--)if(typeof p[he]<"u")return p[he];throw new Error("Locale data API: locale data undefined")}function In(p){const[T,he]=p.split(":");return{hours:+T,minutes:+he}}const be=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ke={},ut=/((?:[^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=function(p){return p[p.Short=0]="Short",p[p.ShortGMT=1]="ShortGMT",p[p.Long=2]="Long",p[p.Extended=3]="Extended",p}(it||{}),mt=function(p){return p[p.FullYear=0]="FullYear",p[p.Month=1]="Month",p[p.Date=2]="Date",p[p.Hours=3]="Hours",p[p.Minutes=4]="Minutes",p[p.Seconds=5]="Seconds",p[p.FractionalSeconds=6]="FractionalSeconds",p[p.Day=7]="Day",p}(mt||{}),xt=function(p){return p[p.DayPeriods=0]="DayPeriods",p[p.Days=1]="Days",p[p.Months=2]="Months",p[p.Eras=3]="Eras",p}(xt||{});function Zt(p,T,he,D){let ne=function G(p){if(re(p))return p;if("number"==typeof p&&!isNaN(p))return new Date(p);if("string"==typeof p){if(p=p.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(p)){const[ne,Ne=1,Mt=1]=p.split("-").map(jt=>+jt);return $t(ne,Ne-1,Mt)}const he=parseFloat(p);if(!isNaN(p-he))return new Date(he);let D;if(D=p.match(be))return function X(p){const T=new Date(0);let he=0,D=0;const ne=p[8]?T.setUTCFullYear:T.setFullYear,Ne=p[8]?T.setUTCHours:T.setHours;p[9]&&(he=Number(p[9]+p[10]),D=Number(p[9]+p[11])),ne.call(T,Number(p[1]),Number(p[2])-1,Number(p[3]));const Mt=Number(p[4]||0)-he,jt=Number(p[5]||0)-D,ln=Number(p[6]||0),ti=Math.floor(1e3*parseFloat("0."+(p[7]||0)));return Ne.call(T,Mt,jt,ln,ti),T}(D)}const T=new Date(p);if(!re(T))throw new Error(`Unable to convert "${p}" into a date`);return T}(p);T=qe(he,T)||T;let jt,Mt=[];for(;T;){if(jt=ut.exec(T),!jt){Mt.push(T);break}{Mt=Mt.concat(jt.slice(1));const Tn=Mt.pop();if(!Tn)break;T=Tn}}let ln=ne.getTimezoneOffset();D&&(ln=Kt(D,ln),ne=function ye(p,T,he){const D=he?-1:1,ne=p.getTimezoneOffset();return function Ee(p,T){return(p=new Date(p.getTime())).setMinutes(p.getMinutes()+T),p}(p,D*(Kt(T,ne)-ne))}(ne,D,!0));let ti="";return Mt.forEach(Tn=>{const vn=function St(p){if(We[p])return We[p];let T;switch(p){case"G":case"GG":case"GGG":T=Gt(xt.Eras,Te.Abbreviated);break;case"GGGG":T=Gt(xt.Eras,Te.Wide);break;case"GGGGG":T=Gt(xt.Eras,Te.Narrow);break;case"y":T=yt(mt.FullYear,1,0,!1,!0);break;case"yy":T=yt(mt.FullYear,2,0,!0,!0);break;case"yyy":T=yt(mt.FullYear,3,0,!1,!0);break;case"yyyy":T=yt(mt.FullYear,4,0,!1,!0);break;case"Y":T=ce(1);break;case"YY":T=ce(2,!0);break;case"YYY":T=ce(3);break;case"YYYY":T=ce(4);break;case"M":case"L":T=yt(mt.Month,1,1);break;case"MM":case"LL":T=yt(mt.Month,2,1);break;case"MMM":T=Gt(xt.Months,Te.Abbreviated);break;case"MMMM":T=Gt(xt.Months,Te.Wide);break;case"MMMMM":T=Gt(xt.Months,Te.Narrow);break;case"LLL":T=Gt(xt.Months,Te.Abbreviated,ze.Standalone);break;case"LLLL":T=Gt(xt.Months,Te.Wide,ze.Standalone);break;case"LLLLL":T=Gt(xt.Months,Te.Narrow,ze.Standalone);break;case"w":T=ie(1);break;case"ww":T=ie(2);break;case"W":T=ie(1,!0);break;case"d":T=yt(mt.Date,1);break;case"dd":T=yt(mt.Date,2);break;case"c":case"cc":T=yt(mt.Day,1);break;case"ccc":T=Gt(xt.Days,Te.Abbreviated,ze.Standalone);break;case"cccc":T=Gt(xt.Days,Te.Wide,ze.Standalone);break;case"ccccc":T=Gt(xt.Days,Te.Narrow,ze.Standalone);break;case"cccccc":T=Gt(xt.Days,Te.Short,ze.Standalone);break;case"E":case"EE":case"EEE":T=Gt(xt.Days,Te.Abbreviated);break;case"EEEE":T=Gt(xt.Days,Te.Wide);break;case"EEEEE":T=Gt(xt.Days,Te.Narrow);break;case"EEEEEE":T=Gt(xt.Days,Te.Short);break;case"a":case"aa":case"aaa":T=Gt(xt.DayPeriods,Te.Abbreviated);break;case"aaaa":T=Gt(xt.DayPeriods,Te.Wide);break;case"aaaaa":T=Gt(xt.DayPeriods,Te.Narrow);break;case"b":case"bb":case"bbb":T=Gt(xt.DayPeriods,Te.Abbreviated,ze.Standalone,!0);break;case"bbbb":T=Gt(xt.DayPeriods,Te.Wide,ze.Standalone,!0);break;case"bbbbb":T=Gt(xt.DayPeriods,Te.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":T=Gt(xt.DayPeriods,Te.Abbreviated,ze.Format,!0);break;case"BBBB":T=Gt(xt.DayPeriods,Te.Wide,ze.Format,!0);break;case"BBBBB":T=Gt(xt.DayPeriods,Te.Narrow,ze.Format,!0);break;case"h":T=yt(mt.Hours,1,-12);break;case"hh":T=yt(mt.Hours,2,-12);break;case"H":T=yt(mt.Hours,1);break;case"HH":T=yt(mt.Hours,2);break;case"m":T=yt(mt.Minutes,1);break;case"mm":T=yt(mt.Minutes,2);break;case"s":T=yt(mt.Seconds,1);break;case"ss":T=yt(mt.Seconds,2);break;case"S":T=yt(mt.FractionalSeconds,1);break;case"SS":T=yt(mt.FractionalSeconds,2);break;case"SSS":T=yt(mt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":T=En(it.Short);break;case"ZZZZZ":T=En(it.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":T=En(it.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":T=En(it.Long);break;default:return null}return We[p]=T,T}(Tn);ti+=vn?vn(ne,he,ln):"''"===Tn?"'":Tn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ti}function $t(p,T,he){const D=new Date(0);return D.setFullYear(p,T,he),D.setHours(0,0,0),D}function qe(p,T){const he=function Jt(p){return(0,r.cg1)(p)[r.wAp.LocaleId]}(p);if(ke[he]=ke[he]||{},ke[he][T])return ke[he][T];let D="";switch(T){case"shortDate":D=ot(p,ct.Short);break;case"mediumDate":D=ot(p,ct.Medium);break;case"longDate":D=ot(p,ct.Long);break;case"fullDate":D=ot(p,ct.Full);break;case"shortTime":D=ht(p,ct.Short);break;case"mediumTime":D=ht(p,ct.Medium);break;case"longTime":D=ht(p,ct.Long);break;case"fullTime":D=ht(p,ct.Full);break;case"short":const ne=qe(p,"shortTime"),Ne=qe(p,"shortDate");D=dt(ae(p,ct.Short),[ne,Ne]);break;case"medium":const Mt=qe(p,"mediumTime"),jt=qe(p,"mediumDate");D=dt(ae(p,ct.Medium),[Mt,jt]);break;case"long":const ln=qe(p,"longTime"),ti=qe(p,"longDate");D=dt(ae(p,ct.Long),[ln,ti]);break;case"full":const Tn=qe(p,"fullTime"),vn=qe(p,"fullDate");D=dt(ae(p,ct.Full),[Tn,vn])}return D&&(ke[he][T]=D),D}function dt(p,T){return T&&(p=p.replace(/\{([^}]+)}/g,function(he,D){return null!=T&&D in T?T[D]:he})),p}function Re(p,T,he="-",D,ne){let Ne="";(p<0||ne&&p<=0)&&(ne?p=1-p:(p=-p,Ne=he));let Mt=String(p);for(;Mt.length<T;)Mt="0"+Mt;return D&&(Mt=Mt.slice(Mt.length-T)),Ne+Mt}function yt(p,T,he=0,D=!1,ne=!1){return function(Ne,Mt){let jt=function Yt(p,T){switch(p){case mt.FullYear:return T.getFullYear();case mt.Month:return T.getMonth();case mt.Date:return T.getDate();case mt.Hours:return T.getHours();case mt.Minutes:return T.getMinutes();case mt.Seconds:return T.getSeconds();case mt.FractionalSeconds:return T.getMilliseconds();case mt.Day:return T.getDay();default:throw new Error(`Unknown DateType value "${p}".`)}}(p,Ne);if((he>0||jt>-he)&&(jt+=he),p===mt.Hours)0===jt&&-12===he&&(jt=12);else if(p===mt.FractionalSeconds)return function st(p,T){return Re(p,3).substring(0,T)}(jt,T);const ln=Pe(Mt,Et.MinusSign);return Re(jt,T,ln,D,ne)}}function Gt(p,T,he=ze.Format,D=!1){return function(ne,Ne){return function tn(p,T,he,D,ne,Ne){switch(he){case xt.Months:return function mn(p,T,he){const D=(0,r.cg1)(p),Ne=nn([D[r.wAp.MonthsFormat],D[r.wAp.MonthsStandalone]],T);return nn(Ne,he)}(T,ne,D)[p.getMonth()];case xt.Days:return function on(p,T,he){const D=(0,r.cg1)(p),Ne=nn([D[r.wAp.DaysFormat],D[r.wAp.DaysStandalone]],T);return nn(Ne,he)}(T,ne,D)[p.getDay()];case xt.DayPeriods:const Mt=p.getHours(),jt=p.getMinutes();if(Ne){const ti=function sn(p){const T=(0,r.cg1)(p);return Nt(T),(T[r.wAp.ExtraData][2]||[]).map(D=>"string"==typeof D?In(D):[In(D[0]),In(D[1])])}(T),Tn=function dn(p,T,he){const D=(0,r.cg1)(p);Nt(D);const Ne=nn([D[r.wAp.ExtraData][0],D[r.wAp.ExtraData][1]],T)||[];return nn(Ne,he)||[]}(T,ne,D),vn=ti.findIndex(Mi=>{if(Array.isArray(Mi)){const[Jn,gi]=Mi,Ai=Mt>=Jn.hours&&jt>=Jn.minutes,Sr=Mt<gi.hours||Mt===gi.hours&&jt<gi.minutes;if(Jn.hours<gi.hours){if(Ai&&Sr)return!0}else if(Ai||Sr)return!0}else if(Mi.hours===Mt&&Mi.minutes===jt)return!0;return!1});if(-1!==vn)return Tn[vn]}return function un(p,T,he){const D=(0,r.cg1)(p),Ne=nn([D[r.wAp.DayPeriodsFormat],D[r.wAp.DayPeriodsStandalone]],T);return nn(Ne,he)}(T,ne,D)[Mt<12?0:1];case xt.Eras:return function Nn(p,T){return nn((0,r.cg1)(p)[r.wAp.Eras],T)}(T,D)[p.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${he}`)}}(ne,Ne,p,T,he,D)}}function En(p){return function(T,he,D){const ne=-1*D,Ne=Pe(he,Et.MinusSign),Mt=ne>0?Math.floor(ne/60):Math.ceil(ne/60);switch(p){case it.Short:return(ne>=0?"+":"")+Re(Mt,2,Ne)+Re(Math.abs(ne%60),2,Ne);case it.ShortGMT:return"GMT"+(ne>=0?"+":"")+Re(Mt,1,Ne);case it.Long:return"GMT"+(ne>=0?"+":"")+Re(Mt,2,Ne)+":"+Re(Math.abs(ne%60),2,Ne);case it.Extended:return 0===D?"Z":(ne>=0?"+":"")+Re(Mt,2,Ne)+":"+Re(Math.abs(ne%60),2,Ne);default:throw new Error(`Unknown zone width "${p}"`)}}}const jn=0,Vn=4;function Ge(p){return $t(p.getFullYear(),p.getMonth(),p.getDate()+(Vn-p.getDay()))}function ie(p,T=!1){return function(he,D){let ne;if(T){const Ne=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,Mt=he.getDate();ne=1+Math.floor((Mt+Ne)/7)}else{const Ne=Ge(he),Mt=function Mn(p){const T=$t(p,jn,1).getDay();return $t(p,0,1+(T<=Vn?Vn:Vn+7)-T)}(Ne.getFullYear()),jt=Ne.getTime()-Mt.getTime();ne=1+Math.round(jt/6048e5)}return Re(ne,p,Pe(D,Et.MinusSign))}}function ce(p,T=!1){return function(he,D){return Re(Ge(he).getFullYear(),p,Pe(D,Et.MinusSign),T)}}const We={};function Kt(p,T){p=p.replace(/:/g,"");const he=Date.parse("Jan 01, 1970 00:00:00 "+p)/6e4;return isNaN(he)?T:he}function re(p){return p instanceof Date&&!isNaN(p.valueOf())}const ue=/^(\d+)?\.((\d+)(-(\d+))?)?$/,W="0";function De(p){const T=parseInt(p);if(isNaN(T))throw new Error("Invalid integer literal when parsing "+p);return T}function Xn(p,T){T=encodeURIComponent(T);for(const he of p.split(";")){const D=he.indexOf("="),[ne,Ne]=-1==D?[he,""]:[he.slice(0,D),he.slice(D+1)];if(ne.trim()===T)return decodeURIComponent(Ne)}return null}const Si=/\s+/,Qn=[];let Bn=(()=>{var p;class T{constructor(D,ne,Ne,Mt){this._iterableDiffers=D,this._keyValueDiffers=ne,this._ngEl=Ne,this._renderer=Mt,this.initialClasses=Qn,this.stateMap=new Map}set klass(D){this.initialClasses=null!=D?D.trim().split(Si):Qn}set ngClass(D){this.rawClass="string"==typeof D?D.trim().split(Si):D}ngDoCheck(){for(const ne of this.initialClasses)this._updateState(ne,!0);const D=this.rawClass;if(Array.isArray(D)||D instanceof Set)for(const ne of D)this._updateState(ne,!0);else if(null!=D)for(const ne of Object.keys(D))this._updateState(ne,!!D[ne]);this._applyStateDiff()}_updateState(D,ne){const Ne=this.stateMap.get(D);void 0!==Ne?(Ne.enabled!==ne&&(Ne.changed=!0,Ne.enabled=ne),Ne.touched=!0):this.stateMap.set(D,{enabled:ne,changed:!0,touched:!0})}_applyStateDiff(){for(const D of this.stateMap){const ne=D[0],Ne=D[1];Ne.changed?(this._toggleClass(ne,Ne.enabled),Ne.changed=!1):Ne.touched||(Ne.enabled&&this._toggleClass(ne,!1),this.stateMap.delete(ne)),Ne.touched=!1}}_toggleClass(D,ne){(D=D.trim()).length>0&&D.split(Si).forEach(Ne=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Ne):this._renderer.removeClass(this._ngEl.nativeElement,Ne)})}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),T})(),zn=(()=>{var p;class T{constructor(D){this._viewContainerRef=D,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(D){return void 0!==D.ngComponentOutletNgModule||void 0!==D.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(D){return void 0!==D.ngComponentOutlet||void 0!==D.ngComponentOutletContent||void 0!==D.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(D)}ngOnChanges(D){if(this._needToReCreateComponentInstance(D)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const ne=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(D)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,r.Lck)(this.ngComponentOutletNgModule,Ci(ne)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Ci(ne)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:ne,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const D of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(D,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(D){for(const[ne,Ne]of this._inputsUsed)Ne?(D.setInput(ne,this.ngComponentOutletInputs[ne]),this._inputsUsed.set(ne,!1)):(D.setInput(ne,void 0),this._inputsUsed.delete(ne))}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.s_b))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[r.TTD]}),T})();function Ci(p){return p.get(r.h0i).injector}class ci{constructor(T,he,D,ne){this.$implicit=T,this.ngForOf=he,this.index=D,this.count=ne}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 $n=(()=>{var p;class T{set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}constructor(D,ne,Ne){this._viewContainer=D,this._template=ne,this._differs=Ne,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const ne=this._viewContainer;D.forEachOperation((Ne,Mt,jt)=>{if(null==Ne.previousIndex)ne.createEmbeddedView(this._template,new ci(Ne.item,this._ngForOf,-1,-1),null===jt?void 0:jt);else if(null==jt)ne.remove(null===Mt?void 0:Mt);else if(null!==Mt){const ln=ne.get(Mt);ne.move(ln,jt),zi(ln,Ne)}});for(let Ne=0,Mt=ne.length;Ne<Mt;Ne++){const ln=ne.get(Ne).context;ln.index=Ne,ln.count=Mt,ln.ngForOf=this._ngForOf}D.forEachIdentityChange(Ne=>{zi(ne.get(Ne.currentIndex),Ne)})}static ngTemplateContextGuard(D,ne){return!0}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),T})();function zi(p,T){p.context.$implicit=T.item}let Oi=(()=>{var p;class T{constructor(D,ne){this._viewContainer=D,this._context=new Ji,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){er("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){er("ngIfElse",D),this._elseTemplateRef=D,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(D,ne){return!0}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.s_b),r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),T})();class Ji{constructor(){this.$implicit=null,this.ngIf=null}}function er(p,T){if(T&&!T.createEmbeddedView)throw new Error(`${p} must be a TemplateRef, but received '${(0,r.AaK)(T)}'.`)}let Do=(()=>{var p;class T{constructor(D,ne,Ne){this._ngEl=D,this._differs=ne,this._renderer=Ne,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,ne){const[Ne,Mt]=D.split("."),jt=-1===Ne.indexOf("-")?void 0:r.JOm.DashCase;null!=ne?this._renderer.setStyle(this._ngEl.nativeElement,Ne,Mt?`${ne}${Mt}`:ne,jt):this._renderer.removeStyle(this._ngEl.nativeElement,Ne,jt)}_applyChanges(D){D.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),D.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),D.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),T})(),no=(()=>{var p;class T{constructor(D){this._viewContainerRef=D,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(D){if(D.ngTemplateOutlet||D.ngTemplateOutletInjector){const ne=this._viewContainerRef;if(this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ne,ngTemplateOutletContext:Mt,ngTemplateOutletInjector:jt}=this;this._viewRef=ne.createEmbeddedView(Ne,Mt,jt?{injector:jt}:void 0)}else this._viewRef=null}else this._viewRef&&D.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.s_b))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[r.TTD]}),T})();function or(p,T){return new r.vHH(2100,!1)}class Mr{createSubscription(T,he){return(0,r.rg0)(()=>T.subscribe({next:he,error:D=>{throw D}}))}dispose(T){(0,r.rg0)(()=>T.unsubscribe())}}class io{createSubscription(T,he){return T.then(he,D=>{throw D})}dispose(T){}}const Nr=new io,Lr=new Mr;let fr=(()=>{var p;class T{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,ne=>this._updateLatestValue(D,ne))}_selectStrategy(D){if((0,r.QGY)(D))return Nr;if((0,r.F4k)(D))return Lr;throw or()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,ne){D===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.sBO,16))},p.\u0275pipe=r.Yjl({name:"async",type:p,pure:!1,standalone:!0}),T})();const Ei=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Bi=new r.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Ii=(()=>{var p;class T{constructor(D,ne,Ne){this.locale=D,this.defaultTimezone=ne,this.defaultOptions=Ne}transform(D,ne,Ne,Mt){if(null==D||""===D||D!=D)return null;try{return Zt(D,ne??this.defaultOptions?.dateFormat??"mediumDate",Mt||this.locale,Ne??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(jt){throw or()}}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.soG,16),r.Y36(Ei,24),r.Y36(Bi,24))},p.\u0275pipe=r.Yjl({name:"date",type:p,pure:!0,standalone:!0}),T})(),Qt=(()=>{var p;class T{constructor(D){this._locale=D}transform(D,ne,Ne){if(!function _i(p){return!(null==p||""===p||p!=p)}(D))return null;Ne=Ne||this._locale;try{return function Le(p,T,he){return function k(p,T,he,D,ne,Ne,Mt=!1){let jt="",ln=!1;if(isFinite(p)){let ti=function Qe(p){let D,ne,Ne,Mt,jt,T=Math.abs(p)+"",he=0;for((ne=T.indexOf("."))>-1&&(T=T.replace(".","")),(Ne=T.search(/e/i))>0?(ne<0&&(ne=Ne),ne+=+T.slice(Ne+1),T=T.substring(0,Ne)):ne<0&&(ne=T.length),Ne=0;T.charAt(Ne)===W;Ne++);if(Ne===(jt=T.length))D=[0],ne=1;else{for(jt--;T.charAt(jt)===W;)jt--;for(ne-=Ne,D=[],Mt=0;Ne<=jt;Ne++,Mt++)D[Mt]=Number(T.charAt(Ne))}return ne>22&&(D=D.splice(0,21),he=ne-1,ne=1),{digits:D,exponent:he,integerLen:ne}}(p);Mt&&(ti=function Dt(p){if(0===p.digits[0])return p;const T=p.digits.length-p.integerLen;return p.exponent?p.exponent+=2:(0===T?p.digits.push(0,0):1===T&&p.digits.push(0),p.integerLen+=2),p}(ti));let Tn=T.minInt,vn=T.minFrac,Mi=T.maxFrac;if(Ne){const _r=Ne.match(ue);if(null===_r)throw new Error(`${Ne} is not a valid digit info`);const oi=_r[1],Hr=_r[3],Ir=_r[5];null!=oi&&(Tn=De(oi)),null!=Hr&&(vn=De(Hr)),null!=Ir?Mi=De(Ir):null!=Hr&&vn>Mi&&(Mi=vn)}!function tt(p,T,he){if(T>he)throw new Error(`The minimum number of digits after fraction (${T}) is higher than the maximum (${he}).`);let D=p.digits,ne=D.length-p.integerLen;const Ne=Math.min(Math.max(T,ne),he);let Mt=Ne+p.integerLen,jt=D[Mt];if(Mt>0){D.splice(Math.max(p.integerLen,Mt));for(let vn=Mt;vn<D.length;vn++)D[vn]=0}else{ne=Math.max(0,ne),p.integerLen=1,D.length=Math.max(1,Mt=Ne+1),D[0]=0;for(let vn=1;vn<Mt;vn++)D[vn]=0}if(jt>=5)if(Mt-1<0){for(let vn=0;vn>Mt;vn--)D.unshift(0),p.integerLen++;D.unshift(1),p.integerLen++}else D[Mt-1]++;for(;ne<Math.max(0,Ne);ne++)D.push(0);let ln=0!==Ne;const ti=T+p.integerLen,Tn=D.reduceRight(function(vn,Mi,Jn,gi){return gi[Jn]=(Mi+=vn)<10?Mi:Mi-10,ln&&(0===gi[Jn]&&Jn>=ti?gi.pop():ln=!1),Mi>=10?1:0},0);Tn&&(D.unshift(Tn),p.integerLen++)}(ti,vn,Mi);let Jn=ti.digits,gi=ti.integerLen;const Ai=ti.exponent;let Sr=[];for(ln=Jn.every(_r=>!_r);gi<Tn;gi++)Jn.unshift(0);for(;gi<0;gi++)Jn.unshift(0);gi>0?Sr=Jn.splice(gi,Jn.length):(Sr=Jn,Jn=[0]);const Qr=[];for(Jn.length>=T.lgSize&&Qr.unshift(Jn.splice(-T.lgSize,Jn.length).join(""));Jn.length>T.gSize;)Qr.unshift(Jn.splice(-T.gSize,Jn.length).join(""));Jn.length&&Qr.unshift(Jn.join("")),jt=Qr.join(Pe(he,D)),Sr.length&&(jt+=Pe(he,ne)+Sr.join("")),Ai&&(jt+=Pe(he,Et.Exponential)+"+"+Ai)}else jt=Pe(he,Et.Infinity);return jt=p<0&&!ln?T.negPre+jt+T.negSuf:T.posPre+jt+T.posSuf,jt}(p,function Ct(p,T="-"){const he={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},D=p.split(";"),ne=D[0],Ne=D[1],Mt=-1!==ne.indexOf(".")?ne.split("."):[ne.substring(0,ne.lastIndexOf(W)+1),ne.substring(ne.lastIndexOf(W)+1)],jt=Mt[0],ln=Mt[1]||"";he.posPre=jt.substring(0,jt.indexOf("#"));for(let Tn=0;Tn<ln.length;Tn++){const vn=ln.charAt(Tn);vn===W?he.minFrac=he.maxFrac=Tn+1:"#"===vn?he.maxFrac=Tn+1:he.posSuf+=vn}const ti=jt.split(",");if(he.gSize=ti[1]?ti[1].length:0,he.lgSize=ti[2]||ti[1]?(ti[2]||ti[1]).length:0,Ne){const Tn=ne.length-he.posPre.length-he.posSuf.length,vn=Ne.indexOf("#");he.negPre=Ne.substring(0,vn).replace(/'/g,""),he.negSuf=Ne.slice(vn+Tn).replace(/'/g,"")}else he.negPre=T+he.posPre,he.negSuf=he.posSuf;return he}(function F(p,T){return(0,r.cg1)(p)[r.wAp.NumberFormats][T]}(T,de.Decimal),Pe(T,Et.MinusSign)),T,Et.Group,Et.Decimal,he)}(function ar(p){if("string"==typeof p&&!isNaN(Number(p)-parseFloat(p)))return Number(p);if("number"!=typeof p)throw new Error(`${p} is not a number`);return p}(D),Ne,ne)}catch(Mt){throw or()}}}return(p=T).\u0275fac=function(D){return new(D||p)(r.Y36(r.soG,16))},p.\u0275pipe=r.Yjl({name:"number",type:p,pure:!0,standalone:!0}),T})();let vi=(()=>{var p;class T{transform(D,ne,Ne){if(null==D)return null;if(!this.supports(D))throw or();return D.slice(ne,Ne)}supports(D){return"string"==typeof D||Array.isArray(D)}}return(p=T).\u0275fac=function(D){return new(D||p)},p.\u0275pipe=r.Yjl({name:"slice",type:p,pure:!1,standalone:!0}),T})(),ai=(()=>{var p;class T{}return(p=T).\u0275fac=function(D){return new(D||p)},p.\u0275mod=r.oAB({type:p}),p.\u0275inj=r.cJS({}),T})();const Gi="browser",He="server";function wt(p){return p===Gi}function Ot(p){return p===He}let xn=(()=>{var p;class T{}return(p=T).\u0275prov=(0,r.Yz7)({token:p,providedIn:"root",factory:()=>new Ui((0,r.LFG)(J),window)}),T})();class Ui{constructor(T,he){this.document=T,this.window=he,this.offset=()=>[0,0]}setOffset(T){this.offset=Array.isArray(T)?()=>T:T}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(T){this.supportsScrolling()&&this.window.scrollTo(T[0],T[1])}scrollToAnchor(T){if(!this.supportsScrolling())return;const he=function Ri(p,T){const he=p.getElementById(T)||p.getElementsByName(T)[0];if(he)return he;if("function"==typeof p.createTreeWalker&&p.body&&"function"==typeof p.body.attachShadow){const D=p.createTreeWalker(p.body,NodeFilter.SHOW_ELEMENT);let ne=D.currentNode;for(;ne;){const Ne=ne.shadowRoot;if(Ne){const Mt=Ne.getElementById(T)||Ne.querySelector(`[name="${T}"]`);if(Mt)return Mt}ne=D.nextNode()}}return null}(this.document,T);he&&(this.scrollToElement(he),he.focus())}setHistoryScrollRestoration(T){this.supportsScrolling()&&(this.window.history.scrollRestoration=T)}scrollToElement(T){const he=T.getBoundingClientRect(),D=he.left+this.window.pageXOffset,ne=he.top+this.window.pageYOffset,Ne=this.offset();this.window.scrollTo(D-Ne[0],ne-Ne[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class tr{}},9862:(It,Fe,g)=>{g.d(Fe,{JF:()=>ue,TP:()=>Nt,WM:()=>Ve,eN:()=>Xe});var r=g(5879),c=g(2096),R=g(2459),te=g(5592),Z=g(6328),J=g(2181),q=g(7398),le=g(4716),K=g(4664),N=g(6814);class z{}class fe{}class Ve{constructor(L){this.normalizedNames=new Map,this.lazyUpdate=null,L?"string"==typeof L?this.lazyInit=()=>{this.headers=new Map,L.split("\n").forEach(Ae=>{const Le=Ae.indexOf(":");if(Le>0){const Ct=Ae.slice(0,Le),Dt=Ct.toLowerCase(),Qe=Ae.slice(Le+1).trim();this.maybeSetNormalizedName(Ct,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(Qe):this.headers.set(Dt,[Qe])}})}:typeof Headers<"u"&&L instanceof Headers?(this.headers=new Map,L.forEach((Ae,Le)=>{this.setHeaderEntries(Le,Ae)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(L).forEach(([Ae,Le])=>{this.setHeaderEntries(Ae,Le)})}:this.headers=new Map}has(L){return this.init(),this.headers.has(L.toLowerCase())}get(L){this.init();const Ae=this.headers.get(L.toLowerCase());return Ae&&Ae.length>0?Ae[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(L){return this.init(),this.headers.get(L.toLowerCase())||null}append(L,Ae){return this.clone({name:L,value:Ae,op:"a"})}set(L,Ae){return this.clone({name:L,value:Ae,op:"s"})}delete(L,Ae){return this.clone({name:L,value:Ae,op:"d"})}maybeSetNormalizedName(L,Ae){this.normalizedNames.has(Ae)||this.normalizedNames.set(Ae,L)}init(){this.lazyInit&&(this.lazyInit instanceof Ve?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(L=>this.applyUpdate(L)),this.lazyUpdate=null))}copyFrom(L){L.init(),Array.from(L.headers.keys()).forEach(Ae=>{this.headers.set(Ae,L.headers.get(Ae)),this.normalizedNames.set(Ae,L.normalizedNames.get(Ae))})}clone(L){const Ae=new Ve;return Ae.lazyInit=this.lazyInit&&this.lazyInit instanceof Ve?this.lazyInit:this,Ae.lazyUpdate=(this.lazyUpdate||[]).concat([L]),Ae}applyUpdate(L){const Ae=L.name.toLowerCase();switch(L.op){case"a":case"s":let Le=L.value;if("string"==typeof Le&&(Le=[Le]),0===Le.length)return;this.maybeSetNormalizedName(L.name,Ae);const Ct=("a"===L.op?this.headers.get(Ae):void 0)||[];Ct.push(...Le),this.headers.set(Ae,Ct);break;case"d":const Dt=L.value;if(Dt){let Qe=this.headers.get(Ae);if(!Qe)return;Qe=Qe.filter(tt=>-1===Dt.indexOf(tt)),0===Qe.length?(this.headers.delete(Ae),this.normalizedNames.delete(Ae)):this.headers.set(Ae,Qe)}else this.headers.delete(Ae),this.normalizedNames.delete(Ae)}}setHeaderEntries(L,Ae){const Le=(Array.isArray(Ae)?Ae:[Ae]).map(Dt=>Dt.toString()),Ct=L.toLowerCase();this.headers.set(Ct,Le),this.maybeSetNormalizedName(L,Ct)}forEach(L){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ae=>L(this.normalizedNames.get(Ae),this.headers.get(Ae)))}}class Je{encodeKey(L){return Ke(L)}encodeValue(L){return Ke(L)}decodeKey(L){return decodeURIComponent(L)}decodeValue(L){return decodeURIComponent(L)}}const Ue=/%(\d[a-f0-9])/gi,$e={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ke(k){return encodeURIComponent(k).replace(Ue,(L,Ae)=>$e[Ae]??L)}function lt(k){return`${k}`}class ee{constructor(L={}){if(this.updates=null,this.cloneFrom=null,this.encoder=L.encoder||new Je,L.fromString){if(L.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Se(k,L){const Ae=new Map;return k.length>0&&k.replace(/^\?/,"").split("&").forEach(Ct=>{const Dt=Ct.indexOf("="),[Qe,tt]=-1==Dt?[L.decodeKey(Ct),""]:[L.decodeKey(Ct.slice(0,Dt)),L.decodeValue(Ct.slice(Dt+1))],De=Ae.get(Qe)||[];De.push(tt),Ae.set(Qe,De)}),Ae}(L.fromString,this.encoder)}else L.fromObject?(this.map=new Map,Object.keys(L.fromObject).forEach(Ae=>{const Le=L.fromObject[Ae],Ct=Array.isArray(Le)?Le.map(lt):[lt(Le)];this.map.set(Ae,Ct)})):this.map=null}has(L){return this.init(),this.map.has(L)}get(L){this.init();const Ae=this.map.get(L);return Ae?Ae[0]:null}getAll(L){return this.init(),this.map.get(L)||null}keys(){return this.init(),Array.from(this.map.keys())}append(L,Ae){return this.clone({param:L,value:Ae,op:"a"})}appendAll(L){const Ae=[];return Object.keys(L).forEach(Le=>{const Ct=L[Le];Array.isArray(Ct)?Ct.forEach(Dt=>{Ae.push({param:Le,value:Dt,op:"a"})}):Ae.push({param:Le,value:Ct,op:"a"})}),this.clone(Ae)}set(L,Ae){return this.clone({param:L,value:Ae,op:"s"})}delete(L,Ae){return this.clone({param:L,value:Ae,op:"d"})}toString(){return this.init(),this.keys().map(L=>{const Ae=this.encoder.encodeKey(L);return this.map.get(L).map(Le=>Ae+"="+this.encoder.encodeValue(Le)).join("&")}).filter(L=>""!==L).join("&")}clone(L){const Ae=new ee({encoder:this.encoder});return Ae.cloneFrom=this.cloneFrom||this,Ae.updates=(this.updates||[]).concat(L),Ae}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(L=>this.map.set(L,this.cloneFrom.map.get(L))),this.updates.forEach(L=>{switch(L.op){case"a":case"s":const Ae=("a"===L.op?this.map.get(L.param):void 0)||[];Ae.push(lt(L.value)),this.map.set(L.param,Ae);break;case"d":if(void 0===L.value){this.map.delete(L.param);break}{let Le=this.map.get(L.param)||[];const Ct=Le.indexOf(lt(L.value));-1!==Ct&&Le.splice(Ct,1),Le.length>0?this.map.set(L.param,Le):this.map.delete(L.param)}}}),this.cloneFrom=this.updates=null)}}class de{constructor(){this.map=new Map}set(L,Ae){return this.map.set(L,Ae),this}get(L){return this.map.has(L)||this.map.set(L,L.defaultValue()),this.map.get(L)}delete(L){return this.map.delete(L),this}has(L){return this.map.has(L)}keys(){return this.map.keys()}}function ze(k){return typeof ArrayBuffer<"u"&&k instanceof ArrayBuffer}function Te(k){return typeof Blob<"u"&&k instanceof Blob}function ct(k){return typeof FormData<"u"&&k instanceof FormData}class Bt{constructor(L,Ae,Le,Ct){let Dt;if(this.url=Ae,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=L.toUpperCase(),function ve(k){switch(k){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ct?(this.body=void 0!==Le?Le:null,Dt=Ct):Dt=Le,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new Ve),this.context||(this.context=new de),this.params){const Qe=this.params.toString();if(0===Qe.length)this.urlWithParams=Ae;else{const tt=Ae.indexOf("?");this.urlWithParams=Ae+(-1===tt?"?":tt<Ae.length-1?"&":"")+Qe}}else this.params=new ee,this.urlWithParams=Ae}serializeBody(){return null===this.body?null:ze(this.body)||Te(this.body)||ct(this.body)||function Et(k){return typeof URLSearchParams<"u"&&k instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ee?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||ct(this.body)?null:Te(this.body)?this.body.type||null:ze(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ee?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(L={}){const Ae=L.method||this.method,Le=L.url||this.url,Ct=L.responseType||this.responseType,Dt=void 0!==L.body?L.body:this.body,Qe=void 0!==L.withCredentials?L.withCredentials:this.withCredentials,tt=void 0!==L.reportProgress?L.reportProgress:this.reportProgress;let De=L.headers||this.headers,rt=L.params||this.params;const Xt=L.context??this.context;return void 0!==L.setHeaders&&(De=Object.keys(L.setHeaders).reduce((An,Pn)=>An.set(Pn,L.setHeaders[Pn]),De)),L.setParams&&(rt=Object.keys(L.setParams).reduce((An,Pn)=>An.set(Pn,L.setParams[Pn]),rt)),new Bt(Ae,Le,Dt,{params:rt,headers:De,context:Xt,reportProgress:tt,responseType:Ct,withCredentials:Qe})}}var Jt=function(k){return k[k.Sent=0]="Sent",k[k.UploadProgress=1]="UploadProgress",k[k.ResponseHeader=2]="ResponseHeader",k[k.DownloadProgress=3]="DownloadProgress",k[k.Response=4]="Response",k[k.User=5]="User",k}(Jt||{});class un{constructor(L,Ae=200,Le="OK"){this.headers=L.headers||new Ve,this.status=void 0!==L.status?L.status:Ae,this.statusText=L.statusText||Le,this.url=L.url||null,this.ok=this.status>=200&&this.status<300}}class on extends un{constructor(L={}){super(L),this.type=Jt.ResponseHeader}clone(L={}){return new on({headers:L.headers||this.headers,status:void 0!==L.status?L.status:this.status,statusText:L.statusText||this.statusText,url:L.url||this.url||void 0})}}class mn extends un{constructor(L={}){super(L),this.type=Jt.Response,this.body=void 0!==L.body?L.body:null}clone(L={}){return new mn({body:void 0!==L.body?L.body:this.body,headers:L.headers||this.headers,status:void 0!==L.status?L.status:this.status,statusText:L.statusText||this.statusText,url:L.url||this.url||void 0})}}class Nn extends un{constructor(L){super(L,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${L.url||"(unknown url)"}`:`Http failure response for ${L.url||"(unknown url)"}: ${L.status} ${L.statusText}`,this.error=L.error||null}}function Yn(k,L){return{body:L,headers:k.headers,context:k.context,observe:k.observe,params:k.params,reportProgress:k.reportProgress,responseType:k.responseType,withCredentials:k.withCredentials}}let Xe=(()=>{var k;class L{constructor(Le){this.handler=Le}request(Le,Ct,Dt={}){let Qe;if(Le instanceof Bt)Qe=Le;else{let rt,Xt;rt=Dt.headers instanceof Ve?Dt.headers:new Ve(Dt.headers),Dt.params&&(Xt=Dt.params instanceof ee?Dt.params:new ee({fromObject:Dt.params})),Qe=new Bt(Le,Ct,void 0!==Dt.body?Dt.body:null,{headers:rt,context:Dt.context,params:Xt,reportProgress:Dt.reportProgress,responseType:Dt.responseType||"json",withCredentials:Dt.withCredentials})}const tt=(0,c.of)(Qe).pipe((0,Z.b)(rt=>this.handler.handle(rt)));if(Le instanceof Bt||"events"===Dt.observe)return tt;const De=tt.pipe((0,J.h)(rt=>rt instanceof mn));switch(Dt.observe||"body"){case"body":switch(Qe.responseType){case"arraybuffer":return De.pipe((0,q.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rt.body}));case"blob":return De.pipe((0,q.U)(rt=>{if(null!==rt.body&&!(rt.body instanceof Blob))throw new Error("Response is not a Blob.");return rt.body}));case"text":return De.pipe((0,q.U)(rt=>{if(null!==rt.body&&"string"!=typeof rt.body)throw new Error("Response is not a string.");return rt.body}));default:return De.pipe((0,q.U)(rt=>rt.body))}case"response":return De;default:throw new Error(`Unreachable: unhandled observe type ${Dt.observe}}`)}}delete(Le,Ct={}){return this.request("DELETE",Le,Ct)}get(Le,Ct={}){return this.request("GET",Le,Ct)}head(Le,Ct={}){return this.request("HEAD",Le,Ct)}jsonp(Le,Ct){return this.request("JSONP",Le,{params:(new ee).append(Ct,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,Ct={}){return this.request("OPTIONS",Le,Ct)}patch(Le,Ct,Dt={}){return this.request("PATCH",Le,Yn(Dt,Ct))}post(Le,Ct,Dt={}){return this.request("POST",Le,Yn(Dt,Ct))}put(Le,Ct,Dt={}){return this.request("PUT",Le,Yn(Dt,Ct))}}return(k=L).\u0275fac=function(Le){return new(Le||k)(r.LFG(z))},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac}),L})();function vt(k,L){return L(k)}function At(k,L){return(Ae,Le)=>L.intercept(Ae,{handle:Ct=>k(Ct,Le)})}const Nt=new r.OlP(""),sn=new r.OlP(""),dn=new r.OlP("");function Cn(){let k=null;return(L,Ae)=>{null===k&&(k=((0,r.f3M)(Nt,{optional:!0})??[]).reduceRight(At,vt));const Le=(0,r.f3M)(r.HDt),Ct=Le.add();return k(L,Ae).pipe((0,le.x)(()=>Le.remove(Ct)))}}let nn=(()=>{var k;class L extends z{constructor(Le,Ct){super(),this.backend=Le,this.injector=Ct,this.chain=null,this.pendingTasks=(0,r.f3M)(r.HDt)}handle(Le){if(null===this.chain){const Dt=Array.from(new Set([...this.injector.get(sn),...this.injector.get(dn,[])]));this.chain=Dt.reduceRight((Qe,tt)=>function Ht(k,L,Ae){return(Le,Ct)=>Ae.runInContext(()=>L(Le,Dt=>k(Dt,Ct)))}(Qe,tt,this.injector),vt)}const Ct=this.pendingTasks.add();return this.chain(Le,Dt=>this.backend.handle(Dt)).pipe((0,le.x)(()=>this.pendingTasks.remove(Ct)))}}return(k=L).\u0275fac=function(Le){return new(Le||k)(r.LFG(fe),r.LFG(r.lqb))},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac}),L})();const $t=/^\)\]\}',?\n/;let dt=(()=>{var k;class L{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new r.vHH(-2800,!1);const Ct=this.xhrFactory;return(Ct.\u0275loadImpl?(0,R.D)(Ct.\u0275loadImpl()):(0,c.of)(null)).pipe((0,K.w)(()=>new te.y(Qe=>{const tt=Ct.build();if(tt.open(Le.method,Le.urlWithParams),Le.withCredentials&&(tt.withCredentials=!0),Le.headers.forEach((Bn,zn)=>tt.setRequestHeader(Bn,zn.join(","))),Le.headers.has("Accept")||tt.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const Bn=Le.detectContentTypeHeader();null!==Bn&&tt.setRequestHeader("Content-Type",Bn)}if(Le.responseType){const Bn=Le.responseType.toLowerCase();tt.responseType="json"!==Bn?Bn:"text"}const De=Le.serializeBody();let rt=null;const Xt=()=>{if(null!==rt)return rt;const Bn=tt.statusText||"OK",zn=new Ve(tt.getAllResponseHeaders()),Ci=function qe(k){return"responseURL"in k&&k.responseURL?k.responseURL:/^X-Request-URL:/m.test(k.getAllResponseHeaders())?k.getResponseHeader("X-Request-URL"):null}(tt)||Le.url;return rt=new on({headers:zn,status:tt.status,statusText:Bn,url:Ci}),rt},An=()=>{let{headers:Bn,status:zn,statusText:Ci,url:ci}=Xt(),$n=null;204!==zn&&($n=typeof tt.response>"u"?tt.responseText:tt.response),0===zn&&(zn=$n?200:0);let zi=zn>=200&&zn<300;if("json"===Le.responseType&&"string"==typeof $n){const Xi=$n;$n=$n.replace($t,"");try{$n=""!==$n?JSON.parse($n):null}catch(Oi){$n=Xi,zi&&(zi=!1,$n={error:Oi,text:$n})}}zi?(Qe.next(new mn({body:$n,headers:Bn,status:zn,statusText:Ci,url:ci||void 0})),Qe.complete()):Qe.error(new Nn({error:$n,headers:Bn,status:zn,statusText:Ci,url:ci||void 0}))},Pn=Bn=>{const{url:zn}=Xt(),Ci=new Nn({error:Bn,status:tt.status||0,statusText:tt.statusText||"Unknown Error",url:zn||void 0});Qe.error(Ci)};let Xn=!1;const Si=Bn=>{Xn||(Qe.next(Xt()),Xn=!0);let zn={type:Jt.DownloadProgress,loaded:Bn.loaded};Bn.lengthComputable&&(zn.total=Bn.total),"text"===Le.responseType&&tt.responseText&&(zn.partialText=tt.responseText),Qe.next(zn)},Qn=Bn=>{let zn={type:Jt.UploadProgress,loaded:Bn.loaded};Bn.lengthComputable&&(zn.total=Bn.total),Qe.next(zn)};return tt.addEventListener("load",An),tt.addEventListener("error",Pn),tt.addEventListener("timeout",Pn),tt.addEventListener("abort",Pn),Le.reportProgress&&(tt.addEventListener("progress",Si),null!==De&&tt.upload&&tt.upload.addEventListener("progress",Qn)),tt.send(De),Qe.next({type:Jt.Sent}),()=>{tt.removeEventListener("error",Pn),tt.removeEventListener("abort",Pn),tt.removeEventListener("load",An),tt.removeEventListener("timeout",Pn),Le.reportProgress&&(tt.removeEventListener("progress",Si),null!==De&&tt.upload&&tt.upload.removeEventListener("progress",Qn)),tt.readyState!==tt.DONE&&tt.abort()}})))}}return(k=L).\u0275fac=function(Le){return new(Le||k)(r.LFG(N.JF))},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac}),L})();const Re=new r.OlP("XSRF_ENABLED"),yt=new r.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Gt=new r.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class tn{}let En=(()=>{var k;class L{constructor(Le,Ct,Dt){this.doc=Le,this.platform=Ct,this.cookieName=Dt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,N.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return(k=L).\u0275fac=function(Le){return new(Le||k)(r.LFG(N.K0),r.LFG(r.Lbi),r.LFG(yt))},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac}),L})();function jn(k,L){const Ae=k.url.toLowerCase();if(!(0,r.f3M)(Re)||"GET"===k.method||"HEAD"===k.method||Ae.startsWith("http://")||Ae.startsWith("https://"))return L(k);const Le=(0,r.f3M)(tn).getToken(),Ct=(0,r.f3M)(Gt);return null!=Le&&!k.headers.has(Ct)&&(k=k.clone({headers:k.headers.set(Ct,Le)})),L(k)}var Mn=function(k){return k[k.Interceptors=0]="Interceptors",k[k.LegacyInterceptors=1]="LegacyInterceptors",k[k.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",k[k.NoXsrfProtection=3]="NoXsrfProtection",k[k.JsonpSupport=4]="JsonpSupport",k[k.RequestsMadeViaParent=5]="RequestsMadeViaParent",k[k.Fetch=6]="Fetch",k}(Mn||{});function Ge(k,L){return{\u0275kind:k,\u0275providers:L}}function ie(...k){const L=[Xe,dt,nn,{provide:z,useExisting:nn},{provide:fe,useExisting:dt},{provide:sn,useValue:jn,multi:!0},{provide:Re,useValue:!0},{provide:tn,useClass:En}];for(const Ae of k)L.push(...Ae.\u0275providers);return(0,r.MR2)(L)}const We=new r.OlP("LEGACY_INTERCEPTOR_FN");let ue=(()=>{var k;class L{}return(k=L).\u0275fac=function(Le){return new(Le||k)},k.\u0275mod=r.oAB({type:k}),k.\u0275inj=r.cJS({providers:[ie(Ge(Mn.LegacyInterceptors,[{provide:We,useFactory:Cn},{provide:sn,useExisting:We,multi:!0}]))]}),L})()},5879:(It,Fe,g)=>{g.d(Fe,{$8M:()=>Qc,$WT:()=>Ii,$Z:()=>Jf,AFp:()=>Df,ALo:()=>Fm,AaK:()=>fe,AsE:()=>wd,BQk:()=>Ic,CHM:()=>_s,CRH:()=>Xm,Dn7:()=>Lm,EJc:()=>iw,EiD:()=>hf,EpF:()=>zp,F$t:()=>qp,F4k:()=>Gp,FYo:()=>Of,FiY:()=>Ul,G48:()=>zw,Gf:()=>Qm,GfV:()=>Pf,GkF:()=>fd,Gpc:()=>Je,Gre:()=>xg,HDt:()=>C_,Hsn:()=>Xp,Ikx:()=>Md,JOm:()=>Kl,JVY:()=>Ey,JZr:()=>lt,KtG:()=>Rs,L6k:()=>Dy,LAX:()=>My,LFG:()=>W,LSH:()=>Cu,Lbi:()=>xu,Lck:()=>YE,MAs:()=>Hp,MGl:()=>xc,MMx:()=>_m,MR2:()=>Du,NdJ:()=>gd,Ojb:()=>Xy,OlP:()=>yi,Oqu:()=>Dd,P3R:()=>gf,PXZ:()=>kw,Q6J:()=>ud,QGY:()=>pd,QbO:()=>qy,Qsj:()=>p0,R0b:()=>to,RDi:()=>gy,Rgc:()=>Fl,SBq:()=>ml,Sil:()=>sw,Suo:()=>qm,TTD:()=>hs,TgZ:()=>Ac,Tol:()=>pg,Udp:()=>bd,VKq:()=>Mm,VuI:()=>vM,W1O:()=>n_,WLB:()=>Am,X6Q:()=>$w,XFs:()=>it,Xpm:()=>Mr,Xq5:()=>Mp,Xts:()=>dl,Y36:()=>ka,YKP:()=>gm,YNc:()=>Bp,Yjl:()=>Yi,Yz7:()=>Nt,Z0I:()=>nn,ZZ4:()=>lh,_Bn:()=>pm,_UZ:()=>hd,_Vd:()=>gl,_c5:()=>sM,_uU:()=>Cg,aQg:()=>ch,c2e:()=>b_,cJS:()=>dn,cg1:()=>Td,d8E:()=>Ad,dDg:()=>Ow,dqk:()=>dt,eBb:()=>wy,eFA:()=>N_,eJc:()=>zd,ekj:()=>Cd,eoX:()=>P_,f3M:()=>E,g9A:()=>wf,h0i:()=>ua,hGG:()=>aM,hij:()=>Rc,iGM:()=>Zm,ifc:()=>Dt,ip1:()=>y_,jDz:()=>vm,kEZ:()=>Tm,kL8:()=>Ug,l5B:()=>Sm,lG2:()=>Pi,lcZ:()=>km,lqb:()=>ys,lri:()=>x_,mCW:()=>ic,n5z:()=>fh,n_E:()=>Bc,oAB:()=>fr,oJD:()=>ff,oxw:()=>Qp,pB0:()=>Ay,q3G:()=>oa,q4F:()=>Rf,qFp:()=>bM,qLn:()=>Fa,qOj:()=>nd,qZA:()=>Tc,qzn:()=>Sa,rWj:()=>O_,rg0:()=>Xo,s9C:()=>md,sBO:()=>Gw,s_b:()=>Hc,soG:()=>$c,tBr:()=>vh,tb:()=>nh,tp0:()=>Hl,uIk:()=>rd,vHH:()=>ee,vpe:()=>ws,wAp:()=>Ka,xi3:()=>Nm,xp6:()=>qf,ynx:()=>Sc,z2F:()=>Xa,z3N:()=>Ns,zSh:()=>Au,zs3:()=>rs});var r=g(8645),c=g(7394),R=g(5619),te=g(5592),Z=g(3019),J=g(2096),q=g(3020),le=g(4664),K=g(3997);function N(e){for(let t in e)if(e[t]===N)return t;throw Error("Could not find renamed property on target object.")}function z(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function fe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(fe).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 Ve(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const je=N({__forward_ref__:N});function Je(e){return e.__forward_ref__=Je,e.toString=function(){return fe(this())},e}function Se(e){return Ue(e)?e():e}function Ue(e){return"function"==typeof e&&e.hasOwnProperty(je)&&e.__forward_ref__===Je}function $e(e){return e&&!!e.\u0275providers}const lt="https://g.co/ng/security#xss";class ee extends Error{constructor(t,n){super(function Ie(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function de(e){return"string"==typeof e?e:null==e?"":String(e)}function Et(e,t){throw new ee(-201,!1)}function oe(e,t){null==e&&function _e(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function Nt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Cn(e){return In(e,$)||In(e,ke)}function nn(e){return null!==Cn(e)}function In(e,t){return e.hasOwnProperty(t)?e[t]:null}function pt(e){return e&&(e.hasOwnProperty(be)||e.hasOwnProperty(ut))?e[be]:null}const $=N({\u0275prov:N}),be=N({\u0275inj:N}),ke=N({ngInjectableDef:N}),ut=N({ngInjectorDef:N});var it=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(it||{});let mt;function Zt(e){const t=mt;return mt=e,t}function $t(e,t,n){const i=Cn(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&it.Optional?null:void 0!==t?t:void Et(fe(e))}const dt=globalThis,We={},St="__NG_DI_FLAG__",Kt="ngTempTokenPath",ye=/\n/gm,X="__source";let re;function Be(e){const t=re;return re=e,t}function _t(e,t=it.Default){if(void 0===re)throw new ee(-203,!1);return null===re?$t(e,void 0,t):re.get(e,t&it.Optional?null:void 0,t)}function W(e,t=it.Default){return(function xt(){return mt}()||_t)(Se(e),t)}function E(e,t=it.Default){return W(e,P(t))}function P(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function B(e){const t=[];for(let n=0;n<e.length;n++){const i=Se(e[n]);if(Array.isArray(i)){if(0===i.length)throw new ee(900,!1);let o,s=it.Default;for(let l=0;l<i.length;l++){const d=i[l],v=k(d);"number"==typeof v?-1===v?o=d.token:s|=v:o=d}t.push(W(o,s))}else t.push(W(i))}return t}function V(e,t){return e[St]=t,e.prototype[St]=t,e}function k(e){return e[St]}function Le(e){return{toString:e}.toString()}var Ct=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ct||{}),Dt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Dt||{});const Qe={},tt=[],De=N({\u0275cmp:N}),rt=N({\u0275dir:N}),Xt=N({\u0275pipe:N}),An=N({\u0275mod:N}),Pn=N({\u0275fac:N}),Xn=N({__NG_ELEMENT_ID__:N}),Si=N({__NG_ENV_ID__:N});function Qn(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}}function Bn(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++],l=n[i++],d=n[i++];e.setAttribute(t,l,d,s)}else{const s=o,l=n[++i];Ci(s)?e.setProperty(t,s,l):e.setAttribute(t,s,l),i++}}return i}function zn(e){return 3===e||4===e||6===e}function Ci(e){return 64===e.charCodeAt(0)}function ci(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||$n(e,n,o,null,-1===n||2===n?t[++i]:null)}}return e}function $n(e,t,n,i,o){let s=0,l=e.length;if(-1===t)l=-1;else for(;s<e.length;){const d=e[s++];if("number"==typeof d){if(d===t){l=-1;break}if(d>t){l=s-1;break}}}for(;s<e.length;){const d=e[s];if("number"==typeof d)break;if(d===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!==l&&(e.splice(l,0,t),s=l+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==o&&e.splice(s++,0,o)}const zi="ng-template";function Xi(e,t,n){let i=0,o=!0;for(;i<e.length;){let s=e[i++];if("string"==typeof s&&o){const l=e[i++];if(n&&"class"===s&&-1!==Qn(l.toLowerCase(),t,0))return!0}else{if(1===s){for(;i<e.length&&"string"==typeof(s=e[i++]);)if(s.toLowerCase()===t)return!0;return!1}"number"==typeof s&&(o=!1)}}return!1}function Oi(e){return 4===e.type&&e.value!==zi}function Ji(e,t,n){return t===(4!==e.type||n?e.value:zi)}function er(e,t,n){let i=4;const o=e.attrs||[],s=function jo(e){for(let t=0;t<e.length;t++)if(zn(e[t]))return t;return e.length}(o);let l=!1;for(let d=0;d<t.length;d++){const v=t[d];if("number"!=typeof v){if(!l)if(4&i){if(i=2|1&i,""!==v&&!Ji(e,v,n)||""===v&&1===t.length){if(si(i))return!1;l=!0}}else{const O=8&i?v:t[++d];if(8&i&&null!==e.attrs){if(!Xi(e.attrs,O,n)){if(si(i))return!1;l=!0}continue}const me=Li(8&i?"class":v,o,Oi(e),n);if(-1===me){if(si(i))return!1;l=!0;continue}if(""!==O){let Ye;Ye=me>s?"":o[me+1].toLowerCase();const nt=8&i?Ye:null;if(nt&&-1!==Qn(nt,O,0)||2&i&&O!==Ye){if(si(i))return!1;l=!0}}}}else{if(!l&&!si(i)&&!si(v))return!1;if(l&&si(v))continue;l=!1,i=v|1&i}}return si(i)||l}function si(e){return 0==(1&e)}function Li(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let s=!1;for(;o<t.length;){const l=t[o];if(l===e)return o;if(3===l||6===l)s=!0;else{if(1===l||2===l){let d=t[++o];for(;"string"==typeof d;)d=t[++o];continue}if(4===l)break;if(0===l){o+=4;continue}}o+=s?1:2}return-1}return function po(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 kr(e,t,n=!1){for(let i=0;i<t.length;i++)if(er(e,t[i],n))return!0;return!1}function wr(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 Do(e,t){return e?":not("+t.trim()+")":t}function no(e){let t=e[0],n=1,i=2,o="",s=!1;for(;n<e.length;){let l=e[n];if("string"==typeof l)if(2&i){const d=e[++n];o+="["+l+(d.length>0?'="'+d+'"':"")+"]"}else 8&i?o+="."+l:4&i&&(o+=" "+l);else""!==o&&!si(l)&&(t+=Do(s,o),o=""),i=l,s=s||!si(i);n++}return""!==o&&(t+=Do(s,o)),t}function Mr(e){return Le(()=>{const t=wo(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ct.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Dt.Emulated,styles:e.styles||tt,_:null,schemas:e.schemas||null,tView:null,id:""};oo(n);const i=e.dependencies;return n.directiveDefs=br(i,!1),n.pipeDefs=br(i,!0),n.id=function Wr(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Nr(e){return Ln(e)||Ei(e)}function Lr(e){return null!==e}function fr(e){return Le(()=>({type:e.type,bootstrap:e.bootstrap||tt,declarations:e.declarations||tt,imports:e.imports||tt,exports:e.exports||tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Br(e,t){if(null==e)return Qe;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}function Pi(e){return Le(()=>{const t=wo(e);return oo(t),t})}function Yi(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 Ln(e){return e[De]||null}function Ei(e){return e[rt]||null}function Bi(e){return e[Xt]||null}function Ii(e){const t=Ln(e)||Ei(e)||Bi(e);return null!==t&&t.standalone}function Vi(e,t){const n=e[An]||null;if(!n&&!0===t)throw new Error(`Type ${fe(e)} does not have '\u0275mod' property.`);return n}function wo(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Qe,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||tt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Br(e.inputs,t),outputs:Br(e.outputs)}}function oo(e){e.features?.forEach(t=>t(e))}function br(e,t){if(!e)return null;const n=t?Bi:Nr;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(Lr)}const ni=0,Qt=1,gn=2,ii=3,_i=4,ar=5,vi=6,Ki=7,ai=8,Gi=9,He=10,we=11,et=12,wt=13,Ot=14,zt=15,cn=16,Kn=17,xn=18,Ui=19,Ri=20,ui=21,tr=22,Zi=23,lr=24,Dn=25,pr=1,di=2,hi=7,Zn=9,fi=11;function wi(e){return Array.isArray(e)&&"object"==typeof e[pr]}function bi(e){return Array.isArray(e)&&!0===e[pr]}function gr(e){return 0!=(4&e.flags)}function cr(e){return e.componentOffset>-1}function Yr(e){return 1==(1&e.flags)}function Hi(e){return!!e.template}function Vr(e){return 0!=(512&e[gn])}function mi(e,t){return e.hasOwnProperty(Pn)?e[Pn]:null}let Po=dt.WeakRef??class As{constructor(t){this.ref=t}deref(){return this.ref}},Yo=0,ur=null,ao=!1;function ki(e){const t=ur;return ur=e,t}class Ko{constructor(){this.id=Yo++,this.ref=function Mo(e){return new Po(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const i=n.producerNode.deref();if(null!=i&&n.atTrackingVersion===this.trackingVersion){if(i.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),i?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=ao;ao=!0;try{for(const[n,i]of this.consumers){const o=i.consumerNode.deref();null!=o&&o.trackingVersion===i.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{ao=t}}producerAccessed(){if(ao)throw new Error("");if(null===ur)return;let t=ur.producers.get(this.id);void 0===t?(t={consumerNode:ur.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:ur.trackingVersion},ur.producers.set(this.id,t),this.consumers.set(ur.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=ur.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==ur?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let No=null;function Xo(e){const t=ki(null);try{return e()}finally{ki(t)}}const Ss=()=>{};class Ao extends Ko{constructor(t,n,i){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Ss,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=i}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=ki(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Ss,this.watch(this.registerOnCleanup)}finally{ki(t)}}cleanup(){this.cleanupFn()}}class Is{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function hs(){return lo}function lo(e){return e.type.prototype.ngOnChanges&&(e.setInput=dr),ji}function ji(){const e=T(this),t=e?.current;if(t){const n=e.previous;if(n===Qe)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function dr(e,t,n,i){const o=this.declaredInputs[n],s=T(e)||function he(e,t){return e[p]=t}(e,{previous:Qe,current:null}),l=s.current||(s.current={}),d=s.previous,v=d[o];l[o]=new Is(v&&v.currentValue,t,d===Qe),e[i]=t}hs.ngInherit=!0;const p="__ngSimpleChanges__";function T(e){return e[p]||null}const Ne=function(e,t,n){};function ln(e){for(;Array.isArray(e);)e=e[ni];return e}function Tn(e,t){return ln(t[e])}function vn(e,t){return ln(t[e.index])}function Jn(e,t){return e.data[t]}function gi(e,t){return e[t]}function Ai(e,t){const n=t[e];return wi(n)?n:n[ni]}function oi(e,t){return null==t?null:e[t]}function Hr(e){e[Kn]=0}function Ir(e){1024&e[gn]||(e[gn]|=1024,js(e,1))}function Hs(e){1024&e[gn]&&(e[gn]&=-1025,js(e,-1))}function js(e,t){let n=e[ii];if(null===n)return;n[ar]+=t;let i=n;for(n=n[ii];null!==n&&(1===t&&1===i[ar]||-1===t&&0===i[ar]);)n[ar]+=t,i=n,n=n[ii]}const Fn={lFrame:C(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function jr(){return Fn.bindingsEnabled}function co(){return null!==Fn.skipHydrationRootTNode}function Pt(){return Fn.lFrame.lView}function qn(){return Fn.lFrame.tView}function _s(e){return Fn.lFrame.contextLView=e,e[ai]}function Rs(e){return Fn.lFrame.contextLView=null,e}function qi(){let e=qr();for(;null!==e&&64===e.type;)e=e.parent;return e}function qr(){return Fn.lFrame.currentTNode}function $r(e,t){const n=Fn.lFrame;n.currentTNode=e,n.isParent=t}function Bo(){return Fn.lFrame.isParent}function ts(){Fn.lFrame.isParent=!1}function nr(){const e=Fn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ns(){return Fn.lFrame.bindingIndex++}function xr(e){const t=Fn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ea(e,t){const n=Fn.lFrame;n.bindingIndex=n.bindingRootIndex=e,ta(t)}function ta(e){Fn.lFrame.currentDirectiveIndex=e}function na(e){const t=Fn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fa(){return Fn.lFrame.currentQueryIndex}function Gs(e){Fn.lFrame.currentQueryIndex=e}function el(e){const t=e[Qt];return 2===t.type?t.declTNode:1===t.type?e[vi]:null}function Ws(e,t,n){if(n&it.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&it.Host||(o=el(s),null===o||(s=s[Ot],10&o.type))););if(null===o)return!1;t=o,e=s}const i=Fn.lFrame=_();return i.currentTNode=t,i.lView=e,!0}function h(e){const t=_(),n=e[Qt];Fn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function _(){const e=Fn.lFrame,t=null===e?null:e.child;return null===t?C(e):t}function C(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 f(){const e=Fn.lFrame;return Fn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const M=f;function Y(){const e=f();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 bt(){return Fn.lFrame.selectedIndex}function Wt(e){Fn.lFrame.selectedIndex=e}function hn(){const e=Fn.lFrame;return Jn(e.tView,e.selectedIndex)}let y=!0;function a(){return y}function u(e){y=e}function S(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:l,ngAfterContentChecked:d,ngAfterViewInit:v,ngAfterViewChecked:O,ngOnDestroy:j}=s;l&&(e.contentHooks??=[]).push(-n,l),d&&((e.contentHooks??=[]).push(n,d),(e.contentCheckHooks??=[]).push(n,d)),v&&(e.viewHooks??=[]).push(-n,v),O&&((e.viewHooks??=[]).push(n,O),(e.viewCheckHooks??=[]).push(n,O)),null!=j&&(e.destroyHooks??=[]).push(n,j)}}function H(e,t,n){at(e,t,3,n)}function Me(e,t,n,i){(3&e[gn])===n&&at(e,t,n,i)}function Oe(e,t){let n=e[gn];(3&n)===t&&(n&=8191,n+=1,e[gn]=n)}function at(e,t,n,i){const s=i??-1,l=t.length-1;let d=0;for(let v=void 0!==i?65535&e[Kn]:0;v<l;v++)if("number"==typeof t[v+1]){if(d=t[v],null!=i&&d>=i)break}else t[v]<0&&(e[Kn]+=65536),(d<s||-1==s)&&(en(e,n,t,v),e[Kn]=(4294901760&e[Kn])+v+2),v++}function gt(e,t){Ne(4,e,t);const n=ki(null);try{t.call(e)}finally{ki(n),Ne(5,e,t)}}function en(e,t,n,i){const o=n[i]<0,s=n[i+1],d=e[o?-n[i]:n[i]];o?e[gn]>>13<e[Kn]>>16&&(3&e[gn])===t&&(e[gn]+=8192,gt(d,s)):gt(d,s)}const qt=-1;class Hn{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e){return e!==qt}function b(e){return 32767&e}function U(e,t){let n=function A(e){return e>>16}(e),i=t;for(;n>0;)i=i[Ot],n--;return i}let Ce=!0;function Ze(e){const t=Ce;return Ce=e,t}const Ft=255,an=5;let _n=0;const fn={};function Lt(e,t){const n=Rn(e,t);if(-1!==n)return n;const i=t[Qt];i.firstCreatePass&&(e.injectorIndex=t.length,pn(i.data,e),pn(t,null),pn(i.blueprint,null));const o=xi(e,t),s=e.injectorIndex;if(is(o)){const l=b(o),d=U(o,t),v=d[Qt].data;for(let O=0;O<8;O++)t[s+O]=d[l+O]|v[l+O]}return t[s+8]=o,s}function pn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function xi(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=ph(o),null===i)return qt;if(n++,o=o[Ot],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return qt}function Rr(e,t,n){!function Vt(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Xn)&&(i=n[Xn]),null==i&&(i=n[Xn]=_n++);const o=i&Ft;t.data[e+(o>>an)]|=1<<o}(e,t,n)}function rr(e,t,n){if(n&it.Optional||void 0!==e)return e;Et()}function li(e,t,n,i){if(n&it.Optional&&void 0===i&&(i=null),!(n&(it.Self|it.Host))){const o=e[Gi],s=Zt(void 0);try{return o?o.get(t,i,n&it.Optional):$t(t,i,n&it.Optional)}finally{Zt(s)}}return rr(i,0,n)}function Ys(e,t,n,i=it.Default,o){if(null!==e){if(2048&t[gn]&&!(i&it.Self)){const l=function cv(e,t,n,i,o){let s=e,l=t;for(;null!==s&&null!==l&&2048&l[gn]&&!(512&l[gn]);){const d=Ll(s,l,n,i|it.Self,fn);if(d!==fn)return d;let v=s.parent;if(!v){const O=l[Ri];if(O){const j=O.get(n,fn,i);if(j!==fn)return j}v=ph(l),l=l[Ot]}s=v}return o}(e,t,n,i,fn);if(l!==fn)return l}const s=Ll(e,t,n,i,fn);if(s!==fn)return s}return li(t,n,i,o)}function Ll(e,t,n,i,o){const s=function pa(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Xn)?e[Xn]:void 0;return"number"==typeof t?t>=0?t&Ft:lv:t}(n);if("function"==typeof s){if(!Ws(t,e,i))return i&it.Host?rr(o,0,i):li(t,n,i,o);try{let l;if(l=s(i),null!=l||i&it.Optional)return l;Et()}finally{M()}}else if("number"==typeof s){let l=null,d=Rn(e,t),v=qt,O=i&it.Host?t[zt][vi]:null;for((-1===d||i&it.SkipSelf)&&(v=-1===d?xi(e,t):t[d+8],v!==qt&&hh(i,!1)?(l=t[Qt],d=b(v),t=U(v,t)):d=-1);-1!==d;){const j=t[Qt];if(ga(s,d,j.data)){const me=Fr(d,t,n,l,i,O);if(me!==fn)return me}v=t[d+8],v!==qt&&hh(i,t[Qt].data[d+8]===O)&&ga(s,d,t)?(l=j,d=b(v),t=U(v,t)):d=-1}}return o}function Fr(e,t,n,i,o,s){const l=t[Qt],d=l.data[e+8],j=Vo(d,l,n,null==i?cr(d)&&Ce:i!=l&&0!=(3&d.type),o&it.Host&&s===d);return null!==j?yr(t,l,j,d):fn}function Vo(e,t,n,i,o){const s=e.providerIndexes,l=t.data,d=1048575&s,v=e.directiveStart,j=s>>20,Ye=o?d+j:e.directiveEnd;for(let nt=i?d:d+j;nt<Ye;nt++){const Tt=l[nt];if(nt<v&&n===Tt||nt>=v&&Tt.type===n)return nt}if(o){const nt=l[v];if(nt&&Hi(nt)&&nt.type===n)return v}return null}function yr(e,t,n,i){let o=e[n];const s=t.data;if(function kn(e){return e instanceof Hn}(o)){const l=o;l.resolving&&function ze(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ee(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ve(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():de(e)}(s[n]));const d=Ze(l.canSeeViewProviders);l.resolving=!0;const O=l.injectImpl?Zt(l.injectImpl):null;Ws(e,i,it.Default);try{o=e[n]=l.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function m(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){const l=lo(t);(n.preOrderHooks??=[]).push(e,l),(n.preOrderCheckHooks??=[]).push(e,l)}o&&(n.preOrderHooks??=[]).push(0-e,o),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],t)}finally{null!==O&&Zt(O),Ze(d),l.resolving=!1,M()}}return o}function ga(e,t,n){return!!(n[t+(e>>an)]&1<<e)}function hh(e,t){return!(e&it.Self||e&it.Host&&t)}class ho{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Ys(this._tNode,this._lView,t,P(i),n)}}function lv(){return new ho(qi(),Pt())}function fh(e){return Le(()=>{const t=e.prototype.constructor,n=t[Pn]||Zc(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const s=o[Pn]||Zc(o);if(s&&s!==n)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Zc(e){return Ue(e)?()=>{const t=Zc(Se(e));return t&&t()}:mi(e)}function ph(e){const t=e[Qt],n=t.type;return 2===n?t.declTNode:1===n?e[vi]:null}function Qc(e){return function hr(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(zn(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}(qi(),e)}const _a="__parameters__";function ya(e,t,n){return Le(()=>{const i=function qc(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 l=new o(...s);return d.annotation=l,d;function d(v,O,j){const me=v.hasOwnProperty(_a)?v[_a]:Object.defineProperty(v,_a,{value:[]})[_a];for(;me.length<=j;)me.push(null);return(me[j]=me[j]||[]).push(l),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Ca(e,t){e.forEach(n=>Array.isArray(n)?Ca(n,t):t(n))}function mh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Bl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function il(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function Io(e,t,n){let i=Ea(e,t);return i>=0?e[1|i]=n:(i=~i,function mv(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 Xc(e,t){const n=Ea(e,t);if(n>=0)return e[1|n]}function Ea(e,t){return function _h(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const s=i+(o-i>>1),l=e[s<<n];if(t===l)return s<<n;l>t?o=s:i=s+1}return~(o<<n)}(e,t,1)}const vh=V(ya("Inject",e=>({token:e})),-1),Ul=V(ya("Optional"),8),Hl=V(ya("SkipSelf"),4);function Wl(e){return 128==(128&e.flags)}var Kl=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Kl||{});const Nv=/^>|^->|<!--|-->|--!>|<!-$/g,Lv=/(<|>)/,Bv="\u200b$1\u200b";const iu=new Map;let Vv=0;const ou="__ngContext__";function Jr(e,t){wi(t)?(e[ou]=t[Ui],function Hv(e){iu.set(e[Ui],e)}(t)):e[ou]=t}let su;function au(e,t){return su(e,t)}function sl(e){const t=e[ii];return bi(t)?t[ii]:t}function Bh(e){return Uh(e[et])}function Vh(e){return Uh(e[_i])}function Uh(e){for(;null!==e&&!bi(e);)e=e[_i];return e}function Ma(e,t,n,i,o){if(null!=i){let s,l=!1;bi(i)?s=i:wi(i)&&(l=!0,i=i[ni]);const d=ln(i);0===e&&null!==n?null==o?zh(t,n,d):ia(t,n,d,o||null,!0):1===e&&null!==n?ia(t,n,d,o||null,!0):2===e?function ec(e,t,n){const i=Xl(e,t);i&&function sy(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,d,l):3===e&&t.destroyNode(d),null!=s&&function cy(e,t,n,i,o){const s=n[hi];s!==ln(n)&&Ma(t,e,i,s,o);for(let d=fi;d<n.length;d++){const v=n[d];ll(v[Qt],v,e,t,i,s)}}(t,e,s,n,o)}}function lu(e,t){return e.createComment(function xh(e){return e.replace(Nv,t=>t.replace(Lv,Bv))}(t))}function Ql(e,t,n){return e.createElement(t,n)}function jh(e,t){const n=e[Zn],i=n.indexOf(t);Hs(t),n.splice(i,1)}function ql(e,t){if(e.length<=fi)return;const n=fi+t,i=e[n];if(i){const o=i[cn];null!==o&&o!==e&&jh(o,i),t>0&&(e[n-1][_i]=i[_i]);const s=Bl(e,fi+t);!function Xv(e,t){ll(e,t,t[we],2,null,null),t[ni]=null,t[vi]=null}(i[Qt],i);const l=s[xn];null!==l&&l.detachView(s[Qt]),i[ii]=null,i[_i]=null,i[gn]&=-129}return i}function cu(e,t){if(!(256&t[gn])){const n=t[we];t[Zi]?.destroy(),t[lr]?.destroy(),n.destroyNode&&ll(e,t,n,3,null,null),function ty(e){let t=e[et];if(!t)return uu(e[Qt],e);for(;t;){let n=null;if(wi(t))n=t[et];else{const i=t[fi];i&&(n=i)}if(!n){for(;t&&!t[_i]&&t!==e;)wi(t)&&uu(t[Qt],t),t=t[ii];null===t&&(t=e),wi(t)&&uu(t[Qt],t),n=t&&t[_i]}t=n}}(t)}}function uu(e,t){if(!(256&t[gn])){t[gn]&=-129,t[gn]|=256,function oy(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 Hn)){const s=n[i+1];if(Array.isArray(s))for(let l=0;l<s.length;l+=2){const d=o[s[l]],v=s[l+1];Ne(4,d,v);try{v.call(d)}finally{Ne(5,d,v)}}else{Ne(4,o,s);try{s.call(o)}finally{Ne(5,o,s)}}}}}(e,t),function ry(e,t){const n=e.cleanup,i=t[Ki];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const l=n[s+3];l>=0?i[l]():i[-l].unsubscribe(),s+=2}else n[s].call(i[n[s+1]]);null!==i&&(t[Ki]=null);const o=t[ui];if(null!==o){t[ui]=null;for(let s=0;s<o.length;s++)(0,o[s])()}}(e,t),1===t[Qt].type&&t[we].destroy();const n=t[cn];if(null!==n&&bi(t[ii])){n!==t[ii]&&jh(n,t);const i=t[xn];null!==i&&i.detachView(e)}!function jv(e){iu.delete(e[Ui])}(t)}}function du(e,t,n){return function $h(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[ni];{const{componentOffset:o}=i;if(o>-1){const{encapsulation:s}=e.data[i.directiveStart+o];if(s===Dt.None||s===Dt.Emulated)return null}return vn(i,n)}}(e,t.parent,n)}function ia(e,t,n,i,o){e.insertBefore(t,n,i,o)}function zh(e,t,n){e.appendChild(t,n)}function Gh(e,t,n,i,o){null!==i?ia(e,t,n,i,o):zh(e,t,n)}function Xl(e,t){return e.parentNode(t)}function Wh(e,t,n){return Kh(e,t,n)}let hu,tc,mu,nc,Kh=function Yh(e,t,n){return 40&e.type?vn(e,n):null};function Jl(e,t,n,i){const o=du(e,i,t),s=t[we],d=Wh(i.parent||t[vi],i,t);if(null!=o)if(Array.isArray(n))for(let v=0;v<n.length;v++)Gh(s,o,n[v],d,!1);else Gh(s,o,n,d,!1);void 0!==hu&&hu(s,i,t,n,o)}function al(e,t){if(null!==t){const n=t.type;if(3&n)return vn(t,e);if(4&n)return fu(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return al(e,i);{const o=e[t.index];return bi(o)?fu(-1,o):ln(o)}}if(32&n)return au(t,e)()||ln(e[t.index]);{const i=Qh(e,t);return null!==i?Array.isArray(i)?i[0]:al(sl(e[zt]),i):al(e,t.next)}}return null}function Qh(e,t){return null!==t?e[zt][vi].projection[t.projection]:null}function fu(e,t){const n=fi+e+1;if(n<t.length){const i=t[n],o=i[Qt].firstChild;if(null!==o)return al(i,o)}return t[hi]}function pu(e,t,n,i,o,s,l){for(;null!=n;){const d=i[n.index],v=n.type;if(l&&0===t&&(d&&Jr(ln(d),i),n.flags|=2),32!=(32&n.flags))if(8&v)pu(e,t,n.child,i,o,s,!1),Ma(t,e,o,d,s);else if(32&v){const O=au(n,i);let j;for(;j=O();)Ma(t,e,o,j,s);Ma(t,e,o,d,s)}else 16&v?Xh(e,t,i,n,o,s):Ma(t,e,o,d,s);n=l?n.projectionNext:n.next}}function ll(e,t,n,i,o,s){pu(n,i,e.firstChild,t,o,s,!1)}function Xh(e,t,n,i,o,s){const l=n[zt],v=l[vi].projection[i.projection];if(Array.isArray(v))for(let O=0;O<v.length;O++)Ma(t,e,o,v[O],s);else{let O=v;const j=l[ii];Wl(i)&&(O.flags|=128),pu(e,t,O,j,o,s,!0)}}function Jh(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function ef(e,t,n){const{mergedAttrs:i,classes:o,styles:s}=n;null!==i&&Bn(e,t,i),null!==o&&Jh(e,t,o),null!==s&&function dy(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}function Aa(e){return function gu(){if(void 0===tc&&(tc=null,dt.trustedTypes))try{tc=dt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return tc}()?.createHTML(e)||e}function gy(e){mu=e}function Ta(){if(void 0!==mu)return mu;if(typeof document<"u")return document;throw new ee(210,!1)}function _u(){if(void 0===nc&&(nc=null,dt.trustedTypes))try{nc=dt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nc}function tf(e){return _u()?.createHTML(e)||e}function rf(e){return _u()?.createScriptURL(e)||e}class ra{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${lt})`}}class my extends ra{getTypeName(){return"HTML"}}class _y extends ra{getTypeName(){return"Style"}}class vy extends ra{getTypeName(){return"Script"}}class yy extends ra{getTypeName(){return"URL"}}class by extends ra{getTypeName(){return"ResourceURL"}}function Ns(e){return e instanceof ra?e.changingThisBreaksApplicationSecurity:e}function Sa(e,t){const n=function Cy(e){return e instanceof ra&&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 ${lt})`)}return n===t}function Ey(e){return new my(e)}function Dy(e){return new _y(e)}function wy(e){return new vy(e)}function My(e){return new yy(e)}function Ay(e){return new by(e)}class Ty{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Aa(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Sy{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Aa(t),n}}const xy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ic(e){return(e=String(e)).match(xy)?e:"unsafe:"+e}function Ls(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function cl(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const af=Ls("area,br,col,hr,img,wbr"),lf=Ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),cf=Ls("rp,rt"),vu=cl(af,cl(lf,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")),cl(cf,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")),cl(cf,lf)),yu=Ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),uf=cl(yu,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")),Oy=Ls("script,style,template");class Py{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(!vu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Oy.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),l=s.name,d=l.toLowerCase();if(!uf.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let v=s.value;yu[d]&&(v=ic(v)),this.buf.push(" ",l,'="',df(v),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();vu.hasOwnProperty(n)&&!af.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(df(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 Ry=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fy=/([^\#-~ |!])/g;function df(e){return e.replace(/&/g,"&amp;").replace(Ry,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Fy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let rc;function hf(e,t){let n=null;try{rc=rc||function sf(e){const t=new Sy(e);return function Iy(){try{return!!(new window.DOMParser).parseFromString(Aa(""),"text/html")}catch{return!1}}()?new Ty(t):t}(e);let i=t?String(t):"";n=rc.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=rc.getInertBodyElement(i)}while(i!==s);return Aa((new Py).sanitizeChildren(bu(n)||n))}finally{if(n){const i=bu(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function bu(e){return"content"in e&&function ky(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var oa=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(oa||{});function ff(e){const t=ul();return t?tf(t.sanitize(oa.HTML,e)||""):Sa(e,"HTML")?tf(Ns(e)):hf(Ta(),de(e))}function Cu(e){const t=ul();return t?t.sanitize(oa.URL,e)||"":Sa(e,"URL")?Ns(e):ic(de(e))}function pf(e){const t=ul();if(t)return rf(t.sanitize(oa.RESOURCE_URL,e)||"");if(Sa(e,"ResourceURL"))return rf(Ns(e));throw new ee(904,!1)}function gf(e,t,n){return function Uy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?pf:Cu}(t,n)(e)}function ul(){const e=Pt();return e&&e[He].sanitizer}class yi{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=Nt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const dl=new yi("ENVIRONMENT_INITIALIZER"),mf=new yi("INJECTOR",-1),_f=new yi("INJECTOR_DEF_TYPES");class Eu{get(t,n=We){if(n===We){const i=new Error(`NullInjectorError: No provider for ${fe(t)}!`);throw i.name="NullInjectorError",i}return n}}function Du(e){return{\u0275providers:e}}function Hy(...e){return{\u0275providers:vf(0,e),\u0275fromNgModule:!0}}function vf(e,...t){const n=[],i=new Set;let o;const s=l=>{n.push(l)};return Ca(t,l=>{const d=l;oc(d,s,[],i)&&(o||=[],o.push(d))}),void 0!==o&&yf(o,s),n}function yf(e,t){for(let n=0;n<e.length;n++){const{ngModule:i,providers:o}=e[n];wu(o,s=>{t(s,i)})}}function oc(e,t,n,i){if(!(e=Se(e)))return!1;let o=null,s=pt(e);const l=!s&&Ln(e);if(s||l){if(l&&!l.standalone)return!1;o=e}else{const v=e.ngModule;if(s=pt(v),!s)return!1;o=v}const d=i.has(o);if(l){if(d)return!1;if(i.add(o),l.dependencies){const v="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const O of v)oc(O,t,n,i)}}else{if(!s)return!1;{if(null!=s.imports&&!d){let O;i.add(o);try{Ca(s.imports,j=>{oc(j,t,n,i)&&(O||=[],O.push(j))})}finally{}void 0!==O&&yf(O,t)}if(!d){const O=mi(o)||(()=>new o);t({provide:o,useFactory:O,deps:tt},o),t({provide:_f,useValue:o,multi:!0},o),t({provide:dl,useValue:()=>W(o),multi:!0},o)}const v=s.providers;if(null!=v&&!d){const O=e;wu(v,j=>{t(j,O)})}}}return o!==e&&void 0!==e.providers}function wu(e,t){for(let n of e)$e(n)&&(n=n.\u0275providers),Array.isArray(n)?wu(n,t):t(n)}const jy=N({provide:String,useValue:N});function Mu(e){return null!==e&&"object"==typeof e&&jy in e}function sa(e){return"function"==typeof e}const Au=new yi("Set Injector scope."),sc={},zy={};let Tu;function ac(){return void 0===Tu&&(Tu=new Eu),Tu}class ys{}class lc extends ys{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,Iu(t,l=>this.processProvider(l)),this.records.set(mf,Ia(void 0,this)),o.has("environment")&&this.records.set(ys,Ia(void 0,this));const s=this.records.get(Au);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(_f.multi,tt,it.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Be(this),i=Zt(void 0);try{return t()}finally{Be(n),Zt(i)}}get(t,n=We,i=it.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Si))return t[Si](this);i=P(i);const s=Be(this),l=Zt(void 0);try{if(!(i&it.SkipSelf)){let v=this.records.get(t);if(void 0===v){const O=function Zy(e){return"function"==typeof e||"object"==typeof e&&e instanceof yi}(t)&&Cn(t);v=O&&this.injectableDefInScope(O)?Ia(Su(t),sc):null,this.records.set(t,v)}if(null!=v)return this.hydrate(t,v)}return(i&it.Self?ac():this.parent).get(t,n=i&it.Optional&&n===We?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Kt]=d[Kt]||[]).unshift(fe(t)),s)throw d;return function L(e,t,n,i){const o=e[Kt];throw t[X]&&o.unshift(t[X]),e.message=function Ae(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=fe(t);if(Array.isArray(t))o=t.map(fe).join(" -> ");else if("object"==typeof t){let s=[];for(let l in t)if(t.hasOwnProperty(l)){let d=t[l];s.push(l+":"+("string"==typeof d?JSON.stringify(d):fe(d)))}o=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(ye,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Kt]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{Zt(l),Be(s)}}resolveInjectorInitializers(){const t=Be(this),n=Zt(void 0);try{const o=this.get(dl.multi,tt,it.Self);for(const s of o)s()}finally{Be(t),Zt(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(fe(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ee(205,!1)}processProvider(t){let n=sa(t=Se(t))?t:Se(t&&t.provide);const i=function Wy(e){return Mu(e)?Ia(void 0,e.useValue):Ia(Ef(e),sc)}(t);if(sa(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Ia(void 0,sc,!0),o.factory=()=>B(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===sc&&(n.value=zy,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Ky(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=Se(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Su(e){const t=Cn(e),n=null!==t?t.factory:mi(e);if(null!==n)return n;if(e instanceof yi)throw new ee(204,!1);if(e instanceof Function)return function Gy(e){const t=e.length;if(t>0)throw il(t,"?"),new ee(204,!1);const n=function Wn(e){return e&&(e[$]||e[ke])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ee(204,!1)}function Ef(e,t,n){let i;if(sa(e)){const o=Se(e);return mi(o)||Su(o)}if(Mu(e))i=()=>Se(e.useValue);else if(function Cf(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...B(e.deps||[]));else if(function bf(e){return!(!e||!e.useExisting)}(e))i=()=>W(Se(e.useExisting));else{const o=Se(e&&(e.useClass||e.provide));if(!function Yy(e){return!!e.deps}(e))return mi(o)||Su(o);i=()=>new o(...B(e.deps))}return i}function Ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Iu(e,t){for(const n of e)Array.isArray(n)?Iu(n,t):n&&$e(n)?Iu(n.\u0275providers,t):t(n)}const Df=new yi("AppId",{providedIn:"root",factory:()=>Qy}),Qy="ng",wf=new yi("Platform Initializer"),xu=new yi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qy=new yi("AnimationModuleType"),Xy=new yi("CSP nonce",{providedIn:"root",factory:()=>Ta().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Af=(e,t,n)=>null;function Lu(e,t,n=!1){return Af(e,t,n)}class c0{}class If{}class d0{resolveComponentFactory(t){throw function u0(e){const t=Error(`No component factory found for ${fe(e)}.`);return t.ngComponent=e,t}(t)}}let gl=(()=>{class t{}return t.NULL=new d0,t})();function h0(){return Oa(qi(),Pt())}function Oa(e,t){return new ml(vn(e,t))}let ml=(()=>{class t{constructor(i){this.nativeElement=i}}return t.__NG_ELEMENT_ID__=h0,t})();function f0(e){return e instanceof ml?e.nativeElement:e}class Of{}let p0=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function g0(){const e=Pt(),n=Ai(qi().index,e);return(wi(n)?n:e)[we]}(),t})(),m0=(()=>{var e;class t{}return(e=t).\u0275prov=Nt({token:e,providedIn:"root",factory:()=>null}),t})();class Pf{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Rf=new Pf("16.2.1"),Uu={};function Lf(e,t=null,n=null,i){const o=Bf(e,t,n,i);return o.resolveInjectorInitializers(),o}function Bf(e,t=null,n=null,i,o=new Set){const s=[n||tt,Hy(e)];return i=i||("object"==typeof e?void 0:fe(e)),new lc(s,t||ac(),i||null,o)}let rs=(()=>{var e;class t{static create(i,o){if(Array.isArray(i))return Lf({name:""},o,i,"");{const s=i.name??"";return Lf({name:s},i.parent,i.providers,s)}}}return(e=t).THROW_IF_NOT_FOUND=We,e.NULL=new Eu,e.\u0275prov=Nt({token:e,providedIn:"any",factory:()=>W(mf)}),e.__NG_ELEMENT_ID__=-1,t})();function Bs(e){return e instanceof Function?e():e}let $u=(()=>{var e;class t{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new ee(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const i of this.callbacks)i.invoke()}finally{this.runningCallbacks=!1;for(const i of this.deferredCallbacks)this.callbacks.add(i);this.deferredCallbacks.clear()}}register(i){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(i)}unregister(i){this.callbacks.delete(i),this.deferredCallbacks.delete(i)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return(e=t).\u0275prov=Nt({token:e,providedIn:"root",factory:()=>new e}),t})();function _l(e){for(;e;){e[gn]|=64;const t=sl(e);if(Vr(e)&&!t)return e;e=t}return null}function zu(e){return e.ngOriginalError}class Fa{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&zu(t);for(;n&&zu(n);)n=zu(n);return n||null}}const $f=new yi("",{providedIn:"root",factory:()=>!1});class Yf extends Ko{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){_l(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,i){const o=ki(this);this.trackingVersion++;try{t(n,i)}finally{ki(o)}}destroy(){this.trackingVersion++}}let gc=null;function Kf(){return gc??=new Yf,gc}function Zf(e,t){return e[t]??Kf()}function Qf(e,t){const n=Kf();n.hasReadASignal&&(e[t]=gc,n.lView=e,gc=new Yf)}const Gn={};function qf(e){Xf(qn(),Pt(),bt()+e,!1)}function Xf(e,t,n,i){if(!i)if(3==(3&t[gn])){const s=e.preOrderCheckHooks;null!==s&&H(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Me(t,s,0,n)}Wt(n)}function ka(e,t=it.Default){const n=Pt();return null===n?W(e,t):Ys(qi(),n,Se(e),t)}function Jf(){throw new Error("invalid")}function mc(e,t,n,i,o,s,l,d,v,O,j){const me=t.blueprint.slice();return me[ni]=o,me[gn]=140|i,(null!==O||e&&2048&e[gn])&&(me[gn]|=2048),Hr(me),me[ii]=me[Ot]=e,me[ai]=n,me[He]=l||e&&e[He],me[we]=d||e&&e[we],me[Gi]=v||e&&e[Gi]||null,me[vi]=s,me[Ui]=function Uv(){return Vv++}(),me[tr]=j,me[Ri]=O,me[zt]=2==t.type?e[zt]:me,me}function Na(e,t,n,i,o){let s=e.data[t];if(null===s)s=function Gu(e,t,n,i,o){const s=qr(),l=Bo(),v=e.data[t]=function V0(e,t,n,i,o,s){let l=t?t.injectorIndex:-1,d=0;return co()&&(d|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:l,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:d,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,l?s:s&&s.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=v),null!==s&&(l?null==s.child&&null!==v.parent&&(s.child=v):null===s.next&&(s.next=v,v.prev=s)),v}(e,t,n,i,o),function Js(){return Fn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=i,s.attrs=o;const l=function es(){const e=Fn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===l?-1:l.injectorIndex}return $r(s,!0),s}function vl(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 ep(e,t,n,i,o){const s=Zf(t,Zi),l=bt(),d=2&i;try{if(Wt(-1),d&&t.length>Dn&&Xf(e,t,Dn,!1),Ne(d?2:0,o),d)s.runInContext(n,i,o);else{const O=ki(null);try{n(i,o)}finally{ki(O)}}}finally{d&&null===t[Zi]&&Qf(t,Zi),Wt(l),Ne(d?3:1,o)}}function Wu(e,t,n){if(gr(t)){const i=ki(null);try{const s=t.directiveEnd;for(let l=t.directiveStart;l<s;l++){const d=e.data[l];d.contentQueries&&d.contentQueries(1,n[l],l)}}finally{ki(i)}}}function Yu(e,t,n){jr()&&(function W0(e,t,n,i){const o=n.directiveStart,s=n.directiveEnd;cr(n)&&function J0(e,t,n){const i=vn(t,e),o=tp(n);let l=16;n.signals?l=4096:n.onPush&&(l=64);const d=_c(e,mc(e,o,null,l,i,t,null,e[He].rendererFactory.createRenderer(i,n),null,null,null));e[t.index]=d}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Lt(n,t),Jr(i,t);const l=n.initialInputs;for(let d=o;d<s;d++){const v=e.data[d],O=yr(t,e,d,n);Jr(O,t),null!==l&&eb(0,d-o,O,v,0,l),Hi(v)&&(Ai(n.index,t)[ai]=yr(t,e,d,n))}}(e,t,n,vn(n,t)),64==(64&n.flags)&&sp(e,t,n))}function Ku(e,t,n=vn){const i=t.localNames;if(null!==i){let o=t.index+1;for(let s=0;s<i.length;s+=2){const l=i[s+1],d=-1===l?n(t,e):e[l];e[o++]=d}}}function tp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Zu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Zu(e,t,n,i,o,s,l,d,v,O,j){const me=Dn+i,Ye=me+o,nt=function R0(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Gn);return n}(me,Ye),Tt="function"==typeof O?O():O;return nt[Qt]={type:e,blueprint:nt,template:n,queries:null,viewQuery:d,declTNode:t,data:nt.slice().fill(null,me),bindingStartIndex:me,expandoStartIndex:Ye,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof l?l():l,firstChild:null,schemas:v,consts:Tt,incompleteFirstPass:!1,ssrId:j}}let np=e=>null;function ip(e,t,n,i){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const s=e[o];null===i?rp(n,t,o,s):i.hasOwnProperty(o)&&rp(n,t,i[o],s)}return n}function rp(e,t,n,i){e.hasOwnProperty(n)?e[n].push(t,i):e[n]=[t,i]}function xo(e,t,n,i,o,s,l,d){const v=vn(t,n);let j,O=t.inputs;!d&&null!=O&&(j=O[i])?(ed(e,n,j,i,o),cr(t)&&function j0(e,t){const n=Ai(t,e);16&n[gn]||(n[gn]|=64)}(n,t.index)):3&t.type&&(i=function H0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=l?l(o,t.value||"",i):o,s.setProperty(v,i,o))}function Qu(e,t,n,i){if(jr()){const o=null===i?null:{"":-1},s=function K0(e,t){const n=e.directiveRegistry;let i=null,o=null;if(n)for(let s=0;s<n.length;s++){const l=n[s];if(kr(t,l.selectors,!1))if(i||(i=[]),Hi(l))if(null!==l.findHostDirectiveDefs){const d=[];o=o||new Map,l.findHostDirectiveDefs(l,d,o),i.unshift(...d,l),qu(e,t,d.length)}else i.unshift(l),qu(e,t,0);else o=o||new Map,l.findHostDirectiveDefs?.(l,i,o),i.push(l)}return null===i?null:[i,o]}(e,n);let l,d;null===s?l=d=null:[l,d]=s,null!==l&&op(e,t,n,l,o,d),o&&function Z0(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 ee(-301,!1);i.push(t[o],s)}}}(n,i,o)}n.mergedAttrs=ci(n.mergedAttrs,n.attrs)}function op(e,t,n,i,o,s){for(let O=0;O<i.length;O++)Rr(Lt(n,t),e,i[O].type);!function q0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,i.length);for(let O=0;O<i.length;O++){const j=i[O];j.providersResolver&&j.providersResolver(j)}let l=!1,d=!1,v=vl(e,t,i.length,null);for(let O=0;O<i.length;O++){const j=i[O];n.mergedAttrs=ci(n.mergedAttrs,j.hostAttrs),X0(e,n,t,v,j),Q0(v,j,o),null!==j.contentQueries&&(n.flags|=4),(null!==j.hostBindings||null!==j.hostAttrs||0!==j.hostVars)&&(n.flags|=64);const me=j.type.prototype;!l&&(me.ngOnChanges||me.ngOnInit||me.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!d&&(me.ngOnChanges||me.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),v++}!function U0(e,t,n){const o=t.directiveEnd,s=e.data,l=t.attrs,d=[];let v=null,O=null;for(let j=t.directiveStart;j<o;j++){const me=s[j],Ye=n?n.get(me):null,Tt=Ye?Ye.outputs:null;v=ip(me.inputs,j,v,Ye?Ye.inputs:null),O=ip(me.outputs,j,O,Tt);const Ut=null===v||null===l||Oi(t)?null:tb(v,j,l);d.push(Ut)}null!==v&&(v.hasOwnProperty("class")&&(t.flags|=8),v.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=d,t.inputs=v,t.outputs=O}(e,n,s)}function sp(e,t,n){const i=n.directiveStart,o=n.directiveEnd,s=n.index,l=function ha(){return Fn.lFrame.currentDirectiveIndex}();try{Wt(s);for(let d=i;d<o;d++){const v=e.data[d],O=t[d];ta(d),(null!==v.hostBindings||0!==v.hostVars||null!==v.hostAttrs)&&Y0(v,O)}}finally{Wt(-1),ta(l)}}function Y0(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function qu(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Q0(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Hi(t)&&(n[""]=e)}}function X0(e,t,n,i,o){e.data[i]=o;const s=o.factory||(o.factory=mi(o.type)),l=new Hn(s,Hi(o),ka);e.blueprint[i]=l,n[i]=l,function z0(e,t,n,i,o){const s=o.hostBindings;if(s){let l=e.hostBindingOpCodes;null===l&&(l=e.hostBindingOpCodes=[]);const d=~t.index;(function G0(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(l)!=d&&l.push(d),l.push(n,i,s)}}(e,t,i,vl(e,n,o.hostVars,Gn),o)}function bs(e,t,n,i,o,s){const l=vn(e,t);!function Xu(e,t,n,i,o,s,l){if(null==s)e.removeAttribute(t,o,n);else{const d=null==l?de(s):l(s,i||"",o);e.setAttribute(t,o,d,n)}}(t[we],l,s,e.value,n,i,o)}function eb(e,t,n,i,o,s){const l=s[t];if(null!==l)for(let d=0;d<l.length;)ap(i,n,l[d++],l[d++],l[d++])}function ap(e,t,n,i,o){const s=ki(null);try{const l=e.inputTransforms;null!==l&&l.hasOwnProperty(i)&&(o=l[i].call(t,o)),null!==e.setInput?e.setInput(t,o,n,i):t[i]=o}finally{ki(s)}}function tb(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 l=e[s];for(let d=0;d<l.length;d+=2)if(l[d]===t){i.push(s,l[d+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return i}function lp(e,t,n,i){return[e,!0,!1,t,null,0,i,n,null,null,null]}function cp(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 l=e.data[s];Gs(n[i]),l.contentQueries(2,t[s],s)}}}function _c(e,t){return e[et]?e[wt][_i]=t:e[et]=t,e[wt]=t,t}function Ju(e,t,n){Gs(0);const i=ki(null);try{t(e,n)}finally{ki(i)}}function up(e){return e[Ki]||(e[Ki]=[])}function dp(e){return e.cleanup||(e.cleanup=[])}function fp(e,t){const n=e[Gi],i=n?n.get(Fa,null):null;i&&i.handleError(t)}function ed(e,t,n,i,o){for(let s=0;s<n.length;){const l=n[s++],d=n[s++];ap(e.data[l],t[l],i,d,o)}}function Vs(e,t,n){const i=Tn(t,e);!function Hh(e,t,n){e.setValue(t,n)}(e[we],i,n)}function nb(e,t){const n=Ai(t,e),i=n[Qt];!function ib(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n);const o=n[ni];null!==o&&null===n[tr]&&(n[tr]=Lu(o,n[Gi])),td(i,n,n[ai])}function td(e,t,n){h(t);try{const i=e.viewQuery;null!==i&&Ju(1,i,n);const o=e.template;null!==o&&ep(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&cp(e,t),e.staticViewQueries&&Ju(2,e.viewQuery,n);const s=e.components;null!==s&&function rb(e,t){for(let n=0;n<t.length;n++)nb(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[gn]&=-5,Y()}}let pp=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(i,o,s){const l=typeof Zone>"u"?null:Zone.current,d=new Ao(i,j=>{this.all.has(j)&&this.queue.set(j,l)},s);let v;this.all.add(d),d.notify();const O=()=>{d.cleanup(),v?.(),this.all.delete(d),this.queue.delete(d)};return v=o?.onDestroy(O),{destroy:O}}flush(){if(0!==this.queue.size)for(const[i,o]of this.queue)this.queue.delete(i),o?o.run(()=>i.run()):i.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=Nt({token:e,providedIn:"root",factory:()=>new e}),t})();function vc(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,s=0;if(null!==t)for(let l=0;l<t.length;l++){const d=t[l];"number"==typeof d?s=d:1==s?o=Ve(o,d):2==s&&(i=Ve(i,d+": "+t[++l]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}function yl(e,t,n,i,o=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ln(s)),bi(s)){for(let d=fi;d<s.length;d++){const v=s[d],O=v[Qt].firstChild;null!==O&&yl(v[Qt],v,O,i)}s[hi]!==s[ni]&&i.push(s[hi])}const l=n.type;if(8&l)yl(e,t,n.child,i);else if(32&l){const d=au(n,t);let v;for(;v=d();)i.push(v)}else if(16&l){const d=Qh(t,n);if(Array.isArray(d))i.push(...d);else{const v=sl(t[zt]);yl(v[Qt],v,d,i,!0)}}n=o?n.projectionNext:n.next}return i}function yc(e,t,n,i=!0){const o=t[He],s=o.rendererFactory,l=o.afterRenderEventManager;s.begin?.(),l?.begin();try{gp(e,t,e.template,n)}catch(v){throw i&&fp(t,v),v}finally{s.end?.(),o.effectManager?.flush(),l?.end()}}function gp(e,t,n,i){const o=t[gn];if(256!=(256&o)){t[He].effectManager?.flush(),h(t);try{Hr(t),function ks(e){return Fn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&ep(e,t,n,2,i);const l=3==(3&o);if(l){const O=e.preOrderCheckHooks;null!==O&&H(t,O,null)}else{const O=e.preOrderHooks;null!==O&&Me(t,O,0,null),Oe(t,0)}if(function ab(e){for(let t=Bh(e);null!==t;t=Vh(t)){if(!t[di])continue;const n=t[Zn];for(let i=0;i<n.length;i++){Ir(n[i])}}}(t),mp(t,2),null!==e.contentQueries&&cp(e,t),l){const O=e.contentCheckHooks;null!==O&&H(t,O)}else{const O=e.contentHooks;null!==O&&Me(t,O,1),Oe(t,1)}!function P0(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const i=Zf(t,lr);try{for(let o=0;o<n.length;o++){const s=n[o];if(s<0)Wt(~s);else{const l=s,d=n[++o],v=n[++o];ea(d,l),i.runInContext(v,2,t[l])}}}finally{null===t[lr]&&Qf(t,lr),Wt(-1)}}(e,t);const d=e.components;null!==d&&vp(t,d,0);const v=e.viewQuery;if(null!==v&&Ju(2,v,i),l){const O=e.viewCheckHooks;null!==O&&H(t,O)}else{const O=e.viewHooks;null!==O&&Me(t,O,2),Oe(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[gn]&=-73,Hs(t)}finally{Y()}}}function mp(e,t){for(let n=Bh(e);null!==n;n=Vh(n))for(let i=fi;i<n.length;i++)_p(n[i],t)}function lb(e,t,n){_p(Ai(t,e),n)}function _p(e,t){if(!function Qr(e){return 128==(128&e[gn])}(e))return;const n=e[Qt];if(80&e[gn]&&0===t||1024&e[gn]||2===t)gp(n,e,n.template,e[ai]);else if(e[ar]>0){mp(e,1);const o=e[Qt].components;null!==o&&vp(e,o,1)}}function vp(e,t,n){for(let i=0;i<t.length;i++)lb(e,t[i],n)}class bl{get rootNodes(){const t=this._lView,n=t[Qt];return yl(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ai]}set context(t){this._lView[ai]=t}get destroyed(){return 256==(256&this._lView[gn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ii];if(bi(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(ql(t,i),Bl(n,i))}this._attachedToViewContainer=!1}cu(this._lView[Qt],this._lView)}onDestroy(t){!function xs(e,t){if(256==(256&e[gn]))throw new ee(911,!1);null===e[ui]&&(e[ui]=[]),e[ui].push(t)}(this._lView,t)}markForCheck(){_l(this._cdRefInjectingView||this._lView)}detach(){this._lView[gn]&=-129}reattach(){this._lView[gn]|=128}detectChanges(){yc(this._lView[Qt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ey(e,t){ll(e,t,t[we],2,null,null)}(this._lView[Qt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=t}}class cb extends bl{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;yc(t[Qt],t,t[ai],!1)}checkNoChanges(){}get context(){return null}}class yp extends gl{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ln(t);return new Cl(n,this.ngModule)}}function bp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class db{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=P(i);const o=this.injector.get(t,Uu,i);return o!==Uu||n===Uu?o:this.parentInjector.get(t,n,i)}}class Cl extends If{get inputs(){const t=this.componentDef,n=t.inputTransforms,i=bp(t.inputs);if(null!==n)for(const o of i)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return i}get outputs(){return bp(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function go(e){return e.map(no).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,o){let s=(o=o||this.ngModule)instanceof ys?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const l=s?new db(t,s):t,d=l.get(Of,null);if(null===d)throw new ee(407,!1);const me={rendererFactory:d,sanitizer:l.get(m0,null),effectManager:l.get(pp,null),afterRenderEventManager:l.get($u,null)},Ye=d.createRenderer(null,this.componentDef),nt=this.componentDef.selectors[0][0]||"div",Tt=i?function F0(e,t,n,i){const s=i.get($f,!1)||n===Dt.ShadowDom,l=e.selectRootElement(t,s);return function k0(e){np(e)}(l),l}(Ye,i,this.componentDef.encapsulation,l):Ql(Ye,nt,function ub(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(nt)),bn=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let kt=null;null!==Tt&&(kt=Lu(Tt,l,!0));const Un=Zu(0,null,null,1,0,null,null,null,null,null,null),ei=mc(null,Un,null,bn,null,null,me,Ye,l,null,kt);let Ti,Eo;h(ei);try{const Us=this.componentDef;let Ja,dh=null;Us.findHostDirectiveDefs?(Ja=[],dh=new Map,Us.findHostDirectiveDefs(Us,Ja,dh),Ja.push(Us)):Ja=[Us];const CM=function fb(e,t){const n=e[Qt],i=Dn;return e[i]=t,Na(n,i,2,"#host",null)}(ei,Tt),EM=function pb(e,t,n,i,o,s,l){const d=o[Qt];!function gb(e,t,n,i){for(const o of e)t.mergedAttrs=ci(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(vc(t,t.mergedAttrs,!0),null!==n&&ef(i,n,t))}(i,e,t,l);let v=null;null!==t&&(v=Lu(t,o[Gi]));const O=s.rendererFactory.createRenderer(t,n);let j=16;n.signals?j=4096:n.onPush&&(j=64);const me=mc(o,tp(n),null,j,o[e.index],e,s,O,null,null,v);return d.firstCreatePass&&qu(d,e,i.length-1),_c(o,me),o[e.index]=me}(CM,Tt,Us,Ja,ei,me,Ye);Eo=Jn(Un,Dn),Tt&&function _b(e,t,n,i){if(i)Bn(e,n,["ng-version",Rf.full]);else{const{attrs:o,classes:s}=function or(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(!si(o))break;o=s}i++}return{attrs:t,classes:n}}(t.selectors[0]);o&&Bn(e,n,o),s&&s.length>0&&Jh(e,n,s.join(" "))}}(Ye,Us,Tt,i),void 0!==n&&function vb(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)}}(Eo,this.ngContentSelectors,n),Ti=function mb(e,t,n,i,o,s){const l=qi(),d=o[Qt],v=vn(l,o);op(d,o,l,n,null,i);for(let j=0;j<n.length;j++)Jr(yr(o,d,l.directiveStart+j,l),o);sp(d,o,l),v&&Jr(v,o);const O=yr(o,d,l.directiveStart+l.componentOffset,l);if(e[ai]=o[ai]=O,null!==s)for(const j of s)j(O,t);return Wu(d,l,e),O}(EM,Us,Ja,dh,ei,[yb]),td(Un,ei,null)}finally{Y()}return new hb(this.componentType,Ti,Oa(Eo,ei),ei,Eo)}}class hb extends c0{constructor(t,n,i,o,s){super(),this.location=i,this._rootLView=o,this._tNode=s,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new cb(o),this.componentType=t}setInput(t,n){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const s=this._rootLView;ed(s[Qt],s,o,t,n),this.previousInputValues.set(t,n),_l(Ai(this._tNode.index,s))}}get injector(){return new ho(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function yb(){const e=qi();S(Pt()[Qt],e)}function nd(e){let t=function Cp(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(Hi(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ee(903,!1);o=t.\u0275dir}if(o){if(n){i.push(o);const l=e;l.inputs=bc(e.inputs),l.inputTransforms=bc(e.inputTransforms),l.declaredInputs=bc(e.declaredInputs),l.outputs=bc(e.outputs);const d=o.hostBindings;d&&Db(e,d);const v=o.viewQuery,O=o.contentQueries;if(v&&Cb(e,v),O&&Eb(e,O),z(e.inputs,o.inputs),z(e.declaredInputs,o.declaredInputs),z(e.outputs,o.outputs),null!==o.inputTransforms&&(null===l.inputTransforms&&(l.inputTransforms={}),z(l.inputTransforms,o.inputTransforms)),Hi(o)&&o.data.animation){const j=e.data;j.animation=(j.animation||[]).concat(o.data.animation)}}const s=o.features;if(s)for(let l=0;l<s.length;l++){const d=s[l];d&&d.ngInherit&&d(e),d===nd&&(n=!1)}}t=Object.getPrototypeOf(t)}!function bb(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=ci(o.hostAttrs,n=ci(n,o.hostAttrs))}}(i)}function bc(e){return e===Qe?{}:e===tt?[]:e}function Cb(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function Eb(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,s)=>{t(i,o,s),n(i,o,s)}:t}function Db(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}function Mp(e){const t=e.inputConfig,n={};for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];Array.isArray(o)&&o[2]&&(n[i]=o[2])}e.inputTransforms=n}function Cc(e){return!!id(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function id(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Cs(e,t,n){return e[t]=n}function eo(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function aa(e,t,n,i){const o=eo(e,t,n);return eo(e,t+1,i)||o}function rd(e,t,n,i){const o=Pt();return eo(o,ns(),t)&&(qn(),bs(hn(),o,e,t,n,i)),rd}function Ba(e,t,n,i){return eo(e,ns(),n)?t+de(n)+i:Gn}function Va(e,t,n,i,o,s){const d=aa(e,function uo(){return Fn.lFrame.bindingIndex}(),n,o);return xr(2),d?t+de(n)+i+de(o)+s:Gn}function Bp(e,t,n,i,o,s,l,d){const v=Pt(),O=qn(),j=e+Dn,me=O.firstCreatePass?function Kb(e,t,n,i,o,s,l,d,v){const O=t.consts,j=Na(t,e,4,l||null,oi(O,d));Qu(t,n,j,oi(O,v)),S(t,j);const me=j.tView=Zu(2,j,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,O,null);return null!==t.queries&&(t.queries.template(t,j),me.queries=t.queries.embeddedTView(j)),j}(j,O,v,t,n,i,o,s,l):O.data[j];$r(me,!1);const Ye=Vp(O,v,me,e);a()&&Jl(O,v,Ye,me),Jr(Ye,v),_c(v,v[j]=lp(Ye,v,Ye,me)),Yr(me)&&Yu(O,v,me),null!=l&&Ku(v,me,d)}let Vp=function Up(e,t,n,i){return u(!0),t[we].createComment("")};function Hp(e){return gi(function Fs(){return Fn.lFrame.contextLView}(),Dn+e)}function ud(e,t,n){const i=Pt();return eo(i,ns(),t)&&xo(qn(),hn(),i,e,t,i[we],n,!1),ud}function dd(e,t,n,i,o){const l=o?"class":"style";ed(e,n,t.inputs[l],l,i)}function Ac(e,t,n,i){const o=Pt(),s=qn(),l=Dn+e,d=o[we],v=s.firstCreatePass?function Xb(e,t,n,i,o,s){const l=t.consts,v=Na(t,e,2,i,oi(l,o));return Qu(t,n,v,oi(l,s)),null!==v.attrs&&vc(v,v.attrs,!1),null!==v.mergedAttrs&&vc(v,v.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,v),v}(l,s,o,t,n,i):s.data[l],O=jp(s,o,v,d,t,e);o[l]=O;const j=Yr(v);return $r(v,!0),ef(d,O,v),32!=(32&v.flags)&&a()&&Jl(s,o,O,v),0===function ps(){return Fn.lFrame.elementDepthCount}()&&Jr(O,o),function To(){Fn.lFrame.elementDepthCount++}(),j&&(Yu(s,o,v),Wu(s,v,o)),null!==i&&Ku(o,v),Ac}function Tc(){let e=qi();Bo()?ts():(e=e.parent,$r(e,!1));const t=e;(function Xs(e){return Fn.skipHydrationRootTNode===e})(t)&&function ms(){Fn.skipHydrationRootTNode=null}(),function Jo(){Fn.lFrame.elementDepthCount--}();const n=qn();return n.firstCreatePass&&(S(n,e),gr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function sr(e){return 0!=(8&e.flags)}(t)&&dd(n,t,Pt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ir(e){return 0!=(16&e.flags)}(t)&&dd(n,t,Pt(),t.stylesWithoutHost,!1),Tc}function hd(e,t,n,i){return Ac(e,t,n,i),Tc(),hd}let jp=(e,t,n,i,o,s)=>(u(!0),Ql(i,o,function vo(){return Fn.lFrame.currentNamespace}()));function Sc(e,t,n){const i=Pt(),o=qn(),s=e+Dn,l=o.firstCreatePass?function tC(e,t,n,i,o){const s=t.consts,l=oi(s,i),d=Na(t,e,8,"ng-container",l);return null!==l&&vc(d,l,!0),Qu(t,n,d,oi(s,o)),null!==t.queries&&t.queries.elementStart(t,d),d}(s,o,i,t,n):o.data[s];$r(l,!0);const d=$p(o,i,l,e);return i[s]=d,a()&&Jl(o,i,d,l),Jr(d,i),Yr(l)&&(Yu(o,i,l),Wu(o,l,i)),null!=n&&Ku(i,l),Sc}function Ic(){let e=qi();const t=qn();return Bo()?ts():(e=e.parent,$r(e,!1)),t.firstCreatePass&&(S(t,e),gr(e)&&t.queries.elementEnd(e)),Ic}function fd(e,t,n){return Sc(e,t,n),Ic(),fd}let $p=(e,t,n,i)=>(u(!0),lu(t[we],""));function zp(){return Pt()}function pd(e){return!!e&&"function"==typeof e.then}function Gp(e){return!!e&&"function"==typeof e.subscribe}function gd(e,t,n,i){const o=Pt(),s=qn(),l=qi();return function Yp(e,t,n,i,o,s,l){const d=Yr(i),O=e.firstCreatePass&&dp(e),j=t[ai],me=up(t);let Ye=!0;if(3&i.type||l){const Ut=vn(i,t),rn=l?l(Ut):Ut,bn=me.length,kt=l?ei=>l(ln(ei[i.index])):i.index;let Un=null;if(!l&&d&&(Un=function rC(e,t,n,i){const o=e.cleanup;if(null!=o)for(let s=0;s<o.length-1;s+=2){const l=o[s];if(l===n&&o[s+1]===i){const d=t[Ki],v=o[s+2];return d.length>v?d[v]:null}"string"==typeof l&&(s+=2)}return null}(e,t,o,i.index)),null!==Un)(Un.__ngLastListenerFn__||Un).__ngNextListenerFn__=s,Un.__ngLastListenerFn__=s,Ye=!1;else{s=Zp(i,t,j,s,!1);const ei=n.listen(rn,o,s);me.push(s,ei),O&&O.push(o,kt,bn,bn+1)}}else s=Zp(i,t,j,s,!1);const nt=i.outputs;let Tt;if(Ye&&null!==nt&&(Tt=nt[o])){const Ut=Tt.length;if(Ut)for(let rn=0;rn<Ut;rn+=2){const Ti=t[Tt[rn]][Tt[rn+1]].subscribe(s),Eo=me.length;me.push(s,Ti),O&&O.push(o,i.index,Eo,-(Eo+1))}}}(s,o,o[we],l,e,t,i),gd}function Kp(e,t,n,i){try{return Ne(6,t,n),!1!==n(i)}catch(o){return fp(e,o),!1}finally{Ne(7,t,n)}}function Zp(e,t,n,i,o){return function s(l){if(l===Function)return i;_l(e.componentOffset>-1?Ai(e.index,t):t);let v=Kp(t,n,i,l),O=s.__ngNextListenerFn__;for(;O;)v=Kp(t,n,O,l)&&v,O=O.__ngNextListenerFn__;return o&&!1===v&&l.preventDefault(),v}}function Qp(e=1){return function ge(e){return(Fn.lFrame.contextLView=function xe(e,t){for(;e>0;)t=t[Ot],e--;return t}(e,Fn.lFrame.contextLView))[ai]}(e)}function oC(e,t){let n=null;const i=function zr(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?kr(e,s,!0):wr(i,s))return o}else n=o}return n}function qp(e){const t=Pt()[zt][vi];if(!t.projection){const i=t.projection=il(e?e.length:1,null),o=i.slice();let s=t.child;for(;null!==s;){const l=e?oC(s,e):0;null!==l&&(o[l]?o[l].projectionNext=s:i[l]=s,o[l]=s),s=s.next}}}function Xp(e,t=0,n){const i=Pt(),o=qn(),s=Na(o,Dn+e,16,null,n||null);null===s.projection&&(s.projection=t),ts(),(!i[tr]||co())&&32!=(32&s.flags)&&function ly(e,t,n){Xh(t[we],0,t,n,du(e,n,t),Wh(n.parent||t[vi],n,t))}(o,i,s)}function md(e,t,n){return xc(e,"",t,"",n),md}function xc(e,t,n,i,o){const s=Pt(),l=Ba(s,t,n,i);return l!==Gn&&xo(qn(),hn(),s,e,l,s[we],o,!1),xc}function Oc(e,t){return e<<17|t<<2}function Ks(e){return e>>17&32767}function _d(e){return 2|e}function la(e){return(131068&e)>>2}function vd(e,t){return-131069&e|t<<2}function yd(e){return 1|e}function ag(e,t,n,i,o){const s=e[n+1],l=null===t;let d=i?Ks(s):la(s),v=!1;for(;0!==d&&(!1===v||l);){const j=e[d+1];dC(e[d],t)&&(v=!0,e[d+1]=i?yd(j):_d(j)),d=i?Ks(j):la(j)}v&&(e[n+1]=i?_d(s):yd(s))}function dC(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ea(e,t)>=0}const Dr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lg(e){return e.substring(Dr.key,Dr.keyEnd)}function cg(e,t){const n=Dr.textEnd;return n===t?-1:(t=Dr.keyEnd=function gC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Dr.key=t,n),Wa(e,t,n))}function Wa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function bd(e,t,n){return os(e,t,n,!1),bd}function Cd(e,t){return os(e,t,null,!0),Cd}function pg(e){ss(wC,Ds,e,!0)}function Ds(e,t){for(let n=function fC(e){return function dg(e){Dr.key=0,Dr.keyEnd=0,Dr.value=0,Dr.valueEnd=0,Dr.textEnd=e.length}(e),cg(e,Wa(e,0,Dr.textEnd))}(t);n>=0;n=cg(t,n))Io(e,lg(t),!0)}function os(e,t,n,i){const o=Pt(),s=qn(),l=xr(2);s.firstUpdatePass&&mg(s,e,l,i),t!==Gn&&eo(o,l,t)&&vg(s,s.data[bt()],o,o[we],e,o[l+1]=function AC(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=fe(Ns(e)))),e}(t,n),i,l)}function ss(e,t,n,i){const o=qn(),s=xr(2);o.firstUpdatePass&&mg(o,null,s,i);const l=Pt();if(n!==Gn&&eo(l,s,n)){const d=o.data[bt()];if(bg(d,i)&&!gg(o,s)){let v=i?d.classesWithoutHost:d.stylesWithoutHost;null!==v&&(n=Ve(v,n||"")),dd(o,d,l,n,i)}else!function MC(e,t,n,i,o,s,l,d){o===Gn&&(o=tt);let v=0,O=0,j=0<o.length?o[0]:null,me=0<s.length?s[0]:null;for(;null!==j||null!==me;){const Ye=v<o.length?o[v+1]:void 0,nt=O<s.length?s[O+1]:void 0;let Ut,Tt=null;j===me?(v+=2,O+=2,Ye!==nt&&(Tt=me,Ut=nt)):null===me||null!==j&&j<me?(v+=2,Tt=j):(O+=2,Tt=me,Ut=nt),null!==Tt&&vg(e,t,n,i,Tt,Ut,l,d),j=v<o.length?o[v]:null,me=O<s.length?s[O]:null}}(o,d,l,l[we],l[s+1],l[s+1]=function DC(e,t,n){if(null==n||""===n)return tt;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 gg(e,t){return t>=e.expandoStartIndex}function mg(e,t,n,i){const o=e.data;if(null===o[n+1]){const s=o[bt()],l=gg(e,n);bg(s,i)&&null===t&&!l&&(t=!1),t=function yC(e,t,n,i){const o=na(e);let s=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=Al(n=Ed(null,e,t,n,i),t.attrs,i),s=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==o)if(n=Ed(o,e,t,n,i),null===s){let v=function bC(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==la(i))return e[Ks(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=Ed(null,e,t,v[1],i),v=Al(v,t.attrs,i),function CC(e,t,n,i){e[Ks(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else s=function EC(e,t,n){let i;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<o;s++)i=Al(i,e[s].hostAttrs,n);return Al(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(o,s,t,i),function cC(e,t,n,i,o,s){let l=s?t.classBindings:t.styleBindings,d=Ks(l),v=la(l);e[i]=n;let j,O=!1;if(Array.isArray(n)?(j=n[1],(null===j||Ea(n,j)>0)&&(O=!0)):j=n,o)if(0!==v){const Ye=Ks(e[d+1]);e[i+1]=Oc(Ye,d),0!==Ye&&(e[Ye+1]=vd(e[Ye+1],i)),e[d+1]=function aC(e,t){return 131071&e|t<<17}(e[d+1],i)}else e[i+1]=Oc(d,0),0!==d&&(e[d+1]=vd(e[d+1],i)),d=i;else e[i+1]=Oc(v,0),0===d?d=i:e[v+1]=vd(e[v+1],i),v=i;O&&(e[i+1]=_d(e[i+1])),ag(e,j,i,!0),ag(e,j,i,!1),function uC(e,t,n,i,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ea(s,t)>=0&&(n[i+1]=yd(n[i+1]))}(t,j,e,i,s),l=Oc(d,v),s?t.classBindings=l:t.styleBindings=l}(o,s,t,n,l,i)}}function Ed(e,t,n,i,o){let s=null;const l=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<l&&(s=t[d],i=Al(i,s.hostAttrs,o),s!==e);)d++;return null!==e&&(n.directiveStylingLast=d),i}function Al(e,t,n){const i=n?1:2;let o=-1;if(null!==t)for(let s=0;s<t.length;s++){const l=t[s];"number"==typeof l?o=l:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Io(e,l,!!n||t[++s]))}return void 0===e?null:e}function wC(e,t,n){const i=String(t);""!==i&&!i.includes(" ")&&Io(e,i,n)}function vg(e,t,n,i,o,s,l,d){if(!(3&t.type))return;const v=e.data,O=v[d+1],j=function lC(e){return 1==(1&e)}(O)?yg(v,t,n,o,la(O),l):void 0;Pc(j)||(Pc(s)||function sC(e){return 2==(2&e)}(O)&&(s=yg(v,null,n,o,d,l)),function uy(e,t,n,i,o){if(t)o?e.addClass(n,i):e.removeClass(n,i);else{let s=-1===i.indexOf("-")?void 0:Kl.DashCase;null==o?e.removeStyle(n,i,s):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),s|=Kl.Important),e.setStyle(n,i,o,s))}}(i,l,Tn(bt(),n),o,s))}function yg(e,t,n,i,o,s){const l=null===t;let d;for(;o>0;){const v=e[o],O=Array.isArray(v),j=O?v[1]:v,me=null===j;let Ye=n[o+1];Ye===Gn&&(Ye=me?tt:void 0);let nt=me?Xc(Ye,i):j===i?Ye:void 0;if(O&&!Pc(nt)&&(nt=Xc(v,i)),Pc(nt)&&(d=nt,l))return d;const Tt=e[o+1];o=l?Ks(Tt):la(Tt)}if(null!==t){let v=s?t.residualClasses:t.residualStyles;null!=v&&(d=Xc(v,i))}return d}function Pc(e){return void 0!==e}function bg(e,t){return 0!=(e.flags&(t?8:16))}function Cg(e,t=""){const n=Pt(),i=qn(),o=e+Dn,s=i.firstCreatePass?Na(i,o,1,t,null):i.data[o],l=Eg(i,n,s,t,e);n[o]=l,a()&&Jl(i,n,l,s),$r(s,!1)}let Eg=(e,t,n,i,o)=>(u(!0),function Zl(e,t){return e.createText(t)}(t[we],i));function Dd(e){return Rc("",e,""),Dd}function Rc(e,t,n){const i=Pt(),o=Ba(i,e,t,n);return o!==Gn&&Vs(i,bt(),o),Rc}function wd(e,t,n,i,o){const s=Pt(),l=Va(s,e,t,n,i,o);return l!==Gn&&Vs(s,bt(),l),wd}function xg(e,t,n){ss(Io,Ds,Ba(Pt(),e,t,n),!0)}function Md(e,t,n){const i=Pt();return eo(i,ns(),t)&&xo(qn(),hn(),i,e,t,i[we],n,!0),Md}function Ad(e,t,n){const i=Pt();if(eo(i,ns(),t)){const s=qn(),l=hn();xo(s,l,i,e,t,function hp(e,t,n){return(null===e||Hi(e))&&(n=function ti(e){for(;Array.isArray(e);){if("object"==typeof e[pr])return e;e=e[ni]}return null}(n[t.index])),n[we]}(na(s.data),l,i),n,!0)}return Ad}const ca=void 0;var YC=["en",[["a","p"],["AM","PM"],ca],[["AM","PM"],ca,ca],[["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"]],ca,[["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"]],ca,[["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}",ca,"{1} 'at' {0}",ca],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function WC(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ya={};function Td(e){const t=function KC(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Hg(t);if(n)return n;const i=t.split("-")[0];if(n=Hg(i),n)return n;if("en"===i)return YC;throw new ee(701,!1)}function Ug(e){return Td(e)[Ka.PluralCase]}function Hg(e){return e in Ya||(Ya[e]=dt.ng&&dt.ng.common&&dt.ng.common.locales&&dt.ng.common.locales[e]),Ya[e]}var Ka=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Ka||{});const Za="en-US";let jg=Za;function xd(e,t,n,i,o){if(e=Se(e),Array.isArray(e))for(let s=0;s<e.length;s++)xd(e[s],t,n,i,o);else{const s=qn(),l=Pt(),d=qi();let v=sa(e)?e:Se(e.provide);const O=Ef(e),j=1048575&d.providerIndexes,me=d.directiveStart,Ye=d.providerIndexes>>20;if(sa(e)||!e.multi){const nt=new Hn(O,o,ka),Tt=Pd(v,t,o?j:j+Ye,me);-1===Tt?(Rr(Lt(d,l),s,v),Od(s,e,t.length),t.push(v),d.directiveStart++,d.directiveEnd++,o&&(d.providerIndexes+=1048576),n.push(nt),l.push(nt)):(n[Tt]=nt,l[Tt]=nt)}else{const nt=Pd(v,t,j+Ye,me),Tt=Pd(v,t,j,j+Ye),rn=Tt>=0&&n[Tt];if(o&&!rn||!o&&!(nt>=0&&n[nt])){Rr(Lt(d,l),s,v);const bn=function WE(e,t,n,i,o){const s=new Hn(e,n,ka);return s.multi=[],s.index=t,s.componentProviders=0,fm(s,o,i&&!n),s}(o?GE:zE,n.length,o,i,O);!o&&rn&&(n[Tt].providerFactory=bn),Od(s,e,t.length,0),t.push(v),d.directiveStart++,d.directiveEnd++,o&&(d.providerIndexes+=1048576),n.push(bn),l.push(bn)}else Od(s,e,nt>-1?nt:Tt,fm(n[o?Tt:nt],O,!o&&i));!o&&i&&rn&&n[Tt].componentProviders++}}}function Od(e,t,n,i){const o=sa(t),s=function $y(e){return!!e.useClass}(t);if(o||s){const v=(s?Se(t.useClass):t).prototype.ngOnDestroy;if(v){const O=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const j=O.indexOf(n);-1===j?O.push(n,[i,v]):O[j+1].push(i,v)}else O.push(n,v)}}}function fm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Pd(e,t,n,i){for(let o=n;o<i;o++)if(t[o]===e)return o;return-1}function zE(e,t,n,i){return Rd(this.multi,[])}function GE(e,t,n,i){const o=this.multi;let s;if(this.providerFactory){const l=this.providerFactory.componentProviders,d=yr(n,n[Qt],this.providerFactory.index,i);s=d.slice(0,l),Rd(o,s);for(let v=l;v<d.length;v++)s.push(d[v])}else s=[],Rd(o,s);return s}function Rd(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function pm(e,t=[]){return n=>{n.providersResolver=(i,o)=>function $E(e,t,n){const i=qn();if(i.firstCreatePass){const o=Hi(e);xd(n,i.data,i.blueprint,o,!0),xd(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class ua{}class gm{}function YE(e,t){return new Fd(e,t??null,[])}class Fd extends ua{constructor(t,n,i){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yp(this);const o=Vi(t);this._bootstrapComponents=Bs(o.bootstrap),this._r3Injector=Bf(t,n,[{provide:ua,useValue:this},{provide:gl,useValue:this.componentFactoryResolver},...i],fe(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 kd extends gm{constructor(t){super(),this.moduleType=t}create(t){return new Fd(this.moduleType,t,[])}}class mm extends ua{constructor(t){super(),this.componentFactoryResolver=new yp(this),this.instance=null;const n=new lc([...t.providers,{provide:ua,useValue:this},{provide:gl,useValue:this.componentFactoryResolver}],t.parent||ac(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function _m(e,t,n=null){return new mm({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let ZE=(()=>{var e;class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const o=vf(0,i.type),s=o.length>0?_m([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,s)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Nt({token:e,providedIn:"environment",factory:()=>new e(W(ys))}),t})();function vm(e){e.getStandaloneInjector=t=>t.get(ZE).getOrCreateStandaloneInjector(e)}function Mm(e,t,n,i){return Im(Pt(),nr(),e,t,n,i)}function Am(e,t,n,i,o){return xm(Pt(),nr(),e,t,n,i,o)}function Tm(e,t,n,i,o,s){return Om(Pt(),nr(),e,t,n,i,o,s)}function Sm(e,t,n,i,o,s,l){return function Pm(e,t,n,i,o,s,l,d,v){const O=t+n;return function Ho(e,t,n,i,o,s){const l=aa(e,t,n,i);return aa(e,t+2,o,s)||l}(e,O,o,s,l,d)?Cs(e,O+4,v?i.call(v,o,s,l,d):i(o,s,l,d)):Pl(e,O+4)}(Pt(),nr(),e,t,n,i,o,s,l)}function Pl(e,t){const n=e[t];return n===Gn?void 0:n}function Im(e,t,n,i,o,s){const l=t+n;return eo(e,l,o)?Cs(e,l+1,s?i.call(s,o):i(o)):Pl(e,l+1)}function xm(e,t,n,i,o,s,l){const d=t+n;return aa(e,d,o,s)?Cs(e,d+2,l?i.call(l,o,s):i(o,s)):Pl(e,d+2)}function Om(e,t,n,i,o,s,l,d){const v=t+n;return function Ec(e,t,n,i,o){const s=aa(e,t,n,i);return eo(e,t+2,o)||s}(e,v,o,s,l)?Cs(e,v+3,d?i.call(d,o,s,l):i(o,s,l)):Pl(e,v+3)}function Fm(e,t){const n=qn();let i;const o=e+Dn;n.firstCreatePass?(i=function uD(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??=[]).push(o,i.onDestroy)):i=n.data[o];const s=i.factory||(i.factory=mi(i.type)),d=Zt(ka);try{const v=Ze(!1),O=s();return Ze(v),function qb(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Pt(),o,O),O}finally{Zt(d)}}function km(e,t,n){const i=e+Dn,o=Pt(),s=gi(o,i);return Rl(o,i)?Im(o,nr(),t,s.transform,n,s):s.transform(n)}function Nm(e,t,n,i){const o=e+Dn,s=Pt(),l=gi(s,o);return Rl(s,o)?xm(s,nr(),t,l.transform,n,i,l):l.transform(n,i)}function Lm(e,t,n,i,o){const s=e+Dn,l=Pt(),d=gi(l,s);return Rl(l,s)?Om(l,nr(),t,d.transform,n,i,o,d):d.transform(n,i,o)}function Rl(e,t){return e[Qt].data[t].pure}function Ld(e){return t=>{setTimeout(e,void 0,t)}}const ws=class fD 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),l=i;if(t&&"object"==typeof t){const v=t;o=v.next?.bind(v),s=v.error?.bind(v),l=v.complete?.bind(v)}this.__isAsync&&(s=Ld(s),o&&(o=Ld(o)),l&&(l=Ld(l)));const d=super.subscribe({next:o,error:s,complete:l});return t instanceof c.w0&&t.add(d),d}};function pD(){return this._results[Symbol.iterator]()}class Bc{get changes(){return this._changes||(this._changes=new ws)}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=Bc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=pD)}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 Uo(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function pv(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()}}function mD(e,t,n,i=!0){const o=t[Qt];if(function ny(e,t,n,i){const o=fi+i,s=n.length;i>0&&(n[o-1][_i]=t),i<s-fi?(t[_i]=n[o],mh(n,fi+i,t)):(n.push(t),t[_i]=null),t[ii]=n;const l=t[cn];null!==l&&n!==l&&function iy(e,t){const n=e[Zn];t[zt]!==t[ii][ii][zt]&&(e[di]=!0),null===n?e[Zn]=[t]:n.push(t)}(l,t);const d=t[xn];null!==d&&d.insertView(e),t[gn]|=128}(o,t,e,n),i){const s=fu(n,e),l=t[we],d=Xl(l,e[hi]);null!==d&&function Jv(e,t,n,i,o,s){i[ni]=o,i[vi]=t,ll(e,i,n,1,o,s)}(o,e[vi],l,t,d,s)}}let Fl=(()=>{class t{}return t.__NG_ELEMENT_ID__=yD,t})();const _D=Fl,vD=class extends _D{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const o=function gD(e,t,n,i){const o=t.tView,d=mc(e,o,n,4096&e[gn]?4096:16,null,t,null,null,null,i?.injector??null,i?.hydrationInfo??null);d[cn]=e[t.index];const O=e[xn];return null!==O&&(d[xn]=O.createEmbeddedView(o)),td(o,d,n),d}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:i});return new bl(o)}};function yD(){return Vc(qi(),Pt())}function Vc(e,t){return 4&e.type?new vD(t,e,Oa(e,t)):null}let Hc=(()=>{class t{}return t.__NG_ELEMENT_ID__=MD,t})();function MD(){return zm(qi(),Pt())}const AD=Hc,jm=class extends AD{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Oa(this._hostTNode,this._hostLView)}get injector(){return new ho(this._hostTNode,this._hostLView)}get parentInjector(){const t=xi(this._hostTNode,this._hostLView);if(is(t)){const n=U(t,this._hostLView),i=b(t);return new ho(n[Qt].data[i+8],n)}return new ho(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=$m(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-fi}createEmbeddedView(t,n,i){let o,s;"number"==typeof i?o=i:null!=i&&(o=i.index,s=i.injector);const d=t.createEmbeddedViewImpl(n||{},s,null);return this.insertImpl(d,o,false),d}createComponent(t,n,i,o,s){const l=t&&!function nl(e){return"function"==typeof e}(t);let d;if(l)d=n;else{const Ut=n||{};d=Ut.index,i=Ut.injector,o=Ut.projectableNodes,s=Ut.environmentInjector||Ut.ngModuleRef}const v=l?t:new Cl(Ln(t)),O=i||this.parentInjector;if(!s&&null==v.ngModule){const rn=(l?O:this.parentInjector).get(ys,null);rn&&(s=rn)}Ln(v.componentType??{});const nt=v.create(O,o,null,s);return this.insertImpl(nt.hostView,d,false),nt}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,i){const o=t._lView;if(function _r(e){return bi(e[ii])}(o)){const v=this.indexOf(t);if(-1!==v)this.detach(v);else{const O=o[ii],j=new jm(O,O[vi],O[ii]);j.detach(j.indexOf(t))}}const l=this._adjustIndex(n),d=this._lContainer;return mD(d,o,l,!i),t.attachToViewContainerRef(),mh(Bd(d),l,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=$m(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=ql(this._lContainer,n);i&&(Bl(Bd(this._lContainer),n),cu(i[Qt],i))}detach(t){const n=this._adjustIndex(t,-1),i=ql(this._lContainer,n);return i&&null!=Bl(Bd(this._lContainer),n)?new bl(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function $m(e){return e[8]}function Bd(e){return e[8]||(e[8]=[])}function zm(e,t){let n;const i=t[e.index];return bi(i)?n=i:(n=lp(i,t,null,e),t[e.index]=n,_c(t,n)),Gm(n,t,e,i),new jm(n,e,t)}let Gm=function Wm(e,t,n,i){if(e[hi])return;let o;o=8&n.type?ln(i):function TD(e,t){const n=e[we],i=n.createComment(""),o=vn(t,e);return ia(n,Xl(n,o),i,function ay(e,t){return e.nextSibling(t)}(n,o),!1),i}(t,n),e[hi]=o};class Vd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Vd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ud{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 l=n.getByIndex(s);o.push(this.queries[l.indexInDeclarationView].clone())}return new Ud(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!==t_(t,n).matches&&this.queries[n].setDirty()}}class Ym{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class Hd{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 Hd(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 jd{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 jd(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,xD(n,s)),this.matchTNodeWithReadOption(t,n,Vo(n,t,s,!1,!1))}else i===Fl?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Vo(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===ml||o===Hc||o===Fl&&4&n.type)this.addMatch(n.index,-2);else{const s=Vo(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 xD(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 PD(e,t,n,i){return-1===n?function OD(e,t){return 11&e.type?Oa(e,t):4&e.type?Vc(e,t):null}(t,e):-2===n?function RD(e,t,n){return n===ml?Oa(t,e):n===Fl?Vc(t,e):n===Hc?zm(t,e):void 0}(e,t,i):yr(e,e[Qt],n,t)}function Km(e,t,n,i){const o=t[xn].queries[i];if(null===o.matches){const s=e.data,l=n.matches,d=[];for(let v=0;v<l.length;v+=2){const O=l[v];d.push(O<0?null:PD(t,s[O],l[v+1],n.metadata.read))}o.matches=d}return o.matches}function $d(e,t,n,i){const o=e.queries.getByIndex(n),s=o.matches;if(null!==s){const l=Km(e,t,o,n);for(let d=0;d<s.length;d+=2){const v=s[d];if(v>0)i.push(l[d/2]);else{const O=s[d+1],j=t[-v];for(let me=fi;me<j.length;me++){const Ye=j[me];Ye[cn]===Ye[ii]&&$d(Ye[Qt],Ye,O,i)}if(null!==j[Zn]){const me=j[Zn];for(let Ye=0;Ye<me.length;Ye++){const nt=me[Ye];$d(nt[Qt],nt,O,i)}}}}}return i}function Zm(e){const t=Pt(),n=qn(),i=fa();Gs(i+1);const o=t_(n,i);if(e.dirty&&function Sr(e){return 4==(4&e[gn])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const s=o.crossesNgTemplate?$d(n,t,i,[]):Km(n,t,o,i);e.reset(s,f0),e.notifyOnChanges()}return!0}return!1}function Qm(e,t,n){const i=qn();i.firstCreatePass&&(e_(i,new Ym(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Jm(i,Pt(),t)}function qm(e,t,n,i){const o=qn();if(o.firstCreatePass){const s=qi();e_(o,new Ym(t,n,i),s.index),function kD(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)}Jm(o,Pt(),n)}function Xm(){return function FD(e,t){return e[xn].queries[t].queryList}(Pt(),fa())}function Jm(e,t,n){const i=new Bc(4==(4&n));(function B0(e,t,n,i){const o=up(t);o.push(n),e.firstCreatePass&&dp(e).push(i,o.length-1)})(e,t,i,i.destroy),null===t[xn]&&(t[xn]=new Ud),t[xn].queries.push(new Vd(i))}function e_(e,t,n){null===e.queries&&(e.queries=new Hd),e.queries.track(new jd(t,n))}function t_(e,t){return e.queries.getByIndex(t)}function n_(e,t){return Vc(e,t)}function zd(e){return!!Vi(e)}const y_=new yi("Application Initializer");let Zd=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=E(y_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const s of this.appInits){const l=s();if(pd(l))i.push(l);else if(Gp(l)){const d=new Promise((v,O)=>{l.subscribe({complete:v,error:O})});i.push(d)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{o()}).catch(s=>{this.reject(s)}),0===i.length&&o(),this.initialized=!0}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),b_=(()=>{var e;class t{log(i){console.log(i)}warn(i){console.warn(i)}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const $c=new yi("LocaleId",{providedIn:"root",factory:()=>E($c,it.Optional|it.SkipSelf)||function nw(){return typeof $localize<"u"&&$localize.locale||Za}()}),iw=new yi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let C_=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new R.X(!1)}add(){this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class ow{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let sw=(()=>{var e;class t{compileModuleSync(i){return new kd(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const o=this.compileModuleSync(i),l=Bs(Vi(i).declarations).reduce((d,v)=>{const O=Ln(v);return O&&d.push(new Cl(O)),d},[]);return new ow(o,l)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function M_(...e){}class to{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ws(!1),this.onMicrotaskEmpty=new ws(!1),this.onStable=new ws(!1),this.onError=new ws(!1),typeof Zone>"u")throw new ee(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 Aw(){const e="function"==typeof dt.requestAnimationFrame;let t=dt[e?"requestAnimationFrame":"setTimeout"],n=dt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Iw(e){const t=()=>{!function Sw(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(dt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Jd(e),e.isCheckStableRunning=!0,Xd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Jd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,s,l,d)=>{try{return A_(e),n.invokeTask(o,s,l,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),T_(e)}},onInvoke:(n,i,o,s,l,d,v)=>{try{return A_(e),n.invoke(o,s,l,d,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),T_(e)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Jd(e),Xd(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(!to.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(to.isInAngularZone())throw new ee(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const s=this._inner,l=s.scheduleEventTask("NgZoneEvent: "+o,t,Tw,M_,M_);try{return s.runTask(l,n,i)}finally{s.cancelTask(l)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const Tw={};function Xd(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 Jd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function A_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function T_(e){e._nesting--,Xd(e)}class xw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ws,this.onMicrotaskEmpty=new ws,this.onStable=new ws,this.onError=new ws}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 S_=new yi("",{providedIn:"root",factory:I_});function I_(){const e=E(to);let t=!0;const n=new te.y(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),i=new te.y(o=>{let s;e.runOutsideAngular(()=>{s=e.onStable.subscribe(()=>{to.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const l=e.onUnstable.subscribe(()=>{to.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),l.unsubscribe()}});return(0,Z.T)(n,i.pipe((0,q.B)()))}const x_=new yi(""),O_=new yi("");let eh,Ow=(()=>{var e;class t{constructor(i,o,s){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,eh||(function Pw(e){eh=e}(s),s.addToWindow(o)),this._watchAngularEvents(),i.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:()=>{to.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(i)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,s){let l=-1;o&&o>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==l),i(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:i,timeoutId:l,updateCb:s})}whenStable(i,o,s){if(s&&!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(i,o,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,s){return[]}}return(e=t).\u0275fac=function(i){return new(i||e)(W(to),W(P_),W(O_))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),t})(),P_=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){return eh?.findTestabilityInTree(this,i,o)??null}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Zs=null;const R_=new yi("AllowMultipleToken"),th=new yi("PlatformDestroyListeners"),nh=new yi("appBootstrapListener");class kw{constructor(t,n){this.name=t,this.token=n}}function N_(e,t,n=[]){const i=`Platform: ${t}`,o=new yi(i);return(s=[])=>{let l=ih();if(!l||l.injector.get(R_,!1)){const d=[...n,...s,{provide:o,useValue:!0}];e?e(d):function Nw(e){if(Zs&&!Zs.get(R_,!1))throw new ee(400,!1);(function F_(){!function Lo(e){No=e}(()=>{throw new ee(600,!1)})})(),Zs=e;const t=e.get(B_);(function k_(e){e.get(wf,null)?.forEach(n=>n())})(e)}(function L_(e=[],t){return rs.create({name:t,providers:[{provide:Au,useValue:"platform"},{provide:th,useValue:new Set([()=>Zs=null])},...e]})}(d,i))}return function Bw(e){const t=ih();if(!t)throw new ee(401,!1);return t}()}}function ih(){return Zs?.get(B_)??null}let B_=(()=>{var e;class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,o){const s=function Vw(e="zone.js",t){return"noop"===e?new xw:"zone.js"===e?new to(t):e}(o?.ngZone,function V_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return s.run(()=>{const l=function KE(e,t,n){return new Fd(e,t,n)}(i.moduleType,this.injector,function z_(e){return[{provide:to,useFactory:e},{provide:dl,multi:!0,useFactory:()=>{const t=E(Hw,{optional:!0});return()=>t.initialize()}},{provide:$_,useFactory:Uw},{provide:S_,useFactory:I_}]}(()=>s)),d=l.injector.get(Fa,null);return s.runOutsideAngular(()=>{const v=s.onError.subscribe({next:O=>{d.handleError(O)}});l.onDestroy(()=>{Gc(this._modules,l),v.unsubscribe()})}),function U_(e,t,n){try{const i=n();return pd(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(d,s,()=>{const v=l.injector.get(Zd);return v.runInitializers(),v.donePromise.then(()=>(function $g(e){oe(e,"Expected localeId to be defined"),"string"==typeof e&&(jg=e.toLowerCase().replace(/_/g,"-"))}(l.injector.get($c,Za)||Za),this._moduleDoBootstrap(l),l))})})}bootstrapModule(i,o=[]){const s=H_({},o);return function Rw(e,t,n){const i=new kd(n);return Promise.resolve(i)}(0,0,i).then(l=>this.bootstrapModuleFactory(l,s))}_moduleDoBootstrap(i){const o=i.injector.get(Xa);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(s=>o.bootstrap(s));else{if(!i.instance.ngDoBootstrap)throw new ee(-403,!1);i.instance.ngDoBootstrap(o)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ee(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const i=this._injector.get(th,null);i&&(i.forEach(o=>o()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(i){return new(i||e)(W(rs))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function H_(e,t){return Array.isArray(t)?t.reduce(H_,e):{...e,...t}}let Xa=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=E($_),this.zoneIsStable=E(S_),this.componentTypes=[],this.components=[],this.isStable=E(C_).hasPendingTasks.pipe((0,le.w)(i=>i?(0,J.of)(!1):this.zoneIsStable),(0,K.x)(),(0,q.B)()),this._injector=E(ys)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){const s=i instanceof If;if(!this._injector.get(Zd).done)throw!s&&Ii(i),new ee(405,!1);let d;d=s?i:this._injector.get(gl).resolveComponentFactory(i),this.componentTypes.push(d.componentType);const v=function Fw(e){return e.isBoundToModule}(d)?void 0:this._injector.get(ua),j=d.create(rs.NULL,[],o||d.selector,v),me=j.location.nativeElement,Ye=j.injector.get(x_,null);return Ye?.registerApplication(me),j.onDestroy(()=>{this.detachView(j.hostView),Gc(this.components,j),Ye?.unregisterApplication(me)}),this._loadComponent(j),j}tick(){if(this._runningTick)throw new ee(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}attachView(i){const o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){const o=i;Gc(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const o=this._injector.get(nh,[]);o.push(...this._bootstrapListeners),o.forEach(s=>s(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Gc(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new ee(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Gc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $_=new yi("",{providedIn:"root",factory:()=>E(Fa).handleError.bind(void 0)});function Uw(){const e=E(to),t=E(Fa);return n=>e.runOutsideAngular(()=>t.handleError(n))}let Hw=(()=>{var e;class t{constructor(){this.zone=E(to),this.applicationRef=E(Xa)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function $w(){return!1}function zw(){}let Gw=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ww,t})();function Ww(e){return function Yw(e,t,n){if(cr(e)&&!n){const i=Ai(e.index,t);return new bl(i,i)}return 47&e.type?new bl(t[zt],t):null}(qi(),Pt(),16==(16&e))}class K_{constructor(){}supports(t){return Cc(t)}create(t){return new Jw(t)}}const Xw=(e,t)=>t;class Jw{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||Xw}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 l=!i||n&&n.currentIndex<Q_(i,o,s)?n:i,d=Q_(l,o,s),v=l.currentIndex;if(l===i)o--,i=i._nextRemoved;else if(n=n._next,null==l.previousIndex)o++;else{s||(s=[]);const O=d-o,j=v-o;if(O!=j){for(let Ye=0;Ye<O;Ye++){const nt=Ye<s.length?s[Ye]:s[Ye]=0,Tt=nt+Ye;j<=Tt&&Tt<O&&(s[Ye]=nt+1)}s[l.previousIndex]=j-O}}d!==v&&t(l,d,v)}}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=[]),!Cc(t))throw new ee(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,s,l,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)s=t[d],l=this._trackByFn(d,s),null!==n&&Object.is(n.trackById,l)?(i&&(n=this._verifyReinsertion(n,s,l,d)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,l,d),i=!0),n=n._next}else o=0,function xb(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,d=>{l=this._trackByFn(o,d),null!==n&&Object.is(n.trackById,l)?(i&&(n=this._verifyReinsertion(n,d,l,o)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,l,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 eM(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 Z_),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 Z_),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 eM{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 tM{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 Z_{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new tM,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 Q_(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 q_{constructor(){}supports(t){return t instanceof Map||id(t)}create(){return new nM}}class nM{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||id(t)))throw new ee(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,l=o._next;return s&&(s._next=l),l&&(l._prev=s),o._next=null,o._prev=null,o}const i=new iM(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 iM{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 X_(){return new lh([new K_])}let lh=(()=>{var e;class t{constructor(i){this.factories=i}static create(i,o){if(null!=o){const s=o.factories.slice();i=i.concat(s)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||X_()),deps:[[t,new Hl,new Ul]]}}find(i){const o=this.factories.find(s=>s.supports(i));if(null!=o)return o;throw new ee(901,!1)}}return(e=t).\u0275prov=Nt({token:e,providedIn:"root",factory:X_}),t})();function J_(){return new ch([new q_])}let ch=(()=>{var e;class t{constructor(i){this.factories=i}static create(i,o){if(o){const s=o.factories.slice();i=i.concat(s)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||J_()),deps:[[t,new Hl,new Ul]]}}find(i){const o=this.factories.find(s=>s.supports(i));if(o)return o;throw new ee(901,!1)}}return(e=t).\u0275prov=Nt({token:e,providedIn:"root",factory:J_}),t})();const sM=N_(null,"core",[]);let aM=(()=>{var e;class t{constructor(i){}}return(e=t).\u0275fac=function(i){return new(i||e)(W(Xa))},e.\u0275mod=fr({type:e}),e.\u0275inj=dn({}),t})();function vM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function bM(e){const t=Ln(e);if(!t)return null;const n=new Cl(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},95:(It,Fe,g)=>{g.d(Fe,{Fj:()=>ee,oH:()=>ni,u5:()=>Kr,JU:()=>Je,JJ:()=>mt,JL:()=>xt,F:()=>kr,On:()=>Br,YN:()=>Ot,wV:()=>Ln,UX:()=>Ms,Q7:()=>ri,EJ:()=>wt,p4:()=>wr,_Y:()=>Pi,Kr:()=>Ri});var r=g(5879),c=g(6814),R=g(2459),te=g(5592),Z=g(7453),J=g(4829),q=g(9940),le=g(8251),K=g(7400),N=g(2714),fe=g(7398);let Ve=(()=>{var I;class w{constructor(x,pe){this._renderer=x,this._elementRef=pe,this.onChange=Rt=>{},this.onTouched=()=>{}}setProperty(x,pe){this._renderer.setProperty(this._elementRef.nativeElement,x,pe)}registerOnTouched(x){this.onTouched=x}registerOnChange(x){this.onChange=x}setDisabledState(x){this.setProperty("disabled",x)}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36(r.Qsj),r.Y36(r.SBq))},I.\u0275dir=r.lG2({type:I}),w})(),je=(()=>{var I;class w extends Ve{}return(I=w).\u0275fac=function(){let Q;return function(pe){return(Q||(Q=r.n5z(I)))(pe||I)}}(),I.\u0275dir=r.lG2({type:I,features:[r.qOj]}),w})();const Je=new r.OlP("NgValueAccessor"),$e={provide:Je,useExisting:(0,r.Gpc)(()=>ee),multi:!0},lt=new r.OlP("CompositionEventMode");let ee=(()=>{var I;class w extends Ve{constructor(x,pe,Rt){super(x,pe),this._compositionMode=Rt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ke(){const I=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(I.toLowerCase())}())}writeValue(x){this.setProperty("value",x??"")}_handleInput(x){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(x)}_compositionStart(){this._composing=!0}_compositionEnd(x){this._composing=!1,this._compositionMode&&this.onChange(x)}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(lt,8))},I.\u0275dir=r.lG2({type:I,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(x,pe){1&x&&r.NdJ("input",function(wn){return pe._handleInput(wn.target.value)})("blur",function(){return pe.onTouched()})("compositionstart",function(){return pe._compositionStart()})("compositionend",function(wn){return pe._compositionEnd(wn.target.value)})},features:[r._Bn([$e]),r.qOj]}),w})();const ve=new r.OlP("NgValidators"),ze=new r.OlP("NgAsyncValidators");function Jt(I){return function Ie(I){return null==I||("string"==typeof I||Array.isArray(I))&&0===I.length}(I.value)?{required:!0}:null}function Xe(I){return null}function ot(I){return null!=I}function ht(I){return(0,r.QGY)(I)?(0,R.D)(I):I}function ae(I){let w={};return I.forEach(Q=>{w=null!=Q?{...w,...Q}:w}),0===Object.keys(w).length?null:w}function Pe(I,w){return w.map(Q=>Q(I))}function oe(I){return I.map(w=>function F(I){return!I.validate}(w)?w:Q=>w.validate(Q))}function vt(I){return null!=I?function _e(I){if(!I)return null;const w=I.filter(ot);return 0==w.length?null:function(Q){return ae(Pe(Q,w))}}(oe(I)):null}function Ht(I){return null!=I?function At(I){if(!I)return null;const w=I.filter(ot);return 0==w.length?null:function(Q){return function z(...I){const w=(0,q.jO)(I),{args:Q,keys:x}=(0,Z.D)(I),pe=new te.y(Rt=>{const{length:wn}=Q;if(!wn)return void Rt.complete();const Fi=new Array(wn);let mr=wn,Qi=wn;for(let mi=0;mi<wn;mi++){let Zr=!1;(0,J.Xf)(Q[mi]).subscribe((0,le.x)(Rt,Cr=>{Zr||(Zr=!0,Qi--),Fi[mi]=Cr},()=>mr--,void 0,()=>{(!mr||!Zr)&&(Qi||Rt.next(x?(0,N.n)(x,Fi):Fi),Rt.complete())}))}});return w?pe.pipe((0,K.Z)(w)):pe}(Pe(Q,w).map(ht)).pipe((0,fe.U)(ae))}}(oe(I)):null}function Nt(I,w){return null===I?[w]:Array.isArray(I)?[...I,w]:[I,w]}function sn(I){return I._rawValidators}function dn(I){return I._rawAsyncValidators}function Cn(I){return I?Array.isArray(I)?I:[I]:[]}function nn(I,w){return Array.isArray(I)?I.includes(w):I===w}function In(I,w){const Q=Cn(w);return Cn(I).forEach(pe=>{nn(Q,pe)||Q.push(pe)}),Q}function Wn(I,w){return Cn(w).filter(Q=>!nn(I,Q))}class pt{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(w){this._rawValidators=w||[],this._composedValidatorFn=vt(this._rawValidators)}_setAsyncValidators(w){this._rawAsyncValidators=w||[],this._composedAsyncValidatorFn=Ht(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(w){this._onDestroyCallbacks.push(w)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(w=>w()),this._onDestroyCallbacks=[]}reset(w=void 0){this.control&&this.control.reset(w)}hasError(w,Q){return!!this.control&&this.control.hasError(w,Q)}getError(w,Q){return this.control?this.control.getError(w,Q):null}}class $ extends pt{get formDirective(){return null}get path(){return null}}class be extends pt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ke{constructor(w){this._cd=w}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 mt=(()=>{var I;class w extends ke{constructor(x){super(x)}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36(be,2))},I.\u0275dir=r.lG2({type:I,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(x,pe){2&x&&r.ekj("ng-untouched",pe.isUntouched)("ng-touched",pe.isTouched)("ng-pristine",pe.isPristine)("ng-dirty",pe.isDirty)("ng-valid",pe.isValid)("ng-invalid",pe.isInvalid)("ng-pending",pe.isPending)},features:[r.qOj]}),w})(),xt=(()=>{var I;class w extends ke{constructor(x){super(x)}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36($,10))},I.\u0275dir=r.lG2({type:I,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(x,pe){2&x&&r.ekj("ng-untouched",pe.isUntouched)("ng-touched",pe.isTouched)("ng-pristine",pe.isPristine)("ng-dirty",pe.isDirty)("ng-valid",pe.isValid)("ng-invalid",pe.isInvalid)("ng-pending",pe.isPending)("ng-submitted",pe.isSubmitted)},features:[r.qOj]}),w})();const We="VALID",St="INVALID",Kt="PENDING",Ee="DISABLED";function ye(I){return(ue(I)?I.validators:I)||null}function X(I,w){return(ue(w)?w.asyncValidators:I)||null}function ue(I){return null!=I&&!Array.isArray(I)&&"object"==typeof I}class W{constructor(w,Q){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(w),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(w){this._rawValidators=this._composedValidatorFn=w}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(w){this._rawAsyncValidators=this._composedAsyncValidatorFn=w}get parent(){return this._parent}get valid(){return this.status===We}get invalid(){return this.status===St}get pending(){return this.status==Kt}get disabled(){return this.status===Ee}get enabled(){return this.status!==Ee}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(w){this._assignValidators(w)}setAsyncValidators(w){this._assignAsyncValidators(w)}addValidators(w){this.setValidators(In(w,this._rawValidators))}addAsyncValidators(w){this.setAsyncValidators(In(w,this._rawAsyncValidators))}removeValidators(w){this.setValidators(Wn(w,this._rawValidators))}removeAsyncValidators(w){this.setAsyncValidators(Wn(w,this._rawAsyncValidators))}hasValidator(w){return nn(this._rawValidators,w)}hasAsyncValidator(w){return nn(this._rawAsyncValidators,w)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(w={}){this.touched=!0,this._parent&&!w.onlySelf&&this._parent.markAsTouched(w)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(w=>w.markAllAsTouched())}markAsUntouched(w={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Q=>{Q.markAsUntouched({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}markAsDirty(w={}){this.pristine=!1,this._parent&&!w.onlySelf&&this._parent.markAsDirty(w)}markAsPristine(w={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Q=>{Q.markAsPristine({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}markAsPending(w={}){this.status=Kt,!1!==w.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!w.onlySelf&&this._parent.markAsPending(w)}disable(w={}){const Q=this._parentMarkedDirty(w.onlySelf);this.status=Ee,this.errors=null,this._forEachChild(x=>{x.disable({...w,onlySelf:!0})}),this._updateValue(),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...w,skipPristineCheck:Q}),this._onDisabledChange.forEach(x=>x(!0))}enable(w={}){const Q=this._parentMarkedDirty(w.onlySelf);this.status=We,this._forEachChild(x=>{x.enable({...w,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent}),this._updateAncestors({...w,skipPristineCheck:Q}),this._onDisabledChange.forEach(x=>x(!1))}_updateAncestors(w){this._parent&&!w.onlySelf&&(this._parent.updateValueAndValidity(w),w.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(w){this._parent=w}getRawValue(){return this.value}updateValueAndValidity(w={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===We||this.status===Kt)&&this._runAsyncValidator(w.emitEvent)),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!w.onlySelf&&this._parent.updateValueAndValidity(w)}_updateTreeValidity(w={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(w)),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ee:We}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(w){if(this.asyncValidator){this.status=Kt,this._hasOwnPendingAsyncValidator=!0;const Q=ht(this.asyncValidator(this));this._asyncValidationSubscription=Q.subscribe(x=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(x,{emitEvent:w})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(w,Q={}){this.errors=w,this._updateControlsErrors(!1!==Q.emitEvent)}get(w){let Q=w;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((x,pe)=>x&&x._find(pe),this)}getError(w,Q){const x=Q?this.get(Q):this;return x&&x.errors?x.errors[w]:null}hasError(w,Q){return!!this.getError(w,Q)}get root(){let w=this;for(;w._parent;)w=w._parent;return w}_updateControlsErrors(w){this.status=this._calculateStatus(),w&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(w)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?Ee:this.errors?St:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Kt)?Kt:this._anyControlsHaveStatus(St)?St:We}_anyControlsHaveStatus(w){return this._anyControls(Q=>Q.status===w)}_anyControlsDirty(){return this._anyControls(w=>w.dirty)}_anyControlsTouched(){return this._anyControls(w=>w.touched)}_updatePristine(w={}){this.pristine=!this._anyControlsDirty(),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}_updateTouched(w={}){this.touched=this._anyControlsTouched(),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}_registerOnCollectionChange(w){this._onCollectionChange=w}_setUpdateStrategy(w){ue(w)&&null!=w.updateOn&&(this._updateOn=w.updateOn)}_parentMarkedDirty(w){return!w&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(w){return null}_assignValidators(w){this._rawValidators=Array.isArray(w)?w.slice():w,this._composedValidatorFn=function G(I){return Array.isArray(I)?vt(I):I||null}(this._rawValidators)}_assignAsyncValidators(w){this._rawAsyncValidators=Array.isArray(w)?w.slice():w,this._composedAsyncValidatorFn=function re(I){return Array.isArray(I)?Ht(I):I||null}(this._rawAsyncValidators)}}class se extends W{constructor(w,Q,x){super(ye(Q),X(x,Q)),this.controls=w,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(w,Q){return this.controls[w]?this.controls[w]:(this.controls[w]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(w,Q,x={}){this.registerControl(w,Q),this.updateValueAndValidity({emitEvent:x.emitEvent}),this._onCollectionChange()}removeControl(w,Q={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(w,Q,x={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],Q&&this.registerControl(w,Q),this.updateValueAndValidity({emitEvent:x.emitEvent}),this._onCollectionChange()}contains(w){return this.controls.hasOwnProperty(w)&&this.controls[w].enabled}setValue(w,Q={}){(function _t(I,w,Q){I._forEachChild((x,pe)=>{if(void 0===Q[pe])throw new r.vHH(1002,"")})})(this,0,w),Object.keys(w).forEach(x=>{(function Be(I,w,Q){const x=I.controls;if(!(w?Object.keys(x):x).length)throw new r.vHH(1e3,"");if(!x[Q])throw new r.vHH(1001,"")})(this,!0,x),this.controls[x].setValue(w[x],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(w,Q={}){null!=w&&(Object.keys(w).forEach(x=>{const pe=this.controls[x];pe&&pe.patchValue(w[x],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(w={},Q={}){this._forEachChild((x,pe)=>{x.reset(w[pe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q),this._updateTouched(Q),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(w,Q,x)=>(w[x]=Q.getRawValue(),w))}_syncPendingControls(){let w=this._reduceChildren(!1,(Q,x)=>!!x._syncPendingControls()||Q);return w&&this.updateValueAndValidity({onlySelf:!0}),w}_forEachChild(w){Object.keys(this.controls).forEach(Q=>{const x=this.controls[Q];x&&w(x,Q)})}_setUpControls(){this._forEachChild(w=>{w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(w){for(const[Q,x]of Object.entries(this.controls))if(this.contains(Q)&&w(x))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,x,pe)=>((x.enabled||this.disabled)&&(Q[pe]=x.value),Q))}_reduceChildren(w,Q){let x=w;return this._forEachChild((pe,Rt)=>{x=Q(x,pe,Rt)}),x}_allControlsDisabled(){for(const w of Object.keys(this.controls))if(this.controls[w].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(w){return this.controls.hasOwnProperty(w)?this.controls[w]:null}}const k=new r.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>L}),L="always";function Le(I,w,Q=L){tt(I,w),w.valueAccessor.writeValue(I.value),(I.disabled||"always"===Q)&&w.valueAccessor.setDisabledState?.(I.disabled),function rt(I,w){w.valueAccessor.registerOnChange(Q=>{I._pendingValue=Q,I._pendingChange=!0,I._pendingDirty=!0,"change"===I.updateOn&&An(I,w)})}(I,w),function Pn(I,w){const Q=(x,pe)=>{w.valueAccessor.writeValue(x),pe&&w.viewToModelUpdate(x)};I.registerOnChange(Q),w._registerOnDestroy(()=>{I._unregisterOnChange(Q)})}(I,w),function Xt(I,w){w.valueAccessor.registerOnTouched(()=>{I._pendingTouched=!0,"blur"===I.updateOn&&I._pendingChange&&An(I,w),"submit"!==I.updateOn&&I.markAsTouched()})}(I,w),function Qe(I,w){if(w.valueAccessor.setDisabledState){const Q=x=>{w.valueAccessor.setDisabledState(x)};I.registerOnDisabledChange(Q),w._registerOnDestroy(()=>{I._unregisterOnDisabledChange(Q)})}}(I,w)}function Ct(I,w,Q=!0){const x=()=>{};w.valueAccessor&&(w.valueAccessor.registerOnChange(x),w.valueAccessor.registerOnTouched(x)),function De(I,w){let Q=!1;if(null!==I){if(null!==w.validator){const pe=sn(I);if(Array.isArray(pe)&&pe.length>0){const Rt=pe.filter(wn=>wn!==w.validator);Rt.length!==pe.length&&(Q=!0,I.setValidators(Rt))}}if(null!==w.asyncValidator){const pe=dn(I);if(Array.isArray(pe)&&pe.length>0){const Rt=pe.filter(wn=>wn!==w.asyncValidator);Rt.length!==pe.length&&(Q=!0,I.setAsyncValidators(Rt))}}}const x=()=>{};return Dt(w._rawValidators,x),Dt(w._rawAsyncValidators,x),Q}(I,w),I&&(w._invokeOnDestroyCallbacks(),I._registerOnCollectionChange(()=>{}))}function Dt(I,w){I.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(w)})}function tt(I,w){const Q=sn(I);null!==w.validator?I.setValidators(Nt(Q,w.validator)):"function"==typeof Q&&I.setValidators([Q]);const x=dn(I);null!==w.asyncValidator?I.setAsyncValidators(Nt(x,w.asyncValidator)):"function"==typeof x&&I.setAsyncValidators([x]);const pe=()=>I.updateValueAndValidity();Dt(w._rawValidators,pe),Dt(w._rawAsyncValidators,pe)}function An(I,w){I._pendingDirty&&I.markAsDirty(),I.setValue(I._pendingValue,{emitModelToViewChange:!1}),w.viewToModelUpdate(I._pendingValue),I._pendingChange=!1}function $n(I,w){if(!I.hasOwnProperty("model"))return!1;const Q=I.model;return!!Q.isFirstChange()||!Object.is(w,Q.currentValue)}function Oi(I,w){if(!w)return null;let Q,x,pe;return Array.isArray(w),w.forEach(Rt=>{Rt.constructor===ee?Q=Rt:function zi(I){return Object.getPrototypeOf(I.constructor)===je}(Rt)?x=Rt:pe=Rt}),pe||x||Q||null}const si={provide:$,useExisting:(0,r.Gpc)(()=>kr)},Li=(()=>Promise.resolve())();let kr=(()=>{var I;class w extends ${constructor(x,pe,Rt){super(),this.callSetDisabledState=Rt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new r.vpe,this.form=new se({},vt(x),Ht(pe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(x){Li.then(()=>{const pe=this._findContainer(x.path);x.control=pe.registerControl(x.name,x.control),Le(x.control,x,this.callSetDisabledState),x.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(x)})}getControl(x){return this.form.get(x.path)}removeControl(x){Li.then(()=>{const pe=this._findContainer(x.path);pe&&pe.removeControl(x.name),this._directives.delete(x)})}addFormGroup(x){Li.then(()=>{const pe=this._findContainer(x.path),Rt=new se({});(function Xn(I,w){tt(I,w)})(Rt,x),pe.registerControl(x.name,Rt),Rt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(x){Li.then(()=>{const pe=this._findContainer(x.path);pe&&pe.removeControl(x.name)})}getFormGroup(x){return this.form.get(x.path)}updateModel(x,pe){Li.then(()=>{this.form.get(x.path).setValue(pe)})}setValue(x){this.control.setValue(x)}onSubmit(x){return this.submitted=!0,function Xi(I,w){I._syncPendingControls(),w.forEach(Q=>{const x=Q.control;"submit"===x.updateOn&&x._pendingChange&&(Q.viewToModelUpdate(x._pendingValue),x._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(x),"dialog"===x?.target?.method}onReset(){this.resetForm()}resetForm(x=void 0){this.form.reset(x),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(x){return x.pop(),x.length?this.form.get(x):this.form}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36(ve,10),r.Y36(ze,10),r.Y36(k,8))},I.\u0275dir=r.lG2({type:I,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(x,pe){1&x&&r.NdJ("submit",function(wn){return pe.onSubmit(wn)})("reset",function(){return pe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([si]),r.qOj]}),w})();function zr(I,w){const Q=I.indexOf(w);Q>-1&&I.splice(Q,1)}function jo(I){return"object"==typeof I&&null!==I&&2===Object.keys(I).length&&"value"in I&&"disabled"in I}const po=class extends W{constructor(w=null,Q,x){super(ye(Q),X(x,Q)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(w),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ue(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=jo(w)?w.value:w)}setValue(w,Q={}){this.value=this._pendingValue=w,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(x=>x(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(w,Q={}){this.setValue(w,Q)}reset(w=this.defaultValue,Q={}){this._applyFormState(w),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(w){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(w){this._onChange.push(w)}_unregisterOnChange(w){zr(this._onChange,w)}registerOnDisabledChange(w){this._onDisabledChange.push(w)}_unregisterOnDisabledChange(w){zr(this._onDisabledChange,w)}_forEachChild(w){}_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(w){jo(w)?(this.value=this._pendingValue=w.value,w.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=w}},wr=po,fr={provide:be,useExisting:(0,r.Gpc)(()=>Br)},ro=(()=>Promise.resolve())();let Br=(()=>{var I;class w extends be{constructor(x,pe,Rt,wn,Fi,mr){super(),this._changeDetectorRef=Fi,this.callSetDisabledState=mr,this.control=new po,this._registered=!1,this.name="",this.update=new r.vpe,this._parent=x,this._setValidators(pe),this._setAsyncValidators(Rt),this.valueAccessor=Oi(0,wn)}ngOnChanges(x){if(this._checkForErrors(),!this._registered||"name"in x){if(this._registered&&(this._checkName(),this.formDirective)){const pe=x.name.previousValue;this.formDirective.removeControl({name:pe,path:this._getPath(pe)})}this._setUpControl()}"isDisabled"in x&&this._updateDisabled(x),$n(x,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(x){this.viewModel=x,this.update.emit(x)}_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(){Le(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(x){ro.then(()=>{this.control.setValue(x,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(x){const pe=x.isDisabled.currentValue,Rt=0!==pe&&(0,r.VuI)(pe);ro.then(()=>{Rt&&!this.control.disabled?this.control.disable():!Rt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(x){return this._parent?function Ae(I,w){return[...w.path,I]}(x,this._parent):[x]}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36($,9),r.Y36(ve,10),r.Y36(ze,10),r.Y36(Je,10),r.Y36(r.sBO,8),r.Y36(k,8))},I.\u0275dir=r.lG2({type:I,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([fr]),r.qOj,r.TTD]}),w})(),Pi=(()=>{var I;class w{}return(I=w).\u0275fac=function(x){return new(x||I)},I.\u0275dir=r.lG2({type:I,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),w})();const Yi={provide:Je,useExisting:(0,r.Gpc)(()=>Ln),multi:!0};let Ln=(()=>{var I;class w extends je{writeValue(x){this.setProperty("value",x??"")}registerOnChange(x){this.onChange=pe=>{x(""==pe?null:parseFloat(pe))}}}return(I=w).\u0275fac=function(){let Q;return function(pe){return(Q||(Q=r.n5z(I)))(pe||I)}}(),I.\u0275dir=r.lG2({type:I,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(x,pe){1&x&&r.NdJ("input",function(wn){return pe.onChange(wn.target.value)})("blur",function(){return pe.onTouched()})},features:[r._Bn([Yi]),r.qOj]}),w})(),Ii=(()=>{var I;class w{}return(I=w).\u0275fac=function(x){return new(x||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({}),w})();const Gr=new r.OlP("NgModelWithFormControlWarning"),Wr={provide:be,useExisting:(0,r.Gpc)(()=>ni)};let ni=(()=>{var I;class w extends be{set isDisabled(x){}constructor(x,pe,Rt,wn,Fi){super(),this._ngModelWarningConfig=wn,this.callSetDisabledState=Fi,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(x),this._setAsyncValidators(pe),this.valueAccessor=Oi(0,Rt)}ngOnChanges(x){if(this._isControlChanged(x)){const pe=x.form.previousValue;pe&&Ct(pe,this,!1),Le(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}$n(x,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ct(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(x){this.viewModel=x,this.update.emit(x)}_isControlChanged(x){return x.hasOwnProperty("form")}}return(I=w)._ngModelWarningSentOnce=!1,I.\u0275fac=function(x){return new(x||I)(r.Y36(ve,10),r.Y36(ze,10),r.Y36(Je,10),r.Y36(Gr,8),r.Y36(k,8))},I.\u0275dir=r.lG2({type:I,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([Wr]),r.qOj,r.TTD]}),w})();const He={provide:Je,useExisting:(0,r.Gpc)(()=>wt),multi:!0};function we(I,w){return null==I?`${w}`:(w&&"object"==typeof w&&(w="Object"),`${I}: ${w}`.slice(0,50))}let wt=(()=>{var I;class w extends je{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(x){this._compareWith=x}writeValue(x){this.value=x;const Rt=we(this._getOptionId(x),x);this.setProperty("value",Rt)}registerOnChange(x){this.onChange=pe=>{this.value=this._getOptionValue(pe),x(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(x){for(const pe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(pe),x))return pe;return null}_getOptionValue(x){const pe=function et(I){return I.split(":")[0]}(x);return this._optionMap.has(pe)?this._optionMap.get(pe):x}}return(I=w).\u0275fac=function(){let Q;return function(pe){return(Q||(Q=r.n5z(I)))(pe||I)}}(),I.\u0275dir=r.lG2({type:I,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(x,pe){1&x&&r.NdJ("change",function(wn){return pe.onChange(wn.target.value)})("blur",function(){return pe.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([He]),r.qOj]}),w})(),Ot=(()=>{var I;class w{constructor(x,pe,Rt){this._element=x,this._renderer=pe,this._select=Rt,this._select&&(this.id=this._select._registerOption())}set ngValue(x){null!=this._select&&(this._select._optionMap.set(this.id,x),this._setElementValue(we(this.id,x)),this._select.writeValue(this._select.value))}set value(x){this._setElementValue(x),this._select&&this._select.writeValue(this._select.value)}_setElementValue(x){this._renderer.setProperty(this._element.nativeElement,"value",x)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(wt,9))},I.\u0275dir=r.lG2({type:I,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),w})();const zt={provide:Je,useExisting:(0,r.Gpc)(()=>Ui),multi:!0};function cn(I,w){return null==I?`${w}`:("string"==typeof w&&(w=`'${w}'`),w&&"object"==typeof w&&(w="Object"),`${I}: ${w}`.slice(0,50))}let Ui=(()=>{var I;class w extends je{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(x){this._compareWith=x}writeValue(x){let pe;if(this.value=x,Array.isArray(x)){const Rt=x.map(wn=>this._getOptionId(wn));pe=(wn,Fi)=>{wn._setSelected(Rt.indexOf(Fi.toString())>-1)}}else pe=(Rt,wn)=>{Rt._setSelected(!1)};this._optionMap.forEach(pe)}registerOnChange(x){this.onChange=pe=>{const Rt=[],wn=pe.selectedOptions;if(void 0!==wn){const Fi=wn;for(let mr=0;mr<Fi.length;mr++){const mi=this._getOptionValue(Fi[mr].value);Rt.push(mi)}}else{const Fi=pe.options;for(let mr=0;mr<Fi.length;mr++){const Qi=Fi[mr];if(Qi.selected){const mi=this._getOptionValue(Qi.value);Rt.push(mi)}}}this.value=Rt,x(Rt)}}_registerOption(x){const pe=(this._idCounter++).toString();return this._optionMap.set(pe,x),pe}_getOptionId(x){for(const pe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(pe)._value,x))return pe;return null}_getOptionValue(x){const pe=function Kn(I){return I.split(":")[0]}(x);return this._optionMap.has(pe)?this._optionMap.get(pe)._value:x}}return(I=w).\u0275fac=function(){let Q;return function(pe){return(Q||(Q=r.n5z(I)))(pe||I)}}(),I.\u0275dir=r.lG2({type:I,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(x,pe){1&x&&r.NdJ("change",function(wn){return pe.onChange(wn.target)})("blur",function(){return pe.onTouched()})},inputs:{compareWith:"compareWith"},features:[r._Bn([zt]),r.qOj]}),w})(),Ri=(()=>{var I;class w{constructor(x,pe,Rt){this._element=x,this._renderer=pe,this._select=Rt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(x){null!=this._select&&(this._value=x,this._setElementValue(cn(this.id,x)),this._select.writeValue(this._select.value))}set value(x){this._select?(this._value=x,this._setElementValue(cn(this.id,x)),this._select.writeValue(this._select.value)):this._setElementValue(x)}_setElementValue(x){this._renderer.setProperty(this._element.nativeElement,"value",x)}_setSelected(x){this._renderer.setProperty(this._element.nativeElement,"selected",x)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(I=w).\u0275fac=function(x){return new(x||I)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Ui,9))},I.\u0275dir=r.lG2({type:I,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),w})(),Zi=(()=>{var I;class w{constructor(){this._validator=Xe}ngOnChanges(x){if(this.inputName in x){const pe=this.normalizeInput(x[this.inputName].currentValue);this._enabled=this.enabled(pe),this._validator=this._enabled?this.createValidator(pe):Xe,this._onChange&&this._onChange()}}validate(x){return this._validator(x)}registerOnValidatorChange(x){this._onChange=x}enabled(x){return null!=x}}return(I=w).\u0275fac=function(x){return new(x||I)},I.\u0275dir=r.lG2({type:I,features:[r.TTD]}),w})();const di={provide:ve,useExisting:(0,r.Gpc)(()=>ri),multi:!0};let ri=(()=>{var I;class w extends Zi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=r.VuI,this.createValidator=x=>Jt}enabled(x){return x}}return(I=w).\u0275fac=function(){let Q;return function(pe){return(Q||(Q=r.n5z(I)))(pe||I)}}(),I.\u0275dir=r.lG2({type:I,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(x,pe){2&x&&r.uIk("required",pe._enabled?"":null)},inputs:{required:"required"},features:[r._Bn([di]),r.qOj]}),w})(),Oo=(()=>{var I;class w{}return(I=w).\u0275fac=function(x){return new(x||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[Ii]}),w})(),Kr=(()=>{var I;class w{static withConfig(x){return{ngModule:w,providers:[{provide:k,useValue:x.callSetDisabledState??L}]}}}return(I=w).\u0275fac=function(x){return new(x||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[Oo]}),w})(),Ms=(()=>{var I;class w{static withConfig(x){return{ngModule:w,providers:[{provide:Gr,useValue:x.warnOnNgModelWithFormControl??"always"},{provide:k,useValue:x.callSetDisabledState??L}]}}}return(I=w).\u0275fac=function(x){return new(x||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[Oo]}),w})()},940:(It,Fe,g)=>{g.d(Fe,{XC:()=>se,Bb:()=>Dt,ZL:()=>Ct});var r=g(5879),c=g(6649),R=g(6814),te=g(7259),Z=g(3952),J=g(3745),q=g(1417),le=g(8748),K=g(6825),N=g(7394),z=g(8645),fe=g(4911),Ve=g(3019),je=g(2096),Je=g(2438),Se=g(4880),Ue=g(8549),$e=g(95);const qe=new r.OlP("MatFormField");var jn=g(7921),Vn=g(4664),Mn=g(8180),Ge=g(2181),ie=g(7398),ce=g(9397),We=g(5177),St=g(5114);const Kt=["panel"];function Ee(Qe,tt){if(1&Qe&&(r.TgZ(0,"div",0,1),r.Hsn(2),r.qZA()),2&Qe){const De=tt.id,rt=r.oxw();r.Q6J("id",rt.id)("ngClass",rt._classList)("@panelAnimation",rt.isOpen?"visible":"hidden"),r.uIk("aria-label",rt.ariaLabel||null)("aria-labelledby",rt._getPanelAriaLabelledby(De))}}const ye=["*"],G=(0,K.X$)("panelAnimation",[(0,K.SB)("void, hidden",(0,K.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,K.eR)(":enter, hidden => visible",[(0,K.ru)([(0,K.jt)("0.03s linear",(0,K.oB)({opacity:1})),(0,K.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,K.oB)({transform:"scaleY(1)"}))])]),(0,K.eR)(":leave, visible => hidden",[(0,K.jt)("0.075s linear",(0,K.oB)({opacity:0}))])]);let X=0;class re{constructor(tt,De){this.source=tt,this.option=De}}const ue=(0,c.Kr)(class{}),Be=new r.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function _t(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let W=(()=>{class Qe extends ue{get isOpen(){return this._isOpen&&this.showPanel}_setColor(De){this._color=De,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(De){this._autoActiveFirstOption=(0,q.Ig)(De)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(De){this._autoSelectActiveOption=(0,q.Ig)(De)}set classList(De){this._classList=De&&De.length?(0,q.du)(De).reduce((rt,Xt)=>(rt[Xt]=!0,rt),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(De,rt,Xt,An){super(),this._changeDetectorRef=De,this._elementRef=rt,this._activeOptionChanges=N.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-"+X++,this.inertGroups=An?.SAFARI||!1,this._autoActiveFirstOption=!!Xt.autoActiveFirstOption,this._autoSelectActiveOption=!!Xt.autoSelectActiveOption}ngAfterContentInit(){this._keyManager=new J.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(De=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[De]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(De){this.panel&&(this.panel.nativeElement.scrollTop=De)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(De){const rt=new re(this,De);this.optionSelected.emit(rt)}_getPanelAriaLabelledby(De){return this.ariaLabel?null:this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_setVisibilityClasses(De){De[this._visibleClass]=this.showPanel,De[this._hiddenClass]=!this.showPanel}_setThemeClasses(De){De["mat-primary"]="primary"===this._color,De["mat-warn"]="warn"===this._color,De["mat-accent"]="accent"===this._color}}return Qe.\u0275fac=function(De){return new(De||Qe)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(Be),r.Y36(le.t4))},Qe.\u0275dir=r.lG2({type:Qe,viewQuery:function(De,rt){if(1&De&&(r.Gf(r.Rgc,7),r.Gf(Kt,5)),2&De){let Xt;r.iGM(Xt=r.CRH())&&(rt.template=Xt.first),r.iGM(Xt=r.CRH())&&(rt.panel=Xt.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]}),Qe})(),se=(()=>{class Qe extends W{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden"}}return Qe.\u0275fac=function(){let tt;return function(rt){return(tt||(tt=r.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275cmp=r.Xpm({type:Qe,selectors:[["mat-autocomplete"]],contentQueries:function(De,rt,Xt){if(1&De&&(r.Suo(Xt,c.K7,5),r.Suo(Xt,c.ey,5)),2&De){let An;r.iGM(An=r.CRH())&&(rt.optionGroups=An),r.iGM(An=r.CRH())&&(rt.options=An)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[r._Bn([{provide:c.HF,useExisting:Qe}]),r.qOj],ngContentSelectors:ye,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(De,rt){1&De&&(r.F$t(),r.YNc(0,Ee,3,5,"ng-template"))},dependencies:[R.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:[G]},changeDetection:0}),Qe})();const B={provide:$e.JU,useExisting:(0,r.Gpc)(()=>Ct),multi:!0},k=new r.OlP("mat-autocomplete-scroll-strategy"),Ae={provide:k,deps:[Z.aV],useFactory:function L(Qe){return()=>Qe.scrollStrategies.reposition()}};let Le=(()=>{class Qe{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(De){this._autocompleteDisabled=(0,q.Ig)(De)}constructor(De,rt,Xt,An,Pn,Xn,Si,Qn,Bn,zn,Ci){this._element=De,this._overlay=rt,this._viewContainerRef=Xt,this._zone=An,this._changeDetectorRef=Pn,this._dir=Si,this._formField=Qn,this._document=Bn,this._viewportRuler=zn,this._defaults=Ci,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=N.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new z.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,fe.P)(()=>{const ci=this.autocomplete?this.autocomplete.options:null;return ci?ci.changes.pipe((0,jn.O)(ci),(0,Vn.w)(()=>(0,Ve.T)(...ci.map($n=>$n.onSelectionChange)))):this._zone.onStable.pipe((0,Mn.q)(1),(0,Vn.w)(()=>this.optionSelections))}),this._scrollStrategy=Xn}ngAfterViewInit(){const De=this._getWindow();typeof De<"u"&&this._zone.runOutsideAngular(()=>De.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(De){De.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const De=this._getWindow();typeof De<"u"&&De.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,Ve.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Ge.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Ge.h)(()=>this._overlayAttached)):(0,je.of)()).pipe((0,ie.U)(De=>De instanceof c.rN?De:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ve.T)((0,Je.R)(this._document,"click"),(0,Je.R)(this._document,"auxclick"),(0,Je.R)(this._document,"touchend")).pipe((0,Ge.h)(De=>{const rt=(0,le.sA)(De),Xt=this._formField?this._formField._elementRef.nativeElement:null,An=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&rt!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Xt||!Xt.contains(rt))&&(!An||!An.contains(rt))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(rt)}))}writeValue(De){Promise.resolve(null).then(()=>this._assignOptionValue(De))}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this._element.nativeElement.disabled=De}_handleKeydown(De){const rt=De.keyCode,Xt=(0,Se.Vb)(De);if(rt===Se.hY&&!Xt&&De.preventDefault(),this.activeOption&&rt===Se.K5&&this.panelOpen&&!Xt)this.activeOption._selectViaInteraction(),this._resetActiveItem(),De.preventDefault();else if(this.autocomplete){const An=this.autocomplete._keyManager.activeItem,Pn=rt===Se.LH||rt===Se.JH;rt===Se.Mf||Pn&&!Xt&&this.panelOpen?this.autocomplete._keyManager.onKeydown(De):Pn&&this._canOpen()&&this.openPanel(),(Pn||this.autocomplete._keyManager.activeItem!==An)&&(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(De){let rt=De.target,Xt=rt.value;"number"===rt.type&&(Xt=""==Xt?null:parseFloat(Xt)),this._previousValue!==Xt&&(this._previousValue=Xt,this._pendingAutoselectedOption=null,this._onChange(Xt),this._canOpen()&&this._document.activeElement===De.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(De=!1){this._formField&&"auto"===this._formField.floatLabel&&(De?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const De=this._zone.onStable.pipe((0,Mn.q)(1)),rt=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,We.g)(0));return(0,Ve.T)(De,rt).pipe((0,Vn.w)(()=>(this._zone.run(()=>{const Xt=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Xt!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Mn.q)(1)).subscribe(Xt=>this._setValueAndClose(Xt))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(De){const rt=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(De):De;this._updateNativeInputValue(rt??"")}_updateNativeInputValue(De){this._formField?this._formField._control.value=De:this._element.nativeElement.value=De,this._previousValue=De}_setValueAndClose(De){const rt=De?De.source:this._pendingAutoselectedOption;rt&&(this._clearPreviousSelectedOption(rt),this._assignOptionValue(rt.value),this._onChange(rt.value),this.autocomplete._emitSelectEvent(rt),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(De){this.autocomplete.options.forEach(rt=>{rt!==De&&rt.selected&&rt.deselect()})}_attachOverlay(){let De=this._overlayRef;De?(this._positionStrategy.setOrigin(this._getConnectedElement()),De.updateSize({width:this._getPanelWidth()})):(this._portal=new Ue.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),De=this._overlay.create(this._getOverlayConfig()),this._overlayRef=De,this._handleOverlayEvents(De),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&De&&De.updateSize({width:this._getPanelWidth()})})),De&&!De.hasAttached()&&(De.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const rt=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&rt!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const De=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(De),this._positionStrategy=De,De}_setStrategyPositions(De){const rt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Xt=this._aboveClass,An=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Xt},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Xt}];let Pn;Pn="above"===this.position?An:"below"===this.position?rt:[...rt,...An],De.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 De=this.autocomplete;De.autoActiveFirstOption?De._keyManager.setFirstItemActive():De._keyManager.setActiveItem(-1)}_canOpen(){const De=this._element.nativeElement;return!De.readOnly&&!De.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(De){const rt=this.autocomplete,Xt=(0,c.CB)(De,rt.options,rt.optionGroups);if(0===De&&1===Xt)rt._setScrollTop(0);else if(rt.panel){const An=rt.options.toArray()[De];if(An){const Pn=An._getHostElement(),Xn=(0,c.jH)(Pn.offsetTop,Pn.offsetHeight,rt._getScrollTop(),rt.panel.nativeElement.offsetHeight);rt._setScrollTop(Xn)}}}_handleOverlayEvents(De){De.keydownEvents().subscribe(rt=>{(rt.keyCode===Se.hY&&!(0,Se.Vb)(rt)||rt.keyCode===Se.LH&&(0,Se.Vb)(rt,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),rt.stopPropagation(),rt.preventDefault())}),De.outsidePointerEvents().subscribe()}}return Qe.\u0275fac=function(De){return new(De||Qe)(r.Y36(r.SBq),r.Y36(Z.aV),r.Y36(r.s_b),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(k),r.Y36(St.Is,8),r.Y36(qe,9),r.Y36(R.K0,8),r.Y36(te.rL),r.Y36(Be,8))},Qe.\u0275dir=r.lG2({type:Qe,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[r.TTD]}),Qe})(),Ct=(()=>{class Qe extends Le{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return Qe.\u0275fac=function(){let tt;return function(rt){return(tt||(tt=r.n5z(Qe)))(rt||Qe)}}(),Qe.\u0275dir=r.lG2({type:Qe,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(De,rt){1&De&&r.NdJ("focusin",function(){return rt._handleFocus()})("blur",function(){return rt._onTouched()})("input",function(An){return rt._handleInput(An)})("keydown",function(An){return rt._handleKeydown(An)})("click",function(){return rt._handleClick()}),2&De&&r.uIk("autocomplete",rt.autocompleteAttribute)("role",rt.autocompleteDisabled?null:"combobox")("aria-autocomplete",rt.autocompleteDisabled?null:"list")("aria-activedescendant",rt.panelOpen&&rt.activeOption?rt.activeOption.id:null)("aria-expanded",rt.autocompleteDisabled?null:rt.panelOpen.toString())("aria-owns",rt.autocompleteDisabled||!rt.panelOpen||null==rt.autocomplete?null:rt.autocomplete.id)("aria-haspopup",rt.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[r._Bn([B]),r.qOj]}),Qe})(),Dt=(()=>{class Qe{}return Qe.\u0275fac=function(De){return new(De||Qe)},Qe.\u0275mod=r.oAB({type:Qe}),Qe.\u0275inj=r.cJS({providers:[Ae],imports:[Z.U8,c.Ng,c.BQ,R.ez,te.ZD,c.Ng,c.BQ]}),Qe})()},6649:(It,Fe,g)=>{g.d(Fe,{K7:()=>st,HF:()=>$t,BQ:()=>Ie,ey:()=>En,Ng:()=>Mn,rN:()=>Gt,wG:()=>it,si:()=>mt,CB:()=>jn,jH:()=>Vn,Kr:()=>Et,sb:()=>Bt});var r=g(5879),c=g(3745),R=g(5114),Z=g(6814),J=g(8748),q=g(1417),le=g(8645),K=g(4880);const fe=["text"];function Ve(Ge,ie){if(1&Ge&&r._UZ(0,"mat-pseudo-checkbox",5),2&Ge){const ce=r.oxw();r.Q6J("state",ce.selected?"checked":"unchecked")("disabled",ce.disabled)}}function je(Ge,ie){if(1&Ge&&(r.TgZ(0,"span",6),r._uU(1),r.qZA()),2&Ge){const ce=r.oxw();r.xp6(1),r.hij("(",ce.group.label,")")}}const Je=[[["mat-icon"]],"*"],Se=["mat-icon","*"],ee=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function lt(){return!0}});let Ie=(()=>{class Ge{constructor(ce,We,St){this._sanityChecks=We,this._document=St,this._hasDoneGlobalChecks=!1,ce._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ce){return!(0,J.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ce])}}return Ge.\u0275fac=function(ce){return new(ce||Ge)(r.LFG(c.qm),r.LFG(ee,8),r.LFG(Z.K0))},Ge.\u0275mod=r.oAB({type:Ge}),Ge.\u0275inj=r.cJS({imports:[R.vT,R.vT]}),Ge})();function Et(Ge){return class extends Ge{get disableRipple(){return this._disableRipple}set disableRipple(ie){this._disableRipple=(0,q.Ig)(ie)}constructor(...ie){super(...ie),this._disableRipple=!1}}}function Bt(Ge,ie=0){return class extends Ge{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ce){this._tabIndex=null!=ce?(0,q.su)(ce):this.defaultTabIndex}constructor(...ce){super(...ce),this._tabIndex=ie,this.defaultTabIndex=ie}}}class sn{constructor(ie,ce,We,St=!1){this._renderer=ie,this.element=ce,this.config=We,this._animationForciblyDisabledThroughCss=St,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dn=(0,J.i$)({passive:!0,capture:!0});class Cn{constructor(){this._events=new Map,this._delegateEventHandler=ie=>{const ce=(0,J.sA)(ie);ce&&this._events.get(ie.type)?.forEach((We,St)=>{(St===ce||St.contains(ce))&&We.forEach(Kt=>Kt.handleEvent(ie))})}}addHandler(ie,ce,We,St){const Kt=this._events.get(ce);if(Kt){const Ee=Kt.get(We);Ee?Ee.add(St):Kt.set(We,new Set([St]))}else this._events.set(ce,new Map([[We,new Set([St])]])),ie.runOutsideAngular(()=>{document.addEventListener(ce,this._delegateEventHandler,dn)})}removeHandler(ie,ce,We){const St=this._events.get(ie);if(!St)return;const Kt=St.get(ce);Kt&&(Kt.delete(We),0===Kt.size&&St.delete(ce),0===St.size&&(this._events.delete(ie),document.removeEventListener(ie,this._delegateEventHandler,dn)))}}const nn={enterDuration:225,exitDuration:150},Wn=(0,J.i$)({passive:!0,capture:!0}),pt=["mousedown","touchstart"],$=["mouseup","mouseleave","touchend","touchcancel"];class be{constructor(ie,ce,We,St){this._target=ie,this._ngZone=ce,this._platform=St,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,St.isBrowser&&(this._containerElement=(0,q.fI)(We))}fadeInRipple(ie,ce,We={}){const St=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Kt={...nn,...We.animation};We.centered&&(ie=St.left+St.width/2,ce=St.top+St.height/2);const Ee=We.radius||function ke(Ge,ie,ce){const We=Math.max(Math.abs(Ge-ce.left),Math.abs(Ge-ce.right)),St=Math.max(Math.abs(ie-ce.top),Math.abs(ie-ce.bottom));return Math.sqrt(We*We+St*St)}(ie,ce,St),ye=ie-St.left,G=ce-St.top,X=Kt.enterDuration,re=document.createElement("div");re.classList.add("mat-ripple-element"),re.style.left=ye-Ee+"px",re.style.top=G-Ee+"px",re.style.height=2*Ee+"px",re.style.width=2*Ee+"px",null!=We.color&&(re.style.backgroundColor=We.color),re.style.transitionDuration=`${X}ms`,this._containerElement.appendChild(re);const ue=window.getComputedStyle(re),_t=ue.transitionDuration,W="none"===ue.transitionProperty||"0s"===_t||"0s, 0s"===_t||0===St.width&&0===St.height,se=new sn(this,re,We,W);re.style.transform="scale3d(1, 1, 1)",se.state=0,We.persistent||(this._mostRecentTransientRipple=se);let E=null;return!W&&(X||Kt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const P=()=>this._finishRippleTransition(se),B=()=>this._destroyRipple(se);re.addEventListener("transitionend",P),re.addEventListener("transitioncancel",B),E={onTransitionEnd:P,onTransitionCancel:B}}),this._activeRipples.set(se,E),(W||!X)&&this._finishRippleTransition(se),se}fadeOutRipple(ie){if(2===ie.state||3===ie.state)return;const ce=ie.element,We={...nn,...ie.config.animation};ce.style.transitionDuration=`${We.exitDuration}ms`,ce.style.opacity="0",ie.state=2,(ie._animationForciblyDisabledThroughCss||!We.exitDuration)&&this._finishRippleTransition(ie)}fadeOutAll(){this._getActiveRipples().forEach(ie=>ie.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ie=>{ie.config.persistent||ie.fadeOut()})}setupTriggerEvents(ie){const ce=(0,q.fI)(ie);!this._platform.isBrowser||!ce||ce===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ce,pt.forEach(We=>{be._eventManager.addHandler(this._ngZone,We,ce,this)}))}handleEvent(ie){"mousedown"===ie.type?this._onMousedown(ie):"touchstart"===ie.type?this._onTouchStart(ie):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$.forEach(ce=>{this._triggerElement.addEventListener(ce,this,Wn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ie){0===ie.state?this._startFadeOutTransition(ie):2===ie.state&&this._destroyRipple(ie)}_startFadeOutTransition(ie){const ce=ie===this._mostRecentTransientRipple,{persistent:We}=ie.config;ie.state=1,!We&&(!ce||!this._isPointerDown)&&ie.fadeOut()}_destroyRipple(ie){const ce=this._activeRipples.get(ie)??null;this._activeRipples.delete(ie),this._activeRipples.size||(this._containerRect=null),ie===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ie.state=3,null!==ce&&(ie.element.removeEventListener("transitionend",ce.onTransitionEnd),ie.element.removeEventListener("transitioncancel",ce.onTransitionCancel)),ie.element.remove()}_onMousedown(ie){const ce=(0,c.X6)(ie),We=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ce&&!We&&(this._isPointerDown=!0,this.fadeInRipple(ie.clientX,ie.clientY,this._target.rippleConfig))}_onTouchStart(ie){if(!this._target.rippleDisabled&&!(0,c.yG)(ie)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ce=ie.changedTouches;for(let We=0;We<ce.length;We++)this.fadeInRipple(ce[We].clientX,ce[We].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(ie=>{!ie.config.persistent&&(1===ie.state||ie.config.terminateOnPointerUp&&0===ie.state)&&ie.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const ie=this._triggerElement;ie&&(pt.forEach(ce=>be._eventManager.removeHandler(ce,ie,this)),this._pointerUpEventsRegistered&&$.forEach(ce=>ie.removeEventListener(ce,this,Wn)))}}be._eventManager=new Cn;const ut=new r.OlP("mat-ripple-global-options");let it=(()=>{class Ge{get disabled(){return this._disabled}set disabled(ce){ce&&this.fadeOutAllNonPersistent(),this._disabled=ce,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ce){this._trigger=ce,this._setupTriggerEventsIfEnabled()}constructor(ce,We,St,Kt,Ee){this._elementRef=ce,this._animationMode=Ee,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Kt||{},this._rippleRenderer=new be(this,We,ce,St)}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(ce,We=0,St){return"number"==typeof ce?this._rippleRenderer.fadeInRipple(ce,We,{...this.rippleConfig,...St}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ce})}}return Ge.\u0275fac=function(ce){return new(ce||Ge)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(J.t4),r.Y36(ut,8),r.Y36(r.QbO,8))},Ge.\u0275dir=r.lG2({type:Ge,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ce,We){2&ce&&r.ekj("mat-ripple-unbounded",We.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"]}),Ge})(),mt=(()=>{class Ge{}return Ge.\u0275fac=function(ce){return new(ce||Ge)},Ge.\u0275mod=r.oAB({type:Ge}),Ge.\u0275inj=r.cJS({imports:[Ie,Ie]}),Ge})(),xt=(()=>{class Ge{constructor(ce){this._animationMode=ce,this.state="unchecked",this.disabled=!1}}return Ge.\u0275fac=function(ce){return new(ce||Ge)(r.Y36(r.QbO,8))},Ge.\u0275cmp=r.Xpm({type:Ge,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ce,We){2&ce&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===We.state)("mat-pseudo-checkbox-checked","checked"===We.state)("mat-pseudo-checkbox-disabled",We.disabled)("_mat-animation-noopable","NoopAnimations"===We._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ce,We){},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}),Ge})(),Zt=(()=>{class Ge{}return Ge.\u0275fac=function(ce){return new(ce||Ge)},Ge.\u0275mod=r.oAB({type:Ge}),Ge.\u0275inj=r.cJS({imports:[Ie]}),Ge})();const $t=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),st=new r.OlP("MatOptgroup");let Yt=0;class Gt{constructor(ie,ce=!1){this.source=ie,this.isUserInput=ce}}let tn=(()=>{class Ge{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(ce){this._disabled=(0,q.Ig)(ce)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}constructor(ce,We,St,Kt){this._element=ce,this._changeDetectorRef=We,this._parent=St,this.group=Kt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Yt++,this.onSelectionChange=new r.vpe,this._stateChanges=new le.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(ce,We){const St=this._getHostElement();"function"==typeof St.focus&&St.focus(We)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ce){(ce.keyCode===K.K5||ce.keyCode===K.L_)&&!(0,K.Vb)(ce)&&(this._selectViaInteraction(),ce.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 ce=this.viewValue;ce!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=ce)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ce=!1){this.onSelectionChange.emit(new Gt(this,ce))}}return Ge.\u0275fac=function(ce){r.$Z()},Ge.\u0275dir=r.lG2({type:Ge,viewQuery:function(ce,We){if(1&ce&&r.Gf(fe,7),2&ce){let St;r.iGM(St=r.CRH())&&(We._text=St.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ge})(),En=(()=>{class Ge extends tn{constructor(ce,We,St,Kt){super(ce,We,St,Kt)}}return Ge.\u0275fac=function(ce){return new(ce||Ge)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36($t,8),r.Y36(st,8))},Ge.\u0275cmp=r.Xpm({type:Ge,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(ce,We){1&ce&&r.NdJ("click",function(){return We._selectViaInteraction()})("keydown",function(Kt){return We._handleKeydown(Kt)}),2&ce&&(r.Ikx("id",We.id),r.uIk("tabindex",We._getTabIndex())("aria-selected",We._getAriaSelected())("aria-disabled",We.disabled.toString()),r.ekj("mdc-list-item--selected",We.selected)("mat-mdc-option-multiple",We.multiple)("mat-mdc-option-active",We.active)("mdc-list-item--disabled",We.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:Se,decls:7,vars:4,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ce,We){1&ce&&(r.F$t(Je),r.YNc(0,Ve,1,2,"mat-pseudo-checkbox",0),r.Hsn(1),r.TgZ(2,"span",1,2),r.Hsn(4,1),r.qZA(),r.YNc(5,je,2,1,"span",3),r._UZ(6,"div",4)),2&ce&&(r.Q6J("ngIf",We.multiple),r.xp6(5),r.Q6J("ngIf",We.group&&We.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",We._getHostElement())("matRippleDisabled",We.disabled||We.disableRipple))},dependencies:[it,Z.O5,xt],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}),Ge})();function jn(Ge,ie,ce){if(ce.length){let We=ie.toArray(),St=ce.toArray(),Kt=0;for(let Ee=0;Ee<Ge+1;Ee++)We[Ee].group&&We[Ee].group===St[Kt]&&Kt++;return Kt}return 0}function Vn(Ge,ie,ce,We){return Ge<ce?Ge:Ge+ie>ce+We?Math.max(0,Ge-We+ie):ce}let Mn=(()=>{class Ge{}return Ge.\u0275fac=function(ce){return new(ce||Ge)},Ge.\u0275mod=r.oAB({type:Ge}),Ge.\u0275inj=r.cJS({imports:[mt,Z.ez,Ie,Zt]}),Ge})()},8189:(It,Fe,g)=>{g.d(Fe,{WI:()=>Ht,uw:()=>pt,H8:()=>it,xY:()=>ut,Is:()=>xt,so:()=>vt,uh:()=>ke});var r=g(3952),c=g(6814),R=g(5879),te=g(3745),Z=g(8748),J=g(8549),q=g(4880),le=g(8645),K=g(4911),N=g(2096),z=g(5114),fe=g(7921);function Ve(qe,dt){}class je{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 Se=(()=>{class qe extends J.en{constructor(Re,st,yt,Yt,Gt,tn,En,jn){super(),this._elementRef=Re,this._focusTrapFactory=st,this._config=Yt,this._interactivityChecker=Gt,this._ngZone=tn,this._overlayRef=En,this._focusMonitor=jn,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Vn=>{this._portalOutlet.hasAttached();const Mn=this._portalOutlet.attachDomPortal(Vn);return this._contentAttached(),Mn},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=yt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(Re){this._portalOutlet.hasAttached();const st=this._portalOutlet.attachComponentPortal(Re);return this._contentAttached(),st}attachTemplatePortal(Re){this._portalOutlet.hasAttached();const st=this._portalOutlet.attachTemplatePortal(Re);return this._contentAttached(),st}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Re,st){this._interactivityChecker.isFocusable(Re)||(Re.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const yt=()=>{Re.removeEventListener("blur",yt),Re.removeEventListener("mousedown",yt),Re.removeAttribute("tabindex")};Re.addEventListener("blur",yt),Re.addEventListener("mousedown",yt)})),Re.focus(st)}_focusByCssSelector(Re,st){let yt=this._elementRef.nativeElement.querySelector(Re);yt&&this._forceFocus(yt,st)}_trapFocus(){const Re=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Re.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(st=>{st||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 Re=this._config.restoreFocus;let st=null;if("string"==typeof Re?st=this._document.querySelector(Re):"boolean"==typeof Re?st=Re?this._elementFocusedBeforeDialogWasOpened:null:Re&&(st=Re),this._config.restoreFocus&&st&&"function"==typeof st.focus){const yt=(0,Z.ht)(),Yt=this._elementRef.nativeElement;(!yt||yt===this._document.body||yt===Yt||Yt.contains(yt))&&(this._focusMonitor?(this._focusMonitor.focusVia(st,this._closeInteractionType),this._closeInteractionType=null):st.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Re=this._elementRef.nativeElement,st=(0,Z.ht)();return Re===st||Re.contains(st)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Z.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return qe.\u0275fac=function(Re){return new(Re||qe)(R.Y36(R.SBq),R.Y36(te.qV),R.Y36(c.K0,8),R.Y36(je),R.Y36(te.ic),R.Y36(R.R0b),R.Y36(r.Iu),R.Y36(te.tE))},qe.\u0275cmp=R.Xpm({type:qe,selectors:[["cdk-dialog-container"]],viewQuery:function(Re,st){if(1&Re&&R.Gf(J.Pl,7),2&Re){let yt;R.iGM(yt=R.CRH())&&(st._portalOutlet=yt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Re,st){2&Re&&R.uIk("id",st._config.id||null)("role",st._config.role)("aria-modal",st._config.ariaModal)("aria-labelledby",st._config.ariaLabel?null:st._ariaLabelledBy)("aria-label",st._config.ariaLabel)("aria-describedby",st._config.ariaDescribedBy||null)},features:[R.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Re,st){1&Re&&R.YNc(0,Ve,0,0,"ng-template",0)},dependencies:[J.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),qe})();class Ue{constructor(dt,Re){this.overlayRef=dt,this.config=Re,this.closed=new le.x,this.disableClose=Re.disableClose,this.backdropClick=dt.backdropClick(),this.keydownEvents=dt.keydownEvents(),this.outsidePointerEvents=dt.outsidePointerEvents(),this.id=Re.id,this.keydownEvents.subscribe(st=>{st.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(st)&&(st.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(dt,Re){if(this.containerInstance){const st=this.closed;this.containerInstance._closeInteractionType=Re?.focusOrigin||"program",this.overlayRef.dispose(),st.next(dt),st.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(dt="",Re=""){return this.overlayRef.updateSize({width:dt,height:Re}),this}addPanelClass(dt){return this.overlayRef.addPanelClass(dt),this}removePanelClass(dt){return this.overlayRef.removePanelClass(dt),this}}const $e=new R.OlP("DialogScrollStrategy"),Ke=new R.OlP("DialogData"),lt=new R.OlP("DefaultDialogConfig"),Ie={provide:$e,deps:[r.aV],useFactory:function ee(qe){return()=>qe.scrollStrategies.block()}};let de=0,ve=(()=>{class qe{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(Re,st,yt,Yt,Gt,tn){this._overlay=Re,this._injector=st,this._defaultOptions=yt,this._parentDialog=Yt,this._overlayContainer=Gt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new le.x,this._afterOpenedAtThisLevel=new le.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,K.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,fe.O)(void 0))),this._scrollStrategy=tn}open(Re,st){(st={...this._defaultOptions||new je,...st}).id=st.id||"cdk-dialog-"+de++,st.id&&this.getDialogById(st.id);const Yt=this._getOverlayConfig(st),Gt=this._overlay.create(Yt),tn=new Ue(Gt,st),En=this._attachContainer(Gt,tn,st);return tn.containerInstance=En,this._attachDialogContent(Re,tn,En,st),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(tn),tn.closed.subscribe(()=>this._removeOpenDialog(tn,!0)),this.afterOpened.next(tn),tn}closeAll(){ze(this.openDialogs,Re=>Re.close())}getDialogById(Re){return this.openDialogs.find(st=>st.id===Re)}ngOnDestroy(){ze(this._openDialogsAtThisLevel,Re=>{!1===Re.config.closeOnDestroy&&this._removeOpenDialog(Re,!1)}),ze(this._openDialogsAtThisLevel,Re=>Re.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(Re){const st=new r.X_({positionStrategy:Re.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:Re.scrollStrategy||this._scrollStrategy(),panelClass:Re.panelClass,hasBackdrop:Re.hasBackdrop,direction:Re.direction,minWidth:Re.minWidth,minHeight:Re.minHeight,maxWidth:Re.maxWidth,maxHeight:Re.maxHeight,width:Re.width,height:Re.height,disposeOnNavigation:Re.closeOnNavigation});return Re.backdropClass&&(st.backdropClass=Re.backdropClass),st}_attachContainer(Re,st,yt){const Yt=yt.injector||yt.viewContainerRef?.injector,Gt=[{provide:je,useValue:yt},{provide:Ue,useValue:st},{provide:r.Iu,useValue:Re}];let tn;yt.container?"function"==typeof yt.container?tn=yt.container:(tn=yt.container.type,Gt.push(...yt.container.providers(yt))):tn=Se;const En=new J.C5(tn,yt.viewContainerRef,R.zs3.create({parent:Yt||this._injector,providers:Gt}),yt.componentFactoryResolver);return Re.attach(En).instance}_attachDialogContent(Re,st,yt,Yt){if(Re instanceof R.Rgc){const Gt=this._createInjector(Yt,st,yt,void 0);let tn={$implicit:Yt.data,dialogRef:st};Yt.templateContext&&(tn={...tn,..."function"==typeof Yt.templateContext?Yt.templateContext():Yt.templateContext}),yt.attachTemplatePortal(new J.UE(Re,null,tn,Gt))}else{const Gt=this._createInjector(Yt,st,yt,this._injector),tn=yt.attachComponentPortal(new J.C5(Re,Yt.viewContainerRef,Gt,Yt.componentFactoryResolver));st.componentInstance=tn.instance}}_createInjector(Re,st,yt,Yt){const Gt=Re.injector||Re.viewContainerRef?.injector,tn=[{provide:Ke,useValue:Re.data},{provide:Ue,useValue:st}];return Re.providers&&("function"==typeof Re.providers?tn.push(...Re.providers(st,Re,yt)):tn.push(...Re.providers)),Re.direction&&(!Gt||!Gt.get(z.Is,null,{optional:!0}))&&tn.push({provide:z.Is,useValue:{value:Re.direction,change:(0,N.of)()}}),R.zs3.create({parent:Gt||Yt,providers:tn})}_removeOpenDialog(Re,st){const yt=this.openDialogs.indexOf(Re);yt>-1&&(this.openDialogs.splice(yt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Yt,Gt)=>{Yt?Gt.setAttribute("aria-hidden",Yt):Gt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),st&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Re=this._overlayContainer.getContainerElement();if(Re.parentElement){const st=Re.parentElement.children;for(let yt=st.length-1;yt>-1;yt--){const Yt=st[yt];Yt!==Re&&"SCRIPT"!==Yt.nodeName&&"STYLE"!==Yt.nodeName&&!Yt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Yt,Yt.getAttribute("aria-hidden")),Yt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const Re=this._parentDialog;return Re?Re._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return qe.\u0275fac=function(Re){return new(Re||qe)(R.LFG(r.aV),R.LFG(R.zs3),R.LFG(lt,8),R.LFG(qe,12),R.LFG(r.Xj),R.LFG($e))},qe.\u0275prov=R.Yz7({token:qe,factory:qe.\u0275fac}),qe})();function ze(qe,dt){let Re=qe.length;for(;Re--;)dt(qe[Re])}let Te=(()=>{class qe{}return qe.\u0275fac=function(Re){return new(Re||qe)},qe.\u0275mod=R.oAB({type:qe}),qe.\u0275inj=R.cJS({providers:[ve,Ie],imports:[r.U8,J.eL,te.rt,J.eL]}),qe})();var ct=g(1417),Et=g(3019),Bt=g(2181),Jt=g(8180),un=g(6649);function mn(qe,dt){}g(6825);class Nn{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 Yn="mdc-dialog--open",Xe="mdc-dialog--opening",ot="mdc-dialog--closing";let Pe=(()=>{class qe extends Se{constructor(Re,st,yt,Yt,Gt,tn,En,jn){super(Re,st,yt,Yt,Gt,tn,En,jn),this._animationStateChanged=new R.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Re){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Re})}}return qe.\u0275fac=function(Re){return new(Re||qe)(R.Y36(R.SBq),R.Y36(te.qV),R.Y36(c.K0,8),R.Y36(Nn),R.Y36(te.ic),R.Y36(R.R0b),R.Y36(r.Iu),R.Y36(te.tE))},qe.\u0275cmp=R.Xpm({type:qe,selectors:[["ng-component"]],features:[R.qOj],decls:0,vars:0,template:function(Re,st){},encapsulation:2}),qe})();const F="--mat-dialog-transition-duration";function oe(qe){return null==qe?null:"number"==typeof qe?qe:qe.endsWith("ms")?(0,ct.su)(qe.substring(0,qe.length-2)):qe.endsWith("s")?1e3*(0,ct.su)(qe.substring(0,qe.length-1)):"0"===qe?0:null}let _e=(()=>{class qe extends Pe{constructor(Re,st,yt,Yt,Gt,tn,En,jn,Vn){super(Re,st,yt,Yt,Gt,tn,En,Vn),this._animationMode=jn,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?oe(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?oe(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(F,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(Xe),this._hostElement.classList.add(Yn),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Yn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(Yn),this._animationsEnabled?(this._hostElement.style.setProperty(F,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(ot),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(Xe),this._hostElement.classList.remove(ot)}_waitForAnimationToComplete(Re,st){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(st,Re)}}return qe.\u0275fac=function(Re){return new(Re||qe)(R.Y36(R.SBq),R.Y36(te.qV),R.Y36(c.K0,8),R.Y36(Nn),R.Y36(te.ic),R.Y36(R.R0b),R.Y36(r.Iu),R.Y36(R.QbO,8),R.Y36(te.tE))},qe.\u0275cmp=R.Xpm({type:qe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Re,st){2&Re&&(R.Ikx("id",st._config.id),R.uIk("aria-modal",st._config.ariaModal)("role",st._config.role)("aria-labelledby",st._config.ariaLabel?null:st._ariaLabelledBy)("aria-label",st._config.ariaLabel)("aria-describedby",st._config.ariaDescribedBy||null),R.ekj("_mat-animation-noopable",!st._animationsEnabled))},features:[R.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Re,st){1&Re&&(R.TgZ(0,"div",0)(1,"div",1),R.YNc(2,mn,0,0,"ng-template",2),R.qZA()())},dependencies:[J.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}),qe})();class vt{constructor(dt,Re,st){this._ref=dt,this._containerInstance=st,this._afterOpened=new le.x,this._beforeClosed=new le.x,this._state=0,this.disableClose=Re.disableClose,this.id=dt.id,st._animationStateChanged.pipe((0,Bt.h)(yt=>"opened"===yt.state),(0,Jt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),st._animationStateChanged.pipe((0,Bt.h)(yt=>"closed"===yt.state),(0,Jt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),dt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Et.T)(this.backdropClick(),this.keydownEvents().pipe((0,Bt.h)(yt=>yt.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(yt)))).subscribe(yt=>{this.disableClose||(yt.preventDefault(),function At(qe,dt,Re){qe._closeInteractionType=dt,qe.close(Re)}(this,"keydown"===yt.type?"keyboard":"mouse"))})}close(dt){this._result=dt,this._containerInstance._animationStateChanged.pipe((0,Bt.h)(Re=>"closing"===Re.state),(0,Jt.q)(1)).subscribe(Re=>{this._beforeClosed.next(dt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Re.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(dt){let Re=this._ref.config.positionStrategy;return dt&&(dt.left||dt.right)?dt.left?Re.left(dt.left):Re.right(dt.right):Re.centerHorizontally(),dt&&(dt.top||dt.bottom)?dt.top?Re.top(dt.top):Re.bottom(dt.bottom):Re.centerVertically(),this._ref.updatePosition(),this}updateSize(dt="",Re=""){return this._ref.updateSize(dt,Re),this}addPanelClass(dt){return this._ref.addPanelClass(dt),this}removePanelClass(dt){return this._ref.removePanelClass(dt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Ht=new R.OlP("MatMdcDialogData"),Nt=new R.OlP("mat-mdc-dialog-default-options"),sn=new R.OlP("mat-mdc-dialog-scroll-strategy"),Cn={provide:sn,deps:[r.aV],useFactory:function dn(qe){return()=>qe.scrollStrategies.block()}};let In=0,Wn=(()=>{class qe{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Re=this._parentDialog;return Re?Re._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(Re,st,yt,Yt,Gt,tn,En,jn,Vn,Mn){this._overlay=Re,this._defaultOptions=yt,this._parentDialog=Yt,this._dialogRefConstructor=En,this._dialogContainerType=jn,this._dialogDataToken=Vn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new le.x,this._afterOpenedAtThisLevel=new le.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=Nn,this.afterAllClosed=(0,K.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,fe.O)(void 0))),this._scrollStrategy=tn,this._dialog=st.get(ve)}open(Re,st){let yt;(st={...this._defaultOptions||new Nn,...st}).id=st.id||`${this._idPrefix}${In++}`,st.scrollStrategy=st.scrollStrategy||this._scrollStrategy();const Yt=this._dialog.open(Re,{...st,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:st},{provide:je,useValue:st}]},templateContext:()=>({dialogRef:yt}),providers:(Gt,tn,En)=>(yt=new this._dialogRefConstructor(Gt,st,En),yt.updatePosition(st?.position),[{provide:this._dialogContainerType,useValue:En},{provide:this._dialogDataToken,useValue:tn.data},{provide:this._dialogRefConstructor,useValue:yt}])});return yt.componentInstance=Yt.componentInstance,this.openDialogs.push(yt),this.afterOpened.next(yt),yt.afterClosed().subscribe(()=>{const Gt=this.openDialogs.indexOf(yt);Gt>-1&&(this.openDialogs.splice(Gt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),yt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Re){return this.openDialogs.find(st=>st.id===Re)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Re){let st=Re.length;for(;st--;)Re[st].close()}}return qe.\u0275fac=function(Re){R.$Z()},qe.\u0275prov=R.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),pt=(()=>{class qe extends Wn{constructor(Re,st,yt,Yt,Gt,tn,En,jn){super(Re,st,Yt,tn,En,Gt,vt,_e,Ht,jn),this._idPrefix="mat-mdc-dialog-"}}return qe.\u0275fac=function(Re){return new(Re||qe)(R.LFG(r.aV),R.LFG(R.zs3),R.LFG(c.Ye,8),R.LFG(Nt,8),R.LFG(sn),R.LFG(qe,12),R.LFG(r.Xj),R.LFG(R.QbO,8))},qe.\u0275prov=R.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),$=0,ke=(()=>{class qe{constructor(Re,st,yt){this._dialogRef=Re,this._elementRef=st,this._dialog=yt,this.id="mat-mdc-dialog-title-"+$++}ngOnInit(){this._dialogRef||(this._dialogRef=function mt(qe,dt){let Re=qe.nativeElement.parentElement;for(;Re&&!Re.classList.contains("mat-mdc-dialog-container");)Re=Re.parentElement;return Re?dt.find(st=>st.id===Re.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Re=this._dialogRef._containerInstance;Re&&!Re._ariaLabelledBy&&(Re._ariaLabelledBy=this.id)})}}return qe.\u0275fac=function(Re){return new(Re||qe)(R.Y36(vt,8),R.Y36(R.SBq),R.Y36(pt))},qe.\u0275dir=R.lG2({type:qe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Re,st){2&Re&&R.Ikx("id",st.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),qe})(),ut=(()=>{class qe{}return qe.\u0275fac=function(Re){return new(Re||qe)},qe.\u0275dir=R.lG2({type:qe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),qe})(),it=(()=>{class qe{constructor(){this.align="start"}}return qe.\u0275fac=function(Re){return new(Re||qe)},qe.\u0275dir=R.lG2({type:qe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Re,st){2&Re&&R.ekj("mat-mdc-dialog-actions-align-center","center"===st.align)("mat-mdc-dialog-actions-align-end","end"===st.align)},inputs:{align:"align"}}),qe})(),xt=(()=>{class qe{}return qe.\u0275fac=function(Re){return new(Re||qe)},qe.\u0275mod=R.oAB({type:qe}),qe.\u0275inj=R.cJS({providers:[pt,Cn],imports:[Te,r.U8,J.eL,un.BQ,un.BQ]}),qe})()},6593:(It,Fe,g)=>{g.d(Fe,{Dx:()=>be,H7:()=>jn,b2:()=>nn,q6:()=>Nt,se:()=>Te});var r=g(5879),c=g(6814);class R extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class te extends R{static makeCurrent(){(0,c.HT)(new te)}onAndCancel(X,re,ue){return X.addEventListener(re,ue),()=>{X.removeEventListener(re,ue)}}dispatchEvent(X,re){X.dispatchEvent(re)}remove(X){X.parentNode&&X.parentNode.removeChild(X)}createElement(X,re){return(re=re||this.getDefaultDocument()).createElement(X)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(X){return X.nodeType===Node.ELEMENT_NODE}isShadowRoot(X){return X instanceof DocumentFragment}getGlobalEventTarget(X,re){return"window"===re?window:"document"===re?X:"body"===re?X.body:null}getBaseHref(X){const re=function J(){return Z=Z||document.querySelector("base"),Z?Z.getAttribute("href"):null}();return null==re?null:function le(G){q=q||document.createElement("a"),q.setAttribute("href",G);const X=q.pathname;return"/"===X.charAt(0)?X:`/${X}`}(re)}resetBaseElement(){Z=null}getUserAgent(){return window.navigator.userAgent}getCookie(X){return(0,c.Mx)(document.cookie,X)}}let q,Z=null,N=(()=>{var G;class X{build(){return new XMLHttpRequest}}return(G=X).\u0275fac=function(ue){return new(ue||G)},G.\u0275prov=r.Yz7({token:G,factory:G.\u0275fac}),X})();const z=new r.OlP("EventManagerPlugins");let fe=(()=>{var G;class X{constructor(ue,Be){this._zone=Be,this._eventNameToPlugin=new Map,ue.forEach(_t=>{_t.manager=this}),this._plugins=ue.slice().reverse()}addEventListener(ue,Be,_t){return this._findPluginFor(Be).addEventListener(ue,Be,_t)}getZone(){return this._zone}_findPluginFor(ue){let Be=this._eventNameToPlugin.get(ue);if(Be)return Be;if(Be=this._plugins.find(W=>W.supports(ue)),!Be)throw new r.vHH(5101,!1);return this._eventNameToPlugin.set(ue,Be),Be}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(z),r.LFG(r.R0b))},G.\u0275prov=r.Yz7({token:G,factory:G.\u0275fac}),X})();class Ve{constructor(X){this._doc=X}}const je="ng-app-id";let Je=(()=>{var G;class X{constructor(ue,Be,_t,W={}){this.doc=ue,this.appId=Be,this.nonce=_t,this.platformId=W,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.PM)(W),this.resetHostNodes()}addStyles(ue){for(const Be of ue)1===this.changeUsageCount(Be,1)&&this.onStyleAdded(Be)}removeStyles(ue){for(const Be of ue)this.changeUsageCount(Be,-1)<=0&&this.onStyleRemoved(Be)}ngOnDestroy(){const ue=this.styleNodesInDOM;ue&&(ue.forEach(Be=>Be.remove()),ue.clear());for(const Be of this.getAllStyles())this.onStyleRemoved(Be);this.resetHostNodes()}addHost(ue){this.hostNodes.add(ue);for(const Be of this.getAllStyles())this.addStyleToHost(ue,Be)}removeHost(ue){this.hostNodes.delete(ue)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ue){for(const Be of this.hostNodes)this.addStyleToHost(Be,ue)}onStyleRemoved(ue){const Be=this.styleRef;Be.get(ue)?.elements?.forEach(_t=>_t.remove()),Be.delete(ue)}collectServerRenderedStyles(){const ue=this.doc.head?.querySelectorAll(`style[${je}="${this.appId}"]`);if(ue?.length){const Be=new Map;return ue.forEach(_t=>{null!=_t.textContent&&Be.set(_t.textContent,_t)}),Be}return null}changeUsageCount(ue,Be){const _t=this.styleRef;if(_t.has(ue)){const W=_t.get(ue);return W.usage+=Be,W.usage}return _t.set(ue,{usage:Be,elements:[]}),Be}getStyleElement(ue,Be){const _t=this.styleNodesInDOM,W=_t?.get(Be);if(W?.parentNode===ue)return _t.delete(Be),W.removeAttribute(je),W;{const se=this.doc.createElement("style");return this.nonce&&se.setAttribute("nonce",this.nonce),se.textContent=Be,this.platformIsServer&&se.setAttribute(je,this.appId),se}}addStyleToHost(ue,Be){const _t=this.getStyleElement(ue,Be);ue.appendChild(_t);const W=this.styleRef,se=W.get(Be)?.elements;se?se.push(_t):W.set(Be,{elements:[_t],usage:1})}resetHostNodes(){const ue=this.hostNodes;ue.clear(),ue.add(this.doc.head)}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(c.K0),r.LFG(r.AFp),r.LFG(r.Ojb,8),r.LFG(r.Lbi))},G.\u0275prov=r.Yz7({token:G,factory:G.\u0275fac}),X})();const Se={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/"},Ue=/%COMP%/g,Ie=new r.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function ze(G,X){return X.map(re=>re.replace(Ue,G))}let Te=(()=>{var G;class X{constructor(ue,Be,_t,W,se,E,P,B=null){this.eventManager=ue,this.sharedStylesHost=Be,this.appId=_t,this.removeStylesOnCompDestroy=W,this.doc=se,this.platformId=E,this.ngZone=P,this.nonce=B,this.rendererByCompId=new Map,this.platformIsServer=(0,c.PM)(E),this.defaultRenderer=new ct(ue,se,P,this.platformIsServer)}createRenderer(ue,Be){if(!ue||!Be)return this.defaultRenderer;this.platformIsServer&&Be.encapsulation===r.ifc.ShadowDom&&(Be={...Be,encapsulation:r.ifc.Emulated});const _t=this.getOrCreateRenderer(ue,Be);return _t instanceof mn?_t.applyToHost(ue):_t instanceof on&&_t.applyStyles(),_t}getOrCreateRenderer(ue,Be){const _t=this.rendererByCompId;let W=_t.get(Be.id);if(!W){const se=this.doc,E=this.ngZone,P=this.eventManager,B=this.sharedStylesHost,V=this.removeStylesOnCompDestroy,k=this.platformIsServer;switch(Be.encapsulation){case r.ifc.Emulated:W=new mn(P,B,Be,this.appId,V,se,E,k);break;case r.ifc.ShadowDom:return new un(P,B,ue,Be,se,E,this.nonce,k);default:W=new on(P,B,Be,V,se,E,k)}_t.set(Be.id,W)}return W}ngOnDestroy(){this.rendererByCompId.clear()}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(fe),r.LFG(Je),r.LFG(r.AFp),r.LFG(Ie),r.LFG(c.K0),r.LFG(r.Lbi),r.LFG(r.R0b),r.LFG(r.Ojb))},G.\u0275prov=r.Yz7({token:G,factory:G.\u0275fac}),X})();class ct{constructor(X,re,ue,Be){this.eventManager=X,this.doc=re,this.ngZone=ue,this.platformIsServer=Be,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(X,re){return re?this.doc.createElementNS(Se[re]||re,X):this.doc.createElement(X)}createComment(X){return this.doc.createComment(X)}createText(X){return this.doc.createTextNode(X)}appendChild(X,re){(Jt(X)?X.content:X).appendChild(re)}insertBefore(X,re,ue){X&&(Jt(X)?X.content:X).insertBefore(re,ue)}removeChild(X,re){X&&X.removeChild(re)}selectRootElement(X,re){let ue="string"==typeof X?this.doc.querySelector(X):X;if(!ue)throw new r.vHH(-5104,!1);return re||(ue.textContent=""),ue}parentNode(X){return X.parentNode}nextSibling(X){return X.nextSibling}setAttribute(X,re,ue,Be){if(Be){re=Be+":"+re;const _t=Se[Be];_t?X.setAttributeNS(_t,re,ue):X.setAttribute(re,ue)}else X.setAttribute(re,ue)}removeAttribute(X,re,ue){if(ue){const Be=Se[ue];Be?X.removeAttributeNS(Be,re):X.removeAttribute(`${ue}:${re}`)}else X.removeAttribute(re)}addClass(X,re){X.classList.add(re)}removeClass(X,re){X.classList.remove(re)}setStyle(X,re,ue,Be){Be&(r.JOm.DashCase|r.JOm.Important)?X.style.setProperty(re,ue,Be&r.JOm.Important?"important":""):X.style[re]=ue}removeStyle(X,re,ue){ue&r.JOm.DashCase?X.style.removeProperty(re):X.style[re]=""}setProperty(X,re,ue){X[re]=ue}setValue(X,re){X.nodeValue=re}listen(X,re,ue){if("string"==typeof X&&!(X=(0,c.q)().getGlobalEventTarget(this.doc,X)))throw new Error(`Unsupported event target ${X} for event ${re}`);return this.eventManager.addEventListener(X,re,this.decoratePreventDefault(ue))}decoratePreventDefault(X){return re=>{if("__ngUnwrap__"===re)return X;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>X(re)):X(re))&&re.preventDefault()}}}function Jt(G){return"TEMPLATE"===G.tagName&&void 0!==G.content}class un extends ct{constructor(X,re,ue,Be,_t,W,se,E){super(X,_t,W,E),this.sharedStylesHost=re,this.hostEl=ue,this.shadowRoot=ue.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const P=ze(Be.id,Be.styles);for(const B of P){const V=document.createElement("style");se&&V.setAttribute("nonce",se),V.textContent=B,this.shadowRoot.appendChild(V)}}nodeOrShadowRoot(X){return X===this.hostEl?this.shadowRoot:X}appendChild(X,re){return super.appendChild(this.nodeOrShadowRoot(X),re)}insertBefore(X,re,ue){return super.insertBefore(this.nodeOrShadowRoot(X),re,ue)}removeChild(X,re){return super.removeChild(this.nodeOrShadowRoot(X),re)}parentNode(X){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(X)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class on extends ct{constructor(X,re,ue,Be,_t,W,se,E){super(X,_t,W,se),this.sharedStylesHost=re,this.removeStylesOnCompDestroy=Be,this.styles=E?ze(E,ue.styles):ue.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class mn extends on{constructor(X,re,ue,Be,_t,W,se,E){const P=Be+"-"+ue.id;super(X,re,ue,_t,W,se,E,P),this.contentAttr=function de(G){return"_ngcontent-%COMP%".replace(Ue,G)}(P),this.hostAttr=function ve(G){return"_nghost-%COMP%".replace(Ue,G)}(P)}applyToHost(X){this.applyStyles(),this.setAttribute(X,this.hostAttr,"")}createElement(X,re){const ue=super.createElement(X,re);return super.setAttribute(ue,this.contentAttr,""),ue}}let Nn=(()=>{var G;class X extends Ve{constructor(ue){super(ue)}supports(ue){return!0}addEventListener(ue,Be,_t){return ue.addEventListener(Be,_t,!1),()=>this.removeEventListener(ue,Be,_t)}removeEventListener(ue,Be,_t){return ue.removeEventListener(Be,_t)}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(c.K0))},G.\u0275prov=r.Yz7({token:G,factory:G.\u0275fac}),X})();const Yn=["alt","control","meta","shift"],Xe={"\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"},ot={alt:G=>G.altKey,control:G=>G.ctrlKey,meta:G=>G.metaKey,shift:G=>G.shiftKey};let ht=(()=>{var G;class X extends Ve{constructor(ue){super(ue)}supports(ue){return null!=X.parseEventName(ue)}addEventListener(ue,Be,_t){const W=X.parseEventName(Be),se=X.eventCallback(W.fullKey,_t,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(ue,W.domEventName,se))}static parseEventName(ue){const Be=ue.toLowerCase().split("."),_t=Be.shift();if(0===Be.length||"keydown"!==_t&&"keyup"!==_t)return null;const W=X._normalizeKey(Be.pop());let se="",E=Be.indexOf("code");if(E>-1&&(Be.splice(E,1),se="code."),Yn.forEach(B=>{const V=Be.indexOf(B);V>-1&&(Be.splice(V,1),se+=B+".")}),se+=W,0!=Be.length||0===W.length)return null;const P={};return P.domEventName=_t,P.fullKey=se,P}static matchEventFullKeyCode(ue,Be){let _t=Xe[ue.key]||ue.key,W="";return Be.indexOf("code.")>-1&&(_t=ue.code,W="code."),!(null==_t||!_t)&&(_t=_t.toLowerCase()," "===_t?_t="space":"."===_t&&(_t="dot"),Yn.forEach(se=>{se!==_t&&(0,ot[se])(ue)&&(W+=se+".")}),W+=_t,W===Be)}static eventCallback(ue,Be,_t){return W=>{X.matchEventFullKeyCode(W,ue)&&_t.runGuarded(()=>Be(W))}}static _normalizeKey(ue){return"esc"===ue?"escape":ue}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(c.K0))},G.\u0275prov=r.Yz7({token:G,factory:G.\u0275fac}),X})();const Nt=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:c.bD},{provide:r.g9A,useValue:function _e(){te.makeCurrent()},multi:!0},{provide:c.K0,useFactory:function At(){return(0,r.RDi)(document),document},deps:[]}]),sn=new r.OlP(""),dn=[{provide:r.rWj,useClass:class K{addToWindow(X){r.dqk.getAngularTestability=(ue,Be=!0)=>{const _t=X.findTestabilityInTree(ue,Be);if(null==_t)throw new r.vHH(5103,!1);return _t},r.dqk.getAllAngularTestabilities=()=>X.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>X.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(ue=>{const Be=r.dqk.getAllAngularTestabilities();let _t=Be.length,W=!1;const se=function(E){W=W||E,_t--,0==_t&&ue(W)};Be.forEach(E=>{E.whenStable(se)})})}findTestabilityInTree(X,re,ue){return null==re?null:X.getTestability(re)??(ue?(0,c.q)().isShadowRoot(re)?this.findTestabilityInTree(X,re.host,!0):this.findTestabilityInTree(X,re.parentElement,!0):null)}},deps:[]},{provide:r.lri,useClass:r.dDg,deps:[r.R0b,r.eoX,r.rWj]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b,r.eoX,r.rWj]}],Cn=[{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function vt(){return new r.qLn},deps:[]},{provide:z,useClass:Nn,multi:!0,deps:[c.K0,r.R0b,r.Lbi]},{provide:z,useClass:ht,multi:!0,deps:[c.K0]},Te,Je,fe,{provide:r.FYo,useExisting:Te},{provide:c.JF,useClass:N,deps:[]},[]];let nn=(()=>{var G;class X{constructor(ue){}static withServerTransition(ue){return{ngModule:X,providers:[{provide:r.AFp,useValue:ue.appId}]}}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(sn,12))},G.\u0275mod=r.oAB({type:G}),G.\u0275inj=r.cJS({providers:[...Cn,...dn],imports:[c.ez,r.hGG]}),X})(),be=(()=>{var G;class X{constructor(ue){this._doc=ue}getTitle(){return this._doc.title}setTitle(ue){this._doc.title=ue||""}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(c.K0))},G.\u0275prov=r.Yz7({token:G,factory:function(ue){let Be=null;return Be=ue?new ue:function $(){return new be((0,r.LFG)(c.K0))}(),Be},providedIn:"root"}),X})();typeof window<"u"&&window;let jn=(()=>{var G;class X{}return(G=X).\u0275fac=function(ue){return new(ue||G)},G.\u0275prov=r.Yz7({token:G,factory:function(ue){let Be=null;return Be=ue?new(ue||G):r.LFG(Mn),Be},providedIn:"root"}),X})(),Mn=(()=>{var G;class X extends jn{constructor(ue){super(),this._doc=ue}sanitize(ue,Be){if(null==Be)return null;switch(ue){case r.q3G.NONE:return Be;case r.q3G.HTML:return(0,r.qzn)(Be,"HTML")?(0,r.z3N)(Be):(0,r.EiD)(this._doc,String(Be)).toString();case r.q3G.STYLE:return(0,r.qzn)(Be,"Style")?(0,r.z3N)(Be):Be;case r.q3G.SCRIPT:if((0,r.qzn)(Be,"Script"))return(0,r.z3N)(Be);throw new r.vHH(5200,!1);case r.q3G.URL:return(0,r.qzn)(Be,"URL")?(0,r.z3N)(Be):(0,r.mCW)(String(Be));case r.q3G.RESOURCE_URL:if((0,r.qzn)(Be,"ResourceURL"))return(0,r.z3N)(Be);throw new r.vHH(5201,!1);default:throw new r.vHH(5202,!1)}}bypassSecurityTrustHtml(ue){return(0,r.JVY)(ue)}bypassSecurityTrustStyle(ue){return(0,r.L6k)(ue)}bypassSecurityTrustScript(ue){return(0,r.eBb)(ue)}bypassSecurityTrustUrl(ue){return(0,r.LAX)(ue)}bypassSecurityTrustResourceUrl(ue){return(0,r.pB0)(ue)}}return(G=X).\u0275fac=function(ue){return new(ue||G)(r.LFG(c.K0))},G.\u0275prov=r.Yz7({token:G,factory:function(ue){let Be=null;return Be=ue?new ue:function Vn(G){return new Mn(G.get(c.K0))}(r.LFG(r.zs3)),Be},providedIn:"root"}),X})()},915:(It,Fe,g)=>{g.d(Fe,{gz:()=>Ii,m2:()=>Xi,F0:()=>oi,Bz:()=>uo,lC:()=>gn});var r=g(5879),c=g(5592),R=g(4674),Z=g(2459),J=g(2096),q=g(5619),le=g(2572),K=g(6973),N=g(5211),z=g(4911),fe=g(8407),Ve=g(8504),je=g(6232),Je=g(3168),Se=g(8645),Ue=g(6814),$e=g(7398),Ke=g(4664),lt=g(8180),ee=g(7921),Ie=g(2181),de=g(1631),ve=g(1374),ze=g(6328),Te=g(9397),ct=g(4829),Et=g(8251),Bt=g(9360);function Jt(h){return(0,Bt.e)((_,C)=>{let Y,f=null,M=!1;f=_.subscribe((0,Et.x)(C,void 0,void 0,ge=>{Y=(0,ct.Xf)(h(ge,Jt(h)(_))),f?(f.unsubscribe(),f=null,Y.subscribe(C)):M=!0})),M&&(f.unsubscribe(),f=null,Y.subscribe(C))})}var mn=g(3572);function Nn(h){return h<=0?()=>je.E:(0,Bt.e)((_,C)=>{let f=[];_.subscribe((0,Et.x)(C,M=>{f.push(M),h<f.length&&f.shift()},()=>{for(const M of f)C.next(M);C.complete()},void 0,()=>{f=null}))})}var Yn=g(3026),Xe=g(2737),ht=g(975),ae=g(4716),Pe=g(6196),F=g(7537),oe=g(6593);const _e="primary",vt=Symbol("RouteTitle");class At{constructor(_){this.params=_||{}}has(_){return Object.prototype.hasOwnProperty.call(this.params,_)}get(_){if(this.has(_)){const C=this.params[_];return Array.isArray(C)?C[0]:C}return null}getAll(_){if(this.has(_)){const C=this.params[_];return Array.isArray(C)?C:[C]}return[]}get keys(){return Object.keys(this.params)}}function Ht(h){return new At(h)}function Nt(h,_,C){const f=C.path.split("/");if(f.length>h.length||"full"===C.pathMatch&&(_.hasChildren()||f.length<h.length))return null;const M={};for(let Y=0;Y<f.length;Y++){const ge=f[Y],xe=h[Y];if(ge.startsWith(":"))M[ge.substring(1)]=xe;else if(ge!==xe.path)return null}return{consumed:h.slice(0,f.length),posParams:M}}function dn(h,_){const C=h?Object.keys(h):void 0,f=_?Object.keys(_):void 0;if(!C||!f||C.length!=f.length)return!1;let M;for(let Y=0;Y<C.length;Y++)if(M=C[Y],!Cn(h[M],_[M]))return!1;return!0}function Cn(h,_){if(Array.isArray(h)&&Array.isArray(_)){if(h.length!==_.length)return!1;const C=[...h].sort(),f=[..._].sort();return C.every((M,Y)=>f[Y]===M)}return h===_}function nn(h){return h.length>0?h[h.length-1]:null}function In(h){return function te(h){return!!h&&(h instanceof c.y||(0,R.m)(h.lift)&&(0,R.m)(h.subscribe))}(h)?h:(0,r.QGY)(h)?(0,Z.D)(Promise.resolve(h)):(0,J.of)(h)}const Wn={exact:function ke(h,_,C){if(!Re(h.segments,_.segments)||!xt(h.segments,_.segments,C)||h.numberOfChildren!==_.numberOfChildren)return!1;for(const f in _.children)if(!h.children[f]||!ke(h.children[f],_.children[f],C))return!1;return!0},subset:it},pt={exact:function be(h,_){return dn(h,_)},subset:function ut(h,_){return Object.keys(_).length<=Object.keys(h).length&&Object.keys(_).every(C=>Cn(h[C],_[C]))},ignored:()=>!0};function $(h,_,C){return Wn[C.paths](h.root,_.root,C.matrixParams)&&pt[C.queryParams](h.queryParams,_.queryParams)&&!("exact"===C.fragment&&h.fragment!==_.fragment)}function it(h,_,C){return mt(h,_,_.segments,C)}function mt(h,_,C,f){if(h.segments.length>C.length){const M=h.segments.slice(0,C.length);return!(!Re(M,C)||_.hasChildren()||!xt(M,C,f))}if(h.segments.length===C.length){if(!Re(h.segments,C)||!xt(h.segments,C,f))return!1;for(const M in _.children)if(!h.children[M]||!it(h.children[M],_.children[M],f))return!1;return!0}{const M=C.slice(0,h.segments.length),Y=C.slice(h.segments.length);return!!(Re(h.segments,M)&&xt(h.segments,M,f)&&h.children[_e])&&mt(h.children[_e],_,Y,f)}}function xt(h,_,C){return _.every((f,M)=>pt[C](h[M].parameters,f.parameters))}class Zt{constructor(_=new $t([],{}),C={},f=null){this.root=_,this.queryParams=C,this.fragment=f}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ht(this.queryParams)),this._queryParamMap}toString(){return Gt.serialize(this)}}class $t{constructor(_,C){this.segments=_,this.children=C,this.parent=null,Object.values(C).forEach(f=>f.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tn(this)}}class qe{constructor(_,C){this.path=_,this.parameters=C}get parameterMap(){return this._parameterMap||(this._parameterMap=Ht(this.parameters)),this._parameterMap}toString(){return We(this)}}function Re(h,_){return h.length===_.length&&h.every((C,f)=>C.path===_[f].path)}let yt=(()=>{var h;class _{}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return new Yt},providedIn:"root"}),_})();class Yt{parse(_){const C=new W(_);return new Zt(C.parseRootSegment(),C.parseQueryParams(),C.parseFragment())}serialize(_){const C=`/${En(_.root,!0)}`,f=function Kt(h){const _=Object.keys(h).map(C=>{const f=h[C];return Array.isArray(f)?f.map(M=>`${Vn(C)}=${Vn(M)}`).join("&"):`${Vn(C)}=${Vn(f)}`}).filter(C=>!!C);return _.length?`?${_.join("&")}`:""}(_.queryParams);return`${C}${f}${"string"==typeof _.fragment?`#${function Mn(h){return encodeURI(h)}(_.fragment)}`:""}`}}const Gt=new Yt;function tn(h){return h.segments.map(_=>We(_)).join("/")}function En(h,_){if(!h.hasChildren())return tn(h);if(_){const C=h.children[_e]?En(h.children[_e],!1):"",f=[];return Object.entries(h.children).forEach(([M,Y])=>{M!==_e&&f.push(`${M}:${En(Y,!1)}`)}),f.length>0?`${C}(${f.join("//")})`:C}{const C=function st(h,_){let C=[];return Object.entries(h.children).forEach(([f,M])=>{f===_e&&(C=C.concat(_(M,f)))}),Object.entries(h.children).forEach(([f,M])=>{f!==_e&&(C=C.concat(_(M,f)))}),C}(h,(f,M)=>M===_e?[En(h.children[_e],!1)]:[`${M}:${En(f,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[_e]?`${tn(h)}/${C[0]}`:`${tn(h)}/(${C.join("//")})`}}function jn(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vn(h){return jn(h).replace(/%3B/gi,";")}function Ge(h){return jn(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ie(h){return decodeURIComponent(h)}function ce(h){return ie(h.replace(/\+/g,"%20"))}function We(h){return`${Ge(h.path)}${function St(h){return Object.keys(h).map(_=>`;${Ge(_)}=${Ge(h[_])}`).join("")}(h.parameters)}`}const Ee=/^[^\/()?;#]+/;function ye(h){const _=h.match(Ee);return _?_[0]:""}const G=/^[^\/()?;=#]+/,re=/^[^=?&#]+/,Be=/^[^&#]+/;class W{constructor(_){this.url=_,this.remaining=_}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $t([],{}):new $t([],this.parseChildren())}parseQueryParams(){const _={};if(this.consumeOptional("?"))do{this.parseQueryParam(_)}while(this.consumeOptional("&"));return _}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const _=[];for(this.peekStartsWith("(")||_.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),_.push(this.parseSegment());let C={};this.peekStartsWith("/(")&&(this.capture("/"),C=this.parseParens(!0));let f={};return this.peekStartsWith("(")&&(f=this.parseParens(!1)),(_.length>0||Object.keys(C).length>0)&&(f[_e]=new $t(_,C)),f}parseSegment(){const _=ye(this.remaining);if(""===_&&this.peekStartsWith(";"))throw new r.vHH(4009,!1);return this.capture(_),new qe(ie(_),this.parseMatrixParams())}parseMatrixParams(){const _={};for(;this.consumeOptional(";");)this.parseParam(_);return _}parseParam(_){const C=function X(h){const _=h.match(G);return _?_[0]:""}(this.remaining);if(!C)return;this.capture(C);let f="";if(this.consumeOptional("=")){const M=ye(this.remaining);M&&(f=M,this.capture(f))}_[ie(C)]=ie(f)}parseQueryParam(_){const C=function ue(h){const _=h.match(re);return _?_[0]:""}(this.remaining);if(!C)return;this.capture(C);let f="";if(this.consumeOptional("=")){const ge=function _t(h){const _=h.match(Be);return _?_[0]:""}(this.remaining);ge&&(f=ge,this.capture(f))}const M=ce(C),Y=ce(f);if(_.hasOwnProperty(M)){let ge=_[M];Array.isArray(ge)||(ge=[ge],_[M]=ge),ge.push(Y)}else _[M]=Y}parseParens(_){const C={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const f=ye(this.remaining),M=this.remaining[f.length];if("/"!==M&&")"!==M&&";"!==M)throw new r.vHH(4010,!1);let Y;f.indexOf(":")>-1?(Y=f.slice(0,f.indexOf(":")),this.capture(Y),this.capture(":")):_&&(Y=_e);const ge=this.parseChildren();C[Y]=1===Object.keys(ge).length?ge[_e]:new $t([],ge),this.consumeOptional("//")}return C}peekStartsWith(_){return this.remaining.startsWith(_)}consumeOptional(_){return!!this.peekStartsWith(_)&&(this.remaining=this.remaining.substring(_.length),!0)}capture(_){if(!this.consumeOptional(_))throw new r.vHH(4011,!1)}}function se(h){return h.segments.length>0?new $t([],{[_e]:h}):h}function E(h){const _={};for(const f of Object.keys(h.children)){const Y=E(h.children[f]);if(f===_e&&0===Y.segments.length&&Y.hasChildren())for(const[ge,xe]of Object.entries(Y.children))_[ge]=xe;else(Y.segments.length>0||Y.hasChildren())&&(_[f]=Y)}return function P(h){if(1===h.numberOfChildren&&h.children[_e]){const _=h.children[_e];return new $t(h.segments.concat(_.segments),_.children)}return h}(new $t(h.segments,_))}function B(h){return h instanceof Zt}function k(h){let _;const M=se(function C(Y){const ge={};for(const bt of Y.children){const Wt=C(bt);ge[bt.outlet]=Wt}const xe=new $t(Y.url,ge);return Y===h&&(_=xe),xe}(h.root));return _??M}function L(h,_,C,f){let M=h;for(;M.parent;)M=M.parent;if(0===_.length)return Ct(M,M,M,C,f);const Y=function tt(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new Qe(!0,0,h);let _=0,C=!1;const f=h.reduce((M,Y,ge)=>{if("object"==typeof Y&&null!=Y){if(Y.outlets){const xe={};return Object.entries(Y.outlets).forEach(([bt,Wt])=>{xe[bt]="string"==typeof Wt?Wt.split("/"):Wt}),[...M,{outlets:xe}]}if(Y.segmentPath)return[...M,Y.segmentPath]}return"string"!=typeof Y?[...M,Y]:0===ge?(Y.split("/").forEach((xe,bt)=>{0==bt&&"."===xe||(0==bt&&""===xe?C=!0:".."===xe?_++:""!=xe&&M.push(xe))}),M):[...M,Y]},[]);return new Qe(C,_,f)}(_);if(Y.toRoot())return Ct(M,M,new $t([],{}),C,f);const ge=function rt(h,_,C){if(h.isAbsolute)return new De(_,!0,0);if(!C)return new De(_,!1,NaN);if(null===C.parent)return new De(C,!0,0);const f=Ae(h.commands[0])?0:1;return function Xt(h,_,C){let f=h,M=_,Y=C;for(;Y>M;){if(Y-=M,f=f.parent,!f)throw new r.vHH(4005,!1);M=f.segments.length}return new De(f,!1,M-Y)}(C,C.segments.length-1+f,h.numberOfDoubleDots)}(Y,M,h),xe=ge.processChildren?Xn(ge.segmentGroup,ge.index,Y.commands):Pn(ge.segmentGroup,ge.index,Y.commands);return Ct(M,ge.segmentGroup,xe,C,f)}function Ae(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function Le(h){return"object"==typeof h&&null!=h&&h.outlets}function Ct(h,_,C,f,M){let ge,Y={};f&&Object.entries(f).forEach(([bt,Wt])=>{Y[bt]=Array.isArray(Wt)?Wt.map(hn=>`${hn}`):`${Wt}`}),ge=h===_?C:Dt(h,_,C);const xe=se(E(ge));return new Zt(xe,Y,M)}function Dt(h,_,C){const f={};return Object.entries(h.children).forEach(([M,Y])=>{f[M]=Y===_?C:Dt(Y,_,C)}),new $t(h.segments,f)}class Qe{constructor(_,C,f){if(this.isAbsolute=_,this.numberOfDoubleDots=C,this.commands=f,_&&f.length>0&&Ae(f[0]))throw new r.vHH(4003,!1);const M=f.find(Le);if(M&&M!==nn(f))throw new r.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class De{constructor(_,C,f){this.segmentGroup=_,this.processChildren=C,this.index=f}}function Pn(h,_,C){if(h||(h=new $t([],{})),0===h.segments.length&&h.hasChildren())return Xn(h,_,C);const f=function Si(h,_,C){let f=0,M=_;const Y={match:!1,pathIndex:0,commandIndex:0};for(;M<h.segments.length;){if(f>=C.length)return Y;const ge=h.segments[M],xe=C[f];if(Le(xe))break;const bt=`${xe}`,Wt=f<C.length-1?C[f+1]:null;if(M>0&&void 0===bt)break;if(bt&&Wt&&"object"==typeof Wt&&void 0===Wt.outlets){if(!Ci(bt,Wt,ge))return Y;f+=2}else{if(!Ci(bt,{},ge))return Y;f++}M++}return{match:!0,pathIndex:M,commandIndex:f}}(h,_,C),M=C.slice(f.commandIndex);if(f.match&&f.pathIndex<h.segments.length){const Y=new $t(h.segments.slice(0,f.pathIndex),{});return Y.children[_e]=new $t(h.segments.slice(f.pathIndex),h.children),Xn(Y,0,M)}return f.match&&0===M.length?new $t(h.segments,{}):f.match&&!h.hasChildren()?Qn(h,_,C):f.match?Xn(h,0,M):Qn(h,_,C)}function Xn(h,_,C){if(0===C.length)return new $t(h.segments,{});{const f=function An(h){return Le(h[0])?h[0].outlets:{[_e]:h}}(C),M={};if(Object.keys(f).some(Y=>Y!==_e)&&h.children[_e]&&1===h.numberOfChildren&&0===h.children[_e].segments.length){const Y=Xn(h.children[_e],_,C);return new $t(h.segments,Y.children)}return Object.entries(f).forEach(([Y,ge])=>{"string"==typeof ge&&(ge=[ge]),null!==ge&&(M[Y]=Pn(h.children[Y],_,ge))}),Object.entries(h.children).forEach(([Y,ge])=>{void 0===f[Y]&&(M[Y]=ge)}),new $t(h.segments,M)}}function Qn(h,_,C){const f=h.segments.slice(0,_);let M=0;for(;M<C.length;){const Y=C[M];if(Le(Y)){const bt=Bn(Y.outlets);return new $t(f,bt)}if(0===M&&Ae(C[0])){f.push(new qe(h.segments[_].path,zn(C[0]))),M++;continue}const ge=Le(Y)?Y.outlets[_e]:`${Y}`,xe=M<C.length-1?C[M+1]:null;ge&&xe&&Ae(xe)?(f.push(new qe(ge,zn(xe))),M+=2):(f.push(new qe(ge,{})),M++)}return new $t(f,{})}function Bn(h){const _={};return Object.entries(h).forEach(([C,f])=>{"string"==typeof f&&(f=[f]),null!==f&&(_[C]=Qn(new $t([],{}),0,f))}),_}function zn(h){const _={};return Object.entries(h).forEach(([C,f])=>_[C]=`${f}`),_}function Ci(h,_,C){return h==C.path&&dn(_,C.parameters)}const ci="imperative";class $n{constructor(_,C){this.id=_,this.url=C}}class zi extends $n{constructor(_,C,f="imperative",M=null){super(_,C),this.type=0,this.navigationTrigger=f,this.restoredState=M}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xi extends $n{constructor(_,C,f){super(_,C),this.urlAfterRedirects=f,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Oi extends $n{constructor(_,C,f,M){super(_,C),this.reason=f,this.code=M,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ji extends $n{constructor(_,C,f,M){super(_,C),this.reason=f,this.code=M,this.type=16}}class er extends $n{constructor(_,C,f,M){super(_,C),this.error=f,this.target=M,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class si extends $n{constructor(_,C,f,M){super(_,C),this.urlAfterRedirects=f,this.state=M,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Li extends $n{constructor(_,C,f,M){super(_,C),this.urlAfterRedirects=f,this.state=M,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kr extends $n{constructor(_,C,f,M,Y){super(_,C),this.urlAfterRedirects=f,this.state=M,this.shouldActivate=Y,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class zr extends $n{constructor(_,C,f,M){super(_,C),this.urlAfterRedirects=f,this.state=M,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jo extends $n{constructor(_,C,f,M){super(_,C),this.urlAfterRedirects=f,this.state=M,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class po{constructor(_){this.route=_,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class wr{constructor(_){this.route=_,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Do{constructor(_){this.snapshot=_,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class no{constructor(_){this.snapshot=_,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class go{constructor(_){this.snapshot=_,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class or{constructor(_){this.snapshot=_,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mr{constructor(_,C,f){this.routerEvent=_,this.position=C,this.anchor=f,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Nr{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Lr,this.attachRef=null}}let Lr=(()=>{var h;class _{constructor(){this.contexts=new Map}onChildOutletCreated(f,M){const Y=this.getOrCreateContext(f);Y.outlet=M,this.contexts.set(f,Y)}onChildOutletDestroyed(f){const M=this.getContext(f);M&&(M.outlet=null,M.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let M=this.getContext(f);return M||(M=new Nr,this.contexts.set(f,M)),M}getContext(f){return this.contexts.get(f)||null}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();class fr{constructor(_){this._root=_}get root(){return this._root.value}parent(_){const C=this.pathFromRoot(_);return C.length>1?C[C.length-2]:null}children(_){const C=ro(_,this._root);return C?C.children.map(f=>f.value):[]}firstChild(_){const C=ro(_,this._root);return C&&C.children.length>0?C.children[0].value:null}siblings(_){const C=Br(_,this._root);return C.length<2?[]:C[C.length-2].children.map(M=>M.value).filter(M=>M!==_)}pathFromRoot(_){return Br(_,this._root).map(C=>C.value)}}function ro(h,_){if(h===_.value)return _;for(const C of _.children){const f=ro(h,C);if(f)return f}return null}function Br(h,_){if(h===_.value)return[_];for(const C of _.children){const f=Br(h,C);if(f.length)return f.unshift(_),f}return[]}class Pi{constructor(_,C){this.value=_,this.children=C}toString(){return`TreeNode(${this.value})`}}function Yi(h){const _={};return h&&h.children.forEach(C=>_[C.value.outlet]=C),_}class Ln extends fr{constructor(_,C){super(_),this.snapshot=C,Gr(this,_)}toString(){return this.snapshot.toString()}}function Ei(h,_){const C=function Bi(h,_){const ge=new oo([],{},{},"",{},_e,_,null,{});return new br("",new Pi(ge,[]))}(0,_),f=new q.X([new qe("",{})]),M=new q.X({}),Y=new q.X({}),ge=new q.X({}),xe=new q.X(""),bt=new Ii(f,M,ge,xe,Y,_e,_,C.root);return bt.snapshot=C.root,new Ln(new Pi(bt,[]),C)}class Ii{constructor(_,C,f,M,Y,ge,xe,bt){this.urlSubject=_,this.paramsSubject=C,this.queryParamsSubject=f,this.fragmentSubject=M,this.dataSubject=Y,this.outlet=ge,this.component=xe,this._futureSnapshot=bt,this.title=this.dataSubject?.pipe((0,$e.U)(Wt=>Wt[vt]))??(0,J.of)(void 0),this.url=_,this.params=C,this.queryParams=f,this.fragment=M,this.data=Y}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,$e.U)(_=>Ht(_)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$e.U)(_=>Ht(_)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vi(h,_="emptyOnly"){const C=h.pathFromRoot;let f=0;if("always"!==_)for(f=C.length-1;f>=1;){const M=C[f],Y=C[f-1];if(M.routeConfig&&""===M.routeConfig.path)f--;else{if(Y.component)break;f--}}return function wo(h){return h.reduce((_,C)=>({params:{..._.params,...C.params},data:{..._.data,...C.data},resolve:{...C.data,..._.resolve,...C.routeConfig?.data,...C._resolvedData}}),{params:{},data:{},resolve:{}})}(C.slice(f))}class oo{get title(){return this.data?.[vt]}constructor(_,C,f,M,Y,ge,xe,bt,Wt){this.url=_,this.params=C,this.queryParams=f,this.fragment=M,this.data=Y,this.outlet=ge,this.component=xe,this.routeConfig=bt,this._resolve=Wt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ht(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ht(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(f=>f.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class br extends fr{constructor(_,C){super(C),this.url=_,Gr(this,C)}toString(){return Wr(this._root)}}function Gr(h,_){_.value._routerState=h,_.children.forEach(C=>Gr(h,C))}function Wr(h){const _=h.children.length>0?` { ${h.children.map(Wr).join(", ")} } `:"";return`${h.value}${_}`}function ni(h){if(h.snapshot){const _=h.snapshot,C=h._futureSnapshot;h.snapshot=C,dn(_.queryParams,C.queryParams)||h.queryParamsSubject.next(C.queryParams),_.fragment!==C.fragment&&h.fragmentSubject.next(C.fragment),dn(_.params,C.params)||h.paramsSubject.next(C.params),function sn(h,_){if(h.length!==_.length)return!1;for(let C=0;C<h.length;++C)if(!dn(h[C],_[C]))return!1;return!0}(_.url,C.url)||h.urlSubject.next(C.url),dn(_.data,C.data)||h.dataSubject.next(C.data)}else h.snapshot=h._futureSnapshot,h.dataSubject.next(h._futureSnapshot.data)}function Qt(h,_){const C=dn(h.params,_.params)&&function dt(h,_){return Re(h,_)&&h.every((C,f)=>dn(C.parameters,_[f].parameters))}(h.url,_.url);return C&&!(!h.parent!=!_.parent)&&(!h.parent||Qt(h.parent,_.parent))}let gn=(()=>{var h;class _{constructor(){this.activated=null,this._activatedRoute=null,this.name=_e,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)(Lr),this.location=(0,r.f3M)(r.s_b),this.changeDetector=(0,r.f3M)(r.sBO),this.environmentInjector=(0,r.f3M)(r.lqb),this.inputBinder=(0,r.f3M)(_i,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(f){if(f.name){const{firstChange:M,previousValue:Y}=f.name;if(M)return;this.isTrackedInParentContexts(Y)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Y)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(f){return this.parentContexts.getContext(f)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const f=this.parentContexts.getContext(this.name);f?.route&&(f.attachRef?this.attach(f.attachRef,f.route):this.activateWith(f.route,f.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new r.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new r.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new r.vHH(4012,!1);this.location.detach();const f=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(f.instance),f}attach(f,M){this.activated=f,this._activatedRoute=M,this.location.insert(f.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(f.instance)}deactivate(){if(this.activated){const f=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(f)}}activateWith(f,M){if(this.isActivated)throw new r.vHH(4013,!1);this._activatedRoute=f;const Y=this.location,xe=f.snapshot.component,bt=this.parentContexts.getOrCreateContext(this.name).children,Wt=new ii(f,bt,Y.injector);this.activated=Y.createComponent(xe,{index:Y.length,injector:Wt,environmentInjector:M??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(h=_).\u0275fac=function(f){return new(f||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]}),_})();class ii{constructor(_,C,f){this.route=_,this.childContexts=C,this.parent=f}get(_,C){return _===Ii?this.route:_===Lr?this.childContexts:this.parent.get(_,C)}}const _i=new r.OlP("");let ar=(()=>{var h;class _{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(f){this.unsubscribeFromRouteData(f),this.subscribeToRouteData(f)}unsubscribeFromRouteData(f){this.outletDataSubscriptions.get(f)?.unsubscribe(),this.outletDataSubscriptions.delete(f)}subscribeToRouteData(f){const{activatedRoute:M}=f,Y=(0,le.a)([M.queryParams,M.params,M.data]).pipe((0,Ke.w)(([ge,xe,bt],Wt)=>(bt={...ge,...xe,...bt},0===Wt?(0,J.of)(bt):Promise.resolve(bt)))).subscribe(ge=>{if(!f.isActivated||!f.activatedComponentRef||f.activatedRoute!==M||null===M.component)return void this.unsubscribeFromRouteData(f);const xe=(0,r.qFp)(M.component);if(xe)for(const{templateName:bt}of xe.inputs)f.activatedComponentRef.setInput(bt,ge[bt]);else this.unsubscribeFromRouteData(f)});this.outletDataSubscriptions.set(f,Y)}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),_})();function Ki(h,_,C){if(C&&h.shouldReuseRoute(_.value,C.value.snapshot)){const f=C.value;f._futureSnapshot=_.value;const M=function ai(h,_,C){return _.children.map(f=>{for(const M of C.children)if(h.shouldReuseRoute(f.value,M.value.snapshot))return Ki(h,f,M);return Ki(h,f)})}(h,_,C);return new Pi(f,M)}{if(h.shouldAttach(_.value)){const Y=h.retrieve(_.value);if(null!==Y){const ge=Y.route;return ge.value._futureSnapshot=_.value,ge.children=_.children.map(xe=>Ki(h,xe)),ge}}const f=function Gi(h){return new Ii(new q.X(h.url),new q.X(h.params),new q.X(h.queryParams),new q.X(h.fragment),new q.X(h.data),h.outlet,h.component,h)}(_.value),M=_.children.map(Y=>Ki(h,Y));return new Pi(f,M)}}const He="ngNavigationCancelingError";function we(h,_){const{redirectTo:C,navigationBehaviorOptions:f}=B(_)?{redirectTo:_,navigationBehaviorOptions:void 0}:_,M=et(!1,0,_);return M.url=C,M.navigationBehaviorOptions=f,M}function et(h,_,C){const f=new Error("NavigationCancelingError: "+(h||""));return f[He]=!0,f.cancellationCode=_,C&&(f.url=C),f}function wt(h){return Ot(h)&&B(h.url)}function Ot(h){return h&&h[He]}let zt=(()=>{var h;class _{}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275cmp=r.Xpm({type:h,selectors:[["ng-component"]],standalone:!0,features:[r.jDz],decls:1,vars:0,template:function(f,M){1&f&&r._UZ(0,"router-outlet")},dependencies:[gn],encapsulation:2}),_})();function Dn(h){const _=h.children&&h.children.map(Dn),C=_?{...h,children:_}:{...h};return!C.component&&!C.loadComponent&&(_||C.loadChildren)&&C.outlet&&C.outlet!==_e&&(C.component=zt),C}function Di(h){return h.outlet||_e}function di(h){if(!h)return null;if(h.routeConfig?._injector)return h.routeConfig._injector;for(let _=h.parent;_;_=_.parent){const C=_.routeConfig;if(C?._loadedInjector)return C._loadedInjector;if(C?._injector)return C._injector}return null}class Zn{constructor(_,C,f,M,Y){this.routeReuseStrategy=_,this.futureState=C,this.currState=f,this.forwardEvent=M,this.inputBindingEnabled=Y}activate(_){const C=this.futureState._root,f=this.currState?this.currState._root:null;this.deactivateChildRoutes(C,f,_),ni(this.futureState.root),this.activateChildRoutes(C,f,_)}deactivateChildRoutes(_,C,f){const M=Yi(C);_.children.forEach(Y=>{const ge=Y.value.outlet;this.deactivateRoutes(Y,M[ge],f),delete M[ge]}),Object.values(M).forEach(Y=>{this.deactivateRouteAndItsChildren(Y,f)})}deactivateRoutes(_,C,f){const M=_.value,Y=C?C.value:null;if(M===Y)if(M.component){const ge=f.getContext(M.outlet);ge&&this.deactivateChildRoutes(_,C,ge.children)}else this.deactivateChildRoutes(_,C,f);else Y&&this.deactivateRouteAndItsChildren(C,f)}deactivateRouteAndItsChildren(_,C){_.value.component&&this.routeReuseStrategy.shouldDetach(_.value.snapshot)?this.detachAndStoreRouteSubtree(_,C):this.deactivateRouteAndOutlet(_,C)}detachAndStoreRouteSubtree(_,C){const f=C.getContext(_.value.outlet),M=f&&_.value.component?f.children:C,Y=Yi(_);for(const ge of Object.keys(Y))this.deactivateRouteAndItsChildren(Y[ge],M);if(f&&f.outlet){const ge=f.outlet.detach(),xe=f.children.onOutletDeactivated();this.routeReuseStrategy.store(_.value.snapshot,{componentRef:ge,route:_,contexts:xe})}}deactivateRouteAndOutlet(_,C){const f=C.getContext(_.value.outlet),M=f&&_.value.component?f.children:C,Y=Yi(_);for(const ge of Object.keys(Y))this.deactivateRouteAndItsChildren(Y[ge],M);f&&(f.outlet&&(f.outlet.deactivate(),f.children.onOutletDeactivated()),f.attachRef=null,f.route=null)}activateChildRoutes(_,C,f){const M=Yi(C);_.children.forEach(Y=>{this.activateRoutes(Y,M[Y.value.outlet],f),this.forwardEvent(new or(Y.value.snapshot))}),_.children.length&&this.forwardEvent(new no(_.value.snapshot))}activateRoutes(_,C,f){const M=_.value,Y=C?C.value:null;if(ni(M),M===Y)if(M.component){const ge=f.getOrCreateContext(M.outlet);this.activateChildRoutes(_,C,ge.children)}else this.activateChildRoutes(_,C,f);else if(M.component){const ge=f.getOrCreateContext(M.outlet);if(this.routeReuseStrategy.shouldAttach(M.snapshot)){const xe=this.routeReuseStrategy.retrieve(M.snapshot);this.routeReuseStrategy.store(M.snapshot,null),ge.children.onOutletReAttached(xe.contexts),ge.attachRef=xe.componentRef,ge.route=xe.route.value,ge.outlet&&ge.outlet.attach(xe.componentRef,xe.route.value),ni(xe.route.value),this.activateChildRoutes(_,null,ge.children)}else{const xe=di(M.snapshot);ge.attachRef=null,ge.route=M,ge.injector=xe,ge.outlet&&ge.outlet.activateWith(M,ge.injector),this.activateChildRoutes(_,null,ge.children)}}else this.activateChildRoutes(_,null,f)}}class Wi{constructor(_){this.path=_,this.route=this.path[this.path.length-1]}}class fi{constructor(_,C){this.component=_,this.route=C}}function as(h,_,C){const f=h._root;return gr(f,_?_._root:null,C,[f.value])}function bi(h,_){const C=Symbol(),f=_.get(h,C);return f===C?"function"!=typeof h||(0,r.Z0I)(h)?_.get(h):h:f}function gr(h,_,C,f,M={canDeactivateChecks:[],canActivateChecks:[]}){const Y=Yi(_);return h.children.forEach(ge=>{(function cr(h,_,C,f,M={canDeactivateChecks:[],canActivateChecks:[]}){const Y=h.value,ge=_?_.value:null,xe=C?C.getContext(h.value.outlet):null;if(ge&&Y.routeConfig===ge.routeConfig){const bt=function Yr(h,_,C){if("function"==typeof C)return C(h,_);switch(C){case"pathParamsChange":return!Re(h.url,_.url);case"pathParamsOrQueryParamsChange":return!Re(h.url,_.url)||!dn(h.queryParams,_.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qt(h,_)||!dn(h.queryParams,_.queryParams);default:return!Qt(h,_)}}(ge,Y,Y.routeConfig.runGuardsAndResolvers);bt?M.canActivateChecks.push(new Wi(f)):(Y.data=ge.data,Y._resolvedData=ge._resolvedData),gr(h,_,Y.component?xe?xe.children:null:C,f,M),bt&&xe&&xe.outlet&&xe.outlet.isActivated&&M.canDeactivateChecks.push(new fi(xe.outlet.component,ge))}else ge&&Hi(_,xe,M),M.canActivateChecks.push(new Wi(f)),gr(h,null,Y.component?xe?xe.children:null:C,f,M)})(ge,Y[ge.value.outlet],C,f.concat([ge.value]),M),delete Y[ge.value.outlet]}),Object.entries(Y).forEach(([ge,xe])=>Hi(xe,C.getContext(ge),M)),M}function Hi(h,_,C){const f=Yi(h),M=h.value;Object.entries(f).forEach(([Y,ge])=>{Hi(ge,M.component?_?_.children.getContext(Y):null:_,C)}),C.canDeactivateChecks.push(new fi(M.component&&_&&_.outlet&&_.outlet.isActivated?_.outlet.component:null,M))}function Vr(h){return"function"==typeof h}function Go(h){return h instanceof K.K||"EmptyError"===h?.name}const pi=Symbol("INITIAL_VALUE");function Kr(){return(0,Ke.w)(h=>(0,le.a)(h.map(_=>_.pipe((0,lt.q)(1),(0,ee.O)(pi)))).pipe((0,$e.U)(_=>{for(const C of _)if(!0!==C){if(C===pi)return pi;if(!1===C||C instanceof Zt)return C}return!0}),(0,Ie.h)(_=>_!==pi),(0,lt.q)(1)))}function mr(h){return(0,fe.z)((0,Te.b)(_=>{if(B(_))throw we(0,_)}),(0,$e.U)(_=>!0===_))}class mi{constructor(_){this.segmentGroup=_||null}}class Zr{constructor(_){this.urlTree=_}}function Cr(h){return(0,Ve._)(new mi(h))}function Ar(h){return(0,Ve._)(new Zr(h))}class Po{constructor(_,C){this.urlSerializer=_,this.urlTree=C}noMatchError(_){return new r.vHH(4002,!1)}lineralizeSegments(_,C){let f=[],M=C.root;for(;;){if(f=f.concat(M.segments),0===M.numberOfChildren)return(0,J.of)(f);if(M.numberOfChildren>1||!M.children[_e])return(0,Ve._)(new r.vHH(4e3,!1));M=M.children[_e]}}applyRedirectCommands(_,C,f){return this.applyRedirectCreateUrlTree(C,this.urlSerializer.parse(C),_,f)}applyRedirectCreateUrlTree(_,C,f,M){const Y=this.createSegmentGroup(_,C.root,f,M);return new Zt(Y,this.createQueryParams(C.queryParams,this.urlTree.queryParams),C.fragment)}createQueryParams(_,C){const f={};return Object.entries(_).forEach(([M,Y])=>{if("string"==typeof Y&&Y.startsWith(":")){const xe=Y.substring(1);f[M]=C[xe]}else f[M]=Y}),f}createSegmentGroup(_,C,f,M){const Y=this.createSegments(_,C.segments,f,M);let ge={};return Object.entries(C.children).forEach(([xe,bt])=>{ge[xe]=this.createSegmentGroup(_,bt,f,M)}),new $t(Y,ge)}createSegments(_,C,f,M){return C.map(Y=>Y.path.startsWith(":")?this.findPosParam(_,Y,M):this.findOrReturn(Y,f))}findPosParam(_,C,f){const M=f[C.path.substring(1)];if(!M)throw new r.vHH(4001,!1);return M}findOrReturn(_,C){let f=0;for(const M of C){if(M.path===_.path)return C.splice(f),M;f++}return _}}const Mo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ts(h,_,C,f,M){const Y=Yo(h,_,C);return Y.matched?(f=function cn(h,_){return h.providers&&!h._injector&&(h._injector=(0,r.MMx)(h.providers,_,`Route: ${h.path}`)),h._injector??_}(_,f),function Qi(h,_,C,f){const M=_.canMatch;if(!M||0===M.length)return(0,J.of)(!0);const Y=M.map(ge=>{const xe=bi(ge,h);return In(function cs(h){return h&&Vr(h.canMatch)}(xe)?xe.canMatch(_,C):h.runInContext(()=>xe(_,C)))});return(0,J.of)(Y).pipe(Kr(),mr())}(f,_,C).pipe((0,$e.U)(ge=>!0===ge?Y:{...Mo}))):(0,J.of)(Y)}function Yo(h,_,C){if(""===_.path)return"full"===_.pathMatch&&(h.hasChildren()||C.length>0)?{...Mo}:{matched:!0,consumedSegments:[],remainingSegments:C,parameters:{},positionalParamSegments:{}};const M=(_.matcher||Nt)(C,h,_);if(!M)return{...Mo};const Y={};Object.entries(M.posParams??{}).forEach(([xe,bt])=>{Y[xe]=bt.path});const ge=M.consumed.length>0?{...Y,...M.consumed[M.consumed.length-1].parameters}:Y;return{matched:!0,consumedSegments:M.consumed,remainingSegments:C.slice(M.consumed.length),parameters:ge,positionalParamSegments:M.posParams??{}}}function ur(h,_,C,f){return C.length>0&&function Ko(h,_,C){return C.some(f=>Ro(h,_,f)&&Di(f)!==_e)}(h,C,f)?{segmentGroup:new $t(_,ki(f,new $t(C,h.children))),slicedSegments:[]}:0===C.length&&function mo(h,_,C){return C.some(f=>Ro(h,_,f))}(h,C,f)?{segmentGroup:new $t(h.segments,ao(h,0,C,f,h.children)),slicedSegments:C}:{segmentGroup:new $t(h.segments,h.children),slicedSegments:C}}function ao(h,_,C,f,M){const Y={};for(const ge of f)if(Ro(h,C,ge)&&!M[Di(ge)]){const xe=new $t([],{});Y[Di(ge)]=xe}return{...M,...Y}}function ki(h,_){const C={};C[_e]=_;for(const f of h)if(""===f.path&&Di(f)!==_e){const M=new $t([],{});C[Di(f)]=M}return C}function Ro(h,_,C){return(!(h.hasChildren()||_.length>0)||"full"!==C.pathMatch)&&""===C.path}class ko{constructor(_,C,f,M,Y,ge,xe){this.injector=_,this.configLoader=C,this.rootComponentType=f,this.config=M,this.urlTree=Y,this.paramsInheritanceStrategy=ge,this.urlSerializer=xe,this.allowRedirects=!0,this.applyRedirects=new Po(this.urlSerializer,this.urlTree)}noMatchError(_){return new r.vHH(4002,!1)}recognize(){const _=ur(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,_,_e).pipe(Jt(C=>{if(C instanceof Zr)return this.allowRedirects=!1,this.urlTree=C.urlTree,this.match(C.urlTree);throw C instanceof mi?this.noMatchError(C):C}),(0,$e.U)(C=>{const f=new oo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,{}),M=new Pi(f,C),Y=new br("",M),ge=function V(h,_,C=null,f=null){return L(k(h),_,C,f)}(f,[],this.urlTree.queryParams,this.urlTree.fragment);return ge.queryParams=this.urlTree.queryParams,Y.url=this.urlSerializer.serialize(ge),this.inheritParamsAndData(Y._root),{state:Y,tree:ge}}))}match(_){return this.processSegmentGroup(this.injector,this.config,_.root,_e).pipe(Jt(f=>{throw f instanceof mi?this.noMatchError(f):f}))}inheritParamsAndData(_){const C=_.value,f=Vi(C,this.paramsInheritanceStrategy);C.params=Object.freeze(f.params),C.data=Object.freeze(f.data),_.children.forEach(M=>this.inheritParamsAndData(M))}processSegmentGroup(_,C,f,M){return 0===f.segments.length&&f.hasChildren()?this.processChildren(_,C,f):this.processSegment(_,C,f,f.segments,M,!0)}processChildren(_,C,f){const M=[];for(const Y of Object.keys(f.children))"primary"===Y?M.unshift(Y):M.push(Y);return(0,Z.D)(M).pipe((0,ze.b)(Y=>{const ge=f.children[Y],xe=function pr(h,_){const C=h.filter(f=>Di(f)===_);return C.push(...h.filter(f=>Di(f)!==_)),C}(C,Y);return this.processSegmentGroup(_,xe,ge,Y)}),function on(h,_){return(0,Bt.e)(function un(h,_,C,f,M){return(Y,ge)=>{let xe=C,bt=_,Wt=0;Y.subscribe((0,Et.x)(ge,hn=>{const yn=Wt++;bt=xe?h(bt,hn,yn):(xe=!0,hn),f&&ge.next(bt)},M&&(()=>{xe&&ge.next(bt),ge.complete()})))}}(h,_,arguments.length>=2,!0))}((Y,ge)=>(Y.push(...ge),Y)),(0,mn.d)(null),function ot(h,_){const C=arguments.length>=2;return f=>f.pipe(h?(0,Ie.h)((M,Y)=>h(M,Y,f)):Xe.y,Nn(1),C?(0,mn.d)(_):(0,Yn.T)(()=>new K.K))}(),(0,de.z)(Y=>{if(null===Y)return Cr(f);const ge=Lo(Y);return function No(h){h.sort((_,C)=>_.value.outlet===_e?-1:C.value.outlet===_e?1:_.value.outlet.localeCompare(C.value.outlet))}(ge),(0,J.of)(ge)}))}processSegment(_,C,f,M,Y,ge){return(0,Z.D)(C).pipe((0,ze.b)(xe=>this.processSegmentAgainstRoute(xe._injector??_,C,xe,f,M,Y,ge).pipe(Jt(bt=>{if(bt instanceof mi)return(0,J.of)(null);throw bt}))),(0,ve.P)(xe=>!!xe),Jt(xe=>{if(Go(xe))return function Tr(h,_,C){return 0===_.length&&!h.children[C]}(f,M,Y)?(0,J.of)([]):Cr(f);throw xe}))}processSegmentAgainstRoute(_,C,f,M,Y,ge,xe){return function Fo(h,_,C,f){return!!(Di(h)===f||f!==_e&&Ro(_,C,h))&&("**"===h.path||Yo(_,h,C).matched)}(f,M,Y,ge)?void 0===f.redirectTo?this.matchSegmentAgainstRoute(_,M,f,Y,ge,xe):xe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(_,M,C,f,Y,ge):Cr(M):Cr(M)}expandSegmentAgainstRouteUsingRedirect(_,C,f,M,Y,ge){return"**"===M.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(_,f,M,ge):this.expandRegularSegmentAgainstRouteUsingRedirect(_,C,f,M,Y,ge)}expandWildCardWithParamsAgainstRouteUsingRedirect(_,C,f,M){const Y=this.applyRedirects.applyRedirectCommands([],f.redirectTo,{});return f.redirectTo.startsWith("/")?Ar(Y):this.applyRedirects.lineralizeSegments(f,Y).pipe((0,de.z)(ge=>{const xe=new $t(ge,{});return this.processSegment(_,C,xe,ge,M,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(_,C,f,M,Y,ge){const{matched:xe,consumedSegments:bt,remainingSegments:Wt,positionalParamSegments:hn}=Yo(C,M,Y);if(!xe)return Cr(C);const yn=this.applyRedirects.applyRedirectCommands(bt,M.redirectTo,hn);return M.redirectTo.startsWith("/")?Ar(yn):this.applyRedirects.lineralizeSegments(M,yn).pipe((0,de.z)(Ni=>this.processSegment(_,f,C,Ni.concat(Wt),ge,!1)))}matchSegmentAgainstRoute(_,C,f,M,Y,ge){let xe;if("**"===f.path){const bt=M.length>0?nn(M).parameters:{},Wt=new oo(M,bt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qo(f),Di(f),f.component??f._loadedComponent??null,f,Qs(f));xe=(0,J.of)({snapshot:Wt,consumedSegments:[],remainingSegments:[]}),C.children={}}else xe=Ts(C,f,M,_).pipe((0,$e.U)(({matched:bt,consumedSegments:Wt,remainingSegments:hn,parameters:yn})=>bt?{snapshot:new oo(Wt,yn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qo(f),Di(f),f.component??f._loadedComponent??null,f,Qs(f)),consumedSegments:Wt,remainingSegments:hn}:null));return xe.pipe((0,Ke.w)(bt=>null===bt?Cr(C):this.getChildConfig(_=f._injector??_,f,M).pipe((0,Ke.w)(({routes:Wt})=>{const hn=f._loadedInjector??_,{snapshot:yn,consumedSegments:Ni,remainingSegments:Or}=bt,{segmentGroup:So,slicedSegments:vo}=ur(C,Ni,Or,Wt);if(0===vo.length&&So.hasChildren())return this.processChildren(hn,Wt,So).pipe((0,$e.U)(a=>null===a?null:[new Pi(yn,a)]));if(0===Wt.length&&0===vo.length)return(0,J.of)([new Pi(yn,[])]);const y=Di(f)===Y;return this.processSegment(hn,Wt,So,vo,y?_e:Y,!0).pipe((0,$e.U)(a=>[new Pi(yn,a)]))}))))}getChildConfig(_,C,f){return C.children?(0,J.of)({routes:C.children,injector:_}):C.loadChildren?void 0!==C._loadedRoutes?(0,J.of)({routes:C._loadedRoutes,injector:C._loadedInjector}):function Fi(h,_,C,f){const M=_.canLoad;if(void 0===M||0===M.length)return(0,J.of)(!0);const Y=M.map(ge=>{const xe=bi(ge,h);return In(function Oo(h){return h&&Vr(h.canLoad)}(xe)?xe.canLoad(_,C):h.runInContext(()=>xe(_,C)))});return(0,J.of)(Y).pipe(Kr(),mr())}(_,C,f).pipe((0,de.z)(M=>M?this.configLoader.loadChildren(_,C).pipe((0,Te.b)(Y=>{C._loadedRoutes=Y.routes,C._loadedInjector=Y.injector})):function As(h){return(0,Ve._)(et(!1,3))}())):(0,J.of)({routes:[],injector:_})}}function Zo(h){const _=h.value.routeConfig;return _&&""===_.path}function Lo(h){const _=[],C=new Set;for(const f of h){if(!Zo(f)){_.push(f);continue}const M=_.find(Y=>f.value.routeConfig===Y.value.routeConfig);void 0!==M?(M.children.push(...f.children),C.add(M)):_.push(f)}for(const f of C){const M=Lo(f.children);_.push(new Pi(f.value,M))}return _.filter(f=>!C.has(f))}function qo(h){return h.data||{}}function Qs(h){return h.resolve||{}}function lo(h){return"string"==typeof h.title||null===h.title}function ji(h){return(0,Ke.w)(_=>{const C=h(_);return C?(0,Z.D)(C).pipe((0,$e.U)(()=>_)):(0,J.of)(_)})}const dr=new r.OlP("ROUTES");let p=(()=>{var h;class _{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,r.f3M)(r.Sil)}loadComponent(f){if(this.componentLoaders.get(f))return this.componentLoaders.get(f);if(f._loadedComponent)return(0,J.of)(f._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(f);const M=In(f.loadComponent()).pipe((0,$e.U)(he),(0,Te.b)(ge=>{this.onLoadEndListener&&this.onLoadEndListener(f),f._loadedComponent=ge}),(0,ae.x)(()=>{this.componentLoaders.delete(f)})),Y=new Je.c(M,()=>new Se.x).pipe((0,Pe.x)());return this.componentLoaders.set(f,Y),Y}loadChildren(f,M){if(this.childrenLoaders.get(M))return this.childrenLoaders.get(M);if(M._loadedRoutes)return(0,J.of)({routes:M._loadedRoutes,injector:M._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(M);const ge=this.loadModuleFactoryOrRoutes(M.loadChildren).pipe((0,$e.U)(bt=>{this.onLoadEndListener&&this.onLoadEndListener(M);let Wt,hn;return Array.isArray(bt)?hn=bt:(Wt=bt.create(f).injector,hn=Wt.get(dr,[],r.XFs.Self|r.XFs.Optional).flat()),{routes:hn.map(Dn),injector:Wt}}),(0,ae.x)(()=>{this.childrenLoaders.delete(M)})),xe=new Je.c(ge,()=>new Se.x).pipe((0,Pe.x)());return this.childrenLoaders.set(M,xe),xe}loadModuleFactoryOrRoutes(f){return In(f()).pipe((0,$e.U)(he),(0,de.z)(M=>M instanceof r.YKP||Array.isArray(M)?(0,J.of)(M):(0,Z.D)(this.compiler.compileModuleAsync(M))))}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();function he(h){return function T(h){return h&&"object"==typeof h&&"default"in h}(h)?h.default:h}let D=(()=>{var h;class _{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Se.x,this.configLoader=(0,r.f3M)(p),this.environmentInjector=(0,r.f3M)(r.lqb),this.urlSerializer=(0,r.f3M)(yt),this.rootContexts=(0,r.f3M)(Lr),this.inputBindingEnabled=null!==(0,r.f3M)(_i,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,J.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Y=>this.events.next(new wr(Y)),this.configLoader.onLoadStartListener=Y=>this.events.next(new po(Y))}complete(){this.transitions?.complete()}handleNavigationRequest(f){const M=++this.navigationId;this.transitions?.next({...this.transitions.value,...f,id:M})}setupNavigations(f){return this.transitions=new q.X({id:0,currentUrlTree:f.currentUrlTree,currentRawUrl:f.currentUrlTree,extractedUrl:f.urlHandlingStrategy.extract(f.currentUrlTree),urlAfterRedirects:f.urlHandlingStrategy.extract(f.currentUrlTree),rawUrl:f.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ci,restoredState:null,currentSnapshot:f.routerState.snapshot,targetSnapshot:null,currentRouterState:f.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ie.h)(M=>0!==M.id),(0,$e.U)(M=>({...M,extractedUrl:f.urlHandlingStrategy.extract(M.rawUrl)})),(0,Ke.w)(M=>{let Y=!1,ge=!1;return(0,J.of)(M).pipe((0,Te.b)(xe=>{this.currentNavigation={id:xe.id,initialUrl:xe.rawUrl,extractedUrl:xe.extractedUrl,trigger:xe.source,extras:xe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Ke.w)(xe=>{const bt=f.browserUrlTree.toString(),Wt=!f.navigated||xe.extractedUrl.toString()!==bt||bt!==f.currentUrlTree.toString();if(!Wt&&"reload"!==(xe.extras.onSameUrlNavigation??f.onSameUrlNavigation)){const yn="";return this.events.next(new Ji(xe.id,f.serializeUrl(M.rawUrl),yn,0)),f.rawUrlTree=xe.rawUrl,xe.resolve(null),je.E}if(f.urlHandlingStrategy.shouldProcessUrl(xe.rawUrl))return ne(xe.source)&&(f.browserUrlTree=xe.extractedUrl),(0,J.of)(xe).pipe((0,Ke.w)(yn=>{const Ni=this.transitions?.getValue();return this.events.next(new zi(yn.id,this.urlSerializer.serialize(yn.extractedUrl),yn.source,yn.restoredState)),Ni!==this.transitions?.getValue()?je.E:Promise.resolve(yn)}),function qs(h,_,C,f,M,Y){return(0,de.z)(ge=>function Ur(h,_,C,f,M,Y,ge="emptyOnly"){return new ko(h,_,C,f,M,ge,Y).recognize()}(h,_,C,f,ge.extractedUrl,M,Y).pipe((0,$e.U)(({state:xe,tree:bt})=>({...ge,targetSnapshot:xe,urlAfterRedirects:bt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,f.config,this.urlSerializer,f.paramsInheritanceStrategy),(0,Te.b)(yn=>{if(M.targetSnapshot=yn.targetSnapshot,M.urlAfterRedirects=yn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yn.urlAfterRedirects},"eager"===f.urlUpdateStrategy){if(!yn.extras.skipLocationChange){const Or=f.urlHandlingStrategy.merge(yn.urlAfterRedirects,yn.rawUrl);f.setBrowserUrl(Or,yn)}f.browserUrlTree=yn.urlAfterRedirects}const Ni=new si(yn.id,this.urlSerializer.serialize(yn.extractedUrl),this.urlSerializer.serialize(yn.urlAfterRedirects),yn.targetSnapshot);this.events.next(Ni)}));if(Wt&&f.urlHandlingStrategy.shouldProcessUrl(f.rawUrlTree)){const{id:yn,extractedUrl:Ni,source:Or,restoredState:So,extras:vo}=xe,y=new zi(yn,this.urlSerializer.serialize(Ni),Or,So);this.events.next(y);const a=Ei(0,this.rootComponentType).snapshot;return M={...xe,targetSnapshot:a,urlAfterRedirects:Ni,extras:{...vo,skipLocationChange:!1,replaceUrl:!1}},(0,J.of)(M)}{const yn="";return this.events.next(new Ji(xe.id,f.serializeUrl(M.extractedUrl),yn,1)),f.rawUrlTree=xe.rawUrl,xe.resolve(null),je.E}}),(0,Te.b)(xe=>{const bt=new Li(xe.id,this.urlSerializer.serialize(xe.extractedUrl),this.urlSerializer.serialize(xe.urlAfterRedirects),xe.targetSnapshot);this.events.next(bt)}),(0,$e.U)(xe=>M={...xe,guards:as(xe.targetSnapshot,xe.currentSnapshot,this.rootContexts)}),function Ms(h,_){return(0,de.z)(C=>{const{targetSnapshot:f,currentSnapshot:M,guards:{canActivateChecks:Y,canDeactivateChecks:ge}}=C;return 0===ge.length&&0===Y.length?(0,J.of)({...C,guardsResult:!0}):function I(h,_,C,f){return(0,Z.D)(h).pipe((0,de.z)(M=>function wn(h,_,C,f,M){const Y=_&&_.routeConfig?_.routeConfig.canDeactivate:null;if(!Y||0===Y.length)return(0,J.of)(!0);const ge=Y.map(xe=>{const bt=di(_)??M,Wt=bi(xe,bt);return In(function so(h){return h&&Vr(h.canDeactivate)}(Wt)?Wt.canDeactivate(h,_,C,f):bt.runInContext(()=>Wt(h,_,C,f))).pipe((0,ve.P)())});return(0,J.of)(ge).pipe(Kr())}(M.component,M.route,C,_,f)),(0,ve.P)(M=>!0!==M,!0))}(ge,f,M,h).pipe((0,de.z)(xe=>xe&&function ls(h){return"boolean"==typeof h}(xe)?function w(h,_,C,f){return(0,Z.D)(_).pipe((0,ze.b)(M=>(0,N.z)(function x(h,_){return null!==h&&_&&_(new Do(h)),(0,J.of)(!0)}(M.route.parent,f),function Q(h,_){return null!==h&&_&&_(new go(h)),(0,J.of)(!0)}(M.route,f),function Rt(h,_,C){const f=_[_.length-1],Y=_.slice(0,_.length-1).reverse().map(ge=>function wi(h){const _=h.routeConfig?h.routeConfig.canActivateChild:null;return _&&0!==_.length?{node:h,guards:_}:null}(ge)).filter(ge=>null!==ge).map(ge=>(0,z.P)(()=>{const xe=ge.guards.map(bt=>{const Wt=di(ge.node)??C,hn=bi(bt,Wt);return In(function zo(h){return h&&Vr(h.canActivateChild)}(hn)?hn.canActivateChild(f,h):Wt.runInContext(()=>hn(f,h))).pipe((0,ve.P)())});return(0,J.of)(xe).pipe(Kr())}));return(0,J.of)(Y).pipe(Kr())}(h,M.path,C),function pe(h,_,C){const f=_.routeConfig?_.routeConfig.canActivate:null;if(!f||0===f.length)return(0,J.of)(!0);const M=f.map(Y=>(0,z.P)(()=>{const ge=di(_)??C,xe=bi(Y,ge);return In(function $o(h){return h&&Vr(h.canActivate)}(xe)?xe.canActivate(_,h):ge.runInContext(()=>xe(_,h))).pipe((0,ve.P)())}));return(0,J.of)(M).pipe(Kr())}(h,M.route,C))),(0,ve.P)(M=>!0!==M,!0))}(f,Y,h,_):(0,J.of)(xe)),(0,$e.U)(xe=>({...C,guardsResult:xe})))})}(this.environmentInjector,xe=>this.events.next(xe)),(0,Te.b)(xe=>{if(M.guardsResult=xe.guardsResult,B(xe.guardsResult))throw we(0,xe.guardsResult);const bt=new kr(xe.id,this.urlSerializer.serialize(xe.extractedUrl),this.urlSerializer.serialize(xe.urlAfterRedirects),xe.targetSnapshot,!!xe.guardsResult);this.events.next(bt)}),(0,Ie.h)(xe=>!!xe.guardsResult||(f.restoreHistory(xe),this.cancelNavigationTransition(xe,"",3),!1)),ji(xe=>{if(xe.guards.canActivateChecks.length)return(0,J.of)(xe).pipe((0,Te.b)(bt=>{const Wt=new zr(bt.id,this.urlSerializer.serialize(bt.extractedUrl),this.urlSerializer.serialize(bt.urlAfterRedirects),bt.targetSnapshot);this.events.next(Wt)}),(0,Ke.w)(bt=>{let Wt=!1;return(0,J.of)(bt).pipe(function Xo(h,_){return(0,de.z)(C=>{const{targetSnapshot:f,guards:{canActivateChecks:M}}=C;if(!M.length)return(0,J.of)(C);let Y=0;return(0,Z.D)(M).pipe((0,ze.b)(ge=>function Ss(h,_,C,f){const M=h.routeConfig,Y=h._resolve;return void 0!==M?.title&&!lo(M)&&(Y[vt]=M.title),function Ao(h,_,C,f){const M=function Is(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}(h);if(0===M.length)return(0,J.of)({});const Y={};return(0,Z.D)(M).pipe((0,de.z)(ge=>function hs(h,_,C,f){const M=di(_)??f,Y=bi(h,M);return In(Y.resolve?Y.resolve(_,C):M.runInContext(()=>Y(_,C)))}(h[ge],_,C,f).pipe((0,ve.P)(),(0,Te.b)(xe=>{Y[ge]=xe}))),Nn(1),(0,ht.h)(Y),Jt(ge=>Go(ge)?je.E:(0,Ve._)(ge)))}(Y,h,_,f).pipe((0,$e.U)(ge=>(h._resolvedData=ge,h.data=Vi(h,C).resolve,M&&lo(M)&&(h.data[vt]=M.title),null)))}(ge.route,f,h,_)),(0,Te.b)(()=>Y++),Nn(1),(0,de.z)(ge=>Y===M.length?(0,J.of)(C):je.E))})}(f.paramsInheritanceStrategy,this.environmentInjector),(0,Te.b)({next:()=>Wt=!0,complete:()=>{Wt||(f.restoreHistory(bt),this.cancelNavigationTransition(bt,"",2))}}))}),(0,Te.b)(bt=>{const Wt=new jo(bt.id,this.urlSerializer.serialize(bt.extractedUrl),this.urlSerializer.serialize(bt.urlAfterRedirects),bt.targetSnapshot);this.events.next(Wt)}))}),ji(xe=>{const bt=Wt=>{const hn=[];Wt.routeConfig?.loadComponent&&!Wt.routeConfig._loadedComponent&&hn.push(this.configLoader.loadComponent(Wt.routeConfig).pipe((0,Te.b)(yn=>{Wt.component=yn}),(0,$e.U)(()=>{})));for(const yn of Wt.children)hn.push(...bt(yn));return hn};return(0,le.a)(bt(xe.targetSnapshot.root)).pipe((0,mn.d)(),(0,lt.q)(1))}),ji(()=>this.afterPreactivation()),(0,$e.U)(xe=>{const bt=function vi(h,_,C){const f=Ki(h,_._root,C?C._root:void 0);return new Ln(f,_)}(f.routeReuseStrategy,xe.targetSnapshot,xe.currentRouterState);return M={...xe,targetRouterState:bt}}),(0,Te.b)(xe=>{f.currentUrlTree=xe.urlAfterRedirects,f.rawUrlTree=f.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl),f.routerState=xe.targetRouterState,"deferred"===f.urlUpdateStrategy&&(xe.extras.skipLocationChange||f.setBrowserUrl(f.rawUrlTree,xe),f.browserUrlTree=xe.urlAfterRedirects)}),((h,_,C,f)=>(0,$e.U)(M=>(new Zn(_,M.targetRouterState,M.currentRouterState,C,f).activate(h),M)))(this.rootContexts,f.routeReuseStrategy,xe=>this.events.next(xe),this.inputBindingEnabled),(0,lt.q)(1),(0,Te.b)({next:xe=>{Y=!0,this.lastSuccessfulNavigation=this.currentNavigation,f.navigated=!0,this.events.next(new Xi(xe.id,this.urlSerializer.serialize(xe.extractedUrl),this.urlSerializer.serialize(f.currentUrlTree))),f.titleStrategy?.updateTitle(xe.targetRouterState.snapshot),xe.resolve(!0)},complete:()=>{Y=!0}}),(0,ae.x)(()=>{Y||ge||this.cancelNavigationTransition(M,"",1),this.currentNavigation?.id===M.id&&(this.currentNavigation=null)}),Jt(xe=>{if(ge=!0,Ot(xe)){wt(xe)||(f.navigated=!0,f.restoreHistory(M,!0));const bt=new Oi(M.id,this.urlSerializer.serialize(M.extractedUrl),xe.message,xe.cancellationCode);if(this.events.next(bt),wt(xe)){const Wt=f.urlHandlingStrategy.merge(xe.url,f.rawUrlTree),hn={skipLocationChange:M.extras.skipLocationChange,replaceUrl:"eager"===f.urlUpdateStrategy||ne(M.source)};f.scheduleNavigation(Wt,ci,null,hn,{resolve:M.resolve,reject:M.reject,promise:M.promise})}else M.resolve(!1)}else{f.restoreHistory(M,!0);const bt=new er(M.id,this.urlSerializer.serialize(M.extractedUrl),xe,M.targetSnapshot??void 0);this.events.next(bt);try{M.resolve(f.errorHandler(xe))}catch(Wt){M.reject(Wt)}}return je.E}))}))}cancelNavigationTransition(f,M,Y){const ge=new Oi(f.id,this.urlSerializer.serialize(f.extractedUrl),M,Y);this.events.next(ge),f.resolve(!1)}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();function ne(h){return h!==ci}let Ne=(()=>{var h;class _{buildTitle(f){let M,Y=f.root;for(;void 0!==Y;)M=this.getResolvedTitleForRoute(Y)??M,Y=Y.children.find(ge=>ge.outlet===_e);return M}getResolvedTitleForRoute(f){return f.data[vt]}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(Mt)},providedIn:"root"}),_})(),Mt=(()=>{var h;class _ extends Ne{constructor(f){super(),this.title=f}updateTitle(f){const M=this.buildTitle(f);void 0!==M&&this.title.setTitle(M)}}return(h=_).\u0275fac=function(f){return new(f||h)(r.LFG(oe.Dx))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})(),jt=(()=>{var h;class _{}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(ti)},providedIn:"root"}),_})();class ln{shouldDetach(_){return!1}store(_,C){}shouldAttach(_){return!1}retrieve(_){return null}shouldReuseRoute(_,C){return _.routeConfig===C.routeConfig}}let ti=(()=>{var h;class _ extends ln{}return(h=_).\u0275fac=function(){let C;return function(M){return(C||(C=r.n5z(h)))(M||h)}}(),h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();const Tn=new r.OlP("",{providedIn:"root",factory:()=>({})});let vn=(()=>{var h;class _{}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:function(){return(0,r.f3M)(Mi)},providedIn:"root"}),_})(),Mi=(()=>{var h;class _{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,M){return f}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();var Jn=function(h){return h[h.COMPLETE=0]="COMPLETE",h[h.FAILED=1]="FAILED",h[h.REDIRECTING=2]="REDIRECTING",h}(Jn||{});function gi(h,_){h.events.pipe((0,Ie.h)(C=>C instanceof Xi||C instanceof Oi||C instanceof er||C instanceof Ji),(0,$e.U)(C=>C instanceof Xi||C instanceof Ji?Jn.COMPLETE:C instanceof Oi&&(0===C.code||1===C.code)?Jn.REDIRECTING:Jn.FAILED),(0,Ie.h)(C=>C!==Jn.REDIRECTING),(0,lt.q)(1)).subscribe(()=>{_()})}function Ai(h){throw h}function Sr(h,_,C){return _.parse("/")}const Qr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_r={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oi=(()=>{var h;class _{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)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)(Tn,{optional:!0})||{},this.pendingTasks=(0,r.f3M)(r.HDt),this.errorHandler=this.options.errorHandler||Ai,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Sr,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,r.f3M)(vn),this.routeReuseStrategy=(0,r.f3M)(jt),this.titleStrategy=(0,r.f3M)(Ne),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=(0,r.f3M)(dr,{optional:!0})?.flat()??[],this.navigationTransitions=(0,r.f3M)(D),this.urlSerializer=(0,r.f3M)(yt),this.location=(0,r.f3M)(Ue.Ye),this.componentInputBindingEnabled=!!(0,r.f3M)(_i,{optional:!0}),this.isNgZoneEnabled=(0,r.f3M)(r.R0b)instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Zt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ei(0,null),this.navigationTransitions.setupNavigations(this).subscribe(f=>{this.lastSuccessfulId=f.id,this.currentPageId=this.browserPageId??0},f=>{this.console.warn(`Unhandled Navigation Error: ${f}`)})}resetRootComponentType(f){this.routerState.root.component=f,this.navigationTransitions.rootComponentType=f}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const f=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ci,f)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(f=>{const M="popstate"===f.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{this.navigateToSyncWithBrowser(f.url,M,f.state)},0)}))}navigateToSyncWithBrowser(f,M,Y){const ge={replaceUrl:!0},xe=Y?.navigationId?Y:null;if(Y){const Wt={...Y};delete Wt.navigationId,delete Wt.\u0275routerPageId,0!==Object.keys(Wt).length&&(ge.state=Wt)}const bt=this.parseUrl(f);this.scheduleNavigation(bt,M,xe,ge)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(f){this.config=f.map(Dn),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(f,M={}){const{relativeTo:Y,queryParams:ge,fragment:xe,queryParamsHandling:bt,preserveFragment:Wt}=M,hn=Wt?this.currentUrlTree.fragment:xe;let Ni,yn=null;switch(bt){case"merge":yn={...this.currentUrlTree.queryParams,...ge};break;case"preserve":yn=this.currentUrlTree.queryParams;break;default:yn=ge||null}null!==yn&&(yn=this.removeEmptyProps(yn));try{Ni=k(Y?Y.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof f[0]||!f[0].startsWith("/"))&&(f=[]),Ni=this.currentUrlTree.root}return L(Ni,f,yn,hn??null)}navigateByUrl(f,M={skipLocationChange:!1}){const Y=B(f)?f:this.parseUrl(f),ge=this.urlHandlingStrategy.merge(Y,this.rawUrlTree);return this.scheduleNavigation(ge,ci,null,M)}navigate(f,M={skipLocationChange:!1}){return function Hr(h){for(let _=0;_<h.length;_++)if(null==h[_])throw new r.vHH(4008,!1)}(f),this.navigateByUrl(this.createUrlTree(f,M),M)}serializeUrl(f){return this.urlSerializer.serialize(f)}parseUrl(f){let M;try{M=this.urlSerializer.parse(f)}catch(Y){M=this.malformedUriErrorHandler(Y,this.urlSerializer,f)}return M}isActive(f,M){let Y;if(Y=!0===M?{...Qr}:!1===M?{..._r}:M,B(f))return $(this.currentUrlTree,f,Y);const ge=this.parseUrl(f);return $(this.currentUrlTree,ge,Y)}removeEmptyProps(f){return Object.keys(f).reduce((M,Y)=>{const ge=f[Y];return null!=ge&&(M[Y]=ge),M},{})}scheduleNavigation(f,M,Y,ge,xe){if(this.disposed)return Promise.resolve(!1);let bt,Wt,hn;xe?(bt=xe.resolve,Wt=xe.reject,hn=xe.promise):hn=new Promise((Ni,Or)=>{bt=Ni,Wt=Or});const yn=this.pendingTasks.add();return gi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(yn))}),this.navigationTransitions.handleNavigationRequest({source:M,restoredState:Y,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:f,extras:ge,resolve:bt,reject:Wt,promise:hn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),hn.catch(Ni=>Promise.reject(Ni))}setBrowserUrl(f,M){const Y=this.urlSerializer.serialize(f);if(this.location.isCurrentPathEqualTo(Y)||M.extras.replaceUrl){const xe={...M.extras.state,...this.generateNgRouterState(M.id,this.browserPageId)};this.location.replaceState(Y,"",xe)}else{const ge={...M.extras.state,...this.generateNgRouterState(M.id,(this.browserPageId??0)+1)};this.location.go(Y,"",ge)}}restoreHistory(f,M=!1){if("computed"===this.canceledNavigationResolution){const ge=this.currentPageId-(this.browserPageId??this.currentPageId);0!==ge?this.location.historyGo(ge):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===ge&&(this.resetState(f),this.browserUrlTree=f.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(f),this.resetUrlToCurrentUrlTree())}resetState(f){this.routerState=f.currentRouterState,this.currentUrlTree=f.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,f.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(f,M){return"computed"===this.canceledNavigationResolution?{navigationId:f,\u0275routerPageId:M}:{navigationId:f}}}return(h=_).\u0275fac=function(f){return new(f||h)},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();class xs{}let fs=(()=>{var h;class _{constructor(f,M,Y,ge,xe){this.router=f,this.injector=Y,this.preloadingStrategy=ge,this.loader=xe}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ie.h)(f=>f instanceof Xi),(0,ze.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(f,M){const Y=[];for(const ge of M){ge.providers&&!ge._injector&&(ge._injector=(0,r.MMx)(ge.providers,f,`Route: ${ge.path}`));const xe=ge._injector??f,bt=ge._loadedInjector??xe;(ge.loadChildren&&!ge._loadedRoutes&&void 0===ge.canLoad||ge.loadComponent&&!ge._loadedComponent)&&Y.push(this.preloadConfig(xe,ge)),(ge.children||ge._loadedRoutes)&&Y.push(this.processRoutes(bt,ge.children??ge._loadedRoutes))}return(0,Z.D)(Y).pipe((0,F.J)())}preloadConfig(f,M){return this.preloadingStrategy.preload(M,()=>{let Y;Y=M.loadChildren&&void 0===M.canLoad?this.loader.loadChildren(f,M):(0,J.of)(null);const ge=Y.pipe((0,de.z)(xe=>null===xe?(0,J.of)(void 0):(M._loadedRoutes=xe.routes,M._loadedInjector=xe.injector,this.processRoutes(xe.injector??f,xe.routes))));if(M.loadComponent&&!M._loadedComponent){const xe=this.loader.loadComponent(M);return(0,Z.D)([ge,xe]).pipe((0,F.J)())}return ge})}}return(h=_).\u0275fac=function(f){return new(f||h)(r.LFG(oi),r.LFG(r.Sil),r.LFG(r.lqb),r.LFG(xs),r.LFG(p))},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),_})();const zs=new r.OlP("");let ps=(()=>{var h;class _{constructor(f,M,Y,ge,xe={}){this.urlSerializer=f,this.transitions=M,this.viewportScroller=Y,this.zone=ge,this.options=xe,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},xe.scrollPositionRestoration=xe.scrollPositionRestoration||"disabled",xe.anchorScrolling=xe.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(f=>{f instanceof zi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=f.navigationTrigger,this.restoredId=f.restoredState?f.restoredState.navigationId:0):f instanceof Xi?(this.lastId=f.id,this.scheduleScrollEvent(f,this.urlSerializer.parse(f.urlAfterRedirects).fragment)):f instanceof Ji&&0===f.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(f,this.urlSerializer.parse(f.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(f=>{f instanceof Mr&&(f.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(f.position):f.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(f.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(f,M){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Mr(f,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(h=_).\u0275fac=function(f){r.$Z()},h.\u0275prov=r.Yz7({token:h,factory:h.\u0275fac}),_})();function jr(h,_){return{\u0275kind:h,\u0275providers:_}}function gs(){const h=(0,r.f3M)(r.zs3);return _=>{const C=h.get(r.z2F);if(_!==C.components[0])return;const f=h.get(oi),M=h.get(ms);1===h.get(Pt)&&f.initialNavigation(),h.get(qi,null,r.XFs.Optional)?.setUpPreloading(),h.get(zs,null,r.XFs.Optional)?.init(),f.resetRootComponentType(C.componentTypes[0]),M.closed||(M.next(),M.complete(),M.unsubscribe())}}const ms=new r.OlP("",{factory:()=>new Se.x}),Pt=new r.OlP("",{providedIn:"root",factory:()=>1}),qi=new r.OlP("");function qr(h){return jr(0,[{provide:qi,useExisting:fs},{provide:xs,useExisting:h}])}const Xr=new r.OlP("ROUTER_FORROOT_GUARD"),vs=[Ue.Ye,{provide:yt,useClass:Yt},oi,Lr,{provide:Ii,useFactory:function Jo(h){return h.routerState.root},deps:[oi]},p,[]];function nr(){return new r.PXZ("Router",oi)}let uo=(()=>{var h;class _{constructor(f){}static forRoot(f,M){return{ngModule:_,providers:[vs,[],{provide:dr,multi:!0,useValue:f},{provide:Xr,useFactory:Js,deps:[[oi,new r.FiY,new r.tp0]]},{provide:Tn,useValue:M||{}},M?.useHash?{provide:Ue.S$,useClass:Ue.Do}:{provide:Ue.S$,useClass:Ue.b0},{provide:zs,useFactory:()=>{const h=(0,r.f3M)(Ue.EM),_=(0,r.f3M)(r.R0b),C=(0,r.f3M)(Tn),f=(0,r.f3M)(D),M=(0,r.f3M)(yt);return C.scrollOffset&&h.setOffset(C.scrollOffset),new ps(M,f,h,_,C)}},M?.preloadingStrategy?qr(M.preloadingStrategy).\u0275providers:[],{provide:r.PXZ,multi:!0,useFactory:nr},M?.initialNavigation?_o(M):[],M?.bindToComponentInputs?jr(8,[ar,{provide:_i,useExisting:ar}]).\u0275providers:[],[{provide:ea,useFactory:gs},{provide:r.tb,multi:!0,useExisting:ea}]]}}static forChild(f){return{ngModule:_,providers:[{provide:dr,multi:!0,useValue:f}]}}}return(h=_).\u0275fac=function(f){return new(f||h)(r.LFG(Xr,8))},h.\u0275mod=r.oAB({type:h}),h.\u0275inj=r.cJS({}),_})();function Js(h){return"guarded"}function _o(h){return["disabled"===h.initialNavigation?jr(3,[{provide:r.ip1,multi:!0,useFactory:()=>{const _=(0,r.f3M)(oi);return()=>{_.setUpLocationChangeListener()}}},{provide:Pt,useValue:2}]).\u0275providers:[],"enabledBlocking"===h.initialNavigation?jr(2,[{provide:Pt,useValue:0},{provide:r.ip1,multi:!0,deps:[r.zs3],useFactory:_=>{const C=_.get(Ue.V_,Promise.resolve());return()=>C.then(()=>new Promise(f=>{const M=_.get(oi),Y=_.get(ms);gi(M,()=>{f(!0)}),_.get(D).afterPreactivation=()=>(f(!0),Y.closed?(0,J.of)(void 0):Y),M.initialNavigation()}))}}]).\u0275providers:[]]}const ea=new r.OlP("")},3106:(It,Fe,g)=>{g.d(Fe,{Z:()=>Je});var r=g(9058),c=g(4537),R=g(4303),te=g(7879);class Z{constructor(Ue,$e){this._delegate=Ue,this.firebase=$e,(0,R._addComponent)(Ue,new c.wA("app-compat",()=>this,"PUBLIC")),this.container=Ue.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ue){this._delegate.automaticDataCollectionEnabled=Ue}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(Ue=>{this._delegate.checkDestroyed(),Ue()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,R.deleteApp)(this._delegate)))}_getService(Ue,$e=R._DEFAULT_ENTRY_NAME){var Ke;this._delegate.checkDestroyed();const lt=this._delegate.container.getProvider(Ue);return!lt.isInitialized()&&"EXPLICIT"===(null===(Ke=lt.getComponent())||void 0===Ke?void 0:Ke.instantiationMode)&&lt.initialize(),lt.getImmediate({identifier:$e})}_removeServiceInstance(Ue,$e=R._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(Ue).clearInstance($e)}_addComponent(Ue){(0,R._addComponent)(this._delegate,Ue)}_addOrOverwriteComponent(Ue){(0,R._addOrOverwriteComponent)(this._delegate,Ue)}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."}),N=function K(){const Se=function le(Se){const Ue={},$e={__esModule:!0,initializeApp:function ee(ze,Te={}){const ct=R.initializeApp(ze,Te);if((0,r.r3)(Ue,ct.name))return Ue[ct.name];const Et=new Se(ct,$e);return Ue[ct.name]=Et,Et},app:lt,registerVersion:R.registerVersion,setLogLevel:R.setLogLevel,onLog:R.onLog,apps:null,SDK_VERSION:R.SDK_VERSION,INTERNAL:{registerComponent:function de(ze){const Te=ze.name,ct=Te.replace("-compat","");if(R._registerComponent(ze)&&"PUBLIC"===ze.type){const Et=(Bt=lt())=>{if("function"!=typeof Bt[ct])throw q.create("invalid-app-argument",{appName:Te});return Bt[ct]()};void 0!==ze.serviceProps&&(0,r.ZB)(Et,ze.serviceProps),$e[ct]=Et,Se.prototype[ct]=function(...Bt){return this._getService.bind(this,Te).apply(this,ze.multipleInstances?Bt:[])}}return"PUBLIC"===ze.type?$e[ct]:null},removeApp:function Ke(ze){delete Ue[ze]},useAsService:function ve(ze,Te){return"serverAuth"===Te?null:Te},modularAPIs:R}};function lt(ze){if(!(0,r.r3)(Ue,ze=ze||R._DEFAULT_ENTRY_NAME))throw q.create("no-app",{appName:ze});return Ue[ze]}return $e.default=$e,Object.defineProperty($e,"apps",{get:function Ie(){return Object.keys(Ue).map(ze=>Ue[ze])}}),lt.App=Se,$e}(Z);return Se.INTERNAL=Object.assign(Object.assign({},Se.INTERNAL),{createFirebaseNamespace:K,extendNamespace:function Ue($e){(0,r.ZB)(Se,$e)},createSubscribe:r.ne,ErrorFactory:r.LL,deepExtend:r.ZB}),Se}(),z=new te.Yd("@firebase/app-compat");if((0,r.jU)()&&void 0!==self.firebase){z.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const Se=self.firebase.SDK_VERSION;Se&&Se.indexOf("LITE")>=0&&z.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const Je=N;!function je(Se){(0,R.registerVersion)("@firebase/app-compat","0.2.3",Se)}()},4303:(It,Fe,g)=>{g.r(Fe),g.d(Fe,{FirebaseError:()=>te.ZR,SDK_VERSION:()=>dn,_DEFAULT_ENTRY_NAME:()=>Xe,_addComponent:()=>Pe,_addOrOverwriteComponent:()=>F,_apps:()=>ht,_clearComponents:()=>At,_components:()=>ae,_getProvider:()=>_e,_registerComponent:()=>oe,_removeServiceInstance:()=>vt,deleteApp:()=>Wn,getApp:()=>nn,getApps:()=>In,initializeApp:()=>Cn,onLog:()=>be,registerVersion:()=>$,setLogLevel:()=>ke});var r=g(5861),c=g(4537),R=g(7879),te=g(9058),Z=g(1878);class J{constructor(ie){this.container=ie}getPlatformInfoString(){return this.container.getProviders().map(ce=>{if(function q(Ge){const ie=Ge.getComponent();return"VERSION"===ie?.type}(ce)){const We=ce.getImmediate();return`${We.library}/${We.version}`}return null}).filter(ce=>ce).join(" ")}}const le="@firebase/app",K="0.9.3",N=new R.Yd("@firebase/app"),Xe="[DEFAULT]",ot={[le]:"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"},ht=new Map,ae=new Map;function Pe(Ge,ie){try{Ge.container.addComponent(ie)}catch(ce){N.debug(`Component ${ie.name} failed to register with FirebaseApp ${Ge.name}`,ce)}}function F(Ge,ie){Ge.container.addOrOverwriteComponent(ie)}function oe(Ge){const ie=Ge.name;if(ae.has(ie))return N.debug(`There were multiple attempts to register component ${ie}.`),!1;ae.set(ie,Ge);for(const ce of ht.values())Pe(ce,Ge);return!0}function _e(Ge,ie){const ce=Ge.container.getProvider("heartbeat").getImmediate({optional:!0});return ce&&ce.triggerHeartbeat(),Ge.container.getProvider(ie)}function vt(Ge,ie,ce=Xe){_e(Ge,ie).clearInstance(ce)}function At(){ae.clear()}const Nt=new te.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 sn{constructor(ie,ce,We){this._isDeleted=!1,this._options=Object.assign({},ie),this._config=Object.assign({},ce),this._name=ce.name,this._automaticDataCollectionEnabled=ce.automaticDataCollectionEnabled,this._container=We,this.container.addComponent(new c.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ie){this.checkDestroyed(),this._automaticDataCollectionEnabled=ie}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ie){this._isDeleted=ie}checkDestroyed(){if(this.isDeleted)throw Nt.create("app-deleted",{appName:this._name})}}const dn="9.17.1";function Cn(Ge,ie={}){let ce=Ge;"object"!=typeof ie&&(ie={name:ie});const We=Object.assign({name:Xe,automaticDataCollectionEnabled:!1},ie),St=We.name;if("string"!=typeof St||!St)throw Nt.create("bad-app-name",{appName:String(St)});if(ce||(ce=(0,te.aH)()),!ce)throw Nt.create("no-options");const Kt=ht.get(St);if(Kt){if((0,te.vZ)(ce,Kt.options)&&(0,te.vZ)(We,Kt.config))return Kt;throw Nt.create("duplicate-app",{appName:St})}const Ee=new c.H0(St);for(const G of ae.values())Ee.addComponent(G);const ye=new sn(ce,We,Ee);return ht.set(St,ye),ye}function nn(Ge=Xe){const ie=ht.get(Ge);if(!ie&&Ge===Xe)return Cn();if(!ie)throw Nt.create("no-app",{appName:Ge});return ie}function In(){return Array.from(ht.values())}function Wn(Ge){return pt.apply(this,arguments)}function pt(){return(pt=(0,r.Z)(function*(Ge){const ie=Ge.name;ht.has(ie)&&(ht.delete(ie),yield Promise.all(Ge.container.getProviders().map(ce=>ce.delete())),Ge.isDeleted=!0)})).apply(this,arguments)}function $(Ge,ie,ce){var We;let St=null!==(We=ot[Ge])&&void 0!==We?We:Ge;ce&&(St+=`-${ce}`);const Kt=St.match(/\s|\//),Ee=ie.match(/\s|\//);if(Kt||Ee){const ye=[`Unable to register library "${St}" with version "${ie}":`];return Kt&&ye.push(`library name "${St}" contains illegal characters (whitespace or "/")`),Kt&&Ee&&ye.push("and"),Ee&&ye.push(`version name "${ie}" contains illegal characters (whitespace or "/")`),void N.warn(ye.join(" "))}oe(new c.wA(`${St}-version`,()=>({library:St,version:ie}),"VERSION"))}function be(Ge,ie){if(null!==Ge&&"function"!=typeof Ge)throw Nt.create("invalid-log-argument");(0,R.Am)(Ge,ie)}function ke(Ge){(0,R.Ub)(Ge)}const ut="firebase-heartbeat-database",it=1,mt="firebase-heartbeat-store";let xt=null;function Zt(){return xt||(xt=(0,Z.X3)(ut,it,{upgrade:(Ge,ie)=>{0===ie&&Ge.createObjectStore(mt)}}).catch(Ge=>{throw Nt.create("idb-open",{originalErrorMessage:Ge.message})})),xt}function qe(){return(qe=(0,r.Z)(function*(Ge){try{return(yield Zt()).transaction(mt).objectStore(mt).get(st(Ge))}catch(ie){if(ie instanceof te.ZR)N.warn(ie.message);else{const ce=Nt.create("idb-get",{originalErrorMessage:ie?.message});N.warn(ce.message)}}})).apply(this,arguments)}function dt(Ge,ie){return Re.apply(this,arguments)}function Re(){return(Re=(0,r.Z)(function*(Ge,ie){try{const We=(yield Zt()).transaction(mt,"readwrite");return yield We.objectStore(mt).put(ie,st(Ge)),We.done}catch(ce){if(ce instanceof te.ZR)N.warn(ce.message);else{const We=Nt.create("idb-set",{originalErrorMessage:ce?.message});N.warn(We.message)}}})).apply(this,arguments)}function st(Ge){return`${Ge.name}!${Ge.options.appId}`}class Gt{constructor(ie){this.container=ie,this._heartbeatsCache=null;const ce=this.container.getProvider("app").getImmediate();this._storage=new jn(ce),this._heartbeatsCachePromise=this._storage.read().then(We=>(this._heartbeatsCache=We,We))}triggerHeartbeat(){var ie=this;return(0,r.Z)(function*(){const We=ie.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),St=tn();if(null===ie._heartbeatsCache&&(ie._heartbeatsCache=yield ie._heartbeatsCachePromise),ie._heartbeatsCache.lastSentHeartbeatDate!==St&&!ie._heartbeatsCache.heartbeats.some(Kt=>Kt.date===St))return ie._heartbeatsCache.heartbeats.push({date:St,agent:We}),ie._heartbeatsCache.heartbeats=ie._heartbeatsCache.heartbeats.filter(Kt=>{const Ee=new Date(Kt.date).valueOf();return Date.now()-Ee<=2592e6}),ie._storage.overwrite(ie._heartbeatsCache)})()}getHeartbeatsHeader(){var ie=this;return(0,r.Z)(function*(){if(null===ie._heartbeatsCache&&(yield ie._heartbeatsCachePromise),null===ie._heartbeatsCache||0===ie._heartbeatsCache.heartbeats.length)return"";const ce=tn(),{heartbeatsToSend:We,unsentEntries:St}=function En(Ge,ie=1024){const ce=[];let We=Ge.slice();for(const St of Ge){const Kt=ce.find(Ee=>Ee.agent===St.agent);if(Kt){if(Kt.dates.push(St.date),Vn(ce)>ie){Kt.dates.pop();break}}else if(ce.push({agent:St.agent,dates:[St.date]}),Vn(ce)>ie){ce.pop();break}We=We.slice(1)}return{heartbeatsToSend:ce,unsentEntries:We}}(ie._heartbeatsCache.heartbeats),Kt=(0,te.L)(JSON.stringify({version:2,heartbeats:We}));return ie._heartbeatsCache.lastSentHeartbeatDate=ce,St.length>0?(ie._heartbeatsCache.heartbeats=St,yield ie._storage.overwrite(ie._heartbeatsCache)):(ie._heartbeatsCache.heartbeats=[],ie._storage.overwrite(ie._heartbeatsCache)),Kt})()}}function tn(){return(new Date).toISOString().substring(0,10)}class jn{constructor(ie){this.app=ie,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,r.Z)(function*(){return!!(0,te.hl)()&&(0,te.eu)().then(()=>!0).catch(()=>!1)})()}read(){var ie=this;return(0,r.Z)(function*(){return(yield ie._canUseIndexedDBPromise)&&(yield function $t(Ge){return qe.apply(this,arguments)}(ie.app))||{heartbeats:[]}})()}overwrite(ie){var ce=this;return(0,r.Z)(function*(){var We;if(yield ce._canUseIndexedDBPromise){const Kt=yield ce.read();return dt(ce.app,{lastSentHeartbeatDate:null!==(We=ie.lastSentHeartbeatDate)&&void 0!==We?We:Kt.lastSentHeartbeatDate,heartbeats:ie.heartbeats})}})()}add(ie){var ce=this;return(0,r.Z)(function*(){var We;if(yield ce._canUseIndexedDBPromise){const Kt=yield ce.read();return dt(ce.app,{lastSentHeartbeatDate:null!==(We=ie.lastSentHeartbeatDate)&&void 0!==We?We:Kt.lastSentHeartbeatDate,heartbeats:[...Kt.heartbeats,...ie.heartbeats]})}})()}}function Vn(Ge){return(0,te.L)(JSON.stringify({version:2,heartbeats:Ge})).length}!function Mn(Ge){oe(new c.wA("platform-logger",ie=>new J(ie),"PRIVATE")),oe(new c.wA("heartbeat",ie=>new Gt(ie),"PRIVATE")),$(le,K,Ge),$(le,K,"esm2017"),$("fire-js","")}("")},4537:(It,Fe,g)=>{g.d(Fe,{H0:()=>le,wA:()=>R});var r=g(5861),c=g(9058);class R{constructor(N,z,fe){this.name=N,this.instanceFactory=z,this.type=fe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(N){return this.instantiationMode=N,this}setMultipleInstances(N){return this.multipleInstances=N,this}setServiceProps(N){return this.serviceProps=N,this}setInstanceCreatedCallback(N){return this.onInstanceCreated=N,this}}const te="[DEFAULT]";class Z{constructor(N,z){this.name=N,this.container=z,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(N){const z=this.normalizeInstanceIdentifier(N);if(!this.instancesDeferred.has(z)){const fe=new c.BH;if(this.instancesDeferred.set(z,fe),this.isInitialized(z)||this.shouldAutoInitialize())try{const Ve=this.getOrInitializeService({instanceIdentifier:z});Ve&&fe.resolve(Ve)}catch{}}return this.instancesDeferred.get(z).promise}getImmediate(N){var z;const fe=this.normalizeInstanceIdentifier(N?.identifier),Ve=null!==(z=N?.optional)&&void 0!==z&&z;if(!this.isInitialized(fe)&&!this.shouldAutoInitialize()){if(Ve)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:fe})}catch(je){if(Ve)return null;throw je}}getComponent(){return this.component}setComponent(N){if(N.name!==this.name)throw Error(`Mismatching Component ${N.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=N,this.shouldAutoInitialize()){if(function q(K){return"EAGER"===K.instantiationMode}(N))try{this.getOrInitializeService({instanceIdentifier:te})}catch{}for(const[z,fe]of this.instancesDeferred.entries()){const Ve=this.normalizeInstanceIdentifier(z);try{const je=this.getOrInitializeService({instanceIdentifier:Ve});fe.resolve(je)}catch{}}}}clearInstance(N=te){this.instancesDeferred.delete(N),this.instancesOptions.delete(N),this.instances.delete(N)}delete(){var N=this;return(0,r.Z)(function*(){const z=Array.from(N.instances.values());yield Promise.all([...z.filter(fe=>"INTERNAL"in fe).map(fe=>fe.INTERNAL.delete()),...z.filter(fe=>"_delete"in fe).map(fe=>fe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(N=te){return this.instances.has(N)}getOptions(N=te){return this.instancesOptions.get(N)||{}}initialize(N={}){const{options:z={}}=N,fe=this.normalizeInstanceIdentifier(N.instanceIdentifier);if(this.isInitialized(fe))throw Error(`${this.name}(${fe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ve=this.getOrInitializeService({instanceIdentifier:fe,options:z});for(const[je,Je]of this.instancesDeferred.entries())fe===this.normalizeInstanceIdentifier(je)&&Je.resolve(Ve);return Ve}onInit(N,z){var fe;const Ve=this.normalizeInstanceIdentifier(z),je=null!==(fe=this.onInitCallbacks.get(Ve))&&void 0!==fe?fe:new Set;je.add(N),this.onInitCallbacks.set(Ve,je);const Je=this.instances.get(Ve);return Je&&N(Je,Ve),()=>{je.delete(N)}}invokeOnInitCallbacks(N,z){const fe=this.onInitCallbacks.get(z);if(fe)for(const Ve of fe)try{Ve(N,z)}catch{}}getOrInitializeService({instanceIdentifier:N,options:z={}}){let fe=this.instances.get(N);if(!fe&&this.component&&(fe=this.component.instanceFactory(this.container,{instanceIdentifier:(K=N,K===te?void 0:K),options:z}),this.instances.set(N,fe),this.instancesOptions.set(N,z),this.invokeOnInitCallbacks(fe,N),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,N,fe)}catch{}var K;return fe||null}normalizeInstanceIdentifier(N=te){return this.component?this.component.multipleInstances?N:te:N}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class le{constructor(N){this.name=N,this.providers=new Map}addComponent(N){const z=this.getProvider(N.name);if(z.isComponentSet())throw new Error(`Component ${N.name} has already been registered with ${this.name}`);z.setComponent(N)}addOrOverwriteComponent(N){this.getProvider(N.name).isComponentSet()&&this.providers.delete(N.name),this.addComponent(N)}getProvider(N){if(this.providers.has(N))return this.providers.get(N);const z=new Z(N,this);return this.providers.set(N,z),z}getProviders(){return Array.from(this.providers.values())}}},7879:(It,Fe,g)=>{g.d(Fe,{Am:()=>K,Ub:()=>le,Yd:()=>q,in:()=>c});const r=[];var c=function(N){return N[N.DEBUG=0]="DEBUG",N[N.VERBOSE=1]="VERBOSE",N[N.INFO=2]="INFO",N[N.WARN=3]="WARN",N[N.ERROR=4]="ERROR",N[N.SILENT=5]="SILENT",N}(c||{});const R={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},te=c.INFO,Z={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},J=(N,z,...fe)=>{if(z<N.logLevel)return;const Ve=(new Date).toISOString(),je=Z[z];if(!je)throw new Error(`Attempted to log a message with an invalid logType (value: ${z})`);console[je](`[${Ve}] ${N.name}:`,...fe)};class q{constructor(z){this.name=z,this._logLevel=te,this._logHandler=J,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(z){if(!(z in c))throw new TypeError(`Invalid value "${z}" assigned to \`logLevel\``);this._logLevel=z}setLogLevel(z){this._logLevel="string"==typeof z?R[z]:z}get logHandler(){return this._logHandler}set logHandler(z){if("function"!=typeof z)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=z}get userLogHandler(){return this._userLogHandler}set userLogHandler(z){this._userLogHandler=z}debug(...z){this._userLogHandler&&this._userLogHandler(this,c.DEBUG,...z),this._logHandler(this,c.DEBUG,...z)}log(...z){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...z),this._logHandler(this,c.VERBOSE,...z)}info(...z){this._userLogHandler&&this._userLogHandler(this,c.INFO,...z),this._logHandler(this,c.INFO,...z)}warn(...z){this._userLogHandler&&this._userLogHandler(this,c.WARN,...z),this._logHandler(this,c.WARN,...z)}error(...z){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...z),this._logHandler(this,c.ERROR,...z)}}function le(N){r.forEach(z=>{z.setLogLevel(N)})}function K(N,z){for(const fe of r){let Ve=null;z&&z.level&&(Ve=R[z.level]),fe.userLogHandler=null===N?null:(je,Je,...Se)=>{const Ue=Se.map($e=>{if(null==$e)return null;if("string"==typeof $e)return $e;if("number"==typeof $e||"boolean"==typeof $e)return $e.toString();if($e instanceof Error)return $e.message;try{return JSON.stringify($e)}catch{return null}}).filter($e=>$e).join(" ");Je>=(Ve??je.logLevel)&&N({level:c[Je].toLowerCase(),message:Ue,args:Se,type:je.name})}}}},9717:(It,Fe,g)=>{g.d(Fe,{A0:()=>_t,w9:()=>re});var r=g(5879),c=g(95),R=g(9773),te=g(9028),Z=g(7921),J=g(9397),q=g(3620),le=g(2181),K=g(7398),N=g(927),z=g(6410),fe=g(8645),Ve=g(2438),je=g(3019),Je=g(6814);const Se=["content"],Ue=["scroll"],$e=["padding"],Ke=function(W){return{searchTerm:W}};function lt(W,se){if(1&W&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&W){const E=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",E.headerTemplate)("ngTemplateOutletContext",r.VKq(2,Ke,E.filterValue))}}function ee(W,se){if(1&W&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&W){const E=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",E.footerTemplate)("ngTemplateOutletContext",r.VKq(2,Ke,E.filterValue))}}const Ie=["*"],de=["searchInput"];function ve(W,se){if(1&W){const E=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(E);const B=r.oxw().$implicit,V=r.oxw(2);return r.KtG(V.unselect(B))}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&W){const E=r.oxw().$implicit,P=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",E.label)("escape",P.escapeHTML)}}function ze(W,se){}const Te=function(W,se,E){return{item:W,clear:se,label:E}};function ct(W,se){if(1&W&&(r.TgZ(0,"div",12),r.YNc(1,ve,3,2,"ng-template",null,13,r.W1O),r.YNc(3,ze,0,0,"ng-template",14),r.qZA()),2&W){const E=se.$implicit,P=r.MAs(2),B=r.oxw(2);r.ekj("ng-value-disabled",E.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",B.labelTemplate||P)("ngTemplateOutletContext",r.kEZ(4,Te,E.value,B.clearItem,E.label))}}function Et(W,se){if(1&W&&(r.ynx(0),r.YNc(1,ct,4,8,"div",11),r.BQk()),2&W){const E=r.oxw();r.xp6(1),r.Q6J("ngForOf",E.selectedItems)("ngForTrackBy",E.trackByOption)}}function Bt(W,se){}const Jt=function(W,se){return{items:W,clear:se}};function un(W,se){if(1&W&&r.YNc(0,Bt,0,0,"ng-template",14),2&W){const E=r.oxw();r.Q6J("ngTemplateOutlet",E.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,Jt,E.selectedValues,E.clearItem))}}function on(W,se){1&W&&r._UZ(0,"div",19)}function mn(W,se){}function Nn(W,se){if(1&W&&(r.ynx(0),r.YNc(1,on,1,0,"ng-template",null,17,r.W1O),r.YNc(3,mn,0,0,"ng-template",18),r.BQk()),2&W){const E=r.MAs(2),P=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",P.loadingSpinnerTemplate||E)}}function Yn(W,se){if(1&W&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&W){const E=r.oxw();r.s9C("title",E.clearAllText)}}function Xe(W,se){if(1&W&&r._UZ(0,"span",27),2&W){const E=r.oxw().$implicit,P=r.oxw(2);r.Q6J("ngItemLabel",E.label)("escape",P.escapeHTML)}}function ot(W,se){}const ht=function(W,se,E,P){return{item:W,item$:se,index:E,searchTerm:P}};function ae(W,se){if(1&W){const E=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const V=r.CHM(E).$implicit,k=r.oxw(2);return r.KtG(k.toggleItem(V))})("mouseover",function(){const V=r.CHM(E).$implicit,k=r.oxw(2);return r.KtG(k.onItemHover(V))}),r.YNc(1,Xe,1,2,"ng-template",null,26,r.W1O),r.YNc(3,ot,0,0,"ng-template",14),r.qZA()}if(2&W){const E=se.$implicit,P=r.MAs(2),B=r.oxw(2);r.ekj("ng-option-disabled",E.disabled)("ng-option-selected",E.selected)("ng-optgroup",E.children)("ng-option",!E.children)("ng-option-child",!!E.parent)("ng-option-marked",E===B.itemsList.markedItem),r.uIk("role",E.children?"group":"option")("aria-selected",E.selected)("id",null==E?null:E.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",E.children?B.optgroupTemplate||P:B.optionTemplate||P)("ngTemplateOutletContext",r.l5B(17,ht,E.value,E,E.index,B.searchTerm))}}function Pe(W,se){if(1&W&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&W){const E=r.oxw(3);r.xp6(2),r.Oqu(E.addTagText),r.xp6(1),r.hij('"',E.searchTerm,'"')}}function F(W,se){}function oe(W,se){if(1&W){const E=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){r.CHM(E);const B=r.oxw(2);return r.KtG(B.itemsList.unmarkItem())})("click",function(){r.CHM(E);const B=r.oxw(2);return r.KtG(B.selectTag())}),r.YNc(1,Pe,4,2,"ng-template",null,29,r.W1O),r.YNc(3,F,0,0,"ng-template",14),r.qZA()}if(2&W){const E=r.MAs(2),P=r.oxw(2);r.ekj("ng-option-marked",!P.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",P.tagTemplate||E)("ngTemplateOutletContext",r.VKq(4,Ke,P.searchTerm))}}function _e(W,se){if(1&W&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&W){const E=r.oxw(3);r.xp6(1),r.Oqu(E.notFoundText)}}function vt(W,se){}function At(W,se){if(1&W&&(r.ynx(0),r.YNc(1,_e,2,1,"ng-template",null,31,r.W1O),r.YNc(3,vt,0,0,"ng-template",14),r.BQk()),2&W){const E=r.MAs(2),P=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",P.notFoundTemplate||E)("ngTemplateOutletContext",r.VKq(2,Ke,P.searchTerm))}}function Ht(W,se){if(1&W&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&W){const E=r.oxw(3);r.xp6(1),r.Oqu(E.typeToSearchText)}}function Nt(W,se){}function sn(W,se){if(1&W&&(r.ynx(0),r.YNc(1,Ht,2,1,"ng-template",null,33,r.W1O),r.YNc(3,Nt,0,0,"ng-template",18),r.BQk()),2&W){const E=r.MAs(2),P=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",P.typeToSearchTemplate||E)}}function dn(W,se){if(1&W&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&W){const E=r.oxw(3);r.xp6(1),r.Oqu(E.loadingText)}}function Cn(W,se){}function nn(W,se){if(1&W&&(r.ynx(0),r.YNc(1,dn,2,1,"ng-template",null,34,r.W1O),r.YNc(3,Cn,0,0,"ng-template",14),r.BQk()),2&W){const E=r.MAs(2),P=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",P.loadingTextTemplate||E)("ngTemplateOutletContext",r.VKq(2,Ke,P.searchTerm))}}function In(W,se){if(1&W){const E=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(B){r.CHM(E);const V=r.oxw();return r.KtG(V.viewPortItems=B)})("scroll",function(B){r.CHM(E);const V=r.oxw();return r.KtG(V.scroll.emit(B))})("scrollToEnd",function(B){r.CHM(E);const V=r.oxw();return r.KtG(V.scrollToEnd.emit(B))})("outsideClick",function(){r.CHM(E);const B=r.oxw();return r.KtG(B.close())}),r.ynx(1),r.YNc(2,ae,4,22,"div",23),r.YNc(3,oe,4,6,"div",24),r.BQk(),r.YNc(4,At,4,4,"ng-container",3),r.YNc(5,sn,4,1,"ng-container",3),r.YNc(6,nn,4,4,"ng-container",3),r.qZA()}if(2&W){const E=r.oxw();r.ekj("ng-select-multiple",E.multiple),r.Q6J("virtualScroll",E.virtualScroll)("bufferAmount",E.bufferAmount)("appendTo",E.appendTo)("position",E.dropdownPosition)("headerTemplate",E.headerTemplate)("footerTemplate",E.footerTemplate)("filterValue",E.searchTerm)("items",E.itemsList.filteredItems)("markedItem",E.itemsList.markedItem)("ngClass",E.appendTo?E.classes:null)("id",E.dropdownId),r.xp6(2),r.Q6J("ngForOf",E.viewPortItems)("ngForTrackBy",E.trackByOption),r.xp6(1),r.Q6J("ngIf",E.showAddTag),r.xp6(1),r.Q6J("ngIf",E.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",E.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",E.loading&&0===E.itemsList.filteredItems.length)}}const Wn=/[&<>"']/g,pt=RegExp(Wn.source),$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ke(W){return null!=W}function ut(W){return"object"==typeof W&&ke(W)}function mt(W){return W instanceof Function}let xt=(()=>{class W{constructor(E){this.element=E,this.escape=!0}ngOnChanges(E){this.element.nativeElement.innerHTML=this.escape?function be(W){return W&&pt.test(W)?W.replace(Wn,se=>$[se]):W}(this.ngItemLabel):this.ngItemLabel}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.SBq))},W.\u0275dir=r.lG2({type:W,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),W})(),Zt=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-option-tmp",""]]}),W})(),$t=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-optgroup-tmp",""]]}),W})(),qe=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-label-tmp",""]]}),W})(),dt=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-multi-label-tmp",""]]}),W})(),Re=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-header-tmp",""]]}),W})(),st=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-footer-tmp",""]]}),W})(),yt=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-notfound-tmp",""]]}),W})(),Yt=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-typetosearch-tmp",""]]}),W})(),Gt=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-loadingtext-tmp",""]]}),W})(),tn=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-tag-tmp",""]]}),W})(),En=(()=>{class W{constructor(E){this.template=E}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Rgc))},W.\u0275dir=r.lG2({type:W,selectors:[["","ng-loadingspinner-tmp",""]]}),W})();function jn(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Vn={"\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 Mn(W){return W.replace(/[^\u0000-\u007E]/g,E=>Vn[E]||E)}class Ge{constructor(se,E){this._ngSelect=se,this._selectionModel=E,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 se=this.selectedItems.length-1;for(;se>=0;se--){const E=this.selectedItems[se];if(!E.disabled)return E}return null}setItems(se){this._items=se.map((E,P)=>this.mapItem(E,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(se){if(se.selected||this.maxItemsSelected)return;const E=this._ngSelect.multiple;E||this.clearSelected(),this._selectionModel.select(se,E,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(se)}unselect(se){se.selected&&(this._selectionModel.unselect(se,this._ngSelect.multiple),this._ngSelect.hideSelected&&ke(se.index)&&this._ngSelect.multiple&&this._showSelected(se))}findItem(se){let E;return E=this._ngSelect.compareWith?P=>this._ngSelect.compareWith(P.value,se):this._ngSelect.bindValue?P=>!P.children&&this.resolveNested(P.value,this._ngSelect.bindValue)===se:P=>P.value===se||!P.children&&P.label&&P.label===this.resolveNested(se,this._ngSelect.bindLabel),this._items.find(P=>E(P))}addItem(se){const E=this.mapItem(se,this._items.length);return this._items.push(E),this._filteredItems.push(E),E}clearSelected(se=!1){this._selectionModel.clear(se),this._items.forEach(E=>{E.selected=se&&E.selected&&E.disabled,E.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(se){return se=Mn(se).toLocaleLowerCase(),this.filteredItems.find(E=>Mn(E.label).toLocaleLowerCase().substr(0,se.length)===se)}filter(se){if(!se)return void this.resetFilteredItems();this._filteredItems=[],se=this._ngSelect.searchFn?se:Mn(se).toLocaleLowerCase();const E=this._ngSelect.searchFn||this._defaultSearchFn,P=this._ngSelect.hideSelected;for(const B of Array.from(this._groups.keys())){const V=[];for(const k of this._groups.get(B))P&&(k.parent&&k.parent.selected||k.selected)||E(se,this._ngSelect.searchFn?k.value:k)&&V.push(k);if(V.length>0){const[k]=V.slice(-1);if(k.parent){const L=this._items.find(Ae=>Ae===k.parent);this._filteredItems.push(L)}this._filteredItems.push(...V)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(se=>!se.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(se){this._markedIndex=this._filteredItems.indexOf(se)}markSelectedOrDefault(se){if(0===this._filteredItems.length)return;const E=this._getLastMarkedIndex();this._markedIndex=E>-1?E:se?this.filteredItems.findIndex(P=>!P.disabled):-1}resolveNested(se,E){if(!ut(se))return se;if(-1===E.indexOf("."))return se[E];{const P=E.split(".");let B=se;for(let V=0,k=P.length;V<k;++V){if(null==B)return null;B=B[P[V]]}return B}}mapItem(se,E){const P=ke(se.$ngOptionLabel)?se.$ngOptionLabel:this.resolveNested(se,this._ngSelect.bindLabel),B=ke(se.$ngOptionValue)?se.$ngOptionValue:se;return{index:E,label:ke(P)?P.toString():"",value:B,disabled:se.disabled,htmlId:`${this._ngSelect.dropdownId}-${E}`}}mapSelectedItems(){const se=this._ngSelect.multiple;for(const E of this.selectedItems){const P=this._ngSelect.bindValue?this.resolveNested(E.value,this._ngSelect.bindValue):E.value,B=ke(P)?this.findItem(P):null;this._selectionModel.unselect(E,se),this._selectionModel.select(B||E,se,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(E=>-1===this.selectedItems.indexOf(E)))}_showSelected(se){if(this._filteredItems.push(se),se.parent){const E=se.parent;this._filteredItems.find(B=>B===E)||this._filteredItems.push(E)}else if(se.children)for(const E of se.children)E.selected=!1,this._filteredItems.push(E);this._filteredItems=[...this._filteredItems.sort((E,P)=>E.index-P.index)]}_hideSelected(se){this._filteredItems=this._filteredItems.filter(E=>E!==se),se.parent?se.parent.children.every(P=>P.selected)&&(this._filteredItems=this._filteredItems.filter(P=>P!==se.parent)):se.children&&(this._filteredItems=this.filteredItems.filter(E=>E.parent!==se))}_defaultSearchFn(se,E){return Mn(E.label).toLocaleLowerCase().indexOf(se)>-1}_getNextItemIndex(se){return se>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(se){0===this._filteredItems.length||this._filteredItems.every(E=>E.disabled)||(this._markedIndex=this._getNextItemIndex(se),this.markedItem.disabled&&this._stepToItem(se))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const se=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&se<0?-1:Math.max(this.markedIndex,se)}_groupBy(se,E){const P=new Map;if(0===se.length)return P;if(Array.isArray(se[0].value[E])){for(const k of se){const L=(k.value[E]||[]).map((Ae,Le)=>this.mapItem(Ae,Le));P.set(k,L)}return P}const B=mt(this._ngSelect.groupBy),V=k=>{const L=B?E(k.value):k.value[E];return ke(L)?L:void 0};for(const k of se){const L=V(k),Ae=P.get(L);Ae?Ae.push(k):P.set(L,[k])}return P}_flatten(se){const E=mt(this._ngSelect.groupBy),P=[];for(const B of Array.from(se.keys())){let V=P.length;if(void 0===B){const Dt=se.get(void 0)||[];P.push(...Dt.map(Qe=>(Qe.index=V++,Qe)));continue}const k=ut(B),L={label:k?"":String(B),children:void 0,parent:null,index:V++,disabled:!this._ngSelect.selectableGroup,htmlId:jn()},Ae=E?this._ngSelect.bindLabel:this._ngSelect.groupBy,Le=this._ngSelect.groupValue||(()=>k?B.value:{[Ae]:B}),Ct=se.get(B).map(Dt=>(Dt.parent=L,Dt.children=void 0,Dt.index=V++,Dt));L.children=Ct,L.value=Le(B,Ct.map(Dt=>Dt.value)),P.push(L),P.push(...Ct)}return P}}var ie=function(W){return W[W.Tab=9]="Tab",W[W.Enter=13]="Enter",W[W.Esc=27]="Esc",W[W.Space=32]="Space",W[W.ArrowUp=38]="ArrowUp",W[W.ArrowDown=40]="ArrowDown",W[W.Backspace=8]="Backspace",W}(ie||{});let ce=(()=>{class W{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(E,P,B){const V=this._dimensions,k=V.itemHeight*P,Ae=Math.max(0,E)/k*P;let Le=Math.min(P,Math.ceil(Ae)+(V.itemsPerViewport+1));const Dt=Math.max(0,Le-V.itemsPerViewport);let Qe=Math.min(Dt,Math.floor(Ae)),tt=V.itemHeight*Math.ceil(Qe)-V.itemHeight*Math.min(Qe,B);return tt=isNaN(tt)?0:tt,Qe=isNaN(Qe)?-1:Qe,Le=isNaN(Le)?-1:Le,Qe-=B,Qe=Math.max(0,Qe),Le+=B,Le=Math.min(P,Le),{topPadding:tt,scrollHeight:k,start:Qe,end:Le}}setDimensions(E,P){const B=Math.max(1,Math.floor(P/E));this._dimensions={itemHeight:E,panelHeight:P,itemsPerViewport:B}}getScrollTo(E,P,B){const{panelHeight:V}=this.dimensions,k=E+P,Ae=B+V;return V>=k&&B===E?null:k>Ae?B+k-Ae:E<=B?E:null}}return W.\u0275fac=function(E){return new(E||W)},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac}),W})();const We=["top","right","bottom","left"],St=typeof requestAnimationFrame<"u"?N.Z:z.E;let Kt=(()=>{class W{constructor(E,P,B,V,k){this._renderer=E,this._zone=P,this._panelService=B,this._document=k,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 fe.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=V.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(E){E!==this._itemsLength&&(this._itemsLength=E,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:E,panelHeight:P}=this._panelService.dimensions,B=this.markedItem.index*E;return P>B?0:B}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(E){if(E.items){const P=E.items;this._onItemsChange(P.currentValue,P.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(E,P=!1){if(!E)return;const B=this.items.indexOf(E);if(B<0||B>=this.itemsLength)return;let V;if(this.virtualScroll){const k=this._panelService.dimensions.itemHeight;V=this._panelService.getScrollTo(B*k,k,this._lastScrollPosition)}else{const k=this._dropdown.querySelector(`#${E.htmlId}`);V=this._panelService.getScrollTo(k.offsetTop,k.clientHeight,P?k.offsetTop:this._lastScrollPosition)}ke(V)&&(this._scrollablePanel.scrollTop=V)}scrollToTag(){const E=this._scrollablePanel;E.scrollTop=E.scrollHeight-E.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),We.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(E){We.forEach(B=>{const V=`ng-select-${B}`;this._renderer.removeClass(this._dropdown,V),this._renderer.removeClass(this._select,V)});const P=`ng-select-${E}`;this._renderer.addClass(this._dropdown,P),this._renderer.addClass(this._select,P)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,Ve.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,R.R)(this._destroy$),(0,te.e)(0,St)).subscribe(E=>{const P=E.path||E.composedPath&&E.composedPath();this._onContentScrolled(P&&0!==P.length?P[0].scrollTop:E.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,je.T)((0,Ve.R)(this._document,"touchstart",{capture:!0}),(0,Ve.R)(this._document,"mousedown",{capture:!0})).pipe((0,R.R)(this._destroy$)).subscribe(E=>this._checkToClose(E))})}_checkToClose(E){if(this._select.contains(E.target)||this._dropdown.contains(E.target))return;const P=E.path||E.composedPath&&E.composedPath();E.target&&E.target.shadowRoot&&P&&P[0]&&this._select.contains(P[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(E,P){this.items=E||[],this._scrollToEndFired=!1,this.itemsLength=E.length,this.virtualScroll?this._updateItemsRange(P):(this._setVirtualHeight(),this._updateItems(P))}_updateItems(E){this.update.emit(this.items),!1!==E&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,E)})})}_updateItemsRange(E){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{E?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(E){this.virtualScroll&&this._renderItemsRange(E),this._lastScrollPosition=E,this._fireScrollToEnd(E)}_updateVirtualHeight(E){this._updateScrollHeight&&(this._virtualPadding.style.height=`${E}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(E=null){if(E&&this._lastScrollPosition===E)return;const P=this._panelService.calculateItems(E=E||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(P.scrollHeight),this._contentPanel.style.transform=`translateY(${P.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(P.start,P.end)),this.scroll.emit({start:P.start,end:P.end})}),ke(E)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=E,this._lastScrollPosition=E)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[E]=this.items;return this.update.emit([E]),Promise.resolve().then(()=>{const B=this._dropdown.querySelector(`#${E.htmlId}`).clientHeight;return this._virtualPadding.style.height=B*this.itemsLength+"px",this._panelService.setDimensions(B,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(E){this._scrollToEndFired||0===E||E+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(E){if("auto"!==this.position)return this.position;const P=this._select.getBoundingClientRect(),B=document.documentElement.scrollTop||document.body.scrollTop;return P.top+window.pageYOffset+P.height+E.getBoundingClientRect().height>B+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 E=this._select.getBoundingClientRect(),P=this._parent.getBoundingClientRect();this._dropdown.style.left=E.left-P.left+"px",this._dropdown.style.width=E.width+"px",this._dropdown.style.minWidth=E.width+"px"}_updateYPosition(){const E=this._select.getBoundingClientRect(),P=this._parent.getBoundingClientRect(),B=E.height;"top"===this._currentPosition?(this._dropdown.style.bottom=P.bottom-E.bottom+B+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=E.top-P.top+B+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,Ve.R)(this._dropdown,"mousedown").pipe((0,R.R)(this._destroy$)).subscribe(E=>{"INPUT"!==E.target.tagName&&E.preventDefault()})})}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(ce),r.Y36(r.SBq),r.Y36(Je.K0,8))},W.\u0275cmp=r.Xpm({type:W,selectors:[["ng-dropdown-panel"]],viewQuery:function(E,P){if(1&E&&(r.Gf(Se,7,r.SBq),r.Gf(Ue,7,r.SBq),r.Gf($e,7,r.SBq)),2&E){let B;r.iGM(B=r.CRH())&&(P.contentElementRef=B.first),r.iGM(B=r.CRH())&&(P.scrollElementRef=B.first),r.iGM(B=r.CRH())&&(P.paddingElementRef=B.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:Ie,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(E,P){1&E&&(r.F$t(),r.YNc(0,lt,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,ee,2,4,"div",5)),2&E&&(r.Q6J("ngIf",P.headerTemplate),r.xp6(3),r.ekj("total-padding",P.virtualScroll),r.xp6(2),r.ekj("scrollable-content",P.virtualScroll&&P.items.length),r.xp6(3),r.Q6J("ngIf",P.footerTemplate))},dependencies:[Je.O5,Je.tP],encapsulation:2,changeDetection:0}),W})(),Ee=(()=>{class W{constructor(E){this.elementRef=E,this.stateChange$=new fe.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(E){this._disabled=this._isDisabled(E)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(E){E.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(E){return null!=E&&"false"!=`${E}`}}return W.\u0275fac=function(E){return new(E||W)(r.Y36(r.SBq))},W.\u0275cmp=r.Xpm({type:W,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:Ie,decls:1,vars:0,template:function(E,P){1&E&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),W})(),ye=(()=>{class W{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 W.\u0275fac=function(E){return new(E||W)},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),G=(()=>{class W{warn(E){console.warn(E)}}return W.\u0275fac=function(E){return new(E||W)},W.\u0275prov=r.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();const X=new r.OlP("ng-select-selection-model");let re=(()=>{class W{constructor(E,P,B,V,k,L,Ae){this.classes=E,this.autoFocus=P,this.config=B,this._cd=L,this._console=Ae,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=Le=>!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=jn(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new fe.x,this._keyPress$=new fe.x,this._onChange=Le=>{},this._onTouched=()=>{},this.clearItem=Le=>{const Ct=this.selectedItems.find(Dt=>Dt.value===Le);this.unselect(Ct)},this.trackByOption=(Le,Ct)=>this.trackByFn?this.trackByFn(Ct.value):Ct,this._mergeGlobalConfig(B),this.itemsList=new Ge(this,V()),this.element=k.nativeElement}get items(){return this._items}set items(E){null===E&&(E=[]),this._itemsAreUsed=!0,this._items=E}get compareWith(){return this._compareWith}set compareWith(E){if(null!=E&&!mt(E))throw Error("`compareWith` must be a function.");this._compareWith=E}get clearSearchOnAdd(){return ke(this._clearSearchOnAdd)?this._clearSearchOnAdd:ke(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(E){this._clearSearchOnAdd=E}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(E=>E.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(E){E.multiple&&this.itemsList.clearSelected(),E.items&&this._setItems(E.items.currentValue||[]),E.isOpen&&(this._manualOpen=ke(E.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ke(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(E){if(ie[E.which]){if(!1===this.keyDownFn(E))return;this.handleKeyCode(E)}else E.key&&1===E.key.length&&this._keyPress$.next(E.key.toLocaleLowerCase())}handleKeyCode(E){switch(E.which){case ie.ArrowDown:this._handleArrowDown(E);break;case ie.ArrowUp:this._handleArrowUp(E);break;case ie.Space:this._handleSpace(E);break;case ie.Enter:this._handleEnter(E);break;case ie.Tab:this._handleTab(E);break;case ie.Esc:this.close(),E.preventDefault();break;case ie.Backspace:this._handleBackspace()}}handleMousedown(E){const P=E.target;"INPUT"!==P.tagName&&E.preventDefault(),P.classList.contains("ng-clear-wrapper")?this.handleClearClick():P.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():P.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(E){this.itemsList.clearSelected(),this._handleWriteValue(E),this._cd.markForCheck()}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this._disabled=E,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(E){!E||E.disabled||this.disabled||(this.multiple&&E.selected?this.unselect(E):this.select(E),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(E){E.selected||(this.itemsList.select(E),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(E.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(E){E&&(this.itemsList.unselect(E),this.focus(),this._updateNgModel(),this.removeEvent.emit(E))}selectTag(){let E;E=mt(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const P=B=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(B,null):this.itemsList.addItem(B);!function it(W){return W instanceof Promise}(E)?E&&this.select(P(E)):E.then(B=>this.select(P(B))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const E=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(P=>P.label.toLowerCase()===E)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(P=>P.label.toLowerCase()===E))&&!this.loading}showNoItemsFound(){const E=0===this.itemsList.filteredItems.length;return(E&&!this._isTypeahead&&!this.loading||E&&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(E){this._isComposing=!1,!this.searchWhileComposing&&this.filter(E)}filter(E){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=E,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(E),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:E,items:this.itemsList.filteredItems.map(P=>P.value)}),this.open())}onInputFocus(E){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(E),this.focused=!0)}onInputBlur(E){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(E),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(E){E.disabled||this.itemsList.markItem(E)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const E=this.selectedItems&&this.selectedItems[0];this.searchTerm=E&&E.label||null}_setItems(E){const P=E[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ke(P)?!ut(P):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(E),E.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ke(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const E=B=>{this.items=B.map(V=>({$ngOptionValue:V.value,$ngOptionLabel:V.elementRef.nativeElement.innerHTML,disabled:V.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},P=()=>{const B=(0,je.T)(this.ngOptions.changes,this._destroy$);(0,je.T)(...this.ngOptions.map(V=>V.stateChange$)).pipe((0,R.R)(B)).subscribe(V=>{const k=this.itemsList.findItem(V.value);k.disabled=V.disabled,k.label=V.label||k.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,Z.O)(this.ngOptions),(0,R.R)(this._destroy$)).subscribe(B=>{this.bindLabel=this._defaultLabel,E(B),P()})}_isValidWriteValue(E){if(!ke(E)||this.multiple&&""===E||Array.isArray(E)&&0===E.length)return!1;const P=B=>!(!ke(this.compareWith)&&ut(B)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(B)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(E)?E.every(B=>P(B)):(this._console.warn("Multiple select ngModel should be array."),!1):P(E)}_handleWriteValue(E){if(!this._isValidWriteValue(E))return;const P=B=>{let V=this.itemsList.findItem(B);if(V)this.itemsList.select(V);else{const k=ut(B);k||!k&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(B,null)):this.bindValue&&(V={[this.bindLabel]:null,[this.bindValue]:B},this.itemsList.select(this.itemsList.mapItem(V,null)))}};this.multiple?E.forEach(B=>P(B)):P(E)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,R.R)(this._destroy$),(0,J.b)(E=>this._pressedKeys.push(E)),(0,q.b)(200),(0,le.h)(()=>this._pressedKeys.length>0),(0,K.U)(()=>this._pressedKeys.join(""))).subscribe(E=>{const P=this.itemsList.findByLabel(E);P&&(this.isOpen?(this.itemsList.markItem(P),this._scrollToMarked(),this._cd.markForCheck()):this.select(P)),this._pressedKeys=[]})}_setInputAttributes(){const E=this.searchInput.nativeElement,P={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const B of Object.keys(P))E.setAttribute(B,P[B])}_updateNgModel(){const E=[];for(const B of this.selectedItems)if(this.bindValue){let V=null;V=B.children?B.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(B.value,this.bindValue),E.push(V)}else E.push(B.value);const P=this.selectedItems.map(B=>B.value);this.multiple?(this._onChange(E),this.changeEvent.emit(P)):(this._onChange(ke(E[0])?E[0]:null),this.changeEvent.emit(P[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(E){this.searchTerm=E,this._isTypeahead&&this.typeahead.next(E)}_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(E){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),E.preventDefault()):this.showAddTag?(this.selectTag(),E.preventDefault()):this.close():this.close())}_handleEnter(E){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}E.preventDefault()}_handleSpace(E){this.isOpen||this._manualOpen||(this.open(),E.preventDefault())}_handleArrowDown(E){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),E.preventDefault()}_handleArrowUp(E){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),E.preventDefault())}_nextItemIsTag(E){const P=this.itemsList.markedIndex+E;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(P<0||P===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 E=this.searchTerm&&this.searchTerm.trim();return E&&E.length>=this.minTermLength}_mergeGlobalConfig(E){this.placeholder=this.placeholder||E.placeholder,this.notFoundText=this.notFoundText||E.notFoundText,this.typeToSearchText=this.typeToSearchText||E.typeToSearchText,this.addTagText=this.addTagText||E.addTagText,this.loadingText=this.loadingText||E.loadingText,this.clearAllText=this.clearAllText||E.clearAllText,this.virtualScroll=ke(this.virtualScroll)?this.virtualScroll:!!ke(E.disableVirtualScroll)&&!E.disableVirtualScroll,this.openOnEnter=ke(this.openOnEnter)?this.openOnEnter:E.openOnEnter,this.appendTo=this.appendTo||E.appendTo,this.bindValue=this.bindValue||E.bindValue,this.bindLabel=this.bindLabel||E.bindLabel,this.appearance=this.appearance||E.appearance}}return W.\u0275fac=function(E){return new(E||W)(r.$8M("class"),r.$8M("autofocus"),r.Y36(ye),r.Y36(X),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(G))},W.\u0275cmp=r.Xpm({type:W,selectors:[["ng-select"]],contentQueries:function(E,P,B){if(1&E&&(r.Suo(B,Zt,5,r.Rgc),r.Suo(B,$t,5,r.Rgc),r.Suo(B,qe,5,r.Rgc),r.Suo(B,dt,5,r.Rgc),r.Suo(B,Re,5,r.Rgc),r.Suo(B,st,5,r.Rgc),r.Suo(B,yt,5,r.Rgc),r.Suo(B,Yt,5,r.Rgc),r.Suo(B,Gt,5,r.Rgc),r.Suo(B,tn,5,r.Rgc),r.Suo(B,En,5,r.Rgc),r.Suo(B,Ee,5)),2&E){let V;r.iGM(V=r.CRH())&&(P.optionTemplate=V.first),r.iGM(V=r.CRH())&&(P.optgroupTemplate=V.first),r.iGM(V=r.CRH())&&(P.labelTemplate=V.first),r.iGM(V=r.CRH())&&(P.multiLabelTemplate=V.first),r.iGM(V=r.CRH())&&(P.headerTemplate=V.first),r.iGM(V=r.CRH())&&(P.footerTemplate=V.first),r.iGM(V=r.CRH())&&(P.notFoundTemplate=V.first),r.iGM(V=r.CRH())&&(P.typeToSearchTemplate=V.first),r.iGM(V=r.CRH())&&(P.loadingTextTemplate=V.first),r.iGM(V=r.CRH())&&(P.tagTemplate=V.first),r.iGM(V=r.CRH())&&(P.loadingSpinnerTemplate=V.first),r.iGM(V=r.CRH())&&(P.ngOptions=V)}},viewQuery:function(E,P){if(1&E&&(r.Gf(Kt,5),r.Gf(de,7)),2&E){let B;r.iGM(B=r.CRH())&&(P.dropdownPanel=B.first),r.iGM(B=r.CRH())&&(P.searchInput=B.first)}},hostVars:20,hostBindings:function(E,P){1&E&&r.NdJ("keydown",function(V){return P.handleKeyDown(V)}),2&E&&r.ekj("ng-select-typeahead",P.typeahead)("ng-select-multiple",P.multiple)("ng-select-taggable",P.addTag)("ng-select-searchable",P.searchable)("ng-select-clearable",P.clearable)("ng-select-opened",P.isOpen)("ng-select",P.useDefaultClass)("ng-select-disabled",P.disabled)("ng-select-filtered",P.filtered)("ng-select-single",P.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)(()=>W),multi:!0},ce]),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(E,P){if(1&E){const B=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(k){return P.handleMousedown(k)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,Et,2,2,"ng-container",3),r.YNc(5,un,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(B);const k=r.MAs(8);return r.KtG(P.filter(k.value))})("compositionstart",function(){return P.onCompositionStart()})("compositionend",function(){r.CHM(B);const k=r.MAs(8);return r.KtG(P.onCompositionEnd(k.value))})("focus",function(k){return P.onInputFocus(k)})("blur",function(k){return P.onInputBlur(k)})("change",function(k){return k.stopPropagation()}),r.qZA()()(),r.YNc(9,Nn,4,1,"ng-container",3),r.YNc(10,Yn,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,In,7,19,"ng-dropdown-panel",10)}2&E&&(r.ekj("ng-appearance-outline","outline"===P.appearance)("ng-has-value",P.hasValue),r.xp6(3),r.Oqu(P.placeholder),r.xp6(1),r.Q6J("ngIf",(!P.multiLabelTemplate||!P.multiple)&&P.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",P.multiple&&P.multiLabelTemplate&&P.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",P.isOpen)("aria-owns",P.isOpen?P.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!P.searchable||P.itemsList.maxItemsSelected)("disabled",P.disabled)("value",P.searchTerm?P.searchTerm:""),r.uIk("id",P.labelForId)("tabindex",P.tabIndex)("aria-activedescendant",P.isOpen?null==P.itemsList||null==P.itemsList.markedItem?null:P.itemsList.markedItem.htmlId:null)("aria-controls",P.isOpen?P.dropdownId:null),r.xp6(2),r.Q6J("ngIf",P.loading),r.xp6(1),r.Q6J("ngIf",P.showClear()),r.xp6(3),r.Q6J("ngIf",P.isOpen))},dependencies:[Je.mk,Je.sg,Je.O5,Je.tP,Kt,xt],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}),W})();function ue(){return new Be}class Be{constructor(){this._selected=[]}get value(){return this._selected}select(se,E,P){if(se.selected=!0,(!se.children||!E&&P)&&this._selected.push(se),E)if(se.parent){const B=se.parent.children.length,V=se.parent.children.filter(k=>k.selected).length;se.parent.selected=B===V}else se.children&&(this._setChildrenSelectedState(se.children,!0),this._removeChildren(se),this._selected=P&&this._activeChildren(se)?[...this._selected.filter(B=>B.parent!==se),se]:[...this._selected,...se.children.filter(B=>!B.disabled)])}unselect(se,E){if(this._selected=this._selected.filter(P=>P!==se),se.selected=!1,E)if(se.parent&&se.parent.selected){const P=se.parent.children;this._removeParent(se.parent),this._removeChildren(se.parent),this._selected.push(...P.filter(B=>B!==se&&!B.disabled)),se.parent.selected=!1}else se.children&&(this._setChildrenSelectedState(se.children,!1),this._removeChildren(se))}clear(se){this._selected=se?this._selected.filter(E=>E.disabled):[]}_setChildrenSelectedState(se,E){for(const P of se)P.disabled||(P.selected=E)}_removeChildren(se){this._selected=[...this._selected.filter(E=>E.parent!==se),...se.children.filter(E=>E.parent===se&&E.disabled&&E.selected)]}_removeParent(se){this._selected=this._selected.filter(E=>E!==se)}_activeChildren(se){return se.children.every(E=>!E.disabled||E.selected)}}let _t=(()=>{class W{}return W.\u0275fac=function(E){return new(E||W)},W.\u0275mod=r.oAB({type:W}),W.\u0275inj=r.cJS({providers:[{provide:X,useValue:ue}],imports:[Je.ez]}),W})()},3182:(It,Fe,g)=>{g.d(Fe,{C6:()=>r.getApps,Mq:()=>r.getApp});var r=g(4303);(0,r.registerVersion)("firebase","9.17.1","app")},7142:(It,Fe,g)=>{g.d(Fe,{Z:()=>r.Z});var r=g(3106);r.Z.registerVersion("firebase","9.17.1","app-compat")},1878:(It,Fe,g)=>{g.d(Fe,{Lj:()=>ee,X3:()=>lt});var r=g(5861);const c=(Te,ct)=>ct.some(Et=>Te instanceof Et);let R,te;const q=new WeakMap,le=new WeakMap,K=new WeakMap,N=new WeakMap,z=new WeakMap;let je={get(Te,ct,Et){if(Te instanceof IDBTransaction){if("done"===ct)return le.get(Te);if("objectStoreNames"===ct)return Te.objectStoreNames||K.get(Te);if("store"===ct)return Et.objectStoreNames[1]?void 0:Et.objectStore(Et.objectStoreNames[0])}return $e(Te[ct])},set:(Te,ct,Et)=>(Te[ct]=Et,!0),has:(Te,ct)=>Te instanceof IDBTransaction&&("done"===ct||"store"===ct)||ct in Te};function Ue(Te){return"function"==typeof Te?function Se(Te){return Te!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function J(){return te||(te=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Te)?function(...ct){return Te.apply(Ke(this),ct),$e(q.get(this))}:function(...ct){return $e(Te.apply(Ke(this),ct))}:function(ct,...Et){const Bt=Te.call(Ke(this),ct,...Et);return K.set(Bt,ct.sort?ct.sort():[ct]),$e(Bt)}}(Te):(Te instanceof IDBTransaction&&function Ve(Te){if(le.has(Te))return;const ct=new Promise((Et,Bt)=>{const Jt=()=>{Te.removeEventListener("complete",un),Te.removeEventListener("error",on),Te.removeEventListener("abort",on)},un=()=>{Et(),Jt()},on=()=>{Bt(Te.error||new DOMException("AbortError","AbortError")),Jt()};Te.addEventListener("complete",un),Te.addEventListener("error",on),Te.addEventListener("abort",on)});le.set(Te,ct)}(Te),c(Te,function Z(){return R||(R=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Te,je):Te)}function $e(Te){if(Te instanceof IDBRequest)return function fe(Te){const ct=new Promise((Et,Bt)=>{const Jt=()=>{Te.removeEventListener("success",un),Te.removeEventListener("error",on)},un=()=>{Et($e(Te.result)),Jt()},on=()=>{Bt(Te.error),Jt()};Te.addEventListener("success",un),Te.addEventListener("error",on)});return ct.then(Et=>{Et instanceof IDBCursor&&q.set(Et,Te)}).catch(()=>{}),z.set(ct,Te),ct}(Te);if(N.has(Te))return N.get(Te);const ct=Ue(Te);return ct!==Te&&(N.set(Te,ct),z.set(ct,Te)),ct}const Ke=Te=>z.get(Te);function lt(Te,ct,{blocked:Et,upgrade:Bt,blocking:Jt,terminated:un}={}){const on=indexedDB.open(Te,ct),mn=$e(on);return Bt&&on.addEventListener("upgradeneeded",Nn=>{Bt($e(on.result),Nn.oldVersion,Nn.newVersion,$e(on.transaction))}),Et&&on.addEventListener("blocked",()=>Et()),mn.then(Nn=>{un&&Nn.addEventListener("close",()=>un()),Jt&&Nn.addEventListener("versionchange",()=>Jt())}).catch(()=>{}),mn}function ee(Te,{blocked:ct}={}){const Et=indexedDB.deleteDatabase(Te);return ct&&Et.addEventListener("blocked",()=>ct()),$e(Et).then(()=>{})}const Ie=["get","getKey","getAll","getAllKeys","count"],de=["put","add","delete","clear"],ve=new Map;function ze(Te,ct){if(!(Te instanceof IDBDatabase)||ct in Te||"string"!=typeof ct)return;if(ve.get(ct))return ve.get(ct);const Et=ct.replace(/FromIndex$/,""),Bt=ct!==Et,Jt=de.includes(Et);if(!(Et in(Bt?IDBIndex:IDBObjectStore).prototype)||!Jt&&!Ie.includes(Et))return;const un=function(){var on=(0,r.Z)(function*(mn,...Nn){const Yn=this.transaction(mn,Jt?"readwrite":"readonly");let Xe=Yn.store;return Bt&&(Xe=Xe.index(Nn.shift())),(yield Promise.all([Xe[Et](...Nn),Jt&&Yn.done]))[0]});return function(Nn){return on.apply(this,arguments)}}();return ve.set(ct,un),un}!function Je(Te){je=Te(je)}(Te=>({...Te,get:(ct,Et,Bt)=>ze(ct,Et)||Te.get(ct,Et,Bt),has:(ct,Et)=>!!ze(ct,Et)||Te.has(ct,Et)}))},8763:(It,Fe,g)=>{g.d(Fe,{FN:()=>on,PR:()=>ve,Rh:()=>Nn,_W:()=>un});var r=g(5879),c=g(6825),R=g(8645),te=g(6814),Z=g(6593);const J=["toast-component",""];function q(ae,Pe){if(1&ae){const F=r.EpF();r.TgZ(0,"button",5),r.NdJ("click",function(){r.CHM(F);const _e=r.oxw();return r.KtG(_e.remove())}),r.TgZ(1,"span",6),r._uU(2,"\xd7"),r.qZA()()}}function le(ae,Pe){if(1&ae&&(r.ynx(0),r._uU(1),r.BQk()),2&ae){const F=r.oxw(2);r.xp6(1),r.hij("[",F.duplicatesCount+1,"]")}}function K(ae,Pe){if(1&ae&&(r.TgZ(0,"div"),r._uU(1),r.YNc(2,le,2,1,"ng-container",4),r.qZA()),2&ae){const F=r.oxw();r.Tol(F.options.titleClass),r.uIk("aria-label",F.title),r.xp6(1),r.hij(" ",F.title," "),r.xp6(1),r.Q6J("ngIf",F.duplicatesCount)}}function N(ae,Pe){if(1&ae&&r._UZ(0,"div",7),2&ae){const F=r.oxw();r.Tol(F.options.messageClass),r.Q6J("innerHTML",F.message,r.oJD)}}function z(ae,Pe){if(1&ae&&(r.TgZ(0,"div",8),r._uU(1),r.qZA()),2&ae){const F=r.oxw();r.Tol(F.options.messageClass),r.uIk("aria-label",F.message),r.xp6(1),r.hij(" ",F.message," ")}}function fe(ae,Pe){if(1&ae&&(r.TgZ(0,"div"),r._UZ(1,"div",9),r.qZA()),2&ae){const F=r.oxw();r.xp6(1),r.Udp("width",F.width+"%")}}class ee{constructor(Pe,F){this.component=Pe,this.injector=F}attach(Pe,F){return this._attachedHost=Pe,Pe.attach(this,F)}detach(){const Pe=this._attachedHost;if(Pe)return this._attachedHost=void 0,Pe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Pe){this._attachedHost=Pe}}class Ie{attach(Pe,F){return this._attachedPortal=Pe,this.attachComponentPortal(Pe,F)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Pe){this._disposeFn=Pe}}class de{constructor(Pe){this._overlayRef=Pe,this.duplicatesCount=0,this._afterClosed=new R.x,this._activate=new R.x,this._manualClose=new R.x,this._resetTimeout=new R.x,this._countDuplicate=new R.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(Pe,F){Pe&&this._resetTimeout.next(),F&&this._countDuplicate.next(++this.duplicatesCount)}}class ve{constructor(Pe,F,oe,_e,vt,At){this.toastId=Pe,this.config=F,this.message=oe,this.title=_e,this.toastType=vt,this.toastRef=At,this._onTap=new R.x,this._onAction=new R.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(Pe){this._onAction.next(Pe)}onAction(){return this._onAction.asObservable()}}const Te=new r.OlP("ToastConfig");class ct extends Ie{constructor(Pe,F,oe){super(),this._hostDomElement=Pe,this._componentFactoryResolver=F,this._appRef=oe}attachComponentPortal(Pe,F){const oe=this._componentFactoryResolver.resolveComponentFactory(Pe.component);let _e;return _e=oe.create(Pe.injector),this._appRef.attachView(_e.hostView),this.setDisposeFn(()=>{this._appRef.detachView(_e.hostView),_e.destroy()}),F?this._hostDomElement.insertBefore(this._getComponentRootNode(_e),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(_e)),_e}_getComponentRootNode(Pe){return Pe.hostView.rootNodes[0]}}class Et{constructor(Pe){this._portalHost=Pe}attach(Pe,F=!0){return this._portalHost.attach(Pe,F)}detach(){return this._portalHost.detach()}}let Bt=(()=>{class ae{constructor(F){this._document=F}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const F=this._document.createElement("div");F.classList.add("overlay-container"),F.setAttribute("aria-live","polite"),this._document.body.appendChild(F),this._containerElement=F}}return ae.\u0275fac=function(F){return new(F||ae)(r.LFG(te.K0))},ae.\u0275prov=r.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Jt=(()=>{class ae{constructor(F,oe,_e,vt){this._overlayContainer=F,this._componentFactoryResolver=oe,this._appRef=_e,this._document=vt,this._paneElements=new Map}create(F,oe){return this._createOverlayRef(this.getPaneElement(F,oe))}getPaneElement(F="",oe){return this._paneElements.get(oe)||this._paneElements.set(oe,{}),this._paneElements.get(oe)[F]||(this._paneElements.get(oe)[F]=this._createPaneElement(F,oe)),this._paneElements.get(oe)[F]}_createPaneElement(F,oe){const _e=this._document.createElement("div");return _e.id="toast-container",_e.classList.add(F),_e.classList.add("toast-container"),oe?oe.getContainerElement().appendChild(_e):this._overlayContainer.getContainerElement().appendChild(_e),_e}_createPortalHost(F){return new ct(F,this._componentFactoryResolver,this._appRef)}_createOverlayRef(F){return new Et(this._createPortalHost(F))}}return ae.\u0275fac=function(F){return new(F||ae)(r.LFG(Bt),r.LFG(r._Vd),r.LFG(r.z2F),r.LFG(te.K0))},ae.\u0275prov=r.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),un=(()=>{class ae{constructor(F,oe,_e,vt,At){this.overlay=oe,this._injector=_e,this.sanitizer=vt,this.ngZone=At,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...F.default,...F.config},F.config.iconClasses&&(this.toastrConfig.iconClasses={...F.default.iconClasses,...F.config.iconClasses})}show(F,oe,_e={},vt=""){return this._preBuildNotification(vt,F,oe,this.applyConfig(_e))}success(F,oe,_e={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",F,oe,this.applyConfig(_e))}error(F,oe,_e={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",F,oe,this.applyConfig(_e))}info(F,oe,_e={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",F,oe,this.applyConfig(_e))}warning(F,oe,_e={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",F,oe,this.applyConfig(_e))}clear(F){for(const oe of this.toasts)if(void 0!==F){if(oe.toastId===F)return void oe.toastRef.manualClose()}else oe.toastRef.manualClose()}remove(F){const oe=this._findToast(F);if(!oe||(oe.activeToast.toastRef.close(),this.toasts.splice(oe.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 _e=this.toasts[this.currentlyActive].toastRef;_e.isInactive()||(this.currentlyActive=this.currentlyActive+1,_e.activate())}return!0}findDuplicate(F="",oe="",_e,vt){const{includeTitleDuplicates:At}=this.toastrConfig;for(const Ht of this.toasts)if((!At||At&&Ht.title===F)&&Ht.message===oe)return Ht.toastRef.onDuplicate(_e,vt),Ht;return null}applyConfig(F={}){return{...this.toastrConfig,...F}}_findToast(F){for(let oe=0;oe<this.toasts.length;oe++)if(this.toasts[oe].toastId===F)return{index:oe,activeToast:this.toasts[oe]};return null}_preBuildNotification(F,oe,_e,vt){return vt.onActivateTick?this.ngZone.run(()=>this._buildNotification(F,oe,_e,vt)):this._buildNotification(F,oe,_e,vt)}_buildNotification(F,oe,_e,vt){if(!vt.toastComponent)throw new Error("toastComponent required");const At=this.findDuplicate(_e,oe,this.toastrConfig.resetTimeoutOnDuplicate&&vt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&_e||oe)&&this.toastrConfig.preventDuplicates&&null!==At)return At;this.previousToastMessage=oe;let Ht=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Ht=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Nt=this.overlay.create(vt.positionClass,this.overlayContainer);this.index=this.index+1;let sn=oe;oe&&vt.enableHtml&&(sn=this.sanitizer.sanitize(r.q3G.HTML,oe));const dn=new de(Nt),Cn=new ve(this.index,vt,sn,_e,F,dn),In=r.zs3.create({providers:[{provide:ve,useValue:Cn}],parent:this._injector}),Wn=new ee(vt.toastComponent,In),pt=Nt.attach(Wn,vt.newestOnTop);dn.componentInstance=pt.instance;const $={toastId:this.index,title:_e||"",message:oe||"",toastRef:dn,onShown:dn.afterActivate(),onHidden:dn.afterClosed(),onTap:Cn.onTap(),onAction:Cn.onAction(),portal:pt};return Ht||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{$.toastRef.activate()})),this.toasts.push($),$}}return ae.\u0275fac=function(F){return new(F||ae)(r.LFG(Te),r.LFG(Jt),r.LFG(r.zs3),r.LFG(Z.H7),r.LFG(r.R0b))},ae.\u0275prov=r.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),on=(()=>{class ae{constructor(F,oe,_e){this.toastrService=F,this.toastPackage=oe,this.ngZone=_e,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=oe.message,this.title=oe.title,this.options=oe.config,this.originalTimeout=oe.config.timeOut,this.toastClasses=`${oe.toastType} ${oe.config.toastClass}`,this.sub=oe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=oe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=oe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=oe.toastRef.countDuplicate().subscribe(vt=>{this.duplicatesCount=vt})}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 F=(new Date).getTime();this.width=(this.hideTime-F)/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(F,oe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(F),oe)):this.timeout=setTimeout(()=>F(),oe)}outsideInterval(F,oe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(F),oe)):this.intervalId=setInterval(()=>F(),oe)}runInsideAngular(F){this.ngZone?this.ngZone.run(()=>F()):F()}}return ae.\u0275fac=function(F){return new(F||ae)(r.Y36(un),r.Y36(ve),r.Y36(r.R0b))},ae.\u0275cmp=r.Xpm({type:ae,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(F,oe){1&F&&r.NdJ("click",function(){return oe.tapToast()})("mouseenter",function(){return oe.stickAround()})("mouseleave",function(){return oe.delayedHideToast()}),2&F&&(r.d8E("@flyInOut",oe.state),r.Tol(oe.toastClasses),r.Udp("display",oe.displayStyle))},attrs:J,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(F,oe){1&F&&(r.YNc(0,q,3,0,"button",0),r.YNc(1,K,3,5,"div",1),r.YNc(2,N,1,3,"div",2),r.YNc(3,z,2,4,"div",3),r.YNc(4,fe,2,2,"div",4)),2&F&&(r.Q6J("ngIf",oe.options.closeButton),r.xp6(1),r.Q6J("ngIf",oe.title),r.xp6(1),r.Q6J("ngIf",oe.message&&oe.options.enableHtml),r.xp6(1),r.Q6J("ngIf",oe.message&&!oe.options.enableHtml),r.xp6(1),r.Q6J("ngIf",oe.options.progressBar))},dependencies:[te.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 }}"))])]}}),ae})();const mn={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:on};let Nn=(()=>{class ae{static forRoot(F={}){return{ngModule:ae,providers:[{provide:Te,useValue:{default:mn,config:F}}]}}}return ae.\u0275fac=function(F){return new(F||ae)},ae.\u0275mod=r.oAB({type:ae}),ae.\u0275inj=r.cJS({imports:[te.ez]}),ae})()},5861:(It,Fe,g)=>{function r(R,te,Z,J,q,le,K){try{var N=R[le](K),z=N.value}catch(fe){return void Z(fe)}N.done?te(z):Promise.resolve(z).then(J,q)}function c(R){return function(){var te=this,Z=arguments;return new Promise(function(J,q){var le=R.apply(te,Z);function K(z){r(le,J,q,K,N,"next",z)}function N(z){r(le,J,q,K,N,"throw",z)}K(void 0)})}}g.d(Fe,{Z:()=>c})},7582:(It,Fe,g)=>{function te(Xe,ot){var ht={};for(var ae in Xe)Object.prototype.hasOwnProperty.call(Xe,ae)&&ot.indexOf(ae)<0&&(ht[ae]=Xe[ae]);if(null!=Xe&&"function"==typeof Object.getOwnPropertySymbols){var Pe=0;for(ae=Object.getOwnPropertySymbols(Xe);Pe<ae.length;Pe++)ot.indexOf(ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Xe,ae[Pe])&&(ht[ae[Pe]]=Xe[ae[Pe]])}return ht}function fe(Xe,ot,ht,ae){return new(ht||(ht=Promise))(function(F,oe){function _e(Ht){try{At(ae.next(Ht))}catch(Nt){oe(Nt)}}function vt(Ht){try{At(ae.throw(Ht))}catch(Nt){oe(Nt)}}function At(Ht){Ht.done?F(Ht.value):function Pe(F){return F instanceof ht?F:new ht(function(oe){oe(F)})}(Ht.value).then(_e,vt)}At((ae=ae.apply(Xe,ot||[])).next())})}function ee(Xe){return this instanceof ee?(this.v=Xe,this):new ee(Xe)}function Ie(Xe,ot,ht){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pe,ae=ht.apply(Xe,ot||[]),F=[];return Pe={},oe("next"),oe("throw"),oe("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function oe(sn){ae[sn]&&(Pe[sn]=function(dn){return new Promise(function(Cn,nn){F.push([sn,dn,Cn,nn])>1||_e(sn,dn)})})}function _e(sn,dn){try{!function vt(sn){sn.value instanceof ee?Promise.resolve(sn.value.v).then(At,Ht):Nt(F[0][2],sn)}(ae[sn](dn))}catch(Cn){Nt(F[0][3],Cn)}}function At(sn){_e("next",sn)}function Ht(sn){_e("throw",sn)}function Nt(sn,dn){sn(dn),F.shift(),F.length&&_e(F[0][0],F[0][1])}}function ve(Xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ht,ot=Xe[Symbol.asyncIterator];return ot?ot.call(Xe):(Xe=function Se(Xe){var ot="function"==typeof Symbol&&Symbol.iterator,ht=ot&&Xe[ot],ae=0;if(ht)return ht.call(Xe);if(Xe&&"number"==typeof Xe.length)return{next:function(){return Xe&&ae>=Xe.length&&(Xe=void 0),{value:Xe&&Xe[ae++],done:!Xe}}};throw new TypeError(ot?"Object is not iterable.":"Symbol.iterator is not defined.")}(Xe),ht={},ae("next"),ae("throw"),ae("return"),ht[Symbol.asyncIterator]=function(){return this},ht);function ae(F){ht[F]=Xe[F]&&function(oe){return new Promise(function(_e,vt){!function Pe(F,oe,_e,vt){Promise.resolve(vt).then(function(At){F({value:At,done:_e})},oe)}(_e,vt,(oe=Xe[F](oe)).done,oe.value)})}}}g.d(Fe,{FC:()=>Ie,KL:()=>ve,_T:()=>te,mG:()=>fe,qq:()=>ee}),"function"==typeof SuppressedError&&SuppressedError}},It=>{It(It.s=9126)}]);