dealpostools 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tools/574.1c19346387b8519f.js +1 -0
- package/tools/696.132f96b645ff773d.js +1 -0
- package/tools/818.e84d0f0fa59d6451.js +1 -0
- package/tools/index.html +2 -2
- package/tools/{main.1b0b9ea2a30de05a.js → main.cc96db47aa78be31.js} +1 -1
- package/tools/runtime.bcd34bab5e4a7057.js +1 -0
- package/tools/696.248cbc0225ea9cd3.js +0 -1
- package/tools/818.1fcb1e8d81b767fa.js +0 -1
- package/tools/runtime.18627d895e98fe5b.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[179],{6304:(wt,Pe,C)=>{C.d(Pe,{Dh:()=>ue,GT:()=>W,cc:()=>He,hO:()=>Ve,on:()=>V,pX:()=>Y,xv:()=>ie});var o=C(5879),l=C(7142),R=C(8186);wt=C.hmd(wt);const K=["ngOnDestroy"],Y=(Ye,ut,Ne,q={})=>new Proxy(Ye,{get:(me,ve)=>Ne.runOutsideAngular(()=>{var ye;if(Ye[ve])return!(null===(ye=q?.spy)||void 0===ye)&&ye.get&&q.spy.get(ve,Ye[ve]),Ye[ve];if(K.indexOf(ve)>-1)return()=>{};const rt=ut.toPromise().then(Qe=>{const ft=Qe&&Qe[ve];return"function"==typeof ft?ft.bind(Qe):ft&&ft.then?ft.then(xt=>Ne.run(()=>xt)):Ne.run(()=>ft)});return new Proxy(()=>{},{get:(Qe,ft)=>rt[ft],apply:(Qe,ft,xt)=>rt.then(Bt=>{var Rt;const Qt=Bt&&Bt(...xt);return!(null===(Rt=q?.spy)||void 0===Rt)&&Rt.apply&&q.spy.apply(ve,xt,Qt),Qt})})})}),W=(Ye,ut)=>{ut.forEach(Ne=>{Object.getOwnPropertyNames(Ne.prototype||Ne).forEach(q=>{Object.defineProperty(Ye.prototype,q,Object.getOwnPropertyDescriptor(Ne.prototype||Ne,q))})})};class re{constructor(ut){return ut}}const ue=new o.OlP("angularfire2.app.options"),ie=new o.OlP("angularfire2.app.name");function V(Ye,ut,Ne){const me="object"==typeof Ne&&Ne||{};me.name=me.name||"string"==typeof Ne&&Ne||"[DEFAULT]";const ye=l.Z.apps.filter(rt=>rt&&rt.name===me.name)[0]||ut.runOutsideAngular(()=>l.Z.initializeApp(Ye,me));try{JSON.stringify(Ye)!==JSON.stringify(ye.options)&&Q("error",`${ye.name} Firebase App already initialized with different options${wt.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new re(ye)}const Q=(Ye,...ut)=>{(0,o.X6Q)()&&typeof console<"u"&&console[Ye](...ut)},be={provide:re,useFactory:V,deps:[ue,o.R0b,[new o.FiY,ie]]};let Ve=(()=>{class Ye{constructor(Ne){l.Z.registerVersion("angularfire",R.q4.full,"core"),l.Z.registerVersion("angularfire",R.q4.full,"app-compat"),l.Z.registerVersion("angular",o.q4F.full,Ne.toString())}static initializeApp(Ne,q){return{ngModule:Ye,providers:[{provide:ue,useValue:Ne},{provide:ie,useValue:q}]}}}return Ye.\u0275fac=function(Ne){return new(Ne||Ye)(o.LFG(o.Lbi))},Ye.\u0275mod=o.oAB({type:Ye}),Ye.\u0275inj=o.cJS({providers:[be]}),Ye})();function He(Ye,ut,Ne,q,me){const[,ve,ye]=globalThis.\u0275AngularfireInstanceCache.find(rt=>rt[0]===Ye)||[];if(ve)return function tt(Ye,ut){try{return Ye.toString()===ut.toString()}catch{return Ye===ut}}(me,ye)||(X("error",`${ut} was already initialized on the ${Ne} Firebase App with different settings.${$e?" You may need to reload as Firebase is not HMR aware.":""}`),X("warn",{is:me,was:ye})),ve;{const rt=q();return globalThis.\u0275AngularfireInstanceCache.push([Ye,rt,me]),rt}}const $e=!!wt.hot,X=(Ye,...ut)=>{(0,o.X6Q)()&&typeof console<"u"&&console[Ye](...ut)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},8186:(wt,Pe,C)=>{C.d(Pe,{q4:()=>gl,iC:()=>Ka,HU:()=>vl,vb:()=>wa,JM:()=>os});var o=C(5879),l=C(3182),R=C(5861),K=C(534),Y=C(9058),W=C(4537),re=C(7879);const ue=(m,D)=>D.some(N=>m instanceof N);let ie,V;const Ve=new WeakMap,He=new WeakMap,tt=new WeakMap,$e=new WeakMap,X=new WeakMap;let Ne={get(m,D,N){if(m instanceof IDBTransaction){if("done"===D)return He.get(m);if("objectStoreNames"===D)return m.objectStoreNames||tt.get(m);if("store"===D)return N.objectStoreNames[1]?void 0:N.objectStore(N.objectStoreNames[0])}return ye(m[D])},set:(m,D,N)=>(m[D]=N,!0),has:(m,D)=>m instanceof IDBTransaction&&("done"===D||"store"===D)||D in m};function ve(m){return"function"==typeof m?function me(m){return m!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function be(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(m)?function(...D){return m.apply(rt(this),D),ye(Ve.get(this))}:function(...D){return ye(m.apply(rt(this),D))}:function(D,...N){const he=m.call(rt(this),D,...N);return tt.set(he,D.sort?D.sort():[D]),ye(he)}}(m):(m instanceof IDBTransaction&&function ut(m){if(He.has(m))return;const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("complete",st),m.removeEventListener("error",_t),m.removeEventListener("abort",_t)},st=()=>{N(),Ue()},_t=()=>{he(m.error||new DOMException("AbortError","AbortError")),Ue()};m.addEventListener("complete",st),m.addEventListener("error",_t),m.addEventListener("abort",_t)});He.set(m,D)}(m),ue(m,function Q(){return ie||(ie=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(m,Ne):m)}function ye(m){if(m instanceof IDBRequest)return function Ye(m){const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("success",st),m.removeEventListener("error",_t)},st=()=>{N(ye(m.result)),Ue()},_t=()=>{he(m.error),Ue()};m.addEventListener("success",st),m.addEventListener("error",_t)});return D.then(N=>{N instanceof IDBCursor&&Ve.set(N,m)}).catch(()=>{}),X.set(D,m),D}(m);if($e.has(m))return $e.get(m);const D=ve(m);return D!==m&&($e.set(m,D),X.set(D,m)),D}const rt=m=>X.get(m),xt=["get","getKey","getAll","getAllKeys","count"],Bt=["put","add","delete","clear"],Rt=new Map;function Qt(m,D){if(!(m instanceof IDBDatabase)||D in m||"string"!=typeof D)return;if(Rt.get(D))return Rt.get(D);const N=D.replace(/FromIndex$/,""),he=D!==N,Ue=Bt.includes(N);if(!(N in(he?IDBIndex:IDBObjectStore).prototype)||!Ue&&!xt.includes(N))return;const st=function(){var _t=(0,R.Z)(function*($t,...Lt){const en=this.transaction($t,Ue?"readwrite":"readonly");let yn=en.store;return he&&(yn=yn.index(Lt.shift())),(yield Promise.all([yn[N](...Lt),Ue&&en.done]))[0]});return function(Lt){return _t.apply(this,arguments)}}();return Rt.set(D,st),st}!function q(m){Ne=m(Ne)}(m=>({...m,get:(D,N,he)=>Qt(D,N)||m.get(D,N,he),has:(D,N)=>!!Qt(D,N)||m.has(D,N)}));const qt="@firebase/installations",sn="0.6.4",Cn=1e4,wn=`w:${sn}`,Ge="FIS_v2",Xe="https://firebaseinstallations.googleapis.com/v1",Ze=36e5,Be=new Y.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 Fe(m){return m instanceof Y.ZR&&m.code.includes("request-failed")}function ke({projectId:m}){return`${Xe}/projects/${m}/installations`}function Ct(m){return{token:m.token,requestStatus:2,expiresIn:an(m.expiresIn),creationTime:Date.now()}}function Nt(m,D){return jt.apply(this,arguments)}function jt(){return(jt=(0,R.Z)(function*(m,D){const he=(yield D.json()).error;return Be.create("request-failed",{requestName:m,serverCode:he.code,serverMessage:he.message,serverStatus:he.status})})).apply(this,arguments)}function Kt({apiKey:m}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":m})}function rn(m){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,R.Z)(function*(m){const D=yield m();return D.status>=500&&D.status<600?m():D})).apply(this,arguments)}function an(m){return Number(m.replace("s","000"))}function Vn(){return(Vn=(0,R.Z)(function*({appConfig:m,heartbeatServiceProvider:D},{fid:N}){const he=ke(m),Ue=Kt(m),st=D.getImmediate({optional:!0});if(st){const en=yield st.getHeartbeatsHeader();en&&Ue.append("x-firebase-client",en)}const $t={method:"POST",headers:Ue,body:JSON.stringify({fid:N,authVersion:Ge,appId:m.appId,sdkVersion:wn})},Lt=yield rn(()=>fetch(he,$t));if(Lt.ok){const en=yield Lt.json();return{fid:en.fid||N,registrationStatus:2,refreshToken:en.refreshToken,authToken:Ct(en.authToken)}}throw yield Nt("Create Installation",Lt)})).apply(this,arguments)}function xn(m){return new Promise(D=>{setTimeout(D,m)})}const Un=/^[cdef][\w-]{21}$/,ze="";function G(){try{const m=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(m),m[0]=112+m[0]%16;const N=function Ie(m){return function Hn(m){return btoa(String.fromCharCode(...m)).replace(/\+/g,"-").replace(/\//g,"_")}(m).substr(0,22)}(m);return Un.test(N)?N:ze}catch{return ze}}function pe(m){return`${m.appName}!${m.appId}`}const nt=new Map;function Te(m,D){const N=pe(m);je(N,D),function Je(m,D){const N=function vt(){return!pt&&"BroadcastChannel"in self&&(pt=new BroadcastChannel("[Firebase] FID Change"),pt.onmessage=m=>{je(m.data.key,m.data.fid)}),pt}();N&&N.postMessage({key:m,fid:D}),function Re(){0===nt.size&&pt&&(pt.close(),pt=null)}()}(N,D)}function je(m,D){const N=nt.get(m);if(N)for(const he of N)he(D)}let pt=null;const y="firebase-installations-database",P=1,ee="firebase-installations-store";let Ae=null;function it(){return Ae||(Ae=function Qe(m,D,{blocked:N,upgrade:he,blocking:Ue,terminated:st}={}){const _t=indexedDB.open(m,D),$t=ye(_t);return he&&_t.addEventListener("upgradeneeded",Lt=>{he(ye(_t.result),Lt.oldVersion,Lt.newVersion,ye(_t.transaction))}),N&&_t.addEventListener("blocked",()=>N()),$t.then(Lt=>{st&&Lt.addEventListener("close",()=>st()),Ue&&Lt.addEventListener("versionchange",()=>Ue())}).catch(()=>{}),$t}(y,P,{upgrade:(m,D)=>{0===D&&m.createObjectStore(ee)}})),Ae}function St(m,D){return Et.apply(this,arguments)}function Et(){return(Et=(0,R.Z)(function*(m,D){const N=pe(m),Ue=(yield it()).transaction(ee,"readwrite"),st=Ue.objectStore(ee),_t=yield st.get(N);return yield st.put(D,N),yield Ue.done,(!_t||_t.fid!==D.fid)&&Te(m,D.fid),D})).apply(this,arguments)}function Pt(m){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,R.Z)(function*(m){const D=pe(m),he=(yield it()).transaction(ee,"readwrite");yield he.objectStore(ee).delete(D),yield he.done})).apply(this,arguments)}function Yt(m,D){return cn.apply(this,arguments)}function cn(){return(cn=(0,R.Z)(function*(m,D){const N=pe(m),Ue=(yield it()).transaction(ee,"readwrite"),st=Ue.objectStore(ee),_t=yield st.get(N),$t=D(_t);return void 0===$t?yield st.delete(N):yield st.put($t,N),yield Ue.done,$t&&(!_t||_t.fid!==$t.fid)&&Te(m,$t.fid),$t})).apply(this,arguments)}function Oe(m){return z.apply(this,arguments)}function z(){return z=(0,R.Z)(function*(m){let D;const N=yield Yt(m.appConfig,he=>{const Ue=function U(m){return xe(m||{fid:G(),registrationStatus:0})}(he),st=function B(m,D){if(0===D.registrationStatus){if(!navigator.onLine)return{installationEntry:D,registrationPromise:Promise.reject(Be.create("app-offline"))};const N={fid:D.fid,registrationStatus:1,registrationTime:Date.now()},he=function S(m,D){return H.apply(this,arguments)}(m,N);return{installationEntry:N,registrationPromise:he}}return 1===D.registrationStatus?{installationEntry:D,registrationPromise:j(m)}:{installationEntry:D}}(m,Ue);return D=st.registrationPromise,st.installationEntry});return N.fid===ze?{installationEntry:yield D}:{installationEntry:N,registrationPromise:D}}),z.apply(this,arguments)}function H(){return H=(0,R.Z)(function*(m,D){try{const N=yield function zt(m,D){return Vn.apply(this,arguments)}(m,D);return St(m.appConfig,N)}catch(N){throw Fe(N)&&409===N.customData.serverCode?yield Pt(m.appConfig):yield St(m.appConfig,{fid:D.fid,registrationStatus:0}),N}}),H.apply(this,arguments)}function j(m){return L.apply(this,arguments)}function L(){return(L=(0,R.Z)(function*(m){let D=yield J(m.appConfig);for(;1===D.registrationStatus;)yield xn(100),D=yield J(m.appConfig);if(0===D.registrationStatus){const{installationEntry:N,registrationPromise:he}=yield Oe(m);return he||N}return D})).apply(this,arguments)}function J(m){return Yt(m,D=>{if(!D)throw Be.create("installation-not-found");return xe(D)})}function xe(m){return function ce(m){return 1===m.registrationStatus&&m.registrationTime+Cn<Date.now()}(m)?{fid:m.fid,registrationStatus:0}:m}function at(){return(at=(0,R.Z)(function*({appConfig:m,heartbeatServiceProvider:D},N){const he=function de(m,{fid:D}){return`${ke(m)}/${D}/authTokens:generate`}(m,N),Ue=function nn(m,{refreshToken:D}){const N=Kt(m);return N.append("Authorization",function Sn(m){return`${Ge} ${m}`}(D)),N}(m,N),st=D.getImmediate({optional:!0});if(st){const en=yield st.getHeartbeatsHeader();en&&Ue.append("x-firebase-client",en)}const $t={method:"POST",headers:Ue,body:JSON.stringify({installation:{sdkVersion:wn,appId:m.appId}})},Lt=yield rn(()=>fetch(he,$t));if(Lt.ok)return Ct(yield Lt.json());throw yield Nt("Generate Auth Token",Lt)})).apply(this,arguments)}function se(m){return ot.apply(this,arguments)}function ot(){return ot=(0,R.Z)(function*(m,D=!1){let N;const he=yield Yt(m.appConfig,st=>{if(!Ut(st))throw Be.create("not-registered");const _t=st.authToken;if(!D&&function Gt(m){return 2===m.requestStatus&&!function Pn(m){const D=Date.now();return D<m.creationTime||m.creationTime+m.expiresIn<D+Ze}(m)}(_t))return st;if(1===_t.requestStatus)return N=function le(m,D){return Ee.apply(this,arguments)}(m,D),st;{if(!navigator.onLine)throw Be.create("app-offline");const $t=function $n(m){const D={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},m),{authToken:D})}(st);return N=function bt(m,D){return ht.apply(this,arguments)}(m,$t),$t}});return N?yield N:he.authToken}),ot.apply(this,arguments)}function Ee(){return(Ee=(0,R.Z)(function*(m,D){let N=yield We(m.appConfig);for(;1===N.authToken.requestStatus;)yield xn(100),N=yield We(m.appConfig);const he=N.authToken;return 0===he.requestStatus?se(m,D):he})).apply(this,arguments)}function We(m){return Yt(m,D=>{if(!Ut(D))throw Be.create("not-registered");return function Nn(m){return 1===m.requestStatus&&m.requestTime+Cn<Date.now()}(D.authToken)?Object.assign(Object.assign({},D),{authToken:{requestStatus:0}}):D})}function ht(){return ht=(0,R.Z)(function*(m,D){try{const N=yield function Se(m,D){return at.apply(this,arguments)}(m,D),he=Object.assign(Object.assign({},D),{authToken:N});return yield St(m.appConfig,he),N}catch(N){if(!Fe(N)||401!==N.customData.serverCode&&404!==N.customData.serverCode){const he=Object.assign(Object.assign({},D),{authToken:{requestStatus:0}});yield St(m.appConfig,he)}else yield Pt(m.appConfig);throw N}}),ht.apply(this,arguments)}function Ut(m){return void 0!==m&&2===m.registrationStatus}function yr(){return(yr=(0,R.Z)(function*(m){const D=m,{installationEntry:N,registrationPromise:he}=yield Oe(D);return he?he.catch(console.error):se(D).catch(console.error),N.fid})).apply(this,arguments)}function Mn(){return Mn=(0,R.Z)(function*(m,D=!1){const N=m;return yield function Zn(m){return Or.apply(this,arguments)}(N),(yield se(N,D)).token}),Mn.apply(this,arguments)}function Or(){return(Or=(0,R.Z)(function*(m){const{registrationPromise:D}=yield Oe(m);D&&(yield D)})).apply(this,arguments)}function di(m){return Be.create("missing-app-config-values",{valueName:m})}const $o="installations",la=m=>{const D=m.getProvider("app").getImmediate(),N=function hr(m){if(!m||!m.options)throw di("App Configuration");if(!m.name)throw di("App Name");const D=["projectId","apiKey","appId"];for(const N of D)if(!m.options[N])throw di(N);return{appName:m.name,projectId:m.options.projectId,apiKey:m.options.apiKey,appId:m.options.appId}}(D);return{app:D,appConfig:N,heartbeatServiceProvider:(0,K._getProvider)(D,"heartbeat"),_delete:()=>Promise.resolve()}},Is=m=>{const D=m.getProvider("app").getImmediate(),N=(0,K._getProvider)(D,$o).getImmediate();return{getId:()=>function ir(m){return yr.apply(this,arguments)}(N),getToken:Ue=>function zr(m){return Mn.apply(this,arguments)}(N,Ue)}};(function Eo(){(0,K._registerComponent)(new W.wA($o,la,"PUBLIC")),(0,K._registerComponent)(new W.wA("installations-internal",Is,"PRIVATE"))})(),(0,K.registerVersion)(qt,sn),(0,K.registerVersion)(qt,sn,"esm2017");const ki="@firebase/remote-config",xr=new Y.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 un{constructor(D,N,he,Ue){this.client=D,this.storage=N,this.storageCache=he,this.logger=Ue}isCachedDataFresh(D,N){if(!N)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const he=Date.now()-N,Ue=he<=D;return this.logger.debug(`Config fetch cache check. Cache age millis: ${he}. Cache max age millis (minimumFetchIntervalMillis setting): ${D}. Is cache hit: ${Ue}.`),Ue}fetch(D){var N=this;return(0,R.Z)(function*(){const[he,Ue]=yield Promise.all([N.storage.getLastSuccessfulFetchTimestampMillis(),N.storage.getLastSuccessfulFetchResponse()]);if(Ue&&N.isCachedDataFresh(D.cacheMaxAgeMillis,he))return Ue;D.eTag=Ue&&Ue.eTag;const st=yield N.client.fetch(D),_t=[N.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===st.status&&_t.push(N.storage.setLastSuccessfulFetchResponse(st)),yield Promise.all(_t),st})()}}function Jn(m=navigator){return m.languages&&m.languages[0]||m.language}class br{constructor(D,N,he,Ue,st,_t){this.firebaseInstallations=D,this.sdkVersion=N,this.namespace=he,this.projectId=Ue,this.apiKey=st,this.appId=_t}fetch(D){var N=this;return(0,R.Z)(function*(){const[he,Ue]=yield Promise.all([N.firebaseInstallations.getId(),N.firebaseInstallations.getToken()]),_t=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${N.projectId}/namespaces/${N.namespace}:fetch?key=${N.apiKey}`,$t={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":D.eTag||"*"},Lt={sdk_version:N.sdkVersion,app_instance_id:he,app_instance_id_token:Ue,app_id:N.appId,language_code:Jn()},en={method:"POST",headers:$t,body:JSON.stringify(Lt)},yn=fetch(_t,en),Dn=new Promise((_i,ws)=>{D.signal.addEventListener(()=>{const Pi=new Error("The operation was aborted.");Pi.name="AbortError",ws(Pi)})});let si;try{yield Promise.race([yn,Dn]),si=yield yn}catch(_i){let ws="fetch-client-network";throw"AbortError"===_i?.name&&(ws="fetch-timeout"),xr.create(ws,{originalErrorMessage:_i?.message})}let ai=si.status;const qa=si.headers.get("ETag")||void 0;let Tr,Ds;if(200===si.status){let _i;try{_i=yield si.json()}catch(ws){throw xr.create("fetch-client-parse",{originalErrorMessage:ws?.message})}Tr=_i.entries,Ds=_i.state}if("INSTANCE_STATE_UNSPECIFIED"===Ds?ai=500:"NO_CHANGE"===Ds?ai=304:("NO_TEMPLATE"===Ds||"EMPTY_CONFIG"===Ds)&&(Tr={}),304!==ai&&200!==ai)throw xr.create("fetch-status",{httpStatus:ai});return{status:ai,eTag:qa,config:Tr}})()}}class Ci{constructor(D,N){this.client=D,this.storage=N}fetch(D){var N=this;return(0,R.Z)(function*(){const he=(yield N.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return N.attemptFetch(D,he)})()}attemptFetch(D,{throttleEndTimeMillis:N,backoffCount:he}){var Ue=this;return(0,R.Z)(function*(){yield function Ai(m,D){return new Promise((N,he)=>{const Ue=Math.max(D-Date.now(),0),st=setTimeout(N,Ue);m.addEventListener(()=>{clearTimeout(st),he(xr.create("fetch-throttle",{throttleEndTimeMillis:D}))})})}(D.signal,N);try{const st=yield Ue.client.fetch(D);return yield Ue.storage.deleteThrottleMetadata(),st}catch(st){if(!function ur(m){if(!(m instanceof Y.ZR&&m.customData))return!1;const D=Number(m.customData.httpStatus);return 429===D||500===D||503===D||504===D}(st))throw st;const _t={throttleEndTimeMillis:Date.now()+(0,Y.$s)(he),backoffCount:he+1};return yield Ue.storage.setThrottleMetadata(_t),Ue.attemptFetch(D,_t)}})()}}class hi{constructor(D,N,he,Ue,st){this.app=D,this._client=N,this._storageCache=he,this._storage=Ue,this._logger=st,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 hn(m,D){const N=m.target.error||void 0;return xr.create(D,{originalErrorMessage:N&&N?.message})}const Qr="app_namespace_store";class fi{constructor(D,N,he,Ue=function lr(){return new Promise((m,D)=>{try{const N=indexedDB.open("firebase_remote_config",1);N.onerror=he=>{D(hn(he,"storage-open"))},N.onsuccess=he=>{m(he.target.result)},N.onupgradeneeded=he=>{0===he.oldVersion&&he.target.result.createObjectStore(Qr,{keyPath:"compositeKey"})}}catch(N){D(xr.create("storage-open",{originalErrorMessage:N?.message}))}})}()){this.appId=D,this.appName=N,this.namespace=he,this.openDbPromise=Ue}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(D){return this.set("last_fetch_status",D)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(D){return this.set("last_successful_fetch_timestamp_millis",D)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(D){return this.set("last_successful_fetch_response",D)}getActiveConfig(){return this.get("active_config")}setActiveConfig(D){return this.set("active_config",D)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(D){return this.set("active_config_etag",D)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(D){return this.set("throttle_metadata",D)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(D){var N=this;return(0,R.Z)(function*(){const he=yield N.openDbPromise;return new Promise((Ue,st)=>{const $t=he.transaction([Qr],"readonly").objectStore(Qr),Lt=N.createCompositeKey(D);try{const en=$t.get(Lt);en.onerror=yn=>{st(hn(yn,"storage-get"))},en.onsuccess=yn=>{const Dn=yn.target.result;Ue(Dn?Dn.value:void 0)}}catch(en){st(xr.create("storage-get",{originalErrorMessage:en?.message}))}})})()}set(D,N){var he=this;return(0,R.Z)(function*(){const Ue=yield he.openDbPromise;return new Promise((st,_t)=>{const Lt=Ue.transaction([Qr],"readwrite").objectStore(Qr),en=he.createCompositeKey(D);try{const yn=Lt.put({compositeKey:en,value:N});yn.onerror=Dn=>{_t(hn(Dn,"storage-set"))},yn.onsuccess=()=>{st()}}catch(yn){_t(xr.create("storage-set",{originalErrorMessage:yn?.message}))}})})()}delete(D){var N=this;return(0,R.Z)(function*(){const he=yield N.openDbPromise;return new Promise((Ue,st)=>{const $t=he.transaction([Qr],"readwrite").objectStore(Qr),Lt=N.createCompositeKey(D);try{const en=$t.delete(Lt);en.onerror=yn=>{st(hn(yn,"storage-delete"))},en.onsuccess=()=>{Ue()}}catch(en){st(xr.create("storage-delete",{originalErrorMessage:en?.message}))}})})()}createCompositeKey(D){return[this.appId,this.appName,this.namespace,D].join()}}class qi{constructor(D){this.storage=D}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var D=this;return(0,R.Z)(function*(){const N=D.storage.getLastFetchStatus(),he=D.storage.getLastSuccessfulFetchTimestampMillis(),Ue=D.storage.getActiveConfig(),st=yield N;st&&(D.lastFetchStatus=st);const _t=yield he;_t&&(D.lastSuccessfulFetchTimestampMillis=_t);const $t=yield Ue;$t&&(D.activeConfig=$t)})()}setLastFetchStatus(D){return this.lastFetchStatus=D,this.storage.setLastFetchStatus(D)}setLastSuccessfulFetchTimestampMillis(D){return this.lastSuccessfulFetchTimestampMillis=D,this.storage.setLastSuccessfulFetchTimestampMillis(D)}setActiveConfig(D){return this.activeConfig=D,this.storage.setActiveConfig(D)}}function Qi(){return pi.apply(this,arguments)}function pi(){return(pi=(0,R.Z)(function*(){if(!(0,Y.hl)())return!1;try{return yield(0,Y.eu)()}catch{return!1}})).apply(this,arguments)}!function Wr(){(0,K._registerComponent)(new W.wA("remote-config",function m(D,{instanceIdentifier:N}){const he=D.getProvider("app").getImmediate(),Ue=D.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw xr.create("registration-window");if(!(0,Y.hl)())throw xr.create("indexed-db-unavailable");const{projectId:st,apiKey:_t,appId:$t}=he.options;if(!st)throw xr.create("registration-project-id");if(!_t)throw xr.create("registration-api-key");if(!$t)throw xr.create("registration-app-id");const Lt=new fi($t,he.name,N=N||"firebase"),en=new qi(Lt),yn=new re.Yd(ki);yn.logLevel=re.in.ERROR;const Dn=new br(Ue,K.SDK_VERSION,N,st,_t,$t),si=new Ci(Dn,Lt),ai=new un(si,Lt,en,yn),qa=new hi(he,ai,en,Lt,yn);return function or(m){const D=(0,Y.m9)(m);D._initializePromise||(D._initializePromise=D._storageCache.loadFromStorage().then(()=>{D._isInitializationComplete=!0}))}(qa),qa},"PUBLIC").setMultipleInstances(!0)),(0,K.registerVersion)(ki,"0.4.4"),(0,K.registerVersion)(ki,"0.4.4","esm2017")}();const Xi=(m,D)=>D.some(N=>m instanceof N);let gi,En;const Cr=new WeakMap,er=new WeakMap,Bi=new WeakMap,ri=new WeakMap,Vi=new WeakMap;let Rr={get(m,D,N){if(m instanceof IDBTransaction){if("done"===D)return er.get(m);if("objectStoreNames"===D)return m.objectStoreNames||Bi.get(m);if("store"===D)return N.objectStoreNames[1]?void 0:N.objectStore(N.objectStoreNames[0])}return Vr(m[D])},set:(m,D,N)=>(m[D]=N,!0),has:(m,D)=>m instanceof IDBTransaction&&("done"===D||"store"===D)||D in m};function Ji(m){return"function"==typeof m?function Yo(m){return m!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ko(){return En||(En=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(m)?function(...D){return m.apply(kr(this),D),Vr(Cr.get(this))}:function(...D){return Vr(m.apply(kr(this),D))}:function(D,...N){const he=m.call(kr(this),D,...N);return Bi.set(he,D.sort?D.sort():[D]),Vr(he)}}(m):(m instanceof IDBTransaction&&function xa(m){if(er.has(m))return;const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("complete",st),m.removeEventListener("error",_t),m.removeEventListener("abort",_t)},st=()=>{N(),Ue()},_t=()=>{he(m.error||new DOMException("AbortError","AbortError")),Ue()};m.addEventListener("complete",st),m.addEventListener("error",_t),m.addEventListener("abort",_t)});er.set(m,D)}(m),Xi(m,function Os(){return gi||(gi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(m,Rr):m)}function Vr(m){if(m instanceof IDBRequest)return function Er(m){const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("success",st),m.removeEventListener("error",_t)},st=()=>{N(Vr(m.result)),Ue()},_t=()=>{he(m.error),Ue()};m.addEventListener("success",st),m.addEventListener("error",_t)});return D.then(N=>{N instanceof IDBCursor&&Cr.set(N,m)}).catch(()=>{}),Vi.set(D,m),D}(m);if(ri.has(m))return ri.get(m);const D=Ji(m);return D!==m&&(ri.set(m,D),Vi.set(D,m)),D}const kr=m=>Vi.get(m);function qo(m,D,{blocked:N,upgrade:he,blocking:Ue,terminated:st}={}){const _t=indexedDB.open(m,D),$t=Vr(_t);return he&&_t.addEventListener("upgradeneeded",Lt=>{he(Vr(_t.result),Lt.oldVersion,Lt.newVersion,Vr(_t.transaction))}),N&&_t.addEventListener("blocked",()=>N()),$t.then(Lt=>{st&&Lt.addEventListener("close",()=>st()),Ue&&Lt.addEventListener("versionchange",()=>Ue())}).catch(()=>{}),$t}function Qo(m,{blocked:D}={}){const N=indexedDB.deleteDatabase(m);return D&&N.addEventListener("blocked",()=>D()),Vr(N).then(()=>{})}const Oo=["get","getKey","getAll","getAllKeys","count"],xo=["put","add","delete","clear"],us=new Map;function Xo(m,D){if(!(m instanceof IDBDatabase)||D in m||"string"!=typeof D)return;if(us.get(D))return us.get(D);const N=D.replace(/FromIndex$/,""),he=D!==N,Ue=xo.includes(N);if(!(N in(he?IDBIndex:IDBObjectStore).prototype)||!Ue&&!Oo.includes(N))return;const st=function(){var _t=(0,R.Z)(function*($t,...Lt){const en=this.transaction($t,Ue?"readwrite":"readonly");let yn=en.store;return he&&(yn=yn.index(Lt.shift())),(yield Promise.all([yn[N](...Lt),Ue&&en.done]))[0]});return function(Lt){return _t.apply(this,arguments)}}();return us.set(D,st),st}!function fr(m){Rr=m(Rr)}(m=>({...m,get:(D,N,he)=>Xo(D,N)||m.get(D,N,he),has:(D,N)=>!!Xo(D,N)||m.has(D,N)}));const x="/firebase-messaging-sw.js",T="/firebase-cloud-messaging-push-scope",te="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",k="https://fcmregistrations.googleapis.com/v1",ae="google.c.a.c_id",At="google.c.a.c_l",_n="google.c.a.ts";var co=function(m){return m.PUSH_RECEIVED="push-received",m.NOTIFICATION_CLICKED="notification-clicked",m}(co||{});function Di(m){const D=new Uint8Array(m);return btoa(String.fromCharCode(...D)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function nl(m){const N=(m+"=".repeat((4-m.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),he=atob(N),Ue=new Uint8Array(he.length);for(let st=0;st<he.length;++st)Ue[st]=he.charCodeAt(st);return Ue}const ds="fcm_token_details_db",ca=5,Pa="fcm_token_object_Store";function xs(){return xs=(0,R.Z)(function*(m){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(st=>st.name).includes(ds))return null;let D=null;return(yield qo(ds,ca,{upgrade:(he=(0,R.Z)(function*(Ue,st,_t,$t){var Lt;if(st<2||!Ue.objectStoreNames.contains(Pa))return;const en=$t.objectStore(Pa),yn=yield en.index("fcmSenderId").get(m);if(yield en.clear(),yn)if(2===st){const Dn=yn;if(!Dn.auth||!Dn.p256dh||!Dn.endpoint)return;D={token:Dn.fcmToken,createTime:null!==(Lt=Dn.createTime)&&void 0!==Lt?Lt:Date.now(),subscriptionOptions:{auth:Dn.auth,p256dh:Dn.p256dh,endpoint:Dn.endpoint,swScope:Dn.swScope,vapidKey:"string"==typeof Dn.vapidKey?Dn.vapidKey:Di(Dn.vapidKey)}}}else if(3===st){const Dn=yn;D={token:Dn.fcmToken,createTime:Dn.createTime,subscriptionOptions:{auth:Di(Dn.auth),p256dh:Di(Dn.p256dh),endpoint:Dn.endpoint,swScope:Dn.swScope,vapidKey:Di(Dn.vapidKey)}}}else if(4===st){const Dn=yn;D={token:Dn.fcmToken,createTime:Dn.createTime,subscriptionOptions:{auth:Di(Dn.auth),p256dh:Di(Dn.p256dh),endpoint:Dn.endpoint,swScope:Dn.swScope,vapidKey:Di(Dn.vapidKey)}}}}),function(st,_t,$t,Lt){return he.apply(this,arguments)})})).close(),yield Qo(ds),yield Qo("fcm_vapid_details_db"),yield Qo("undefined"),function uo(m){if(!m||!m.subscriptionOptions)return!1;const{subscriptionOptions:D}=m;return"number"==typeof m.createTime&&m.createTime>0&&"string"==typeof m.token&&m.token.length>0&&"string"==typeof D.auth&&D.auth.length>0&&"string"==typeof D.p256dh&&D.p256dh.length>0&&"string"==typeof D.endpoint&&D.endpoint.length>0&&"string"==typeof D.swScope&&D.swScope.length>0&&"string"==typeof D.vapidKey&&D.vapidKey.length>0}(D)?D:null;var he}),xs.apply(this,arguments)}const jr="firebase-messaging-database",Ps=1,Hr="firebase-messaging-store";let gr=null;function wi(){return gr||(gr=qo(jr,Ps,{upgrade:(m,D)=>{0===D&&m.createObjectStore(Hr)}})),gr}function Ur(m){return eo.apply(this,arguments)}function eo(){return eo=(0,R.Z)(function*(m){const D=ho(m),he=yield(yield wi()).transaction(Hr).objectStore(Hr).get(D);if(he)return he;{const Ue=yield function rl(m){return xs.apply(this,arguments)}(m.appConfig.senderId);if(Ue)return yield hs(m,Ue),Ue}}),eo.apply(this,arguments)}function hs(m,D){return fs.apply(this,arguments)}function fs(){return(fs=(0,R.Z)(function*(m,D){const N=ho(m),Ue=(yield wi()).transaction(Hr,"readwrite");return yield Ue.objectStore(Hr).put(D,N),yield Ue.done,D})).apply(this,arguments)}function es(){return(es=(0,R.Z)(function*(m){const D=ho(m),he=(yield wi()).transaction(Hr,"readwrite");yield he.objectStore(Hr).delete(D),yield he.done})).apply(this,arguments)}function ho({appConfig:m}){return m.appId}const mr=new Y.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 ua(m,D){return Rs.apply(this,arguments)}function Rs(){return(Rs=(0,R.Z)(function*(m,D){const N=yield Ns(m),he=Fs(D),Ue={method:"POST",headers:N,body:JSON.stringify(he)};let st;try{st=yield(yield fetch(ks(m.appConfig),Ue)).json()}catch(_t){throw mr.create("token-subscribe-failed",{errorInfo:_t?.toString()})}if(st.error)throw mr.create("token-subscribe-failed",{errorInfo:st.error.message});if(!st.token)throw mr.create("token-subscribe-no-token");return st.token})).apply(this,arguments)}function fn(){return(fn=(0,R.Z)(function*(m,D){const N=yield Ns(m),he=Fs(D.subscriptionOptions),Ue={method:"PATCH",headers:N,body:JSON.stringify(he)};let st;try{st=yield(yield fetch(`${ks(m.appConfig)}/${D.token}`,Ue)).json()}catch(_t){throw mr.create("token-update-failed",{errorInfo:_t?.toString()})}if(st.error)throw mr.create("token-update-failed",{errorInfo:st.error.message});if(!st.token)throw mr.create("token-update-no-token");return st.token})).apply(this,arguments)}function gs(m,D){return ji.apply(this,arguments)}function ji(){return(ji=(0,R.Z)(function*(m,D){const he={method:"DELETE",headers:yield Ns(m)};try{const st=yield(yield fetch(`${ks(m.appConfig)}/${D}`,he)).json();if(st.error)throw mr.create("token-unsubscribe-failed",{errorInfo:st.error.message})}catch(Ue){throw mr.create("token-unsubscribe-failed",{errorInfo:Ue?.toString()})}})).apply(this,arguments)}function ks({projectId:m}){return`${k}/projects/${m}/registrations`}function Ns(m){return ts.apply(this,arguments)}function ts(){return(ts=(0,R.Z)(function*({appConfig:m,installations:D}){const N=yield D.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":m.apiKey,"x-goog-firebase-installations-auth":`FIS ${N}`})})).apply(this,arguments)}function Fs({p256dh:m,auth:D,endpoint:N,vapidKey:he}){const Ue={web:{endpoint:N,auth:D,p256dh:m}};return he!==te&&(Ue.web.applicationPubKey=he),Ue}const ms=6048e5;function Ls(){return Ls=(0,R.Z)(function*(m){const D=yield function vs(m,D){return ys.apply(this,arguments)}(m.swRegistration,m.vapidKey),N={vapidKey:m.vapidKey,swScope:m.swRegistration.scope,endpoint:D.endpoint,auth:Di(D.getKey("auth")),p256dh:Di(D.getKey("p256dh"))},he=yield Ur(m.firebaseDependencies);if(he){if(function g(m,D){return D.vapidKey===m.vapidKey&&D.endpoint===m.endpoint&&D.auth===m.auth&&D.p256dh===m.p256dh}(he.subscriptionOptions,N))return Date.now()>=he.createTime+ms?function Ra(m,D){return Vs.apply(this,arguments)}(m,{token:he.token,createTime:Date.now(),subscriptionOptions:N}):he.token;try{yield gs(m.firebaseDependencies,he.token)}catch(Ue){console.warn(Ue)}return ha(m.firebaseDependencies,N)}return ha(m.firebaseDependencies,N)}),Ls.apply(this,arguments)}function _s(){return _s=(0,R.Z)(function*(m){const D=yield Ur(m.firebaseDependencies);D&&(yield gs(m.firebaseDependencies,D.token),yield function Jo(m){return es.apply(this,arguments)}(m.firebaseDependencies));const N=yield m.swRegistration.pushManager.getSubscription();return!N||N.unsubscribe()}),_s.apply(this,arguments)}function Vs(){return Vs=(0,R.Z)(function*(m,D){try{const N=yield function da(m,D){return fn.apply(this,arguments)}(m.firebaseDependencies,D),he=Object.assign(Object.assign({},D),{token:N,createTime:Date.now()});return yield hs(m.firebaseDependencies,he),N}catch(N){throw yield function Bs(m){return _s.apply(this,arguments)}(m),N}}),Vs.apply(this,arguments)}function ha(m,D){return fa.apply(this,arguments)}function fa(){return(fa=(0,R.Z)(function*(m,D){const he={token:yield ua(m,D),createTime:Date.now(),subscriptionOptions:D};return yield hs(m,he),he.token})).apply(this,arguments)}function ys(){return(ys=(0,R.Z)(function*(m,D){return(yield m.pushManager.getSubscription())||m.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:nl(D)})})).apply(this,arguments)}function A(m){const D={from:m.from,collapseKey:m.collapse_key,messageId:m.fcmMessageId};return function fe(m,D){if(!D.notification)return;m.notification={};const N=D.notification.title;N&&(m.notification.title=N);const he=D.notification.body;he&&(m.notification.body=he);const Ue=D.notification.image;Ue&&(m.notification.image=Ue);const st=D.notification.icon;st&&(m.notification.icon=st)}(D,m),function M(m,D){D.data&&(m.data=D.data)}(D,m),function ne(m,D){var N,he,Ue,st,_t;if(!(D.fcmOptions||null!==(N=D.notification)&&void 0!==N&&N.click_action))return;m.fcmOptions={};const $t=null!==(Ue=null===(he=D.fcmOptions)||void 0===he?void 0:he.link)&&void 0!==Ue?Ue:null===(st=D.notification)||void 0===st?void 0:st.click_action;$t&&(m.fcmOptions.link=$t);const Lt=null===(_t=D.fcmOptions)||void 0===_t?void 0:_t.analytics_label;Lt&&(m.fcmOptions.analyticsLabel=Lt)}(D,m),D}function yt(m,D){const N=[];for(let he=0;he<m.length;he++)N.push(m.charAt(he)),he<D.length&&N.push(D.charAt(he));return N.join("")}function Tn(m){return mr.create("missing-app-config-values",{valueName:m})}yt("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),yt("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class zn{constructor(D,N,he){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Ue=function kt(m){if(!m||!m.options)throw Tn("App Configuration Object");if(!m.name)throw Tn("App Name");const D=["projectId","apiKey","appId","messagingSenderId"],{options:N}=m;for(const he of D)if(!N[he])throw Tn(he);return{appName:m.name,projectId:N.projectId,apiKey:N.apiKey,appId:N.appId,senderId:N.messagingSenderId}}(D);this.firebaseDependencies={app:D,appConfig:Ue,installations:N,analyticsProvider:he}}_delete(){return Promise.resolve()}}function bn(){return(bn=(0,R.Z)(function*(m){try{m.swRegistration=yield navigator.serviceWorker.register(x,{scope:T}),m.swRegistration.update().catch(()=>{})}catch(D){throw mr.create("failed-service-worker-registration",{browserErrorMessage:D?.message})}})).apply(this,arguments)}function Qn(){return(Qn=(0,R.Z)(function*(m,D){if(!D&&!m.swRegistration&&(yield function Bn(m){return bn.apply(this,arguments)}(m)),D||!m.swRegistration){if(!(D instanceof ServiceWorkerRegistration))throw mr.create("invalid-sw-registration");m.swRegistration=D}})).apply(this,arguments)}function Zr(){return(Zr=(0,R.Z)(function*(m,D){D?m.vapidKey=D:m.vapidKey||(m.vapidKey=te)})).apply(this,arguments)}function Oi(){return Oi=(0,R.Z)(function*(m,D){if(!navigator)throw mr.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw mr.create("permission-blocked");return yield function _r(m,D){return Zr.apply(this,arguments)}(m,D?.vapidKey),yield function sr(m,D){return Qn.apply(this,arguments)}(m,D?.serviceWorkerRegistration),function il(m){return Ls.apply(this,arguments)}(m)}),Oi.apply(this,arguments)}function Dr(){return(Dr=(0,R.Z)(function*(m,D,N){const he=function to(m){switch(m){case co.NOTIFICATION_CLICKED:return"notification_open";case co.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(D);(yield m.firebaseDependencies.analyticsProvider.get()).logEvent(he,{message_id:N[ae],message_name:N[At],message_time:N[_n],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function tr(){return tr=(0,R.Z)(function*(m,D){const N=D.data;if(!N.isFirebaseMessaging)return;m.onMessageHandler&&N.messageType===co.PUSH_RECEIVED&&("function"==typeof m.onMessageHandler?m.onMessageHandler(A(N)):m.onMessageHandler.next(A(N)));const he=N.data;(function Le(m){return"object"==typeof m&&!!m&&ae in m})(he)&&"1"===he["google.c.a.e"]&&(yield function xi(m,D,N){return Dr.apply(this,arguments)}(m,N.messageType,he))}),tr.apply(this,arguments)}const ns="@firebase/messaging",Kr=m=>{const D=new zn(m.getProvider("app").getImmediate(),m.getProvider("installations-internal").getImmediate(),m.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",N=>function nr(m,D){return tr.apply(this,arguments)}(D,N)),D},Mi=m=>{const D=m.getProvider("messaging").getImmediate();return{getToken:he=>function Si(m,D){return Oi.apply(this,arguments)}(D,he)}};function bs(){return Jr.apply(this,arguments)}function Jr(){return(Jr=(0,R.Z)(function*(){try{yield(0,Y.eu)()}catch{return!1}return typeof window<"u"&&(0,Y.hl)()&&(0,Y.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function Ys(){(0,K._registerComponent)(new W.wA("messaging",Kr,"PUBLIC")),(0,K._registerComponent)(new W.wA("messaging-internal",Mi,"PRIVATE")),(0,K.registerVersion)(ns,"0.12.4"),(0,K.registerVersion)(ns,"0.12.4","esm2017")}();const ga="analytics",ll="firebase_id",dn="origin",ma=6e4,_a="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",va="https://www.googletagmanager.com/gtag/js",wr=new re.Yd("@firebase/analytics"),Sr=new Y.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.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function fo(m){if(!m.startsWith(va)){const D=Sr.create("invalid-gtag-resource",{gtagURL:m});return wr.warn(D.message),""}return m}function Na(m){return Promise.all(m.map(D=>D.catch(N=>N)))}function Mt(){return(Mt=(0,R.Z)(function*(m,D,N,he,Ue,st){const _t=he[Ue];try{if(_t)yield D[_t];else{const Lt=(yield Na(N)).find(en=>en.measurementId===Ue);Lt&&(yield D[Lt.appId])}}catch($t){wr.error($t)}m("config",Ue,st)})).apply(this,arguments)}function js(){return(js=(0,R.Z)(function*(m,D,N,he,Ue){try{let st=[];if(Ue&&Ue.send_to){let _t=Ue.send_to;Array.isArray(_t)||(_t=[_t]);const $t=yield Na(N);for(const Lt of _t){const en=$t.find(Dn=>Dn.measurementId===Lt),yn=en&&D[en.appId];if(!yn){st=[];break}st.push(yn)}}0===st.length&&(st=Object.values(D)),yield Promise.all(st),m("event",he,Ue||{})}catch(st){wr.error(st)}})).apply(this,arguments)}const mi=30,Hs=new class rs{constructor(D={},N=1e3){this.throttleMetadata=D,this.intervalMillis=N}getThrottleMetadata(D){return this.throttleMetadata[D]}setThrottleMetadata(D,N){this.throttleMetadata[D]=N}deleteThrottleMetadata(D){delete this.throttleMetadata[D]}};function Ea(m){return new Headers({Accept:"application/json","x-goog-api-key":m})}function is(){return(is=(0,R.Z)(function*(m){var D;const{appId:N,apiKey:he}=m,Ue={method:"GET",headers:Ea(he)},st=_a.replace("{app-id}",N),_t=yield fetch(st,Ue);if(200!==_t.status&&304!==_t.status){let $t="";try{const Lt=yield _t.json();null!==(D=Lt.error)&&void 0!==D&&D.message&&($t=Lt.error.message)}catch{}throw Sr.create("config-fetch-failed",{httpStatus:_t.status,responseMessage:$t})}return _t.json()})).apply(this,arguments)}function ro(){return(ro=(0,R.Z)(function*(m,D=Hs,N){const{appId:he,apiKey:Ue,measurementId:st}=m.options;if(!he)throw Sr.create("no-app-id");if(!Ue){if(st)return{measurementId:st,appId:he};throw Sr.create("no-api-key")}const _t=D.getThrottleMetadata(he)||{backoffCount:0,throttleEndTimeMillis:Date.now()},$t=new w;return setTimeout((0,R.Z)(function*(){$t.abort()}),void 0!==N?N:ma),qs({appId:he,apiKey:Ue,measurementId:st},_t,$t,D)})).apply(this,arguments)}function qs(m,D,N){return Es.apply(this,arguments)}function Es(){return Es=(0,R.Z)(function*(m,{throttleEndTimeMillis:D,backoffCount:N},he,Ue=Hs){var st;const{appId:_t,measurementId:$t}=m;try{yield function f(m,D){return new Promise((N,he)=>{const Ue=Math.max(D-Date.now(),0),st=setTimeout(N,Ue);m.addEventListener(()=>{clearTimeout(st),he(Sr.create("fetch-throttle",{throttleEndTimeMillis:D}))})})}(he,D)}catch(Lt){if($t)return wr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${$t} provided in the "measurementId" field in the local Firebase config. [${Lt?.message}]`),{appId:_t,measurementId:$t};throw Lt}try{const Lt=yield function Ol(m){return is.apply(this,arguments)}(m);return Ue.deleteThrottleMetadata(_t),Lt}catch(Lt){const en=Lt;if(!function v(m){if(!(m instanceof Y.ZR&&m.customData))return!1;const D=Number(m.customData.httpStatus);return 429===D||500===D||503===D||504===D}(en)){if(Ue.deleteThrottleMetadata(_t),$t)return wr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${$t} provided in the "measurementId" field in the local Firebase config. [${en?.message}]`),{appId:_t,measurementId:$t};throw Lt}const yn=503===Number(null===(st=en?.customData)||void 0===st?void 0:st.httpStatus)?(0,Y.$s)(N,Ue.intervalMillis,mi):(0,Y.$s)(N,Ue.intervalMillis),Dn={throttleEndTimeMillis:Date.now()+yn,backoffCount:N+1};return Ue.setThrottleMetadata(_t,Dn),wr.debug(`Calling attemptFetch again in ${yn} millis`),qs(m,Dn,he,Ue)}}),Es.apply(this,arguments)}class w{constructor(){this.listeners=[]}addEventListener(D){this.listeners.push(D)}abort(){this.listeners.forEach(D=>D())}}let _,Ro;function Z(){return(Z=(0,R.Z)(function*(m,D,N,he,Ue){if(Ue&&Ue.global)m("event",N,he);else{const st=yield D;m("event",N,Object.assign(Object.assign({},he),{send_to:st}))}})).apply(this,arguments)}function No(){return(No=(0,R.Z)(function*(){if(!(0,Y.hl)())return wr.warn(Sr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,Y.eu)()}catch(m){return wr.warn(Sr.create("indexeddb-unavailable",{errorInfo:m?.toString()}).message),!1}return!0})).apply(this,arguments)}function Va(){return Va=(0,R.Z)(function*(m,D,N,he,Ue,st,_t){var $t;const Lt=function Yr(m){return ro.apply(this,arguments)}(m);Lt.then(ai=>{N[ai.measurementId]=ai.appId,m.options.measurementId&&ai.measurementId!==m.options.measurementId&&wr.warn(`The measurement ID in the local Firebase config (${m.options.measurementId}) does not match the measurement ID fetched from the server (${ai.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(ai=>wr.error(ai)),D.push(Lt);const en=function qr(){return No.apply(this,arguments)}().then(ai=>{if(ai)return he.getId()}),[yn,Dn]=yield Promise.all([Lt,en]);(function po(m){const D=window.document.getElementsByTagName("script");for(const N of Object.values(D))if(N.src&&N.src.includes(va)&&N.src.includes(m))return N;return null})(st)||function Po(m,D){const N=function Fa(m,D){let N;return window.trustedTypes&&(N=window.trustedTypes.createPolicy(m,D)),N}("firebase-js-sdk-policy",{createScriptURL:fo}),he=document.createElement("script"),Ue=`${va}?l=${m}&id=${D}`;he.src=N?N?.createScriptURL(Ue):Ue,he.async=!0,document.head.appendChild(he)}(st,yn.measurementId),Ro&&(Ue("consent","default",Ro),function ko(m){Ro=m}(void 0)),Ue("js",new Date);const si=null!==($t=_t?.config)&&void 0!==$t?$t:{};return si[dn]="firebase",si.update=!0,null!=Dn&&(si[ll]=Dn),Ue("config",yn.measurementId,si),_&&(Ue("set",_),function Ba(m){_=m}(void 0)),yn.measurementId}),Va.apply(this,arguments)}class Ec{constructor(D){this.app=D}_delete(){return delete go[this.app.options.appId],Promise.resolve()}}let go={},xl=[];const cl={};let _o,zi,mo="dataLayer",Qs=!1;function dl(m,D,N){!function ja(){const m=[];if((0,Y.ru)()&&m.push("This is a browser extension environment."),(0,Y.zI)()||m.push("Cookies are not available."),m.length>0){const D=m.map((he,Ue)=>`(${Ue+1}) ${he}`).join(" "),N=Sr.create("invalid-analytics-context",{errorInfo:D});wr.warn(N.message)}}();const he=m.options.appId;if(!he)throw Sr.create("no-app-id");if(!m.options.apiKey){if(!m.options.measurementId)throw Sr.create("no-api-key");wr.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 ${m.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=go[he])throw Sr.create("already-exists",{id:he});if(!Qs){!function ba(m){let D=[];Array.isArray(window[m])?D=window[m]:window[m]=D}(mo);const{wrappedGtag:st,gtagCore:_t}=function $r(m,D,N,he,Ue){let st=function(..._t){window[he].push(arguments)};return window[Ue]&&"function"==typeof window[Ue]&&(st=window[Ue]),window[Ue]=function La(m,D,N,he){function st(){return st=(0,R.Z)(function*(_t,...$t){try{if("event"===_t){const[Lt,en]=$t;yield function Rn(m,D,N,he,Ue){return js.apply(this,arguments)}(m,D,N,Lt,en)}else if("config"===_t){const[Lt,en]=$t;yield function Ca(m,D,N,he,Ue,st){return Mt.apply(this,arguments)}(m,D,N,he,Lt,en)}else if("consent"===_t){const[Lt]=$t;m("consent","update",Lt)}else if("get"===_t){const[Lt,en,yn]=$t;m("get",Lt,en,yn)}else if("set"===_t){const[Lt]=$t;m("set",Lt)}else m(_t,...$t)}catch(Lt){wr.error(Lt)}}),st.apply(this,arguments)}return function Ue(_t){return st.apply(this,arguments)}}(st,m,D,N),{gtagCore:st,wrappedGtag:window[Ue]}}(go,xl,cl,mo,"gtag");zi=st,_o=_t,Qs=!0}return go[he]=function vr(m,D,N,he,Ue,st,_t){return Va.apply(this,arguments)}(m,xl,cl,D,_o,mo,N),new Ec(m)}function wc(){return vo.apply(this,arguments)}function vo(){return(vo=(0,R.Z)(function*(){if((0,Y.ru)()||!(0,Y.zI)()||!(0,Y.hl)())return!1;try{return yield(0,Y.eu)()}catch{return!1}})).apply(this,arguments)}const Ua="@firebase/analytics";!function pl(){(0,K._registerComponent)(new W.wA(ga,(D,{options:N})=>dl(D.getProvider("app").getImmediate(),D.getProvider("installations-internal").getImmediate(),N),"PUBLIC")),(0,K._registerComponent)(new W.wA("analytics-internal",function m(D){try{const N=D.getProvider(ga).getImmediate();return{logEvent:(he,Ue,st)=>function _d(m,D,N,he){m=(0,Y.m9)(m),function I(m,D,N,he,Ue){return Z.apply(this,arguments)}(zi,go[m.app.options.appId],D,N,he).catch(Ue=>wr.error(Ue))}(N,he,Ue,st)}}catch(N){throw Sr.create("interop-component-reg-failed",{reason:N})}},"PRIVATE")),(0,K.registerVersion)(Ua,"0.10.0"),(0,K.registerVersion)(Ua,"0.10.0","esm2017")}();var Js=C(1954),$a=C(2631);const Nl=new class uu extends $a.v{}(class kl extends Js.o{constructor(D,N){super(D,N),this.scheduler=D,this.work=N}schedule(D,N=0){return N>0?super.schedule(D,N):(this.delay=N,this.state=D,this.scheduler.flush(this),this)}execute(D,N){return N>0||this.closed?super.execute(D,N):this._execute(D,N)}requestAsyncId(D,N,he=0){return null!=he&&he>0||null==he&&this.delay>0?super.requestAsyncId(D,N,he):(D.flush(this),0)}});var Mc=C(6321),Fo=C(9397),Fl=C(5137),za=C(3093);const gl=new o.GfV("7.6.1"),Da="__angularfire_symbol__analyticsIsSupportedValue",ea="__angularfire_symbol__analyticsIsSupported",zs="__angularfire_symbol__remoteConfigIsSupportedValue",ml="__angularfire_symbol__remoteConfigIsSupported",Ga="__angularfire_symbol__messagingIsSupportedValue",Wa="__angularfire_symbol__messagingIsSupported";function os(m,D,N){if(D){if(1===D.length)return D[0];const st=D.filter(_t=>_t.app===N);if(1===st.length)return st[0]}return N.container.getProvider(m).getImmediate({optional:!0})}globalThis[ea]||(globalThis[ea]=wc().then(m=>globalThis[Da]=m).catch(()=>globalThis[Da]=!1)),globalThis[Wa]||(globalThis[Wa]=bs().then(m=>globalThis[Ga]=m).catch(()=>globalThis[Ga]=!1)),globalThis[ml]||(globalThis[ml]=Qi().then(m=>globalThis[zs]=m).catch(()=>globalThis[zs]=!1));const wa=(m,D)=>{const N=D?[D]:(0,l.C6)(),he=[];return N.forEach(Ue=>{Ue.container.getProvider(m).instances.forEach(_t=>{he.includes(_t)||he.push(_t)})}),he};function ss(){}class _l{constructor(D,N=Nl){this.zone=D,this.delegate=N}now(){return this.delegate.now()}schedule(D,N,he){const Ue=this.zone;return this.delegate.schedule(function(_t){Ue.runGuarded(()=>{D.apply(this,[_t])})},N,he)}}class Sa{constructor(D){this.zone=D,this.task=null}call(D,N){const he=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",ss,{},ss,ss)),N.pipe((0,Fo.b)({next:he,complete:he,error:he})).subscribe(D).add(he)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let vl=(()=>{class m{constructor(N){this.ngZone=N,this.outsideAngular=N.runOutsideAngular(()=>new _l(Zone.current)),this.insideAngular=N.run(()=>new _l(Zone.current,Mc.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return m.\u0275fac=function(N){return new(N||m)(o.LFG(o.R0b))},m.\u0275prov=o.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function Fr(){const m=globalThis.\u0275AngularFireScheduler;if(!m)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 m}function Ka(m){return Fr(),function Ya(m){return function(N){return(N=N.lift(new Sa(m.ngZone))).pipe((0,Fl.R)(m.outsideAngular),(0,za.Q)(m.insideAngular))}}(Fr())(m)}},9058:(wt,Pe,C)=>{C.d(Pe,{$s:()=>Pt,BH:()=>ve,L:()=>ie,LL:()=>Ce,Pz:()=>me,UG:()=>ft,US:()=>W,ZB:()=>be,ZR:()=>Me,aH:()=>q,b$:()=>Rt,eu:()=>Xe,hl:()=>Ge,jU:()=>xt,m9:()=>cn,ne:()=>pe,pd:()=>G,r3:()=>Xt,ru:()=>Bt,tV:()=>V,uI:()=>Qe,vZ:()=>Vn,w1:()=>qt,xO:()=>Un,xb:()=>Sn,z$:()=>rt,zI:()=>Ze,zd:()=>ze});const K=function(Oe){const z=[];let U=0;for(let B=0;B<Oe.length;B++){let S=Oe.charCodeAt(B);S<128?z[U++]=S:S<2048?(z[U++]=S>>6|192,z[U++]=63&S|128):55296==(64512&S)&&B+1<Oe.length&&56320==(64512&Oe.charCodeAt(B+1))?(S=65536+((1023&S)<<10)+(1023&Oe.charCodeAt(++B)),z[U++]=S>>18|240,z[U++]=S>>12&63|128,z[U++]=S>>6&63|128,z[U++]=63&S|128):(z[U++]=S>>12|224,z[U++]=S>>6&63|128,z[U++]=63&S|128)}return z},W={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(Oe,z){if(!Array.isArray(Oe))throw Error("encodeByteArray takes an array as a parameter");this.init_();const U=z?this.byteToCharMapWebSafe_:this.byteToCharMap_,B=[];for(let S=0;S<Oe.length;S+=3){const H=Oe[S],j=S+1<Oe.length,L=j?Oe[S+1]:0,J=S+2<Oe.length,xe=J?Oe[S+2]:0;let at=(15&L)<<2|xe>>6,de=63&xe;J||(de=64,j||(at=64)),B.push(U[H>>2],U[(3&H)<<4|L>>4],U[at],U[de])}return B.join("")},encodeString(Oe,z){return this.HAS_NATIVE_SUPPORT&&!z?btoa(Oe):this.encodeByteArray(K(Oe),z)},decodeString(Oe,z){return this.HAS_NATIVE_SUPPORT&&!z?atob(Oe):function(Oe){const z=[];let U=0,B=0;for(;U<Oe.length;){const S=Oe[U++];if(S<128)z[B++]=String.fromCharCode(S);else if(S>191&&S<224){const H=Oe[U++];z[B++]=String.fromCharCode((31&S)<<6|63&H)}else if(S>239&&S<365){const J=((7&S)<<18|(63&Oe[U++])<<12|(63&Oe[U++])<<6|63&Oe[U++])-65536;z[B++]=String.fromCharCode(55296+(J>>10)),z[B++]=String.fromCharCode(56320+(1023&J))}else{const H=Oe[U++],j=Oe[U++];z[B++]=String.fromCharCode((15&S)<<12|(63&H)<<6|63&j)}}return z.join("")}(this.decodeStringToByteArray(Oe,z))},decodeStringToByteArray(Oe,z){this.init_();const U=z?this.charToByteMapWebSafe_:this.charToByteMap_,B=[];for(let S=0;S<Oe.length;){const H=U[Oe.charAt(S++)],L=S<Oe.length?U[Oe.charAt(S)]:0;++S;const xe=S<Oe.length?U[Oe.charAt(S)]:64;++S;const Se=S<Oe.length?U[Oe.charAt(S)]:64;if(++S,null==H||null==L||null==xe||null==Se)throw new re;B.push(H<<2|L>>4),64!==xe&&(B.push(L<<4&240|xe>>2),64!==Se&&B.push(xe<<6&192|Se))}return B},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let Oe=0;Oe<this.ENCODED_VALS.length;Oe++)this.byteToCharMap_[Oe]=this.ENCODED_VALS.charAt(Oe),this.charToByteMap_[this.byteToCharMap_[Oe]]=Oe,this.byteToCharMapWebSafe_[Oe]=this.ENCODED_VALS_WEBSAFE.charAt(Oe),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[Oe]]=Oe,Oe>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(Oe)]=Oe,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(Oe)]=Oe)}}};class re extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ie=function(Oe){return function(Oe){const z=K(Oe);return W.encodeByteArray(z,!0)}(Oe).replace(/\./g,"")},V=function(Oe){try{return W.decodeString(Oe,!0)}catch(z){console.error("base64Decode failed: ",z)}return null};function be(Oe,z){if(!(z instanceof Object))return z;switch(z.constructor){case Date:return new Date(z.getTime());case Object:void 0===Oe&&(Oe={});break;case Array:Oe=[];break;default:return z}for(const U in z)!z.hasOwnProperty(U)||!Ve(U)||(Oe[U]=be(Oe[U],z[U]));return Oe}function Ve(Oe){return"__proto__"!==Oe}const Ye=()=>{try{return function He(){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 Oe=process.env.__FIREBASE_DEFAULTS__;return Oe?JSON.parse(Oe):void 0})()||(()=>{if(typeof document>"u")return;let Oe;try{Oe=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const z=Oe&&V(Oe[1]);return z&&JSON.parse(z)})()}catch(Oe){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${Oe}`)}},q=()=>{var Oe;return null===(Oe=Ye())||void 0===Oe?void 0:Oe.config},me=Oe=>{var z;return null===(z=Ye())||void 0===z?void 0:z[`_${Oe}`]};class ve{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((z,U)=>{this.resolve=z,this.reject=U})}wrapCallback(z){return(U,B)=>{U?this.reject(U):this.resolve(B),"function"==typeof z&&(this.promise.catch(()=>{}),1===z.length?z(U):z(U,B))}}}function rt(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Qe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(rt())}function ft(){var Oe;const z=null===(Oe=Ye())||void 0===Oe?void 0:Oe.forceEnvironment;if("node"===z)return!0;if("browser"===z)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function xt(){return"object"==typeof self&&self.self===self}function Bt(){const Oe="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof Oe&&void 0!==Oe.id}function Rt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function qt(){const Oe=rt();return Oe.indexOf("MSIE ")>=0||Oe.indexOf("Trident/")>=0}function Ge(){try{return"object"==typeof indexedDB}catch{return!1}}function Xe(){return new Promise((Oe,z)=>{try{let U=!0;const B="validate-browser-context-for-indexeddb-analytics-module",S=self.indexedDB.open(B);S.onsuccess=()=>{S.result.close(),U||self.indexedDB.deleteDatabase(B),Oe(!0)},S.onupgradeneeded=()=>{U=!1},S.onerror=()=>{var H;z((null===(H=S.error)||void 0===H?void 0:H.message)||"")}}catch(U){z(U)}})}function Ze(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class Me extends Error{constructor(z,U,B){super(U),this.code=z,this.customData=B,this.name="FirebaseError",Object.setPrototypeOf(this,Me.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ce.prototype.create)}}class Ce{constructor(z,U,B){this.service=z,this.serviceName=U,this.errors=B}create(z,...U){const B=U[0]||{},S=`${this.service}/${z}`,H=this.errors[z],j=H?function Be(Oe,z){return Oe.replace(Fe,(U,B)=>{const S=z[B];return null!=S?String(S):`<${B}?>`})}(H,B):"Error";return new Me(S,`${this.serviceName}: ${j} (${S}).`,B)}}const Fe=/\{\$([^}]+)}/g;function Xt(Oe,z){return Object.prototype.hasOwnProperty.call(Oe,z)}function Sn(Oe){for(const z in Oe)if(Object.prototype.hasOwnProperty.call(Oe,z))return!1;return!0}function Vn(Oe,z){if(Oe===z)return!0;const U=Object.keys(Oe),B=Object.keys(z);for(const S of U){if(!B.includes(S))return!1;const H=Oe[S],j=z[S];if(xn(H)&&xn(j)){if(!Vn(H,j))return!1}else if(H!==j)return!1}for(const S of B)if(!U.includes(S))return!1;return!0}function xn(Oe){return null!==Oe&&"object"==typeof Oe}function Un(Oe){const z=[];for(const[U,B]of Object.entries(Oe))Array.isArray(B)?B.forEach(S=>{z.push(encodeURIComponent(U)+"="+encodeURIComponent(S))}):z.push(encodeURIComponent(U)+"="+encodeURIComponent(B));return z.length?"&"+z.join("&"):""}function ze(Oe){const z={};return Oe.replace(/^\?/,"").split("&").forEach(B=>{if(B){const[S,H]=B.split("=");z[decodeURIComponent(S)]=decodeURIComponent(H)}}),z}function G(Oe){const z=Oe.indexOf("?");if(!z)return"";const U=Oe.indexOf("#",z);return Oe.substring(z,U>0?U:void 0)}function pe(Oe,z){const U=new nt(Oe,z);return U.subscribe.bind(U)}class nt{constructor(z,U){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=U,this.task.then(()=>{z(this)}).catch(B=>{this.error(B)})}next(z){this.forEachObserver(U=>{U.next(z)})}error(z){this.forEachObserver(U=>{U.error(z)}),this.close(z)}complete(){this.forEachObserver(z=>{z.complete()}),this.close()}subscribe(z,U,B){let S;if(void 0===z&&void 0===U&&void 0===B)throw new Error("Missing Observer.");S=function Ke(Oe,z){if("object"!=typeof Oe||null===Oe)return!1;for(const U of z)if(U in Oe&&"function"==typeof Oe[U])return!0;return!1}(z,["next","error","complete"])?z:{next:z,error:U,complete:B},void 0===S.next&&(S.next=dt),void 0===S.error&&(S.error=dt),void 0===S.complete&&(S.complete=dt);const H=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?S.error(this.finalError):S.complete()}catch{}}),this.observers.push(S),H}unsubscribeOne(z){void 0===this.observers||void 0===this.observers[z]||(delete this.observers[z],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(z){if(!this.finalized)for(let U=0;U<this.observers.length;U++)this.sendOne(U,z)}sendOne(z,U){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[z])try{U(this.observers[z])}catch(B){typeof console<"u"&&console.error&&console.error(B)}})}close(z){this.finalized||(this.finalized=!0,void 0!==z&&(this.finalError=z),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function dt(){}const Ae=1e3,it=2,St=144e5,Et=.5;function Pt(Oe,z=Ae,U=it){const B=z*Math.pow(U,Oe),S=Math.round(Et*B*(Math.random()-.5)*2);return Math.min(St,B+S)}function cn(Oe){return Oe&&Oe._delegate?Oe._delegate:Oe}},4201:(wt,Pe,C)=>{C.d(Pe,{a:()=>K});var o=C(5879),l=C(4835),R=C(8184);let K=(()=>{var Y;class W{constructor(ue,ie){this._authService=ue,this._router=ie}canActivate(ue,ie){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}return(Y=W).\u0275fac=function(ue){return new(ue||Y)(o.LFG(l.$),o.LFG(R.F0))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),W})()},4835:(wt,Pe,C)=>{C.d(Pe,{$:()=>K});var o=C(5879),l=C(8184),R=C(2425);let K=(()=>{var Y;class W{constructor(ue,ie){this._router=ue,this.toaster=ie}login(ue){this._router.navigate([ue])}logout(){localStorage.removeItem("Token"),localStorage.removeItem("Domain"),this._router.navigate([""])}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!1}setLocalStorage(ue,ie){localStorage.setItem("posdomain",ue),localStorage.setItem("username",ie)}getUsernameLocalStorage(){return localStorage.getItem("username")}getDomainLocalStorage(){return localStorage.getItem("posdomain")}isLocalStorageExist(){let ue=localStorage.getItem("posdomain"),ie=localStorage.getItem("username"),V=!1;return ue&&ie&&(V=!0),V}}return(Y=W).\u0275fac=function(ue){return new(ue||Y)(o.LFG(l.F0),o.LFG(R._W))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),W})()},8017:(wt,Pe,C)=>{C.d(Pe,{O:()=>tt});var o=C(9862),l=C(5592),R=C(6321),K=C(93),Y=C(9360),W=C(4829),re=C(2306),ue=C(8251),ie=C(7103);const V=(0,re.d)($e=>function(Ye=null){$e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Ye});function Q($e,X){const{first:Ye,each:ut,with:Ne=be,scheduler:q=X??R.z,meta:me=null}=(0,K.q)($e)?{first:$e}:"number"==typeof $e?{each:$e}:$e;if(null==Ye&&null==ut)throw new TypeError("No timeout provided.");return(0,Y.e)((ve,ye)=>{let rt,Qe,ft=null,xt=0;const Bt=Rt=>{Qe=(0,ie.f)(ye,q,()=>{try{rt.unsubscribe(),(0,W.Xf)(Ne({meta:me,lastValue:ft,seen:xt})).subscribe(ye)}catch(Qt){ye.error(Qt)}},Rt)};rt=ve.subscribe((0,ue.x)(ye,Rt=>{Qe?.unsubscribe(),xt++,ye.next(ft=Rt),ut>0&&Bt(ut)},void 0,void 0,()=>{Qe?.closed||Qe?.unsubscribe(),ft=null})),!xt&&Bt(null!=Ye?"number"==typeof Ye?Ye:+Ye-q.now():ut)})}function be($e){throw new V($e)}var Ve=C(5879),He=C(2425);let tt=(()=>{var $e;class X{constructor(ut,Ne){this.http=ut,this.toastr=Ne}delete(ut,Ne){let q=localStorage.getItem("Token"),me=new o.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});return q&&(me=me.append("Authorization","Bearer "+q)),this.http.delete(ut,{body:Ne,headers:me})}post(ut,Ne,q=1e5){return new l.y(me=>{let ve=localStorage.getItem("Token"),ye=new o.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});ve&&(ye=ye.append("Authorization","Bearer "+ve)),this.http.post(ut,Ne,{headers:ye}).pipe(Q(q)).subscribe(Qe=>{me.next(Qe),me.complete()},Qe=>{if(200==Qe.status)me.next(Qe.error.text),me.complete();else{if(!this.unauthorizedErrorHandling(Qe)){let xt=this.errorMessageHandling(Qe);this.toastr.error(""!=xt.message?xt.message:"An unknown error has occured!",xt.header)}me.error(Qe)}})})}postFormData(ut,Ne,q=!0){return new l.y(me=>{let ve=localStorage.getItem("Token"),rt={headers:new o.WM({Authorization:"Bearer "+ve})};this.http.post(ut,Ne,rt).pipe(Q(1e5)).subscribe(Qe=>{me.next(Qe),me.complete()},Qe=>{if(200==Qe.status)me.next(Qe.error.text),me.complete();else{if(!this.unauthorizedErrorHandling(Qe)&&q){let xt=this.errorMessageHandling(Qe);this.toastr.error(""!=xt.message?xt.message:"An unknown error has occured!",xt.header)}me.error(Qe)}})})}unauthorizedErrorHandling(ut){let Ne=!1;return 401==ut.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Ne=!0),Ne}errorMessageHandling(ut){let Ne="API Error",q="Exception Message";return ut.error?(Ne="API Error - "+ut.status,ut.error.Message&&(q=ut.error.Message)):ut.message&&(Ne="API Error - "+ut.name,q=ut.message),{header:Ne,message:q}}get(ut,Ne=1e5){return new l.y(q=>{let me=localStorage.getItem("Token"),ve=new o.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});me&&(ve=ve.append("Authorization","Bearer "+me)),this.http.get(ut,{headers:ve}).pipe(Q(Ne)).subscribe(rt=>{q.next(rt),q.complete()},rt=>{if(200==rt.status)q.next(rt.error.text),q.complete();else{if(!this.unauthorizedErrorHandling(rt)){let ft=this.errorMessageHandling(rt);this.toastr.error(""!=ft.message?ft.message:"An unknown error has occured!",ft.header)}q.error(rt)}})})}}return($e=X).\u0275fac=function(ut){return new(ut||$e)(Ve.LFG(o.eN),Ve.LFG(He._W))},$e.\u0275prov=Ve.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),X})()},5123:(wt,Pe,C)=>{C.d(Pe,{_:()=>Ve});var o=C(5879),l=C(7700),R=C(6814),K=C(4843),Y=C(7238);function W(tt,$e){1&tt&&(o.ynx(0),o.TgZ(1,"th",8),o._uU(2,"Page Number"),o.qZA(),o.TgZ(3,"th",8),o._uU(4,"Page Size"),o.qZA(),o.BQk())}function re(tt,$e){if(1&tt&&(o.ynx(0),o.TgZ(1,"td",11),o._uU(2),o.ALo(3,"number"),o.qZA(),o.TgZ(4,"td",11),o._uU(5),o.ALo(6,"number"),o.qZA(),o.BQk()),2&tt){const X=o.oxw();o.xp6(2),o.hij(" ",o.lcZ(3,2,null==X.data||null==X.data.Content?null:X.data.Content.PageNumber)," "),o.xp6(3),o.hij(" ",o.lcZ(6,4,null==X.data||null==X.data.Content?null:X.data.Content.RowCount)," ")}}function ue(tt,$e){if(1&tt&&(o.ynx(0),o.TgZ(1,"li")(2,"a",19),o._uU(3),o.qZA()(),o.BQk()),2&tt){const X=$e.$implicit;o.xp6(2),o.Q6J("href",X.imageUrl,o.LSH),o.xp6(1),o.hij(" ",X.fileName," ")}}function ie(tt,$e){if(1&tt&&(o.ynx(0),o.TgZ(1,"div",12)(2,"div",3)(3,"div",13)(4,"div",14),o._UZ(5,"i",15),o.TgZ(6,"div",16),o._uU(7," Some images failed to migrate. Please check the file "),o.qZA()(),o.TgZ(8,"ol",17),o.YNc(9,ue,4,2,"ng-container",18),o.qZA()()()(),o.BQk()),2&tt){const X=o.oxw();o.xp6(9),o.Q6J("ngForOf",X.failedMigrate())}}let V=(()=>{var tt;class $e{constructor(Ye){this.data=Ye,this.dialogRef=(0,o.f3M)(l.so),this.failedMigrate=(0,o.tdS)([]),this.initFailedMigrate()}initFailedMigrate(){this.failedMigrate.update(()=>this.data.Content?.Image_failed?.map(ut=>{let Ne=ut.split("/");return{fileName:Ne[Ne.length-1],imageUrl:ut}}))}ngOnInit(){this.modalConfig=new K.O,this.modalConfig.title="Migrate Complete",this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="600px"}onClose(){this.dialogRef.close()}}return(tt=$e).\u0275fac=function(Ye){return new(Ye||tt)(o.Y36(l.WI))},tt.\u0275cmp=o.Xpm({type:tt,selectors:[["app-modal-migrate-notification"]],standalone:!0,features:[o.jDz],decls:24,vars:10,consts:[[3,"config","onCancel","onClose"],[1,"container"],[1,"row"],[1,"col-12"],[1,"table-responsive"],[1,"table","table-bordered"],[1,"thead-light"],[4,"ngIf"],[1,"text-center"],[1,"text-center","fw-bold","text-success"],[1,"text-center","fw-bold","text-danger"],[1,"text-center","fw-bold"],[1,"row","mt-5"],[1,"text-break"],[1,"d-flex","justify-content-start","mt-5","align-items-center","bg-warning-subtle","ps-3","py-2","rounded-1"],[1,"fa-solid","fa-triangle-exclamation","text-warning","me-2","fs-5"],[1,"fs-5","fw-bold"],[1,"mt-3"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"]],template:function(Ye,ut){1&Ye&&(o.TgZ(0,"modal-material",0),o.NdJ("onCancel",function(){return ut.onClose()})("onClose",function(){return ut.onClose()}),o.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"table",5)(7,"thead",6)(8,"tr"),o.YNc(9,W,5,0,"ng-container",7),o.TgZ(10,"th",8),o._uU(11,"Success"),o.qZA(),o.TgZ(12,"th",8),o._uU(13,"Fail"),o.qZA()()(),o.TgZ(14,"tbody")(15,"tr"),o.YNc(16,re,7,6,"ng-container",7),o.TgZ(17,"td",9),o._uU(18),o.ALo(19,"number"),o.qZA(),o.TgZ(20,"td",10),o._uU(21),o.ALo(22,"number"),o.qZA()()()()()()(),o.YNc(23,ie,10,1,"ng-container",7),o.qZA()()()),2&Ye&&(o.Q6J("config",ut.modalConfig),o.xp6(9),o.Q6J("ngIf",(null==ut.data||null==ut.data.Content?null:ut.data.Content.PageNumber)&&(null==ut.data||null==ut.data.Content?null:ut.data.Content.RowCount)),o.xp6(7),o.Q6J("ngIf",(null==ut.data||null==ut.data.Content?null:ut.data.Content.PageNumber)&&(null==ut.data||null==ut.data.Content?null:ut.data.Content.RowCount)),o.xp6(2),o.hij(" ",o.lcZ(19,6,null==ut.data||null==ut.data.Content?null:ut.data.Content.Success)," "),o.xp6(3),o.hij(" ",o.lcZ(22,8,null==ut.data||null==ut.data.Content?null:ut.data.Content.Failed)," "),o.xp6(2),o.Q6J("ngIf",ut.failedMigrate().length>0))},dependencies:[R.ez,R.sg,R.O5,R.JJ,Y.d,Y.M]}),$e})();var Q=C(1379),be=C(2425);let Ve=(()=>{var tt;class $e{get domain(){let Ye=`${localStorage.getItem("posdomain")}`;return Ye.includes("localhost")&&(Ye="localhost:5001"),Ye}constructor(Ye,ut){this.signalrService=Ye,this.toastr=ut,this.dialog=(0,o.f3M)(l.uw),this.subscribeMigrateNotification(),this.subscribeGroup()}subscribeGroup(){this.signalrService.subscribeGroup(this.domain)}subscribeMigrateNotification(){this.signalrService.migrateNotification$.subscribe(Ye=>{const ut=Ye?JSON.parse(Ye):null;ut&&this.dialog.open(V,{data:ut})})}}return(tt=$e).\u0275fac=function(Ye){return new(Ye||tt)(o.LFG(Q.Y),o.LFG(be._W))},tt.\u0275prov=o.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),$e})()},1379:(wt,Pe,C)=>{C.d(Pe,{Y:()=>vt});var o=C(8645);const l=[0,2e3,1e4,3e4,null];class R{constructor(y){this._retryDelays=void 0!==y?[...y,null]:l}nextRetryDelayInMilliseconds(y){return this._retryDelays[y.previousRetryCount]}}var K=C(5861);let Y=(()=>{class Re{}return Re.Authorization="Authorization",Re.Cookie="Cookie",Re})();class W{constructor(y,P,ee){this.statusCode=y,this.statusText=P,this.content=ee}}class re{get(y,P){return this.send({...P,method:"GET",url:y})}post(y,P){return this.send({...P,method:"POST",url:y})}delete(y,P){return this.send({...P,method:"DELETE",url:y})}getCookieString(y){return""}}class ue extends re{constructor(y,P){super(),this._innerClient=y,this._accessTokenFactory=P}send(y){var P=this;return(0,K.Z)(function*(){let ee=!0;P._accessTokenFactory&&(!P._accessToken||y.url&&y.url.indexOf("/negotiate?")>0)&&(ee=!1,P._accessToken=yield P._accessTokenFactory()),P._setAuthorizationHeader(y);const Ae=yield P._innerClient.send(y);return ee&&401===Ae.statusCode&&P._accessTokenFactory?(P._accessToken=yield P._accessTokenFactory(),P._setAuthorizationHeader(y),yield P._innerClient.send(y)):Ae})()}_setAuthorizationHeader(y){y.headers||(y.headers={}),this._accessToken?y.headers[Y.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&y.headers[Y.Authorization]&&delete y.headers[Y.Authorization]}getCookieString(y){return this._innerClient.getCookieString(y)}}class ie extends Error{constructor(y,P){const ee=new.target.prototype;super(`${y}: Status code '${P}'`),this.statusCode=P,this.__proto__=ee}}class V extends Error{constructor(y="A timeout occurred."){const P=new.target.prototype;super(y),this.__proto__=P}}class Q extends Error{constructor(y="An abort occurred."){const P=new.target.prototype;super(y),this.__proto__=P}}class be extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.transport=P,this.errorType="UnsupportedTransportError",this.__proto__=ee}}class Ve extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.transport=P,this.errorType="DisabledTransportError",this.__proto__=ee}}class He extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.transport=P,this.errorType="FailedToStartTransportError",this.__proto__=ee}}class tt extends Error{constructor(y){const P=new.target.prototype;super(y),this.errorType="FailedToNegotiateWithServerError",this.__proto__=P}}class $e extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.innerErrors=P,this.__proto__=ee}}var X=function(Re){return Re[Re.Trace=0]="Trace",Re[Re.Debug=1]="Debug",Re[Re.Information=2]="Information",Re[Re.Warning=3]="Warning",Re[Re.Error=4]="Error",Re[Re.Critical=5]="Critical",Re[Re.None=6]="None",Re}(X||{});class Ye{constructor(){}log(y,P){}}Ye.instance=new Ye;const ut="8.0.7";class Ne{static isRequired(y,P){if(null==y)throw new Error(`The '${P}' argument is required.`)}static isNotEmpty(y,P){if(!y||y.match(/^\s*$/))throw new Error(`The '${P}' argument should not be empty.`)}static isIn(y,P,ee){if(!(y in P))throw new Error(`Unknown ${ee} value: ${y}.`)}}class q{static get isBrowser(){return!q.isNode&&"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return!q.isNode&&"object"==typeof self&&"importScripts"in self}static get isReactNative(){return!q.isNode&&"object"==typeof window&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&"node"===process.release.name}}function me(Re,y){let P="";return ye(Re)?(P=`Binary data of length ${Re.byteLength}`,y&&(P+=`. Content: '${function ve(Re){const y=new Uint8Array(Re);let P="";return y.forEach(ee=>{P+=`0x${ee<16?"0":""}${ee.toString(16)} `}),P.substr(0,P.length-1)}(Re)}'`)):"string"==typeof Re&&(P=`String data of length ${Re.length}`,y&&(P+=`. Content: '${Re}'`)),P}function ye(Re){return Re&&typeof ArrayBuffer<"u"&&(Re instanceof ArrayBuffer||Re.constructor&&"ArrayBuffer"===Re.constructor.name)}function rt(Re,y,P,ee,Ae,it){return Qe.apply(this,arguments)}function Qe(){return(Qe=(0,K.Z)(function*(Re,y,P,ee,Ae,it){const St={},[Et,Pt]=Rt();St[Et]=Pt,Re.log(X.Trace,`(${y} transport) sending data. ${me(Ae,it.logMessageContent)}.`);const Ht=ye(Ae)?"arraybuffer":"text",Yt=yield P.post(ee,{content:Ae,headers:{...St,...it.headers},responseType:Ht,timeout:it.timeout,withCredentials:it.withCredentials});Re.log(X.Trace,`(${y} transport) request complete. Response status: ${Yt.statusCode}.`)})).apply(this,arguments)}class xt{constructor(y,P){this._subject=y,this._observer=P}dispose(){const y=this._subject.observers.indexOf(this._observer);y>-1&&this._subject.observers.splice(y,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(P=>{})}}class Bt{constructor(y){this._minLevel=y,this.out=console}log(y,P){if(y>=this._minLevel){const ee=`[${(new Date).toISOString()}] ${X[y]}: ${P}`;switch(y){case X.Critical:case X.Error:this.out.error(ee);break;case X.Warning:this.out.warn(ee);break;case X.Information:this.out.info(ee);break;default:this.out.log(ee)}}}}function Rt(){let Re="X-SignalR-User-Agent";return q.isNode&&(Re="User-Agent"),[Re,Qt(ut,qt(),q.isNode?"NodeJS":"Browser",sn())]}function Qt(Re,y,P,ee){let Ae="Microsoft SignalR/";const it=Re.split(".");return Ae+=`${it[0]}.${it[1]}`,Ae+=` (${Re}; `,Ae+=y&&""!==y?`${y}; `:"Unknown OS; ",Ae+=`${P}`,Ae+=ee?`; ${ee}`:"; Unknown Runtime Version",Ae+=")",Ae}function qt(){if(!q.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function sn(){if(q.isNode)return process.versions.node}function wn(Re){return Re.stack?Re.stack:Re.message?Re.message:`${Re}`}class Xe extends re{constructor(y){if(super(),this._logger=y,typeof fetch>"u"||q.isNode){const P=require;this._jar=new(P("tough-cookie").CookieJar),this._fetchType=typeof fetch>"u"?P("node-fetch"):fetch,this._fetchType=P("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function Ge(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const P=require;this._abortControllerType=P("abort-controller")}else this._abortControllerType=AbortController}send(y){var P=this;return(0,K.Z)(function*(){if(y.abortSignal&&y.abortSignal.aborted)throw new Q;if(!y.method)throw new Error("No method defined.");if(!y.url)throw new Error("No url defined.");const ee=new P._abortControllerType;let Ae;y.abortSignal&&(y.abortSignal.onabort=()=>{ee.abort(),Ae=new Q});let St,it=null;y.timeout&&(it=setTimeout(()=>{ee.abort(),P._logger.log(X.Warning,"Timeout from HTTP request."),Ae=new V},y.timeout)),""===y.content&&(y.content=void 0),y.content&&(y.headers=y.headers||{},y.headers["Content-Type"]=ye(y.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{St=yield P._fetchType(y.url,{body:y.content,cache:"no-cache",credentials:!0===y.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...y.headers},method:y.method,mode:"cors",redirect:"follow",signal:ee.signal})}catch(Ht){throw Ae||(P._logger.log(X.Warning,`Error from HTTP request. ${Ht}.`),Ht)}finally{it&&clearTimeout(it),y.abortSignal&&(y.abortSignal.onabort=null)}if(!St.ok){const Ht=yield Ze(St,"text");throw new ie(Ht||St.statusText,St.status)}const Pt=yield Ze(St,y.responseType);return new W(St.status,St.statusText,Pt)})()}getCookieString(y){let P="";return q.isNode&&this._jar&&this._jar.getCookies(y,(ee,Ae)=>P=Ae.join("; ")),P}}function Ze(Re,y){let P;switch(y){case"arraybuffer":P=Re.arrayBuffer();break;case"text":default:P=Re.text();break;case"blob":case"document":case"json":throw new Error(`${y} is not supported.`)}return P}class De extends re{constructor(y){super(),this._logger=y}send(y){return y.abortSignal&&y.abortSignal.aborted?Promise.reject(new Q):y.method?y.url?new Promise((P,ee)=>{const Ae=new XMLHttpRequest;Ae.open(y.method,y.url,!0),Ae.withCredentials=void 0===y.withCredentials||y.withCredentials,Ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===y.content&&(y.content=void 0),y.content&&(ye(y.content)?Ae.setRequestHeader("Content-Type","application/octet-stream"):Ae.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const it=y.headers;it&&Object.keys(it).forEach(St=>{Ae.setRequestHeader(St,it[St])}),y.responseType&&(Ae.responseType=y.responseType),y.abortSignal&&(y.abortSignal.onabort=()=>{Ae.abort(),ee(new Q)}),y.timeout&&(Ae.timeout=y.timeout),Ae.onload=()=>{y.abortSignal&&(y.abortSignal.onabort=null),Ae.status>=200&&Ae.status<300?P(new W(Ae.status,Ae.statusText,Ae.response||Ae.responseText)):ee(new ie(Ae.response||Ae.responseText||Ae.statusText,Ae.status))},Ae.onerror=()=>{this._logger.log(X.Warning,`Error from HTTP request. ${Ae.status}: ${Ae.statusText}.`),ee(new ie(Ae.statusText,Ae.status))},Ae.ontimeout=()=>{this._logger.log(X.Warning,"Timeout from HTTP request."),ee(new V)},Ae.send(y.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Me extends re{constructor(y){if(super(),typeof fetch<"u"||q.isNode)this._httpClient=new Xe(y);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new De(y)}}send(y){return y.abortSignal&&y.abortSignal.aborted?Promise.reject(new Q):y.method?y.url?this._httpClient.send(y):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(y){return this._httpClient.getCookieString(y)}}var Ce=function(Re){return Re[Re.None=0]="None",Re[Re.WebSockets=1]="WebSockets",Re[Re.ServerSentEvents=2]="ServerSentEvents",Re[Re.LongPolling=4]="LongPolling",Re}(Ce||{}),Be=function(Re){return Re[Re.Text=1]="Text",Re[Re.Binary=2]="Binary",Re}(Be||{});class Fe{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class ke{get pollAborted(){return this._pollAbort.aborted}constructor(y,P,ee){this._httpClient=y,this._logger=P,this._pollAbort=new Fe,this._options=ee,this._running=!1,this.onreceive=null,this.onclose=null}connect(y,P){var ee=this;return(0,K.Z)(function*(){if(Ne.isRequired(y,"url"),Ne.isRequired(P,"transferFormat"),Ne.isIn(P,Be,"transferFormat"),ee._url=y,ee._logger.log(X.Trace,"(LongPolling transport) Connecting."),P===Be.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[Ae,it]=Rt(),St={[Ae]:it,...ee._options.headers},Et={abortSignal:ee._pollAbort.signal,headers:St,timeout:1e5,withCredentials:ee._options.withCredentials};P===Be.Binary&&(Et.responseType="arraybuffer");const Pt=`${y}&_=${Date.now()}`;ee._logger.log(X.Trace,`(LongPolling transport) polling: ${Pt}.`);const Ht=yield ee._httpClient.get(Pt,Et);200!==Ht.statusCode?(ee._logger.log(X.Error,`(LongPolling transport) Unexpected response code: ${Ht.statusCode}.`),ee._closeError=new ie(Ht.statusText||"",Ht.statusCode),ee._running=!1):ee._running=!0,ee._receiving=ee._poll(ee._url,Et)})()}_poll(y,P){var ee=this;return(0,K.Z)(function*(){try{for(;ee._running;)try{const Ae=`${y}&_=${Date.now()}`;ee._logger.log(X.Trace,`(LongPolling transport) polling: ${Ae}.`);const it=yield ee._httpClient.get(Ae,P);204===it.statusCode?(ee._logger.log(X.Information,"(LongPolling transport) Poll terminated by server."),ee._running=!1):200!==it.statusCode?(ee._logger.log(X.Error,`(LongPolling transport) Unexpected response code: ${it.statusCode}.`),ee._closeError=new ie(it.statusText||"",it.statusCode),ee._running=!1):it.content?(ee._logger.log(X.Trace,`(LongPolling transport) data received. ${me(it.content,ee._options.logMessageContent)}.`),ee.onreceive&&ee.onreceive(it.content)):ee._logger.log(X.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(Ae){ee._running?Ae instanceof V?ee._logger.log(X.Trace,"(LongPolling transport) Poll timed out, reissuing."):(ee._closeError=Ae,ee._running=!1):ee._logger.log(X.Trace,`(LongPolling transport) Poll errored after shutdown: ${Ae.message}`)}}finally{ee._logger.log(X.Trace,"(LongPolling transport) Polling complete."),ee.pollAborted||ee._raiseOnClose()}})()}send(y){var P=this;return(0,K.Z)(function*(){return P._running?rt(P._logger,"LongPolling",P._httpClient,P._url,y,P._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var y=this;return(0,K.Z)(function*(){y._logger.log(X.Trace,"(LongPolling transport) Stopping polling."),y._running=!1,y._pollAbort.abort();try{yield y._receiving,y._logger.log(X.Trace,`(LongPolling transport) sending DELETE request to ${y._url}.`);const P={},[ee,Ae]=Rt();P[ee]=Ae;const it={headers:{...P,...y._options.headers},timeout:y._options.timeout,withCredentials:y._options.withCredentials};let St;try{yield y._httpClient.delete(y._url,it)}catch(Et){St=Et}St?St instanceof ie&&y._logger.log(X.Trace,404===St.statusCode?"(LongPolling transport) A 404 response was returned from sending a DELETE request.":`(LongPolling transport) Error sending a DELETE request: ${St}`):y._logger.log(X.Trace,"(LongPolling transport) DELETE request accepted.")}finally{y._logger.log(X.Trace,"(LongPolling transport) Stop finished."),y._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let y="(LongPolling transport) Firing onclose event.";this._closeError&&(y+=" Error: "+this._closeError),this._logger.log(X.Trace,y),this.onclose(this._closeError)}}}class Ct{constructor(y,P,ee,Ae){this._httpClient=y,this._accessToken=P,this._logger=ee,this._options=Ae,this.onreceive=null,this.onclose=null}connect(y,P){var ee=this;return(0,K.Z)(function*(){return Ne.isRequired(y,"url"),Ne.isRequired(P,"transferFormat"),Ne.isIn(P,Be,"transferFormat"),ee._logger.log(X.Trace,"(SSE transport) Connecting."),ee._url=y,ee._accessToken&&(y+=(y.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(ee._accessToken)}`),new Promise((Ae,it)=>{let Et,St=!1;if(P===Be.Text){if(q.isBrowser||q.isWebWorker)Et=new ee._options.EventSource(y,{withCredentials:ee._options.withCredentials});else{const Pt=ee._httpClient.getCookieString(y),Ht={};Ht.Cookie=Pt;const[Yt,cn]=Rt();Ht[Yt]=cn,Et=new ee._options.EventSource(y,{withCredentials:ee._options.withCredentials,headers:{...Ht,...ee._options.headers}})}try{Et.onmessage=Pt=>{if(ee.onreceive)try{ee._logger.log(X.Trace,`(SSE transport) data received. ${me(Pt.data,ee._options.logMessageContent)}.`),ee.onreceive(Pt.data)}catch(Ht){return void ee._close(Ht)}},Et.onerror=Pt=>{St?ee._close():it(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},Et.onopen=()=>{ee._logger.log(X.Information,`SSE connected to ${ee._url}`),ee._eventSource=Et,St=!0,Ae()}}catch(Pt){return void it(Pt)}}else it(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(y){var P=this;return(0,K.Z)(function*(){return P._eventSource?rt(P._logger,"SSE",P._httpClient,P._url,y,P._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(y){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(y))}}class Nt{constructor(y,P,ee,Ae,it,St){this._logger=ee,this._accessTokenFactory=P,this._logMessageContent=Ae,this._webSocketConstructor=it,this._httpClient=y,this.onreceive=null,this.onclose=null,this._headers=St}connect(y,P){var ee=this;return(0,K.Z)(function*(){let Ae;return Ne.isRequired(y,"url"),Ne.isRequired(P,"transferFormat"),Ne.isIn(P,Be,"transferFormat"),ee._logger.log(X.Trace,"(WebSockets transport) Connecting."),ee._accessTokenFactory&&(Ae=yield ee._accessTokenFactory()),new Promise((it,St)=>{let Et;y=y.replace(/^http/,"ws");const Pt=ee._httpClient.getCookieString(y);let Ht=!1;if(q.isNode||q.isReactNative){const Yt={},[cn,Oe]=Rt();Yt[cn]=Oe,Ae&&(Yt[Y.Authorization]=`Bearer ${Ae}`),Pt&&(Yt[Y.Cookie]=Pt),Et=new ee._webSocketConstructor(y,void 0,{headers:{...Yt,...ee._headers}})}else Ae&&(y+=(y.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Ae)}`);Et||(Et=new ee._webSocketConstructor(y)),P===Be.Binary&&(Et.binaryType="arraybuffer"),Et.onopen=Yt=>{ee._logger.log(X.Information,`WebSocket connected to ${y}.`),ee._webSocket=Et,Ht=!0,it()},Et.onerror=Yt=>{let cn=null;cn=typeof ErrorEvent<"u"&&Yt instanceof ErrorEvent?Yt.error:"There was an error with the transport",ee._logger.log(X.Information,`(WebSockets transport) ${cn}.`)},Et.onmessage=Yt=>{if(ee._logger.log(X.Trace,`(WebSockets transport) data received. ${me(Yt.data,ee._logMessageContent)}.`),ee.onreceive)try{ee.onreceive(Yt.data)}catch(cn){return void ee._close(cn)}},Et.onclose=Yt=>{if(Ht)ee._close(Yt);else{let cn=null;cn=typeof ErrorEvent<"u"&&Yt instanceof ErrorEvent?Yt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",St(new Error(cn))}}})})()}send(y){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(X.Trace,`(WebSockets transport) sending data. ${me(y,this._logMessageContent)}.`),this._webSocket.send(y),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(y){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(X.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(y)||!1!==y.wasClean&&1e3===y.code?y instanceof Error?this.onclose(y):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${y.code} (${y.reason||"no reason given"}).`)))}_isCloseEvent(y){return y&&"boolean"==typeof y.wasClean&&"number"==typeof y.code}}class Kt{constructor(y,P={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Ne.isRequired(y,"url"),this._logger=function ft(Re){return void 0===Re?new Bt(X.Information):null===Re?Ye.instance:void 0!==Re.log?Re:new Bt(Re)}(P.logger),this.baseUrl=this._resolveUrl(y),(P=P||{}).logMessageContent=void 0!==P.logMessageContent&&P.logMessageContent,"boolean"!=typeof P.withCredentials&&void 0!==P.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");P.withCredentials=void 0===P.withCredentials||P.withCredentials,P.timeout=void 0===P.timeout?1e5:P.timeout;let ee=null,Ae=null;if(q.isNode){const it=require;ee=it("ws"),Ae=it("eventsource")}!q.isNode&&typeof WebSocket<"u"&&!P.WebSocket?P.WebSocket=WebSocket:q.isNode&&!P.WebSocket&&ee&&(P.WebSocket=ee),!q.isNode&&typeof EventSource<"u"&&!P.EventSource?P.EventSource=EventSource:q.isNode&&!P.EventSource&&typeof Ae<"u"&&(P.EventSource=Ae),this._httpClient=new ue(P.httpClient||new Me(this._logger),P.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=P,this.onreceive=null,this.onclose=null}start(y){var P=this;return(0,K.Z)(function*(){if(Ne.isIn(y=y||Be.Binary,Be,"transferFormat"),P._logger.log(X.Debug,`Starting connection with transfer format '${Be[y]}'.`),"Disconnected"!==P._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(P._connectionState="Connecting",P._startInternalPromise=P._startInternal(y),yield P._startInternalPromise,"Disconnecting"===P._connectionState){const ee="Failed to start the HttpConnection before stop() was called.";return P._logger.log(X.Error,ee),yield P._stopPromise,Promise.reject(new Q(ee))}if("Connected"!==P._connectionState){const ee="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return P._logger.log(X.Error,ee),Promise.reject(new Q(ee))}P._connectionStarted=!0})()}send(y){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new rn(this.transport)),this._sendQueue.send(y))}stop(y){var P=this;return(0,K.Z)(function*(){return"Disconnected"===P._connectionState?(P._logger.log(X.Debug,`Call to HttpConnection.stop(${y}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===P._connectionState?(P._logger.log(X.Debug,`Call to HttpConnection.stop(${y}) ignored because the connection is already in the disconnecting state.`),P._stopPromise):(P._connectionState="Disconnecting",P._stopPromise=new Promise(ee=>{P._stopPromiseResolver=ee}),yield P._stopInternal(y),void(yield P._stopPromise))})()}_stopInternal(y){var P=this;return(0,K.Z)(function*(){P._stopError=y;try{yield P._startInternalPromise}catch{}if(P.transport){try{yield P.transport.stop()}catch(ee){P._logger.log(X.Error,`HttpConnection.transport.stop() threw error '${ee}'.`),P._stopConnection()}P.transport=void 0}else P._logger.log(X.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(y){var P=this;return(0,K.Z)(function*(){let ee=P.baseUrl;P._accessTokenFactory=P._options.accessTokenFactory,P._httpClient._accessTokenFactory=P._accessTokenFactory;try{if(P._options.skipNegotiation){if(P._options.transport!==Ce.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");P.transport=P._constructTransport(Ce.WebSockets),yield P._startTransport(ee,y)}else{let Ae=null,it=0;do{if(Ae=yield P._getNegotiationResponse(ee),"Disconnecting"===P._connectionState||"Disconnected"===P._connectionState)throw new Q("The connection was stopped during negotiation.");if(Ae.error)throw new Error(Ae.error);if(Ae.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(Ae.url&&(ee=Ae.url),Ae.accessToken){const St=Ae.accessToken;P._accessTokenFactory=()=>St,P._httpClient._accessToken=St,P._httpClient._accessTokenFactory=void 0}it++}while(Ae.url&&it<100);if(100===it&&Ae.url)throw new Error("Negotiate redirection limit exceeded.");yield P._createTransport(ee,P._options.transport,Ae,y)}P.transport instanceof ke&&(P.features.inherentKeepAlive=!0),"Connecting"===P._connectionState&&(P._logger.log(X.Debug,"The HttpConnection connected successfully."),P._connectionState="Connected")}catch(Ae){return P._logger.log(X.Error,"Failed to start the connection: "+Ae),P._connectionState="Disconnected",P.transport=void 0,P._stopPromiseResolver(),Promise.reject(Ae)}})()}_getNegotiationResponse(y){var P=this;return(0,K.Z)(function*(){const ee={},[Ae,it]=Rt();ee[Ae]=it;const St=P._resolveNegotiateUrl(y);P._logger.log(X.Debug,`Sending negotiation request: ${St}.`);try{const Et=yield P._httpClient.post(St,{content:"",headers:{...ee,...P._options.headers},timeout:P._options.timeout,withCredentials:P._options.withCredentials});if(200!==Et.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Et.statusCode}'`));const Pt=JSON.parse(Et.content);return(!Pt.negotiateVersion||Pt.negotiateVersion<1)&&(Pt.connectionToken=Pt.connectionId),Pt.useStatefulReconnect&&!0!==P._options._useStatefulReconnect?Promise.reject(new tt("Client didn't negotiate Stateful Reconnect but the server did.")):Pt}catch(Et){let Pt="Failed to complete negotiation with the server: "+Et;return Et instanceof ie&&404===Et.statusCode&&(Pt+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),P._logger.log(X.Error,Pt),Promise.reject(new tt(Pt))}})()}_createConnectUrl(y,P){return P?y+(-1===y.indexOf("?")?"?":"&")+`id=${P}`:y}_createTransport(y,P,ee,Ae){var it=this;return(0,K.Z)(function*(){let St=it._createConnectUrl(y,ee.connectionToken);if(it._isITransport(P))return it._logger.log(X.Debug,"Connection was provided an instance of ITransport, using that directly."),it.transport=P,yield it._startTransport(St,Ae),void(it.connectionId=ee.connectionId);const Et=[],Pt=ee.availableTransports||[];let Ht=ee;for(const Yt of Pt){const cn=it._resolveTransportOrError(Yt,P,Ae,!0===Ht?.useStatefulReconnect);if(cn instanceof Error)Et.push(`${Yt.transport} failed:`),Et.push(cn);else if(it._isITransport(cn)){if(it.transport=cn,!Ht){try{Ht=yield it._getNegotiationResponse(y)}catch(Oe){return Promise.reject(Oe)}St=it._createConnectUrl(y,Ht.connectionToken)}try{return yield it._startTransport(St,Ae),void(it.connectionId=Ht.connectionId)}catch(Oe){if(it._logger.log(X.Error,`Failed to start the transport '${Yt.transport}': ${Oe}`),Ht=void 0,Et.push(new He(`${Yt.transport} failed: ${Oe}`,Ce[Yt.transport])),"Connecting"!==it._connectionState){const z="Failed to select transport before stop() was called.";return it._logger.log(X.Debug,z),Promise.reject(new Q(z))}}}}return Promise.reject(Et.length>0?new $e(`Unable to connect to the server with any of the available transports. ${Et.join(" ")}`,Et):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(y){switch(y){case Ce.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Nt(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Ce.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ct(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Ce.LongPolling:return new ke(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${y}.`)}}_startTransport(y,P){var ee=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=this.features.reconnect?function(){var Ae=(0,K.Z)(function*(it){let St=!1;if(ee.features.reconnect){try{ee.features.disconnected(),yield ee.transport.connect(y,P),yield ee.features.resend()}catch{St=!0}St&&ee._stopConnection(it)}else ee._stopConnection(it)});return function(it){return Ae.apply(this,arguments)}}():Ae=>this._stopConnection(Ae),this.transport.connect(y,P)}_resolveTransportOrError(y,P,ee,Ae){const it=Ce[y.transport];if(null==it)return this._logger.log(X.Debug,`Skipping transport '${y.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${y.transport}' because it is not supported by this client.`);if(!function nn(Re,y){return!Re||0!=(y&Re)}(P,it))return this._logger.log(X.Debug,`Skipping transport '${Ce[it]}' because it was disabled by the client.`),new Ve(`'${Ce[it]}' is disabled by the client.`,it);if(!(y.transferFormats.map(Et=>Be[Et]).indexOf(ee)>=0))return this._logger.log(X.Debug,`Skipping transport '${Ce[it]}' because it does not support the requested transfer format '${Be[ee]}'.`),new Error(`'${Ce[it]}' does not support ${Be[ee]}.`);if(it===Ce.WebSockets&&!this._options.WebSocket||it===Ce.ServerSentEvents&&!this._options.EventSource)return this._logger.log(X.Debug,`Skipping transport '${Ce[it]}' because it is not supported in your environment.'`),new be(`'${Ce[it]}' is not supported in your environment.`,it);this._logger.log(X.Debug,`Selecting transport '${Ce[it]}'.`);try{return this.features.reconnect=it===Ce.WebSockets?Ae:void 0,this._constructTransport(it)}catch(Et){return Et}}_isITransport(y){return y&&"object"==typeof y&&"connect"in y}_stopConnection(y){if(this._logger.log(X.Debug,`HttpConnection.stopConnection(${y}) called while in state ${this._connectionState}.`),this.transport=void 0,y=this._stopError||y,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(X.Warning,`Call to HttpConnection.stopConnection(${y}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${y}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),y?this._logger.log(X.Error,`Connection disconnected with error '${y}'.`):this._logger.log(X.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(P=>{this._logger.log(X.Error,`TransportSendQueue.stop() threw error '${P}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(y)}catch(P){this._logger.log(X.Error,`HttpConnection.onclose(${y}) threw error '${P}'.`)}}}else this._logger.log(X.Debug,`Call to HttpConnection.stopConnection(${y}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(y){if(0===y.lastIndexOf("https://",0)||0===y.lastIndexOf("http://",0))return y;if(!q.isBrowser)throw new Error(`Cannot resolve '${y}'.`);const P=window.document.createElement("a");return P.href=y,this._logger.log(X.Information,`Normalizing '${y}' to '${P.href}'.`),P.href}_resolveNegotiateUrl(y){const P=new URL(y);P.pathname.endsWith("/")?P.pathname+="negotiate":P.pathname+="/negotiate";const ee=new URLSearchParams(P.searchParams);return ee.has("negotiateVersion")||ee.append("negotiateVersion",this._negotiateVersion.toString()),ee.has("useStatefulReconnect")?"true"===ee.get("useStatefulReconnect")&&(this._options._useStatefulReconnect=!0):!0===this._options._useStatefulReconnect&&ee.append("useStatefulReconnect","true"),P.search=ee.toString(),P.toString()}}class rn{constructor(y){this._transport=y,this._buffer=[],this._executing=!0,this._sendBufferedData=new Xt,this._transportResult=new Xt,this._sendLoopPromise=this._sendLoop()}send(y){return this._bufferData(y),this._transportResult||(this._transportResult=new Xt),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(y){if(this._buffer.length&&typeof this._buffer[0]!=typeof y)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof y}`);this._buffer.push(y),this._sendBufferedData.resolve()}_sendLoop(){var y=this;return(0,K.Z)(function*(){for(;;){if(yield y._sendBufferedData.promise,!y._executing){y._transportResult&&y._transportResult.reject("Connection stopped.");break}y._sendBufferedData=new Xt;const P=y._transportResult;y._transportResult=void 0;const ee="string"==typeof y._buffer[0]?y._buffer.join(""):rn._concatBuffers(y._buffer);y._buffer.length=0;try{yield y._transport.send(ee),P.resolve()}catch(Ae){P.reject(Ae)}}})()}static _concatBuffers(y){const P=y.map(it=>it.byteLength).reduce((it,St)=>it+St),ee=new Uint8Array(P);let Ae=0;for(const it of y)ee.set(new Uint8Array(it),Ae),Ae+=it.byteLength;return ee.buffer}}class Xt{constructor(){this.promise=new Promise((y,P)=>[this._resolver,this._rejecter]=[y,P])}resolve(){this._resolver()}reject(y){this._rejecter(y)}}class an{static write(y){return`${y}${an.RecordSeparator}`}static parse(y){if(y[y.length-1]!==an.RecordSeparator)throw new Error("Message is incomplete.");const P=y.split(an.RecordSeparator);return P.pop(),P}}an.RecordSeparatorCode=30,an.RecordSeparator=String.fromCharCode(an.RecordSeparatorCode);class Sn{writeHandshakeRequest(y){return an.write(JSON.stringify(y))}parseHandshakeResponse(y){let P,ee;if(ye(y)){const Et=new Uint8Array(y),Pt=Et.indexOf(an.RecordSeparatorCode);if(-1===Pt)throw new Error("Message is incomplete.");const Ht=Pt+1;P=String.fromCharCode.apply(null,Array.prototype.slice.call(Et.slice(0,Ht))),ee=Et.byteLength>Ht?Et.slice(Ht).buffer:null}else{const Et=y,Pt=Et.indexOf(an.RecordSeparator);if(-1===Pt)throw new Error("Message is incomplete.");const Ht=Pt+1;P=Et.substring(0,Ht),ee=Et.length>Ht?Et.substring(Ht):null}const Ae=an.parse(P),it=JSON.parse(Ae[0]);if(it.type)throw new Error("Expected a handshake response from the server.");return[ee,it]}}var zt=function(Re){return Re[Re.Invocation=1]="Invocation",Re[Re.StreamItem=2]="StreamItem",Re[Re.Completion=3]="Completion",Re[Re.StreamInvocation=4]="StreamInvocation",Re[Re.CancelInvocation=5]="CancelInvocation",Re[Re.Ping=6]="Ping",Re[Re.Close=7]="Close",Re[Re.Ack=8]="Ack",Re[Re.Sequence=9]="Sequence",Re}(zt||{});class Vn{constructor(){this.observers=[]}next(y){for(const P of this.observers)P.next(y)}error(y){for(const P of this.observers)P.error&&P.error(y)}complete(){for(const y of this.observers)y.complete&&y.complete()}subscribe(y){return this.observers.push(y),new xt(this,y)}}class xn{constructor(y,P,ee){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=y,this._connection=P,this._bufferSize=ee}_send(y){var P=this;return(0,K.Z)(function*(){const ee=P._protocol.writeMessage(y);let Ae=Promise.resolve();if(P._isInvocationMessage(y)){P._totalMessageCount++;let it=()=>{},St=()=>{};ye(ee)?P._bufferedByteCount+=ee.byteLength:P._bufferedByteCount+=ee.length,P._bufferedByteCount>=P._bufferSize&&(Ae=new Promise((Et,Pt)=>{it=Et,St=Pt})),P._messages.push(new Hn(ee,P._totalMessageCount,it,St))}try{P._reconnectInProgress||(yield P._connection.send(ee))}catch{P._disconnected()}yield Ae})()}_ack(y){let P=-1;for(let ee=0;ee<this._messages.length;ee++){const Ae=this._messages[ee];if(Ae._id<=y.sequenceId)P=ee,ye(Ae._message)?this._bufferedByteCount-=Ae._message.byteLength:this._bufferedByteCount-=Ae._message.length,Ae._resolver();else{if(!(this._bufferedByteCount<this._bufferSize))break;Ae._resolver()}}-1!==P&&(this._messages=this._messages.slice(P+1))}_shouldProcessMessage(y){if(this._waitForSequenceMessage)return y.type===zt.Sequence&&(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(y))return!0;const P=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,P<=this._latestReceivedSequenceId?(P===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=P,this._ackTimer(),!0)}_resetSequence(y){y.sequenceId>this._nextReceivingSequenceId?this._connection.stop(new Error("Sequence ID greater than amount of messages we've received.")):this._nextReceivingSequenceId=y.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}_resend(){var y=this;return(0,K.Z)(function*(){const P=0!==y._messages.length?y._messages[0]._id:y._totalMessageCount+1;yield y._connection.send(y._protocol.writeMessage({type:zt.Sequence,sequenceId:P}));const ee=y._messages;for(const Ae of ee)yield y._connection.send(Ae._message);y._reconnectInProgress=!1})()}_dispose(y){y??(y=new Error("Unable to reconnect to server."));for(const P of this._messages)P._rejector(y)}_isInvocationMessage(y){switch(y.type){case zt.Invocation:case zt.StreamItem:case zt.Completion:case zt.StreamInvocation:case zt.CancelInvocation:return!0;case zt.Close:case zt.Sequence:case zt.Ping:case zt.Ack:return!1}}_ackTimer(){var y=this;void 0===this._ackTimerHandle&&(this._ackTimerHandle=setTimeout((0,K.Z)(function*(){try{y._reconnectInProgress||(yield y._connection.send(y._protocol.writeMessage({type:zt.Ack,sequenceId:y._latestReceivedSequenceId})))}catch{}clearTimeout(y._ackTimerHandle),y._ackTimerHandle=void 0}),1e3))}}class Hn{constructor(y,P,ee,Ae){this._message=y,this._id=P,this._resolver=ee,this._rejector=Ae}}var Ie=function(Re){return Re.Disconnected="Disconnected",Re.Connecting="Connecting",Re.Connected="Connected",Re.Disconnecting="Disconnecting",Re.Reconnecting="Reconnecting",Re}(Ie||{});class pe{static create(y,P,ee,Ae,it,St,Et){return new pe(y,P,ee,Ae,it,St,Et)}constructor(y,P,ee,Ae,it,St,Et){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(X.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Ne.isRequired(y,"connection"),Ne.isRequired(P,"logger"),Ne.isRequired(ee,"protocol"),this.serverTimeoutInMilliseconds=it??3e4,this.keepAliveIntervalInMilliseconds=St??15e3,this._statefulReconnectBufferSize=Et??1e5,this._logger=P,this._protocol=ee,this.connection=y,this._reconnectPolicy=Ae,this._handshakeProtocol=new Sn,this.connection.onreceive=Pt=>this._processIncomingData(Pt),this.connection.onclose=Pt=>this._connectionClosed(Pt),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:zt.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(y){if(this._connectionState!==Ie.Disconnected&&this._connectionState!==Ie.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!y)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=y}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var y=this;return(0,K.Z)(function*(){if(y._connectionState!==Ie.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));y._connectionState=Ie.Connecting,y._logger.log(X.Debug,"Starting HubConnection.");try{yield y._startInternal(),q.isBrowser&&window.document.addEventListener("freeze",y._freezeEventListener),y._connectionState=Ie.Connected,y._connectionStarted=!0,y._logger.log(X.Debug,"HubConnection connected successfully.")}catch(P){return y._connectionState=Ie.Disconnected,y._logger.log(X.Debug,`HubConnection failed to start successfully because of error '${P}'.`),Promise.reject(P)}})()}_startInternal(){var y=this;return(0,K.Z)(function*(){y._stopDuringStartError=void 0,y._receivedHandshakeResponse=!1;const P=new Promise((ee,Ae)=>{y._handshakeResolver=ee,y._handshakeRejecter=Ae});yield y.connection.start(y._protocol.transferFormat);try{let ee=y._protocol.version;y.connection.features.reconnect||(ee=1);const Ae={protocol:y._protocol.name,version:ee};if(y._logger.log(X.Debug,"Sending handshake request."),yield y._sendMessage(y._handshakeProtocol.writeHandshakeRequest(Ae)),y._logger.log(X.Information,`Using HubProtocol '${y._protocol.name}'.`),y._cleanupTimeout(),y._resetTimeoutPeriod(),y._resetKeepAliveInterval(),yield P,y._stopDuringStartError)throw y._stopDuringStartError;!!y.connection.features.reconnect&&(y._messageBuffer=new xn(y._protocol,y.connection,y._statefulReconnectBufferSize),y.connection.features.disconnected=y._messageBuffer._disconnected.bind(y._messageBuffer),y.connection.features.resend=()=>{if(y._messageBuffer)return y._messageBuffer._resend()}),y.connection.features.inherentKeepAlive||(yield y._sendMessage(y._cachedPingMessage))}catch(ee){throw y._logger.log(X.Debug,`Hub handshake failed with error '${ee}' during start(). Stopping HubConnection.`),y._cleanupTimeout(),y._cleanupPingTimer(),yield y.connection.stop(ee),ee}})()}stop(){var y=this;return(0,K.Z)(function*(){const P=y._startPromise;y.connection.features.reconnect=!1,y._stopPromise=y._stopInternal(),yield y._stopPromise;try{yield P}catch{}})()}_stopInternal(y){if(this._connectionState===Ie.Disconnected)return this._logger.log(X.Debug,`Call to HubConnection.stop(${y}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ie.Disconnecting)return this._logger.log(X.Debug,`Call to HttpConnection.stop(${y}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const P=this._connectionState;return this._connectionState=Ie.Disconnecting,this._logger.log(X.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(X.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(P===Ie.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=y||new Q("The connection was stopped before the hub handshake could complete."),this.connection.stop(y))}_sendCloseMessage(){var y=this;return(0,K.Z)(function*(){try{yield y._sendWithProtocol(y._createCloseMessage())}catch{}})()}stream(y,...P){const[ee,Ae]=this._replaceStreamingParams(P),it=this._createStreamInvocation(y,P,Ae);let St;const Et=new Vn;return Et.cancelCallback=()=>{const Pt=this._createCancelInvocation(it.invocationId);return delete this._callbacks[it.invocationId],St.then(()=>this._sendWithProtocol(Pt))},this._callbacks[it.invocationId]=(Pt,Ht)=>{Ht?Et.error(Ht):Pt&&(Pt.type===zt.Completion?Pt.error?Et.error(new Error(Pt.error)):Et.complete():Et.next(Pt.item))},St=this._sendWithProtocol(it).catch(Pt=>{Et.error(Pt),delete this._callbacks[it.invocationId]}),this._launchStreams(ee,St),Et}_sendMessage(y){return this._resetKeepAliveInterval(),this.connection.send(y)}_sendWithProtocol(y){return this._messageBuffer?this._messageBuffer._send(y):this._sendMessage(this._protocol.writeMessage(y))}send(y,...P){const[ee,Ae]=this._replaceStreamingParams(P),it=this._sendWithProtocol(this._createInvocation(y,P,!0,Ae));return this._launchStreams(ee,it),it}invoke(y,...P){const[ee,Ae]=this._replaceStreamingParams(P),it=this._createInvocation(y,P,!1,Ae);return new Promise((Et,Pt)=>{this._callbacks[it.invocationId]=(Yt,cn)=>{cn?Pt(cn):Yt&&(Yt.type===zt.Completion?Yt.error?Pt(new Error(Yt.error)):Et(Yt.result):Pt(new Error(`Unexpected message type: ${Yt.type}`)))};const Ht=this._sendWithProtocol(it).catch(Yt=>{Pt(Yt),delete this._callbacks[it.invocationId]});this._launchStreams(ee,Ht)})}on(y,P){!y||!P||(y=y.toLowerCase(),this._methods[y]||(this._methods[y]=[]),-1===this._methods[y].indexOf(P)&&this._methods[y].push(P))}off(y,P){if(!y)return;y=y.toLowerCase();const ee=this._methods[y];if(ee)if(P){const Ae=ee.indexOf(P);-1!==Ae&&(ee.splice(Ae,1),0===ee.length&&delete this._methods[y])}else delete this._methods[y]}onclose(y){y&&this._closedCallbacks.push(y)}onreconnecting(y){y&&this._reconnectingCallbacks.push(y)}onreconnected(y){y&&this._reconnectedCallbacks.push(y)}_processIncomingData(y){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(y=this._processHandshakeResponse(y),this._receivedHandshakeResponse=!0),y){const P=this._protocol.parseMessages(y,this._logger);for(const ee of P)if(!this._messageBuffer||this._messageBuffer._shouldProcessMessage(ee))switch(ee.type){case zt.Invocation:this._invokeClientMethod(ee).catch(Ae=>{this._logger.log(X.Error,`Invoke client method threw error: ${wn(Ae)}`)});break;case zt.StreamItem:case zt.Completion:{const Ae=this._callbacks[ee.invocationId];if(Ae){ee.type===zt.Completion&&delete this._callbacks[ee.invocationId];try{Ae(ee)}catch(it){this._logger.log(X.Error,`Stream callback threw error: ${wn(it)}`)}}break}case zt.Ping:break;case zt.Close:{this._logger.log(X.Information,"Close message received from server.");const Ae=ee.error?new Error("Server returned an error on close: "+ee.error):void 0;!0===ee.allowReconnect?this.connection.stop(Ae):this._stopPromise=this._stopInternal(Ae);break}case zt.Ack:this._messageBuffer&&this._messageBuffer._ack(ee);break;case zt.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(ee);break;default:this._logger.log(X.Warning,`Invalid message type: ${ee.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(y){let P,ee;try{[ee,P]=this._handshakeProtocol.parseHandshakeResponse(y)}catch(Ae){const it="Error parsing handshake response: "+Ae;this._logger.log(X.Error,it);const St=new Error(it);throw this._handshakeRejecter(St),St}if(P.error){const Ae="Server returned handshake error: "+P.error;this._logger.log(X.Error,Ae);const it=new Error(Ae);throw this._handshakeRejecter(it),it}return this._logger.log(X.Debug,"Server handshake complete."),this._handshakeResolver(),ee}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var y=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let P=this._nextKeepAlive-(new Date).getTime();P<0&&(P=0),this._pingServerHandle=setTimeout((0,K.Z)(function*(){if(y._connectionState===Ie.Connected)try{yield y._sendMessage(y._cachedPingMessage)}catch{y._cleanupPingTimer()}}),P)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(y){var P=this;return(0,K.Z)(function*(){const ee=y.target.toLowerCase(),Ae=P._methods[ee];if(!Ae)return P._logger.log(X.Warning,`No client method with the name '${ee}' found.`),void(y.invocationId&&(P._logger.log(X.Warning,`No result given for '${ee}' method and invocation ID '${y.invocationId}'.`),yield P._sendWithProtocol(P._createCompletionMessage(y.invocationId,"Client didn't provide a result.",null))));const it=Ae.slice(),St=!!y.invocationId;let Et,Pt,Ht;for(const Yt of it)try{const cn=Et;Et=yield Yt.apply(P,y.arguments),St&&Et&&cn&&(P._logger.log(X.Error,`Multiple results provided for '${ee}'. Sending error to server.`),Ht=P._createCompletionMessage(y.invocationId,"Client provided multiple results.",null)),Pt=void 0}catch(cn){Pt=cn,P._logger.log(X.Error,`A callback for the method '${ee}' threw error '${cn}'.`)}Ht?yield P._sendWithProtocol(Ht):St?(Pt?Ht=P._createCompletionMessage(y.invocationId,`${Pt}`,null):void 0!==Et?Ht=P._createCompletionMessage(y.invocationId,null,Et):(P._logger.log(X.Warning,`No result given for '${ee}' method and invocation ID '${y.invocationId}'.`),Ht=P._createCompletionMessage(y.invocationId,"Client didn't provide a result.",null)),yield P._sendWithProtocol(Ht)):Et&&P._logger.log(X.Error,`Result given for '${ee}' method but server is not expecting a result.`)})()}_connectionClosed(y){this._logger.log(X.Debug,`HubConnection.connectionClosed(${y}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||y||new Q("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(y||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ie.Disconnecting?this._completeClose(y):this._connectionState===Ie.Connected&&this._reconnectPolicy?this._reconnect(y):this._connectionState===Ie.Connected&&this._completeClose(y)}_completeClose(y){if(this._connectionStarted){this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(y??new Error("Connection closed.")),this._messageBuffer=void 0),q.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(P=>P.apply(this,[y]))}catch(P){this._logger.log(X.Error,`An onclose callback called with error '${y}' threw error '${P}'.`)}}}_reconnect(y){var P=this;return(0,K.Z)(function*(){const ee=Date.now();let Ae=0,it=void 0!==y?y:new Error("Attempting to reconnect due to a unknown error."),St=P._getNextRetryDelay(Ae++,0,it);if(null===St)return P._logger.log(X.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void P._completeClose(y);if(P._connectionState=Ie.Reconnecting,P._logger.log(X.Information,y?`Connection reconnecting because of error '${y}'.`:"Connection reconnecting."),0!==P._reconnectingCallbacks.length){try{P._reconnectingCallbacks.forEach(Et=>Et.apply(P,[y]))}catch(Et){P._logger.log(X.Error,`An onreconnecting callback called with error '${y}' threw error '${Et}'.`)}if(P._connectionState!==Ie.Reconnecting)return void P._logger.log(X.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==St;){if(P._logger.log(X.Information,`Reconnect attempt number ${Ae} will start in ${St} ms.`),yield new Promise(Et=>{P._reconnectDelayHandle=setTimeout(Et,St)}),P._reconnectDelayHandle=void 0,P._connectionState!==Ie.Reconnecting)return void P._logger.log(X.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield P._startInternal(),P._connectionState=Ie.Connected,P._logger.log(X.Information,"HubConnection reconnected successfully."),0!==P._reconnectedCallbacks.length)try{P._reconnectedCallbacks.forEach(Et=>Et.apply(P,[P.connection.connectionId]))}catch(Et){P._logger.log(X.Error,`An onreconnected callback called with connectionId '${P.connection.connectionId}; threw error '${Et}'.`)}return}catch(Et){if(P._logger.log(X.Information,`Reconnect attempt failed because of error '${Et}'.`),P._connectionState!==Ie.Reconnecting)return P._logger.log(X.Debug,`Connection moved to the '${P._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(P._connectionState===Ie.Disconnecting&&P._completeClose());it=Et instanceof Error?Et:new Error(Et.toString()),St=P._getNextRetryDelay(Ae++,Date.now()-ee,it)}}P._logger.log(X.Information,`Reconnect retries have been exhausted after ${Date.now()-ee} ms and ${Ae} failed attempts. Connection disconnecting.`),P._completeClose()})()}_getNextRetryDelay(y,P,ee){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:P,previousRetryCount:y,retryReason:ee})}catch(Ae){return this._logger.log(X.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${y}, ${P}) threw error '${Ae}'.`),null}}_cancelCallbacksWithError(y){const P=this._callbacks;this._callbacks={},Object.keys(P).forEach(ee=>{const Ae=P[ee];try{Ae(null,y)}catch(it){this._logger.log(X.Error,`Stream 'error' callback called with '${y}' threw error: ${wn(it)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(y,P,ee,Ae){if(ee)return 0!==Ae.length?{arguments:P,streamIds:Ae,target:y,type:zt.Invocation}:{arguments:P,target:y,type:zt.Invocation};{const it=this._invocationId;return this._invocationId++,0!==Ae.length?{arguments:P,invocationId:it.toString(),streamIds:Ae,target:y,type:zt.Invocation}:{arguments:P,invocationId:it.toString(),target:y,type:zt.Invocation}}}_launchStreams(y,P){if(0!==y.length){P||(P=Promise.resolve());for(const ee in y)y[ee].subscribe({complete:()=>{P=P.then(()=>this._sendWithProtocol(this._createCompletionMessage(ee)))},error:Ae=>{let it;it=Ae instanceof Error?Ae.message:Ae&&Ae.toString?Ae.toString():"Unknown error",P=P.then(()=>this._sendWithProtocol(this._createCompletionMessage(ee,it)))},next:Ae=>{P=P.then(()=>this._sendWithProtocol(this._createStreamItemMessage(ee,Ae)))}})}}_replaceStreamingParams(y){const P=[],ee=[];for(let Ae=0;Ae<y.length;Ae++){const it=y[Ae];if(this._isObservable(it)){const St=this._invocationId;this._invocationId++,P[St]=it,ee.push(St.toString()),y.splice(Ae,1)}}return[P,ee]}_isObservable(y){return y&&y.subscribe&&"function"==typeof y.subscribe}_createStreamInvocation(y,P,ee){const Ae=this._invocationId;return this._invocationId++,0!==ee.length?{arguments:P,invocationId:Ae.toString(),streamIds:ee,target:y,type:zt.StreamInvocation}:{arguments:P,invocationId:Ae.toString(),target:y,type:zt.StreamInvocation}}_createCancelInvocation(y){return{invocationId:y,type:zt.CancelInvocation}}_createStreamItemMessage(y,P){return{invocationId:y,item:P,type:zt.StreamItem}}_createCompletionMessage(y,P,ee){return P?{error:P,invocationId:y,type:zt.Completion}:{invocationId:y,result:ee,type:zt.Completion}}_createCloseMessage(){return{type:zt.Close}}}class Te{constructor(){this.name="json",this.version=2,this.transferFormat=Be.Text}parseMessages(y,P){if("string"!=typeof y)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!y)return[];null===P&&(P=Ye.instance);const ee=an.parse(y),Ae=[];for(const it of ee){const St=JSON.parse(it);if("number"!=typeof St.type)throw new Error("Invalid payload.");switch(St.type){case zt.Invocation:this._isInvocationMessage(St);break;case zt.StreamItem:this._isStreamItemMessage(St);break;case zt.Completion:this._isCompletionMessage(St);break;case zt.Ping:case zt.Close:break;case zt.Ack:this._isAckMessage(St);break;case zt.Sequence:this._isSequenceMessage(St);break;default:P.log(X.Information,"Unknown message type '"+St.type+"' ignored.");continue}Ae.push(St)}return Ae}writeMessage(y){return an.write(JSON.stringify(y))}_isInvocationMessage(y){this._assertNotEmptyString(y.target,"Invalid payload for Invocation message."),void 0!==y.invocationId&&this._assertNotEmptyString(y.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(y){if(this._assertNotEmptyString(y.invocationId,"Invalid payload for StreamItem message."),void 0===y.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(y){if(y.result&&y.error)throw new Error("Invalid payload for Completion message.");!y.result&&y.error&&this._assertNotEmptyString(y.error,"Invalid payload for Completion message."),this._assertNotEmptyString(y.invocationId,"Invalid payload for Completion message.")}_isAckMessage(y){if("number"!=typeof y.sequenceId)throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(y){if("number"!=typeof y.sequenceId)throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(y,P){if("string"!=typeof y||""===y)throw new Error(P)}}const Ke={trace:X.Trace,debug:X.Debug,info:X.Information,information:X.Information,warn:X.Warning,warning:X.Warning,error:X.Error,critical:X.Critical,none:X.None};class je{configureLogging(y){if(Ne.isRequired(y,"logging"),function Je(Re){return void 0!==Re.log}(y))this.logger=y;else if("string"==typeof y){const P=function dt(Re){const y=Ke[Re.toLowerCase()];if(typeof y<"u")return y;throw new Error(`Unknown log level: ${Re}`)}(y);this.logger=new Bt(P)}else this.logger=new Bt(y);return this}withUrl(y,P){return Ne.isRequired(y,"url"),Ne.isNotEmpty(y,"url"),this.url=y,this.httpConnectionOptions="object"==typeof P?{...this.httpConnectionOptions,...P}:{...this.httpConnectionOptions,transport:P},this}withHubProtocol(y){return Ne.isRequired(y,"protocol"),this.protocol=y,this}withAutomaticReconnect(y){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=y?Array.isArray(y)?new R(y):y:new R,this}withServerTimeout(y){return Ne.isRequired(y,"milliseconds"),this._serverTimeoutInMilliseconds=y,this}withKeepAliveInterval(y){return Ne.isRequired(y,"milliseconds"),this._keepAliveIntervalInMilliseconds=y,this}withStatefulReconnect(y){return void 0===this.httpConnectionOptions&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=y?.bufferSize,this}build(){const y=this.httpConnectionOptions||{};if(void 0===y.logger&&(y.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const P=new Kt(this.url,y);return pe.create(P,this.logger||Ye.instance,this.protocol||new Te,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}var pt=C(5879);let vt=(()=>{var Re;class y{constructor(){this._migrateNotification=new o.x,this.migrateNotification$=this._migrateNotification.asObservable(),this.socketConnection=(new je).withUrl("/ToolsHub").withAutomaticReconnect().configureLogging(X.Information).build(),this.listenToNotification()}subscribeGroup(ee){this.socketConnection.state===Ie.Connected?this.invoke(ee):this.socketConnection.start().then(()=>{this.invoke(ee)})}invoke(ee){this.socketConnection.invoke("SubscribeGroup",{CurrentID:ee,PreviousID:this.lastGroupID}).then(()=>{console.log(`Successfully subscribed to group: ${ee}`),this.lastGroupID=ee}).catch(it=>{console.error(`Failed to subscribe to group: ${ee}`)})}listenToNotification(){this.socketConnection.on("Notification",ee=>{this._migrateNotification.next(ee)})}}return(Re=y).\u0275fac=function(ee){return new(ee||Re)},Re.\u0275prov=pt.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),y})()},3102:(wt,Pe,C)=>{C.d(Pe,{n:()=>o});var o=function(l){return l.Success="Success",l.Info="Info",l.Warning="Warning",l.Error="Error",l}(o||{})},6493:(wt,Pe,C)=>{C.d(Pe,{g:()=>o});let o=(()=>{var R;class K{static StringFormat(W,...re){for(let ue=0;ue<re.length;ue++)W=W.replace(`{${ue}}`,re[ue]);return W}static parseJwt(W){var ue=W.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),ie=decodeURIComponent(atob(ue).split("").map(function(V){return"%"+("00"+V.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(ie)}static IsNotEmpty(W){return""!=W&&W!=K.GuidEmpty&&null!=W&&null!=W}static IsEmpty(W){return""==W||null==W||null==W||W==K.GuidEmpty}static FilterByID(W,re){try{const ue=W.filter(ie=>ie.ID==re);if(ue.length>0)return ue[0]}catch{console.log("error filter")}return null}static DateOnly(W){return W?new Date(new Date(W).toDateString()):new Date((new Date).toDateString())}static GenerateYears(W,re,ue){var ie=-1;(null==re||null==re)&&(re=11),(null==ue||null==ue||!ue)&&(ie=1);for(var V=[],Q=0;Q<re;Q++)V.push(W+Q*ie);return V}static formatTitleFromDate(W,re){let ue=null;const ie=new Date(W),V=new Date(re);return ie.getDate()!=V.getDate()&&(ue="dd"),ie.getMonth()!=V.getMonth()&&(ue="dd MMM"),ie.getFullYear()!=V.getFullYear()&&(ue="dd MMM yyyy"),ue}}return(R=K).GuidEmpty="00000000-0000-0000-0000-000000000000",R.DecimalMinValue="-7.922816251426434e+28",R.InputLockTimeSpan=500,R.MinDate="0001-01-01T00:00:00",R.MinTime="00:00:00",R.Month=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}],K})()},4843:(wt,Pe,C)=>{C.d(Pe,{O:()=>l});var o=C(3102);class l{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=o.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}}},7238:(wt,Pe,C)=>{C.d(Pe,{M:()=>Ye,d:()=>ut});var o=C(5879),l=C(6814),R=C(4843),K=C(3102);function Y(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"div",8),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw();return o.KtG(ye.onBack.emit())}),o.TgZ(1,"a",9),o._UZ(2,"i",10),o.qZA()()}}function W(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"div")(1,"a",11),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw();return o.KtG(ye.onCancel.emit())}),o._UZ(2,"i",12),o.qZA()()}}function re(Ne,q){1&Ne&&o.Hsn(0,2,["*ngIf","more"])}function ue(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"a",17),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.more=!ye.more)}),o._uU(1,"More"),o.qZA()}}const ie=function(Ne){return{"me-6":Ne}};function V(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"a",18),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.onCancel.emit())}),o._uU(1),o.qZA()}if(2&Ne){const me=o.oxw(2);o.Q6J("ngClass",o.VKq(2,ie,me.config.hideOk)),o.xp6(1),o.hij(" ",me.config.cancelText?me.config.cancelText:"Cancel","")}}function Q(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.onOk.emit())})("keyup.F2",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.onOk.emit())}),o.qZA()}if(2&Ne){const me=o.oxw(2);o.Q6J("disabled",!me.config.validated||!me.dynamicValidated)("innerHTML",me.config.okText?me.config.okText:"Ok (F2)",o.oJD)}}function be(Ne,q){if(1&Ne&&(o.TgZ(0,"mat-dialog-actions",13),o.YNc(1,ue,2,0,"a",14),o.Hsn(2,3),o.YNc(3,V,2,4,"a",15),o.YNc(4,Q,1,2,"button",16),o.qZA()),2&Ne){const me=o.oxw();o.xp6(1),o.Q6J("ngIf",me.config.showMoreButton),o.xp6(2),o.Q6J("ngIf",!me.config.hideCancel),o.xp6(1),o.Q6J("ngIf",!me.config.hideOk)}}const Ve=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],He=function(Ne,q){return{bodyScrollable:Ne,hideScrollbar:q}},tt=function(Ne){return{"mx-auto":Ne}},$e=function(Ne,q){return{"show-footer":Ne,"no-padding":q}},X=["header","content","more-content","footer"];let Ye=(()=>{var Ne;class q{constructor(){this.dynamicValidated=!0,this.onOk=new o.vpe,this.onCancel=new o.vpe,this.onClose=new o.vpe,this.onBack=new o.vpe,this.term="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new R.O),this.config.headerType){case K.n.Success:this.background="bg-success";break;case K.n.Warning:case K.n.Info:this.background="bg-warning";break;case K.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(ve){this.config.disableKeyup||("F2"==ve.code&&this.onOk.emit("F2"),("Enter"==ve.code||"NumpadEnter"==ve.code)&&this.onOk.emit("Enter"))}}return(Ne=q).\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275cmp=o.Xpm({type:Ne,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:X,decls:12,vars:21,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",3,"ngClass"],[1,"fw-normal"],[4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],["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,"fas","fa-times","fa-lg","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"ngClass","click",4,"ngIf"],["class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"ngClass","click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"disabled","innerHTML","click","keyup.F2"]],template:function(ve,ye){1&ve&&(o.F$t(Ve),o.TgZ(0,"div",0),o.NdJ("keyup",function(Qe){return ye.onKeyup(Qe)}),o.TgZ(1,"div",1),o.YNc(2,Y,3,0,"div",2),o.TgZ(3,"div",3)(4,"h4",4),o._uU(5),o.qZA(),o.Hsn(6),o.qZA(),o.YNc(7,W,3,0,"div",5),o.qZA(),o.TgZ(8,"mat-dialog-content",6),o.Hsn(9,1),o.YNc(10,re,1,0,"ng-content",5),o.qZA(),o.YNc(11,be,5,3,"mat-dialog-actions",7),o.qZA()),2&ve&&(o.Udp("width",ye.config.customWidth),o.Q6J("ngClass",o.WLB(13,He,ye.config.bodyScrollable,ye.config.hideScrollbar)),o.xp6(1),o.Gre("d-flex w-100 justify-content-between modal-header position-relative ",ye.background,""),o.xp6(1),o.Q6J("ngIf",ye.config.eMoney),o.xp6(1),o.Q6J("ngClass",o.VKq(16,tt,ye.config.eMoney)),o.xp6(2),o.Oqu(ye.config.title),o.xp6(2),o.Q6J("ngIf",!ye.config.hideClose),o.xp6(1),o.Q6J("ngClass",o.WLB(18,$e,!ye.config.hideFooter,ye.config.noPadding)),o.xp6(2),o.Q6J("ngIf",ye.more),o.xp6(1),o.Q6J("ngIf",!ye.config.hideFooter))},dependencies:[l.mk,l.O5],styles:[".mat-mdc-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-mdc-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-mdc-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}@media (max-width: 576px){ .dialog-filter .modal-material, .column-toggle .modal-material{width:100%!important} .dialog-filter mat-dialog-actions, .column-toggle mat-dialog-actions{position:sticky;bottom:0;background:white} .dialog-filter .modal-material.d-flex.align-items-start.flex-column.position-relative.maxHeight.bodyScrollable.maxHeight.bodyScrollable .modal-body, .column-toggle .modal-material.d-flex.align-items-start.flex-column.position-relative.maxHeight.bodyScrollable.maxHeight.bodyScrollable .modal-body{max-height:100%!important;overflow-y:auto}}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:60vh;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]}),q})(),ut=(()=>{var Ne;class q{}return(Ne=q).\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=o.oAB({type:Ne}),Ne.\u0275inj=o.cJS({imports:[l.ez]}),q})()},9735:(wt,Pe,C)=>{var o=C(6593),l=C(5879),R=C(8184);function K(p){this.message=p}(K.prototype=new Error).name="InvalidCharacterError";var Y=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(p){var a=String(p).replace(/=+$/,"");if(a.length%4==1)throw new K("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,h,E=0,F=0,ge="";h=a.charAt(F++);~h&&(c=E%4?64*c+h:h,E++%4)?ge+=String.fromCharCode(255&c>>(-2*E&6)):0)h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(h);return ge};function re(p){this.message=p}(re.prototype=new Error).name="InvalidTokenError";var V=C(6493),Q=C(3106),be=C(2459),Ve=C(7398),He=C(4664),tt=C(9397),$e=C(8017),X=C(2425),Ye=C(4835),ut=C(8645),Ne=C(2096),q=C(5592),me=C(3019),ve=C(3093),ye=C(7081),rt=C(1374),Qe=C(4674);function ft(p,a){return(0,Qe.m)(a)?(0,He.w)(()=>p,a):(0,He.w)(()=>p)}var xt=C(5137),Bt=C(2181),Rt=C(8186),Qt=C(6304),qt=C(6814);C(3182);var Xt=C(5861),an=C(534),Sn=C(4537),zt=C(9058),Vn=C(7879);const xn=new Map,Hn={activated:!1,tokenObservers:[]},Un={initialized:!1,enabled:!1};function ze(p){return xn.get(p)||Object.assign({},Hn)}function Ie(){return Un}const pe="https://content-firebaseappcheck.googleapis.com/v1",Ke="exchangeDebugToken",dt={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};class Je{constructor(a,c,h,E,F){if(this.operation=a,this.retryPolicy=c,this.getWaitDuration=h,this.lowerBound=E,this.upperBound=F,this.pending=null,this.nextErrorWaitInterval=E,E>F)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(a){var c=this;return(0,Xt.Z)(function*(){c.stop();try{c.pending=new zt.BH,yield function pt(p){return new Promise(a=>{setTimeout(a,p)})}(c.getNextRun(a)),c.pending.resolve(),yield c.pending.promise,c.pending=new zt.BH,yield c.operation(),c.pending.resolve(),yield c.pending.promise,c.process(!0).catch(()=>{})}catch(h){c.retryPolicy(h)?c.process(!1).catch(()=>{}):c.stop()}})()}getNextRun(a){if(a)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const c=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),c}}}const Re=new zt.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 P(p){if(!ze(p).activated)throw Re.create("use-before-activation",{appName:p.name})}function it(p,a){return St.apply(this,arguments)}function St(){return(St=(0,Xt.Z)(function*({url:p,body:a},c){const h={"Content-Type":"application/json"},E=c.getImmediate({optional:!0});if(E){const Ft=yield E.getHeartbeatsHeader();Ft&&(h["X-Firebase-Client"]=Ft)}const F={method:"POST",body:JSON.stringify(a),headers:h};let ge,we;try{ge=yield fetch(p,F)}catch(Ft){throw Re.create("fetch-network-error",{originalErrorMessage:Ft?.message})}if(200!==ge.status)throw Re.create("fetch-status-error",{httpStatus:ge.status});try{we=yield ge.json()}catch(Ft){throw Re.create("fetch-parse-error",{originalErrorMessage:Ft?.message})}const et=we.ttl.match(/^([\d.]+)(s)$/);if(!et||!et[2]||isNaN(Number(et[1])))throw Re.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${we.ttl}`});const gt=1e3*Number(et[1]),Wt=Date.now();return{token:we.token,expireTimeMillis:Wt+gt,issuedAtTimeMillis:Wt}})).apply(this,arguments)}function Ht(p,a){const{projectId:c,appId:h,apiKey:E}=p.options;return{url:`${pe}/projects/${c}/apps/${h}:${Ke}?key=${E}`,body:{debug_token:a}}}const Yt="firebase-app-check-database",cn=1,Oe="firebase-app-check-store";let U=null;function xe(){return(xe=(0,Xt.Z)(function*(p,a){const h=(yield function B(){return U||(U=new Promise((p,a)=>{try{const c=indexedDB.open(Yt,cn);c.onsuccess=h=>{p(h.target.result)},c.onerror=h=>{var E;a(Re.create("storage-open",{originalErrorMessage:null===(E=h.target.error)||void 0===E?void 0:E.message}))},c.onupgradeneeded=h=>{0===h.oldVersion&&h.target.result.createObjectStore(Oe,{keyPath:"compositeKey"})}}catch(c){a(Re.create("storage-open",{originalErrorMessage:c?.message}))}}),U)}()).transaction(Oe,"readwrite"),F=h.objectStore(Oe).put({compositeKey:p,value:a});return new Promise((ge,we)=>{F.onsuccess=et=>{ge()},h.onerror=et=>{var gt;we(Re.create("storage-set",{originalErrorMessage:null===(gt=et.target.error)||void 0===gt?void 0:gt.message}))}})})).apply(this,arguments)}const de=new Vn.Yd("@firebase/app-check");function le(p,a){return(0,zt.hl)()?function H(p,a){return function J(p,a){return xe.apply(this,arguments)}(function at(p){return`${p.options.appId}-${p.name}`}(p),a)}(p,a).catch(c=>{de.warn(`Failed to write token to IndexedDB. Error: ${c}`)}):Promise.resolve()}function bt(){return Ie().enabled}function ht(){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,Xt.Z)(function*(){const p=Ie();if(p.enabled&&p.token)return p.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const Pn={error:"UNKNOWN_ERROR"};function $n(p){return zt.US.encodeString(JSON.stringify(p),!1)}function Nn(p){return ir.apply(this,arguments)}function ir(){return(ir=(0,Xt.Z)(function*(p,a=!1){const c=p.app;P(c);const h=ze(c);let F,E=h.token;if(E&&!qn(E)&&(h.token=void 0,E=void 0),!E){const et=yield h.cachedTokenPromise;et&&(qn(et)?E=et:yield le(c,void 0))}if(!a&&E&&qn(E))return{token:E.token};let we,ge=!1;if(bt()){h.exchangeTokenPromise||(h.exchangeTokenPromise=it(Ht(c,yield ht()),p.heartbeatServiceProvider).finally(()=>{h.exchangeTokenPromise=void 0}),ge=!0);const et=yield h.exchangeTokenPromise;return yield le(c,et),h.token=et,{token:et.token}}try{h.exchangeTokenPromise||(h.exchangeTokenPromise=h.provider.getToken().finally(()=>{h.exchangeTokenPromise=void 0}),ge=!0),E=yield ze(c).exchangeTokenPromise}catch(et){"appCheck/throttled"===et.code?de.warn(et.message):de.error(et),F=et}return E?F?we=qn(E)?{token:E.token,internalError:F}:Ii(F):(we={token:E.token},h.token=E,yield le(c,E)):we=Ii(F),ge&&function Ln(p,a){const c=ze(p).tokenObservers;for(const h of c)try{"EXTERNAL"===h.type&&null!=a.error?h.error(a.error):h.next(a)}catch{}}(c,we),we})).apply(this,arguments)}function yr(p){return zr.apply(this,arguments)}function zr(){return(zr=(0,Xt.Z)(function*(p){const a=p.app;P(a);const{provider:c}=ze(a);if(bt()){const h=yield ht(),{token:E}=yield it(Ht(a,h),p.heartbeatServiceProvider);return{token:E}}{const{token:h}=yield c.getToken();return{token:h}}})).apply(this,arguments)}function Zn(p,a){const c=ze(p),h=c.tokenObservers.filter(E=>E.next!==a);0===h.length&&c.tokenRefresher&&c.tokenRefresher.isRunning()&&c.tokenRefresher.stop(),c.tokenObservers=h}function Or(p){const{app:a}=p,c=ze(a);let h=c.tokenRefresher;h||(h=function ti(p){const{app:a}=p;return new Je((0,Xt.Z)(function*(){let h;if(h=ze(a).token?yield Nn(p,!0):yield Nn(p),h.error)throw h.error;if(h.internalError)throw h.internalError}),()=>!0,()=>{const c=ze(a);if(c.token){let h=c.token.issuedAtTimeMillis+.5*(c.token.expireTimeMillis-c.token.issuedAtTimeMillis)+3e5;return h=Math.min(h,c.token.expireTimeMillis-3e5),Math.max(0,h-Date.now())}return 0},dt.RETRIAL_MIN_WAIT,dt.RETRIAL_MAX_WAIT)}(p),c.tokenRefresher=h),!h.isRunning()&&c.isTokenAutoRefreshEnabled&&h.start()}function qn(p){return p.expireTimeMillis-Date.now()>0}function Ii(p){return{token:$n(Pn),error:p}}class dr{constructor(a,c){this.app=a,this.heartbeatServiceProvider=c}_delete(){const{tokenObservers:a}=ze(this.app);for(const c of a)Zn(this.app,c.next);return Promise.resolve()}}const Fi="app-check-internal";!function Yi(){(0,an._registerComponent)(new Sn.wA("app-check",p=>function ui(p,a){return new dr(p,a)}(p.getProvider("app").getImmediate(),p.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((p,a,c)=>{p.getProvider(Fi).initialize()})),(0,an._registerComponent)(new Sn.wA(Fi,p=>function Gr(p){return{getToken:a=>Nn(p,a),getLimitedUseToken:()=>yr(p),addTokenListener:a=>function Mn(p,a,c,h){const{app:E}=p,F=ze(E);if(F.tokenObservers=[...F.tokenObservers,{next:c,error:h,type:a}],F.token&&qn(F.token)){const we=F.token;Promise.resolve().then(()=>{c({token:we.token}),Or(p)}).catch(()=>{})}F.cachedTokenPromise.then(()=>Or(p))}(p,"INTERNAL",a),removeTokenListener:a=>Zn(p.app,a)}}(p.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,an.registerVersion)("@firebase/app-check","0.8.0")}();class Xn{constructor(){return(0,Rt.vb)("app-check")}}typeof window<"u"&&window;var fi=C(7142);const Wr=new l.OlP("angularfire2.auth.use-emulator"),Io=new l.OlP("angularfire2.auth.settings"),Ao=new l.OlP("angularfire2.auth.tenant-id"),Qi=new l.OlP("angularfire2.auth.langugage-code"),pi=new l.OlP("angularfire2.auth.use-device-language"),Xi=new l.OlP("angularfire.auth.persistence");let En=(()=>{class p{constructor(c,h,E,F,ge,we,et,gt,Wt,Ft,Fn,On){const ln=new ut.x,pn=(0,Ne.of)(void 0).pipe((0,ve.Q)(ge.outsideAngular),(0,He.w)(()=>F.runOutsideAngular(()=>C.e(967).then(C.bind(C,5967)))),(0,Ve.U)(()=>(0,Qt.on)(c,F,h)),(0,Ve.U)(rr=>((p,a,c,h,E,F,ge,we)=>(0,Qt.cc)(`${p.name}.auth`,"AngularFireAuth",p.name,()=>{const et=a.runOutsideAngular(()=>p.auth());if(c&&et.useEmulator(...c),h&&(et.tenantId=h),et.languageCode=E,F&&et.useDeviceLanguage(),ge)for(const[gt,Wt]of Object.entries(ge))et.settings[gt]=Wt;return we&&et.setPersistence(we),et},[c,h,E,F,ge,we]))(rr,F,we,gt,Wt,Ft,et,Fn)),(0,ye.d)({bufferSize:1,refCount:!1}));if((0,qt.PM)(E))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,Ne.of)(null);else{pn.pipe((0,rt.P)()).subscribe();const Ir=pn.pipe((0,He.w)(Wn=>Wn.getRedirectResult().then(Wi=>Wi,()=>null)),Rt.iC,(0,ye.d)({bufferSize:1,refCount:!1})),Lr=pn.pipe((0,He.w)(Wn=>new q.y(Wi=>({unsubscribe:F.runOutsideAngular(()=>Wn.onAuthStateChanged(yi=>Wi.next(yi),yi=>Wi.error(yi),()=>Wi.complete()))})))),vi=pn.pipe((0,He.w)(Wn=>new q.y(Wi=>({unsubscribe:F.runOutsideAngular(()=>Wn.onIdTokenChanged(yi=>Wi.next(yi),yi=>Wi.error(yi),()=>Wi.complete()))}))));this.authState=Ir.pipe(ft(Lr),(0,xt.R)(ge.outsideAngular),(0,ve.Q)(ge.insideAngular)),this.user=Ir.pipe(ft(vi),(0,xt.R)(ge.outsideAngular),(0,ve.Q)(ge.insideAngular)),this.idToken=this.user.pipe((0,He.w)(Wn=>Wn?(0,be.D)(Wn.getIdToken()):(0,Ne.of)(null))),this.idTokenResult=this.user.pipe((0,He.w)(Wn=>Wn?(0,be.D)(Wn.getIdTokenResult()):(0,Ne.of)(null))),this.credential=(0,me.T)(Ir,ln,this.authState.pipe((0,Bt.h)(Wn=>!Wn))).pipe((0,Ve.U)(Wn=>Wn?.user?Wn:null),(0,xt.R)(ge.outsideAngular),(0,ve.Q)(ge.insideAngular))}return(0,Qt.pX)(this,pn,F,{spy:{apply:(rr,Ir,Lr)=>{(rr.startsWith("signIn")||rr.startsWith("createUser"))&&Lr.then(vi=>ln.next(vi))}}})}}return p.\u0275fac=function(c){return new(c||p)(l.LFG(Qt.Dh),l.LFG(Qt.xv,8),l.LFG(l.Lbi),l.LFG(l.R0b),l.LFG(Rt.HU),l.LFG(Wr,8),l.LFG(Io,8),l.LFG(Ao,8),l.LFG(Qi,8),l.LFG(pi,8),l.LFG(Xi,8),l.LFG(Xn,8))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"any"}),p})(),Os=(()=>{class p{constructor(){fi.Z.registerVersion("angularfire",Rt.q4.full,"auth-compat")}}return p.\u0275fac=function(c){return new(c||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({providers:[En]}),p})();var Ko=C(5123),Cr=C(6223);const er=["domainAutoFocus"],Bi=["passAutoFocus"];function ri(p,a){if(1&p){const c=l.EpF();l.ynx(0),l.TgZ(1,"div",18)(2,"div",19)(3,"form")(4,"div",20)(5,"h2",21),l._uU(6,"Sign in"),l.qZA(),l.TgZ(7,"div",22)(8,"div",23)(9,"div",24)(10,"span",25),l._UZ(11,"i",26),l.qZA(),l.TgZ(12,"input",27,28),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.posDomain=E)}),l.qZA()()(),l.TgZ(14,"select",29),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.domain=E)}),l.TgZ(15,"option",30),l._uU(16,".dealpos.co.id"),l.qZA(),l.TgZ(17,"option",31),l._uU(18,".dealpos.net"),l.qZA(),l.TgZ(19,"option",32),l._uU(20,".dealpos.com"),l.qZA(),l.TgZ(21,"option",33),l._uU(22,".dealpos.app"),l.qZA()()()(),l.TgZ(23,"div",34)(24,"button",35),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.onNextState())}),l._uU(25," Next "),l.qZA()()()()(),l.BQk()}if(2&p){const c=l.oxw();l.xp6(12),l.Q6J("ngModel",c.posDomain),l.xp6(2),l.Q6J("ngModel",c.domain)}}function Vi(p,a){1&p&&(l.TgZ(0,"p"),l._uU(1," Username is required "),l.qZA())}function Er(p,a){if(1&p&&(l.TgZ(0,"div",59),l.YNc(1,Vi,2,0,"p",60),l.qZA()),2&p){l.oxw();const c=l.MAs(13);l.xp6(1),l.Q6J("ngIf",c.errors.required)}}const xa=function(p,a){return{"fa-eye":p,"fa-eye-slash":a}};function Rr(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"i",61),l.NdJ("click",function(){l.CHM(c);const E=l.oxw(2);return l.KtG(E.hideShowPassword())}),l.qZA()}if(2&p){const c=l.oxw(2);l.Q6J("ngClass",l.WLB(1,xa,"eye-off"==c.passwordIcon,"eye"==c.passwordIcon))}}function fr(p,a){1&p&&(l.TgZ(0,"p"),l._uU(1," Password is required "),l.qZA())}function Yo(p,a){if(1&p&&(l.TgZ(0,"div",59),l.YNc(1,fr,2,0,"p",60),l.qZA()),2&p){l.oxw();const c=l.MAs(19);l.xp6(1),l.Q6J("ngIf",c.errors.required)}}function Ji(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"div",18)(1,"div",19)(2,"div",36)(3,"h2",21),l._uU(4,"Sign in"),l.qZA(),l.TgZ(5,"div",37),l._uU(6," to "),l.TgZ(7,"h6",38),l._uU(8),l.qZA(),l.TgZ(9,"i",39),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.onEditDomain())}),l.qZA()()(),l.TgZ(10,"form",40)(11,"div",41)(12,"input",42,43),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.username=E)}),l.qZA(),l.TgZ(14,"label",44),l._uU(15,"Username"),l.qZA(),l.YNc(16,Er,2,1,"div",45),l.qZA(),l.TgZ(17,"div",46)(18,"input",47,48),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.password=E)}),l.qZA(),l.TgZ(20,"label",49),l._uU(21,"Password"),l.qZA(),l.YNc(22,Rr,1,4,"i",50),l.YNc(23,Yo,2,1,"div",45),l.qZA(),l.TgZ(24,"div",51)(25,"a",52),l._uU(26,"Forgot Password?"),l.qZA()(),l.TgZ(27,"div",53)(28,"button",54),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.onLogin())}),l._uU(29," Log in "),l.qZA()(),l.TgZ(30,"div",55),l._UZ(31,"hr"),l.TgZ(32,"span",56),l._uU(33,"or"),l.qZA(),l._UZ(34,"hr"),l.qZA(),l.TgZ(35,"div")(36,"button",57),l.NdJ("click",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.onLoginByGoogle(E))}),l._UZ(37,"i",58),l._uU(38," Sign In with Google "),l.qZA()()()()()}if(2&p){const c=l.MAs(13),h=l.MAs(19),E=l.oxw();l.xp6(8),l.AsE(" (",E.posDomain,"",E.domain,") "),l.xp6(4),l.Q6J("ngModel",E.username),l.xp6(4),l.Q6J("ngIf",c.invalid&&(c.dirty||c.touched)),l.xp6(2),l.Q6J("type",E.passwordType)("ngModel",E.password),l.xp6(4),l.Q6J("ngIf",""!=E.password&&"edge"!=E.browser),l.xp6(1),l.Q6J("ngIf",h.invalid&&(h.dirty||h.touched)),l.xp6(2),l.Q6J("href","https://"+E.posDomain+E.domain+"/ForgotPassword",l.LSH)}}const kr=[{path:"",component:(()=>{var p;class a{constructor(h,E,F,ge,we,et,gt,Wt){this._httpService=h,this.toastr=E,this.auth=F,this.elementRef=ge,this.cdr=we,this.afAuth=et,this.router=gt,this.notificationService=Wt,this.loginState="FORM_DOMAIN",this.domain=".dealpos.co.id",this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#edefff"}ngAfterViewInit(){this.getLocalStorage()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}getLocalStorage(){let h=this.auth.isLocalStorageExist();this.setAutoFocusDomain(),this.username=localStorage.getItem("username"),this.posDomain=localStorage.getItem("posdomain").split(".dealpos")[0];const E=localStorage.getItem("posdomain").split(".dealpos")[1];this.domain=".co.id"==E?".dealpos.co.id":".net"==E?".dealpos.net":".dealpos.com",h&&(this.setAutoFocusPass(),this.cdr.detectChanges(),this.username=this.auth.getUsernameLocalStorage(),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"}onLogin(){var h={Username:this.username,Password:this.password,Host:this.posDomain+(this.posDomain.includes("localhost")?"":this.domain)};this._httpService.post("api/Token/Login",JSON.stringify(h)).toPromise().then(E=>{null==E.access_token&&null==E.access_token||(localStorage.setItem("Domain",this.posDomain+(this.posDomain.includes("localhost")?"":this.domain)),localStorage.setItem("Token",E.access_token),"Tools"==function ue(p,a){if("string"!=typeof p)throw new re("Invalid token specified");var c=!0===(a=a||{}).header?0:1;try{return JSON.parse(function W(p){var a=p.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(Y(a).replace(/(.)/g,function(h,E){var F=E.charCodeAt(0).toString(16).toUpperCase();return F.length<2&&(F="0"+F),"%"+F}))}catch{return Y(a)}}(p.split(".")[c]))}catch(h){throw new re("Invalid token specified: "+h.message)}}(E.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"].filter(et=>"Tools"==et)?(this.saveToLocalStorage(),this.notificationService.subscribeGroup(),this.auth.login("/menu/product")):this.toastr.error("Please check your role","Error"))})}saveToLocalStorage(){this.auth.setLocalStorage(this.posDomain+this.domain,this.username)}onNextState(){V.g.IsEmpty(this.posDomain)?this.toastr.warning("Account Domain is required","Warning"):this.loginState="FORM_AUTH"}onEditDomain(){this.loginState="FORM_DOMAIN"}onLoginByGoogle(h){var E=this.posDomain+(this.posDomain.includes("localhost")?"":this.domain);h.preventDefault();const F=new Q.Z.auth.GoogleAuthProvider;F.setCustomParameters({prompt:"select_account"}),(0,be.D)(this.afAuth.signInWithPopup(F)).pipe((0,Ve.U)(we=>we.credential),(0,Ve.U)(we=>we.idToken),(0,He.w)(we=>this._httpService.post("api/Token/LoginWithSocialProvider",JSON.stringify({IDToken:we,Host:E}))),(0,tt.b)(we=>{localStorage.setItem("Token",we.Token),this.notificationService.subscribeGroup(),this.router.navigate(["/menu/product/existing"])})).subscribe()}}return(p=a).\u0275fac=function(h){return new(h||p)(l.Y36($e.O),l.Y36(X._W),l.Y36(Ye.$),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(En),l.Y36(R.F0),l.Y36(Ko._))},p.\u0275cmp=l.Xpm({type:p,selectors:[["app-login"]],viewQuery:function(h,E){if(1&h&&(l.Gf(er,5),l.Gf(Bi,5)),2&h){let F;l.iGM(F=l.CRH())&&(E.domainElementRef=F.first),l.iGM(F=l.CRH())&&(E.passElementRef=F.first)}},decls:30,vars:7,consts:[[1,"container"],[1,"row","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["src","https://res.cloudinary.com/pos/image/upload/w_200/v1614247725/Apps/Login/tools-dealpos-app.png","alt","integration-image",1,"img-fluid",3,"width"],[1,"col-12","col-md-5","order-first","order-md-last","mt-12"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-8","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",3,"width","height"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-8","font-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,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center","mt-6"],[1,"mt-7","w-75","rounded-end-0"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0",2,"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",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end","mt-3"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(h,E){if(1&h&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l._uU(4," DealPOS - Tools "),l.qZA(),l._UZ(5,"img",4),l.qZA(),l.TgZ(6,"div",5)(7,"h1",6),l._uU(8," DealPOS - Tools "),l.qZA(),l.YNc(9,ri,26,2,"ng-container",7),l.YNc(10,Ji,39,9,"ng-template",null,8,l.W1O),l.qZA(),l.TgZ(12,"div",9)(13,"p",10),l._uU(14,"Powered by :"),l.qZA(),l.TgZ(15,"a",11),l._UZ(16,"img",12),l.qZA(),l._UZ(17,"br"),l.TgZ(18,"a",13),l._uU(19,"Version 2.6.1"),l.qZA()()()(),l.TgZ(20,"footer",14)(21,"div",15)(22,"div",16)(23,"p",10),l._uU(24,"Powered by :"),l.qZA(),l.TgZ(25,"a",11),l._UZ(26,"img",12),l.qZA()(),l.TgZ(27,"div",17)(28,"a",13),l._uU(29,"Version 2.6.1"),l.qZA()()()()),2&h){const F=l.MAs(11);l.xp6(5),l.Q6J("width",250),l.xp6(4),l.Q6J("ngIf","FORM_DOMAIN"==E.loginState)("ngIfElse",F),l.xp6(7),l.Q6J("width",130)("height",73),l.xp6(10),l.Q6J("width",130)("height",73)}},dependencies:[qt.mk,qt.O5,Cr._Y,Cr.YN,Cr.Kr,Cr.Fj,Cr.EJ,Cr.JJ,Cr.JL,Cr.Q7,Cr.On,Cr.F],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.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}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}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}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}"]}),a})(),pathMatch:"full"},{path:"menu",loadChildren:()=>C.e(818).then(C.bind(C,7818)).then(p=>p.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let qo=(()=>{var p;class a{}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({imports:[R.Bz.forRoot(kr,{}),R.Bz]}),a})();var Qo=C(7328);function Oo(p,a){return(c,h)=>!p.call(a,c,h)}var xo=C(4829),Xo=C(9080),x=C(4716),T=C(9360),te=C(2420),k=C(8251);function ae(p){return(0,T.e)((a,c)=>{let h=!1,E=null,F=null;const ge=()=>{if(F?.unsubscribe(),F=null,h){h=!1;const we=E;E=null,c.next(we)}};a.subscribe((0,k.x)(c,we=>{F?.unsubscribe(),h=!0,E=we,F=(0,k.x)(c,ge,te.Z),(0,xo.Xf)(p(we)).subscribe(F)},()=>{ge(),c.complete()},void 0,()=>{E=F=null}))})}var At=C(3997),_n=C(9862);function Nr(p,a){1&p&&l.GkF(0)}function Xr(p,a){if(1&p&&l._UZ(0,"sk-cube-grid",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function co(p,a){if(1&p&&l._UZ(0,"sk-chasing-dots",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function Di(p,a){if(1&p&&l._UZ(0,"sk-double-bounce",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function nl(p,a){if(1&p&&l._UZ(0,"sk-rotating-plane",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function ds(p,a){if(1&p&&l._UZ(0,"sk-spinner-pulse",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function ca(p,a){if(1&p&&l._UZ(0,"sk-three-bounce",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function Pa(p,a){if(1&p&&l._UZ(0,"sk-wandering-cubes",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function rl(p,a){if(1&p&&l._UZ(0,"sk-wave",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}const xs=function(p){return{"background-color":p}};function uo(p,a){if(1&p&&(l.TgZ(0,"div",1),l.YNc(1,Nr,1,0,"ng-container",2),l.YNc(2,Xr,1,1,"sk-cube-grid",3),l.YNc(3,co,1,1,"sk-chasing-dots",3),l.YNc(4,Di,1,1,"sk-double-bounce",3),l.YNc(5,nl,1,1,"sk-rotating-plane",3),l.YNc(6,ds,1,1,"sk-spinner-pulse",3),l.YNc(7,ca,1,1,"sk-three-bounce",3),l.YNc(8,Pa,1,1,"sk-wandering-cubes",3),l.YNc(9,rl,1,1,"sk-wave",3),l.qZA()),2&p){const c=l.oxw();l.Udp("opacity",c.opacity),l.ekj("backdrop",c.backdrop),l.Q6J("ngStyle",l.VKq(14,xs,c.backdrop?c.backdropBackgroundColor:"transparent")),l.xp6(1),l.Q6J("ngComponentOutlet",c.entryComponent),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skCubeGrid),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skChasingDots),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skDoubleBounce),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skRotatingPlane),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skSpinnerPulse),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skThreeBounce),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skWanderingCubes),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skWave)}}let jr=(()=>{var p;class a{}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275dir=l.lG2({type:p,inputs:{backgroundColor:"backgroundColor"}}),a})(),Ps=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-chasing-dots"]],features:[l.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),Hr=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-cube-grid"]],features:[l.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(h,E){1&h&&(l.TgZ(0,"div",0),l._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),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),gr=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-double-bounce"]],features:[l.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),wi=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-rotating-plane"]],features:[l.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(h,E){1&h&&l._UZ(0,"div",0),2&h&&l.Udp("background-color",E.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)}}"]}),a})(),Ur=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-spinner-pulse"]],features:[l.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(h,E){1&h&&l._UZ(0,"div",0),2&h&&l.Udp("background-color",E.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}}"]}),a})(),eo=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-three-bounce"]],features:[l.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(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2)(3,"div",3),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),hs=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-wandering-cubes"]],features:[l.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),fs=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-wave"]],features:[l.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(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})();const Jo={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 ho=(()=>{var p;class a{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Qo.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(h){this._filteredMethods=h}set filteredHeaders(h){this._filteredHeaders=h}set forceByPass(h){this._forceByPass=h}shouldBypassUrl(h){return this._filteredUrlPatterns.some(E=>E.test(h))}shouldBypassMethod(h){return this._filteredMethods.some(E=>E.toUpperCase()===h.method.toUpperCase())}shouldBypassHeader(h){return this._filteredHeaders.some(E=>h.headers.has(E))}shouldBypass(h){return this._forceByPass||this.shouldBypassUrl(h.urlWithParams)||this.shouldBypassMethod(h)||this.shouldBypassHeader(h)}intercept(h,E){const F=this.shouldBypass(h);return F||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),E.handle(h).pipe((0,x.x)(()=>{F||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),a})();const ps=[{provide:_n.TP,useExisting:ho,multi:!0}];let mr=(()=>{var p;class a{constructor(h){this.pendingRequestsInterceptor=h,this._visibility$=new Qo.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(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(ho))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),a})(),ua=(()=>{var p;class a{constructor(h,E){this.pendingRequestsInterceptor=h,this.spinnerVisibility=E,this.spinkit=Jo,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=Jo.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[h,E]=function us(p,a,c){return[(0,Bt.h)(a,c)((0,xo.Xf)(p)),(0,Bt.h)(Oo(a,c))((0,xo.Xf)(p))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,F=>F);this.isVisible$=(0,me.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,He.w)(()=>h.pipe(ae(()=>(0,Xo.H)(this.debounceDelay))))),h.pipe((0,He.w)(()=>E.pipe(ae(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,At.x)(),(0,tt.b)(F=>this.updateExpirationDelay(F)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(h=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(h)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(h){h&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,Xo.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return(p=a).\u0275fac=function(h){return new(h||p)(l.Y36(ho),l.Y36(mr))},p.\u0275cmp=l.Xpm({type:p,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(h,E){1&h&&(l.YNc(0,uo,10,16,"div",0),l.ALo(1,"async")),2&h&&l.Q6J("ngIf",l.lcZ(1,1,E.isVisible$))},dependencies:[qt.$G,qt.O5,qt.PC,Hr,Ps,gr,wi,Ur,eo,hs,fs,qt.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}"]}),a})(),Rs=(()=>{var p;class a{static forRoot(){return{ngModule:a,providers:[ps]}}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({imports:[qt.ez]}),a})();var da=C(4201),fn=C(6825);function ji(p){return new l.vHH(3e3,!1)}function nr(p){switch(p.length){case 0:return new fn.ZN;case 1:return p[0];default:return new fn.ZE(p)}}function tr(p,a,c=new Map,h=new Map){const E=[],F=[];let ge=-1,we=null;if(a.forEach(et=>{const gt=et.get("offset"),Wt=gt==ge,Ft=Wt&&we||new Map;et.forEach((Fn,On)=>{let ln=On,pn=Fn;if("offset"!==On)switch(ln=p.normalizePropertyName(ln,E),pn){case fn.k1:pn=c.get(On);break;case fn.l3:pn=h.get(On);break;default:pn=p.normalizeStyleValue(On,ln,pn,E)}Ft.set(ln,pn)}),Wt||F.push(Ft),we=Ft,ge=gt}),E.length)throw function Tn(p){return new l.vHH(3502,!1)}();return F}function ns(p,a,c,h){switch(a){case"start":p.onStart(()=>h(c&&no(c,"start",p)));break;case"done":p.onDone(()=>h(c&&no(c,"done",p)));break;case"destroy":p.onDestroy(()=>h(c&&no(c,"destroy",p)))}}function no(p,a,c){const F=Kr(p.element,p.triggerName,p.fromState,p.toState,a||p.phaseName,c.totalTime??p.totalTime,!!c.disabled),ge=p._data;return null!=ge&&(F._data=ge),F}function Kr(p,a,c,h,E="",F=0,ge){return{element:p,triggerName:a,fromState:c,toState:h,phaseName:E,totalTime:F,disabled:!!ge}}function Mi(p,a,c){let h=p.get(a);return h||p.set(a,h=c),h}function Ys(p){const a=p.indexOf(":");return[p.substring(1,a),p.slice(a+1)]}const bs=(()=>typeof document>"u"?null:document.documentElement)();function Jr(p){const a=p.parentNode||p.host||null;return a===bs?null:a}let Hi=null,pa=!1;function ka(p,a){for(;a;){if(a===p)return!0;a=Jr(a)}return!1}function al(p,a,c){if(c)return Array.from(p.querySelectorAll(a));const h=p.querySelector(a);return h?[h]:[]}let ll=(()=>{var p;class a{validateStyleProperty(h){return function Cs(p){Hi||(Hi=function Ui(){return typeof document<"u"?document.body:null}()||{},pa=!!Hi.style&&"WebkitAppearance"in Hi.style);let a=!0;return Hi.style&&!function ol(p){return"ebkit"==p.substring(1,6)}(p)&&(a=p in Hi.style,!a&&pa&&(a="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in Hi.style)),a}(h)}matchesElement(h,E){return!1}containsElement(h,E){return ka(h,E)}getParentElement(h){return Jr(h)}query(h,E,F){return al(h,E,F)}computeStyle(h,E,F){return F||""}animate(h,E,F,ge,we,et=[],gt){return new fn.ZN(F,ge)}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})(),dn=(()=>{class a{}return a.NOOP=new ll,a})();const ma=1e3,wr="ng-enter",ya="ng-leave",Sr="ng-trigger",fo=".ng-trigger",Na="ng-animating",Fa=".ng-animating";function Po(p){if("number"==typeof p)return p;const a=p.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:ba(parseFloat(a[1]),a[2])}function ba(p,a){return"s"===a?p*ma:p}function Ca(p,a,c){return p.hasOwnProperty("duration")?p:function Mt(p,a,c){let E,F=0,ge="";if("string"==typeof p){const we=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===we)return a.push(ji()),{duration:0,delay:0,easing:""};E=ba(parseFloat(we[1]),we[2]);const et=we[3];null!=et&&(F=ba(parseFloat(et),we[4]));const gt=we[5];gt&&(ge=gt)}else E=p;if(!c){let we=!1,et=a.length;E<0&&(a.push(function ks(){return new l.vHH(3100,!1)}()),we=!0),F<0&&(a.push(function Ns(){return new l.vHH(3101,!1)}()),we=!0),we&&a.splice(et,0,ji())}return{duration:E,delay:F,easing:ge}}(p,a,c)}function Rn(p,a={}){return Object.keys(p).forEach(c=>{a[c]=p[c]}),a}function js(p){const a=new Map;return Object.keys(p).forEach(c=>{a.set(c,p[c])}),a}function po(p,a=new Map,c){if(c)for(let[h,E]of c)a.set(h,E);for(let[h,E]of p)a.set(h,E);return a}function mi(p,a,c){a.forEach((h,E)=>{const F=qs(E);c&&!c.has(E)&&c.set(E,p.style[F]),p.style[F]=h})}function ei(p,a){a.forEach((c,h)=>{const E=qs(h);p.style[E]=""})}function rs(p){return Array.isArray(p)?1==p.length?p[0]:(0,fn.vP)(p):p}const Ea=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ol(p){let a=[];if("string"==typeof p){let c;for(;c=Ea.exec(p);)a.push(c[1]);Ea.lastIndex=0}return a}function is(p,a,c){const h=p.toString(),E=h.replace(Ea,(F,ge)=>{let we=a[ge];return null==we&&(c.push(function Fs(p){return new l.vHH(3003,!1)}()),we=""),we.toString()});return E==h?p:E}function Yr(p){const a=[];let c=p.next();for(;!c.done;)a.push(c.value),c=p.next();return a}const ro=/-+([a-z0-9])/g;function qs(p){return p.replace(ro,(...a)=>a[1].toUpperCase())}function w(p,a,c){switch(a.type){case 7:return p.visitTrigger(a,c);case 0:return p.visitState(a,c);case 1:return p.visitTransition(a,c);case 2:return p.visitSequence(a,c);case 3:return p.visitGroup(a,c);case 4:return p.visitAnimate(a,c);case 5:return p.visitKeyframes(a,c);case 6:return p.visitStyle(a,c);case 8:return p.visitReference(a,c);case 9:return p.visitAnimateChild(a,c);case 10:return p.visitAnimateRef(a,c);case 11:return p.visitQuery(a,c);case 12:return p.visitStagger(a,c);default:throw function ms(p){return new l.vHH(3004,!1)}()}}function _(p,a){return window.getComputedStyle(p)[a]}const Jt="*";function vn(p,a){const c=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(h=>function Mr(p,a,c){if(":"==p[0]){const et=function Gn(p,a){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,h)=>parseFloat(h)>parseFloat(c);case":decrement":return(c,h)=>parseFloat(h)<parseFloat(c);default:return a.push(function ne(p){return new l.vHH(3016,!1)}()),"* => *"}}(p,c);if("function"==typeof et)return void a.push(et);p=et}const h=p.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==h||h.length<4)return c.push(function M(p){return new l.vHH(3015,!1)}()),a;const E=h[1],F=h[2],ge=h[3];a.push(Ro(E,ge));"<"==F[0]&&!(E==Jt&&ge==Jt)&&a.push(Ro(ge,E))}(h,c,a)):c.push(p),c}const ii=new Set(["true","1"]),$i=new Set(["false","0"]);function Ro(p,a){const c=ii.has(p)||$i.has(p),h=ii.has(a)||$i.has(a);return(E,F)=>{let ge=p==Jt||p==E,we=a==Jt||a==F;return!ge&&c&&"boolean"==typeof E&&(ge=E?ii.has(p):$i.has(p)),!we&&h&&"boolean"==typeof F&&(we=F?ii.has(a):$i.has(a)),ge&&we}}const Ba=new RegExp("s*:selfs*,?","g");function qr(p,a,c,h){return new vr(p).build(a,c,h)}class vr{constructor(a){this._driver=a}build(a,c,h){const E=new go(c);return this._resetContextStyleTimingState(E),w(this,rs(a),E)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,c){let h=c.queryCount=0,E=c.depCount=0;const F=[],ge=[];return"@"==a.name.charAt(0)&&c.errors.push(function Ls(){return new l.vHH(3006,!1)}()),a.definitions.forEach(we=>{if(this._resetContextStyleTimingState(c),0==we.type){const et=we,gt=et.name;gt.toString().split(/\s*,\s*/).forEach(Wt=>{et.name=Wt,F.push(this.visitState(et,c))}),et.name=gt}else if(1==we.type){const et=this.visitTransition(we,c);h+=et.queryCount,E+=et.depCount,ge.push(et)}else c.errors.push(function Bs(){return new l.vHH(3007,!1)}())}),{type:7,name:a.name,states:F,transitions:ge,queryCount:h,depCount:E,options:null}}visitState(a,c){const h=this.visitStyle(a.styles,c),E=a.options&&a.options.params||null;if(h.containsDynamicStyles){const F=new Set,ge=E||{};h.styles.forEach(we=>{we instanceof Map&&we.forEach(et=>{Ol(et).forEach(gt=>{ge.hasOwnProperty(gt)||F.add(gt)})})}),F.size&&(Yr(F.values()),c.errors.push(function _s(p,a){return new l.vHH(3008,!1)}()))}return{type:0,name:a.name,style:h,options:E?{params:E}:null}}visitTransition(a,c){c.queryCount=0,c.depCount=0;const h=w(this,rs(a.animation),c);return{type:1,matchers:vn(a.expr,c.errors),animation:h,queryCount:c.queryCount,depCount:c.depCount,options:mo(a.options)}}visitSequence(a,c){return{type:2,steps:a.steps.map(h=>w(this,h,c)),options:mo(a.options)}}visitGroup(a,c){const h=c.currentTime;let E=0;const F=a.steps.map(ge=>{c.currentTime=h;const we=w(this,ge,c);return E=Math.max(E,c.currentTime),we});return c.currentTime=E,{type:3,steps:F,options:mo(a.options)}}visitAnimate(a,c){const h=function cl(p,a){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return Us(Ca(p,a).duration,0,"");const c=p;if(c.split(/\s+/).some(F=>"{"==F.charAt(0)&&"{"==F.charAt(1))){const F=Us(0,0,"");return F.dynamic=!0,F.strValue=c,F}const E=Ca(c,a);return Us(E.duration,E.delay,E.easing)}(a.timings,c.errors);c.currentAnimateTimings=h;let E,F=a.styles?a.styles:(0,fn.oB)({});if(5==F.type)E=this.visitKeyframes(F,c);else{let ge=a.styles,we=!1;if(!ge){we=!0;const gt={};h.easing&&(gt.easing=h.easing),ge=(0,fn.oB)(gt)}c.currentTime+=h.duration+h.delay;const et=this.visitStyle(ge,c);et.isEmptyStep=we,E=et}return c.currentAnimateTimings=null,{type:4,timings:h,style:E,options:null}}visitStyle(a,c){const h=this._makeStyleAst(a,c);return this._validateStyleAst(h,c),h}_makeStyleAst(a,c){const h=[],E=Array.isArray(a.styles)?a.styles:[a.styles];for(let we of E)"string"==typeof we?we===fn.l3?h.push(we):c.errors.push(new l.vHH(3002,!1)):h.push(js(we));let F=!1,ge=null;return h.forEach(we=>{if(we instanceof Map&&(we.has("easing")&&(ge=we.get("easing"),we.delete("easing")),!F))for(let et of we.values())if(et.toString().indexOf("{{")>=0){F=!0;break}}),{type:6,styles:h,easing:ge,offset:a.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(a,c){const h=c.currentAnimateTimings;let E=c.currentTime,F=c.currentTime;h&&F>0&&(F-=h.duration+h.delay),a.styles.forEach(ge=>{"string"!=typeof ge&&ge.forEach((we,et)=>{const gt=c.collectedStyles.get(c.currentQuerySelector),Wt=gt.get(et);let Ft=!0;Wt&&(F!=E&&F>=Wt.startTime&&E<=Wt.endTime&&(c.errors.push(function ha(p,a,c,h,E){return new l.vHH(3010,!1)}()),Ft=!1),F=Wt.startTime),Ft&>.set(et,{startTime:F,endTime:E}),c.options&&function Hs(p,a,c){const h=a.params||{},E=Ol(p);E.length&&E.forEach(F=>{h.hasOwnProperty(F)||c.push(function ts(p){return new l.vHH(3001,!1)}())})}(we,c.options,c.errors)})})}visitKeyframes(a,c){const h={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push(function fa(){return new l.vHH(3011,!1)}()),h;let F=0;const ge=[];let we=!1,et=!1,gt=0;const Wt=a.steps.map(Ir=>{const Lr=this._makeStyleAst(Ir,c);let vi=null!=Lr.offset?Lr.offset:function xl(p){if("string"==typeof p)return null;let a=null;if(Array.isArray(p))p.forEach(c=>{if(c instanceof Map&&c.has("offset")){const h=c;a=parseFloat(h.get("offset")),h.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const c=p;a=parseFloat(c.get("offset")),c.delete("offset")}return a}(Lr.styles),Wn=0;return null!=vi&&(F++,Wn=Lr.offset=vi),et=et||Wn<0||Wn>1,we=we||Wn<gt,gt=Wn,ge.push(Wn),Lr});et&&c.errors.push(function vs(){return new l.vHH(3012,!1)}()),we&&c.errors.push(function ys(){return new l.vHH(3200,!1)}());const Ft=a.steps.length;let Fn=0;F>0&&F<Ft?c.errors.push(function g(){return new l.vHH(3202,!1)}()):0==F&&(Fn=1/(Ft-1));const On=Ft-1,ln=c.currentTime,pn=c.currentAnimateTimings,rr=pn.duration;return Wt.forEach((Ir,Lr)=>{const vi=Fn>0?Lr==On?1:Fn*Lr:ge[Lr],Wn=vi*rr;c.currentTime=ln+pn.delay+Wn,pn.duration=Wn,this._validateStyleAst(Ir,c),Ir.offset=vi,h.styles.push(Ir)}),h}visitReference(a,c){return{type:8,animation:w(this,rs(a.animation),c),options:mo(a.options)}}visitAnimateChild(a,c){return c.depCount++,{type:9,options:mo(a.options)}}visitAnimateRef(a,c){return{type:10,animation:this.visitReference(a.animation,c),options:mo(a.options)}}visitQuery(a,c){const h=c.currentQuerySelector,E=a.options||{};c.queryCount++,c.currentQuery=a;const[F,ge]=function Va(p){const a=!!p.split(/\s*,\s*/).find(c=>":self"==c);return a&&(p=p.replace(Ba,"")),p=p.replace(/@\*/g,fo).replace(/@\w+/g,c=>fo+"-"+c.slice(1)).replace(/:animating/g,Fa),[p,a]}(a.selector);c.currentQuerySelector=h.length?h+" "+F:F,Mi(c.collectedStyles,c.currentQuerySelector,new Map);const we=w(this,rs(a.animation),c);return c.currentQuery=null,c.currentQuerySelector=h,{type:11,selector:F,limit:E.limit||0,optional:!!E.optional,includeSelf:ge,animation:we,originalSelector:a.selector,options:mo(a.options)}}visitStagger(a,c){c.currentQuery||c.errors.push(function A(){return new l.vHH(3013,!1)}());const h="full"===a.timings?{duration:0,delay:0,easing:"full"}:Ca(a.timings,c.errors,!0);return{type:12,animation:w(this,rs(a.animation),c),timings:h,options:null}}}class go{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 mo(p){return p?(p=Rn(p)).params&&(p.params=function Ec(p){return p?Rn(p):null}(p.params)):p={},p}function Us(p,a,c){return{duration:p,delay:a,easing:c}}function _o(p,a,c,h,E,F,ge=null,we=!1){return{type:1,element:p,keyframes:a,preStyleProps:c,postStyleProps:h,duration:E,delay:F,totalTime:E+F,easing:ge,subTimeline:we}}class zi{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,c){let h=this._map.get(a);h||this._map.set(a,h=[]),h.push(...c)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const ja=new RegExp(":enter","g"),Dc=new RegExp(":leave","g");function Ha(p,a,c,h,E,F=new Map,ge=new Map,we,et,gt=[]){return(new wc).buildKeyframes(p,a,c,h,E,F,ge,we,et,gt)}class wc{buildKeyframes(a,c,h,E,F,ge,we,et,gt,Wt=[]){gt=gt||new zi;const Ft=new Xs(a,c,gt,E,F,Wt,[]);Ft.options=et;const Fn=et.delay?Po(et.delay):0;Ft.currentTimeline.delayNextStep(Fn),Ft.currentTimeline.setStyles([ge],null,Ft.errors,et),w(this,h,Ft);const On=Ft.timelines.filter(ln=>ln.containsAnimation());if(On.length&&we.size){let ln;for(let pn=On.length-1;pn>=0;pn--){const rr=On[pn];if(rr.element===c){ln=rr;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([we],null,Ft.errors,et)}return On.length?On.map(ln=>ln.buildKeyframes()):[_o(c,[],[],[],0,Fn,"",!1)]}visitTrigger(a,c){}visitState(a,c){}visitTransition(a,c){}visitAnimateChild(a,c){const h=c.subInstructions.get(c.element);if(h){const E=c.createSubContext(a.options),F=c.currentTimeline.currentTime,ge=this._visitSubInstructions(h,E,E.options);F!=ge&&c.transformIntoNewTimeline(ge)}c.previousNode=a}visitAnimateRef(a,c){const h=c.createSubContext(a.options);h.transformIntoNewTimeline(),this._applyAnimationRefDelays([a.options,a.animation.options],c,h),this.visitReference(a.animation,h),c.transformIntoNewTimeline(h.currentTimeline.currentTime),c.previousNode=a}_applyAnimationRefDelays(a,c,h){for(const E of a){const F=E?.delay;if(F){const ge="number"==typeof F?F:Po(is(F,E?.params??{},c.errors));h.delayNextStep(ge)}}}_visitSubInstructions(a,c,h){let F=c.currentTimeline.currentTime;const ge=null!=h.duration?Po(h.duration):null,we=null!=h.delay?Po(h.delay):null;return 0!==ge&&a.forEach(et=>{const gt=c.appendInstructionToTimeline(et,ge,we);F=Math.max(F,gt.duration+gt.delay)}),F}visitReference(a,c){c.updateOptions(a.options,!0),w(this,a.animation,c),c.previousNode=a}visitSequence(a,c){const h=c.subContextCount;let E=c;const F=a.options;if(F&&(F.params||F.delay)&&(E=c.createSubContext(F),E.transformIntoNewTimeline(),null!=F.delay)){6==E.previousNode.type&&(E.currentTimeline.snapshotCurrentStyles(),E.previousNode=vo);const ge=Po(F.delay);E.delayNextStep(ge)}a.steps.length&&(a.steps.forEach(ge=>w(this,ge,E)),E.currentTimeline.applyStylesToKeyframe(),E.subContextCount>h&&E.transformIntoNewTimeline()),c.previousNode=a}visitGroup(a,c){const h=[];let E=c.currentTimeline.currentTime;const F=a.options&&a.options.delay?Po(a.options.delay):0;a.steps.forEach(ge=>{const we=c.createSubContext(a.options);F&&we.delayNextStep(F),w(this,ge,we),E=Math.max(E,we.currentTimeline.currentTime),h.push(we.currentTimeline)}),h.forEach(ge=>c.currentTimeline.mergeTimelineCollectedStyles(ge)),c.transformIntoNewTimeline(E),c.previousNode=a}_visitTiming(a,c){if(a.dynamic){const h=a.strValue;return Ca(c.params?is(h,c.params,c.errors):h,c.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,c){const h=c.currentAnimateTimings=this._visitTiming(a.timings,c),E=c.currentTimeline;h.delay&&(c.incrementTime(h.delay),E.snapshotCurrentStyles());const F=a.style;5==F.type?this.visitKeyframes(F,c):(c.incrementTime(h.duration),this.visitStyle(F,c),E.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=a}visitStyle(a,c){const h=c.currentTimeline,E=c.currentAnimateTimings;!E&&h.hasCurrentStyleProperties()&&h.forwardFrame();const F=E&&E.easing||a.easing;a.isEmptyStep?h.applyEmptyStep(F):h.setStyles(a.styles,F,c.errors,c.options),c.previousNode=a}visitKeyframes(a,c){const h=c.currentAnimateTimings,E=c.currentTimeline.duration,F=h.duration,we=c.createSubContext().currentTimeline;we.easing=h.easing,a.styles.forEach(et=>{we.forwardTime((et.offset||0)*F),we.setStyles(et.styles,et.easing,c.errors,c.options),we.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(we),c.transformIntoNewTimeline(E+F),c.previousNode=a}visitQuery(a,c){const h=c.currentTimeline.currentTime,E=a.options||{},F=E.delay?Po(E.delay):0;F&&(6===c.previousNode.type||0==h&&c.currentTimeline.hasCurrentStyleProperties())&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=vo);let ge=h;const we=c.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!E.optional,c.errors);c.currentQueryTotal=we.length;let et=null;we.forEach((gt,Wt)=>{c.currentQueryIndex=Wt;const Ft=c.createSubContext(a.options,gt);F&&Ft.delayNextStep(F),gt===c.element&&(et=Ft.currentTimeline),w(this,a.animation,Ft),Ft.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Ft.currentTimeline.currentTime)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline(ge),et&&(c.currentTimeline.mergeTimelineCollectedStyles(et),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=a}visitStagger(a,c){const h=c.parentContext,E=c.currentTimeline,F=a.timings,ge=Math.abs(F.duration),we=ge*(c.currentQueryTotal-1);let et=ge*c.currentQueryIndex;switch(F.duration<0?"reverse":F.easing){case"reverse":et=we-et;break;case"full":et=h.currentStaggerTime}const Wt=c.currentTimeline;et&&Wt.delayNextStep(et);const Ft=Wt.currentTime;w(this,a.animation,c),c.previousNode=a,h.currentStaggerTime=E.currentTime-Ft+(E.startTime-h.currentTimeline.startTime)}}const vo={};class Xs{constructor(a,c,h,E,F,ge,we,et){this._driver=a,this.element=c,this.subInstructions=h,this._enterClassName=E,this._leaveClassName=F,this.errors=ge,this.timelines=we,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=et||new hl(this._driver,c,0),we.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,c){if(!a)return;const h=a;let E=this.options;null!=h.duration&&(E.duration=Po(h.duration)),null!=h.delay&&(E.delay=Po(h.delay));const F=h.params;if(F){let ge=E.params;ge||(ge=this.options.params={}),Object.keys(F).forEach(we=>{(!c||!ge.hasOwnProperty(we))&&(ge[we]=is(F[we],ge,this.errors))})}}_copyOptions(){const a={};if(this.options){const c=this.options.params;if(c){const h=a.params={};Object.keys(c).forEach(E=>{h[E]=c[E]})}}return a}createSubContext(a=null,c,h){const E=c||this.element,F=new Xs(this._driver,E,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(E,h||0));return F.previousNode=this.previousNode,F.currentAnimateTimings=this.currentAnimateTimings,F.options=this._copyOptions(),F.updateOptions(a),F.currentQueryIndex=this.currentQueryIndex,F.currentQueryTotal=this.currentQueryTotal,F.parentContext=this,this.subContextCount++,F}transformIntoNewTimeline(a){return this.previousNode=vo,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,c,h){const E={duration:c??a.duration,delay:this.currentTimeline.currentTime+(h??0)+a.delay,easing:""},F=new Pl(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,E,a.stretchStartingKeyframe);return this.timelines.push(F),E}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,c,h,E,F,ge){let we=[];if(E&&we.push(this.element),a.length>0){a=(a=a.replace(ja,"."+this._enterClassName)).replace(Dc,"."+this._leaveClassName);let gt=this._driver.query(this.element,a,1!=h);0!==h&&(gt=h<0?gt.slice(gt.length+h,gt.length):gt.slice(0,h)),we.push(...gt)}return!F&&0==we.length&&ge.push(function fe(p){return new l.vHH(3014,!1)}()),we}}class hl{constructor(a,c,h,E){this._driver=a,this.element=c,this.startTime=h,this._elementTimelineStylesLookup=E,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(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,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 c=1===this._keyframes.size&&this._pendingStyles.size;this.duration||c?(this.forwardTime(this.currentTime+a),c&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,c){return this.applyStylesToKeyframe(),new hl(this._driver,a,c||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,c){this._localTimelineStyles.set(a,c),this._globalTimelineStyles.set(a,c),this._styleSummary.set(a,{time:this.currentTime,value:c})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[c,h]of this._globalTimelineStyles)this._backFill.set(c,h||fn.l3),this._currentKeyframe.set(c,fn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,c,h,E){c&&this._previousKeyframe.set("easing",c);const F=E&&E.params||{},ge=function gd(p,a){const c=new Map;let h;return p.forEach(E=>{if("*"===E){h=h||a.keys();for(let F of h)c.set(F,fn.l3)}else po(E,c)}),c}(a,this._globalTimelineStyles);for(let[we,et]of ge){const gt=is(et,F,h);this._pendingStyles.set(we,gt),this._localTimelineStyles.has(we)||this._backFill.set(we,this._globalTimelineStyles.get(we)??fn.l3),this._updateStyle(we,gt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,c)=>{this._currentKeyframe.set(c,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,c)=>{this._currentKeyframe.has(c)||this._currentKeyframe.set(c,a)}))}snapshotCurrentStyles(){for(let[a,c]of this._localTimelineStyles)this._pendingStyles.set(a,c),this._updateStyle(a,c)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let c in this._currentKeyframe)a.push(c);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((c,h)=>{const E=this._styleSummary.get(h);(!E||c.time>E.time)&&this._updateStyle(h,c.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,c=new Set,h=1===this._keyframes.size&&0===this.duration;let E=[];this._keyframes.forEach((we,et)=>{const gt=po(we,new Map,this._backFill);gt.forEach((Wt,Ft)=>{Wt===fn.k1?a.add(Ft):Wt===fn.l3&&c.add(Ft)}),h||gt.set("offset",et/this.duration),E.push(gt)});const F=a.size?Yr(a.values()):[],ge=c.size?Yr(c.values()):[];if(h){const we=E[0],et=new Map(we);we.set("offset",0),et.set("offset",1),E=[we,et]}return _o(this.element,E,F,ge,this.duration,this.startTime,this.easing,!1)}}class Pl extends hl{constructor(a,c,h,E,F,ge,we=!1){super(a,c,ge.delay),this.keyframes=h,this.preStyleProps=E,this.postStyleProps=F,this._stretchStartingKeyframe=we,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:c,duration:h,easing:E}=this.timings;if(this._stretchStartingKeyframe&&c){const F=[],ge=h+c,we=c/ge,et=po(a[0]);et.set("offset",0),F.push(et);const gt=po(a[0]);gt.set("offset",fl(we)),F.push(gt);const Wt=a.length-1;for(let Ft=1;Ft<=Wt;Ft++){let Fn=po(a[Ft]);const On=Fn.get("offset");Fn.set("offset",fl((c+On*h)/ge)),F.push(Fn)}h=ge,c=0,E="",a=F}return _o(this.element,a,this.preStyleProps,this.postStyleProps,h,c,E,!0)}}function fl(p,a=3){const c=Math.pow(10,a-1);return Math.round(p*c)/c}class Rl{}const vd=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 Ua extends Rl{normalizePropertyName(a,c){return qs(a)}normalizeStyleValue(a,c,h,E){let F="";const ge=h.toString().trim();if(vd.has(c)&&0!==h&&"0"!==h)if("number"==typeof h)F="px";else{const we=h.match(/^[+-]?[\d\.]+([a-z]*)$/);we&&0==we[1].length&&E.push(function il(p,a){return new l.vHH(3005,!1)}())}return ge+F}}function $s(p,a,c,h,E,F,ge,we,et,gt,Wt,Ft,Fn){return{type:0,element:p,triggerName:a,isRemovalTransition:E,fromState:c,fromStyles:F,toState:h,toStyles:ge,timelines:we,queriedElements:et,preStyleProps:gt,postStyleProps:Wt,totalTime:Ft,errors:Fn}}const pl={};class Js{constructor(a,c,h){this._triggerName=a,this.ast=c,this._stateStyles=h}match(a,c,h,E){return function $a(p,a,c,h,E){return p.some(F=>F(a,c,h,E))}(this.ast.matchers,a,c,h,E)}buildStyles(a,c,h){let E=this._stateStyles.get("*");return void 0!==a&&(E=this._stateStyles.get(a?.toString())||E),E?E.buildStyles(c,h):new Map}build(a,c,h,E,F,ge,we,et,gt,Wt){const Ft=[],Fn=this.ast.options&&this.ast.options.params||pl,ln=this.buildStyles(h,we&&we.params||pl,Ft),pn=et&&et.params||pl,rr=this.buildStyles(E,pn,Ft),Ir=new Set,Lr=new Map,vi=new Map,Wn="void"===E,Wi={params:uu(pn,Fn),delay:this.ast.options?.delay},yi=Wt?[]:Ha(a,c,this.ast.animation,F,ge,ln,rr,Wi,gt,Ft);let Zi=0;if(yi.forEach(ta=>{Zi=Math.max(ta.duration+ta.delay,Zi)}),Ft.length)return $s(c,this._triggerName,h,E,Wn,ln,rr,[],[],Lr,vi,Zi,Ft);yi.forEach(ta=>{const na=ta.element,$l=Mi(Lr,na,new Set);ta.preStyleProps.forEach(Xa=>$l.add(Xa));const zl=Mi(vi,na,new Set);ta.postStyleProps.forEach(Xa=>zl.add(Xa)),na!==c&&Ir.add(na)});const as=Yr(Ir.values());return $s(c,this._triggerName,h,E,Wn,ln,rr,yi,as,Lr,vi,Zi)}}function uu(p,a){const c=Rn(a);for(const h in p)p.hasOwnProperty(h)&&null!=p[h]&&(c[h]=p[h]);return c}class Nl{constructor(a,c,h){this.styles=a,this.defaultParams=c,this.normalizer=h}buildStyles(a,c){const h=new Map,E=Rn(this.defaultParams);return Object.keys(a).forEach(F=>{const ge=a[F];null!==ge&&(E[F]=ge)}),this.styles.styles.forEach(F=>{"string"!=typeof F&&F.forEach((ge,we)=>{ge&&(ge=is(ge,E,c));const et=this.normalizer.normalizePropertyName(we,c);ge=this.normalizer.normalizeStyleValue(we,et,ge,c),h.set(we,ge)})}),h}}class Mc{constructor(a,c,h){this.name=a,this.ast=c,this._normalizer=h,this.transitionFactories=[],this.states=new Map,c.states.forEach(E=>{this.states.set(E.name,new Nl(E.style,E.options&&E.options.params||{},h))}),Fl(this.states,"true","1"),Fl(this.states,"false","0"),c.transitions.forEach(E=>{this.transitionFactories.push(new Js(a,E,this.states))}),this.fallbackTransition=function Fo(p,a,c){return new Js(p,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,we)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,c,h,E){return this.transitionFactories.find(ge=>ge.match(a,c,h,E))||null}matchStyles(a,c,h){return this.fallbackTransition.buildStyles(a,c,h)}}function Fl(p,a,c){p.has(a)?p.has(c)||p.set(c,p.get(a)):p.has(c)&&p.set(a,p.get(c))}const za=new zi;class gl{constructor(a,c,h){this.bodyNode=a,this._driver=c,this._normalizer=h,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,c){const h=[],F=qr(this._driver,c,h,[]);if(h.length)throw function zn(p){return new l.vHH(3503,!1)}();this._animations.set(a,F)}_buildPlayer(a,c,h){const E=a.element,F=tr(this._normalizer,a.keyframes,c,h);return this._driver.animate(E,F,a.duration,a.delay,a.easing,[],!0)}create(a,c,h={}){const E=[],F=this._animations.get(a);let ge;const we=new Map;if(F?(ge=Ha(this._driver,c,F,wr,ya,new Map,new Map,h,za,E),ge.forEach(Wt=>{const Ft=Mi(we,Wt.element,new Map);Wt.postStyleProps.forEach(Fn=>Ft.set(Fn,null))})):(E.push(function Bn(){return new l.vHH(3300,!1)}()),ge=[]),E.length)throw function bn(p){return new l.vHH(3504,!1)}();we.forEach((Wt,Ft)=>{Wt.forEach((Fn,On)=>{Wt.set(On,this._driver.computeStyle(Ft,On,fn.l3))})});const gt=nr(ge.map(Wt=>{const Ft=we.get(Wt.element);return this._buildPlayer(Wt,new Map,Ft)}));return this._playersById.set(a,gt),gt.onDestroy(()=>this.destroy(a)),this.players.push(gt),gt}destroy(a){const c=this._getPlayer(a);c.destroy(),this._playersById.delete(a);const h=this.players.indexOf(c);h>=0&&this.players.splice(h,1)}_getPlayer(a){const c=this._playersById.get(a);if(!c)throw function sr(p){return new l.vHH(3301,!1)}();return c}listen(a,c,h,E){const F=Kr(c,"","","");return ns(this._getPlayer(a),h,F,E),()=>{}}command(a,c,h,E){if("register"==h)return void this.register(a,E[0]);if("create"==h)return void this.create(a,c,E[0]||{});const F=this._getPlayer(a);switch(h){case"play":F.play();break;case"pause":F.pause();break;case"reset":F.reset();break;case"restart":F.restart();break;case"finish":F.finish();break;case"init":F.init();break;case"setPosition":F.setPosition(parseFloat(E[0]));break;case"destroy":this.destroy(a)}}}const Da="ng-animate-queued",zs="ng-animate-disabled",Za=[],Ll={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},du={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Gi="__ng_removed";class os{get params(){return this.options.params}constructor(a,c=""){this.namespaceId=c;const h=a&&a.hasOwnProperty("value");if(this.value=function Tc(p){return p??null}(h?a.value:a),h){const F=Rn(a);delete F.value,this.options=F}else this.options={};this.options.params||(this.options.params={})}absorbOptions(a){const c=a.params;if(c){const h=this.options.params;Object.keys(c).forEach(E=>{null==h[E]&&(h[E]=c[E])})}}}const wa="void",ss=new os(wa);class _l{constructor(a,c,h){this.id=a,this.hostElement=c,this._engine=h,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,oi(c,this._hostClassName)}listen(a,c,h,E){if(!this._triggers.has(c))throw function Qn(p,a){return new l.vHH(3302,!1)}();if(null==h||0==h.length)throw function _r(p){return new l.vHH(3303,!1)}();if(!function Bl(p){return"start"==p||"done"==p}(h))throw function Zr(p,a){return new l.vHH(3400,!1)}();const F=Mi(this._elementListeners,a,[]),ge={name:c,phase:h,callback:E};F.push(ge);const we=Mi(this._engine.statesByElement,a,new Map);return we.has(c)||(oi(a,Sr),oi(a,Sr+"-"+c),we.set(c,ss)),()=>{this._engine.afterFlush(()=>{const et=F.indexOf(ge);et>=0&&F.splice(et,1),this._triggers.has(c)||we.delete(c)})}}register(a,c){return!this._triggers.has(a)&&(this._triggers.set(a,c),!0)}_getTrigger(a){const c=this._triggers.get(a);if(!c)throw function Si(p){return new l.vHH(3401,!1)}();return c}trigger(a,c,h,E=!0){const F=this._getTrigger(c),ge=new vl(this.id,c,a);let we=this._engine.statesByElement.get(a);we||(oi(a,Sr),oi(a,Sr+"-"+c),this._engine.statesByElement.set(a,we=new Map));let et=we.get(c);const gt=new os(h,this.id);if(!(h&&h.hasOwnProperty("value"))&&et&>.absorbOptions(et.options),we.set(c,gt),et||(et=ss),gt.value!==wa&&et.value===gt.value){if(!function he(p,a){const c=Object.keys(p),h=Object.keys(a);if(c.length!=h.length)return!1;for(let E=0;E<c.length;E++){const F=c[E];if(!a.hasOwnProperty(F)||p[F]!==a[F])return!1}return!0}(et.params,gt.params)){const pn=[],rr=F.matchStyles(et.value,et.params,pn),Ir=F.matchStyles(gt.value,gt.params,pn);pn.length?this._engine.reportError(pn):this._engine.afterFlush(()=>{ei(a,rr),mi(a,Ir)})}return}const Fn=Mi(this._engine.playersByElement,a,[]);Fn.forEach(pn=>{pn.namespaceId==this.id&&pn.triggerName==c&&pn.queued&&pn.destroy()});let On=F.matchTransition(et.value,gt.value,a,gt.params),ln=!1;if(!On){if(!E)return;On=F.fallbackTransition,ln=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:On,fromState:et,toState:gt,player:ge,isFallbackTransition:ln}),ln||(oi(a,Da),ge.onStart(()=>{Lo(a,Da)})),ge.onDone(()=>{let pn=this.players.indexOf(ge);pn>=0&&this.players.splice(pn,1);const rr=this._engine.playersByElement.get(a);if(rr){let Ir=rr.indexOf(ge);Ir>=0&&rr.splice(Ir,1)}}),this.players.push(ge),Fn.push(ge),ge}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(c=>c.delete(a)),this._elementListeners.forEach((c,h)=>{this._elementListeners.set(h,c.filter(E=>E.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const c=this._engine.playersByElement.get(a);c&&(c.forEach(h=>h.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,c){const h=this._engine.driver.query(a,fo,!0);h.forEach(E=>{if(E[Gi])return;const F=this._engine.fetchNamespacesByElement(E);F.size?F.forEach(ge=>ge.triggerLeaveAnimation(E,c,!1,!0)):this.clearElementCache(E)}),this._engine.afterFlushAnimationsDone(()=>h.forEach(E=>this.clearElementCache(E)))}triggerLeaveAnimation(a,c,h,E){const F=this._engine.statesByElement.get(a),ge=new Map;if(F){const we=[];if(F.forEach((et,gt)=>{if(ge.set(gt,et.value),this._triggers.has(gt)){const Wt=this.trigger(a,gt,wa,E);Wt&&we.push(Wt)}}),we.length)return this._engine.markElementAsRemoved(this.id,a,!0,c,ge),h&&nr(we).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const c=this._elementListeners.get(a),h=this._engine.statesByElement.get(a);if(c&&h){const E=new Set;c.forEach(F=>{const ge=F.name;if(E.has(ge))return;E.add(ge);const et=this._triggers.get(ge).fallbackTransition,gt=h.get(ge)||ss,Wt=new os(wa),Ft=new vl(this.id,ge,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:ge,transition:et,fromState:gt,toState:Wt,player:Ft,isFallbackTransition:!0})})}}removeNode(a,c){const h=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,c),this.triggerLeaveAnimation(a,c,!0))return;let E=!1;if(h.totalAnimations){const F=h.players.length?h.playersByQueriedElement.get(a):[];if(F&&F.length)E=!0;else{let ge=a;for(;ge=ge.parentNode;)if(h.statesByElement.get(ge)){E=!0;break}}}if(this.prepareLeaveAnimationListeners(a),E)h.markElementAsRemoved(this.id,a,!1,c);else{const F=a[Gi];(!F||F===Ll)&&(h.afterFlush(()=>this.clearElementCache(a)),h.destroyInnerAnimations(a),h._onRemovalComplete(a,c))}}insertNode(a,c){oi(a,this._hostClassName)}drainQueuedTransitions(a){const c=[];return this._queue.forEach(h=>{const E=h.player;if(E.destroyed)return;const F=h.element,ge=this._elementListeners.get(F);ge&&ge.forEach(we=>{if(we.name==h.triggerName){const et=Kr(F,h.triggerName,h.fromState.value,h.toState.value);et._data=a,ns(h.player,we.phase,et,we.callback)}}),E.markedForDestroy?this._engine.afterFlush(()=>{E.destroy()}):c.push(h)}),this._queue=[],c.sort((h,E)=>{const F=h.transition.ast.depCount,ge=E.transition.ast.depCount;return 0==F||0==ge?F-ge:this._engine.driver.containsElement(h.element,E.element)?1:-1})}destroy(a){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}}class Sa{_onRemovalComplete(a,c){this.onRemovalComplete(a,c)}constructor(a,c,h){this.bodyNode=a,this.driver=c,this._normalizer=h,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=(E,F)=>{}}get queuedPlayers(){const a=[];return this._namespaceList.forEach(c=>{c.players.forEach(h=>{h.queued&&a.push(h)})}),a}createNamespace(a,c){const h=new _l(a,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(h,c):(this.newHostElements.set(c,h),this.collectEnterElement(c)),this._namespaceLookup[a]=h}_balanceNamespaceList(a,c){const h=this._namespaceList,E=this.namespacesByHostElement;if(h.length-1>=0){let ge=!1,we=this.driver.getParentElement(c);for(;we;){const et=E.get(we);if(et){const gt=h.indexOf(et);h.splice(gt+1,0,a),ge=!0;break}we=this.driver.getParentElement(we)}ge||h.unshift(a)}else h.push(a);return E.set(c,a),a}register(a,c){let h=this._namespaceLookup[a];return h||(h=this.createNamespace(a,c)),h}registerTrigger(a,c,h){let E=this._namespaceLookup[a];E&&E.register(c,h)&&this.totalAnimations++}destroy(a,c){a&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const h=this._fetchNamespace(a);this.namespacesByHostElement.delete(h.hostElement);const E=this._namespaceList.indexOf(h);E>=0&&this._namespaceList.splice(E,1),h.destroy(c),delete this._namespaceLookup[a]}))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const c=new Set,h=this.statesByElement.get(a);if(h)for(let E of h.values())if(E.namespaceId){const F=this._fetchNamespace(E.namespaceId);F&&c.add(F)}return c}trigger(a,c,h,E){if(yo(c)){const F=this._fetchNamespace(a);if(F)return F.trigger(c,h,E),!0}return!1}insertNode(a,c,h,E){if(!yo(c))return;const F=c[Gi];if(F&&F.setForRemoval){F.setForRemoval=!1,F.setForMove=!0;const ge=this.collectedLeaveElements.indexOf(c);ge>=0&&this.collectedLeaveElements.splice(ge,1)}if(a){const ge=this._fetchNamespace(a);ge&&ge.insertNode(c,h)}E&&this.collectEnterElement(c)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,c){c?this.disabledNodes.has(a)||(this.disabledNodes.add(a),oi(a,zs)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Lo(a,zs))}removeNode(a,c,h){if(yo(c)){const E=a?this._fetchNamespace(a):null;E?E.removeNode(c,h):this.markElementAsRemoved(a,c,!1,h);const F=this.namespacesByHostElement.get(c);F&&F.id!==a&&F.removeNode(c,h)}else this._onRemovalComplete(c,h)}markElementAsRemoved(a,c,h,E,F){this.collectedLeaveElements.push(c),c[Gi]={namespaceId:a,setForRemoval:E,hasAnimation:h,removedBeforeQueried:!1,previousTriggersValues:F}}listen(a,c,h,E,F){return yo(c)?this._fetchNamespace(a).listen(c,h,E,F):()=>{}}_buildInstruction(a,c,h,E,F){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,h,E,a.fromState.options,a.toState.options,c,F)}destroyInnerAnimations(a){let c=this.driver.query(a,fo,!0);c.forEach(h=>this.destroyActiveAnimationsForElement(h)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(a,Fa,!0),c.forEach(h=>this.finishActiveQueriedAnimationOnElement(h)))}destroyActiveAnimationsForElement(a){const c=this.playersByElement.get(a);c&&c.forEach(h=>{h.queued?h.markedForDestroy=!0:h.destroy()})}finishActiveQueriedAnimationOnElement(a){const c=this.playersByQueriedElement.get(a);c&&c.forEach(h=>h.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return nr(this.players).onDone(()=>a());a()})}processLeaveNode(a){const c=a[Gi];if(c&&c.setForRemoval){if(a[Gi]=Ll,c.namespaceId){this.destroyInnerAnimations(a);const h=this._fetchNamespace(c.namespaceId);h&&h.clearElementCache(a)}this._onRemovalComplete(a,c.setForRemoval)}a.classList?.contains(zs)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(h=>{this.markElementAsDisabled(h,!1)})}flush(a=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((h,E)=>this._balanceNamespaceList(h,E)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let h=0;h<this.collectedEnterElements.length;h++)oi(this.collectedEnterElements[h],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const h=[];try{c=this._flushAnimations(h,a)}finally{for(let E=0;E<h.length;E++)h[E]()}}else for(let h=0;h<this.collectedLeaveElements.length;h++)this.processLeaveNode(this.collectedLeaveElements[h]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(h=>h()),this._flushFns=[],this._whenQuietFns.length){const h=this._whenQuietFns;this._whenQuietFns=[],c.length?nr(c).onDone(()=>{h.forEach(E=>E())}):h.forEach(E=>E())}}reportError(a){throw function Oi(p){return new l.vHH(3402,!1)}()}_flushAnimations(a,c){const h=new zi,E=[],F=new Map,ge=[],we=new Map,et=new Map,gt=new Map,Wt=new Set;this.disabledNodes.forEach(tn=>{Wt.add(tn);const gn=this.driver.query(tn,".ng-animate-queued",!0);for(let mn=0;mn<gn.length;mn++)Wt.add(gn[mn])});const Ft=this.bodyNode,Fn=Array.from(this.statesByElement.keys()),On=Ya(Fn,this.collectedEnterElements),ln=new Map;let pn=0;On.forEach((tn,gn)=>{const mn=wr+pn++;ln.set(gn,mn),tn.forEach(Yn=>oi(Yn,mn))});const rr=[],Ir=new Set,Lr=new Set;for(let tn=0;tn<this.collectedLeaveElements.length;tn++){const gn=this.collectedLeaveElements[tn],mn=gn[Gi];mn&&mn.setForRemoval&&(rr.push(gn),Ir.add(gn),mn.hasAnimation?this.driver.query(gn,".ng-star-inserted",!0).forEach(Yn=>Ir.add(Yn)):Lr.add(gn))}const vi=new Map,Wn=Ya(Fn,Array.from(Ir));Wn.forEach((tn,gn)=>{const mn=ya+pn++;vi.set(gn,mn),tn.forEach(Yn=>oi(Yn,mn))}),a.push(()=>{On.forEach((tn,gn)=>{const mn=ln.get(gn);tn.forEach(Yn=>Lo(Yn,mn))}),Wn.forEach((tn,gn)=>{const mn=vi.get(gn);tn.forEach(Yn=>Lo(Yn,mn))}),rr.forEach(tn=>{this.processLeaveNode(tn)})});const Wi=[],yi=[];for(let tn=this._namespaceList.length-1;tn>=0;tn--)this._namespaceList[tn].drainQueuedTransitions(c).forEach(mn=>{const Yn=mn.player,li=mn.element;if(Wi.push(Yn),this.collectedEnterElements.length){const ci=li[Gi];if(ci&&ci.setForMove){if(ci.previousTriggersValues&&ci.previousTriggersValues.has(mn.triggerName)){const Ss=ci.previousTriggersValues.get(mn.triggerName),Bo=this.statesByElement.get(mn.element);if(Bo&&Bo.has(mn.triggerName)){const Wl=Bo.get(mn.triggerName);Wl.value=Ss,Bo.set(mn.triggerName,Wl)}}return void Yn.destroy()}}const ls=!Ft||!this.driver.containsElement(Ft,li),oo=vi.get(li),bo=ln.get(li),Ar=this._buildInstruction(mn,h,bo,oo,ls);if(Ar.errors&&Ar.errors.length)return void yi.push(Ar);if(ls)return Yn.onStart(()=>ei(li,Ar.fromStyles)),Yn.onDestroy(()=>mi(li,Ar.toStyles)),void E.push(Yn);if(mn.isFallbackTransition)return Yn.onStart(()=>ei(li,Ar.fromStyles)),Yn.onDestroy(()=>mi(li,Ar.toStyles)),void E.push(Yn);const xc=[];Ar.timelines.forEach(ci=>{ci.stretchStartingKeyframe=!0,this.disabledNodes.has(ci.element)||xc.push(ci)}),Ar.timelines=xc,h.append(li,Ar.timelines),ge.push({instruction:Ar,player:Yn,element:li}),Ar.queriedElements.forEach(ci=>Mi(we,ci,[]).push(Yn)),Ar.preStyleProps.forEach((ci,Ss)=>{if(ci.size){let Bo=et.get(Ss);Bo||et.set(Ss,Bo=new Set),ci.forEach((Wl,Pc)=>Bo.add(Pc))}}),Ar.postStyleProps.forEach((ci,Ss)=>{let Bo=gt.get(Ss);Bo||gt.set(Ss,Bo=new Set),ci.forEach((Wl,Pc)=>Bo.add(Pc))})});if(yi.length){const tn=[];yi.forEach(gn=>{tn.push(function Dr(p,a){return new l.vHH(3505,!1)}())}),Wi.forEach(gn=>gn.destroy()),this.reportError(tn)}const Zi=new Map,as=new Map;ge.forEach(tn=>{const gn=tn.element;h.has(gn)&&(as.set(gn,gn),this._beforeAnimationBuild(tn.player.namespaceId,tn.instruction,Zi))}),E.forEach(tn=>{const gn=tn.element;this._getPreviousPlayers(gn,!1,tn.namespaceId,tn.triggerName,null).forEach(Yn=>{Mi(Zi,gn,[]).push(Yn),Yn.destroy()})});const ta=rr.filter(tn=>Ue(tn,et,gt)),na=new Map;Ka(na,this.driver,Lr,gt,fn.l3).forEach(tn=>{Ue(tn,et,gt)&&ta.push(tn)});const zl=new Map;On.forEach((tn,gn)=>{Ka(zl,this.driver,new Set(tn),et,fn.k1)}),ta.forEach(tn=>{const gn=na.get(tn),mn=zl.get(tn);na.set(tn,new Map([...gn?.entries()??[],...mn?.entries()??[]]))});const Xa=[],Od=[],xd={};ge.forEach(tn=>{const{element:gn,player:mn,instruction:Yn}=tn;if(h.has(gn)){if(Wt.has(gn))return mn.onDestroy(()=>mi(gn,Yn.toStyles)),mn.disabled=!0,mn.overrideTotalTime(Yn.totalTime),void E.push(mn);let li=xd;if(as.size>1){let oo=gn;const bo=[];for(;oo=oo.parentNode;){const Ar=as.get(oo);if(Ar){li=Ar;break}bo.push(oo)}bo.forEach(Ar=>as.set(Ar,li))}const ls=this._buildAnimation(mn.namespaceId,Yn,Zi,F,zl,na);if(mn.setRealPlayer(ls),li===xd)Xa.push(mn);else{const oo=this.playersByElement.get(li);oo&&oo.length&&(mn.parentPlayer=nr(oo)),E.push(mn)}}else ei(gn,Yn.fromStyles),mn.onDestroy(()=>mi(gn,Yn.toStyles)),Od.push(mn),Wt.has(gn)&&E.push(mn)}),Od.forEach(tn=>{const gn=F.get(tn.element);if(gn&&gn.length){const mn=nr(gn);tn.setRealPlayer(mn)}}),E.forEach(tn=>{tn.parentPlayer?tn.syncPlayerEvents(tn.parentPlayer):tn.destroy()});for(let tn=0;tn<rr.length;tn++){const gn=rr[tn],mn=gn[Gi];if(Lo(gn,ya),mn&&mn.hasAnimation)continue;let Yn=[];if(we.size){let ls=we.get(gn);ls&&ls.length&&Yn.push(...ls);let oo=this.driver.query(gn,Fa,!0);for(let bo=0;bo<oo.length;bo++){let Ar=we.get(oo[bo]);Ar&&Ar.length&&Yn.push(...Ar)}}const li=Yn.filter(ls=>!ls.destroyed);li.length?m(this,gn,li):this.processLeaveNode(gn)}return rr.length=0,Xa.forEach(tn=>{this.players.push(tn),tn.onDone(()=>{tn.destroy();const gn=this.players.indexOf(tn);this.players.splice(gn,1)}),tn.play()}),Xa}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,c,h,E,F){let ge=[];if(c){const we=this.playersByQueriedElement.get(a);we&&(ge=we)}else{const we=this.playersByElement.get(a);if(we){const et=!F||F==wa;we.forEach(gt=>{gt.queued||!et&>.triggerName!=E||ge.push(gt)})}}return(h||E)&&(ge=ge.filter(we=>!(h&&h!=we.namespaceId||E&&E!=we.triggerName))),ge}_beforeAnimationBuild(a,c,h){const F=c.element,ge=c.isRemovalTransition?void 0:a,we=c.isRemovalTransition?void 0:c.triggerName;for(const et of c.timelines){const gt=et.element,Wt=gt!==F,Ft=Mi(h,gt,[]);this._getPreviousPlayers(gt,Wt,ge,we,c.toState).forEach(On=>{const ln=On.getRealPlayer();ln.beforeDestroy&&ln.beforeDestroy(),On.destroy(),Ft.push(On)})}ei(F,c.fromStyles)}_buildAnimation(a,c,h,E,F,ge){const we=c.triggerName,et=c.element,gt=[],Wt=new Set,Ft=new Set,Fn=c.timelines.map(ln=>{const pn=ln.element;Wt.add(pn);const rr=pn[Gi];if(rr&&rr.removedBeforeQueried)return new fn.ZN(ln.duration,ln.delay);const Ir=pn!==et,Lr=function D(p){const a=[];return N(p,a),a}((h.get(pn)||Za).map(Zi=>Zi.getRealPlayer())).filter(Zi=>!!Zi.element&&Zi.element===pn),vi=F.get(pn),Wn=ge.get(pn),Wi=tr(this._normalizer,ln.keyframes,vi,Wn),yi=this._buildPlayer(ln,Wi,Lr);if(ln.subTimeline&&E&&Ft.add(pn),Ir){const Zi=new vl(a,we,pn);Zi.setRealPlayer(yi),gt.push(Zi)}return yi});gt.forEach(ln=>{Mi(this.playersByQueriedElement,ln.element,[]).push(ln),ln.onDone(()=>function Fr(p,a,c){let h=p.get(a);if(h){if(h.length){const E=h.indexOf(c);h.splice(E,1)}0==h.length&&p.delete(a)}return h}(this.playersByQueriedElement,ln.element,ln))}),Wt.forEach(ln=>oi(ln,Na));const On=nr(Fn);return On.onDestroy(()=>{Wt.forEach(ln=>Lo(ln,Na)),mi(et,c.toStyles)}),Ft.forEach(ln=>{Mi(E,ln,[]).push(On)}),On}_buildPlayer(a,c,h){return c.length>0?this.driver.animate(a.element,c,a.duration,a.delay,a.easing,h):new fn.ZN(a.duration,a.delay)}}class vl{constructor(a,c,h){this.namespaceId=a,this.triggerName=c,this.element=h,this._player=new fn.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((c,h)=>{c.forEach(E=>ns(a,h,void 0,E))}),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 c=this._player;c.triggerCallback&&a.onStart(()=>c.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,c){Mi(this._queuedCallbacks,a,[]).push(c)}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 c=this._player;c.triggerCallback&&c.triggerCallback(a)}}function yo(p){return p&&1===p.nodeType}function Ic(p,a){const c=p.style.display;return p.style.display=a??"none",c}function Ka(p,a,c,h,E){const F=[];c.forEach(et=>F.push(Ic(et)));const ge=[];h.forEach((et,gt)=>{const Wt=new Map;et.forEach(Ft=>{const Fn=a.computeStyle(gt,Ft,E);Wt.set(Ft,Fn),(!Fn||0==Fn.length)&&(gt[Gi]=du,ge.push(gt))}),p.set(gt,Wt)});let we=0;return c.forEach(et=>Ic(et,F[we++])),ge}function Ya(p,a){const c=new Map;if(p.forEach(we=>c.set(we,[])),0==a.length)return c;const E=new Set(a),F=new Map;function ge(we){if(!we)return 1;let et=F.get(we);if(et)return et;const gt=we.parentNode;return et=c.has(gt)?gt:E.has(gt)?1:ge(gt),F.set(we,et),et}return a.forEach(we=>{const et=ge(we);1!==et&&c.get(et).push(we)}),c}function oi(p,a){p.classList?.add(a)}function Lo(p,a){p.classList?.remove(a)}function m(p,a,c){nr(c).onDone(()=>p.processLeaveNode(a))}function N(p,a){for(let c=0;c<p.length;c++){const h=p[c];h instanceof fn.ZE?N(h.players,a):a.push(h)}}function Ue(p,a,c){const h=c.get(p);if(!h)return!1;let E=a.get(p);return E?h.forEach(F=>E.add(F)):a.set(p,h),c.delete(p),!0}class st{constructor(a,c,h){this.bodyNode=a,this._driver=c,this._normalizer=h,this._triggerCache={},this.onRemovalComplete=(E,F)=>{},this._transitionEngine=new Sa(a,c,h),this._timelineEngine=new gl(a,c,h),this._transitionEngine.onRemovalComplete=(E,F)=>this.onRemovalComplete(E,F)}registerTrigger(a,c,h,E,F){const ge=a+"-"+E;let we=this._triggerCache[ge];if(!we){const et=[],Wt=qr(this._driver,F,et,[]);if(et.length)throw function kt(p,a){return new l.vHH(3404,!1)}();we=function Sc(p,a,c){return new Mc(p,a,c)}(E,Wt,this._normalizer),this._triggerCache[ge]=we}this._transitionEngine.registerTrigger(c,E,we)}register(a,c){this._transitionEngine.register(a,c)}destroy(a,c){this._transitionEngine.destroy(a,c)}onInsert(a,c,h,E){this._transitionEngine.insertNode(a,c,h,E)}onRemove(a,c,h){this._transitionEngine.removeNode(a,c,h)}disableAnimations(a,c){this._transitionEngine.markElementAsDisabled(a,c)}process(a,c,h,E){if("@"==h.charAt(0)){const[F,ge]=Ys(h);this._timelineEngine.command(F,c,ge,E)}else this._transitionEngine.trigger(a,c,h,E)}listen(a,c,h,E,F){if("@"==h.charAt(0)){const[ge,we]=Ys(h);return this._timelineEngine.listen(ge,c,we,F)}return this._transitionEngine.listen(a,c,h,E,F)}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 $t=(()=>{class a{constructor(h,E,F){this._element=h,this._startStyles=E,this._endStyles=F,this._state=0;let ge=a.initialStylesByElement.get(h);ge||a.initialStylesByElement.set(h,ge=new Map),this._initialStyles=ge}start(){this._state<1&&(this._startStyles&&mi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mi(this._element,this._initialStyles),this._endStyles&&(mi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(ei(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ei(this._element,this._endStyles),this._endStyles=null),mi(this._element,this._initialStyles),this._state=3)}}return a.initialStylesByElement=new WeakMap,a})();function Lt(p){let a=null;return p.forEach((c,h)=>{(function en(p){return"display"===p||"position"===p})(h)&&(a=a||new Map,a.set(h,c))}),a}class yn{constructor(a,c,h,E){this.element=a,this.keyframes=c,this.options=h,this._specialStyles=E,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=h.duration,this._delay=h.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 c=[];return a.forEach(h=>{c.push(Object.fromEntries(h))}),c}_triggerWebAnimation(a,c,h){return a.animate(this._convertKeyframesToObject(c),h)}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((h,E)=>{"offset"!==E&&a.set(E,this._finished?h:_(this.element,E))}),this.currentSnapshot=a}triggerCallback(a){const c="start"===a?this._onStartFns:this._onDoneFns;c.forEach(h=>h()),c.length=0}}class Dn{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,c){return!1}containsElement(a,c){return ka(a,c)}getParentElement(a){return Jr(a)}query(a,c,h){return al(a,c,h)}computeStyle(a,c,h){return window.getComputedStyle(a)[c]}animate(a,c,h,E,F,ge=[]){const et={duration:h,delay:E,fill:0==E?"both":"forwards"};F&&(et.easing=F);const gt=new Map,Wt=ge.filter(On=>On instanceof yn);(function f(p,a){return 0===p||0===a})(h,E)&&Wt.forEach(On=>{On.currentSnapshot.forEach((ln,pn)=>gt.set(pn,ln))});let Ft=function La(p){return p.length?p[0]instanceof Map?p:p.map(a=>js(a)):[]}(c).map(On=>po(On));Ft=function v(p,a,c){if(c.size&&a.length){let h=a[0],E=[];if(c.forEach((F,ge)=>{h.has(ge)||E.push(ge),h.set(ge,F)}),E.length)for(let F=1;F<a.length;F++){let ge=a[F];E.forEach(we=>ge.set(we,_(p,we)))}}return a}(a,Ft,gt);const Fn=function _t(p,a){let c=null,h=null;return Array.isArray(a)&&a.length?(c=Lt(a[0]),a.length>1&&(h=Lt(a[a.length-1]))):a instanceof Map&&(c=Lt(a)),c||h?new $t(p,c,h):null}(a,Ft);return new yn(a,Ft,et,Fn)}}let si=(()=>{var p;class a extends fn._j{constructor(h,E){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(E.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(h){const E=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(h)?(0,fn.vP)(h):h;return Tr(this._renderer,null,E,"register",[F]),new ai(E,this._renderer)}}return(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(l.FYo),l.LFG(qt.K0))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})();class ai extends fn.LC{constructor(a,c){super(),this._id=a,this._renderer=c}create(a,c){return new qa(this._id,a,c||{},this._renderer)}}class qa{constructor(a,c,h,E){this.id=a,this.element=c,this._renderer=E,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",h)}_listen(a,c){return this._renderer.listen(this.element,`@@${this.id}:${a}`,c)}_command(a,...c){return Tr(this._renderer,this.element,this.id,a,c)}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 Tr(p,a,c,h,E){return p.setProperty(a,`@@${c}:${h}`,E)}const _i="@.disabled";let ws=(()=>{var p;class a{constructor(h,E,F){this.delegate=h,this.engine=E,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,E.onRemovalComplete=(ge,we)=>{const et=we?.parentNode(ge);et&&we.removeChild(et,ge)}}createRenderer(h,E){const ge=this.delegate.createRenderer(h,E);if(!(h&&E&&E.data&&E.data.animation)){let Ft=this._rendererCache.get(ge);return Ft||(Ft=new Pi("",ge,this.engine,()=>this._rendererCache.delete(ge)),this._rendererCache.set(ge,Ft)),Ft}const we=E.id,et=E.id+"-"+this._currentId;this._currentId++,this.engine.register(et,h);const gt=Ft=>{Array.isArray(Ft)?Ft.forEach(gt):this.engine.registerTrigger(we,et,h,Ft.name,Ft)};return E.data.animation.forEach(gt),new Qa(this,et,ge,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(h,E,F){h>=0&&h<this._microtaskId?this._zone.run(()=>E(F)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ge=>{const[we,et]=ge;we(et)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([E,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(l.FYo),l.LFG(st),l.LFG(l.R0b))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})();class Pi{constructor(a,c,h,E){this.namespaceId=a,this.delegate=c,this.engine=h,this._onDestroy=E}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,c){return this.delegate.createElement(a,c)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,c){this.delegate.appendChild(a,c),this.engine.onInsert(this.namespaceId,c,a,!1)}insertBefore(a,c,h,E=!0){this.delegate.insertBefore(a,c,h),this.engine.onInsert(this.namespaceId,c,a,E)}removeChild(a,c,h){this.engine.onRemove(this.namespaceId,c,this.delegate)}selectRootElement(a,c){return this.delegate.selectRootElement(a,c)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,c,h,E){this.delegate.setAttribute(a,c,h,E)}removeAttribute(a,c,h){this.delegate.removeAttribute(a,c,h)}addClass(a,c){this.delegate.addClass(a,c)}removeClass(a,c){this.delegate.removeClass(a,c)}setStyle(a,c,h,E){this.delegate.setStyle(a,c,h,E)}removeStyle(a,c,h){this.delegate.removeStyle(a,c,h)}setProperty(a,c,h){"@"==c.charAt(0)&&c==_i?this.disableAnimations(a,!!h):this.delegate.setProperty(a,c,h)}setValue(a,c){this.delegate.setValue(a,c)}listen(a,c,h){return this.delegate.listen(a,c,h)}disableAnimations(a,c){this.engine.disableAnimations(a,c)}}class Qa extends Pi{constructor(a,c,h,E,F){super(c,h,E,F),this.factory=a,this.namespaceId=c}setProperty(a,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==_i?this.disableAnimations(a,h=void 0===h||!!h):this.engine.process(this.namespaceId,a,c.slice(1),h):this.delegate.setProperty(a,c,h)}listen(a,c,h){if("@"==c.charAt(0)){const E=function hu(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(a);let F=c.slice(1),ge="";return"@"!=F.charAt(0)&&([F,ge]=function Vl(p){const a=p.indexOf(".");return[p.substring(0,a),p.slice(a+1)]}(F)),this.engine.listen(this.namespaceId,E,F,ge,we=>{this.factory.scheduleListenerCallback(we._data||-1,h,we)})}return this.delegate.listen(a,c,h)}}const fu=[{provide:fn._j,useClass:si},{provide:Rl,useFactory:function yd(){return new Ua}},{provide:st,useClass:(()=>{var p;class a extends st{constructor(h,E,F,ge){super(h.body,E,F)}ngOnDestroy(){this.flush()}}return(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(qt.K0),l.LFG(dn),l.LFG(Rl),l.LFG(l.z2F))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})()},{provide:l.FYo,useFactory:function Wf(p,a,c){return new ws(p,a,c)},deps:[o.se,st,l.R0b]}],pu=[{provide:dn,useFactory:()=>new Dn},{provide:l.QbO,useValue:"BrowserAnimations"},...fu],io=[{provide:dn,useClass:ll},{provide:l.QbO,useValue:"NoopAnimations"},...fu];let Ac=(()=>{var p;class a{static withConfig(h){return{ngModule:a,providers:h.disableAnimations?io:pu}}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({providers:pu,imports:[o.b2]}),a})(),Cd=(()=>{var p;class a{constructor(){function h(E){return E<10?"0"+E:E}this.title="web-tools",Date.prototype.toJSON=function(){return this.getFullYear()+"-"+h(this.getMonth()+1)+"-"+h(this.getDate())+"T"+h(this.getHours())+":"+h(this.getMinutes())+":"+h(this.getSeconds())+".000"}}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275cmp=l.Xpm({type:p,selectors:[["app-root"]],decls:2,vars:0,template:function(h,E){1&h&&l._UZ(0,"ng-http-loader")(1,"router-outlet")},dependencies:[R.lC,ua]}),a})();const Ed=["custom-toast-component",""];function Dd(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"a",11),l.NdJ("click",function(){l.CHM(c);const E=l.oxw(2);return l.KtG(E.remove())}),l._uU(1," x "),l.qZA()}}function wd(p,a){if(1&p&&(l.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),l._uU(4),l.qZA()()(),l.TgZ(5,"div",9),l.YNc(6,Dd,2,0,"a",10),l.qZA()()),2&p){const c=l.oxw();l.Udp("display","inactive"===c.state.value?"none":""),l.xp6(2),l.Tol(c.options.titleClass),l.uIk("aria-label",c.title),l.xp6(2),l.Oqu(c.title),l.xp6(2),l.Q6J("ngIf",c.options.closeButton)}}const gu=function(p){return{notitle:p}};function Sd(p,a){if(1&p&&l._UZ(0,"div",12),2&p){const c=l.oxw();l.Tol(c.options.messageClass),l.Q6J("ngClass",l.VKq(4,gu,null==c.title))("innerHTML",c.message,l.oJD)}}function Oc(p,a){if(1&p&&(l.TgZ(0,"div",13),l._uU(1),l.qZA()),2&p){const c=l.oxw();l.Tol(c.options.messageClass),l.Q6J("ngClass",l.VKq(5,gu,null==c.title)),l.uIk("aria-label",c.message),l.xp6(1),l.hij(" ",c.message," ")}}function jl(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"a",11),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.remove())}),l._uU(1," x "),l.qZA()}}function Md(p,a){if(1&p&&(l.TgZ(0,"div"),l._UZ(1,"div",14),l.qZA()),2&p){const c=l.oxw();l.xp6(1),l.Udp("width",c.width+"%")}}let Hl=(()=>{var p;class a extends X.FN{constructor(h,E){super(h,E),this.toastrService=h,this.toastPackage=E}ngOnInit(){}action(h){return h.stopPropagation(),this.toastPackage.triggerAction(),!1}}return(p=a).\u0275fac=function(h){return new(h||p)(l.Y36(X._W),l.Y36(X.PR))},p.\u0275cmp=l.Xpm({type:p,selectors:[["","custom-toast-component",""]],features:[l.qOj],attrs:Ed,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row toast-body text-start","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","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"ngClass"],[1,"toast-progress"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l.YNc(1,wd,7,7,"div",1),l.YNc(2,Sd,1,6,"div",2),l.YNc(3,Oc,2,7,"div",3),l.YNc(4,jl,2,0,"a",4),l.YNc(5,Md,2,2,"div",5),l.qZA()),2&h&&(l.xp6(1),l.Q6J("ngIf",E.title),l.xp6(1),l.Q6J("ngIf",E.message&&E.options.enableHtml),l.xp6(1),l.Q6J("ngIf",E.message&&!E.options.enableHtml),l.xp6(1),l.Q6J("ngIf",E.options.closeButton&&null==E.title),l.xp6(1),l.Q6J("ngIf",E.options.progressBar))},dependencies:[qt.mk,qt.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:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[(0,fn.X$)("flyInOut",[(0,fn.SB)("inactive",(0,fn.oB)({opacity:0})),(0,fn.eR)("inactive => active",(0,fn.jt)("400ms ease-out",(0,fn.F4)([(0,fn.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,fn.oB)({transform:"skewX(20deg)",opacity:1}),(0,fn.oB)({transform:"skewX(-5deg)",opacity:1}),(0,fn.oB)({transform:"none",opacity:1})]))),(0,fn.eR)("active => removed",(0,fn.jt)("400ms ease-out",(0,fn.F4)([(0,fn.oB)({opacity:1}),(0,fn.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),a})();var Td=C(7700);const Ul={apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"};let Id=(()=>{var p;class a{}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p,bootstrap:[Cd]}),p.\u0275inj=l.cJS({providers:[$e.O,da.a],imports:[o.b2,Ac,qo,Cr.u5,R.Bz,Qt.hO.initializeApp(Ul),Os,_n.JF,Rs.forRoot(),X.Rh.forRoot({toastComponent:Hl,positionClass:"toast-bottom-right",closeButton:!0}),Td.Is,R.Bz]}),a})();(0,l.G48)(),o.q6().bootstrapModule(Id).catch(p=>console.error(p))},5619:(wt,Pe,C)=>{C.d(Pe,{X:()=>l});var o=C(8645);class l extends o.x{constructor(K){super(),this._value=K}get value(){return this.getValue()}_subscribe(K){const Y=super._subscribe(K);return!Y.closed&&K.next(this._value),Y}getValue(){const{hasError:K,thrownError:Y,_value:W}=this;if(K)throw Y;return this._throwIfClosed(),W}next(K){super.next(this._value=K)}}},5592:(wt,Pe,C)=>{C.d(Pe,{y:()=>ue});var o=C(305),l=C(7394),R=C(4850),K=C(8407),Y=C(2653),W=C(4674),re=C(1441);let ue=(()=>{class be{constructor(He){He&&(this._subscribe=He)}lift(He){const tt=new be;return tt.source=this,tt.operator=He,tt}subscribe(He,tt,$e){const X=function Q(be){return be&&be instanceof o.Lv||function V(be){return be&&(0,W.m)(be.next)&&(0,W.m)(be.error)&&(0,W.m)(be.complete)}(be)&&(0,l.Nn)(be)}(He)?He:new o.Hp(He,tt,$e);return(0,re.x)(()=>{const{operator:Ye,source:ut}=this;X.add(Ye?Ye.call(X,ut):ut?this._subscribe(X):this._trySubscribe(X))}),X}_trySubscribe(He){try{return this._subscribe(He)}catch(tt){He.error(tt)}}forEach(He,tt){return new(tt=ie(tt))(($e,X)=>{const Ye=new o.Hp({next:ut=>{try{He(ut)}catch(Ne){X(Ne),Ye.unsubscribe()}},error:X,complete:$e});this.subscribe(Ye)})}_subscribe(He){var tt;return null===(tt=this.source)||void 0===tt?void 0:tt.subscribe(He)}[R.L](){return this}pipe(...He){return(0,K.U)(He)(this)}toPromise(He){return new(He=ie(He))((tt,$e)=>{let X;this.subscribe(Ye=>X=Ye,Ye=>$e(Ye),()=>tt(X))})}}return be.create=Ve=>new be(Ve),be})();function ie(be){var Ve;return null!==(Ve=be??Y.config.Promise)&&void 0!==Ve?Ve:Promise}},7328:(wt,Pe,C)=>{C.d(Pe,{t:()=>R});var o=C(8645),l=C(4552);class R extends o.x{constructor(Y=1/0,W=1/0,re=l.l){super(),this._bufferSize=Y,this._windowTime=W,this._timestampProvider=re,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=W===1/0,this._bufferSize=Math.max(1,Y),this._windowTime=Math.max(1,W)}next(Y){const{isStopped:W,_buffer:re,_infiniteTimeWindow:ue,_timestampProvider:ie,_windowTime:V}=this;W||(re.push(Y),!ue&&re.push(ie.now()+V)),this._trimBuffer(),super.next(Y)}_subscribe(Y){this._throwIfClosed(),this._trimBuffer();const W=this._innerSubscribe(Y),{_infiniteTimeWindow:re,_buffer:ue}=this,ie=ue.slice();for(let V=0;V<ie.length&&!Y.closed;V+=re?1:2)Y.next(ie[V]);return this._checkFinalizedStatuses(Y),W}_trimBuffer(){const{_bufferSize:Y,_timestampProvider:W,_buffer:re,_infiniteTimeWindow:ue}=this,ie=(ue?1:2)*Y;if(Y<1/0&&ie<re.length&&re.splice(0,re.length-ie),!ue){const V=W.now();let Q=0;for(let be=1;be<re.length&&re[be]<=V;be+=2)Q=be;Q&&re.splice(0,Q+1)}}}},8645:(wt,Pe,C)=>{C.d(Pe,{x:()=>re});var o=C(5592),l=C(7394);const K=(0,C(2306).d)(ie=>function(){ie(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Y=C(9039),W=C(1441);let re=(()=>{class ie extends o.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const be=new ue(this,this);return be.operator=Q,be}_throwIfClosed(){if(this.closed)throw new K}next(Q){(0,W.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const be of this.currentObservers)be.next(Q)}})}error(Q){(0,W.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:be}=this;for(;be.length;)be.shift().error(Q)}})}complete(){(0,W.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:be,isStopped:Ve,observers:He}=this;return be||Ve?l.Lc:(this.currentObservers=null,He.push(Q),new l.w0(()=>{this.currentObservers=null,(0,Y.P)(He,Q)}))}_checkFinalizedStatuses(Q){const{hasError:be,thrownError:Ve,isStopped:He}=this;be?Q.error(Ve):He&&Q.complete()}asObservable(){const Q=new o.y;return Q.source=this,Q}}return ie.create=(V,Q)=>new ue(V,Q),ie})();class ue extends re{constructor(V,Q){super(),this.destination=V,this.source=Q}next(V){var Q,be;null===(be=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===be||be.call(Q,V)}error(V){var Q,be;null===(be=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===be||be.call(Q,V)}complete(){var V,Q;null===(Q=null===(V=this.destination)||void 0===V?void 0:V.complete)||void 0===Q||Q.call(V)}_subscribe(V){var Q,be;return null!==(be=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(V))&&void 0!==be?be:l.Lc}}},305:(wt,Pe,C)=>{C.d(Pe,{Hp:()=>$e,Lv:()=>be});var o=C(4674),l=C(7394),R=C(2653),K=C(3894),Y=C(2420);const W=ie("C",void 0,void 0);function ie(q,me,ve){return{kind:q,value:me,error:ve}}var V=C(7599),Q=C(1441);class be extends l.w0{constructor(me){super(),this.isStopped=!1,me?(this.destination=me,(0,l.Nn)(me)&&me.add(this)):this.destination=Ne}static create(me,ve,ye){return new $e(me,ve,ye)}next(me){this.isStopped?ut(function ue(q){return ie("N",q,void 0)}(me),this):this._next(me)}error(me){this.isStopped?ut(function re(q){return ie("E",void 0,q)}(me),this):(this.isStopped=!0,this._error(me))}complete(){this.isStopped?ut(W,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(me){this.destination.next(me)}_error(me){try{this.destination.error(me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ve=Function.prototype.bind;function He(q,me){return Ve.call(q,me)}class tt{constructor(me){this.partialObserver=me}next(me){const{partialObserver:ve}=this;if(ve.next)try{ve.next(me)}catch(ye){X(ye)}}error(me){const{partialObserver:ve}=this;if(ve.error)try{ve.error(me)}catch(ye){X(ye)}else X(me)}complete(){const{partialObserver:me}=this;if(me.complete)try{me.complete()}catch(ve){X(ve)}}}class $e extends be{constructor(me,ve,ye){let rt;if(super(),(0,o.m)(me)||!me)rt={next:me??void 0,error:ve??void 0,complete:ye??void 0};else{let Qe;this&&R.config.useDeprecatedNextContext?(Qe=Object.create(me),Qe.unsubscribe=()=>this.unsubscribe(),rt={next:me.next&&He(me.next,Qe),error:me.error&&He(me.error,Qe),complete:me.complete&&He(me.complete,Qe)}):rt=me}this.destination=new tt(rt)}}function X(q){R.config.useDeprecatedSynchronousErrorHandling?(0,Q.O)(q):(0,K.h)(q)}function ut(q,me){const{onStoppedNotification:ve}=R.config;ve&&V.z.setTimeout(()=>ve(q,me))}const Ne={closed:!0,next:Y.Z,error:function Ye(q){throw q},complete:Y.Z}},7394:(wt,Pe,C)=>{C.d(Pe,{Lc:()=>W,w0:()=>Y,Nn:()=>re});var o=C(4674);const R=(0,C(2306).d)(ie=>function(Q){ie(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((be,Ve)=>`${Ve+1}) ${be.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var K=C(9039);class Y{constructor(V){this.initialTeardown=V,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let V;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const He of Q)He.remove(this);else Q.remove(this);const{initialTeardown:be}=this;if((0,o.m)(be))try{be()}catch(He){V=He instanceof R?He.errors:[He]}const{_finalizers:Ve}=this;if(Ve){this._finalizers=null;for(const He of Ve)try{ue(He)}catch(tt){V=V??[],tt instanceof R?V=[...V,...tt.errors]:V.push(tt)}}if(V)throw new R(V)}}add(V){var Q;if(V&&V!==this)if(this.closed)ue(V);else{if(V instanceof Y){if(V.closed||V._hasParent(this))return;V._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(V)}}_hasParent(V){const{_parentage:Q}=this;return Q===V||Array.isArray(Q)&&Q.includes(V)}_addParent(V){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(V),Q):Q?[Q,V]:V}_removeParent(V){const{_parentage:Q}=this;Q===V?this._parentage=null:Array.isArray(Q)&&(0,K.P)(Q,V)}remove(V){const{_finalizers:Q}=this;Q&&(0,K.P)(Q,V),V instanceof Y&&V._removeParent(this)}}Y.EMPTY=(()=>{const ie=new Y;return ie.closed=!0,ie})();const W=Y.EMPTY;function re(ie){return ie instanceof Y||ie&&"closed"in ie&&(0,o.m)(ie.remove)&&(0,o.m)(ie.add)&&(0,o.m)(ie.unsubscribe)}function ue(ie){(0,o.m)(ie)?ie():ie.unsubscribe()}},2653:(wt,Pe,C)=>{C.d(Pe,{config:()=>o});const o={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(wt,Pe,C)=>{C.d(Pe,{a:()=>V});var o=C(5592),l=C(7453),R=C(2459),K=C(2737),Y=C(7400),W=C(9940),re=C(2714),ue=C(8251),ie=C(7103);function V(...Ve){const He=(0,W.yG)(Ve),tt=(0,W.jO)(Ve),{args:$e,keys:X}=(0,l.D)(Ve);if(0===$e.length)return(0,R.D)([],He);const Ye=new o.y(function Q(Ve,He,tt=K.y){return $e=>{be(He,()=>{const{length:X}=Ve,Ye=new Array(X);let ut=X,Ne=X;for(let q=0;q<X;q++)be(He,()=>{const me=(0,R.D)(Ve[q],He);let ve=!1;me.subscribe((0,ue.x)($e,ye=>{Ye[q]=ye,ve||(ve=!0,Ne--),Ne||$e.next(tt(Ye.slice()))},()=>{--ut||$e.complete()}))},$e)},$e)}}($e,He,X?ut=>(0,re.n)(X,ut):K.y));return tt?Ye.pipe((0,Y.Z)(tt)):Ye}function be(Ve,He,tt){Ve?(0,ie.f)(tt,Ve,He):He()}},5211:(wt,Pe,C)=>{C.d(Pe,{z:()=>Y});var o=C(7537),R=C(9940),K=C(2459);function Y(...W){return function l(){return(0,o.J)(1)}()((0,K.D)(W,(0,R.yG)(W)))}},4911:(wt,Pe,C)=>{C.d(Pe,{P:()=>R});var o=C(5592),l=C(4829);function R(K){return new o.y(Y=>{(0,l.Xf)(K()).subscribe(Y)})}},6232:(wt,Pe,C)=>{C.d(Pe,{E:()=>l});const l=new(C(5592).y)(Y=>Y.complete())},9315:(wt,Pe,C)=>{C.d(Pe,{D:()=>ue});var o=C(5592),l=C(7453),R=C(4829),K=C(9940),Y=C(8251),W=C(7400),re=C(2714);function ue(...ie){const V=(0,K.jO)(ie),{args:Q,keys:be}=(0,l.D)(ie),Ve=new o.y(He=>{const{length:tt}=Q;if(!tt)return void He.complete();const $e=new Array(tt);let X=tt,Ye=tt;for(let ut=0;ut<tt;ut++){let Ne=!1;(0,R.Xf)(Q[ut]).subscribe((0,Y.x)(He,q=>{Ne||(Ne=!0,Ye--),$e[ut]=q},()=>X--,void 0,()=>{(!X||!Ne)&&(Ye||He.next(be?(0,re.n)(be,$e):$e),He.complete())}))}});return V?Ve.pipe((0,W.Z)(V)):Ve}},2459:(wt,Pe,C)=>{C.d(Pe,{D:()=>me});var o=C(4829),l=C(3093),R=C(5137),W=C(5592),ue=C(4971),ie=C(4674),V=C(7103);function be(ve,ye){if(!ve)throw new Error("Iterable cannot be null");return new W.y(rt=>{(0,V.f)(rt,ye,()=>{const Qe=ve[Symbol.asyncIterator]();(0,V.f)(rt,ye,()=>{Qe.next().then(ft=>{ft.done?rt.complete():rt.next(ft.value)})},0,!0)})})}var Ve=C(8382),He=C(4026),tt=C(4266),$e=C(3664),X=C(5726),Ye=C(9853),ut=C(541);function me(ve,ye){return ye?function q(ve,ye){if(null!=ve){if((0,Ve.c)(ve))return function K(ve,ye){return(0,o.Xf)(ve).pipe((0,R.R)(ye),(0,l.Q)(ye))}(ve,ye);if((0,tt.z)(ve))return function re(ve,ye){return new W.y(rt=>{let Qe=0;return ye.schedule(function(){Qe===ve.length?rt.complete():(rt.next(ve[Qe++]),rt.closed||this.schedule())})})}(ve,ye);if((0,He.t)(ve))return function Y(ve,ye){return(0,o.Xf)(ve).pipe((0,R.R)(ye),(0,l.Q)(ye))}(ve,ye);if((0,X.D)(ve))return be(ve,ye);if((0,$e.T)(ve))return function Q(ve,ye){return new W.y(rt=>{let Qe;return(0,V.f)(rt,ye,()=>{Qe=ve[ue.h](),(0,V.f)(rt,ye,()=>{let ft,xt;try{({value:ft,done:xt}=Qe.next())}catch(Bt){return void rt.error(Bt)}xt?rt.complete():rt.next(ft)},0,!0)}),()=>(0,ie.m)(Qe?.return)&&Qe.return()})}(ve,ye);if((0,ut.L)(ve))return function Ne(ve,ye){return be((0,ut.Q)(ve),ye)}(ve,ye)}throw(0,Ye.z)(ve)}(ve,ye):(0,o.Xf)(ve)}},2438:(wt,Pe,C)=>{C.d(Pe,{R:()=>V});var o=C(4829),l=C(5592),R=C(1631),K=C(4266),Y=C(4674),W=C(7400);const re=["addListener","removeListener"],ue=["addEventListener","removeEventListener"],ie=["on","off"];function V(tt,$e,X,Ye){if((0,Y.m)(X)&&(Ye=X,X=void 0),Ye)return V(tt,$e,X).pipe((0,W.Z)(Ye));const[ut,Ne]=function He(tt){return(0,Y.m)(tt.addEventListener)&&(0,Y.m)(tt.removeEventListener)}(tt)?ue.map(q=>me=>tt[q]($e,me,X)):function be(tt){return(0,Y.m)(tt.addListener)&&(0,Y.m)(tt.removeListener)}(tt)?re.map(Q(tt,$e)):function Ve(tt){return(0,Y.m)(tt.on)&&(0,Y.m)(tt.off)}(tt)?ie.map(Q(tt,$e)):[];if(!ut&&(0,K.z)(tt))return(0,R.z)(q=>V(q,$e,X))((0,o.Xf)(tt));if(!ut)throw new TypeError("Invalid event target");return new l.y(q=>{const me=(...ve)=>q.next(1<ve.length?ve:ve[0]);return ut(me),()=>Ne(me)})}function Q(tt,$e){return X=>Ye=>tt[X]($e,Ye)}},4829:(wt,Pe,C)=>{C.d(Pe,{Xf:()=>Ve});var o=C(7582),l=C(4266),R=C(4026),K=C(5592),Y=C(8382),W=C(5726),re=C(9853),ue=C(3664),ie=C(541),V=C(4674),Q=C(3894),be=C(4850);function Ve(q){if(q instanceof K.y)return q;if(null!=q){if((0,Y.c)(q))return function He(q){return new K.y(me=>{const ve=q[be.L]();if((0,V.m)(ve.subscribe))return ve.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(q);if((0,l.z)(q))return function tt(q){return new K.y(me=>{for(let ve=0;ve<q.length&&!me.closed;ve++)me.next(q[ve]);me.complete()})}(q);if((0,R.t)(q))return function $e(q){return new K.y(me=>{q.then(ve=>{me.closed||(me.next(ve),me.complete())},ve=>me.error(ve)).then(null,Q.h)})}(q);if((0,W.D)(q))return Ye(q);if((0,ue.T)(q))return function X(q){return new K.y(me=>{for(const ve of q)if(me.next(ve),me.closed)return;me.complete()})}(q);if((0,ie.L)(q))return function ut(q){return Ye((0,ie.Q)(q))}(q)}throw(0,re.z)(q)}function Ye(q){return new K.y(me=>{(function Ne(q,me){var ve,ye,rt,Qe;return(0,o.mG)(this,void 0,void 0,function*(){try{for(ve=(0,o.KL)(q);!(ye=yield ve.next()).done;)if(me.next(ye.value),me.closed)return}catch(ft){rt={error:ft}}finally{try{ye&&!ye.done&&(Qe=ve.return)&&(yield Qe.call(ve))}finally{if(rt)throw rt.error}}me.complete()})})(q,me).catch(ve=>me.error(ve))})}},3019:(wt,Pe,C)=>{C.d(Pe,{T:()=>W});var o=C(7537),l=C(4829),R=C(6232),K=C(9940),Y=C(2459);function W(...re){const ue=(0,K.yG)(re),ie=(0,K._6)(re,1/0),V=re;return V.length?1===V.length?(0,l.Xf)(V[0]):(0,o.J)(ie)((0,Y.D)(V,ue)):R.E}},2096:(wt,Pe,C)=>{C.d(Pe,{of:()=>R});var o=C(9940),l=C(2459);function R(...K){const Y=(0,o.yG)(K);return(0,l.D)(K,Y)}},8504:(wt,Pe,C)=>{C.d(Pe,{_:()=>R});var o=C(5592),l=C(4674);function R(K,Y){const W=(0,l.m)(K)?K:()=>K,re=ue=>ue.error(W());return new o.y(Y?ue=>Y.schedule(re,0,ue):re)}},9080:(wt,Pe,C)=>{C.d(Pe,{H:()=>Y});var o=C(5592),l=C(6321),R=C(671),K=C(93);function Y(W=0,re,ue=l.P){let ie=-1;return null!=re&&((0,R.K)(re)?ue=re:ie=re),new o.y(V=>{let Q=(0,K.q)(W)?+W-ue.now():W;Q<0&&(Q=0);let be=0;return ue.schedule(function(){V.closed||(V.next(be++),0<=ie?this.schedule(void 0,ie):V.complete())},Q)})}},8251:(wt,Pe,C)=>{C.d(Pe,{x:()=>l});var o=C(305);function l(K,Y,W,re,ue){return new R(K,Y,W,re,ue)}class R extends o.Lv{constructor(Y,W,re,ue,ie,V){super(Y),this.onFinalize=ie,this.shouldUnsubscribe=V,this._next=W?function(Q){try{W(Q)}catch(be){Y.error(be)}}:super._next,this._error=ue?function(Q){try{ue(Q)}catch(be){Y.error(be)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(Q){Y.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Y;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:W}=this;super.unsubscribe(),!W&&(null===(Y=this.onFinalize)||void 0===Y||Y.call(this))}}}},9028:(wt,Pe,C)=>{C.d(Pe,{e:()=>re});var o=C(6321),l=C(9360),R=C(4829),K=C(8251),W=C(9080);function re(ue,ie=o.z){return function Y(ue){return(0,l.e)((ie,V)=>{let Q=!1,be=null,Ve=null,He=!1;const tt=()=>{if(Ve?.unsubscribe(),Ve=null,Q){Q=!1;const X=be;be=null,V.next(X)}He&&V.complete()},$e=()=>{Ve=null,He&&V.complete()};ie.subscribe((0,K.x)(V,X=>{Q=!0,be=X,Ve||(0,R.Xf)(ue(X)).subscribe(Ve=(0,K.x)(V,tt,$e))},()=>{He=!0,(!Q||!Ve||Ve.closed)&&V.complete()}))})}(()=>(0,W.H)(ue,ie))}},6306:(wt,Pe,C)=>{C.d(Pe,{K:()=>K});var o=C(4829),l=C(8251),R=C(9360);function K(Y){return(0,R.e)((W,re)=>{let V,ue=null,ie=!1;ue=W.subscribe((0,l.x)(re,void 0,void 0,Q=>{V=(0,o.Xf)(Y(Q,K(Y)(W))),ue?(ue.unsubscribe(),ue=null,V.subscribe(re)):ie=!0})),ie&&(ue.unsubscribe(),ue=null,V.subscribe(re))})}},6328:(wt,Pe,C)=>{C.d(Pe,{b:()=>R});var o=C(1631),l=C(4674);function R(K,Y){return(0,l.m)(Y)?(0,o.z)(K,Y,1):(0,o.z)(K,1)}},3620:(wt,Pe,C)=>{C.d(Pe,{b:()=>K});var o=C(6321),l=C(9360),R=C(8251);function K(Y,W=o.z){return(0,l.e)((re,ue)=>{let ie=null,V=null,Q=null;const be=()=>{if(ie){ie.unsubscribe(),ie=null;const He=V;V=null,ue.next(He)}};function Ve(){const He=Q+Y,tt=W.now();if(tt<He)return ie=this.schedule(void 0,He-tt),void ue.add(ie);be()}re.subscribe((0,R.x)(ue,He=>{V=He,Q=W.now(),ie||(ie=W.schedule(Ve,Y),ue.add(ie))},()=>{be(),ue.complete()},void 0,()=>{V=ie=null}))})}},3572:(wt,Pe,C)=>{C.d(Pe,{d:()=>R});var o=C(9360),l=C(8251);function R(K){return(0,o.e)((Y,W)=>{let re=!1;Y.subscribe((0,l.x)(W,ue=>{re=!0,W.next(ue)},()=>{re||W.next(K),W.complete()}))})}},3997:(wt,Pe,C)=>{C.d(Pe,{x:()=>K});var o=C(2737),l=C(9360),R=C(8251);function K(W,re=o.y){return W=W??Y,(0,l.e)((ue,ie)=>{let V,Q=!0;ue.subscribe((0,R.x)(ie,be=>{const Ve=re(be);(Q||!W(V,Ve))&&(Q=!1,V=Ve,ie.next(be))}))})}function Y(W,re){return W===re}},2181:(wt,Pe,C)=>{C.d(Pe,{h:()=>R});var o=C(9360),l=C(8251);function R(K,Y){return(0,o.e)((W,re)=>{let ue=0;W.subscribe((0,l.x)(re,ie=>K.call(Y,ie,ue++)&&re.next(ie)))})}},4716:(wt,Pe,C)=>{C.d(Pe,{x:()=>l});var o=C(9360);function l(R){return(0,o.e)((K,Y)=>{try{K.subscribe(Y)}finally{Y.add(R)}})}},1374:(wt,Pe,C)=>{C.d(Pe,{P:()=>re});var o=C(6973),l=C(2181),R=C(8180),K=C(3572),Y=C(3026),W=C(2737);function re(ue,ie){const V=arguments.length>=2;return Q=>Q.pipe(ue?(0,l.h)((be,Ve)=>ue(be,Ve,Q)):W.y,(0,R.q)(1),V?(0,K.d)(ie):(0,Y.T)(()=>new o.K))}},7398:(wt,Pe,C)=>{C.d(Pe,{U:()=>R});var o=C(9360),l=C(8251);function R(K,Y){return(0,o.e)((W,re)=>{let ue=0;W.subscribe((0,l.x)(re,ie=>{re.next(K.call(Y,ie,ue++))}))})}},975:(wt,Pe,C)=>{C.d(Pe,{h:()=>l});var o=C(7398);function l(R){return(0,o.U)(()=>R)}},7537:(wt,Pe,C)=>{C.d(Pe,{J:()=>R});var o=C(1631),l=C(2737);function R(K=1/0){return(0,o.z)(l.y,K)}},1631:(wt,Pe,C)=>{C.d(Pe,{z:()=>ue});var o=C(7398),l=C(4829),R=C(9360),K=C(7103),Y=C(8251),re=C(4674);function ue(ie,V,Q=1/0){return(0,re.m)(V)?ue((be,Ve)=>(0,o.U)((He,tt)=>V(be,He,Ve,tt))((0,l.Xf)(ie(be,Ve))),Q):("number"==typeof V&&(Q=V),(0,R.e)((be,Ve)=>function W(ie,V,Q,be,Ve,He,tt,$e){const X=[];let Ye=0,ut=0,Ne=!1;const q=()=>{Ne&&!X.length&&!Ye&&V.complete()},me=ye=>Ye<be?ve(ye):X.push(ye),ve=ye=>{He&&V.next(ye),Ye++;let rt=!1;(0,l.Xf)(Q(ye,ut++)).subscribe((0,Y.x)(V,Qe=>{Ve?.(Qe),He?me(Qe):V.next(Qe)},()=>{rt=!0},void 0,()=>{if(rt)try{for(Ye--;X.length&&Ye<be;){const Qe=X.shift();tt?(0,K.f)(V,tt,()=>ve(Qe)):ve(Qe)}q()}catch(Qe){V.error(Qe)}}))};return ie.subscribe((0,Y.x)(V,me,()=>{Ne=!0,q()})),()=>{$e?.()}}(be,Ve,ie,Q)))}},3093:(wt,Pe,C)=>{C.d(Pe,{Q:()=>K});var o=C(7103),l=C(9360),R=C(8251);function K(Y,W=0){return(0,l.e)((re,ue)=>{re.subscribe((0,R.x)(ue,ie=>(0,o.f)(ue,Y,()=>ue.next(ie),W),()=>(0,o.f)(ue,Y,()=>ue.complete(),W),ie=>(0,o.f)(ue,Y,()=>ue.error(ie),W)))})}},3020:(wt,Pe,C)=>{C.d(Pe,{B:()=>Y});var o=C(4829),l=C(8645),R=C(305),K=C(9360);function Y(re={}){const{connector:ue=(()=>new l.x),resetOnError:ie=!0,resetOnComplete:V=!0,resetOnRefCountZero:Q=!0}=re;return be=>{let Ve,He,tt,$e=0,X=!1,Ye=!1;const ut=()=>{He?.unsubscribe(),He=void 0},Ne=()=>{ut(),Ve=tt=void 0,X=Ye=!1},q=()=>{const me=Ve;Ne(),me?.unsubscribe()};return(0,K.e)((me,ve)=>{$e++,!Ye&&!X&&ut();const ye=tt=tt??ue();ve.add(()=>{$e--,0===$e&&!Ye&&!X&&(He=W(q,Q))}),ye.subscribe(ve),!Ve&&$e>0&&(Ve=new R.Hp({next:rt=>ye.next(rt),error:rt=>{Ye=!0,ut(),He=W(Ne,ie,rt),ye.error(rt)},complete:()=>{X=!0,ut(),He=W(Ne,V),ye.complete()}}),(0,o.Xf)(me).subscribe(Ve))})(be)}}function W(re,ue,...ie){if(!0===ue)return void re();if(!1===ue)return;const V=new R.Hp({next:()=>{V.unsubscribe(),re()}});return(0,o.Xf)(ue(...ie)).subscribe(V)}},7081:(wt,Pe,C)=>{C.d(Pe,{d:()=>R});var o=C(7328),l=C(3020);function R(K,Y,W){let re,ue=!1;return K&&"object"==typeof K?({bufferSize:re=1/0,windowTime:Y=1/0,refCount:ue=!1,scheduler:W}=K):re=K??1/0,(0,l.B)({connector:()=>new o.t(re,Y,W),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ue})}},7921:(wt,Pe,C)=>{C.d(Pe,{O:()=>K});var o=C(5211),l=C(9940),R=C(9360);function K(...Y){const W=(0,l.yG)(Y);return(0,R.e)((re,ue)=>{(W?(0,o.z)(Y,re,W):(0,o.z)(Y,re)).subscribe(ue)})}},5137:(wt,Pe,C)=>{C.d(Pe,{R:()=>l});var o=C(9360);function l(R,K=0){return(0,o.e)((Y,W)=>{W.add(R.schedule(()=>Y.subscribe(W),K))})}},4664:(wt,Pe,C)=>{C.d(Pe,{w:()=>K});var o=C(4829),l=C(9360),R=C(8251);function K(Y,W){return(0,l.e)((re,ue)=>{let ie=null,V=0,Q=!1;const be=()=>Q&&!ie&&ue.complete();re.subscribe((0,R.x)(ue,Ve=>{ie?.unsubscribe();let He=0;const tt=V++;(0,o.Xf)(Y(Ve,tt)).subscribe(ie=(0,R.x)(ue,$e=>ue.next(W?W(Ve,$e,tt,He++):$e),()=>{ie=null,be()}))},()=>{Q=!0,be()}))})}},8180:(wt,Pe,C)=>{C.d(Pe,{q:()=>K});var o=C(6232),l=C(9360),R=C(8251);function K(Y){return Y<=0?()=>o.E:(0,l.e)((W,re)=>{let ue=0;W.subscribe((0,R.x)(re,ie=>{++ue<=Y&&(re.next(ie),Y<=ue&&re.complete())}))})}},9773:(wt,Pe,C)=>{C.d(Pe,{R:()=>Y});var o=C(9360),l=C(8251),R=C(4829),K=C(2420);function Y(W){return(0,o.e)((re,ue)=>{(0,R.Xf)(W).subscribe((0,l.x)(ue,()=>ue.complete(),K.Z)),!ue.closed&&re.subscribe(ue)})}},9397:(wt,Pe,C)=>{C.d(Pe,{b:()=>Y});var o=C(4674),l=C(9360),R=C(8251),K=C(2737);function Y(W,re,ue){const ie=(0,o.m)(W)||re||ue?{next:W,error:re,complete:ue}:W;return ie?(0,l.e)((V,Q)=>{var be;null===(be=ie.subscribe)||void 0===be||be.call(ie);let Ve=!0;V.subscribe((0,R.x)(Q,He=>{var tt;null===(tt=ie.next)||void 0===tt||tt.call(ie,He),Q.next(He)},()=>{var He;Ve=!1,null===(He=ie.complete)||void 0===He||He.call(ie),Q.complete()},He=>{var tt;Ve=!1,null===(tt=ie.error)||void 0===tt||tt.call(ie,He),Q.error(He)},()=>{var He,tt;Ve&&(null===(He=ie.unsubscribe)||void 0===He||He.call(ie)),null===(tt=ie.finalize)||void 0===tt||tt.call(ie)}))}):K.y}},3026:(wt,Pe,C)=>{C.d(Pe,{T:()=>K});var o=C(6973),l=C(9360),R=C(8251);function K(W=Y){return(0,l.e)((re,ue)=>{let ie=!1;re.subscribe((0,R.x)(ue,V=>{ie=!0,ue.next(V)},()=>ie?ue.complete():ue.error(W())))})}function Y(){return new o.K}},1954:(wt,Pe,C)=>{C.d(Pe,{o:()=>Y});var o=C(7394);class l extends o.w0{constructor(re,ue){super()}schedule(re,ue=0){return this}}const R={setInterval(W,re,...ue){const{delegate:ie}=R;return ie?.setInterval?ie.setInterval(W,re,...ue):setInterval(W,re,...ue)},clearInterval(W){const{delegate:re}=R;return(re?.clearInterval||clearInterval)(W)},delegate:void 0};var K=C(9039);class Y extends l{constructor(re,ue){super(re,ue),this.scheduler=re,this.work=ue,this.pending=!1}schedule(re,ue=0){var ie;if(this.closed)return this;this.state=re;const V=this.id,Q=this.scheduler;return null!=V&&(this.id=this.recycleAsyncId(Q,V,ue)),this.pending=!0,this.delay=ue,this.id=null!==(ie=this.id)&&void 0!==ie?ie:this.requestAsyncId(Q,this.id,ue),this}requestAsyncId(re,ue,ie=0){return R.setInterval(re.flush.bind(re,this),ie)}recycleAsyncId(re,ue,ie=0){if(null!=ie&&this.delay===ie&&!1===this.pending)return ue;null!=ue&&R.clearInterval(ue)}execute(re,ue){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ie=this._execute(re,ue);if(ie)return ie;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(re,ue){let V,ie=!1;try{this.work(re)}catch(Q){ie=!0,V=Q||new Error("Scheduled action threw falsy error")}if(ie)return this.unsubscribe(),V}unsubscribe(){if(!this.closed){const{id:re,scheduler:ue}=this,{actions:ie}=ue;this.work=this.state=this.scheduler=null,this.pending=!1,(0,K.P)(ie,this),null!=re&&(this.id=this.recycleAsyncId(ue,re,null)),this.delay=null,super.unsubscribe()}}}},2631:(wt,Pe,C)=>{C.d(Pe,{v:()=>R});var o=C(4552);class l{constructor(Y,W=l.now){this.schedulerActionCtor=Y,this.now=W}schedule(Y,W=0,re){return new this.schedulerActionCtor(this,Y).schedule(re,W)}}l.now=o.l.now;class R extends l{constructor(Y,W=l.now){super(Y,W),this.actions=[],this._active=!1}flush(Y){const{actions:W}=this;if(this._active)return void W.push(Y);let re;this._active=!0;do{if(re=Y.execute(Y.state,Y.delay))break}while(Y=W.shift());if(this._active=!1,re){for(;Y=W.shift();)Y.unsubscribe();throw re}}}},927:(wt,Pe,C)=>{C.d(Pe,{Z:()=>re});var o=C(1954),l=C(7394);const R={schedule(ie){let V=requestAnimationFrame,Q=cancelAnimationFrame;const{delegate:be}=R;be&&(V=be.requestAnimationFrame,Q=be.cancelAnimationFrame);const Ve=V(He=>{Q=void 0,ie(He)});return new l.w0(()=>Q?.(Ve))},requestAnimationFrame(...ie){const{delegate:V}=R;return(V?.requestAnimationFrame||requestAnimationFrame)(...ie)},cancelAnimationFrame(...ie){const{delegate:V}=R;return(V?.cancelAnimationFrame||cancelAnimationFrame)(...ie)},delegate:void 0};var Y=C(2631);const re=new class W extends Y.v{flush(V){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let Ve;V=V||be.shift();do{if(Ve=V.execute(V.state,V.delay))break}while((V=be[0])&&V.id===Q&&be.shift());if(this._active=!1,Ve){for(;(V=be[0])&&V.id===Q&&be.shift();)V.unsubscribe();throw Ve}}}(class K extends o.o{constructor(V,Q){super(V,Q),this.scheduler=V,this.work=Q}requestAsyncId(V,Q,be=0){return null!==be&&be>0?super.requestAsyncId(V,Q,be):(V.actions.push(this),V._scheduled||(V._scheduled=R.requestAnimationFrame(()=>V.flush(void 0))))}recycleAsyncId(V,Q,be=0){var Ve;if(null!=be?be>0:this.delay>0)return super.recycleAsyncId(V,Q,be);const{actions:He}=V;null!=Q&&(null===(Ve=He[He.length-1])||void 0===Ve?void 0:Ve.id)!==Q&&(R.cancelAnimationFrame(Q),V._scheduled=void 0)}})},6410:(wt,Pe,C)=>{C.d(Pe,{E:()=>He});var o=C(1954);let R,l=1;const K={};function Y($e){return $e in K&&(delete K[$e],!0)}const W={setImmediate($e){const X=l++;return K[X]=!0,R||(R=Promise.resolve()),R.then(()=>Y(X)&&$e()),X},clearImmediate($e){Y($e)}},{setImmediate:ue,clearImmediate:ie}=W,V={setImmediate(...$e){const{delegate:X}=V;return(X?.setImmediate||ue)(...$e)},clearImmediate($e){const{delegate:X}=V;return(X?.clearImmediate||ie)($e)},delegate:void 0};var be=C(2631);const He=new class Ve extends be.v{flush(X){this._active=!0;const Ye=this._scheduled;this._scheduled=void 0;const{actions:ut}=this;let Ne;X=X||ut.shift();do{if(Ne=X.execute(X.state,X.delay))break}while((X=ut[0])&&X.id===Ye&&ut.shift());if(this._active=!1,Ne){for(;(X=ut[0])&&X.id===Ye&&ut.shift();)X.unsubscribe();throw Ne}}}(class Q extends o.o{constructor(X,Ye){super(X,Ye),this.scheduler=X,this.work=Ye}requestAsyncId(X,Ye,ut=0){return null!==ut&&ut>0?super.requestAsyncId(X,Ye,ut):(X.actions.push(this),X._scheduled||(X._scheduled=V.setImmediate(X.flush.bind(X,void 0))))}recycleAsyncId(X,Ye,ut=0){var Ne;if(null!=ut?ut>0:this.delay>0)return super.recycleAsyncId(X,Ye,ut);const{actions:q}=X;null!=Ye&&(null===(Ne=q[q.length-1])||void 0===Ne?void 0:Ne.id)!==Ye&&(V.clearImmediate(Ye),X._scheduled===Ye&&(X._scheduled=void 0))}})},6321:(wt,Pe,C)=>{C.d(Pe,{P:()=>K,z:()=>R});var o=C(1954);const R=new(C(2631).v)(o.o),K=R},4552:(wt,Pe,C)=>{C.d(Pe,{l:()=>o});const o={now:()=>(o.delegate||Date).now(),delegate:void 0}},7599:(wt,Pe,C)=>{C.d(Pe,{z:()=>o});const o={setTimeout(l,R,...K){const{delegate:Y}=o;return Y?.setTimeout?Y.setTimeout(l,R,...K):setTimeout(l,R,...K)},clearTimeout(l){const{delegate:R}=o;return(R?.clearTimeout||clearTimeout)(l)},delegate:void 0}},4971:(wt,Pe,C)=>{C.d(Pe,{h:()=>l});const l=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(wt,Pe,C)=>{C.d(Pe,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(wt,Pe,C)=>{C.d(Pe,{K:()=>l});const l=(0,C(2306).d)(R=>function(){R(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(wt,Pe,C)=>{C.d(Pe,{_6:()=>W,jO:()=>K,yG:()=>Y});var o=C(4674),l=C(671);function R(re){return re[re.length-1]}function K(re){return(0,o.m)(R(re))?re.pop():void 0}function Y(re){return(0,l.K)(R(re))?re.pop():void 0}function W(re,ue){return"number"==typeof R(re)?re.pop():ue}},7453:(wt,Pe,C)=>{C.d(Pe,{D:()=>Y});const{isArray:o}=Array,{getPrototypeOf:l,prototype:R,keys:K}=Object;function Y(re){if(1===re.length){const ue=re[0];if(o(ue))return{args:ue,keys:null};if(function W(re){return re&&"object"==typeof re&&l(re)===R}(ue)){const ie=K(ue);return{args:ie.map(V=>ue[V]),keys:ie}}}return{args:re,keys:null}}},9039:(wt,Pe,C)=>{function o(l,R){if(l){const K=l.indexOf(R);0<=K&&l.splice(K,1)}}C.d(Pe,{P:()=>o})},2306:(wt,Pe,C)=>{function o(l){const K=l(Y=>{Error.call(Y),Y.stack=(new Error).stack});return K.prototype=Object.create(Error.prototype),K.prototype.constructor=K,K}C.d(Pe,{d:()=>o})},2714:(wt,Pe,C)=>{function o(l,R){return l.reduce((K,Y,W)=>(K[Y]=R[W],K),{})}C.d(Pe,{n:()=>o})},1441:(wt,Pe,C)=>{C.d(Pe,{O:()=>K,x:()=>R});var o=C(2653);let l=null;function R(Y){if(o.config.useDeprecatedSynchronousErrorHandling){const W=!l;if(W&&(l={errorThrown:!1,error:null}),Y(),W){const{errorThrown:re,error:ue}=l;if(l=null,re)throw ue}}else Y()}function K(Y){o.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=Y)}},7103:(wt,Pe,C)=>{function o(l,R,K,Y=0,W=!1){const re=R.schedule(function(){K(),W?l.add(this.schedule(null,Y)):this.unsubscribe()},Y);if(l.add(re),!W)return re}C.d(Pe,{f:()=>o})},2737:(wt,Pe,C)=>{function o(l){return l}C.d(Pe,{y:()=>o})},4266:(wt,Pe,C)=>{C.d(Pe,{z:()=>o});const o=l=>l&&"number"==typeof l.length&&"function"!=typeof l},5726:(wt,Pe,C)=>{C.d(Pe,{D:()=>l});var o=C(4674);function l(R){return Symbol.asyncIterator&&(0,o.m)(R?.[Symbol.asyncIterator])}},93:(wt,Pe,C)=>{function o(l){return l instanceof Date&&!isNaN(l)}C.d(Pe,{q:()=>o})},4674:(wt,Pe,C)=>{function o(l){return"function"==typeof l}C.d(Pe,{m:()=>o})},8382:(wt,Pe,C)=>{C.d(Pe,{c:()=>R});var o=C(4850),l=C(4674);function R(K){return(0,l.m)(K[o.L])}},3664:(wt,Pe,C)=>{C.d(Pe,{T:()=>R});var o=C(4971),l=C(4674);function R(K){return(0,l.m)(K?.[o.h])}},4026:(wt,Pe,C)=>{C.d(Pe,{t:()=>l});var o=C(4674);function l(R){return(0,o.m)(R?.then)}},541:(wt,Pe,C)=>{C.d(Pe,{L:()=>K,Q:()=>R});var o=C(7582),l=C(4674);function R(Y){return(0,o.FC)(this,arguments,function*(){const re=Y.getReader();try{for(;;){const{value:ue,done:ie}=yield(0,o.qq)(re.read());if(ie)return yield(0,o.qq)(void 0);yield yield(0,o.qq)(ue)}}finally{re.releaseLock()}})}function K(Y){return(0,l.m)(Y?.getReader)}},671:(wt,Pe,C)=>{C.d(Pe,{K:()=>l});var o=C(4674);function l(R){return R&&(0,o.m)(R.schedule)}},9360:(wt,Pe,C)=>{C.d(Pe,{A:()=>l,e:()=>R});var o=C(4674);function l(K){return(0,o.m)(K?.lift)}function R(K){return Y=>{if(l(Y))return Y.lift(function(W){try{return K(W,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(wt,Pe,C)=>{C.d(Pe,{Z:()=>K});var o=C(7398);const{isArray:l}=Array;function K(Y){return(0,o.U)(W=>function R(Y,W){return l(W)?Y(...W):Y(W)}(Y,W))}},2420:(wt,Pe,C)=>{function o(){}C.d(Pe,{Z:()=>o})},8407:(wt,Pe,C)=>{C.d(Pe,{U:()=>R,z:()=>l});var o=C(2737);function l(...K){return R(K)}function R(K){return 0===K.length?o.y:1===K.length?K[0]:function(W){return K.reduce((re,ue)=>ue(re),W)}}},3894:(wt,Pe,C)=>{C.d(Pe,{h:()=>R});var o=C(2653),l=C(7599);function R(K){l.z.setTimeout(()=>{const{onUnhandledError:Y}=o.config;if(!Y)throw K;Y(K)})}},9853:(wt,Pe,C)=>{function o(l){return new TypeError(`You provided ${null!==l&&"object"==typeof l?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Pe,{z:()=>o})},6825:(wt,Pe,C)=>{C.d(Pe,{F4:()=>V,IO:()=>tt,LC:()=>l,SB:()=>ie,X$:()=>K,ZE:()=>Ye,ZN:()=>X,_7:()=>He,_j:()=>o,eR:()=>Q,jt:()=>Y,k1:()=>ut,l3:()=>R,oB:()=>ue,oQ:()=>be,pV:()=>Ve,ru:()=>W,vP:()=>re});class o{}class l{}const R="*";function K(Ne,q){return{type:7,name:Ne,definitions:q,options:{}}}function Y(Ne,q=null){return{type:4,styles:q,timings:Ne}}function W(Ne,q=null){return{type:3,steps:Ne,options:q}}function re(Ne,q=null){return{type:2,steps:Ne,options:q}}function ue(Ne){return{type:6,styles:Ne,offset:null}}function ie(Ne,q,me){return{type:0,name:Ne,styles:q,options:me}}function V(Ne){return{type:5,steps:Ne}}function Q(Ne,q,me=null){return{type:1,expr:Ne,animation:q,options:me}}function be(Ne,q=null){return{type:8,animation:Ne,options:q}}function Ve(Ne=null){return{type:9,options:Ne}}function He(Ne,q=null){return{type:10,animation:Ne,options:q}}function tt(Ne,q,me=null){return{type:11,selector:Ne,animation:q,options:me}}class X{constructor(q=0,me=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=q+me}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}onStart(q){this._originalOnStartFns.push(q),this._onStartFns.push(q)}onDone(q){this._originalOnDoneFns.push(q),this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(q=>q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(q){this._position=this.totalTime?q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(q){const me="start"==q?this._onStartFns:this._onDoneFns;me.forEach(ve=>ve()),me.length=0}}class Ye{constructor(q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=q;let me=0,ve=0,ye=0;const rt=this.players.length;0==rt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Qe=>{Qe.onDone(()=>{++me==rt&&this._onFinish()}),Qe.onDestroy(()=>{++ve==rt&&this._onDestroy()}),Qe.onStart(()=>{++ye==rt&&this._onStart()})}),this.totalTime=this.players.reduce((Qe,ft)=>Math.max(Qe,ft.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}init(){this.players.forEach(q=>q.init())}onStart(q){this._onStartFns.push(q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(q=>q()),this._onStartFns=[])}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(q=>q.play())}pause(){this.players.forEach(q=>q.pause())}restart(){this.players.forEach(q=>q.restart())}finish(){this._onFinish(),this.players.forEach(q=>q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(q=>q.destroy()),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this.players.forEach(q=>q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(q){const me=q*this.totalTime;this.players.forEach(ve=>{const ye=ve.totalTime?Math.min(1,me/ve.totalTime):1;ve.setPosition(ye)})}getPosition(){const q=this.players.reduce((me,ve)=>null===me||ve.totalTime>me.totalTime?ve:me,null);return null!=q?q.getPosition():0}beforeDestroy(){this.players.forEach(q=>{q.beforeDestroy&&q.beforeDestroy()})}triggerCallback(q){const me="start"==q?this._onStartFns:this._onDoneFns;me.forEach(ve=>ve()),me.length=0}}const ut="!"},7849:(wt,Pe,C)=>{C.d(Pe,{rt:()=>j,s1:()=>ke,$s:()=>Me,kH:()=>z,mK:()=>pe,Em:()=>Ct,tE:()=>Oe,qV:()=>Ie,qm:()=>H,ic:()=>jt,Kd:()=>Pt,Zf:()=>sn,X6:()=>Je,yG:()=>pt,iD:()=>Cn});var o=C(6814),l=C(5879),R=C(2831),K=C(8645),Y=C(7394),W=C(5619),re=C(2096),ue=C(6028),ie=C(9397),V=C(3620),Q=C(2181),be=C(7398),Ve=C(8180);function He(L){return(0,Q.h)((J,xe)=>L<=xe)}var tt=C(3997),$e=C(9773),X=C(2495),Ye=C(7131),ut=C(2572),Ne=C(5211),q=C(5592),me=C(7921);const ye=new Set;let rt,Qe=(()=>{var L;class J{constructor(ce,Se){this._platform=ce,this._nonce=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xt}matchMedia(ce){return(this._platform.WEBKIT||this._platform.BLINK)&&function ft(L,J){if(!ye.has(L))try{rt||(rt=document.createElement("style"),J&&(rt.nonce=J),rt.setAttribute("type","text/css"),document.head.appendChild(rt)),rt.sheet&&(rt.sheet.insertRule(`@media ${L} {body{ }}`,0),ye.add(L))}catch(xe){console.error(xe)}}(ce,this._nonce),this._matchMedia(ce)}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4),l.LFG(l.Ojb,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function xt(L){return{matches:"all"===L||""===L,media:L,addListener:()=>{},removeListener:()=>{}}}let Bt=(()=>{var L;class J{constructor(ce,Se){this._mediaMatcher=ce,this._zone=Se,this._queries=new Map,this._destroySubject=new K.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ce){return Rt((0,X.Eq)(ce)).some(at=>this._registerQuery(at).mql.matches)}observe(ce){const at=Rt((0,X.Eq)(ce)).map(se=>this._registerQuery(se).observable);let de=(0,ut.a)(at);return de=(0,Ne.z)(de.pipe((0,Ve.q)(1)),de.pipe(He(1),(0,V.b)(0))),de.pipe((0,be.U)(se=>{const ot={matches:!1,breakpoints:{}};return se.forEach(({matches:le,query:Ee})=>{ot.matches=ot.matches||le,ot.breakpoints[Ee]=le}),ot}))}_registerQuery(ce){if(this._queries.has(ce))return this._queries.get(ce);const Se=this._mediaMatcher.matchMedia(ce),de={observable:new q.y(se=>{const ot=le=>this._zone.run(()=>se.next(le));return Se.addListener(ot),()=>{Se.removeListener(ot)}}).pipe((0,me.O)(Se),(0,be.U)(({matches:se})=>({query:ce,matches:se})),(0,$e.R)(this._destroySubject)),mql:Se};return this._queries.set(ce,de),de}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(Qe),l.LFG(l.R0b))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function Rt(L){return L.map(J=>J.split(",")).reduce((J,xe)=>J.concat(xe)).map(J=>J.trim())}const qt=" ";function sn(L,J,xe){const ce=wn(L,J);ce.some(Se=>Se.trim()==xe.trim())||(ce.push(xe.trim()),L.setAttribute(J,ce.join(qt)))}function Cn(L,J,xe){const Se=wn(L,J).filter(at=>at!=xe.trim());Se.length?L.setAttribute(J,Se.join(qt)):L.removeAttribute(J)}function wn(L,J){return(L.getAttribute(J)||"").match(/\S+/g)||[]}const Xe="cdk-describedby-message",Ze="cdk-describedby-host";let De=0,Me=(()=>{var L;class J{constructor(ce,Se){this._platform=Se,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+De++,this._document=ce,this._id=(0,l.f3M)(l.AFp)+"-"+De++}describe(ce,Se,at){if(!this._canBeDescribed(ce,Se))return;const de=Ce(Se,at);"string"!=typeof Se?(Be(Se,this._id),this._messageRegistry.set(de,{messageElement:Se,referenceCount:0})):this._messageRegistry.has(de)||this._createMessageElement(Se,at),this._isElementDescribedByMessage(ce,de)||this._addMessageReference(ce,de)}removeDescription(ce,Se,at){if(!Se||!this._isElementNode(ce))return;const de=Ce(Se,at);if(this._isElementDescribedByMessage(ce,de)&&this._removeMessageReference(ce,de),"string"==typeof Se){const se=this._messageRegistry.get(de);se&&0===se.referenceCount&&this._deleteMessageElement(de)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ce=this._document.querySelectorAll(`[${Ze}="${this._id}"]`);for(let Se=0;Se<ce.length;Se++)this._removeCdkDescribedByReferenceIds(ce[Se]),ce[Se].removeAttribute(Ze);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(ce,Se){const at=this._document.createElement("div");Be(at,this._id),at.textContent=ce,Se&&at.setAttribute("role",Se),this._createMessagesContainer(),this._messagesContainer.appendChild(at),this._messageRegistry.set(Ce(ce,Se),{messageElement:at,referenceCount:0})}_deleteMessageElement(ce){this._messageRegistry.get(ce)?.messageElement?.remove(),this._messageRegistry.delete(ce)}_createMessagesContainer(){if(this._messagesContainer)return;const ce="cdk-describedby-message-container",Se=this._document.querySelectorAll(`.${ce}[platform="server"]`);for(let de=0;de<Se.length;de++)Se[de].remove();const at=this._document.createElement("div");at.style.visibility="hidden",at.classList.add(ce),at.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&at.setAttribute("platform","server"),this._document.body.appendChild(at),this._messagesContainer=at}_removeCdkDescribedByReferenceIds(ce){const Se=wn(ce,"aria-describedby").filter(at=>0!=at.indexOf(Xe));ce.setAttribute("aria-describedby",Se.join(" "))}_addMessageReference(ce,Se){const at=this._messageRegistry.get(Se);sn(ce,"aria-describedby",at.messageElement.id),ce.setAttribute(Ze,this._id),at.referenceCount++}_removeMessageReference(ce,Se){const at=this._messageRegistry.get(Se);at.referenceCount--,Cn(ce,"aria-describedby",at.messageElement.id),ce.removeAttribute(Ze)}_isElementDescribedByMessage(ce,Se){const at=wn(ce,"aria-describedby"),de=this._messageRegistry.get(Se),se=de&&de.messageElement.id;return!!se&&-1!=at.indexOf(se)}_canBeDescribed(ce,Se){if(!this._isElementNode(ce))return!1;if(Se&&"object"==typeof Se)return!0;const at=null==Se?"":`${Se}`.trim(),de=ce.getAttribute("aria-label");return!(!at||de&&de.trim()===at)}_isElementNode(ce){return ce.nodeType===this._document.ELEMENT_NODE}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(o.K0),l.LFG(R.t4))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function Ce(L,J){return"string"==typeof L?`${J||""}/${L}`:L}function Be(L,J){L.id||(L.id=`${Xe}-${J}-${De++}`)}class Fe{constructor(J){this._items=J,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new K.x,this._typeaheadSubscription=Y.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=xe=>xe.disabled,this._pressedLetters=[],this.tabOut=new K.x,this.change=new K.x,J instanceof l.n_E&&(this._itemChangesSubscription=J.changes.subscribe(xe=>{if(this._activeItem){const Se=xe.toArray().indexOf(this._activeItem);Se>-1&&Se!==this._activeItemIndex&&(this._activeItemIndex=Se)}}))}skipPredicate(J){return this._skipPredicateFn=J,this}withWrap(J=!0){return this._wrap=J,this}withVerticalOrientation(J=!0){return this._vertical=J,this}withHorizontalOrientation(J){return this._horizontal=J,this}withAllowedModifierKeys(J){return this._allowedModifierKeys=J,this}withTypeAhead(J=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ie.b)(xe=>this._pressedLetters.push(xe)),(0,V.b)(J),(0,Q.h)(()=>this._pressedLetters.length>0),(0,be.U)(()=>this._pressedLetters.join(""))).subscribe(xe=>{const ce=this._getItemsArray();for(let Se=1;Se<ce.length+1;Se++){const at=(this._activeItemIndex+Se)%ce.length,de=ce[at];if(!this._skipPredicateFn(de)&&0===de.getLabel().toUpperCase().trim().indexOf(xe)){this.setActiveItem(at);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(J=!0){return this._homeAndEnd=J,this}withPageUpDown(J=!0,xe=10){return this._pageUpAndDown={enabled:J,delta:xe},this}setActiveItem(J){const xe=this._activeItem;this.updateActiveItem(J),this._activeItem!==xe&&this.change.next(this._activeItemIndex)}onKeydown(J){const xe=J.keyCode,Se=["altKey","ctrlKey","metaKey","shiftKey"].every(at=>!J[at]||this._allowedModifierKeys.indexOf(at)>-1);switch(xe){case ue.Mf:return void this.tabOut.next();case ue.JH:if(this._vertical&&Se){this.setNextItemActive();break}return;case ue.LH:if(this._vertical&&Se){this.setPreviousItemActive();break}return;case ue.SV:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ue.oh:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ue.Sd:if(this._homeAndEnd&&Se){this.setFirstItemActive();break}return;case ue.uR:if(this._homeAndEnd&&Se){this.setLastItemActive();break}return;case ue.Ku:if(this._pageUpAndDown.enabled&&Se){const at=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(at>0?at:0,1);break}return;case ue.VM:if(this._pageUpAndDown.enabled&&Se){const at=this._activeItemIndex+this._pageUpAndDown.delta,de=this._getItemsArray().length;this._setActiveItemByIndex(at<de?at:de-1,-1);break}return;default:return void((Se||(0,ue.Vb)(J,"shiftKey"))&&(J.key&&1===J.key.length?this._letterKeyStream.next(J.key.toLocaleUpperCase()):(xe>=ue.A&&xe<=ue.Z||xe>=ue.xE&&xe<=ue.aO)&&this._letterKeyStream.next(String.fromCharCode(xe))))}this._pressedLetters=[],J.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(J){const xe=this._getItemsArray(),ce="number"==typeof J?J:xe.indexOf(J);this._activeItem=xe[ce]??null,this._activeItemIndex=ce}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(J){this._wrap?this._setActiveInWrapMode(J):this._setActiveInDefaultMode(J)}_setActiveInWrapMode(J){const xe=this._getItemsArray();for(let ce=1;ce<=xe.length;ce++){const Se=(this._activeItemIndex+J*ce+xe.length)%xe.length;if(!this._skipPredicateFn(xe[Se]))return void this.setActiveItem(Se)}}_setActiveInDefaultMode(J){this._setActiveItemByIndex(this._activeItemIndex+J,J)}_setActiveItemByIndex(J,xe){const ce=this._getItemsArray();if(ce[J]){for(;this._skipPredicateFn(ce[J]);)if(!ce[J+=xe])return;this.setActiveItem(J)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class ke extends Fe{setActiveItem(J){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(J),this.activeItem&&this.activeItem.setActiveStyles()}}class Ct extends Fe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(J){return this._origin=J,this}setActiveItem(J){super.setActiveItem(J),this.activeItem&&this.activeItem.focus(this._origin)}}let jt=(()=>{var L;class J{constructor(ce){this._platform=ce}isDisabled(ce){return ce.hasAttribute("disabled")}isVisible(ce){return function nn(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}(ce)&&"visible"===getComputedStyle(ce).visibility}isTabbable(ce){if(!this._platform.isBrowser)return!1;const Se=function Kt(L){try{return L.frameElement}catch{return null}}(function ze(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}(ce));if(Se&&(-1===xn(Se)||!this.isVisible(Se)))return!1;let at=ce.nodeName.toLowerCase(),de=xn(ce);return ce.hasAttribute("contenteditable")?-1!==de:!("iframe"===at||"object"===at||this._platform.WEBKIT&&this._platform.IOS&&!function Hn(L){let J=L.nodeName.toLowerCase(),xe="input"===J&&L.type;return"text"===xe||"password"===xe||"select"===J||"textarea"===J}(ce))&&("audio"===at?!!ce.hasAttribute("controls")&&-1!==de:"video"===at?-1!==de&&(null!==de||this._platform.FIREFOX||ce.hasAttribute("controls")):ce.tabIndex>=0)}isFocusable(ce,Se){return function Un(L){return!function Xt(L){return function Sn(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function rn(L){let J=L.nodeName.toLowerCase();return"input"===J||"select"===J||"button"===J||"textarea"===J}(L)||function an(L){return function zt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Vn(L))}(ce)&&!this.isDisabled(ce)&&(Se?.ignoreVisibility||this.isVisible(ce))}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function Vn(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let J=L.getAttribute("tabindex");return!(!J||isNaN(parseInt(J,10)))}function xn(L){if(!Vn(L))return null;const J=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(J)?-1:J}class G{get enabled(){return this._enabled}set enabled(J){this._enabled=J,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}constructor(J,xe,ce,Se,at=!1){this._element=J,this._checker=xe,this._ngZone=ce,this._document=Se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,at||this.attachAnchors()}destroy(){const J=this._startAnchor,xe=this._endAnchor;J&&(J.removeEventListener("focus",this.startAnchorListener),J.remove()),xe&&(xe.removeEventListener("focus",this.endAnchorListener),xe.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(J){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusInitialElement(J)))})}focusFirstTabbableElementWhenReady(J){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusFirstTabbableElement(J)))})}focusLastTabbableElementWhenReady(J){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusLastTabbableElement(J)))})}_getRegionBoundary(J){const xe=this._element.querySelectorAll(`[cdk-focus-region-${J}], [cdkFocusRegion${J}], [cdk-focus-${J}]`);return"start"==J?xe.length?xe[0]:this._getFirstTabbableElement(this._element):xe.length?xe[xe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(J){const xe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(xe){if(!this._checker.isFocusable(xe)){const ce=this._getFirstTabbableElement(xe);return ce?.focus(J),!!ce}return xe.focus(J),!0}return this.focusFirstTabbableElement(J)}focusFirstTabbableElement(J){const xe=this._getRegionBoundary("start");return xe&&xe.focus(J),!!xe}focusLastTabbableElement(J){const xe=this._getRegionBoundary("end");return xe&&xe.focus(J),!!xe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const xe=J.children;for(let ce=0;ce<xe.length;ce++){const Se=xe[ce].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(xe[ce]):null;if(Se)return Se}return null}_getLastTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const xe=J.children;for(let ce=xe.length-1;ce>=0;ce--){const Se=xe[ce].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(xe[ce]):null;if(Se)return Se}return null}_createAnchor(){const J=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,J),J.classList.add("cdk-visually-hidden"),J.classList.add("cdk-focus-trap-anchor"),J.setAttribute("aria-hidden","true"),J}_toggleAnchorTabIndex(J,xe){J?xe.setAttribute("tabindex","0"):xe.removeAttribute("tabindex")}toggleAnchors(J){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}_executeOnStable(J){this._ngZone.isStable?J():this._ngZone.onStable.pipe((0,Ve.q)(1)).subscribe(J)}}let Ie=(()=>{var L;class J{constructor(ce,Se,at){this._checker=ce,this._ngZone=Se,this._document=at}create(ce,Se=!1){return new G(ce,this._checker,this._ngZone,this._document,Se)}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(jt),l.LFG(l.R0b),l.LFG(o.K0))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})(),pe=(()=>{var L;class J{get enabled(){return this.focusTrap.enabled}set enabled(ce){this.focusTrap.enabled=(0,X.Ig)(ce)}get autoCapture(){return this._autoCapture}set autoCapture(ce){this._autoCapture=(0,X.Ig)(ce)}constructor(ce,Se,at){this._elementRef=ce,this._focusTrapFactory=Se,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ce){const Se=ce.autoCapture;Se&&!Se.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,R.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.Y36(l.SBq),l.Y36(Ie),l.Y36(o.K0))},L.\u0275dir=l.lG2({type:L,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.TTD]}),J})();function Je(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}function pt(L){const J=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!J||-1!==J.identifier||null!=J.radiusX&&1!==J.radiusX||null!=J.radiusY&&1!==J.radiusY)}const vt=new l.OlP("cdk-input-modality-detector-options"),Re={ignoreKeys:[ue.zL,ue.jx,ue.b2,ue.MW,ue.JU]},P=(0,R.i$)({passive:!0,capture:!0});let ee=(()=>{var L;class J{get mostRecentModality(){return this._modality.value}constructor(ce,Se,at,de){this._platform=ce,this._mostRecentTarget=null,this._modality=new W.X(null),this._lastTouchMs=0,this._onKeydown=se=>{this._options?.ignoreKeys?.some(ot=>ot===se.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,R.sA)(se))},this._onMousedown=se=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Je(se)?"keyboard":"mouse"),this._mostRecentTarget=(0,R.sA)(se))},this._onTouchstart=se=>{pt(se)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,R.sA)(se))},this._options={...Re,...de},this.modalityDetected=this._modality.pipe(He(1)),this.modalityChanged=this.modalityDetected.pipe((0,tt.x)()),ce.isBrowser&&Se.runOutsideAngular(()=>{at.addEventListener("keydown",this._onKeydown,P),at.addEventListener("mousedown",this._onMousedown,P),at.addEventListener("touchstart",this._onTouchstart,P)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(vt,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();const Ae=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),St=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Et=0,Pt=(()=>{var L;class J{constructor(ce,Se,at,de){this._ngZone=Se,this._defaultOptions=de,this._document=at,this._liveElement=ce||this._createLiveElement()}announce(ce,...Se){const at=this._defaultOptions;let de,se;return 1===Se.length&&"number"==typeof Se[0]?se=Se[0]:[de,se]=Se,this.clear(),clearTimeout(this._previousTimeout),de||(de=at&&at.politeness?at.politeness:"polite"),null==se&&at&&(se=at.duration),this._liveElement.setAttribute("aria-live",de),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ot=>this._currentResolve=ot)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ce,"number"==typeof se&&(this._previousTimeout=setTimeout(()=>this.clear(),se)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ce="cdk-live-announcer-element",Se=this._document.getElementsByClassName(ce),at=this._document.createElement("div");for(let de=0;de<Se.length;de++)Se[de].remove();return at.classList.add(ce),at.classList.add("cdk-visually-hidden"),at.setAttribute("aria-atomic","true"),at.setAttribute("aria-live","polite"),at.id="cdk-live-announcer-"+Et++,this._document.body.appendChild(at),at}_exposeAnnouncerToModals(ce){const Se=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let at=0;at<Se.length;at++){const de=Se[at],se=de.getAttribute("aria-owns");se?-1===se.indexOf(ce)&&de.setAttribute("aria-owns",se+" "+ce):de.setAttribute("aria-owns",ce)}}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(Ae,8),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(St,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();const Yt=new l.OlP("cdk-focus-monitor-default-options"),cn=(0,R.i$)({passive:!0,capture:!0});let Oe=(()=>{var L;class J{constructor(ce,Se,at,de,se){this._ngZone=ce,this._platform=Se,this._inputModalityDetector=at,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 K.x,this._rootNodeFocusAndBlurListener=ot=>{for(let Ee=(0,R.sA)(ot);Ee;Ee=Ee.parentElement)"focus"===ot.type?this._onFocus(ot,Ee):this._onBlur(ot,Ee)},this._document=de,this._detectionMode=se?.detectionMode||0}monitor(ce,Se=!1){const at=(0,X.fI)(ce);if(!this._platform.isBrowser||1!==at.nodeType)return(0,re.of)();const de=(0,R.kV)(at)||this._getDocument(),se=this._elementInfo.get(at);if(se)return Se&&(se.checkChildren=!0),se.subject;const ot={checkChildren:Se,subject:new K.x,rootNode:de};return this._elementInfo.set(at,ot),this._registerGlobalListeners(ot),ot.subject}stopMonitoring(ce){const Se=(0,X.fI)(ce),at=this._elementInfo.get(Se);at&&(at.subject.complete(),this._setClasses(Se),this._elementInfo.delete(Se),this._removeGlobalListeners(at))}focusVia(ce,Se,at){const de=(0,X.fI)(ce);de===this._getDocument().activeElement?this._getClosestElementsInfo(de).forEach(([ot,le])=>this._originChanged(ot,Se,le)):(this._setOrigin(Se),"function"==typeof de.focus&&de.focus(at))}ngOnDestroy(){this._elementInfo.forEach((ce,Se)=>this.stopMonitoring(Se))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ce){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ce)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ce&&this._isLastInteractionFromInputLabel(ce)?"mouse":"program"}_shouldBeAttributedToTouch(ce){return 1===this._detectionMode||!!ce?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ce,Se){ce.classList.toggle("cdk-focused",!!Se),ce.classList.toggle("cdk-touch-focused","touch"===Se),ce.classList.toggle("cdk-keyboard-focused","keyboard"===Se),ce.classList.toggle("cdk-mouse-focused","mouse"===Se),ce.classList.toggle("cdk-program-focused","program"===Se)}_setOrigin(ce,Se=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ce,this._originFromTouchInteraction="touch"===ce&&Se,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ce,Se){const at=this._elementInfo.get(Se),de=(0,R.sA)(ce);!at||!at.checkChildren&&Se!==de||this._originChanged(Se,this._getFocusOrigin(de),at)}_onBlur(ce,Se){const at=this._elementInfo.get(Se);!at||at.checkChildren&&ce.relatedTarget instanceof Node&&Se.contains(ce.relatedTarget)||(this._setClasses(Se),this._emitOrigin(at,null))}_emitOrigin(ce,Se){ce.subject.observers.length&&this._ngZone.run(()=>ce.subject.next(Se))}_registerGlobalListeners(ce){if(!this._platform.isBrowser)return;const Se=ce.rootNode,at=this._rootNodeFocusListenerCount.get(Se)||0;at||this._ngZone.runOutsideAngular(()=>{Se.addEventListener("focus",this._rootNodeFocusAndBlurListener,cn),Se.addEventListener("blur",this._rootNodeFocusAndBlurListener,cn)}),this._rootNodeFocusListenerCount.set(Se,at+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,$e.R)(this._stopInputModalityDetector)).subscribe(de=>{this._setOrigin(de,!0)}))}_removeGlobalListeners(ce){const Se=ce.rootNode;if(this._rootNodeFocusListenerCount.has(Se)){const at=this._rootNodeFocusListenerCount.get(Se);at>1?this._rootNodeFocusListenerCount.set(Se,at-1):(Se.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cn),Se.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cn),this._rootNodeFocusListenerCount.delete(Se))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ce,Se,at){this._setClasses(ce,Se),this._emitOrigin(at,Se),this._lastFocusOrigin=Se}_getClosestElementsInfo(ce){const Se=[];return this._elementInfo.forEach((at,de)=>{(de===ce||at.checkChildren&&de.contains(ce))&&Se.push([de,at])}),Se}_isLastInteractionFromInputLabel(ce){const{_mostRecentTarget:Se,mostRecentModality:at}=this._inputModalityDetector;if("mouse"!==at||!Se||Se===ce||"INPUT"!==ce.nodeName&&"TEXTAREA"!==ce.nodeName||ce.disabled)return!1;const de=ce.labels;if(de)for(let se=0;se<de.length;se++)if(de[se].contains(Se))return!0;return!1}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(l.R0b),l.LFG(R.t4),l.LFG(ee),l.LFG(o.K0,8),l.LFG(Yt,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})(),z=(()=>{var L;class J{constructor(ce,Se){this._elementRef=ce,this._focusMonitor=Se,this._focusOrigin=null,this.cdkFocusChange=new l.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ce=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ce,1===ce.nodeType&&ce.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Se=>{this._focusOrigin=Se,this.cdkFocusChange.emit(Se)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.Y36(l.SBq),l.Y36(Oe))},L.\u0275dir=l.lG2({type:L,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),J})();const U="cdk-high-contrast-black-on-white",B="cdk-high-contrast-white-on-black",S="cdk-high-contrast-active";let H=(()=>{var L;class J{constructor(ce,Se){this._platform=ce,this._document=Se,this._breakpointSubscription=(0,l.f3M)(Bt).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ce=this._document.createElement("div");ce.style.backgroundColor="rgb(1,2,3)",ce.style.position="absolute",this._document.body.appendChild(ce);const Se=this._document.defaultView||window,at=Se&&Se.getComputedStyle?Se.getComputedStyle(ce):null,de=(at&&at.backgroundColor||"").replace(/ /g,"");switch(ce.remove(),de){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ce=this._document.body.classList;ce.remove(S,U,B),this._hasCheckedHighContrastMode=!0;const Se=this.getHighContrastMode();1===Se?ce.add(S,U):2===Se&&ce.add(S,B)}}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4),l.LFG(o.K0))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})(),j=(()=>{var L;class J{constructor(ce){ce._applyBodyHighContrastModeCssClasses()}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(H))},L.\u0275mod=l.oAB({type:L}),L.\u0275inj=l.cJS({imports:[Ye.Q8]}),J})()},9388:(wt,Pe,C)=>{C.d(Pe,{Is:()=>re,vT:()=>ie});var o=C(5879),l=C(6814);const R=new o.OlP("cdk-dir-doc",{providedIn:"root",factory:function K(){return(0,o.f3M)(l.K0)}}),Y=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let re=(()=>{var V;class Q{constructor(Ve){this.value="ltr",this.change=new o.vpe,Ve&&(this.value=function W(V){const Q=V?.toLowerCase()||"";return"auto"===Q&&typeof navigator<"u"&&navigator?.language?Y.test(navigator.language)?"rtl":"ltr":"rtl"===Q?"rtl":"ltr"}((Ve.body?Ve.body.dir:null)||(Ve.documentElement?Ve.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(V=Q).\u0275fac=function(Ve){return new(Ve||V)(o.LFG(R,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),Q})(),ie=(()=>{var V;class Q{}return(V=Q).\u0275fac=function(Ve){return new(Ve||V)},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({}),Q})()},2495:(wt,Pe,C)=>{C.d(Pe,{Eq:()=>Y,HM:()=>W,Ig:()=>l,du:()=>ue,fI:()=>re,su:()=>R});var o=C(5879);function l(ie){return null!=ie&&"false"!=`${ie}`}function R(ie,V=0){return function K(ie){return!isNaN(parseFloat(ie))&&!isNaN(Number(ie))}(ie)?Number(ie):V}function Y(ie){return Array.isArray(ie)?ie:[ie]}function W(ie){return null==ie?"":"string"==typeof ie?ie:`${ie}px`}function re(ie){return ie instanceof o.SBq?ie.nativeElement:ie}function ue(ie,V=/\s+/){const Q=[];if(null!=ie){const be=Array.isArray(ie)?ie:`${ie}`.split(V);for(const Ve of be){const He=`${Ve}`.trim();He&&Q.push(He)}}return Q}},6028:(wt,Pe,C)=>{C.d(Pe,{A:()=>De,JH:()=>Ne,JU:()=>W,K5:()=>Y,Ku:()=>Ve,LH:()=>Ye,L_:()=>be,MW:()=>Ke,Mf:()=>R,SV:()=>ut,Sd:()=>$e,VM:()=>He,Vb:()=>ui,Z:()=>Te,ZH:()=>l,aO:()=>Cn,b2:()=>dr,hY:()=>Q,jx:()=>re,oh:()=>X,uR:()=>tt,xE:()=>rt,zL:()=>ue});const l=8,R=9,Y=13,W=16,re=17,ue=18,Q=27,be=32,Ve=33,He=34,tt=35,$e=36,X=37,Ye=38,ut=39,Ne=40,rt=48,Cn=57,De=65,Te=90,Ke=91,dr=224;function ui(Gr,...hr){return hr.length?hr.some(di=>Gr[di]):Gr.altKey||Gr.shiftKey||Gr.ctrlKey||Gr.metaKey}},7131:(wt,Pe,C)=>{C.d(Pe,{Q8:()=>Y});var o=C(5879);let l=(()=>{var W;class re{create(ie){return typeof MutationObserver>"u"?null:new MutationObserver(ie)}}return(W=re).\u0275fac=function(ie){return new(ie||W)},W.\u0275prov=o.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),re})(),Y=(()=>{var W;class re{}return(W=re).\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=o.oAB({type:W}),W.\u0275inj=o.cJS({providers:[l]}),re})()},3651:(wt,Pe,C)=>{C.d(Pe,{pI:()=>zt,xu:()=>Sn,_G:()=>Me,aV:()=>rn,X_:()=>ft,Xj:()=>Ge,U8:()=>Hn,Iu:()=>Xe});var o=C(6672),l=C(6814),R=C(5879),K=C(2495),Y=C(2831),W=C(2181),re=C(8180),ue=C(9773),ie=C(9360),V=C(8251),be=C(9388),Ve=C(8484),He=C(8645),tt=C(7394),$e=C(3019),X=C(6028);const Ye=(0,Y.Mq)();class ut{constructor(G,Ie){this._viewportRuler=G,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ie}attach(){}enable(){if(this._canBeEnabled()){const G=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=G.style.left||"",this._previousHTMLStyles.top=G.style.top||"",G.style.left=(0,K.HM)(-this._previousScrollPosition.left),G.style.top=(0,K.HM)(-this._previousScrollPosition.top),G.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const G=this._document.documentElement,pe=G.style,nt=this._document.body.style,Te=pe.scrollBehavior||"",Ke=nt.scrollBehavior||"";this._isEnabled=!1,pe.left=this._previousHTMLStyles.left,pe.top=this._previousHTMLStyles.top,G.classList.remove("cdk-global-scrollblock"),Ye&&(pe.scrollBehavior=nt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ye&&(pe.scrollBehavior=Te,nt.scrollBehavior=Ke)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ie=this._document.body,pe=this._viewportRuler.getViewportSize();return Ie.scrollHeight>pe.height||Ie.scrollWidth>pe.width}}class q{constructor(G,Ie,pe,nt){this._scrollDispatcher=G,this._ngZone=Ie,this._viewportRuler=pe,this._config=nt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(G){this._overlayRef=G}enable(){if(this._scrollSubscription)return;const G=this._scrollDispatcher.scrolled(0).pipe((0,W.h)(Ie=>!Ie||!this._overlayRef.overlayElement.contains(Ie.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=G.subscribe(()=>{const Ie=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ie-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=G.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function ve(ze,G){return G.some(Ie=>ze.bottom<Ie.top||ze.top>Ie.bottom||ze.right<Ie.left||ze.left>Ie.right)}function ye(ze,G){return G.some(Ie=>ze.top<Ie.top||ze.bottom>Ie.bottom||ze.left<Ie.left||ze.right>Ie.right)}class rt{constructor(G,Ie,pe,nt){this._scrollDispatcher=G,this._viewportRuler=Ie,this._ngZone=pe,this._config=nt,this._scrollSubscription=null}attach(G){this._overlayRef=G}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 Ie=this._overlayRef.overlayElement.getBoundingClientRect(),{width:pe,height:nt}=this._viewportRuler.getViewportSize();ve(Ie,[{width:pe,height:nt,bottom:nt,right:pe,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 Qe=(()=>{var ze;class G{constructor(pe,nt,Te,Ke){this._scrollDispatcher=pe,this._viewportRuler=nt,this._ngZone=Te,this.noop=()=>new me,this.close=dt=>new q(this._scrollDispatcher,this._ngZone,this._viewportRuler,dt),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=dt=>new rt(this._scrollDispatcher,this._viewportRuler,this._ngZone,dt),this._document=Ke}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(o.mF),R.LFG(o.rL),R.LFG(R.R0b),R.LFG(l.K0))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})();class ft{constructor(G){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,G){const Ie=Object.keys(G);for(const pe of Ie)void 0!==G[pe]&&(this[pe]=G[pe])}}}class Rt{constructor(G,Ie){this.connectionPair=G,this.scrollableViewProperties=Ie}}let sn=(()=>{var ze;class G{constructor(pe){this._attachedOverlays=[],this._document=pe}ngOnDestroy(){this.detach()}add(pe){this.remove(pe),this._attachedOverlays.push(pe)}remove(pe){const nt=this._attachedOverlays.indexOf(pe);nt>-1&&this._attachedOverlays.splice(nt,1),0===this._attachedOverlays.length&&this.detach()}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),Cn=(()=>{var ze;class G extends sn{constructor(pe,nt){super(pe),this._ngZone=nt,this._keydownListener=Te=>{const Ke=this._attachedOverlays;for(let dt=Ke.length-1;dt>-1;dt--)if(Ke[dt]._keydownEvents.observers.length>0){const je=Ke[dt]._keydownEvents;this._ngZone?this._ngZone.run(()=>je.next(Te)):je.next(Te);break}}}add(pe){super.add(pe),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(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0),R.LFG(R.R0b,8))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),wn=(()=>{var ze;class G extends sn{constructor(pe,nt,Te){super(pe),this._platform=nt,this._ngZone=Te,this._cursorStyleIsSet=!1,this._pointerDownListener=Ke=>{this._pointerDownEventTarget=(0,Y.sA)(Ke)},this._clickListener=Ke=>{const dt=(0,Y.sA)(Ke),je="click"===Ke.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:dt;this._pointerDownEventTarget=null;const Je=this._attachedOverlays.slice();for(let pt=Je.length-1;pt>-1;pt--){const vt=Je[pt];if(vt._outsidePointerEvents.observers.length<1||!vt.hasAttached())continue;if(vt.overlayElement.contains(dt)||vt.overlayElement.contains(je))break;const Re=vt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Re.next(Ke)):Re.next(Ke)}}}add(pe){if(super.add(pe),!this._isAttached){const nt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(nt)):this._addEventListeners(nt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=nt.style.cursor,nt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const pe=this._document.body;pe.removeEventListener("pointerdown",this._pointerDownListener,!0),pe.removeEventListener("click",this._clickListener,!0),pe.removeEventListener("auxclick",this._clickListener,!0),pe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(pe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(pe){pe.addEventListener("pointerdown",this._pointerDownListener,!0),pe.addEventListener("click",this._clickListener,!0),pe.addEventListener("auxclick",this._clickListener,!0),pe.addEventListener("contextmenu",this._clickListener,!0)}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0),R.LFG(Y.t4),R.LFG(R.R0b,8))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),Ge=(()=>{var ze;class G{constructor(pe,nt){this._platform=nt,this._document=pe}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const pe="cdk-overlay-container";if(this._platform.isBrowser||(0,Y.Oy)()){const Te=this._document.querySelectorAll(`.${pe}[platform="server"], .${pe}[platform="test"]`);for(let Ke=0;Ke<Te.length;Ke++)Te[Ke].remove()}const nt=this._document.createElement("div");nt.classList.add(pe),(0,Y.Oy)()?nt.setAttribute("platform","test"):this._platform.isBrowser||nt.setAttribute("platform","server"),this._document.body.appendChild(nt),this._containerElement=nt}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0),R.LFG(Y.t4))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})();class Xe{constructor(G,Ie,pe,nt,Te,Ke,dt,je,Je,pt=!1){this._portalOutlet=G,this._host=Ie,this._pane=pe,this._config=nt,this._ngZone=Te,this._keyboardDispatcher=Ke,this._document=dt,this._location=je,this._outsideClickDispatcher=Je,this._animationsDisabled=pt,this._backdropElement=null,this._backdropClick=new He.x,this._attachments=new He.x,this._detachments=new He.x,this._locationChanges=tt.w0.EMPTY,this._backdropClickHandler=vt=>this._backdropClick.next(vt),this._backdropTransitionendHandler=vt=>{this._disposeBackdrop(vt.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,nt.scrollStrategy&&(this._scrollStrategy=nt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=nt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(G){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ie=this._portalOutlet.attach(G);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,re.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 Ie?.onDestroy&&Ie.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ie}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const G=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),G}dispose(){const G=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,G&&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(G){G!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=G,this.hasAttached()&&(G.attach(this),this.updatePosition()))}updateSize(G){this._config={...this._config,...G},this._updateElementSize()}setDirection(G){this._config={...this._config,direction:G},this._updateElementDirection()}addPanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!0)}removePanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!1)}getDirection(){const G=this._config.direction;return G?"string"==typeof G?G:G.value:"ltr"}updateScrollStrategy(G){G!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=G,this.hasAttached()&&(G.attach(this),G.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const G=this._pane.style;G.width=(0,K.HM)(this._config.width),G.height=(0,K.HM)(this._config.height),G.minWidth=(0,K.HM)(this._config.minWidth),G.minHeight=(0,K.HM)(this._config.minHeight),G.maxWidth=(0,K.HM)(this._config.maxWidth),G.maxHeight=(0,K.HM)(this._config.maxHeight)}_togglePointerEvents(G){this._pane.style.pointerEvents=G?"":"none"}_attachBackdrop(){const G="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(G)})}):this._backdropElement.classList.add(G)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const G=this._backdropElement;if(G){if(this._animationsDisabled)return void this._disposeBackdrop(G);G.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{G.addEventListener("transitionend",this._backdropTransitionendHandler)}),G.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(G)},500))}}_toggleClasses(G,Ie,pe){const nt=(0,K.Eq)(Ie||[]).filter(Te=>!!Te);nt.length&&(pe?G.classList.add(...nt):G.classList.remove(...nt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const G=this._ngZone.onStable.pipe((0,ue.R)((0,$e.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()),G.unsubscribe())})})}_disposeScrollStrategy(){const G=this._scrollStrategy;G&&(G.disable(),G.detach&&G.detach())}_disposeBackdrop(G){G&&(G.removeEventListener("click",this._backdropClickHandler),G.removeEventListener("transitionend",this._backdropTransitionendHandler),G.remove(),this._backdropElement===G&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Ze="cdk-overlay-connected-position-bounding-box",De=/([A-Za-z%]+)$/;class Me{get positions(){return this._preferredPositions}constructor(G,Ie,pe,nt,Te){this._viewportRuler=Ie,this._document=pe,this._platform=nt,this._overlayContainer=Te,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 He.x,this._resizeSubscription=tt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(G)}attach(G){this._validatePositions(),G.hostElement.classList.add(Ze),this._overlayRef=G,this._boundingBox=G.hostElement,this._pane=G.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 G=this._originRect,Ie=this._overlayRect,pe=this._viewportRect,nt=this._containerRect,Te=[];let Ke;for(let dt of this._preferredPositions){let je=this._getOriginPoint(G,nt,dt),Je=this._getOverlayPoint(je,Ie,dt),pt=this._getOverlayFit(Je,Ie,pe,dt);if(pt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(dt,je);this._canFitWithFlexibleDimensions(pt,Je,pe)?Te.push({position:dt,origin:je,overlayRect:Ie,boundingBoxRect:this._calculateBoundingBoxRect(je,dt)}):(!Ke||Ke.overlayFit.visibleArea<pt.visibleArea)&&(Ke={overlayFit:pt,overlayPoint:Je,originPoint:je,position:dt,overlayRect:Ie})}if(Te.length){let dt=null,je=-1;for(const Je of Te){const pt=Je.boundingBoxRect.width*Je.boundingBoxRect.height*(Je.position.weight||1);pt>je&&(je=pt,dt=Je)}return this._isPushed=!1,void this._applyPosition(dt.position,dt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ke.position,Ke.originPoint);this._applyPosition(Ke.position,Ke.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ce(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ze),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const G=this._lastPosition;if(G){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ie=this._getOriginPoint(this._originRect,this._containerRect,G);this._applyPosition(G,Ie)}else this.apply()}withScrollableContainers(G){return this._scrollables=G,this}withPositions(G){return this._preferredPositions=G,-1===G.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(G){return this._viewportMargin=G,this}withFlexibleDimensions(G=!0){return this._hasFlexibleDimensions=G,this}withGrowAfterOpen(G=!0){return this._growAfterOpen=G,this}withPush(G=!0){return this._canPush=G,this}withLockedPosition(G=!0){return this._positionLocked=G,this}setOrigin(G){return this._origin=G,this}withDefaultOffsetX(G){return this._offsetX=G,this}withDefaultOffsetY(G){return this._offsetY=G,this}withTransformOriginOn(G){return this._transformOriginSelector=G,this}_getOriginPoint(G,Ie,pe){let nt,Te;if("center"==pe.originX)nt=G.left+G.width/2;else{const Ke=this._isRtl()?G.right:G.left,dt=this._isRtl()?G.left:G.right;nt="start"==pe.originX?Ke:dt}return Ie.left<0&&(nt-=Ie.left),Te="center"==pe.originY?G.top+G.height/2:"top"==pe.originY?G.top:G.bottom,Ie.top<0&&(Te-=Ie.top),{x:nt,y:Te}}_getOverlayPoint(G,Ie,pe){let nt,Te;return nt="center"==pe.overlayX?-Ie.width/2:"start"===pe.overlayX?this._isRtl()?-Ie.width:0:this._isRtl()?0:-Ie.width,Te="center"==pe.overlayY?-Ie.height/2:"top"==pe.overlayY?0:-Ie.height,{x:G.x+nt,y:G.y+Te}}_getOverlayFit(G,Ie,pe,nt){const Te=Fe(Ie);let{x:Ke,y:dt}=G,je=this._getOffset(nt,"x"),Je=this._getOffset(nt,"y");je&&(Ke+=je),Je&&(dt+=Je);let Re=0-dt,y=dt+Te.height-pe.height,P=this._subtractOverflows(Te.width,0-Ke,Ke+Te.width-pe.width),ee=this._subtractOverflows(Te.height,Re,y),Ae=P*ee;return{visibleArea:Ae,isCompletelyWithinViewport:Te.width*Te.height===Ae,fitsInViewportVertically:ee===Te.height,fitsInViewportHorizontally:P==Te.width}}_canFitWithFlexibleDimensions(G,Ie,pe){if(this._hasFlexibleDimensions){const nt=pe.bottom-Ie.y,Te=pe.right-Ie.x,Ke=Be(this._overlayRef.getConfig().minHeight),dt=Be(this._overlayRef.getConfig().minWidth);return(G.fitsInViewportVertically||null!=Ke&&Ke<=nt)&&(G.fitsInViewportHorizontally||null!=dt&&dt<=Te)}return!1}_pushOverlayOnScreen(G,Ie,pe){if(this._previousPushAmount&&this._positionLocked)return{x:G.x+this._previousPushAmount.x,y:G.y+this._previousPushAmount.y};const nt=Fe(Ie),Te=this._viewportRect,Ke=Math.max(G.x+nt.width-Te.width,0),dt=Math.max(G.y+nt.height-Te.height,0),je=Math.max(Te.top-pe.top-G.y,0),Je=Math.max(Te.left-pe.left-G.x,0);let pt=0,vt=0;return pt=nt.width<=Te.width?Je||-Ke:G.x<this._viewportMargin?Te.left-pe.left-G.x:0,vt=nt.height<=Te.height?je||-dt:G.y<this._viewportMargin?Te.top-pe.top-G.y:0,this._previousPushAmount={x:pt,y:vt},{x:G.x+pt,y:G.y+vt}}_applyPosition(G,Ie){if(this._setTransformOrigin(G),this._setOverlayElementStyles(Ie,G),this._setBoundingBoxStyles(Ie,G),G.panelClass&&this._addPanelClasses(G.panelClass),this._lastPosition=G,this._positionChanges.observers.length){const pe=this._getScrollVisibility(),nt=new Rt(G,pe);this._positionChanges.next(nt)}this._isInitialRender=!1}_setTransformOrigin(G){if(!this._transformOriginSelector)return;const Ie=this._boundingBox.querySelectorAll(this._transformOriginSelector);let pe,nt=G.overlayY;pe="center"===G.overlayX?"center":this._isRtl()?"start"===G.overlayX?"right":"left":"start"===G.overlayX?"left":"right";for(let Te=0;Te<Ie.length;Te++)Ie[Te].style.transformOrigin=`${pe} ${nt}`}_calculateBoundingBoxRect(G,Ie){const pe=this._viewportRect,nt=this._isRtl();let Te,Ke,dt,pt,vt,Re;if("top"===Ie.overlayY)Ke=G.y,Te=pe.height-Ke+this._viewportMargin;else if("bottom"===Ie.overlayY)dt=pe.height-G.y+2*this._viewportMargin,Te=pe.height-dt+this._viewportMargin;else{const y=Math.min(pe.bottom-G.y+pe.top,G.y),P=this._lastBoundingBoxSize.height;Te=2*y,Ke=G.y-y,Te>P&&!this._isInitialRender&&!this._growAfterOpen&&(Ke=G.y-P/2)}if("end"===Ie.overlayX&&!nt||"start"===Ie.overlayX&&nt)Re=pe.width-G.x+this._viewportMargin,pt=G.x-this._viewportMargin;else if("start"===Ie.overlayX&&!nt||"end"===Ie.overlayX&&nt)vt=G.x,pt=pe.right-G.x;else{const y=Math.min(pe.right-G.x+pe.left,G.x),P=this._lastBoundingBoxSize.width;pt=2*y,vt=G.x-y,pt>P&&!this._isInitialRender&&!this._growAfterOpen&&(vt=G.x-P/2)}return{top:Ke,left:vt,bottom:dt,right:Re,width:pt,height:Te}}_setBoundingBoxStyles(G,Ie){const pe=this._calculateBoundingBoxRect(G,Ie);!this._isInitialRender&&!this._growAfterOpen&&(pe.height=Math.min(pe.height,this._lastBoundingBoxSize.height),pe.width=Math.min(pe.width,this._lastBoundingBoxSize.width));const nt={};if(this._hasExactPosition())nt.top=nt.left="0",nt.bottom=nt.right=nt.maxHeight=nt.maxWidth="",nt.width=nt.height="100%";else{const Te=this._overlayRef.getConfig().maxHeight,Ke=this._overlayRef.getConfig().maxWidth;nt.height=(0,K.HM)(pe.height),nt.top=(0,K.HM)(pe.top),nt.bottom=(0,K.HM)(pe.bottom),nt.width=(0,K.HM)(pe.width),nt.left=(0,K.HM)(pe.left),nt.right=(0,K.HM)(pe.right),nt.alignItems="center"===Ie.overlayX?"center":"end"===Ie.overlayX?"flex-end":"flex-start",nt.justifyContent="center"===Ie.overlayY?"center":"bottom"===Ie.overlayY?"flex-end":"flex-start",Te&&(nt.maxHeight=(0,K.HM)(Te)),Ke&&(nt.maxWidth=(0,K.HM)(Ke))}this._lastBoundingBoxSize=pe,Ce(this._boundingBox.style,nt)}_resetBoundingBoxStyles(){Ce(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ce(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(G,Ie){const pe={},nt=this._hasExactPosition(),Te=this._hasFlexibleDimensions,Ke=this._overlayRef.getConfig();if(nt){const pt=this._viewportRuler.getViewportScrollPosition();Ce(pe,this._getExactOverlayY(Ie,G,pt)),Ce(pe,this._getExactOverlayX(Ie,G,pt))}else pe.position="static";let dt="",je=this._getOffset(Ie,"x"),Je=this._getOffset(Ie,"y");je&&(dt+=`translateX(${je}px) `),Je&&(dt+=`translateY(${Je}px)`),pe.transform=dt.trim(),Ke.maxHeight&&(nt?pe.maxHeight=(0,K.HM)(Ke.maxHeight):Te&&(pe.maxHeight="")),Ke.maxWidth&&(nt?pe.maxWidth=(0,K.HM)(Ke.maxWidth):Te&&(pe.maxWidth="")),Ce(this._pane.style,pe)}_getExactOverlayY(G,Ie,pe){let nt={top:"",bottom:""},Te=this._getOverlayPoint(Ie,this._overlayRect,G);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,pe)),"bottom"===G.overlayY?nt.bottom=this._document.documentElement.clientHeight-(Te.y+this._overlayRect.height)+"px":nt.top=(0,K.HM)(Te.y),nt}_getExactOverlayX(G,Ie,pe){let Ke,nt={left:"",right:""},Te=this._getOverlayPoint(Ie,this._overlayRect,G);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,pe)),Ke=this._isRtl()?"end"===G.overlayX?"left":"right":"end"===G.overlayX?"right":"left","right"===Ke?nt.right=this._document.documentElement.clientWidth-(Te.x+this._overlayRect.width)+"px":nt.left=(0,K.HM)(Te.x),nt}_getScrollVisibility(){const G=this._getOriginRect(),Ie=this._pane.getBoundingClientRect(),pe=this._scrollables.map(nt=>nt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ye(G,pe),isOriginOutsideView:ve(G,pe),isOverlayClipped:ye(Ie,pe),isOverlayOutsideView:ve(Ie,pe)}}_subtractOverflows(G,...Ie){return Ie.reduce((pe,nt)=>pe-Math.max(nt,0),G)}_getNarrowedViewportRect(){const G=this._document.documentElement.clientWidth,Ie=this._document.documentElement.clientHeight,pe=this._viewportRuler.getViewportScrollPosition();return{top:pe.top+this._viewportMargin,left:pe.left+this._viewportMargin,right:pe.left+G-this._viewportMargin,bottom:pe.top+Ie-this._viewportMargin,width:G-2*this._viewportMargin,height:Ie-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(G,Ie){return"x"===Ie?null==G.offsetX?this._offsetX:G.offsetX:null==G.offsetY?this._offsetY:G.offsetY}_validatePositions(){}_addPanelClasses(G){this._pane&&(0,K.Eq)(G).forEach(Ie=>{""!==Ie&&-1===this._appliedPanelClasses.indexOf(Ie)&&(this._appliedPanelClasses.push(Ie),this._pane.classList.add(Ie))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(G=>{this._pane.classList.remove(G)}),this._appliedPanelClasses=[])}_getOriginRect(){const G=this._origin;if(G instanceof R.SBq)return G.nativeElement.getBoundingClientRect();if(G instanceof Element)return G.getBoundingClientRect();const Ie=G.width||0,pe=G.height||0;return{top:G.y,bottom:G.y+pe,left:G.x,right:G.x+Ie,height:pe,width:Ie}}}function Ce(ze,G){for(let Ie in G)G.hasOwnProperty(Ie)&&(ze[Ie]=G[Ie]);return ze}function Be(ze){if("number"!=typeof ze&&null!=ze){const[G,Ie]=ze.split(De);return Ie&&"px"!==Ie?null:parseFloat(G)}return ze||null}function Fe(ze){return{top:Math.floor(ze.top),right:Math.floor(ze.right),bottom:Math.floor(ze.bottom),left:Math.floor(ze.left),width:Math.floor(ze.width),height:Math.floor(ze.height)}}const Nt="cdk-global-overlay-wrapper";class jt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(G){const Ie=G.getConfig();this._overlayRef=G,this._width&&!Ie.width&&G.updateSize({width:this._width}),this._height&&!Ie.height&&G.updateSize({height:this._height}),G.hostElement.classList.add(Nt),this._isDisposed=!1}top(G=""){return this._bottomOffset="",this._topOffset=G,this._alignItems="flex-start",this}left(G=""){return this._xOffset=G,this._xPosition="left",this}bottom(G=""){return this._topOffset="",this._bottomOffset=G,this._alignItems="flex-end",this}right(G=""){return this._xOffset=G,this._xPosition="right",this}start(G=""){return this._xOffset=G,this._xPosition="start",this}end(G=""){return this._xOffset=G,this._xPosition="end",this}width(G=""){return this._overlayRef?this._overlayRef.updateSize({width:G}):this._width=G,this}height(G=""){return this._overlayRef?this._overlayRef.updateSize({height:G}):this._height=G,this}centerHorizontally(G=""){return this.left(G),this._xPosition="center",this}centerVertically(G=""){return this.top(G),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const G=this._overlayRef.overlayElement.style,Ie=this._overlayRef.hostElement.style,pe=this._overlayRef.getConfig(),{width:nt,height:Te,maxWidth:Ke,maxHeight:dt}=pe,je=!("100%"!==nt&&"100vw"!==nt||Ke&&"100%"!==Ke&&"100vw"!==Ke),Je=!("100%"!==Te&&"100vh"!==Te||dt&&"100%"!==dt&&"100vh"!==dt),pt=this._xPosition,vt=this._xOffset,Re="rtl"===this._overlayRef.getConfig().direction;let y="",P="",ee="";je?ee="flex-start":"center"===pt?(ee="center",Re?P=vt:y=vt):Re?"left"===pt||"end"===pt?(ee="flex-end",y=vt):("right"===pt||"start"===pt)&&(ee="flex-start",P=vt):"left"===pt||"start"===pt?(ee="flex-start",y=vt):("right"===pt||"end"===pt)&&(ee="flex-end",P=vt),G.position=this._cssPosition,G.marginLeft=je?"0":y,G.marginTop=Je?"0":this._topOffset,G.marginBottom=this._bottomOffset,G.marginRight=je?"0":P,Ie.justifyContent=ee,Ie.alignItems=Je?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const G=this._overlayRef.overlayElement.style,Ie=this._overlayRef.hostElement,pe=Ie.style;Ie.classList.remove(Nt),pe.justifyContent=pe.alignItems=G.marginTop=G.marginBottom=G.marginLeft=G.marginRight=G.position="",this._overlayRef=null,this._isDisposed=!0}}let Kt=(()=>{var ze;class G{constructor(pe,nt,Te,Ke){this._viewportRuler=pe,this._document=nt,this._platform=Te,this._overlayContainer=Ke}global(){return new jt}flexibleConnectedTo(pe){return new Me(pe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(o.rL),R.LFG(l.K0),R.LFG(Y.t4),R.LFG(Ge))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),nn=0,rn=(()=>{var ze;class G{constructor(pe,nt,Te,Ke,dt,je,Je,pt,vt,Re,y,P){this.scrollStrategies=pe,this._overlayContainer=nt,this._componentFactoryResolver=Te,this._positionBuilder=Ke,this._keyboardDispatcher=dt,this._injector=je,this._ngZone=Je,this._document=pt,this._directionality=vt,this._location=Re,this._outsideClickDispatcher=y,this._animationsModuleType=P}create(pe){const nt=this._createHostElement(),Te=this._createPaneElement(nt),Ke=this._createPortalOutlet(Te),dt=new ft(pe);return dt.direction=dt.direction||this._directionality.value,new Xe(Ke,nt,Te,dt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(pe){const nt=this._document.createElement("div");return nt.id="cdk-overlay-"+nn++,nt.classList.add("cdk-overlay-pane"),pe.appendChild(nt),nt}_createHostElement(){const pe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(pe),pe}_createPortalOutlet(pe){return this._appRef||(this._appRef=this._injector.get(R.z2F)),new Ve.u0(pe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(Qe),R.LFG(Ge),R.LFG(R._Vd),R.LFG(Kt),R.LFG(Cn),R.LFG(R.zs3),R.LFG(R.R0b),R.LFG(l.K0),R.LFG(be.Is),R.LFG(l.Ye),R.LFG(wn),R.LFG(R.QbO,8))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})();const Xt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],an=new R.OlP("cdk-connected-overlay-scroll-strategy");let Sn=(()=>{var ze;class G{constructor(pe){this.elementRef=pe}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.Y36(R.SBq))},ze.\u0275dir=R.lG2({type:ze,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),G})(),zt=(()=>{var ze;class G{get offsetX(){return this._offsetX}set offsetX(pe){this._offsetX=pe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(pe){this._offsetY=pe,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(pe){this._hasBackdrop=(0,K.Ig)(pe)}get lockPosition(){return this._lockPosition}set lockPosition(pe){this._lockPosition=(0,K.Ig)(pe)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(pe){this._flexibleDimensions=(0,K.Ig)(pe)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(pe){this._growAfterOpen=(0,K.Ig)(pe)}get push(){return this._push}set push(pe){this._push=(0,K.Ig)(pe)}constructor(pe,nt,Te,Ke,dt){this._overlay=pe,this._dir=dt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=tt.w0.EMPTY,this._attachSubscription=tt.w0.EMPTY,this._detachSubscription=tt.w0.EMPTY,this._positionSubscription=tt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new R.vpe,this.positionChange=new R.vpe,this.attach=new R.vpe,this.detach=new R.vpe,this.overlayKeydown=new R.vpe,this.overlayOutsideClick=new R.vpe,this._templatePortal=new Ve.UE(nt,Te),this._scrollStrategyFactory=Ke,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(pe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),pe.origin&&this.open&&this._position.apply()),pe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Xt);const pe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=pe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=pe.detachments().subscribe(()=>this.detach.emit()),pe.keydownEvents().subscribe(nt=>{this.overlayKeydown.next(nt),nt.keyCode===X.hY&&!this.disableClose&&!(0,X.Vb)(nt)&&(nt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(nt=>{this.overlayOutsideClick.next(nt)})}_buildConfig(){const pe=this._position=this.positionStrategy||this._createPositionStrategy(),nt=new ft({direction:this._dir,positionStrategy:pe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(nt.width=this.width),(this.height||0===this.height)&&(nt.height=this.height),(this.minWidth||0===this.minWidth)&&(nt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(nt.minHeight=this.minHeight),this.backdropClass&&(nt.backdropClass=this.backdropClass),this.panelClass&&(nt.panelClass=this.panelClass),nt}_updatePositionStrategy(pe){const nt=this.positions.map(Te=>({originX:Te.originX,originY:Te.originY,overlayX:Te.overlayX,overlayY:Te.overlayY,offsetX:Te.offsetX||this.offsetX,offsetY:Te.offsetY||this.offsetY,panelClass:Te.panelClass||void 0}));return pe.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(nt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const pe=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(pe),pe}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Sn?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(pe=>{this.backdropClick.emit(pe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Q(ze,G=!1){return(0,ie.e)((Ie,pe)=>{let nt=0;Ie.subscribe((0,V.x)(pe,Te=>{const Ke=ze(Te,nt++);(Ke||G)&&pe.next(Te),!Ke&&pe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(pe=>{this.positionChange.emit(pe),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.Y36(rn),R.Y36(R.Rgc),R.Y36(R.s_b),R.Y36(an),R.Y36(be.Is,8))},ze.\u0275dir=R.lG2({type:ze,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[R.TTD]}),G})();const xn={provide:an,deps:[rn],useFactory:function Vn(ze){return()=>ze.scrollStrategies.reposition()}};let Hn=(()=>{var ze;class G{}return(ze=G).\u0275fac=function(pe){return new(pe||ze)},ze.\u0275mod=R.oAB({type:ze}),ze.\u0275inj=R.cJS({providers:[rn,xn],imports:[be.vT,Ve.eL,o.Cl,o.Cl]}),G})()},2831:(wt,Pe,C)=>{C.d(Pe,{Mq:()=>He,Oy:()=>q,ht:()=>ut,i$:()=>Q,kV:()=>Ye,qK:()=>ue,sA:()=>Ne,t4:()=>K});var o=C(5879),l=C(6814);let R;try{R=typeof Intl<"u"&&Intl.v8BreakIterator}catch{R=!1}let W,K=(()=>{var me;class ve{constructor(rt){this._platformId=rt,this.isBrowser=this._platformId?(0,l.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(me=ve).\u0275fac=function(rt){return new(rt||me)(o.LFG(o.Lbi))},me.\u0275prov=o.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),ve})();const re=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ue(){if(W)return W;if("object"!=typeof document||!document)return W=new Set(re),W;let me=document.createElement("input");return W=new Set(re.filter(ve=>(me.setAttribute("type",ve),me.type===ve))),W}let ie,Ve,$e;function Q(me){return function V(){if(null==ie&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ie=!0}))}finally{ie=ie||!1}return ie}()?me:!!me.capture}function He(){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 me=Element.prototype.scrollTo;Ve=!!me&&!/\{\s*\[native code\]\s*\}/.test(me.toString())}}return Ve}function Ye(me){if(function X(){if(null==$e){const me=typeof document<"u"?document.head:null;$e=!(!me||!me.createShadowRoot&&!me.attachShadow)}return $e}()){const ve=me.getRootNode?me.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ve instanceof ShadowRoot)return ve}return null}function ut(){let me=typeof document<"u"&&document?document.activeElement:null;for(;me&&me.shadowRoot;){const ve=me.shadowRoot.activeElement;if(ve===me)break;me=ve}return me}function Ne(me){return me.composedPath?me.composedPath()[0]:me.target}function q(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(wt,Pe,C)=>{C.d(Pe,{C5:()=>V,Pl:()=>ut,UE:()=>Q,eL:()=>q,en:()=>Ve,u0:()=>tt});var o=C(5879),l=C(6814);class ie{attach(ye){return this._attachedHost=ye,ye.attach(this)}detach(){let ye=this._attachedHost;null!=ye&&(this._attachedHost=null,ye.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ye){this._attachedHost=ye}}class V extends ie{constructor(ye,rt,Qe,ft,xt){super(),this.component=ye,this.viewContainerRef=rt,this.injector=Qe,this.componentFactoryResolver=ft,this.projectableNodes=xt}}class Q extends ie{constructor(ye,rt,Qe,ft){super(),this.templateRef=ye,this.viewContainerRef=rt,this.context=Qe,this.injector=ft}get origin(){return this.templateRef.elementRef}attach(ye,rt=this.context){return this.context=rt,super.attach(ye)}detach(){return this.context=void 0,super.detach()}}class be extends ie{constructor(ye){super(),this.element=ye instanceof o.SBq?ye.nativeElement:ye}}class Ve{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ye){return ye instanceof V?(this._attachedPortal=ye,this.attachComponentPortal(ye)):ye instanceof Q?(this._attachedPortal=ye,this.attachTemplatePortal(ye)):this.attachDomPortal&&ye instanceof be?(this._attachedPortal=ye,this.attachDomPortal(ye)):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(ye){this._disposeFn=ye}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tt extends Ve{constructor(ye,rt,Qe,ft,xt){super(),this.outletElement=ye,this._componentFactoryResolver=rt,this._appRef=Qe,this._defaultInjector=ft,this.attachDomPortal=Bt=>{const Rt=Bt.element,Qt=this._document.createComment("dom-portal");Rt.parentNode.insertBefore(Qt,Rt),this.outletElement.appendChild(Rt),this._attachedPortal=Bt,super.setDisposeFn(()=>{Qt.parentNode&&Qt.parentNode.replaceChild(Rt,Qt)})},this._document=xt}attachComponentPortal(ye){const Qe=(ye.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ye.component);let ft;return ye.viewContainerRef?(ft=ye.viewContainerRef.createComponent(Qe,ye.viewContainerRef.length,ye.injector||ye.viewContainerRef.injector,ye.projectableNodes||void 0),this.setDisposeFn(()=>ft.destroy())):(ft=Qe.create(ye.injector||this._defaultInjector||o.zs3.NULL),this._appRef.attachView(ft.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ft.hostView),ft.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ft)),this._attachedPortal=ye,ft}attachTemplatePortal(ye){let rt=ye.viewContainerRef,Qe=rt.createEmbeddedView(ye.templateRef,ye.context,{injector:ye.injector});return Qe.rootNodes.forEach(ft=>this.outletElement.appendChild(ft)),Qe.detectChanges(),this.setDisposeFn(()=>{let ft=rt.indexOf(Qe);-1!==ft&&rt.remove(ft)}),this._attachedPortal=ye,Qe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ye){return ye.hostView.rootNodes[0]}}let ut=(()=>{var ve;class ye extends Ve{constructor(Qe,ft,xt){super(),this._componentFactoryResolver=Qe,this._viewContainerRef=ft,this._isInitialized=!1,this.attached=new o.vpe,this.attachDomPortal=Bt=>{const Rt=Bt.element,Qt=this._document.createComment("dom-portal");Bt.setAttachedHost(this),Rt.parentNode.insertBefore(Qt,Rt),this._getRootNode().appendChild(Rt),this._attachedPortal=Bt,super.setDisposeFn(()=>{Qt.parentNode&&Qt.parentNode.replaceChild(Rt,Qt)})},this._document=xt}get portal(){return this._attachedPortal}set portal(Qe){this.hasAttached()&&!Qe&&!this._isInitialized||(this.hasAttached()&&super.detach(),Qe&&super.attach(Qe),this._attachedPortal=Qe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Qe){Qe.setAttachedHost(this);const ft=null!=Qe.viewContainerRef?Qe.viewContainerRef:this._viewContainerRef,Bt=(Qe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Qe.component),Rt=ft.createComponent(Bt,ft.length,Qe.injector||ft.injector,Qe.projectableNodes||void 0);return ft!==this._viewContainerRef&&this._getRootNode().appendChild(Rt.hostView.rootNodes[0]),super.setDisposeFn(()=>Rt.destroy()),this._attachedPortal=Qe,this._attachedRef=Rt,this.attached.emit(Rt),Rt}attachTemplatePortal(Qe){Qe.setAttachedHost(this);const ft=this._viewContainerRef.createEmbeddedView(Qe.templateRef,Qe.context,{injector:Qe.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Qe,this._attachedRef=ft,this.attached.emit(ft),ft}_getRootNode(){const Qe=this._viewContainerRef.element.nativeElement;return Qe.nodeType===Qe.ELEMENT_NODE?Qe:Qe.parentNode}}return(ve=ye).\u0275fac=function(Qe){return new(Qe||ve)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36(l.K0))},ve.\u0275dir=o.lG2({type:ve,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.qOj]}),ye})(),q=(()=>{var ve;class ye{}return(ve=ye).\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=o.oAB({type:ve}),ve.\u0275inj=o.cJS({}),ye})()},6672:(wt,Pe,C)=>{C.d(Pe,{Cl:()=>wn,ZD:()=>Cn,mF:()=>q,rL:()=>ye});var o=C(2495),l=C(5879),R=C(8645),K=C(2096),Y=C(5592),W=C(2438),ie=(C(927),C(6410),C(9028)),V=C(2181),Q=C(2831),be=C(6814),Ve=C(9388);let q=(()=>{var Ge;class Xe{constructor(De,Me,Ce){this._ngZone=De,this._platform=Me,this._scrolled=new R.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ce}register(De){this.scrollContainers.has(De)||this.scrollContainers.set(De,De.elementScrolled().subscribe(()=>this._scrolled.next(De)))}deregister(De){const Me=this.scrollContainers.get(De);Me&&(Me.unsubscribe(),this.scrollContainers.delete(De))}scrolled(De=20){return this._platform.isBrowser?new Y.y(Me=>{this._globalSubscription||this._addGlobalListener();const Ce=De>0?this._scrolled.pipe((0,ie.e)(De)).subscribe(Me):this._scrolled.subscribe(Me);return this._scrolledCount++,()=>{Ce.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,K.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((De,Me)=>this.deregister(Me)),this._scrolled.complete()}ancestorScrolled(De,Me){const Ce=this.getAncestorScrollContainers(De);return this.scrolled(Me).pipe((0,V.h)(Be=>!Be||Ce.indexOf(Be)>-1))}getAncestorScrollContainers(De){const Me=[];return this.scrollContainers.forEach((Ce,Be)=>{this._scrollableContainsElement(Be,De)&&Me.push(Be)}),Me}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(De,Me){let Ce=(0,o.fI)(Me),Be=De.getElementRef().nativeElement;do{if(Ce==Be)return!0}while(Ce=Ce.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const De=this._getWindow();return(0,W.R)(De.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)(l.LFG(l.R0b),l.LFG(Q.t4),l.LFG(be.K0,8))},Ge.\u0275prov=l.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Xe})(),ye=(()=>{var Ge;class Xe{constructor(De,Me,Ce){this._platform=De,this._change=new R.x,this._changeListener=Be=>{this._change.next(Be)},this._document=Ce,Me.runOutsideAngular(()=>{if(De.isBrowser){const Be=this._getWindow();Be.addEventListener("resize",this._changeListener),Be.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const De=this._getWindow();De.removeEventListener("resize",this._changeListener),De.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const De={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),De}getViewportRect(){const De=this.getViewportScrollPosition(),{width:Me,height:Ce}=this.getViewportSize();return{top:De.top,left:De.left,bottom:De.top+Ce,right:De.left+Me,height:Ce,width:Me}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const De=this._document,Me=this._getWindow(),Ce=De.documentElement,Be=Ce.getBoundingClientRect();return{top:-Be.top||De.body.scrollTop||Me.scrollY||Ce.scrollTop||0,left:-Be.left||De.body.scrollLeft||Me.scrollX||Ce.scrollLeft||0}}change(De=20){return De>0?this._change.pipe((0,ie.e)(De)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const De=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:De.innerWidth,height:De.innerHeight}:{width:0,height:0}}}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)(l.LFG(Q.t4),l.LFG(l.R0b),l.LFG(be.K0,8))},Ge.\u0275prov=l.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Xe})(),Cn=(()=>{var Ge;class Xe{}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)},Ge.\u0275mod=l.oAB({type:Ge}),Ge.\u0275inj=l.cJS({}),Xe})(),wn=(()=>{var Ge;class Xe{}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)},Ge.\u0275mod=l.oAB({type:Ge}),Ge.\u0275inj=l.cJS({imports:[Ve.vT,Cn,Ve.vT,Cn]}),Xe})()},6814:(wt,Pe,C)=>{C.d(Pe,{$G:()=>Zn,Do:()=>$e,ED:()=>Ts,EM:()=>Wr,HT:()=>K,JF:()=>pi,JJ:()=>Vt,K0:()=>W,Mx:()=>ir,NF:()=>To,O5:()=>dr,OU:()=>ur,Ov:()=>Wo,PC:()=>ki,PM:()=>Li,RF:()=>di,S$:()=>Ve,V_:()=>ue,Ye:()=>X,b0:()=>tt,bD:()=>Ei,ez:()=>ar,mk:()=>Mn,n9:()=>$o,q:()=>R,sg:()=>Ln,tP:()=>Do,uU:()=>bi,w_:()=>Y});var o=C(5879);let l=null;function R(){return l}function K(g){l||(l=g)}class Y{}const W=new o.OlP("DocumentToken");let re=(()=>{var g;class A{historyGo(M){throw new Error("Not implemented")}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275prov=o.Yz7({token:g,factory:function(){return(0,o.f3M)(ie)},providedIn:"platform"}),A})();const ue=new o.OlP("Location Initialized");let ie=(()=>{var g;class A extends re{constructor(){super(),this._doc=(0,o.f3M)(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState(M){const ne=R().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",M,!1),()=>ne.removeEventListener("popstate",M)}onHashChange(M){const ne=R().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",M,!1),()=>ne.removeEventListener("hashchange",M)}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(M){this._location.pathname=M}pushState(M,ne,Le){this._history.pushState(M,ne,Le)}replaceState(M,ne,Le){this._history.replaceState(M,ne,Le)}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275prov=o.Yz7({token:g,factory:function(){return new g},providedIn:"platform"}),A})();function V(g,A){if(0==g.length)return A;if(0==A.length)return g;let fe=0;return g.endsWith("/")&&fe++,A.startsWith("/")&&fe++,2==fe?g+A.substring(1):1==fe?g+A:g+"/"+A}function Q(g){const A=g.match(/#|\?|$/),fe=A&&A.index||g.length;return g.slice(0,fe-("/"===g[fe-1]?1:0))+g.slice(fe)}function be(g){return g&&"?"!==g[0]?"?"+g:g}let Ve=(()=>{var g;class A{historyGo(M){throw new Error("Not implemented")}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275prov=o.Yz7({token:g,factory:function(){return(0,o.f3M)(tt)},providedIn:"root"}),A})();const He=new o.OlP("appBaseHref");let tt=(()=>{var g;class A extends Ve{constructor(M,ne){super(),this._platformLocation=M,this._removeListenerFns=[],this._baseHref=ne??this._platformLocation.getBaseHrefFromDOM()??(0,o.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return V(this._baseHref,M)}path(M=!1){const ne=this._platformLocation.pathname+be(this._platformLocation.search),Le=this._platformLocation.hash;return Le&&M?`${ne}${Le}`:ne}pushState(M,ne,Le,yt){const kt=this.prepareExternalUrl(Le+be(yt));this._platformLocation.pushState(M,ne,kt)}replaceState(M,ne,Le,yt){const kt=this.prepareExternalUrl(Le+be(yt));this._platformLocation.replaceState(M,ne,kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}}return(g=A).\u0275fac=function(M){return new(M||g)(o.LFG(re),o.LFG(He,8))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),A})(),$e=(()=>{var g;class A extends Ve{constructor(M,ne){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}path(M=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(M){const ne=V(this._baseHref,M);return ne.length>0?"#"+ne:ne}pushState(M,ne,Le,yt){let kt=this.prepareExternalUrl(Le+be(yt));0==kt.length&&(kt=this._platformLocation.pathname),this._platformLocation.pushState(M,ne,kt)}replaceState(M,ne,Le,yt){let kt=this.prepareExternalUrl(Le+be(yt));0==kt.length&&(kt=this._platformLocation.pathname),this._platformLocation.replaceState(M,ne,kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}}return(g=A).\u0275fac=function(M){return new(M||g)(o.LFG(re),o.LFG(He,8))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac}),A})(),X=(()=>{var g;class A{constructor(M){this._subject=new o.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=M;const ne=this._locationStrategy.getBaseHref();this._basePath=function q(g){if(new RegExp("^(https?:)?//").test(g)){const[,fe]=g.split(/\/\/[^\/]+/);return fe}return g}(Q(Ne(ne))),this._locationStrategy.onPopState(Le=>{this._subject.emit({url:this.path(!0),pop:!0,state:Le.state,type:Le.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(M=!1){return this.normalize(this._locationStrategy.path(M))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(M,ne=""){return this.path()==this.normalize(M+be(ne))}normalize(M){return A.stripTrailingSlash(function ut(g,A){if(!g||!A.startsWith(g))return A;const fe=A.substring(g.length);return""===fe||["/",";","?","#"].includes(fe[0])?fe:A}(this._basePath,Ne(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._locationStrategy.prepareExternalUrl(M)}go(M,ne="",Le=null){this._locationStrategy.pushState(Le,"",M,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+be(ne)),Le)}replaceState(M,ne="",Le=null){this._locationStrategy.replaceState(Le,"",M,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+be(ne)),Le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(M=0){this._locationStrategy.historyGo?.(M)}onUrlChange(M){return this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)})),()=>{const ne=this._urlChangeListeners.indexOf(M);this._urlChangeListeners.splice(ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(M="",ne){this._urlChangeListeners.forEach(Le=>Le(M,ne))}subscribe(M,ne,Le){return this._subject.subscribe({next:M,error:ne,complete:Le})}}return(g=A).normalizeQueryParams=be,g.joinWithSlash=V,g.stripTrailingSlash=Q,g.\u0275fac=function(M){return new(M||g)(o.LFG(Ve))},g.\u0275prov=o.Yz7({token:g,factory:function(){return function Ye(){return new X((0,o.LFG)(Ve))}()},providedIn:"root"}),A})();function Ne(g){return g.replace(/\/index.html$/,"")}var ve=function(g){return g[g.Decimal=0]="Decimal",g[g.Percent=1]="Percent",g[g.Currency=2]="Currency",g[g.Scientific=3]="Scientific",g}(ve||{}),rt=function(g){return g[g.Format=0]="Format",g[g.Standalone=1]="Standalone",g}(rt||{}),Qe=function(g){return g[g.Narrow=0]="Narrow",g[g.Abbreviated=1]="Abbreviated",g[g.Wide=2]="Wide",g[g.Short=3]="Short",g}(Qe||{}),ft=function(g){return g[g.Short=0]="Short",g[g.Medium=1]="Medium",g[g.Long=2]="Long",g[g.Full=3]="Full",g}(ft||{}),xt=function(g){return g[g.Decimal=0]="Decimal",g[g.Group=1]="Group",g[g.List=2]="List",g[g.PercentSign=3]="PercentSign",g[g.PlusSign=4]="PlusSign",g[g.MinusSign=5]="MinusSign",g[g.Exponential=6]="Exponential",g[g.SuperscriptingExponent=7]="SuperscriptingExponent",g[g.PerMille=8]="PerMille",g[g.Infinity=9]="Infinity",g[g.NaN=10]="NaN",g[g.TimeSeparator=11]="TimeSeparator",g[g.CurrencyDecimal=12]="CurrencyDecimal",g[g.CurrencyGroup=13]="CurrencyGroup",g}(xt||{});function Xe(g,A){return Xt((0,o.cg1)(g)[o.wAp.DateFormat],A)}function Ze(g,A){return Xt((0,o.cg1)(g)[o.wAp.TimeFormat],A)}function De(g,A){return Xt((0,o.cg1)(g)[o.wAp.DateTimeFormat],A)}function Me(g,A){const fe=(0,o.cg1)(g),M=fe[o.wAp.NumberSymbols][A];if(typeof M>"u"){if(A===xt.CurrencyDecimal)return fe[o.wAp.NumberSymbols][xt.Decimal];if(A===xt.CurrencyGroup)return fe[o.wAp.NumberSymbols][xt.Group]}return M}function jt(g){if(!g[o.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${g[o.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xt(g,A){for(let fe=A;fe>-1;fe--)if(typeof g[fe]<"u")return g[fe];throw new Error("Locale data API: locale data undefined")}function an(g){const[A,fe]=g.split(":");return{hours:+A,minutes:+fe}}const xn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hn={},Un=/((?:[^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 ze=function(g){return g[g.Short=0]="Short",g[g.ShortGMT=1]="ShortGMT",g[g.Long=2]="Long",g[g.Extended=3]="Extended",g}(ze||{}),G=function(g){return g[g.FullYear=0]="FullYear",g[g.Month=1]="Month",g[g.Date=2]="Date",g[g.Hours=3]="Hours",g[g.Minutes=4]="Minutes",g[g.Seconds=5]="Seconds",g[g.FractionalSeconds=6]="FractionalSeconds",g[g.Day=7]="Day",g}(G||{}),Ie=function(g){return g[g.DayPeriods=0]="DayPeriods",g[g.Days=1]="Days",g[g.Months=2]="Months",g[g.Eras=3]="Eras",g}(Ie||{});function pe(g,A,fe,M){let ne=function z(g){if(B(g))return g;if("number"==typeof g&&!isNaN(g))return new Date(g);if("string"==typeof g){if(g=g.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(g)){const[ne,Le=1,yt=1]=g.split("-").map(kt=>+kt);return nt(ne,Le-1,yt)}const fe=parseFloat(g);if(!isNaN(g-fe))return new Date(fe);let M;if(M=g.match(xn))return function U(g){const A=new Date(0);let fe=0,M=0;const ne=g[8]?A.setUTCFullYear:A.setFullYear,Le=g[8]?A.setUTCHours:A.setHours;g[9]&&(fe=Number(g[9]+g[10]),M=Number(g[9]+g[11])),ne.call(A,Number(g[1]),Number(g[2])-1,Number(g[3]));const yt=Number(g[4]||0)-fe,kt=Number(g[5]||0)-M,Tn=Number(g[6]||0),zn=Math.floor(1e3*parseFloat("0."+(g[7]||0)));return Le.call(A,yt,kt,Tn,zn),A}(M)}const A=new Date(g);if(!B(A))throw new Error(`Unable to convert "${g}" into a date`);return A}(g);A=Te(fe,A)||A;let kt,yt=[];for(;A;){if(kt=Un.exec(A),!kt){yt.push(A);break}{yt=yt.concat(kt.slice(1));const Bn=yt.pop();if(!Bn)break;A=Bn}}let Tn=ne.getTimezoneOffset();M&&(Tn=Yt(M,Tn),ne=function Oe(g,A,fe){const M=fe?-1:1,ne=g.getTimezoneOffset();return function cn(g,A){return(g=new Date(g.getTime())).setMinutes(g.getMinutes()+A),g}(g,M*(Yt(A,ne)-ne))}(ne,M,!0));let zn="";return yt.forEach(Bn=>{const bn=function Ht(g){if(Pt[g])return Pt[g];let A;switch(g){case"G":case"GG":case"GGG":A=vt(Ie.Eras,Qe.Abbreviated);break;case"GGGG":A=vt(Ie.Eras,Qe.Wide);break;case"GGGGG":A=vt(Ie.Eras,Qe.Narrow);break;case"y":A=Je(G.FullYear,1,0,!1,!0);break;case"yy":A=Je(G.FullYear,2,0,!0,!0);break;case"yyy":A=Je(G.FullYear,3,0,!1,!0);break;case"yyyy":A=Je(G.FullYear,4,0,!1,!0);break;case"Y":A=Et(1);break;case"YY":A=Et(2,!0);break;case"YYY":A=Et(3);break;case"YYYY":A=Et(4);break;case"M":case"L":A=Je(G.Month,1,1);break;case"MM":case"LL":A=Je(G.Month,2,1);break;case"MMM":A=vt(Ie.Months,Qe.Abbreviated);break;case"MMMM":A=vt(Ie.Months,Qe.Wide);break;case"MMMMM":A=vt(Ie.Months,Qe.Narrow);break;case"LLL":A=vt(Ie.Months,Qe.Abbreviated,rt.Standalone);break;case"LLLL":A=vt(Ie.Months,Qe.Wide,rt.Standalone);break;case"LLLLL":A=vt(Ie.Months,Qe.Narrow,rt.Standalone);break;case"w":A=St(1);break;case"ww":A=St(2);break;case"W":A=St(1,!0);break;case"d":A=Je(G.Date,1);break;case"dd":A=Je(G.Date,2);break;case"c":case"cc":A=Je(G.Day,1);break;case"ccc":A=vt(Ie.Days,Qe.Abbreviated,rt.Standalone);break;case"cccc":A=vt(Ie.Days,Qe.Wide,rt.Standalone);break;case"ccccc":A=vt(Ie.Days,Qe.Narrow,rt.Standalone);break;case"cccccc":A=vt(Ie.Days,Qe.Short,rt.Standalone);break;case"E":case"EE":case"EEE":A=vt(Ie.Days,Qe.Abbreviated);break;case"EEEE":A=vt(Ie.Days,Qe.Wide);break;case"EEEEE":A=vt(Ie.Days,Qe.Narrow);break;case"EEEEEE":A=vt(Ie.Days,Qe.Short);break;case"a":case"aa":case"aaa":A=vt(Ie.DayPeriods,Qe.Abbreviated);break;case"aaaa":A=vt(Ie.DayPeriods,Qe.Wide);break;case"aaaaa":A=vt(Ie.DayPeriods,Qe.Narrow);break;case"b":case"bb":case"bbb":A=vt(Ie.DayPeriods,Qe.Abbreviated,rt.Standalone,!0);break;case"bbbb":A=vt(Ie.DayPeriods,Qe.Wide,rt.Standalone,!0);break;case"bbbbb":A=vt(Ie.DayPeriods,Qe.Narrow,rt.Standalone,!0);break;case"B":case"BB":case"BBB":A=vt(Ie.DayPeriods,Qe.Abbreviated,rt.Format,!0);break;case"BBBB":A=vt(Ie.DayPeriods,Qe.Wide,rt.Format,!0);break;case"BBBBB":A=vt(Ie.DayPeriods,Qe.Narrow,rt.Format,!0);break;case"h":A=Je(G.Hours,1,-12);break;case"hh":A=Je(G.Hours,2,-12);break;case"H":A=Je(G.Hours,1);break;case"HH":A=Je(G.Hours,2);break;case"m":A=Je(G.Minutes,1);break;case"mm":A=Je(G.Minutes,2);break;case"s":A=Je(G.Seconds,1);break;case"ss":A=Je(G.Seconds,2);break;case"S":A=Je(G.FractionalSeconds,1);break;case"SS":A=Je(G.FractionalSeconds,2);break;case"SSS":A=Je(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":A=y(ze.Short);break;case"ZZZZZ":A=y(ze.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":A=y(ze.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":A=y(ze.Long);break;default:return null}return Pt[g]=A,A}(Bn);zn+=bn?bn(ne,fe,Tn):"''"===Bn?"'":Bn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),zn}function nt(g,A,fe){const M=new Date(0);return M.setFullYear(g,A,fe),M.setHours(0,0,0),M}function Te(g,A){const fe=function Rt(g){return(0,o.cg1)(g)[o.wAp.LocaleId]}(g);if(Hn[fe]=Hn[fe]||{},Hn[fe][A])return Hn[fe][A];let M="";switch(A){case"shortDate":M=Xe(g,ft.Short);break;case"mediumDate":M=Xe(g,ft.Medium);break;case"longDate":M=Xe(g,ft.Long);break;case"fullDate":M=Xe(g,ft.Full);break;case"shortTime":M=Ze(g,ft.Short);break;case"mediumTime":M=Ze(g,ft.Medium);break;case"longTime":M=Ze(g,ft.Long);break;case"fullTime":M=Ze(g,ft.Full);break;case"short":const ne=Te(g,"shortTime"),Le=Te(g,"shortDate");M=Ke(De(g,ft.Short),[ne,Le]);break;case"medium":const yt=Te(g,"mediumTime"),kt=Te(g,"mediumDate");M=Ke(De(g,ft.Medium),[yt,kt]);break;case"long":const Tn=Te(g,"longTime"),zn=Te(g,"longDate");M=Ke(De(g,ft.Long),[Tn,zn]);break;case"full":const Bn=Te(g,"fullTime"),bn=Te(g,"fullDate");M=Ke(De(g,ft.Full),[Bn,bn])}return M&&(Hn[fe][A]=M),M}function Ke(g,A){return A&&(g=g.replace(/\{([^}]+)}/g,function(fe,M){return null!=A&&M in A?A[M]:fe})),g}function dt(g,A,fe="-",M,ne){let Le="";(g<0||ne&&g<=0)&&(ne?g=1-g:(g=-g,Le=fe));let yt=String(g);for(;yt.length<A;)yt="0"+yt;return M&&(yt=yt.slice(yt.length-A)),Le+yt}function Je(g,A,fe=0,M=!1,ne=!1){return function(Le,yt){let kt=function pt(g,A){switch(g){case G.FullYear:return A.getFullYear();case G.Month:return A.getMonth();case G.Date:return A.getDate();case G.Hours:return A.getHours();case G.Minutes:return A.getMinutes();case G.Seconds:return A.getSeconds();case G.FractionalSeconds:return A.getMilliseconds();case G.Day:return A.getDay();default:throw new Error(`Unknown DateType value "${g}".`)}}(g,Le);if((fe>0||kt>-fe)&&(kt+=fe),g===G.Hours)0===kt&&-12===fe&&(kt=12);else if(g===G.FractionalSeconds)return function je(g,A){return dt(g,3).substring(0,A)}(kt,A);const Tn=Me(yt,xt.MinusSign);return dt(kt,A,Tn,M,ne)}}function vt(g,A,fe=rt.Format,M=!1){return function(ne,Le){return function Re(g,A,fe,M,ne,Le){switch(fe){case Ie.Months:return function sn(g,A,fe){const M=(0,o.cg1)(g),Le=Xt([M[o.wAp.MonthsFormat],M[o.wAp.MonthsStandalone]],A);return Xt(Le,fe)}(A,ne,M)[g.getMonth()];case Ie.Days:return function qt(g,A,fe){const M=(0,o.cg1)(g),Le=Xt([M[o.wAp.DaysFormat],M[o.wAp.DaysStandalone]],A);return Xt(Le,fe)}(A,ne,M)[g.getDay()];case Ie.DayPeriods:const yt=g.getHours(),kt=g.getMinutes();if(Le){const zn=function Kt(g){const A=(0,o.cg1)(g);return jt(A),(A[o.wAp.ExtraData][2]||[]).map(M=>"string"==typeof M?an(M):[an(M[0]),an(M[1])])}(A),Bn=function nn(g,A,fe){const M=(0,o.cg1)(g);jt(M);const Le=Xt([M[o.wAp.ExtraData][0],M[o.wAp.ExtraData][1]],A)||[];return Xt(Le,fe)||[]}(A,ne,M),bn=zn.findIndex(sr=>{if(Array.isArray(sr)){const[Qn,_r]=sr,Zr=yt>=Qn.hours&&kt>=Qn.minutes,Si=yt<_r.hours||yt===_r.hours&&kt<_r.minutes;if(Qn.hours<_r.hours){if(Zr&&Si)return!0}else if(Zr||Si)return!0}else if(sr.hours===yt&&sr.minutes===kt)return!0;return!1});if(-1!==bn)return Bn[bn]}return function Qt(g,A,fe){const M=(0,o.cg1)(g),Le=Xt([M[o.wAp.DayPeriodsFormat],M[o.wAp.DayPeriodsStandalone]],A);return Xt(Le,fe)}(A,ne,M)[yt<12?0:1];case Ie.Eras:return function Cn(g,A){return Xt((0,o.cg1)(g)[o.wAp.Eras],A)}(A,M)[g.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${fe}`)}}(ne,Le,g,A,fe,M)}}function y(g){return function(A,fe,M){const ne=-1*M,Le=Me(fe,xt.MinusSign),yt=ne>0?Math.floor(ne/60):Math.ceil(ne/60);switch(g){case ze.Short:return(ne>=0?"+":"")+dt(yt,2,Le)+dt(Math.abs(ne%60),2,Le);case ze.ShortGMT:return"GMT"+(ne>=0?"+":"")+dt(yt,1,Le);case ze.Long:return"GMT"+(ne>=0?"+":"")+dt(yt,2,Le)+":"+dt(Math.abs(ne%60),2,Le);case ze.Extended:return 0===M?"Z":(ne>=0?"+":"")+dt(yt,2,Le)+":"+dt(Math.abs(ne%60),2,Le);default:throw new Error(`Unknown zone width "${g}"`)}}}const P=0,ee=4;function it(g){return nt(g.getFullYear(),g.getMonth(),g.getDate()+(ee-g.getDay()))}function St(g,A=!1){return function(fe,M){let ne;if(A){const Le=new Date(fe.getFullYear(),fe.getMonth(),1).getDay()-1,yt=fe.getDate();ne=1+Math.floor((yt+Le)/7)}else{const Le=it(fe),yt=function Ae(g){const A=nt(g,P,1).getDay();return nt(g,0,1+(A<=ee?ee:ee+7)-A)}(Le.getFullYear()),kt=Le.getTime()-yt.getTime();ne=1+Math.round(kt/6048e5)}return dt(ne,g,Me(M,xt.MinusSign))}}function Et(g,A=!1){return function(fe,M){return dt(it(fe).getFullYear(),g,Me(M,xt.MinusSign),A)}}const Pt={};function Yt(g,A){g=g.replace(/:/g,"");const fe=Date.parse("Jan 01, 1970 00:00:00 "+g)/6e4;return isNaN(fe)?A:fe}function B(g){return g instanceof Date&&!isNaN(g.valueOf())}const S=/^(\d+)?\.((\d+)(-(\d+))?)?$/,j=".",L="0";function Ut(g){const A=parseInt(g);if(isNaN(A))throw new Error("Invalid integer literal when parsing "+g);return A}function ir(g,A){A=encodeURIComponent(A);for(const fe of g.split(";")){const M=fe.indexOf("="),[ne,Le]=-1==M?[fe,""]:[fe.slice(0,M),fe.slice(M+1)];if(ne.trim()===A)return decodeURIComponent(Le)}return null}const yr=/\s+/,zr=[];let Mn=(()=>{var g;class A{constructor(M,ne,Le,yt){this._iterableDiffers=M,this._keyValueDiffers=ne,this._ngEl=Le,this._renderer=yt,this.initialClasses=zr,this.stateMap=new Map}set klass(M){this.initialClasses=null!=M?M.trim().split(yr):zr}set ngClass(M){this.rawClass="string"==typeof M?M.trim().split(yr):M}ngDoCheck(){for(const ne of this.initialClasses)this._updateState(ne,!0);const M=this.rawClass;if(Array.isArray(M)||M instanceof Set)for(const ne of M)this._updateState(ne,!0);else if(null!=M)for(const ne of Object.keys(M))this._updateState(ne,!!M[ne]);this._applyStateDiff()}_updateState(M,ne){const Le=this.stateMap.get(M);void 0!==Le?(Le.enabled!==ne&&(Le.changed=!0,Le.enabled=ne),Le.touched=!0):this.stateMap.set(M,{enabled:ne,changed:!0,touched:!0})}_applyStateDiff(){for(const M of this.stateMap){const ne=M[0],Le=M[1];Le.changed?(this._toggleClass(ne,Le.enabled),Le.changed=!1):Le.touched||(Le.enabled&&this._toggleClass(ne,!1),this.stateMap.delete(ne)),Le.touched=!1}}_toggleClass(M,ne){(M=M.trim()).length>0&&M.split(yr).forEach(Le=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Le):this._renderer.removeClass(this._ngEl.nativeElement,Le)})}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.ZZ4),o.Y36(o.aQg),o.Y36(o.SBq),o.Y36(o.Qsj))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),A})(),Zn=(()=>{var g;class A{constructor(M){this._viewContainerRef=M,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(M){return void 0!==M.ngComponentOutletNgModule||void 0!==M.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(M){return void 0!==M.ngComponentOutlet||void 0!==M.ngComponentOutletContent||void 0!==M.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(M)}ngOnChanges(M){if(this._needToReCreateComponentInstance(M)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const ne=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(M)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,o.Lck)(this.ngComponentOutletNgModule,Or(ne)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Or(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 M of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(M,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(M){for(const[ne,Le]of this._inputsUsed)Le?(M.setInput(ne,this.ngComponentOutletInputs[ne]),this._inputsUsed.set(ne,!1)):(M.setInput(ne,void 0),this._inputsUsed.delete(ne))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[o.TTD]}),A})();function Or(g){return g.get(o.h0i).injector}class ti{constructor(A,fe,M,ne){this.$implicit=A,this.ngForOf=fe,this.index=M,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 Ln=(()=>{var g;class A{set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}constructor(M,ne,Le){this._viewContainer=M,this._template=ne,this._differs=Le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;!this._differ&&M&&(this._differ=this._differs.find(M).create(this.ngForTrackBy))}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const ne=this._viewContainer;M.forEachOperation((Le,yt,kt)=>{if(null==Le.previousIndex)ne.createEmbeddedView(this._template,new ti(Le.item,this._ngForOf,-1,-1),null===kt?void 0:kt);else if(null==kt)ne.remove(null===yt?void 0:yt);else if(null!==yt){const Tn=ne.get(yt);ne.move(Tn,kt),qn(Tn,Le)}});for(let Le=0,yt=ne.length;Le<yt;Le++){const Tn=ne.get(Le).context;Tn.index=Le,Tn.count=yt,Tn.ngForOf=this._ngForOf}M.forEachIdentityChange(Le=>{qn(ne.get(Le.currentIndex),Le)})}static ngTemplateContextGuard(M,ne){return!0}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),A})();function qn(g,A){g.context.$implicit=A.item}let dr=(()=>{var g;class A{constructor(M,ne){this._viewContainer=M,this._context=new ui,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Gr("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Gr("ngIfElse",M),this._elseTemplateRef=M,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(M,ne){return!0}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),A})();class ui{constructor(){this.$implicit=null,this.ngIf=null}}function Gr(g,A){if(A&&!A.createEmbeddedView)throw new Error(`${g} must be a TemplateRef, but received '${(0,o.AaK)(A)}'.`)}class hr{constructor(A,fe){this._viewContainerRef=A,this._templateRef=fe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(A){A&&!this._created?this.create():!A&&this._created&&this.destroy()}}let di=(()=>{var g;class A{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(M){this._ngSwitch=M,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(M){this._defaultViews.push(M)}_matchCase(M){const ne=M==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(M){if(this._defaultViews.length>0&&M!==this._defaultUsed){this._defaultUsed=M;for(const ne of this._defaultViews)ne.enforceState(M)}}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275dir=o.lG2({type:g,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),A})(),$o=(()=>{var g;class A{constructor(M,ne,Le){this.ngSwitch=Le,Le._addCase(),this._view=new hr(M,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(di,9))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),A})(),Ts=(()=>{var g;class A{constructor(M,ne,Le){Le._addDefault(new hr(M,ne))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(di,9))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngSwitchDefault",""]],standalone:!0}),A})(),ki=(()=>{var g;class A{constructor(M,ne,Le){this._ngEl=M,this._differs=ne,this._renderer=Le,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,ne){const[Le,yt]=M.split("."),kt=-1===Le.indexOf("-")?void 0:o.JOm.DashCase;null!=ne?this._renderer.setStyle(this._ngEl.nativeElement,Le,yt?`${ne}${yt}`:ne,kt):this._renderer.removeStyle(this._ngEl.nativeElement,Le,kt)}_applyChanges(M){M.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),M.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),M.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.SBq),o.Y36(o.aQg),o.Y36(o.Qsj))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),A})(),Do=(()=>{var g;class A{constructor(M){this._viewContainerRef=M,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(M){if(M.ngTemplateOutlet||M.ngTemplateOutletInjector){const ne=this._viewContainerRef;if(this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Le,ngTemplateOutletContext:yt,ngTemplateOutletInjector:kt}=this;this._viewRef=ne.createEmbeddedView(Le,yt,kt?{injector:kt}:void 0)}else this._viewRef=null}else this._viewRef&&M.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[o.TTD]}),A})();function Br(g,A){return new o.vHH(2100,!1)}class Go{createSubscription(A,fe){return(0,o.rg0)(()=>A.subscribe({next:fe,error:M=>{throw M}}))}dispose(A){(0,o.rg0)(()=>A.unsubscribe())}}class xr{createSubscription(A,fe){return A.then(fe,M=>{throw M})}dispose(A){}}const Ki=new xr,wo=new Go;let Wo=(()=>{var g;class A{constructor(M){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=M}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(M){return this._obj?M!==this._obj?(this._dispose(),this.transform(M)):this._latestValue:(M&&this._subscribe(M),this._latestValue)}_subscribe(M){this._obj=M,this._strategy=this._selectStrategy(M),this._subscription=this._strategy.createSubscription(M,ne=>this._updateLatestValue(M,ne))}_selectStrategy(M){if((0,o.QGY)(M))return Ki;if((0,o.F4k)(M))return wo;throw Br()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,ne){M===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.sBO,16))},g.\u0275pipe=o.Yjl({name:"async",type:g,pure:!1,standalone:!0}),A})();const Kn=new o.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),or=new o.OlP("DATE_PIPE_DEFAULT_OPTIONS");let bi=(()=>{var g;class A{constructor(M,ne,Le){this.locale=M,this.defaultTimezone=ne,this.defaultOptions=Le}transform(M,ne,Le,yt){if(null==M||""===M||M!=M)return null;try{return pe(M,ne??this.defaultOptions?.dateFormat??"mediumDate",yt||this.locale,Le??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(kt){throw Br()}}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.soG,16),o.Y36(Kn,24),o.Y36(or,24))},g.\u0275pipe=o.Yjl({name:"date",type:g,pure:!0,standalone:!0}),A})(),Vt=(()=>{var g;class A{constructor(M){this._locale=M}transform(M,ne,Le){if(!function br(g){return!(null==g||""===g||g!=g)}(M))return null;Le=Le||this._locale;try{return function le(g,A,fe){return function de(g,A,fe,M,ne,Le,yt=!1){let kt="",Tn=!1;if(isFinite(g)){let zn=function bt(g){let M,ne,Le,yt,kt,A=Math.abs(g)+"",fe=0;for((ne=A.indexOf(j))>-1&&(A=A.replace(j,"")),(Le=A.search(/e/i))>0?(ne<0&&(ne=Le),ne+=+A.slice(Le+1),A=A.substring(0,Le)):ne<0&&(ne=A.length),Le=0;A.charAt(Le)===L;Le++);if(Le===(kt=A.length))M=[0],ne=1;else{for(kt--;A.charAt(kt)===L;)kt--;for(ne-=Le,M=[],yt=0;Le<=kt;Le++,yt++)M[yt]=Number(A.charAt(Le))}return ne>22&&(M=M.splice(0,21),fe=ne-1,ne=1),{digits:M,exponent:fe,integerLen:ne}}(g);yt&&(zn=function We(g){if(0===g.digits[0])return g;const A=g.digits.length-g.integerLen;return g.exponent?g.exponent+=2:(0===A?g.digits.push(0,0):1===A&&g.digits.push(0),g.integerLen+=2),g}(zn));let Bn=A.minInt,bn=A.minFrac,sr=A.maxFrac;if(Le){const xi=Le.match(S);if(null===xi)throw new Error(`${Le} is not a valid digit info`);const Dr=xi[1],to=xi[3],nr=xi[5];null!=Dr&&(Bn=Ut(Dr)),null!=to&&(bn=Ut(to)),null!=nr?sr=Ut(nr):null!=to&&bn>sr&&(sr=bn)}!function ht(g,A,fe){if(A>fe)throw new Error(`The minimum number of digits after fraction (${A}) is higher than the maximum (${fe}).`);let M=g.digits,ne=M.length-g.integerLen;const Le=Math.min(Math.max(A,ne),fe);let yt=Le+g.integerLen,kt=M[yt];if(yt>0){M.splice(Math.max(g.integerLen,yt));for(let bn=yt;bn<M.length;bn++)M[bn]=0}else{ne=Math.max(0,ne),g.integerLen=1,M.length=Math.max(1,yt=Le+1),M[0]=0;for(let bn=1;bn<yt;bn++)M[bn]=0}if(kt>=5)if(yt-1<0){for(let bn=0;bn>yt;bn--)M.unshift(0),g.integerLen++;M.unshift(1),g.integerLen++}else M[yt-1]++;for(;ne<Math.max(0,Le);ne++)M.push(0);let Tn=0!==Le;const zn=A+g.integerLen,Bn=M.reduceRight(function(bn,sr,Qn,_r){return _r[Qn]=(sr+=bn)<10?sr:sr-10,Tn&&(0===_r[Qn]&&Qn>=zn?_r.pop():Tn=!1),sr>=10?1:0},0);Bn&&(M.unshift(Bn),g.integerLen++)}(zn,bn,sr);let Qn=zn.digits,_r=zn.integerLen;const Zr=zn.exponent;let Si=[];for(Tn=Qn.every(xi=>!xi);_r<Bn;_r++)Qn.unshift(0);for(;_r<0;_r++)Qn.unshift(0);_r>0?Si=Qn.splice(_r,Qn.length):(Si=Qn,Qn=[0]);const Oi=[];for(Qn.length>=A.lgSize&&Oi.unshift(Qn.splice(-A.lgSize,Qn.length).join(""));Qn.length>A.gSize;)Oi.unshift(Qn.splice(-A.gSize,Qn.length).join(""));Qn.length&&Oi.unshift(Qn.join("")),kt=Oi.join(Me(fe,M)),Si.length&&(kt+=Me(fe,ne)+Si.join("")),Zr&&(kt+=Me(fe,xt.Exponential)+"+"+Zr)}else kt=Me(fe,xt.Infinity);return kt=g<0&&!Tn?A.negPre+kt+A.negSuf:A.posPre+kt+A.posSuf,kt}(g,function Ee(g,A="-"){const fe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},M=g.split(";"),ne=M[0],Le=M[1],yt=-1!==ne.indexOf(j)?ne.split(j):[ne.substring(0,ne.lastIndexOf(L)+1),ne.substring(ne.lastIndexOf(L)+1)],kt=yt[0],Tn=yt[1]||"";fe.posPre=kt.substring(0,kt.indexOf("#"));for(let Bn=0;Bn<Tn.length;Bn++){const bn=Tn.charAt(Bn);bn===L?fe.minFrac=fe.maxFrac=Bn+1:"#"===bn?fe.maxFrac=Bn+1:fe.posSuf+=bn}const zn=kt.split(",");if(fe.gSize=zn[1]?zn[1].length:0,fe.lgSize=zn[2]||zn[1]?(zn[2]||zn[1]).length:0,Le){const Bn=ne.length-fe.posPre.length-fe.posSuf.length,bn=Le.indexOf("#");fe.negPre=Le.substring(0,bn).replace(/'/g,""),fe.negSuf=Le.slice(bn+Bn).replace(/'/g,"")}else fe.negPre=A+fe.posPre,fe.negSuf=fe.posSuf;return fe}(function Ce(g,A){return(0,o.cg1)(g)[o.wAp.NumberFormats][A]}(A,ve.Decimal),Me(A,xt.MinusSign)),A,xt.Group,xt.Decimal,fe)}(function Ai(g){if("string"==typeof g&&!isNaN(Number(g)-parseFloat(g)))return Number(g);if("number"!=typeof g)throw new Error(`${g} is not a number`);return g}(M),Le,ne)}catch(yt){throw Br()}}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.soG,16))},g.\u0275pipe=o.Yjl({name:"number",type:g,pure:!0,standalone:!0}),A})();let ur=(()=>{var g;class A{transform(M,ne,Le){if(null==M)return null;if(!this.supports(M))throw Br();return M.slice(ne,Le)}supports(M){return"string"==typeof M||Array.isArray(M)}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275pipe=o.Yjl({name:"slice",type:g,pure:!1,standalone:!0}),A})(),ar=(()=>{var g;class A{}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275mod=o.oAB({type:g}),g.\u0275inj=o.cJS({}),A})();const Ei="browser",hi="server";function To(g){return g===Ei}function Li(g){return g===hi}let Wr=(()=>{var g;class A{}return(g=A).\u0275prov=(0,o.Yz7)({token:g,providedIn:"root",factory:()=>new Io((0,o.LFG)(W),window)}),A})();class Io{constructor(A,fe){this.document=A,this.window=fe,this.offset=()=>[0,0]}setOffset(A){this.offset=Array.isArray(A)?()=>A:A}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(A){this.supportsScrolling()&&this.window.scrollTo(A[0],A[1])}scrollToAnchor(A){if(!this.supportsScrolling())return;const fe=function Ao(g,A){const fe=g.getElementById(A)||g.getElementsByName(A)[0];if(fe)return fe;if("function"==typeof g.createTreeWalker&&g.body&&"function"==typeof g.body.attachShadow){const M=g.createTreeWalker(g.body,NodeFilter.SHOW_ELEMENT);let ne=M.currentNode;for(;ne;){const Le=ne.shadowRoot;if(Le){const yt=Le.getElementById(A)||Le.querySelector(`[name="${A}"]`);if(yt)return yt}ne=M.nextNode()}}return null}(this.document,A);fe&&(this.scrollToElement(fe),fe.focus())}setHistoryScrollRestoration(A){this.supportsScrolling()&&(this.window.history.scrollRestoration=A)}scrollToElement(A){const fe=A.getBoundingClientRect(),M=fe.left+this.window.pageXOffset,ne=fe.top+this.window.pageYOffset,Le=this.offset();this.window.scrollTo(M-Le[0],ne-Le[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class pi{}},9862:(wt,Pe,C)=>{C.d(Pe,{JF:()=>S,TP:()=>jt,WM:()=>Ve,eN:()=>Ge});var o=C(5879),l=C(2096),R=C(2459),K=C(5592),Y=C(6328),W=C(2181),re=C(7398),ue=C(4716),ie=C(4664),V=C(6814);class Q{}class be{}class Ve{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?"string"==typeof se?this.lazyInit=()=>{this.headers=new Map,se.split("\n").forEach(ot=>{const le=ot.indexOf(":");if(le>0){const Ee=ot.slice(0,le),We=Ee.toLowerCase(),bt=ot.slice(le+1).trim();this.maybeSetNormalizedName(Ee,We),this.headers.has(We)?this.headers.get(We).push(bt):this.headers.set(We,[bt])}})}:typeof Headers<"u"&&se instanceof Headers?(this.headers=new Map,se.forEach((ot,le)=>{this.setHeaderEntries(le,ot)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(se).forEach(([ot,le])=>{this.setHeaderEntries(ot,le)})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const ot=this.headers.get(se.toLowerCase());return ot&&ot.length>0?ot[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,ot){return this.clone({name:se,value:ot,op:"a"})}set(se,ot){return this.clone({name:se,value:ot,op:"s"})}delete(se,ot){return this.clone({name:se,value:ot,op:"d"})}maybeSetNormalizedName(se,ot){this.normalizedNames.has(ot)||this.normalizedNames.set(ot,se)}init(){this.lazyInit&&(this.lazyInit instanceof Ve?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(ot=>{this.headers.set(ot,se.headers.get(ot)),this.normalizedNames.set(ot,se.normalizedNames.get(ot))})}clone(se){const ot=new Ve;return ot.lazyInit=this.lazyInit&&this.lazyInit instanceof Ve?this.lazyInit:this,ot.lazyUpdate=(this.lazyUpdate||[]).concat([se]),ot}applyUpdate(se){const ot=se.name.toLowerCase();switch(se.op){case"a":case"s":let le=se.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(se.name,ot);const Ee=("a"===se.op?this.headers.get(ot):void 0)||[];Ee.push(...le),this.headers.set(ot,Ee);break;case"d":const We=se.value;if(We){let bt=this.headers.get(ot);if(!bt)return;bt=bt.filter(ht=>-1===We.indexOf(ht)),0===bt.length?(this.headers.delete(ot),this.normalizedNames.delete(ot)):this.headers.set(ot,bt)}else this.headers.delete(ot),this.normalizedNames.delete(ot)}}setHeaderEntries(se,ot){const le=(Array.isArray(ot)?ot:[ot]).map(We=>We.toString()),Ee=se.toLowerCase();this.headers.set(Ee,le),this.maybeSetNormalizedName(se,Ee)}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(ot=>se(this.normalizedNames.get(ot),this.headers.get(ot)))}}class tt{encodeKey(se){return ut(se)}encodeValue(se){return ut(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const X=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ut(de){return encodeURIComponent(de).replace(X,(se,ot)=>Ye[ot]??se)}function Ne(de){return`${de}`}class q{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new tt,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $e(de,se){const ot=new Map;return de.length>0&&de.replace(/^\?/,"").split("&").forEach(Ee=>{const We=Ee.indexOf("="),[bt,ht]=-1==We?[se.decodeKey(Ee),""]:[se.decodeKey(Ee.slice(0,We)),se.decodeValue(Ee.slice(We+1))],Ut=ot.get(bt)||[];Ut.push(ht),ot.set(bt,Ut)}),ot}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(ot=>{const le=se.fromObject[ot],Ee=Array.isArray(le)?le.map(Ne):[Ne(le)];this.map.set(ot,Ee)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const ot=this.map.get(se);return ot?ot[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,ot){return this.clone({param:se,value:ot,op:"a"})}appendAll(se){const ot=[];return Object.keys(se).forEach(le=>{const Ee=se[le];Array.isArray(Ee)?Ee.forEach(We=>{ot.push({param:le,value:We,op:"a"})}):ot.push({param:le,value:Ee,op:"a"})}),this.clone(ot)}set(se,ot){return this.clone({param:se,value:ot,op:"s"})}delete(se,ot){return this.clone({param:se,value:ot,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const ot=this.encoder.encodeKey(se);return this.map.get(se).map(le=>ot+"="+this.encoder.encodeValue(le)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const ot=new q({encoder:this.encoder});return ot.cloneFrom=this.cloneFrom||this,ot.updates=(this.updates||[]).concat(se),ot}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const ot=("a"===se.op?this.map.get(se.param):void 0)||[];ot.push(Ne(se.value)),this.map.set(se.param,ot);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let le=this.map.get(se.param)||[];const Ee=le.indexOf(Ne(se.value));-1!==Ee&&le.splice(Ee,1),le.length>0?this.map.set(se.param,le):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(se,ot){return this.map.set(se,ot),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function rt(de){return typeof ArrayBuffer<"u"&&de instanceof ArrayBuffer}function Qe(de){return typeof Blob<"u"&&de instanceof Blob}function ft(de){return typeof FormData<"u"&&de instanceof FormData}class Bt{constructor(se,ot,le,Ee){let We;if(this.url=ot,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function ye(de){switch(de){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==le?le:null,We=Ee):We=le,We&&(this.reportProgress=!!We.reportProgress,this.withCredentials=!!We.withCredentials,We.responseType&&(this.responseType=We.responseType),We.headers&&(this.headers=We.headers),We.context&&(this.context=We.context),We.params&&(this.params=We.params)),this.headers||(this.headers=new Ve),this.context||(this.context=new ve),this.params){const bt=this.params.toString();if(0===bt.length)this.urlWithParams=ot;else{const ht=ot.indexOf("?");this.urlWithParams=ot+(-1===ht?"?":ht<ot.length-1?"&":"")+bt}}else this.params=new q,this.urlWithParams=ot}serializeBody(){return null===this.body?null:rt(this.body)||Qe(this.body)||ft(this.body)||function xt(de){return typeof URLSearchParams<"u"&&de instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof q?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||ft(this.body)?null:Qe(this.body)?this.body.type||null:rt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(se={}){const ot=se.method||this.method,le=se.url||this.url,Ee=se.responseType||this.responseType,We=void 0!==se.body?se.body:this.body,bt=void 0!==se.withCredentials?se.withCredentials:this.withCredentials,ht=void 0!==se.reportProgress?se.reportProgress:this.reportProgress;let Ut=se.headers||this.headers,Gt=se.params||this.params;const Pn=se.context??this.context;return void 0!==se.setHeaders&&(Ut=Object.keys(se.setHeaders).reduce(($n,Nn)=>$n.set(Nn,se.setHeaders[Nn]),Ut)),se.setParams&&(Gt=Object.keys(se.setParams).reduce(($n,Nn)=>$n.set(Nn,se.setParams[Nn]),Gt)),new Bt(ot,le,We,{params:Gt,headers:Ut,context:Pn,reportProgress:ht,responseType:Ee,withCredentials:bt})}}var Rt=function(de){return de[de.Sent=0]="Sent",de[de.UploadProgress=1]="UploadProgress",de[de.ResponseHeader=2]="ResponseHeader",de[de.DownloadProgress=3]="DownloadProgress",de[de.Response=4]="Response",de[de.User=5]="User",de}(Rt||{});class Qt{constructor(se,ot=200,le="OK"){this.headers=se.headers||new Ve,this.status=void 0!==se.status?se.status:ot,this.statusText=se.statusText||le,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class qt extends Qt{constructor(se={}){super(se),this.type=Rt.ResponseHeader}clone(se={}){return new qt({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class sn extends Qt{constructor(se={}){super(se),this.type=Rt.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new sn({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Cn extends Qt{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function wn(de,se){return{body:se,headers:de.headers,context:de.context,observe:de.observe,params:de.params,reportProgress:de.reportProgress,responseType:de.responseType,withCredentials:de.withCredentials}}let Ge=(()=>{var de;class se{constructor(le){this.handler=le}request(le,Ee,We={}){let bt;if(le instanceof Bt)bt=le;else{let Gt,Pn;Gt=We.headers instanceof Ve?We.headers:new Ve(We.headers),We.params&&(Pn=We.params instanceof q?We.params:new q({fromObject:We.params})),bt=new Bt(le,Ee,void 0!==We.body?We.body:null,{headers:Gt,context:We.context,params:Pn,reportProgress:We.reportProgress,responseType:We.responseType||"json",withCredentials:We.withCredentials})}const ht=(0,l.of)(bt).pipe((0,Y.b)(Gt=>this.handler.handle(Gt)));if(le instanceof Bt||"events"===We.observe)return ht;const Ut=ht.pipe((0,W.h)(Gt=>Gt instanceof sn));switch(We.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return Ut.pipe((0,re.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return Ut.pipe((0,re.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return Ut.pipe((0,re.U)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return Ut.pipe((0,re.U)(Gt=>Gt.body))}case"response":return Ut;default:throw new Error(`Unreachable: unhandled observe type ${We.observe}}`)}}delete(le,Ee={}){return this.request("DELETE",le,Ee)}get(le,Ee={}){return this.request("GET",le,Ee)}head(le,Ee={}){return this.request("HEAD",le,Ee)}jsonp(le,Ee){return this.request("JSONP",le,{params:(new q).append(Ee,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(le,Ee={}){return this.request("OPTIONS",le,Ee)}patch(le,Ee,We={}){return this.request("PATCH",le,wn(We,Ee))}post(le,Ee,We={}){return this.request("POST",le,wn(We,Ee))}put(le,Ee,We={}){return this.request("PUT",le,wn(We,Ee))}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(Q))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();function ke(de,se){return se(de)}function Ct(de,se){return(ot,le)=>se.intercept(ot,{handle:Ee=>de(Ee,le)})}const jt=new o.OlP(""),Kt=new o.OlP(""),nn=new o.OlP("");function rn(){let de=null;return(se,ot)=>{null===de&&(de=((0,o.f3M)(jt,{optional:!0})??[]).reduceRight(Ct,ke));const le=(0,o.f3M)(o.HDt),Ee=le.add();return de(se,ot).pipe((0,ue.x)(()=>le.remove(Ee)))}}let Xt=(()=>{var de;class se extends Q{constructor(le,Ee){super(),this.backend=le,this.injector=Ee,this.chain=null,this.pendingTasks=(0,o.f3M)(o.HDt)}handle(le){if(null===this.chain){const We=Array.from(new Set([...this.injector.get(Kt),...this.injector.get(nn,[])]));this.chain=We.reduceRight((bt,ht)=>function Nt(de,se,ot){return(le,Ee)=>ot.runInContext(()=>se(le,We=>de(We,Ee)))}(bt,ht,this.injector),ke)}const Ee=this.pendingTasks.add();return this.chain(le,We=>this.backend.handle(We)).pipe((0,ue.x)(()=>this.pendingTasks.remove(Ee)))}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(be),o.LFG(o.lqb))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();const nt=/^\)\]\}',?\n/;let Ke=(()=>{var de;class se{constructor(le){this.xhrFactory=le}handle(le){if("JSONP"===le.method)throw new o.vHH(-2800,!1);const Ee=this.xhrFactory;return(Ee.\u0275loadImpl?(0,R.D)(Ee.\u0275loadImpl()):(0,l.of)(null)).pipe((0,ie.w)(()=>new K.y(bt=>{const ht=Ee.build();if(ht.open(le.method,le.urlWithParams),le.withCredentials&&(ht.withCredentials=!0),le.headers.forEach((Mn,Zn)=>ht.setRequestHeader(Mn,Zn.join(","))),le.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!le.headers.has("Content-Type")){const Mn=le.detectContentTypeHeader();null!==Mn&&ht.setRequestHeader("Content-Type",Mn)}if(le.responseType){const Mn=le.responseType.toLowerCase();ht.responseType="json"!==Mn?Mn:"text"}const Ut=le.serializeBody();let Gt=null;const Pn=()=>{if(null!==Gt)return Gt;const Mn=ht.statusText||"OK",Zn=new Ve(ht.getAllResponseHeaders()),Or=function Te(de){return"responseURL"in de&&de.responseURL?de.responseURL:/^X-Request-URL:/m.test(de.getAllResponseHeaders())?de.getResponseHeader("X-Request-URL"):null}(ht)||le.url;return Gt=new qt({headers:Zn,status:ht.status,statusText:Mn,url:Or}),Gt},$n=()=>{let{headers:Mn,status:Zn,statusText:Or,url:ti}=Pn(),Ln=null;204!==Zn&&(Ln=typeof ht.response>"u"?ht.responseText:ht.response),0===Zn&&(Zn=Ln?200:0);let qn=Zn>=200&&Zn<300;if("json"===le.responseType&&"string"==typeof Ln){const Ii=Ln;Ln=Ln.replace(nt,"");try{Ln=""!==Ln?JSON.parse(Ln):null}catch(dr){Ln=Ii,qn&&(qn=!1,Ln={error:dr,text:Ln})}}qn?(bt.next(new sn({body:Ln,headers:Mn,status:Zn,statusText:Or,url:ti||void 0})),bt.complete()):bt.error(new Cn({error:Ln,headers:Mn,status:Zn,statusText:Or,url:ti||void 0}))},Nn=Mn=>{const{url:Zn}=Pn(),Or=new Cn({error:Mn,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:Zn||void 0});bt.error(Or)};let ir=!1;const yr=Mn=>{ir||(bt.next(Pn()),ir=!0);let Zn={type:Rt.DownloadProgress,loaded:Mn.loaded};Mn.lengthComputable&&(Zn.total=Mn.total),"text"===le.responseType&&ht.responseText&&(Zn.partialText=ht.responseText),bt.next(Zn)},zr=Mn=>{let Zn={type:Rt.UploadProgress,loaded:Mn.loaded};Mn.lengthComputable&&(Zn.total=Mn.total),bt.next(Zn)};return ht.addEventListener("load",$n),ht.addEventListener("error",Nn),ht.addEventListener("timeout",Nn),ht.addEventListener("abort",Nn),le.reportProgress&&(ht.addEventListener("progress",yr),null!==Ut&&ht.upload&&ht.upload.addEventListener("progress",zr)),ht.send(Ut),bt.next({type:Rt.Sent}),()=>{ht.removeEventListener("error",Nn),ht.removeEventListener("abort",Nn),ht.removeEventListener("load",$n),ht.removeEventListener("timeout",Nn),le.reportProgress&&(ht.removeEventListener("progress",yr),null!==Ut&&ht.upload&&ht.upload.removeEventListener("progress",zr)),ht.readyState!==ht.DONE&&ht.abort()}})))}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(V.JF))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();const dt=new o.OlP("XSRF_ENABLED"),Je=new o.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vt=new o.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Re{}let y=(()=>{var de;class se{constructor(le,Ee,We){this.doc=le,this.platform=Ee,this.cookieName=We,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,V.Mx)(le,this.cookieName),this.lastCookieString=le),this.lastToken}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(V.K0),o.LFG(o.Lbi),o.LFG(Je))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();function P(de,se){const ot=de.url.toLowerCase();if(!(0,o.f3M)(dt)||"GET"===de.method||"HEAD"===de.method||ot.startsWith("http://")||ot.startsWith("https://"))return se(de);const le=(0,o.f3M)(Re).getToken(),Ee=(0,o.f3M)(vt);return null!=le&&!de.headers.has(Ee)&&(de=de.clone({headers:de.headers.set(Ee,le)})),se(de)}var Ae=function(de){return de[de.Interceptors=0]="Interceptors",de[de.LegacyInterceptors=1]="LegacyInterceptors",de[de.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",de[de.NoXsrfProtection=3]="NoXsrfProtection",de[de.JsonpSupport=4]="JsonpSupport",de[de.RequestsMadeViaParent=5]="RequestsMadeViaParent",de[de.Fetch=6]="Fetch",de}(Ae||{});function it(de,se){return{\u0275kind:de,\u0275providers:se}}function St(...de){const se=[Ge,Ke,Xt,{provide:Q,useExisting:Xt},{provide:be,useExisting:Ke},{provide:Kt,useValue:P,multi:!0},{provide:dt,useValue:!0},{provide:Re,useClass:y}];for(const ot of de)se.push(...ot.\u0275providers);return(0,o.MR2)(se)}const Pt=new o.OlP("LEGACY_INTERCEPTOR_FN");let S=(()=>{var de;class se{}return(de=se).\u0275fac=function(le){return new(le||de)},de.\u0275mod=o.oAB({type:de}),de.\u0275inj=o.cJS({providers:[St(it(Ae.LegacyInterceptors,[{provide:Pt,useFactory:rn},{provide:Kt,useExisting:Pt,multi:!0}]))]}),se})()},5879:(wt,Pe,C)=>{C.d(Pe,{$8M:()=>Ya,$WT:()=>bi,$Z:()=>bg,AFp:()=>Bp,ALo:()=>iv,AaK:()=>be,Akn:()=>Ws,AsE:()=>af,BQk:()=>qu,CHM:()=>js,CRH:()=>Dv,DdM:()=>W_,Dn7:()=>av,EJc:()=>Yw,EiD:()=>Tp,EpF:()=>hm,F$t:()=>vm,F4k:()=>fm,FYo:()=>Gp,FiY:()=>Hl,Flj:()=>Ns,G48:()=>xS,Gf:()=>Cv,GfV:()=>Wp,GkF:()=>Wh,Gpc:()=>tt,Gre:()=>Qm,HDt:()=>Wv,Hsn:()=>ym,Ikx:()=>lf,JOm:()=>Ss,JVY:()=>hb,JZr:()=>Ne,Jf7:()=>og,KtG:()=>La,L6k:()=>fb,LAX:()=>gb,LFG:()=>L,LSH:()=>qd,Lbi:()=>oh,Lck:()=>zD,MAs:()=>cm,MMx:()=>B_,MR2:()=>Xd,NdJ:()=>Kh,O4$:()=>Va,Ojb:()=>Ub,OlP:()=>cr,Oqu:()=>sf,P3R:()=>Op,PXZ:()=>ES,Q6J:()=>$h,QGY:()=>Zh,QbO:()=>Hb,Qsj:()=>rC,R0b:()=>Ri,RDi:()=>ob,Rgc:()=>au,SBq:()=>$c,Sil:()=>Xw,Suo:()=>Ev,TTD:()=>Bn,TgZ:()=>Zu,Tol:()=>Nm,Udp:()=>tf,VKq:()=>Z_,VuI:()=>oM,W1O:()=>Tv,WFA:()=>Yh,WLB:()=>K_,X6Q:()=>OS,XFs:()=>ze,Xpm:()=>Go,Xq5:()=>Zg,Xts:()=>Vc,Y36:()=>rc,YKP:()=>F_,YNc:()=>sm,Yjl:()=>Zo,Yz7:()=>jt,Z0I:()=>Xt,ZZ4:()=>Uf,_Bn:()=>N_,_UZ:()=>Gh,_Vd:()=>Uc,_c5:()=>ZS,_uU:()=>Um,aQg:()=>$f,c2e:()=>Gv,cJS:()=>nn,cg1:()=>uf,d8E:()=>cf,dDg:()=>vS,dqk:()=>Ke,eBb:()=>pb,eFA:()=>ny,eJc:()=>Mf,ekj:()=>nf,eoX:()=>Xv,f3M:()=>xe,g9A:()=>Vp,gM2:()=>lv,h0i:()=>Il,hGG:()=>KS,hij:()=>Ju,iGM:()=>bv,ifc:()=>We,ip1:()=>zv,jDz:()=>V_,kEZ:()=>Y_,kL8:()=>a_,kcU:()=>go,l5B:()=>q_,lG2:()=>lo,lcZ:()=>ov,lqb:()=>ra,lri:()=>qv,mCW:()=>wu,n5z:()=>yo,n_E:()=>id,oAB:()=>Wo,oJD:()=>Ip,oxw:()=>_m,pB0:()=>mb,q3G:()=>Dl,q4F:()=>Zp,qFp:()=>aM,qLn:()=>Ja,qOj:()=>Nh,qZA:()=>Ku,qbA:()=>Q_,qzn:()=>ql,rFY:()=>X_,rWj:()=>Qv,rg0:()=>ne,s9C:()=>qh,sBO:()=>PS,s_b:()=>ad,soG:()=>cd,tb:()=>Ff,tdS:()=>ha,tp0:()=>Ul,uIk:()=>Lh,vHH:()=>q,vpe:()=>ia,wAp:()=>mc,xi3:()=>sv,xp6:()=>vg,ynx:()=>Yu,z2F:()=>bc,z3N:()=>Ma,zSh:()=>th,zs3:()=>Gs});var o=C(8645),l=C(7394),R=C(5592),K=C(3019),Y=C(5619),W=C(2096),re=C(3020),ue=C(4664),ie=C(3997);function V(e){for(let t in e)if(e[t]===V)return t;throw Error("Could not find renamed property on target object.")}function Q(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function be(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(be).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 He=V({__forward_ref__:V});function tt(e){return e.__forward_ref__=tt,e.toString=function(){return be(this())},e}function $e(e){return X(e)?e():e}function X(e){return"function"==typeof e&&e.hasOwnProperty(He)&&e.__forward_ref__===tt}function Ye(e){return e&&!!e.\u0275providers}const Ne="https://g.co/ng/security#xss";class q extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function xt(e,t){throw new q(-201,!1)}function Be(e,t){null==e&&function Fe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function jt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function rn(e){return an(e,Vn)||an(e,Hn)}function Xt(e){return null!==rn(e)}function an(e,t){return e.hasOwnProperty(t)?e[t]:null}function zt(e){return e&&(e.hasOwnProperty(xn)||e.hasOwnProperty(Un))?e[xn]:null}const Vn=V({\u0275prov:V}),xn=V({\u0275inj:V}),Hn=V({ngInjectableDef:V}),Un=V({ngInjectorDef:V});var ze=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}(ze||{});let G;function pe(e){const t=G;return G=e,t}function nt(e,t,n){const r=rn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ze.Optional?null:void 0!==t?t:void xt(be(e))}const Ke=globalThis,Pt={},Ht="__NG_DI_FLAG__",Yt="ngTempTokenPath",Oe=/\n/gm,U="__source";let B;function H(e){const t=B;return B=e,t}function j(e,t=ze.Default){if(void 0===B)throw new q(-203,!1);return null===B?nt(e,void 0,t):B.get(e,t&ze.Optional?null:void 0,t)}function L(e,t=ze.Default){return(function Ie(){return G}()||j)($e(e),t)}function xe(e,t=ze.Default){return L(e,ce(t))}function ce(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Se(e){const t=[];for(let n=0;n<e.length;n++){const r=$e(e[n]);if(Array.isArray(r)){if(0===r.length)throw new q(900,!1);let i,s=ze.Default;for(let u=0;u<r.length;u++){const d=r[u],b=de(d);"number"==typeof b?-1===b?i=d.token:s|=b:i=d}t.push(L(i,s))}else t.push(L(r))}return t}function at(e,t){return e[Ht]=t,e.prototype[Ht]=t,e}function de(e){return e[Ht]}function le(e){return{toString:e}.toString()}var Ee=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ee||{}),We=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(We||{});const bt={},ht=[],Ut=V({\u0275cmp:V}),Gt=V({\u0275dir:V}),Pn=V({\u0275pipe:V}),$n=V({\u0275mod:V}),Nn=V({\u0275fac:V}),ir=V({__NG_ELEMENT_ID__:V}),yr=V({__NG_ENV_ID__:V});function zr(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}function Mn(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const s=n[r++],u=n[r++],d=n[r++];e.setAttribute(t,u,d,s)}else{const s=i,u=n[++r];Or(s)?e.setProperty(t,s,u):e.setAttribute(t,s,u),r++}}return r}function Zn(e){return 3===e||4===e||6===e}function Or(e){return 64===e.charCodeAt(0)}function ti(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||Ln(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Ln(e,t,n,r,i){let s=0,u=e.length;if(-1===t)u=-1;else for(;s<e.length;){const d=e[s++];if("number"==typeof d){if(d===t){u=-1;break}if(d>t){u=s-1;break}}}for(;s<e.length;){const d=e[s];if("number"==typeof d)break;if(d===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==u&&(e.splice(u,0,t),s=u+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const qn="ng-template";function Ii(e,t,n){let r=0,i=!0;for(;r<e.length;){let s=e[r++];if("string"==typeof s&&i){const u=e[r++];if(n&&"class"===s&&-1!==zr(u.toLowerCase(),t,0))return!0}else{if(1===s){for(;r<e.length&&"string"==typeof(s=e[r++]);)if(s.toLowerCase()===t)return!0;return!1}"number"==typeof s&&(i=!1)}}return!1}function dr(e){return 4===e.type&&e.value!==qn}function ui(e,t,n){return t===(4!==e.type||n?e.value:qn)}function Gr(e,t,n){let r=4;const i=e.attrs||[],s=function la(e){for(let t=0;t<e.length;t++)if(Zn(e[t]))return t;return e.length}(i);let u=!1;for(let d=0;d<t.length;d++){const b=t[d];if("number"!=typeof b){if(!u)if(4&r){if(r=2|1&r,""!==b&&!ui(e,b,n)||""===b&&1===t.length){if(hr(r))return!1;u=!0}}else{const O=8&r?b:t[++d];if(8&r&&null!==e.attrs){if(!Ii(e.attrs,O,n)){if(hr(r))return!1;u=!0}continue}const _e=di(8&r?"class":b,i,dr(e),n);if(-1===_e){if(hr(r))return!1;u=!0;continue}if(""!==O){let qe;qe=_e>s?"":i[_e+1].toLowerCase();const ct=8&r?qe:null;if(ct&&-1!==zr(ct,O,0)||2&r&&O!==qe){if(hr(r))return!1;u=!0}}}}else{if(!u&&!hr(r)&&!hr(b))return!1;if(u&&hr(b))continue;u=!1,r=b|1&r}}return hr(r)||u}function hr(e){return 0==(1&e)}function di(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const u=t[i];if(u===e)return i;if(3===u||6===u)s=!0;else{if(1===u||2===u){let d=t[++i];for(;"string"==typeof d;)d=t[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=s?1:2}return-1}return function Is(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function $o(e,t,n=!1){for(let r=0;r<t.length;r++)if(Gr(e,t[r],n))return!0;return!1}function Eo(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function ki(e,t){return e?":not("+t.trim()+")":t}function Do(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let u=e[n];if("string"==typeof u)if(2&r){const d=e[++n];i+="["+u+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!hr(u)&&(t+=ki(s,i),i=""),r=u,s=s||!hr(r);n++}return""!==i&&(t+=ki(s,i)),t}function Go(e){return le(()=>{const t=Mo(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ee.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||We.Emulated,styles:e.styles||ht,_:null,schemas:e.schemas||null,tView:null,id:""};Fi(n);const r=e.dependencies;return n.directiveDefs=Yi(r,!1),n.pipeDefs=Yi(r,!0),n.id=function ni(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 i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Ki(e){return An(e)||Kn(e)}function wo(e){return null!==e}function Wo(e){return le(()=>({type:e.type,bootstrap:e.bootstrap||ht,declarations:e.declarations||ht,imports:e.imports||ht,exports:e.exports||ht,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ni(e,t){if(null==e)return bt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}function lo(e){return le(()=>{const t=Mo(e);return Fi(t),t})}function Zo(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 An(e){return e[Ut]||null}function Kn(e){return e[Gt]||null}function or(e){return e[Pn]||null}function bi(e){const t=An(e)||Kn(e)||or(e);return null!==t&&t.standalone}function Pr(e,t){const n=e[$n]||null;if(!n&&!0===t)throw new Error(`Type ${be(e)} does not have '\u0275mod' property.`);return n}function Mo(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||bt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ht,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ni(e.inputs,t),outputs:Ni(e.outputs)}}function Fi(e){e.features?.forEach(t=>t(e))}function Yi(e,t){if(!e)return null;const n=t?or:Ki;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(wo)}const Xn=0,Vt=1,un=2,Jn=3,br=4,Ai=5,ur=6,Ci=7,ar=8,Ei=9,hi=10,hn=11,Qr=12,To=13,Li=14,lr=15,fi=16,qi=17,Wr=18,Io=19,Ao=20,Qi=21,pi=22,Xi=23,gi=24,En=25,Ko=1,Cr=2,er=7,ri=9,Er=11;function Rr(e){return Array.isArray(e)&&"object"==typeof e[Ko]}function fr(e){return Array.isArray(e)&&!0===e[Ko]}function Yo(e){return 0!=(4&e.flags)}function Ji(e){return e.componentOffset>-1}function Vr(e){return 1==(1&e.flags)}function kr(e){return!!e.template}function qo(e){return 0!=(512&e[un])}function uo(e,t){return e.hasOwnProperty(Nn)?e[Nn]:null}const jr=Symbol("SIGNAL");function Hr(e,t){return(null===e||"object"!=typeof e)&&Object.is(e,t)}let gr=null,wi=!1;function Ur(e){const t=gr;return gr=e,t}const eo={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function hs(e){if(wi)throw new Error("");if(null===gr)return;const t=gr.nextProducerIndex++;ji(gr),t<gr.producerNode.length&&gr.producerNode[t]!==e&&gs(gr)&&fn(gr.producerNode[t],gr.producerIndexOfThis[t]),gr.producerNode[t]!==e&&(gr.producerNode[t]=e,gr.producerIndexOfThis[t]=gs(gr)?da(e,gr,t):0),gr.producerLastReadVersion[t]=e.version}function fs(e){if(!gs(e)||e.dirty){if(!e.producerMustRecompute(e)&&!ua(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Jo(e){if(void 0===e.liveConsumerNode)return;const t=wi;wi=!0;try{for(const n of e.liveConsumerNode)n.dirty||ho(n)}finally{wi=t}}function es(){return!1!==gr?.consumerAllowSignalWrites}function ho(e){e.dirty=!0,Jo(e),e.consumerMarkedDirty?.(e)}function ps(e){return e&&(e.nextProducerIndex=0),Ur(e)}function mr(e,t){if(Ur(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(gs(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)fn(e.producerNode[n],e.producerIndexOfThis[n]);for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ua(e){ji(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(fs(n),r!==n.version))return!0}return!1}function Rs(e){if(ji(e),gs(e))for(let t=0;t<e.producerNode.length;t++)fn(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function da(e,t,n){if(ks(e),ji(e),0===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=da(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function fn(e,t){if(ks(e),ji(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)fn(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];ji(i),i.producerIndexOfThis[r]=t}}function gs(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function ji(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ks(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ns(e,t){const n=Object.create(il);n.computation=e,t?.equal&&(n.equal=t.equal);const r=()=>{if(fs(n),hs(n),n.value===ms)throw n.error;return n.value};return r[jr]=n,r}const ts=Symbol("UNSET"),Fs=Symbol("COMPUTING"),ms=Symbol("ERRORED"),il={...eo,value:ts,dirty:!0,error:null,equal:Hr,producerMustRecompute:e=>e.value===ts||e.value===Fs,producerRecomputeValue(e){if(e.value===Fs)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Fs;const n=ps(e);let r;try{r=e.computation()}catch(i){r=ms,e.error=i}finally{mr(e,n)}t!==ts&&t!==ms&&r!==ms&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let Bs=function Ls(){throw new Error};function _s(){Bs()}let Vs=null;function ha(e,t){const n=Object.create(vs);function r(){return hs(n),n.value}return n.value=e,t?.equal&&(n.equal=t.equal),r.set=g,r.update=A,r.mutate=fe,r.asReadonly=M,r[jr]=n,r}const vs={...eo,equal:Hr,readonlyFn:void 0};function ys(e){e.version++,Jo(e),Vs?.()}function g(e){const t=this[jr];es()||_s(),t.equal(t.value,e)||(t.value=e,ys(t))}function A(e){es()||_s(),g.call(this,e(this[jr].value))}function fe(e){const t=this[jr];es()||_s(),e(t.value),ys(t)}function M(){const e=this[jr];if(void 0===e.readonlyFn){const t=()=>this();t[jr]=e,e.readonlyFn=t}return e.readonlyFn}function ne(e){const t=Ur(null);try{return e()}finally{Ur(t)}}const yt=()=>{},kt={...eo,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:yt};class zn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Bn(){return bn}function bn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qn),sr}function sr(){const e=Zr(this),t=e?.current;if(t){const n=e.previous;if(n===bt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qn(e,t,n,r){const i=this.declaredInputs[n],s=Zr(e)||function Si(e,t){return e[_r]=t}(e,{previous:bt,current:null}),u=s.current||(s.current={}),d=s.previous,b=d[i];u[i]=new zn(b&&b.currentValue,t,d===bt),e[r]=t}Bn.ngInherit=!0;const _r="__ngSimpleChanges__";function Zr(e){return e[_r]||null}const Dr=function(e,t,n){},to="svg";function tr(e){for(;Array.isArray(e);)e=e[Xn];return e}function no(e,t){return tr(t[e])}function Kr(e,t){return tr(t[e.index])}function Ys(e,t){return e.data[t]}function bs(e,t){return e[t]}function Jr(e,t){const n=t[e];return Rr(n)?n:n[Xn]}function Cs(e,t){return null==t?null:e[t]}function sl(e){e[qi]=0}function Ui(e){1024&e[un]||(e[un]|=1024,al(e,1))}function ka(e){1024&e[un]&&(e[un]&=-1025,al(e,-1))}function al(e,t){let n=e[Jn];if(null===n)return;n[Ai]+=t;let r=n;for(n=n[Jn];null!==n&&(1===t&&1===r[Ai]||-1===t&&0===r[Ai]);)n[Ai]+=t,r=n,n=n[Jn]}const dn={lFrame:Gn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Sr(){return dn.bindingsEnabled}function fo(){return null!==dn.skipHydrationRootTNode}function Mt(){return dn.lFrame.lView}function Rn(){return dn.lFrame.tView}function js(e){return dn.lFrame.contextLView=e,e[ar]}function La(e){return dn.lFrame.contextLView=null,e}function $r(){let e=po();for(;null!==e&&64===e.type;)e=e.parent;return e}function po(){return dn.lFrame.currentTNode}function ei(e,t){const n=dn.lFrame;n.currentTNode=e,n.isParent=t}function rs(){return dn.lFrame.isParent}function Hs(){dn.lFrame.isParent=!1}function Yr(){const e=dn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Es(){return dn.lFrame.bindingIndex++}function f(e){const t=dn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _(e,t){const n=dn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Z(t)}function Z(e){dn.lFrame.currentDirectiveIndex=e}function oe(e){const t=dn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function lt(){return dn.lFrame.currentQueryIndex}function It(e){dn.lFrame.currentQueryIndex=e}function mt(e){const t=e[Vt];return 2===t.type?t.declTNode:1===t.type?e[ur]:null}function Jt(e,t,n){if(n&ze.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&ze.Host||(i=mt(s),null===i||(s=s[Li],10&i.type))););if(null===i)return!1;t=i,e=s}const r=dn.lFrame=Mr();return r.currentTNode=t,r.lView=e,!0}function vn(e){const t=Mr(),n=e[Vt];dn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Mr(){const e=dn.lFrame,t=null===e?null:e.child;return null===t?Gn(e):t}function Gn(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 ii(){const e=dn.lFrame;return dn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $i=ii;function Ro(){const e=ii();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 qr(){return dn.lFrame.selectedIndex}function No(e){dn.lFrame.selectedIndex=e}function vr(){const e=dn.lFrame;return Ys(e.tView,e.selectedIndex)}function Va(){dn.lFrame.currentNamespace=to}function go(){!function xl(){dn.lFrame.currentNamespace=null}()}let mo=!0;function Us(){return mo}function _o(e){mo=e}function Qs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:d,ngAfterViewInit:b,ngAfterViewChecked:O,ngOnDestroy:$}=s;u&&(e.contentHooks??=[]).push(-n,u),d&&((e.contentHooks??=[]).push(n,d),(e.contentCheckHooks??=[]).push(n,d)),b&&(e.viewHooks??=[]).push(-n,b),O&&((e.viewHooks??=[]).push(n,O),(e.viewCheckHooks??=[]).push(n,O)),null!=$&&(e.destroyHooks??=[]).push(n,$)}}function ul(e,t,n){Dc(e,t,3,n)}function ja(e,t,n,r){(3&e[un])===n&&Dc(e,t,n,r)}function dl(e,t){let n=e[un];(3&n)===t&&(n&=8191,n+=1,e[un]=n)}function Dc(e,t,n,r){const s=r??-1,u=t.length-1;let d=0;for(let b=void 0!==r?65535&e[qi]:0;b<u;b++)if("number"==typeof t[b+1]){if(d=t[b],null!=r&&d>=r)break}else t[b]<0&&(e[qi]+=65536),(d<s||-1==s)&&(wc(e,n,t,b),e[qi]=(4294901760&e[qi])+b+2),b++}function Ha(e,t){Dr(4,e,t);const n=Ur(null);try{t.call(e)}finally{Ur(n),Dr(5,e,t)}}function wc(e,t,n,r){const i=n[r]<0,s=n[r+1],d=e[i?-n[r]:n[r]];i?e[un]>>13<e[qi]>>16&&(3&e[un])===t&&(e[un]+=8192,Ha(d,s)):Ha(d,s)}const vo=-1;class Xs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ua(e){return e!==vo}function $s(e){return 32767&e}function Js(e,t){let n=function pl(e){return e>>16}(e),r=t;for(;n>0;)r=r[Li],n--;return r}let kl=!0;function $a(e){const t=kl;return kl=e,t}const Nl=255,Sc=5;let Mc=0;const Fo={};function za(e,t){const n=Da(e,t);if(-1!==n)return n;const r=t[Vt];r.firstCreatePass&&(e.injectorIndex=t.length,gl(r.data,e),gl(t,null),gl(r.blueprint,null));const i=ea(e,t),s=e.injectorIndex;if(Ua(i)){const u=$s(i),d=Js(i,t),b=d[Vt].data;for(let O=0;O<8;O++)t[s+O]=d[u+O]|b[u+O]}return t[s+8]=i,s}function gl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Da(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ea(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Ka(i),null===r)return vo;if(n++,i=i[Li],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return vo}function zs(e,t,n){!function Fl(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ir)&&(r=n[ir]),null==r&&(r=n[ir]=Mc++);const i=r&Nl;t.data[e+(i>>Sc)]|=1<<i}(e,t,n)}function Ga(e,t,n){if(n&ze.Optional||void 0!==e)return e;xt()}function Wa(e,t,n,r){if(n&ze.Optional&&void 0===r&&(r=null),!(n&(ze.Self|ze.Host))){const i=e[Ei],s=pe(void 0);try{return i?i.get(t,r,n&ze.Optional):nt(t,r,n&ze.Optional)}finally{pe(s)}}return Ga(r,0,n)}function Za(e,t,n,r=ze.Default,i){if(null!==e){if(2048&t[un]&&!(r&ze.Self)){const u=function Ic(e,t,n,r,i){let s=e,u=t;for(;null!==s&&null!==u&&2048&u[un]&&!(512&u[un]);){const d=Ll(s,u,n,r|ze.Self,Fo);if(d!==Fo)return d;let b=s.parent;if(!b){const O=u[Ao];if(O){const $=O.get(n,Fo,r);if($!==Fo)return $}b=Ka(u),u=u[Li]}s=b}return i}(e,t,n,r,Fo);if(u!==Fo)return u}const s=Ll(e,t,n,r,Fo);if(s!==Fo)return s}return Wa(t,n,r,i)}function Ll(e,t,n,r,i){const s=function wa(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ir)?e[ir]:void 0;return"number"==typeof t?t>=0?t&Nl:Tc:t}(n);if("function"==typeof s){if(!Jt(t,e,r))return r&ze.Host?Ga(i,0,r):Wa(t,n,r,i);try{let u;if(u=s(r),null!=u||r&ze.Optional)return u;xt()}finally{$i()}}else if("number"==typeof s){let u=null,d=Da(e,t),b=vo,O=r&ze.Host?t[lr][ur]:null;for((-1===d||r&ze.SkipSelf)&&(b=-1===d?ea(e,t):t[d+8],b!==vo&&_l(r,!1)?(u=t[Vt],d=$s(b),t=Js(b,t)):d=-1);-1!==d;){const $=t[Vt];if(ss(s,d,$.data)){const _e=du(d,t,n,u,r,O);if(_e!==Fo)return _e}b=t[d+8],b!==vo&&_l(r,t[Vt].data[d+8]===O)&&ss(s,d,t)?(u=$,d=$s(b),t=Js(b,t)):d=-1}}return i}function du(e,t,n,r,i,s){const u=t[Vt],d=u.data[e+8],$=Gi(d,u,n,null==r?Ji(d)&&kl:r!=u&&0!=(3&d.type),i&ze.Host&&s===d);return null!==$?os(t,u,$,d):Fo}function Gi(e,t,n,r,i){const s=e.providerIndexes,u=t.data,d=1048575&s,b=e.directiveStart,$=s>>20,qe=i?d+$:e.directiveEnd;for(let ct=r?d:d+$;ct<qe;ct++){const Dt=u[ct];if(ct<b&&n===Dt||ct>=b&&Dt.type===n)return ct}if(i){const ct=u[b];if(ct&&kr(ct)&&ct.type===n)return b}return null}function os(e,t,n,r){let i=e[n];const s=t.data;if(function hl(e){return e instanceof Xs}(i)){const u=i;u.resolving&&function rt(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new q(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ye(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}(s[n]));const d=$a(u.canSeeViewProviders);u.resolving=!0;const O=u.injectImpl?pe(u.injectImpl):null;Jt(e,r,ze.Default);try{i=e[n]=u.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function zi(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const u=bn(t);(n.preOrderHooks??=[]).push(e,u),(n.preOrderCheckHooks??=[]).push(e,u)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],t)}finally{null!==O&&pe(O),$a(d),u.resolving=!1,$i()}}return i}function ss(e,t,n){return!!(n[t+(e>>Sc)]&1<<e)}function _l(e,t){return!(e&ze.Self||e&ze.Host&&t)}class Fr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Za(this._tNode,this._lView,t,ce(r),n)}}function Tc(){return new Fr($r(),Mt())}function yo(e){return le(()=>{const t=e.prototype.constructor,n=t[Nn]||Bl(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Nn]||Bl(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Bl(e){return X(e)?()=>{const t=Bl($e(e));return t&&t()}:uo(e)}function Ka(e){const t=e[Vt],n=t.type;return 2===n?t.declTNode:1===n?e[ur]:null}function Ya(e){return function ml(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const s=n[i];if(Zn(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}($r(),e)}const Lo="__parameters__";function he(e,t,n){return le(()=>{const r=function N(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const u=new i(...s);return d.annotation=u,d;function d(b,O,$){const _e=b.hasOwnProperty(Lo)?b[Lo]:Object.defineProperty(b,Lo,{value:[]})[Lo];for(;_e.length<=$;)_e.push(null);return(_e[$]=_e[$]||[]).push(u),b}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Qa(e,t){e.forEach(n=>Array.isArray(n)?Qa(n,t):t(n))}function hu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yl(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function io(e,t,n){let r=bl(e,t);return r>=0?e[1|r]=n:(r=~r,function fu(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ac(e,t){const n=bl(e,t);if(n>=0)return e[1|n]}function bl(e,t){return function bd(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),u=e[s<<n];if(t===u)return s<<n;u>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const Hl=at(he("Optional"),8),Ul=at(he("SkipSelf"),4);function Gl(e){return 128==(128&e.flags)}var Ss=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ss||{});const Bo=/^>|^->|<!--|-->|--!>|<!-$/g,Wl=/(<|>)/g,Pc="\u200b$1\u200b";const Pd=new Map;let Ay=0;const kd="__ngContext__";function so(e,t){Rr(t)?(e[kd]=t[Io],function xy(e){Pd.set(e[Io],e)}(t)):e[kd]=t}let Nd;function Fd(e,t){return Nd(e,t)}function kc(e){const t=e[Jn];return fr(t)?t[Jn]:t}function tp(e){return rp(e[Qr])}function np(e){return rp(e[br])}function rp(e){for(;null!==e&&!fr(e);)e=e[br];return e}function Zl(e,t,n,r,i){if(null!=r){let s,u=!1;fr(r)?s=r:Rr(r)&&(u=!0,r=r[Xn]);const d=tr(r);0===e&&null!==n?null==i?ap(t,n,d):Cl(t,n,d,i||null,!0):1===e&&null!==n?Cl(t,n,d,i||null,!0):2===e?function Cu(e,t,n){const r=yu(e,t);r&&function qy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,d,u):3===e&&t.destroyNode(d),null!=s&&function Jy(e,t,n,r,i){const s=n[er];s!==tr(n)&&Zl(t,e,r,s,i);for(let d=Er;d<n.length;d++){const b=n[d];Fc(b[Vt],b,e,t,r,s)}}(t,e,s,n,i)}}function Ld(e,t){return e.createComment(function Zf(e){return e.replace(Bo,t=>t.replace(Wl,Pc))}(t))}function _u(e,t,n){return e.createElement(t,n)}function op(e,t){const n=e[ri],r=n.indexOf(t);ka(t),n.splice(r,1)}function vu(e,t){if(e.length<=Er)return;const n=Er+t,r=e[n];if(r){const i=r[fi];null!==i&&i!==e&&op(i,r),t>0&&(e[n-1][br]=r[br]);const s=Vl(e,Er+t);!function Uy(e,t){Fc(e,t,t[hn],2,null,null),t[Xn]=null,t[ur]=null}(r[Vt],r);const u=s[Wr];null!==u&&u.detachView(s[Vt]),r[Jn]=null,r[br]=null,r[un]&=-129}return r}function Bd(e,t){if(!(256&t[un])){const n=t[hn];t[Xi]&&Rs(t[Xi]),t[gi]&&Rs(t[gi]),n.destroyNode&&Fc(e,t,n,3,null,null),function Gy(e){let t=e[Qr];if(!t)return Vd(e[Vt],e);for(;t;){let n=null;if(Rr(t))n=t[Qr];else{const r=t[Er];r&&(n=r)}if(!n){for(;t&&!t[br]&&t!==e;)Rr(t)&&Vd(t[Vt],t),t=t[Jn];null===t&&(t=e),Rr(t)&&Vd(t[Vt],t),n=t&&t[br]}t=n}}(t)}}function Vd(e,t){if(!(256&t[un])){t[un]&=-129,t[un]|=256,function Yy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof Xs)){const s=n[r+1];if(Array.isArray(s))for(let u=0;u<s.length;u+=2){const d=i[s[u]],b=s[u+1];Dr(4,d,b);try{b.call(d)}finally{Dr(5,d,b)}}else{Dr(4,i,s);try{s.call(i)}finally{Dr(5,i,s)}}}}}(e,t),function Ky(e,t){const n=e.cleanup,r=t[Ci];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const u=n[s+3];u>=0?r[u]():r[-u].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[Ci]=null);const i=t[Qi];if(null!==i){t[Qi]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,t),1===t[Vt].type&&t[hn].destroy();const n=t[fi];if(null!==n&&fr(t[Jn])){n!==t[Jn]&&op(n,t);const r=t[Wr];null!==r&&r.detachView(e)}!function Py(e){Pd.delete(e[Io])}(t)}}function jd(e,t,n){return function sp(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Xn];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===We.None||s===We.Emulated)return null}return Kr(r,n)}}(e,t.parent,n)}function Cl(e,t,n,r,i){e.insertBefore(t,n,r,i)}function ap(e,t,n){e.appendChild(t,n)}function lp(e,t,n,r,i){null!==r?Cl(e,t,n,r,i):ap(e,t,n)}function yu(e,t){return e.parentNode(t)}function cp(e,t,n){return dp(e,t,n)}let Hd,Eu,Gd,Du,dp=function up(e,t,n){return 40&e.type?Kr(e,n):null};function bu(e,t,n,r){const i=jd(e,r,t),s=t[hn],d=cp(r.parent||t[ur],r,t);if(null!=i)if(Array.isArray(n))for(let b=0;b<n.length;b++)lp(s,i,n[b],d,!1);else lp(s,i,n,d,!1);void 0!==Hd&&Hd(s,r,t,n,i)}function Nc(e,t){if(null!==t){const n=t.type;if(3&n)return Kr(t,e);if(4&n)return Ud(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Nc(e,r);{const i=e[t.index];return fr(i)?Ud(-1,i):tr(i)}}if(32&n)return Fd(t,e)()||tr(e[t.index]);{const r=fp(e,t);return null!==r?Array.isArray(r)?r[0]:Nc(kc(e[lr]),r):Nc(e,t.next)}}return null}function fp(e,t){return null!==t?e[lr][ur].projection[t.projection]:null}function Ud(e,t){const n=Er+e+1;if(n<t.length){const r=t[n],i=r[Vt].firstChild;if(null!==i)return Nc(r,i)}return t[er]}function $d(e,t,n,r,i,s,u){for(;null!=n;){const d=r[n.index],b=n.type;if(u&&0===t&&(d&&so(tr(d),r),n.flags|=2),32!=(32&n.flags))if(8&b)$d(e,t,n.child,r,i,s,!1),Zl(t,e,i,d,s);else if(32&b){const O=Fd(n,r);let $;for(;$=O();)Zl(t,e,i,$,s);Zl(t,e,i,d,s)}else 16&b?gp(e,t,r,n,i,s):Zl(t,e,i,d,s);n=u?n.projectionNext:n.next}}function Fc(e,t,n,r,i,s){$d(n,r,e.firstChild,t,i,s,!1)}function gp(e,t,n,r,i,s){const u=n[lr],b=u[ur].projection[r.projection];if(Array.isArray(b))for(let O=0;O<b.length;O++)Zl(t,e,i,b[O],s);else{let O=b;const $=u[Jn];Gl(r)&&(O.flags|=128),$d(e,t,O,$,i,s,!0)}}function mp(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function _p(e,t,n){const{mergedAttrs:r,classes:i,styles:s}=n;null!==r&&Mn(e,t,r),null!==i&&mp(e,t,i),null!==s&&function tb(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}function Kl(e){return function zd(){if(void 0===Eu&&(Eu=null,Ke.trustedTypes))try{Eu=Ke.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Eu}()?.createHTML(e)||e}function ob(e){Gd=e}function Yl(){if(void 0!==Gd)return Gd;if(typeof document<"u")return document;throw new q(210,!1)}function Wd(){if(void 0===Du&&(Du=null,Ke.trustedTypes))try{Du=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Du}function vp(e){return Wd()?.createHTML(e)||e}function bp(e){return Wd()?.createScriptURL(e)||e}class El{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ne})`}}class sb extends El{getTypeName(){return"HTML"}}class ab extends El{getTypeName(){return"Style"}}class lb extends El{getTypeName(){return"Script"}}class cb extends El{getTypeName(){return"URL"}}class ub extends El{getTypeName(){return"ResourceURL"}}function Ma(e){return e instanceof El?e.changingThisBreaksApplicationSecurity:e}function ql(e,t){const n=function db(e){return e instanceof El&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ne})`)}return n===t}function hb(e){return new sb(e)}function fb(e){return new ab(e)}function pb(e){return new lb(e)}function gb(e){return new cb(e)}function mb(e){return new ub(e)}class _b{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Kl(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class vb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Kl(t),n}}const bb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function wu(e){return(e=String(e)).match(bb)?e:"unsafe:"+e}function Ta(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Lc(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ep=Ta("area,br,col,hr,img,wbr"),Dp=Ta("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wp=Ta("rp,rt"),Zd=Lc(Ep,Lc(Dp,Ta("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")),Lc(wp,Ta("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")),Lc(wp,Dp)),Kd=Ta("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sp=Lc(Kd,Ta("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"),Ta("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")),Cb=Ta("script,style,template");class Eb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Zd.hasOwnProperty(n))return this.sanitizedSomething=!0,!Cb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),u=s.name,d=u.toLowerCase();if(!Sp.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let b=s.value;Kd[d]&&(b=wu(b)),this.buf.push(" ",u,'="',Mp(b),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Zd.hasOwnProperty(n)&&!Ep.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Mp(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 Db=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wb=/([^\#-~ |!])/g;function Mp(e){return e.replace(/&/g,"&").replace(Db,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Su;function Tp(e,t){let n=null;try{Su=Su||function Cp(e){const t=new vb(e);return function yb(){try{return!!(new window.DOMParser).parseFromString(Kl(""),"text/html")}catch{return!1}}()?new _b(t):t}(e);let r=t?String(t):"";n=Su.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Su.getInertBodyElement(r)}while(r!==s);return Kl((new Eb).sanitizeChildren(Yd(n)||n))}finally{if(n){const r=Yd(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Yd(e){return"content"in e&&function Sb(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Dl=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}(Dl||{});function Ip(e){const t=Bc();return t?vp(t.sanitize(Dl.HTML,e)||""):ql(e,"HTML")?vp(Ma(e)):Tp(Yl(),ve(e))}function qd(e){const t=Bc();return t?t.sanitize(Dl.URL,e)||"":ql(e,"URL")?Ma(e):wu(ve(e))}function Ap(e){const t=Bc();if(t)return bp(t.sanitize(Dl.RESOURCE_URL,e)||"");if(ql(e,"ResourceURL"))return bp(Ma(e));throw new q(904,!1)}function Op(e,t,n){return function Ob(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ap:qd}(t,n)(e)}function Bc(){const e=Mt();return e&&e[hi].sanitizer}class cr{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=jt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Vc=new cr("ENVIRONMENT_INITIALIZER"),xp=new cr("INJECTOR",-1),Pp=new cr("INJECTOR_DEF_TYPES");class Qd{get(t,n=Pt){if(n===Pt){const r=new Error(`NullInjectorError: No provider for ${be(t)}!`);throw r.name="NullInjectorError",r}return n}}function Xd(e){return{\u0275providers:e}}function xb(...e){return{\u0275providers:Rp(0,e),\u0275fromNgModule:!0}}function Rp(e,...t){const n=[],r=new Set;let i;const s=u=>{n.push(u)};return Qa(t,u=>{const d=u;Mu(d,s,[],r)&&(i||=[],i.push(d))}),void 0!==i&&kp(i,s),n}function kp(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:i}=e[n];Jd(i,s=>{t(s,r)})}}function Mu(e,t,n,r){if(!(e=$e(e)))return!1;let i=null,s=zt(e);const u=!s&&An(e);if(s||u){if(u&&!u.standalone)return!1;i=e}else{const b=e.ngModule;if(s=zt(b),!s)return!1;i=b}const d=r.has(i);if(u){if(d)return!1;if(r.add(i),u.dependencies){const b="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const O of b)Mu(O,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!d){let O;r.add(i);try{Qa(s.imports,$=>{Mu($,t,n,r)&&(O||=[],O.push($))})}finally{}void 0!==O&&kp(O,t)}if(!d){const O=uo(i)||(()=>new i);t({provide:i,useFactory:O,deps:ht},i),t({provide:Pp,useValue:i,multi:!0},i),t({provide:Vc,useValue:()=>L(i),multi:!0},i)}const b=s.providers;if(null!=b&&!d){const O=e;Jd(b,$=>{t($,O)})}}}return i!==e&&void 0!==e.providers}function Jd(e,t){for(let n of e)Ye(n)&&(n=n.\u0275providers),Array.isArray(n)?Jd(n,t):t(n)}const Pb=V({provide:String,useValue:V});function eh(e){return null!==e&&"object"==typeof e&&Pb in e}function wl(e){return"function"==typeof e}const th=new cr("Set Injector scope."),Tu={},kb={};let nh;function Iu(){return void 0===nh&&(nh=new Qd),nh}class ra{}class Au extends ra{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ih(t,u=>this.processProvider(u)),this.records.set(xp,Ql(void 0,this)),i.has("environment")&&this.records.set(ra,Ql(void 0,this));const s=this.records.get(th);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Pp.multi,ht,ze.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=H(this),r=pe(void 0);try{return t()}finally{H(n),pe(r)}}get(t,n=Pt,r=ze.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(yr))return t[yr](this);r=ce(r);const s=H(this),u=pe(void 0);try{if(!(r&ze.SkipSelf)){let b=this.records.get(t);if(void 0===b){const O=function Vb(e){return"function"==typeof e||"object"==typeof e&&e instanceof cr}(t)&&rn(t);b=O&&this.injectableDefInScope(O)?Ql(rh(t),Tu):null,this.records.set(t,b)}if(null!=b)return this.hydrate(t,b)}return(r&ze.Self?Iu():this.parent).get(t,n=r&ze.Optional&&n===Pt?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Yt]=d[Yt]||[]).unshift(be(t)),s)throw d;return function se(e,t,n,r){const i=e[Yt];throw t[U]&&i.unshift(t[U]),e.message=function ot(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=be(t);if(Array.isArray(t))i=t.map(be).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let d=t[u];s.push(u+":"+("string"==typeof d?JSON.stringify(d):be(d)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Oe,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yt]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{pe(u),H(s)}}resolveInjectorInitializers(){const t=H(this),n=pe(void 0);try{const i=this.get(Vc.multi,ht,ze.Self);for(const s of i)s()}finally{H(t),pe(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(be(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(t){let n=wl(t=$e(t))?t:$e(t&&t.provide);const r=function Fb(e){return eh(e)?Ql(void 0,e.useValue):Ql(Lp(e),Tu)}(t);if(wl(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Ql(void 0,Tu,!0),i.factory=()=>Se(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Tu&&(n.value=kb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Bb(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=$e(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 rh(e){const t=rn(e),n=null!==t?t.factory:uo(e);if(null!==n)return n;if(e instanceof cr)throw new q(204,!1);if(e instanceof Function)return function Nb(e){const t=e.length;if(t>0)throw yl(t,"?"),new q(204,!1);const n=function Sn(e){return e&&(e[Vn]||e[Hn])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new q(204,!1)}function Lp(e,t,n){let r;if(wl(e)){const i=$e(e);return uo(i)||rh(i)}if(eh(e))r=()=>$e(e.useValue);else if(function Fp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Se(e.deps||[]));else if(function Np(e){return!(!e||!e.useExisting)}(e))r=()=>L($e(e.useExisting));else{const i=$e(e&&(e.useClass||e.provide));if(!function Lb(e){return!!e.deps}(e))return uo(i)||rh(i);r=()=>new i(...Se(e.deps))}return r}function Ql(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ih(e,t){for(const n of e)Array.isArray(n)?ih(n,t):n&&Ye(n)?ih(n.\u0275providers,t):t(n)}const Bp=new cr("AppId",{providedIn:"root",factory:()=>jb}),jb="ng",Vp=new cr("Platform Initializer"),oh=new cr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Hb=new cr("AnimationModuleType"),Ub=new cr("CSP nonce",{providedIn:"root",factory:()=>Yl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let jp=(e,t,n)=>null;function fh(e,t,n=!1){return jp(e,t,n)}class Xb{}class $p{}class eC{resolveComponentFactory(t){throw function Jb(e){const t=Error(`No component factory found for ${be(e)}.`);return t.ngComponent=e,t}(t)}}let Uc=(()=>{class t{}return t.NULL=new eC,t})();function tC(){return ec($r(),Mt())}function ec(e,t){return new $c(Kr(e,t))}let $c=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=tC,t})();function nC(e){return e instanceof $c?e.nativeElement:e}class Gp{}let rC=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function iC(){const e=Mt(),n=Jr($r().index,e);return(Rr(n)?n:e)[hn]}(),t})(),oC=(()=>{var e;class t{}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:()=>null}),t})();class Wp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Zp=new Wp("16.2.5"),mh={};function Qp(e,t=null,n=null,r){const i=Xp(e,t,n,r);return i.resolveInjectorInitializers(),i}function Xp(e,t=null,n=null,r,i=new Set){const s=[n||ht,xb(e)];return r=r||("object"==typeof e?void 0:be(e)),new Au(s,t||Iu(),r||null,i)}let Gs=(()=>{var e;class t{static create(r,i){if(Array.isArray(r))return Qp({name:""},i,r,"");{const s=r.name??"";return Qp({name:s},r.parent,r.providers,s)}}}return(e=t).THROW_IF_NOT_FOUND=Pt,e.NULL=new Qd,e.\u0275prov=jt({token:e,providedIn:"any",factory:()=>L(xp)}),e.__NG_ELEMENT_ID__=-1,t})();function vh(e){return e.ngOriginalError}class Ja{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&&vh(t);for(;n&&vh(n);)n=vh(n);return n||null}}function bh(e){return t=>{setTimeout(e,void 0,t)}}const ia=class hC extends o.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,s=n||(()=>null),u=r;if(t&&"object"==typeof t){const b=t;i=b.next?.bind(b),s=b.error?.bind(b),u=b.complete?.bind(b)}this.__isAsync&&(s=bh(s),i&&(i=bh(i)),u&&(u=bh(u)));const d=super.subscribe({next:i,error:s,complete:u});return t instanceof l.w0&&t.add(d),d}};function eg(...e){}class Ri{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ia(!1),this.onMicrotaskEmpty=new ia(!1),this.onStable=new ia(!1),this.onError=new ia(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function fC(){const e="function"==typeof Ke.requestAnimationFrame;let t=Ke[e?"requestAnimationFrame":"setTimeout"],n=Ke[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function mC(e){const t=()=>{!function gC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ke,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Eh(e),e.isCheckStableRunning=!0,Ch(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Eh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,u,d)=>{if(function vC(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(d))return n.invokeTask(i,s,u,d);try{return tg(e),n.invokeTask(i,s,u,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),ng(e)}},onInvoke:(n,r,i,s,u,d,b)=>{try{return tg(e),n.invoke(i,s,u,d,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),ng(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Eh(e),Ch(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ri.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(Ri.isInAngularZone())throw new q(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+i,t,pC,eg,eg);try{return s.runTask(u,n,r)}finally{s.cancelTask(u)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const pC={};function Ch(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 Eh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function tg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ng(e){e._nesting--,Ch(e)}class _C{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ia,this.onMicrotaskEmpty=new ia,this.onStable=new ia,this.onError=new ia}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const rg=new cr("",{providedIn:"root",factory:ig});function ig(){const e=xe(Ri);let t=!0;const n=new R.y(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),r=new R.y(i=>{let s;e.runOutsideAngular(()=>{s=e.onStable.subscribe(()=>{Ri.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const u=e.onUnstable.subscribe(()=>{Ri.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{s.unsubscribe(),u.unsubscribe()}});return(0,K.T)(n,r.pipe((0,re.B)()))}function og(e){return e.ownerDocument.defaultView}function Ia(e){return e instanceof Function?e():e}let Dh=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:()=>new e}),t})();function zc(e){for(;e;){e[un]|=64;const t=kc(e);if(qo(e)&&!t)return e;e=t}return null}const ug=new cr("",{providedIn:"root",factory:()=>!1});let Fu=null;function pg(e,t){return e[t]??_g()}function gg(e,t){const n=_g();n.producerNode?.length&&(e[t]=Fu,n.lView=e,Fu=mg())}const TC={...eo,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{zc(e.lView)},lView:null};function mg(){return Object.create(TC)}function _g(){return Fu??=mg(),Fu}const kn={};function vg(e){yg(Rn(),Mt(),qr()+e,!1)}function yg(e,t,n,r){if(!r)if(3==(3&t[un])){const s=e.preOrderCheckHooks;null!==s&&ul(t,s,n)}else{const s=e.preOrderHooks;null!==s&&ja(t,s,0,n)}No(n)}function rc(e,t=ze.Default){const n=Mt();return null===n?L(e,t):Za($r(),n,$e(e),t)}function bg(){throw new Error("invalid")}function Lu(e,t,n,r,i,s,u,d,b,O,$){const _e=t.blueprint.slice();return _e[Xn]=i,_e[un]=140|r,(null!==O||e&&2048&e[un])&&(_e[un]|=2048),sl(_e),_e[Jn]=_e[Li]=e,_e[ar]=n,_e[hi]=u||e&&e[hi],_e[hn]=d||e&&e[hn],_e[Ei]=b||e&&e[Ei]||null,_e[ur]=s,_e[Io]=function Oy(){return Ay++}(),_e[pi]=$,_e[Ao]=O,_e[lr]=2==t.type?e[lr]:_e,_e}function ic(e,t,n,r,i){let s=e.data[t];if(null===s)s=function wh(e,t,n,r,i){const s=po(),u=rs(),b=e.data[t]=function NC(e,t,n,r,i,s){let u=t?t.injectorIndex:-1,d=0;return fo()&&(d|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:u,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:d,providerIndexes:0,value:i,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,u?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=b),null!==s&&(u?null==s.child&&null!==b.parent&&(s.child=b):null===s.next&&(s.next=b,b.prev=s)),b}(e,t,n,r,i),function v(){return dn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const u=function mi(){const e=dn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===u?-1:u.injectorIndex}return ei(s,!0),s}function Gc(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Cg(e,t,n,r,i){const s=pg(t,Xi),u=qr(),d=2&r;try{No(-1),d&&t.length>En&&yg(e,t,En,!1),Dr(d?2:0,i);const O=d?s:null,$=ps(O);try{null!==O&&(O.dirty=!1),n(r,i)}finally{mr(O,$)}}finally{d&&null===t[Xi]&&gg(t,Xi),No(u),Dr(d?3:1,i)}}function Sh(e,t,n){if(Yo(t)){const r=Ur(null);try{const s=t.directiveEnd;for(let u=t.directiveStart;u<s;u++){const d=e.data[u];d.contentQueries&&d.contentQueries(1,n[u],u)}}finally{Ur(r)}}}function Mh(e,t,n){Sr()&&(function UC(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;Ji(n)&&function YC(e,t,n){const r=Kr(t,e),i=Eg(n);let u=16;n.signals?u=4096:n.onPush&&(u=64);const d=Bu(e,Lu(e,i,null,u,r,t,null,e[hi].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=d}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||za(n,t),so(r,t);const u=n.initialInputs;for(let d=i;d<s;d++){const b=e.data[d],O=os(t,e,d,n);so(O,t),null!==u&&qC(0,d-i,O,b,0,u),kr(b)&&(Jr(n.index,t)[ar]=os(t,e,d,n))}}(e,t,n,Kr(n,t)),64==(64&n.flags)&&Tg(e,t,n))}function Th(e,t,n=Kr){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const u=r[s+1],d=-1===u?n(t,e):e[u];e[i++]=d}}}function Eg(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ih(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ih(e,t,n,r,i,s,u,d,b,O,$){const _e=En+r,qe=_e+i,ct=function AC(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:kn);return n}(_e,qe),Dt="function"==typeof O?O():O;return ct[Vt]={type:e,blueprint:ct,template:n,queries:null,viewQuery:d,declTNode:t,data:ct.slice().fill(null,_e),bindingStartIndex:_e,expandoStartIndex:qe,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 u?u():u,firstChild:null,schemas:b,consts:Dt,incompleteFirstPass:!1,ssrId:$}}let Dg=e=>null;function wg(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const s=e[i];null===r?Sg(n,t,i,s):r.hasOwnProperty(i)&&Sg(n,t,r[i],s)}return n}function Sg(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function cs(e,t,n,r,i,s,u,d){const b=Kr(t,n);let $,O=t.inputs;!d&&null!=O&&($=O[r])?(Rh(e,n,$,r,i),Ji(t)&&function BC(e,t){const n=Jr(t,e);16&n[un]||(n[un]|=64)}(n,t.index)):3&t.type&&(r=function LC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=u?u(i,t.value||"",r):i,s.setProperty(b,r,i))}function Ah(e,t,n,r){if(Sr()){const i=null===r?null:{"":-1},s=function zC(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let s=0;s<n.length;s++){const u=n[s];if($o(t,u.selectors,!1))if(r||(r=[]),kr(u))if(null!==u.findHostDirectiveDefs){const d=[];i=i||new Map,u.findHostDirectiveDefs(u,d,i),r.unshift(...d,u),Oh(e,t,d.length)}else r.unshift(u),Oh(e,t,0);else i=i||new Map,u.findHostDirectiveDefs?.(u,r,i),r.push(u)}return null===r?null:[r,i]}(e,n);let u,d;null===s?u=d=null:[u,d]=s,null!==u&&Mg(e,t,n,u,i,d),i&&function GC(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new q(-301,!1);r.push(t[i],s)}}}(n,r,i)}n.mergedAttrs=ti(n.mergedAttrs,n.attrs)}function Mg(e,t,n,r,i,s){for(let O=0;O<r.length;O++)zs(za(n,t),e,r[O].type);!function ZC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let O=0;O<r.length;O++){const $=r[O];$.providersResolver&&$.providersResolver($)}let u=!1,d=!1,b=Gc(e,t,r.length,null);for(let O=0;O<r.length;O++){const $=r[O];n.mergedAttrs=ti(n.mergedAttrs,$.hostAttrs),KC(e,n,t,b,$),WC(b,$,i),null!==$.contentQueries&&(n.flags|=4),(null!==$.hostBindings||null!==$.hostAttrs||0!==$.hostVars)&&(n.flags|=64);const _e=$.type.prototype;!u&&(_e.ngOnChanges||_e.ngOnInit||_e.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!d&&(_e.ngOnChanges||_e.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),b++}!function FC(e,t,n){const i=t.directiveEnd,s=e.data,u=t.attrs,d=[];let b=null,O=null;for(let $=t.directiveStart;$<i;$++){const _e=s[$],qe=n?n.get(_e):null,Dt=qe?qe.outputs:null;b=wg(_e.inputs,$,b,qe?qe.inputs:null),O=wg(_e.outputs,$,O,Dt);const Ot=null===b||null===u||dr(t)?null:QC(b,$,u);d.push(Ot)}null!==b&&(b.hasOwnProperty("class")&&(t.flags|=8),b.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=d,t.inputs=b,t.outputs=O}(e,n,s)}function Tg(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,u=function I(){return dn.lFrame.currentDirectiveIndex}();try{No(s);for(let d=r;d<i;d++){const b=e.data[d],O=t[d];Z(d),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&$C(b,O)}}finally{No(-1),Z(u)}}function $C(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Oh(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function WC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;kr(t)&&(n[""]=e)}}function KC(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=uo(i.type)),u=new Xs(s,kr(i),rc);e.blueprint[r]=u,n[r]=u,function jC(e,t,n,r,i){const s=i.hostBindings;if(s){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const d=~t.index;(function HC(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=d&&u.push(d),u.push(n,r,s)}}(e,t,r,Gc(e,n,i.hostVars,kn),i)}function oa(e,t,n,r,i,s){const u=Kr(e,t);!function xh(e,t,n,r,i,s,u){if(null==s)e.removeAttribute(t,i,n);else{const d=null==u?ve(s):u(s,r||"",i);e.setAttribute(t,i,d,n)}}(t[hn],u,s,e.value,n,r,i)}function qC(e,t,n,r,i,s){const u=s[t];if(null!==u)for(let d=0;d<u.length;)Ig(r,n,u[d++],u[d++],u[d++])}function Ig(e,t,n,r,i){const s=Ur(null);try{const u=e.inputTransforms;null!==u&&u.hasOwnProperty(r)&&(i=u[r].call(t,i)),null!==e.setInput?e.setInput(t,i,n,r):t[r]=i}finally{Ur(s)}}function QC(e,t,n){let r=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const u=e[s];for(let d=0;d<u.length;d+=2)if(u[d]===t){r.push(s,u[d+1],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Ag(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function Og(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r+1];if(-1!==s){const u=e.data[s];It(n[r]),u.contentQueries(2,t[s],s)}}}function Bu(e,t){return e[Qr]?e[To][br]=t:e[Qr]=t,e[To]=t,t}function Ph(e,t,n){It(0);const r=Ur(null);try{t(e,n)}finally{Ur(r)}}function xg(e){return e[Ci]||(e[Ci]=[])}function Pg(e){return e.cleanup||(e.cleanup=[])}function Rg(e,t,n){return(null===e||kr(e))&&(n=function ns(e){for(;Array.isArray(e);){if("object"==typeof e[Ko])return e;e=e[Xn]}return null}(n[t.index])),n[hn]}function kg(e,t){const n=e[Ei],r=n?n.get(Ja,null):null;r&&r.handleError(t)}function Rh(e,t,n,r,i){for(let s=0;s<n.length;){const u=n[s++],d=n[s++];Ig(e.data[u],t[u],r,d,i)}}function Aa(e,t,n){const r=no(t,e);!function ip(e,t,n){e.setValue(t,n)}(e[hn],r,n)}function XC(e,t){const n=Jr(t,e),r=n[Vt];!function JC(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const i=n[Xn];null!==i&&null===n[pi]&&(n[pi]=fh(i,n[Ei])),kh(r,n,n[ar])}function kh(e,t,n){vn(t);try{const r=e.viewQuery;null!==r&&Ph(1,r,n);const i=e.template;null!==i&&Cg(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Og(e,t),e.staticViewQueries&&Ph(2,e.viewQuery,n);const s=e.components;null!==s&&function e0(e,t){for(let n=0;n<t.length;n++)XC(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[un]&=-5,Ro()}}let Ng=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(r,i,s){const u=typeof Zone>"u"?null:Zone.current,d=function Le(e,t,n){const r=Object.create(kt);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const i=u=>{r.cleanupFn=u};return r.ref={notify:()=>ho(r),run:()=>{if(r.dirty=!1,r.hasRun&&!ua(r))return;r.hasRun=!0;const u=ps(r);try{r.cleanupFn(),r.cleanupFn=yt,r.fn(i)}finally{mr(r,u)}},cleanup:()=>r.cleanupFn()},r.ref}(r,$=>{this.all.has($)&&this.queue.set($,u)},s);let b;this.all.add(d),d.notify();const O=()=>{d.cleanup(),b?.(),this.all.delete(d),this.queue.delete(d)};return b=i?.onDestroy(O),{destroy:O}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:()=>new e}),t})();function Vu(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let u=0;u<t.length;u++){const d=t[u];"number"==typeof d?s=d:1==s?i=Ve(i,d):2==s&&(r=Ve(r,d+": "+t[++u]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Wc(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];null!==s&&r.push(tr(s)),fr(s)&&Fg(s,r);const u=n.type;if(8&u)Wc(e,t,n.child,r);else if(32&u){const d=Fd(n,t);let b;for(;b=d();)r.push(b)}else if(16&u){const d=fp(t,n);if(Array.isArray(d))r.push(...d);else{const b=kc(t[lr]);Wc(b[Vt],b,d,r,!0)}}n=i?n.projectionNext:n.next}return r}function Fg(e,t){for(let n=Er;n<e.length;n++){const r=e[n],i=r[Vt].firstChild;null!==i&&Wc(r[Vt],r,i,t)}e[er]!==e[Xn]&&t.push(e[er])}function ju(e,t,n,r=!0){const i=t[hi],s=i.rendererFactory,u=i.afterRenderEventManager;s.begin?.(),u?.begin();try{Lg(e,t,e.template,n)}catch(b){throw r&&kg(t,b),b}finally{s.end?.(),i.effectManager?.flush(),u?.end()}}function Lg(e,t,n,r){const i=t[un];if(256!=(256&i)){t[hi].effectManager?.flush(),vn(t);try{sl(t),function qs(e){return dn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Cg(e,t,n,2,r);const u=3==(3&i);if(u){const O=e.preOrderCheckHooks;null!==O&&ul(t,O,null)}else{const O=e.preOrderHooks;null!==O&&ja(t,O,0,null),dl(t,0)}if(function r0(e){for(let t=tp(e);null!==t;t=np(t)){if(!t[Cr])continue;const n=t[ri];for(let r=0;r<n.length;r++){Ui(n[r])}}}(t),Bg(t,2),null!==e.contentQueries&&Og(e,t),u){const O=e.contentCheckHooks;null!==O&&ul(t,O)}else{const O=e.contentHooks;null!==O&&ja(t,O,1),dl(t,1)}!function IC(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=pg(t,gi);try{for(let i=0;i<n.length;i++){const s=n[i];if(s<0)No(~s);else{const u=s,d=n[++i],b=n[++i];_(d,u),r.dirty=!1;const O=ps(r);try{b(2,t[u])}finally{mr(r,O)}}}}finally{null===t[gi]&&gg(t,gi),No(-1)}}(e,t);const d=e.components;null!==d&&jg(t,d,0);const b=e.viewQuery;if(null!==b&&Ph(2,b,r),u){const O=e.viewCheckHooks;null!==O&&ul(t,O)}else{const O=e.viewHooks;null!==O&&ja(t,O,2),dl(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[un]&=-73,ka(t)}finally{Ro()}}}function Bg(e,t){for(let n=tp(e);null!==n;n=np(n))for(let r=Er;r<n.length;r++)Vg(n[r],t)}function o0(e,t,n){Vg(Jr(t,e),n)}function Vg(e,t){if(!function Hi(e){return 128==(128&e[un])}(e))return;const n=e[Vt],r=e[un];if(80&r&&0===t||1024&r||2===t)Lg(n,e,n.template,e[ar]);else if(e[Ai]>0){Bg(e,1);const i=n.components;null!==i&&jg(e,i,1)}}function jg(e,t,n){for(let r=0;r<t.length;r++)o0(e,t[r],n)}class Zc{get rootNodes(){const t=this._lView,n=t[Vt];return Wc(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ar]}set context(t){this._lView[ar]=t}get destroyed(){return 256==(256&this._lView[un])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Jn];if(fr(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(vu(t,r),Vl(n,r))}this._attachedToViewContainer=!1}Bd(this._lView[Vt],this._lView)}onDestroy(t){!function ga(e,t){if(256==(256&e[un]))throw new q(911,!1);null===e[Qi]&&(e[Qi]=[]),e[Qi].push(t)}(this._lView,t)}markForCheck(){zc(this._cdRefInjectingView||this._lView)}detach(){this._lView[un]&=-129}reattach(){this._lView[un]|=128}detectChanges(){ju(this._lView[Vt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zy(e,t){Fc(e,t,t[hn],2,null,null)}(this._lView[Vt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=t}}class s0 extends Zc{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ju(t[Vt],t,t[ar],!1)}checkNoChanges(){}get context(){return null}}class Hg extends Uc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=An(t);return new Kc(n,this.ngModule)}}function Ug(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class l0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ce(r);const i=this.injector.get(t,mh,r);return i!==mh||n===mh?i:this.parentInjector.get(t,n,r)}}class Kc extends $p{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Ug(t.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Ug(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function zo(e){return e.map(Do).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let s=(i=i||this.ngModule)instanceof ra?i:i?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const u=s?new l0(t,s):t,d=u.get(Gp,null);if(null===d)throw new q(407,!1);const _e={rendererFactory:d,sanitizer:u.get(oC,null),effectManager:u.get(Ng,null),afterRenderEventManager:u.get(Dh,null)},qe=d.createRenderer(null,this.componentDef),ct=this.componentDef.selectors[0][0]||"div",Dt=r?function OC(e,t,n,r){const s=r.get(ug,!1)||n===We.ShadowDom,u=e.selectRootElement(t,s);return function xC(e){Dg(e)}(u),u}(qe,r,this.componentDef.encapsulation,u):_u(qe,ct,function a0(e){const t=e.toLowerCase();return"svg"===t?to:"math"===t?"math":null}(ct)),on=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Tt=null;null!==Dt&&(Tt=fh(Dt,u,!0));const In=Ih(0,null,null,1,0,null,null,null,null,null,null),jn=Lu(null,In,null,on,null,null,_e,qe,u,null,Tt);let pr,Uo;vn(jn);try{const Oa=this.componentDef;let Cc,Gf=null;Oa.findHostDirectiveDefs?(Cc=[],Gf=new Map,Oa.findHostDirectiveDefs(Oa,Cc,Gf),Cc.push(Oa)):Cc=[Oa];const lM=function u0(e,t){const n=e[Vt],r=En;return e[r]=t,ic(n,r,2,"#host",null)}(jn,Dt),cM=function d0(e,t,n,r,i,s,u){const d=i[Vt];!function h0(e,t,n,r){for(const i of e)t.mergedAttrs=ti(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Vu(t,t.mergedAttrs,!0),null!==n&&_p(r,n,t))}(r,e,t,u);let b=null;null!==t&&(b=fh(t,i[Ei]));const O=s.rendererFactory.createRenderer(t,n);let $=16;n.signals?$=4096:n.onPush&&($=64);const _e=Lu(i,Eg(n),null,$,i[e.index],e,s,O,null,null,b);return d.firstCreatePass&&Oh(d,e,r.length-1),Bu(i,_e),i[e.index]=_e}(lM,Dt,Oa,Cc,jn,_e,qe);Uo=Ys(In,En),Dt&&function p0(e,t,n,r){if(r)Mn(e,n,["ng-version",Zp.full]);else{const{attrs:i,classes:s}=function Br(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!hr(i))break;i=s}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&Mn(e,n,i),s&&s.length>0&&mp(e,n,s.join(" "))}}(qe,Oa,Dt,r),void 0!==n&&function g0(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const s=n[i];r.push(null!=s?Array.from(s):null)}}(Uo,this.ngContentSelectors,n),pr=function f0(e,t,n,r,i,s){const u=$r(),d=i[Vt],b=Kr(u,i);Mg(d,i,u,n,null,r);for(let $=0;$<n.length;$++)so(os(i,d,u.directiveStart+$,u),i);Tg(d,i,u),b&&so(b,i);const O=os(i,d,u.directiveStart+u.componentOffset,u);if(e[ar]=i[ar]=O,null!==s)for(const $ of s)$(O,t);return Sh(d,u,e),O}(cM,Oa,Cc,Gf,jn,[m0]),kh(In,jn,null)}finally{Ro()}return new c0(this.componentType,pr,ec(Uo,jn),jn,Uo)}}class c0 extends Xb{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new s0(i),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const s=this._rootLView;Rh(s[Vt],s,i,t,n),this.previousInputValues.set(t,n),zc(Jr(this._tNode.index,s))}}get injector(){return new Fr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function m0(){const e=$r();Qs(Mt()[Vt],e)}function Nh(e){let t=function $g(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(kr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new q(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const u=e;u.inputs=Hu(e.inputs),u.inputTransforms=Hu(e.inputTransforms),u.declaredInputs=Hu(e.declaredInputs),u.outputs=Hu(e.outputs);const d=i.hostBindings;d&&b0(e,d);const b=i.viewQuery,O=i.contentQueries;if(b&&v0(e,b),O&&y0(e,O),Q(e.inputs,i.inputs),Q(e.declaredInputs,i.declaredInputs),Q(e.outputs,i.outputs),null!==i.inputTransforms&&(null===u.inputTransforms&&(u.inputTransforms={}),Q(u.inputTransforms,i.inputTransforms)),kr(i)&&i.data.animation){const $=e.data;$.animation=($.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let u=0;u<s.length;u++){const d=s[u];d&&d.ngInherit&&d(e),d===Nh&&(n=!1)}}t=Object.getPrototypeOf(t)}!function _0(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ti(i.hostAttrs,n=ti(n,i.hostAttrs))}}(r)}function Hu(e){return e===bt?{}:e===ht?[]:e}function v0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function y0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function b0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function Zg(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const i=t[r];Array.isArray(i)&&i[2]&&(n[r]=i[2])}e.inputTransforms=n}function Uu(e){return!!Fh(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Fh(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function sa(e,t,n){return e[t]=n}function Yc(e,t){return e[t]}function ao(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sl(e,t,n,r){const i=ao(e,t,n);return ao(e,t+1,r)||i}function Ms(e,t,n,r,i,s){const u=Sl(e,t,n,r);return Sl(e,t+2,i,s)||u}function Lh(e,t,n,r){const i=Mt();return ao(i,Es(),t)&&(Rn(),oa(vr(),i,e,t,n,r)),Lh}function sc(e,t,n,r){return ao(e,Es(),n)?t+ve(n)+r:kn}function ac(e,t,n,r,i,s){const d=Sl(e,function ro(){return dn.lFrame.bindingIndex}(),n,i);return f(2),d?t+ve(n)+r+ve(i)+s:kn}function sm(e,t,n,r,i,s,u,d){const b=Mt(),O=Rn(),$=e+En,_e=O.firstCreatePass?function G0(e,t,n,r,i,s,u,d,b){const O=t.consts,$=ic(t,e,4,u||null,Cs(O,d));Ah(t,n,$,Cs(O,b)),Qs(t,$);const _e=$.tView=Ih(2,$,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,O,null);return null!==t.queries&&(t.queries.template(t,$),_e.queries=t.queries.embeddedTView($)),$}($,O,b,t,n,r,i,s,u):O.data[$];ei(_e,!1);const qe=am(O,b,_e,e);Us()&&bu(O,b,qe,_e),so(qe,b),Bu(b,b[$]=Ag(qe,b,qe,_e)),Vr(_e)&&Mh(O,b,_e),null!=u&&Th(b,_e,d)}let am=function lm(e,t,n,r){return _o(!0),t[hn].createComment("")};function cm(e){return bs(function Ea(){return dn.lFrame.contextLView}(),En+e)}function $h(e,t,n){const r=Mt();return ao(r,Es(),t)&&cs(Rn(),vr(),r,e,t,r[hn],n,!1),$h}function zh(e,t,n,r,i){const u=i?"class":"style";Rh(e,n,t.inputs[u],u,r)}function Zu(e,t,n,r){const i=Mt(),s=Rn(),u=En+e,d=i[hn],b=s.firstCreatePass?function Y0(e,t,n,r,i,s){const u=t.consts,b=ic(t,e,2,r,Cs(u,i));return Ah(t,n,b,Cs(u,s)),null!==b.attrs&&Vu(b,b.attrs,!1),null!==b.mergedAttrs&&Vu(b,b.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,b),b}(u,s,i,t,n,r):s.data[u],O=um(s,i,b,d,t,e);i[u]=O;const $=Vr(b);return ei(b,!0),_p(d,O,b),32!=(32&b.flags)&&Us()&&bu(s,i,O,b),0===function va(){return dn.lFrame.elementDepthCount}()&&so(O,i),function wr(){dn.lFrame.elementDepthCount++}(),$&&(Mh(s,i,b),Sh(s,b,i)),null!==r&&Th(i,b),Zu}function Ku(){let e=$r();rs()?Hs():(e=e.parent,ei(e,!1));const t=e;(function Na(e){return dn.skipHydrationRootTNode===e})(t)&&function Ca(){dn.skipHydrationRootTNode=null}(),function ya(){dn.lFrame.elementDepthCount--}();const n=Rn();return n.firstCreatePass&&(Qs(n,e),Yo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function md(e){return 0!=(8&e.flags)}(t)&&zh(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Rl(e){return 0!=(16&e.flags)}(t)&&zh(n,t,Mt(),t.stylesWithoutHost,!1),Ku}function Gh(e,t,n,r){return Zu(e,t,n,r),Ku(),Gh}let um=(e,t,n,r,i,s)=>(_o(!0),_u(r,i,function cl(){return dn.lFrame.currentNamespace}()));function Yu(e,t,n){const r=Mt(),i=Rn(),s=e+En,u=i.firstCreatePass?function X0(e,t,n,r,i){const s=t.consts,u=Cs(s,r),d=ic(t,e,8,"ng-container",u);return null!==u&&Vu(d,u,!0),Ah(t,n,d,Cs(s,i)),null!==t.queries&&t.queries.elementStart(t,d),d}(s,i,r,t,n):i.data[s];ei(u,!0);const d=dm(i,r,u,e);return r[s]=d,Us()&&bu(i,r,d,u),so(d,r),Vr(u)&&(Mh(i,r,u),Sh(i,u,r)),null!=n&&Th(r,u),Yu}function qu(){let e=$r();const t=Rn();return rs()?Hs():(e=e.parent,ei(e,!1)),t.firstCreatePass&&(Qs(t,e),Yo(e)&&t.queries.elementEnd(e)),qu}function Wh(e,t,n){return Yu(e,t,n),qu(),Wh}let dm=(e,t,n,r)=>(_o(!0),Ld(t[hn],""));function hm(){return Mt()}function Zh(e){return!!e&&"function"==typeof e.then}function fm(e){return!!e&&"function"==typeof e.subscribe}function Kh(e,t,n,r){const i=Mt(),s=Rn(),u=$r();return pm(s,i,i[hn],u,e,t,r),Kh}function Yh(e,t){const n=$r(),r=Mt(),i=Rn();return pm(i,r,Rg(oe(i.data),n,r),n,e,t),Yh}function pm(e,t,n,r,i,s,u){const d=Vr(r),O=e.firstCreatePass&&Pg(e),$=t[ar],_e=xg(t);let qe=!0;if(3&r.type||u){const Ot=Kr(r,t),Zt=u?u(Ot):Ot,on=_e.length,Tt=u?jn=>u(tr(jn[r.index])):r.index;let In=null;if(!u&&d&&(In=function tE(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const u=i[s];if(u===n&&i[s+1]===r){const d=t[Ci],b=i[s+2];return d.length>b?d[b]:null}"string"==typeof u&&(s+=2)}return null}(e,t,i,r.index)),null!==In)(In.__ngLastListenerFn__||In).__ngNextListenerFn__=s,In.__ngLastListenerFn__=s,qe=!1;else{s=mm(r,t,$,s,!1);const jn=n.listen(Zt,i,s);_e.push(s,jn),O&&O.push(i,Tt,on,on+1)}}else s=mm(r,t,$,s,!1);const ct=r.outputs;let Dt;if(qe&&null!==ct&&(Dt=ct[i])){const Ot=Dt.length;if(Ot)for(let Zt=0;Zt<Ot;Zt+=2){const pr=t[Dt[Zt]][Dt[Zt+1]].subscribe(s),Uo=_e.length;_e.push(s,pr),O&&O.push(i,r.index,Uo,-(Uo+1))}}}function gm(e,t,n,r){try{return Dr(6,t,n),!1!==n(r)}catch(i){return kg(e,i),!1}finally{Dr(7,t,n)}}function mm(e,t,n,r,i){return function s(u){if(u===Function)return r;zc(e.componentOffset>-1?Jr(e.index,t):t);let b=gm(t,n,r,u),O=s.__ngNextListenerFn__;for(;O;)b=gm(t,n,O,u)&&b,O=O.__ngNextListenerFn__;return i&&!1===b&&u.preventDefault(),b}}function _m(e=1){return function ko(e){return(dn.lFrame.contextLView=function Ba(e,t){for(;e>0;)t=t[Li],e--;return t}(e,dn.lFrame.contextLView))[ar]}(e)}function nE(e,t){let n=null;const r=function Ts(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?$o(e,s,!0):Eo(r,s))return i}else n=i}return n}function vm(e){const t=Mt()[lr][ur];if(!t.projection){const r=t.projection=yl(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const u=e?nE(s,e):0;null!==u&&(i[u]?i[u].projectionNext=s:r[u]=s,i[u]=s),s=s.next}}}function ym(e,t=0,n){const r=Mt(),i=Rn(),s=ic(i,En+e,16,null,n||null);null===s.projection&&(s.projection=t),Hs(),(!r[pi]||fo())&&32!=(32&s.flags)&&function Xy(e,t,n){gp(t[hn],0,t,n,jd(e,n,t),cp(n.parent||t[ur],n,t))}(i,r,s)}function qh(e,t,n){return Qh(e,"",t,"",n),qh}function Qh(e,t,n,r,i){const s=Mt(),u=sc(s,t,n,r);return u!==kn&&cs(Rn(),vr(),s,e,u,s[hn],i,!1),Qh}function Qu(e,t){return e<<17|t<<2}function el(e){return e>>17&32767}function Xh(e){return 2|e}function Ml(e){return(131068&e)>>2}function Jh(e,t){return-131069&e|t<<2}function ef(e){return 1|e}function Im(e,t,n,r,i){const s=e[n+1],u=null===t;let d=r?el(s):Ml(s),b=!1;for(;0!==d&&(!1===b||u);){const $=e[d+1];lE(e[d],t)&&(b=!0,e[d+1]=r?ef($):Xh($)),d=r?el($):Ml($)}b&&(e[n+1]=r?Xh(s):ef(s))}function lE(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&bl(e,t)>=0}const Ti={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Am(e){return e.substring(Ti.key,Ti.keyEnd)}function cE(e){return e.substring(Ti.value,Ti.valueEnd)}function Om(e,t){const n=Ti.textEnd;return n===t?-1:(t=Ti.keyEnd=function hE(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ti.key=t,n),pc(e,t,n))}function xm(e,t){const n=Ti.textEnd;let r=Ti.key=pc(e,t,n);return n===r?-1:(r=Ti.keyEnd=function fE(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Rm(e,r,n),r=Ti.value=pc(e,r,n),r=Ti.valueEnd=function pE(e,t,n){let r=-1,i=-1,s=-1,u=t,d=u;for(;u<n;){const b=e.charCodeAt(u++);if(59===b)return d;34===b||39===b?d=u=km(e,b,u,n):t===u-4&&85===s&&82===i&&76===r&&40===b?d=u=km(e,41,u,n):b>32&&(d=u),s=i,i=r,r=-33&b}return d}(e,r,n),Rm(e,r,n))}function Pm(e){Ti.key=0,Ti.keyEnd=0,Ti.value=0,Ti.valueEnd=0,Ti.textEnd=e.length}function pc(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Rm(e,t,n,r){return(t=pc(e,t,n))<n&&t++,t}function km(e,t,n,r){let i=-1,s=n;for(;s<r;){const u=e.charCodeAt(s++);if(u==t&&92!==i)return s;i=92==u&&92===i?0:u}throw new Error}function tf(e,t,n){return Zs(e,t,n,!1),tf}function nf(e,t){return Zs(e,t,null,!0),nf}function Ws(e){Ks(Bm,gE,e,!1)}function gE(e,t){for(let n=function dE(e){return Pm(e),xm(e,pc(e,0,Ti.textEnd))}(t);n>=0;n=xm(t,n))Bm(e,Am(t),cE(t))}function Nm(e){Ks(CE,aa,e,!0)}function aa(e,t){for(let n=function uE(e){return Pm(e),Om(e,pc(e,0,Ti.textEnd))}(t);n>=0;n=Om(t,n))io(e,Am(t),!0)}function Zs(e,t,n,r){const i=Mt(),s=Rn(),u=f(2);s.firstUpdatePass&&Lm(s,e,u,r),t!==kn&&ao(i,u,t)&&Vm(s,s.data[qr()],i,i[hn],e,i[u+1]=function DE(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=be(Ma(e)))),e}(t,n),r,u)}function Ks(e,t,n,r){const i=Rn(),s=f(2);i.firstUpdatePass&&Lm(i,null,s,r);const u=Mt();if(n!==kn&&ao(u,s,n)){const d=i.data[qr()];if(Hm(d,r)&&!Fm(i,s)){let b=r?d.classesWithoutHost:d.stylesWithoutHost;null!==b&&(n=Ve(b,n||"")),zh(i,d,u,n,r)}else!function EE(e,t,n,r,i,s,u,d){i===kn&&(i=ht);let b=0,O=0,$=0<i.length?i[0]:null,_e=0<s.length?s[0]:null;for(;null!==$||null!==_e;){const qe=b<i.length?i[b+1]:void 0,ct=O<s.length?s[O+1]:void 0;let Ot,Dt=null;$===_e?(b+=2,O+=2,qe!==ct&&(Dt=_e,Ot=ct)):null===_e||null!==$&&$<_e?(b+=2,Dt=$):(O+=2,Dt=_e,Ot=ct),null!==Dt&&Vm(e,t,n,r,Dt,Ot,u,d),$=b<i.length?i[b]:null,_e=O<s.length?s[O]:null}}(i,d,u,u[hn],u[s+1],u[s+1]=function bE(e,t,n){if(null==n||""===n)return ht;const r=[],i=Ma(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}function Fm(e,t){return t>=e.expandoStartIndex}function Lm(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[qr()],u=Fm(e,n);Hm(s,r)&&null===t&&!u&&(t=!1),t=function mE(e,t,n,r){const i=oe(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Jc(n=rf(null,e,t,n,r),t.attrs,r),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==i)if(n=rf(i,e,t,n,r),null===s){let b=function _E(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ml(r))return e[el(r)]}(e,t,r);void 0!==b&&Array.isArray(b)&&(b=rf(null,e,t,b[1],r),b=Jc(b,t.attrs,r),function vE(e,t,n,r){e[el(n?t.classBindings:t.styleBindings)]=r}(e,t,r,b))}else s=function yE(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Jc(r,e[s].hostAttrs,n);return Jc(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function sE(e,t,n,r,i,s){let u=s?t.classBindings:t.styleBindings,d=el(u),b=Ml(u);e[r]=n;let $,O=!1;if(Array.isArray(n)?($=n[1],(null===$||bl(n,$)>0)&&(O=!0)):$=n,i)if(0!==b){const qe=el(e[d+1]);e[r+1]=Qu(qe,d),0!==qe&&(e[qe+1]=Jh(e[qe+1],r)),e[d+1]=function iE(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=Qu(d,0),0!==d&&(e[d+1]=Jh(e[d+1],r)),d=r;else e[r+1]=Qu(b,0),0===d?d=r:e[b+1]=Jh(e[b+1],r),b=r;O&&(e[r+1]=Xh(e[r+1])),Im(e,$,r,!0),Im(e,$,r,!1),function aE(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&bl(s,t)>=0&&(n[r+1]=ef(n[r+1]))}(t,$,e,r,s),u=Qu(d,b),s?t.classBindings=u:t.styleBindings=u}(i,s,t,n,u,r)}}function rf(e,t,n,r,i){let s=null;const u=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<u&&(s=t[d],r=Jc(r,s.hostAttrs,i),s!==e);)d++;return null!==e&&(n.directiveStylingLast=d),r}function Jc(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const u=t[s];"number"==typeof u?i=u:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),io(e,u,!!n||t[++s]))}return void 0===e?null:e}function Bm(e,t,n){io(e,t,Ma(n))}function CE(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&io(e,r,n)}function Vm(e,t,n,r,i,s,u,d){if(!(3&t.type))return;const b=e.data,O=b[d+1],$=function oE(e){return 1==(1&e)}(O)?jm(b,t,n,i,Ml(O),u):void 0;Xu($)||(Xu(s)||function rE(e){return 2==(2&e)}(O)&&(s=jm(b,null,n,i,d,u)),function eb(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=-1===r.indexOf("-")?void 0:Ss.DashCase;null==i?e.removeStyle(n,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Ss.Important),e.setStyle(n,r,i,s))}}(r,u,no(qr(),n),i,s))}function jm(e,t,n,r,i,s){const u=null===t;let d;for(;i>0;){const b=e[i],O=Array.isArray(b),$=O?b[1]:b,_e=null===$;let qe=n[i+1];qe===kn&&(qe=_e?ht:void 0);let ct=_e?Ac(qe,r):$===r?qe:void 0;if(O&&!Xu(ct)&&(ct=Ac(b,r)),Xu(ct)&&(d=ct,u))return d;const Dt=e[i+1];i=u?el(Dt):Ml(Dt)}if(null!==t){let b=s?t.residualClasses:t.residualStyles;null!=b&&(d=Ac(b,r))}return d}function Xu(e){return void 0!==e}function Hm(e,t){return 0!=(e.flags&(t?8:16))}function Um(e,t=""){const n=Mt(),r=Rn(),i=e+En,s=r.firstCreatePass?ic(r,i,1,t,null):r.data[i],u=$m(r,n,s,t,e);n[i]=u,Us()&&bu(r,n,u,s),ei(s,!1)}let $m=(e,t,n,r,i)=>(_o(!0),function mu(e,t){return e.createText(t)}(t[hn],r));function sf(e){return Ju("",e,""),sf}function Ju(e,t,n){const r=Mt(),i=sc(r,e,t,n);return i!==kn&&Aa(r,qr(),i),Ju}function af(e,t,n,r,i){const s=Mt(),u=ac(s,e,t,n,r,i);return u!==kn&&Aa(s,qr(),u),af}function Qm(e,t,n){Ks(io,aa,sc(Mt(),e,t,n),!0)}function lf(e,t,n){const r=Mt();return ao(r,Es(),t)&&cs(Rn(),vr(),r,e,t,r[hn],n,!0),lf}function cf(e,t,n){const r=Mt();if(ao(r,Es(),t)){const s=Rn(),u=vr();cs(s,u,r,e,t,Rg(oe(s.data),u,r),n,!0)}return cf}const Tl=void 0;var zE=["en",[["a","p"],["AM","PM"],Tl],[["AM","PM"],Tl,Tl],[["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"]],Tl,[["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"]],Tl,[["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}",Tl,"{1} 'at' {0}",Tl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $E(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let gc={};function uf(e){const t=function GE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=l_(t);if(n)return n;const r=t.split("-")[0];if(n=l_(r),n)return n;if("en"===r)return zE;throw new q(701,!1)}function a_(e){return uf(e)[mc.PluralCase]}function l_(e){return e in gc||(gc[e]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[e]),gc[e]}var mc=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}(mc||{});const _c="en-US";let c_=_c;function ff(e,t,n,r,i){if(e=$e(e),Array.isArray(e))for(let s=0;s<e.length;s++)ff(e[s],t,n,r,i);else{const s=Rn(),u=Mt(),d=$r();let b=wl(e)?e:$e(e.provide);const O=Lp(e),$=1048575&d.providerIndexes,_e=d.directiveStart,qe=d.providerIndexes>>20;if(wl(e)||!e.multi){const ct=new Xs(O,i,rc),Dt=gf(b,t,i?$:$+qe,_e);-1===Dt?(zs(za(d,u),s,b),pf(s,e,t.length),t.push(b),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),n.push(ct),u.push(ct)):(n[Dt]=ct,u[Dt]=ct)}else{const ct=gf(b,t,$+qe,_e),Dt=gf(b,t,$,$+qe),Zt=Dt>=0&&n[Dt];if(i&&!Zt||!i&&!(ct>=0&&n[ct])){zs(za(d,u),s,b);const on=function $D(e,t,n,r,i){const s=new Xs(e,n,rc);return s.multi=[],s.index=t,s.componentProviders=0,k_(s,i,r&&!n),s}(i?UD:HD,n.length,i,r,O);!i&&Zt&&(n[Dt].providerFactory=on),pf(s,e,t.length,0),t.push(b),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),n.push(on),u.push(on)}else pf(s,e,ct>-1?ct:Dt,k_(n[i?Dt:ct],O,!i&&r));!i&&r&&Zt&&n[Dt].componentProviders++}}}function pf(e,t,n,r){const i=wl(t),s=function Rb(e){return!!e.useClass}(t);if(i||s){const b=(s?$e(t.useClass):t).prototype.ngOnDestroy;if(b){const O=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const $=O.indexOf(n);-1===$?O.push(n,[r,b]):O[$+1].push(r,b)}else O.push(n,b)}}}function k_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gf(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function HD(e,t,n,r){return mf(this.multi,[])}function UD(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const u=this.providerFactory.componentProviders,d=os(n,n[Vt],this.providerFactory.index,r);s=d.slice(0,u),mf(i,s);for(let b=u;b<d.length;b++)s.push(d[b])}else s=[],mf(i,s);return s}function mf(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function N_(e,t=[]){return n=>{n.providersResolver=(r,i)=>function jD(e,t,n){const r=Rn();if(r.firstCreatePass){const i=kr(e);ff(n,r.data,r.blueprint,i,!0),ff(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class Il{}class F_{}function zD(e,t){return new _f(e,t??null,[])}class _f extends Il{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hg(this);const i=Pr(t);this._bootstrapComponents=Ia(i.bootstrap),this._r3Injector=Xp(t,n,[{provide:Il,useValue:this},{provide:Uc,useValue:this.componentFactoryResolver},...r],be(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 vf extends F_{constructor(t){super(),this.moduleType=t}create(t){return new _f(this.moduleType,t,[])}}class L_ extends Il{constructor(t){super(),this.componentFactoryResolver=new Hg(this),this.instance=null;const n=new Au([...t.providers,{provide:Il,useValue:this},{provide:Uc,useValue:this.componentFactoryResolver}],t.parent||Iu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function B_(e,t,n=null){return new L_({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let WD=(()=>{var e;class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Rp(0,r.type),s=i.length>0?B_([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,s)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=jt({token:e,providedIn:"environment",factory:()=>new e(L(ra))}),t})();function V_(e){e.getStandaloneInjector=t=>t.get(WD).getOrCreateStandaloneInjector(e)}function W_(e,t,n){const r=Yr()+e,i=Mt();return i[r]===kn?sa(i,r,n?t.call(n):t()):Yc(i,r)}function Z_(e,t,n,r){return J_(Mt(),Yr(),e,t,n,r)}function K_(e,t,n,r,i){return ev(Mt(),Yr(),e,t,n,r,i)}function Y_(e,t,n,r,i,s){return tv(Mt(),Yr(),e,t,n,r,i,s)}function q_(e,t,n,r,i,s,u){return nv(Mt(),Yr(),e,t,n,r,i,s,u)}function Q_(e,t,n,r,i,s,u,d){const b=Yr()+e,O=Mt(),$=Ms(O,b,n,r,i,s);return ao(O,b+4,u)||$?sa(O,b+5,d?t.call(d,n,r,i,s,u):t(n,r,i,s,u)):Yc(O,b+5)}function X_(e,t,n,r){return function rv(e,t,n,r,i,s){let u=t+n,d=!1;for(let b=0;b<i.length;b++)ao(e,u++,i[b])&&(d=!0);return d?sa(e,u,r.apply(s,i)):ou(e,u)}(Mt(),Yr(),e,t,n,r)}function ou(e,t){const n=e[t];return n===kn?void 0:n}function J_(e,t,n,r,i,s){const u=t+n;return ao(e,u,i)?sa(e,u+1,s?r.call(s,i):r(i)):ou(e,u+1)}function ev(e,t,n,r,i,s,u){const d=t+n;return Sl(e,d,i,s)?sa(e,d+2,u?r.call(u,i,s):r(i,s)):ou(e,d+2)}function tv(e,t,n,r,i,s,u,d){const b=t+n;return function $u(e,t,n,r,i){const s=Sl(e,t,n,r);return ao(e,t+2,i)||s}(e,b,i,s,u)?sa(e,b+3,d?r.call(d,i,s,u):r(i,s,u)):ou(e,b+3)}function nv(e,t,n,r,i,s,u,d,b){const O=t+n;return Ms(e,O,i,s,u,d)?sa(e,O+4,b?r.call(b,i,s,u,d):r(i,s,u,d)):ou(e,O+4)}function iv(e,t){const n=Rn();let r;const i=e+En;n.firstCreatePass?(r=function iw(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=uo(r.type)),d=pe(rc);try{const b=$a(!1),O=s();return $a(b),function K0(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Mt(),i,O),O}finally{pe(d)}}function ov(e,t,n){const r=e+En,i=Mt(),s=bs(i,r);return su(i,r)?J_(i,Yr(),t,s.transform,n,s):s.transform(n)}function sv(e,t,n,r){const i=e+En,s=Mt(),u=bs(s,i);return su(s,i)?ev(s,Yr(),t,u.transform,n,r,u):u.transform(n,r)}function av(e,t,n,r,i){const s=e+En,u=Mt(),d=bs(u,s);return su(u,s)?tv(u,Yr(),t,d.transform,n,r,i,d):d.transform(n,r,i)}function lv(e,t,n,r,i,s){const u=e+En,d=Mt(),b=bs(d,u);return su(d,u)?nv(d,Yr(),t,b.transform,n,r,i,s,b):b.transform(n,r,i,s)}function su(e,t){return e[Vt].data[t].pure}function sw(){return this._results[Symbol.iterator]()}class id{get changes(){return this._changes||(this._changes=new ia)}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=id.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=sw)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=function Pi(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ws(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function lw(e,t,n,r=!0){const i=t[Vt];if(function Wy(e,t,n,r){const i=Er+r,s=n.length;r>0&&(n[i-1][br]=t),r<s-Er?(t[br]=n[i],hu(n,Er+r,t)):(n.push(t),t[br]=null),t[Jn]=n;const u=t[fi];null!==u&&n!==u&&function Zy(e,t){const n=e[ri];t[lr]!==t[Jn][Jn][lr]&&(e[Cr]=!0),null===n?e[ri]=[t]:n.push(t)}(u,t);const d=t[Wr];null!==d&&d.insertView(e),t[un]|=128}(i,t,e,n),r){const s=Ud(n,e),u=t[hn],d=yu(u,e[er]);null!==d&&function $y(e,t,n,r,i,s){r[Xn]=i,r[ur]=t,Fc(e,r,n,1,i,s)}(i,e[ur],u,t,d,s)}}let au=(()=>{class t{}return t.__NG_ELEMENT_ID__=dw,t})();const cw=au,uw=class extends cw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=function aw(e,t,n,r){const i=t.tView,d=Lu(e,i,n,4096&e[un]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);d[fi]=e[t.index];const O=e[Wr];return null!==O&&(d[Wr]=O.createEmbeddedView(i)),kh(i,d,n),d}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new Zc(i)}};function dw(){return od($r(),Mt())}function od(e,t){return 4&e.type?new uw(t,e,ec(e,t)):null}let ad=(()=>{class t{}return t.__NG_ELEMENT_ID__=_w,t})();function _w(){return gv($r(),Mt())}const vw=ad,fv=class extends vw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ec(this._hostTNode,this._hostLView)}get injector(){return new Fr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ea(this._hostTNode,this._hostLView);if(Ua(t)){const n=Js(t,this._hostLView),r=$s(t);return new Fr(n[Vt].data[r+8],n)}return new Fr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=pv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Er}createEmbeddedView(t,n,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const d=t.createEmbeddedViewImpl(n||{},s,null);return this.insertImpl(d,i,false),d}createComponent(t,n,r,i,s){const u=t&&!function _i(e){return"function"==typeof e}(t);let d;if(u)d=n;else{const Ot=n||{};d=Ot.index,r=Ot.injector,i=Ot.projectableNodes,s=Ot.environmentInjector||Ot.ngModuleRef}const b=u?t:new Kc(An(t)),O=r||this.parentInjector;if(!s&&null==b.ngModule){const Zt=(u?O:this.parentInjector).get(ra,null);Zt&&(s=Zt)}An(b.componentType??{});const ct=b.create(O,i,null,s);return this.insertImpl(ct.hostView,d,false),ct}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const i=t._lView;if(function pa(e){return fr(e[Jn])}(i)){const b=this.indexOf(t);if(-1!==b)this.detach(b);else{const O=i[Jn],$=new fv(O,O[ur],O[Jn]);$.detach($.indexOf(t))}}const u=this._adjustIndex(n),d=this._lContainer;return lw(d,i,u,!r),t.attachToViewContainerRef(),hu(bf(d),u,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=pv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=vu(this._lContainer,n);r&&(Vl(bf(this._lContainer),n),Bd(r[Vt],r))}detach(t){const n=this._adjustIndex(t,-1),r=vu(this._lContainer,n);return r&&null!=Vl(bf(this._lContainer),n)?new Zc(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function pv(e){return e[8]}function bf(e){return e[8]||(e[8]=[])}function gv(e,t){let n;const r=t[e.index];return fr(r)?n=r:(n=Ag(r,t,null,e),t[e.index]=n,Bu(t,n)),mv(n,t,e,r),new fv(n,e,t)}let mv=function _v(e,t,n,r){if(e[er])return;let i;i=8&n.type?tr(r):function yw(e,t){const n=e[hn],r=n.createComment(""),i=Kr(t,e);return Cl(n,yu(n,i),r,function Qy(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[er]=i};class Cf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Cf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ef{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){const u=n.getByIndex(s);i.push(this.queries[u.indexInDeclarationView].clone())}return new Ef(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Mv(t,n).matches&&this.queries[n].setDirty()}}class vv{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Df{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new Df(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class wf{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 wf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(t,n,Ew(n,s)),this.matchTNodeWithReadOption(t,n,Gi(n,t,s,!1,!1))}else r===au?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Gi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===$c||i===ad||i===au&&4&n.type)this.addMatch(n.index,-2);else{const s=Gi(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Ew(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function ww(e,t,n,r){return-1===n?function Dw(e,t){return 11&e.type?ec(e,t):4&e.type?od(e,t):null}(t,e):-2===n?function Sw(e,t,n){return n===$c?ec(t,e):n===au?od(t,e):n===ad?gv(t,e):void 0}(e,t,r):os(e,e[Vt],n,t)}function yv(e,t,n,r){const i=t[Wr].queries[r];if(null===i.matches){const s=e.data,u=n.matches,d=[];for(let b=0;b<u.length;b+=2){const O=u[b];d.push(O<0?null:ww(t,s[O],u[b+1],n.metadata.read))}i.matches=d}return i.matches}function Sf(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const u=yv(e,t,i,n);for(let d=0;d<s.length;d+=2){const b=s[d];if(b>0)r.push(u[d/2]);else{const O=s[d+1],$=t[-b];for(let _e=Er;_e<$.length;_e++){const qe=$[_e];qe[fi]===qe[Jn]&&Sf(qe[Vt],qe,O,r)}if(null!==$[ri]){const _e=$[ri];for(let qe=0;qe<_e.length;qe++){const ct=_e[qe];Sf(ct[Vt],ct,O,r)}}}}}return r}function bv(e){const t=Mt(),n=Rn(),r=lt();It(r+1);const i=Mv(n,r);if(e.dirty&&function ol(e){return 4==(4&e[un])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?Sf(n,t,r,[]):yv(n,t,i,r);e.reset(s,nC),e.notifyOnChanges()}return!0}return!1}function Cv(e,t,n){const r=Rn();r.firstCreatePass&&(Sv(r,new vv(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),wv(r,Mt(),t)}function Ev(e,t,n,r){const i=Rn();if(i.firstCreatePass){const s=$r();Sv(i,new vv(t,n,r),s.index),function Tw(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}wv(i,Mt(),n)}function Dv(){return function Mw(e,t){return e[Wr].queries[t].queryList}(Mt(),lt())}function wv(e,t,n){const r=new id(4==(4&n));(function kC(e,t,n,r){const i=xg(t);i.push(n),e.firstCreatePass&&Pg(e).push(r,i.length-1)})(e,t,r,r.destroy),null===t[Wr]&&(t[Wr]=new Ef),t[Wr].queries.push(new Cf(r))}function Sv(e,t,n){null===e.queries&&(e.queries=new Df),e.queries.track(new wf(t,n))}function Mv(e,t){return e.queries.getByIndex(t)}function Tv(e,t){return od(e,t)}function Mf(e){return!!Pr(e)}const zv=new cr("Application Initializer");let xf=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=xe(zv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const s of this.appInits){const u=s();if(Zh(u))r.push(u);else if(fm(u)){const d=new Promise((b,O)=>{u.subscribe({complete:b,error:O})});r.push(d)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(s=>{this.reject(s)}),0===r.length&&i(),this.initialized=!0}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Gv=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const cd=new cr("LocaleId",{providedIn:"root",factory:()=>xe(cd,ze.Optional|ze.SkipSelf)||function Kw(){return typeof $localize<"u"&&$localize.locale||_c}()}),Yw=new cr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Wv=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Y.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Qw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Xw=(()=>{var e;class t{compileModuleSync(r){return new vf(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),u=Ia(Pr(r).declarations).reduce((d,b)=>{const O=An(b);return O&&d.push(new Kc(O)),d},[]);return new Qw(i,u)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const qv=new cr(""),Qv=new cr("");let kf,vS=(()=>{var e;class t{constructor(r,i,s){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kf||(function yS(e){kf=e}(s),s.addToWindow(i)),this._watchAngularEvents(),r.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:()=>{Ri.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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,s){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==u),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:s})}whenStable(r,i,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(r,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,s){return[]}}return(e=t).\u0275fac=function(r){return new(r||e)(L(Ri),L(Xv),L(Qv))},e.\u0275prov=jt({token:e,factory:e.\u0275fac}),t})(),Xv=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return kf?.findTestabilityInTree(this,r,i)??null}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),tl=null;const Jv=new cr("AllowMultipleToken"),Nf=new cr("PlatformDestroyListeners"),Ff=new cr("appBootstrapListener");class ES{constructor(t,n){this.name=t,this.token=n}}function ny(e,t,n=[]){const r=`Platform: ${t}`,i=new cr(r);return(s=[])=>{let u=Lf();if(!u||u.injector.get(Jv,!1)){const d=[...n,...s,{provide:i,useValue:!0}];e?e(d):function DS(e){if(tl&&!tl.get(Jv,!1))throw new q(400,!1);(function ey(){!function Ra(e){Bs=e}(()=>{throw new q(600,!1)})})(),tl=e;const t=e.get(iy);(function ty(e){e.get(Vp,null)?.forEach(n=>n())})(e)}(function ry(e=[],t){return Gs.create({name:t,providers:[{provide:th,useValue:"platform"},{provide:Nf,useValue:new Set([()=>tl=null])},...e]})}(d,r))}return function SS(e){const t=Lf();if(!t)throw new q(401,!1);return t}()}}function Lf(){return tl?.get(iy)??null}let iy=(()=>{var e;class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const s=function MS(e="zone.js",t){return"noop"===e?new _C:"zone.js"===e?new Ri(t):e}(i?.ngZone,function oy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return s.run(()=>{const u=function GD(e,t,n){return new _f(e,t,n)}(r.moduleType,this.injector,function uy(e){return[{provide:Ri,useFactory:e},{provide:Vc,multi:!0,useFactory:()=>{const t=xe(IS,{optional:!0});return()=>t.initialize()}},{provide:cy,useFactory:TS},{provide:rg,useFactory:ig}]}(()=>s)),d=u.injector.get(Ja,null);return s.runOutsideAngular(()=>{const b=s.onError.subscribe({next:O=>{d.handleError(O)}});u.onDestroy(()=>{dd(this._modules,u),b.unsubscribe()})}),function sy(e,t,n){try{const r=n();return Zh(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,s,()=>{const b=u.injector.get(xf);return b.runInitializers(),b.donePromise.then(()=>(function u_(e){Be(e,"Expected localeId to be defined"),"string"==typeof e&&(c_=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(cd,_c)||_c),this._moduleDoBootstrap(u),u))})})}bootstrapModule(r,i=[]){const s=ay({},i);return function bS(e,t,n){const r=new vf(n);return Promise.resolve(r)}(0,0,r).then(u=>this.bootstrapModuleFactory(u,s))}_moduleDoBootstrap(r){const i=r.injector.get(bc);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!r.instance.ngDoBootstrap)throw new q(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Nf,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(r){return new(r||e)(L(Gs))},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function ay(e,t){return Array.isArray(t)?t.reduce(ay,e):{...e,...t}}let bc=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=xe(cy),this.zoneIsStable=xe(rg),this.componentTypes=[],this.components=[],this.isStable=xe(Wv).hasPendingTasks.pipe((0,ue.w)(r=>r?(0,W.of)(!1):this.zoneIsStable),(0,ie.x)(),(0,re.B)()),this._injector=xe(ra)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const s=r instanceof $p;if(!this._injector.get(xf).done)throw!s&&bi(r),new q(405,!1);let d;d=s?r:this._injector.get(Uc).resolveComponentFactory(r),this.componentTypes.push(d.componentType);const b=function CS(e){return e.isBoundToModule}(d)?void 0:this._injector.get(Il),$=d.create(Gs.NULL,[],i||d.selector,b),_e=$.location.nativeElement,qe=$.injector.get(qv,null);return qe?.registerApplication(_e),$.onDestroy(()=>{this.detachView($.hostView),dd(this.components,$),qe?.unregisterApplication(_e)}),this._loadComponent($),$}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;dd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Ff,[]);i.push(...this._bootstrapListeners),i.forEach(s=>s(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>dd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new q(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function dd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const cy=new cr("",{providedIn:"root",factory:()=>xe(Ja).handleError.bind(void 0)});function TS(){const e=xe(Ri),t=xe(Ja);return n=>e.runOutsideAngular(()=>t.handleError(n))}let IS=(()=>{var e;class t{constructor(){this.zone=xe(Ri),this.applicationRef=xe(bc)}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(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function OS(){return!1}function xS(){}let PS=(()=>{class t{}return t.__NG_ELEMENT_ID__=RS,t})();function RS(e){return function kS(e,t,n){if(Ji(e)&&!n){const r=Jr(e.index,t);return new Zc(r,r)}return 47&e.type?new Zc(t[lr],t):null}($r(),Mt(),16==(16&e))}class py{constructor(){}supports(t){return Uu(t)}create(t){return new jS(t)}}const VS=(e,t)=>t;class jS{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||VS}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const u=!r||n&&n.currentIndex<my(r,i,s)?n:r,d=my(u,i,s),b=u.currentIndex;if(u===r)i--,r=r._nextRemoved;else if(n=n._next,null==u.previousIndex)i++;else{s||(s=[]);const O=d-i,$=b-i;if(O!=$){for(let qe=0;qe<O;qe++){const ct=qe<s.length?s[qe]:s[qe]=0,Dt=ct+qe;$<=Dt&&Dt<O&&(s[qe]=ct+1)}s[u.previousIndex]=$-O}}d!==b&&t(u,d,b)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Uu(t))throw new q(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,u,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)s=t[d],u=this._trackByFn(d,s),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,s,u,d)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,u,d),r=!0),n=n._next}else i=0,function T0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{u=this._trackByFn(i,d),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,d,u,i)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,u,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new HS(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new gy),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gy),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 HS{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 US{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class gy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new US,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function my(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class _y{constructor(){}supports(t){return t instanceof Map||Fh(t)}create(){return new $S}}class $S{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||Fh(t)))throw new q(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const s=i._prev,u=i._next;return s&&(s._next=u),u&&(u._prev=s),i._next=null,i._prev=null,i}const r=new zS(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class zS{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 vy(){return new Uf([new py])}let Uf=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,i){if(null!=i){const s=i.factories.slice();r=r.concat(s)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||vy()),deps:[[t,new Ul,new Hl]]}}find(r){const i=this.factories.find(s=>s.supports(r));if(null!=i)return i;throw new q(901,!1)}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:vy}),t})();function yy(){return new $f([new _y])}let $f=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,i){if(i){const s=i.factories.slice();r=r.concat(s)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||yy()),deps:[[t,new Ul,new Hl]]}}find(r){const i=this.factories.find(s=>s.supports(r));if(i)return i;throw new q(901,!1)}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:yy}),t})();const ZS=ny(null,"core",[]);let KS=(()=>{var e;class t{constructor(r){}}return(e=t).\u0275fac=function(r){return new(r||e)(L(bc))},e.\u0275mod=Wo({type:e}),e.\u0275inj=nn({}),t})();function oM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function aM(e){const t=An(e);if(!t)return null;const n=new Kc(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}}}},6223:(wt,Pe,C)=>{C.d(Pe,{Cf:()=>X,EJ:()=>ur,F:()=>qn,Fd:()=>Wr,Fj:()=>He,JJ:()=>Sn,JL:()=>zt,JU:()=>ue,Kr:()=>To,NI:()=>ui,On:()=>Br,Q7:()=>Xi,UX:()=>Xo,Wl:()=>V,YN:()=>Ci,Zs:()=>gi,_Y:()=>Go,a5:()=>nn,gN:()=>Kt,kI:()=>Ne,nD:()=>Bi,oH:()=>bi,p4:()=>Gr,sg:()=>Mo,u5:()=>us,wV:()=>Ki});var o=C(5879),l=C(6814),R=C(2459),K=C(9315),Y=C(7398);let W=(()=>{var x;class T{constructor(k,ae){this._renderer=k,this._elementRef=ae,this.onChange=At=>{},this.onTouched=()=>{}}setProperty(k,ae){this._renderer.setProperty(this._elementRef.nativeElement,k,ae)}registerOnTouched(k){this.onTouched=k}registerOnChange(k){this.onChange=k}setDisabledState(k){this.setProperty("disabled",k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.Qsj),o.Y36(o.SBq))},x.\u0275dir=o.lG2({type:x}),T})(),re=(()=>{var x;class T extends W{}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,features:[o.qOj]}),T})();const ue=new o.OlP("NgValueAccessor"),ie={provide:ue,useExisting:(0,o.Gpc)(()=>V),multi:!0};let V=(()=>{var x;class T extends re{writeValue(k){this.setProperty("checked",k)}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(k,ae){1&k&&o.NdJ("change",function(_n){return ae.onChange(_n.target.checked)})("blur",function(){return ae.onTouched()})},features:[o._Bn([ie]),o.qOj]}),T})();const Q={provide:ue,useExisting:(0,o.Gpc)(()=>He),multi:!0},Ve=new o.OlP("CompositionEventMode");let He=(()=>{var x;class T extends W{constructor(k,ae,At){super(k,ae),this._compositionMode=At,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function be(){const x=(0,l.q)()?(0,l.q)().getUserAgent():"";return/android (\d+)/.test(x.toLowerCase())}())}writeValue(k){this.setProperty("value",k??"")}_handleInput(k){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(k)}_compositionStart(){this._composing=!0}_compositionEnd(k){this._composing=!1,this._compositionMode&&this.onChange(k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(Ve,8))},x.\u0275dir=o.lG2({type:x,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(k,ae){1&k&&o.NdJ("input",function(_n){return ae._handleInput(_n.target.value)})("blur",function(){return ae.onTouched()})("compositionstart",function(){return ae._compositionStart()})("compositionend",function(_n){return ae._compositionEnd(_n.target.value)})},features:[o._Bn([Q]),o.qOj]}),T})();function tt(x){return null==x||("string"==typeof x||Array.isArray(x))&&0===x.length}function $e(x){return null!=x&&"number"==typeof x.length}const X=new o.OlP("NgValidators"),Ye=new o.OlP("NgAsyncValidators"),ut=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ne{static min(T){return function q(x){return T=>{if(tt(T.value)||tt(x))return null;const te=parseFloat(T.value);return!isNaN(te)&&te<x?{min:{min:x,actual:T.value}}:null}}(T)}static max(T){return me(T)}static required(T){return ve(T)}static requiredTrue(T){return ye(T)}static email(T){return function rt(x){return tt(x.value)||ut.test(x.value)?null:{email:!0}}(T)}static minLength(T){return function Qe(x){return T=>tt(T.value)||!$e(T.value)?null:T.value.length<x?{minlength:{requiredLength:x,actualLength:T.value.length}}:null}(T)}static maxLength(T){return ft(T)}static pattern(T){return function xt(x){if(!x)return Bt;let T,te;return"string"==typeof x?(te="","^"!==x.charAt(0)&&(te+="^"),te+=x,"$"!==x.charAt(x.length-1)&&(te+="$"),T=new RegExp(te)):(te=x.toString(),T=x),k=>{if(tt(k.value))return null;const ae=k.value;return T.test(ae)?null:{pattern:{requiredPattern:te,actualValue:ae}}}}(T)}static nullValidator(T){return null}static compose(T){return Ge(T)}static composeAsync(T){return Ze(T)}}function me(x){return T=>{if(tt(T.value)||tt(x))return null;const te=parseFloat(T.value);return!isNaN(te)&&te>x?{max:{max:x,actual:T.value}}:null}}function ve(x){return tt(x.value)?{required:!0}:null}function ye(x){return!0===x.value?null:{required:!0}}function ft(x){return T=>$e(T.value)&&T.value.length>x?{maxlength:{requiredLength:x,actualLength:T.value.length}}:null}function Bt(x){return null}function Rt(x){return null!=x}function Qt(x){return(0,o.QGY)(x)?(0,R.D)(x):x}function qt(x){let T={};return x.forEach(te=>{T=null!=te?{...T,...te}:T}),0===Object.keys(T).length?null:T}function sn(x,T){return T.map(te=>te(x))}function wn(x){return x.map(T=>function Cn(x){return!x.validate}(T)?T:te=>T.validate(te))}function Ge(x){if(!x)return null;const T=x.filter(Rt);return 0==T.length?null:function(te){return qt(sn(te,T))}}function Xe(x){return null!=x?Ge(wn(x)):null}function Ze(x){if(!x)return null;const T=x.filter(Rt);return 0==T.length?null:function(te){const k=sn(te,T).map(Qt);return(0,K.D)(k).pipe((0,Y.U)(qt))}}function De(x){return null!=x?Ze(wn(x)):null}function Me(x,T){return null===x?[T]:Array.isArray(x)?[...x,T]:[x,T]}function Ce(x){return x._rawValidators}function Be(x){return x._rawAsyncValidators}function Fe(x){return x?Array.isArray(x)?x:[x]:[]}function ke(x,T){return Array.isArray(x)?x.includes(T):x===T}function Ct(x,T){const te=Fe(T);return Fe(x).forEach(ae=>{ke(te,ae)||te.push(ae)}),te}function Nt(x,T){return Fe(T).filter(te=>!ke(x,te))}class jt{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(T){this._rawValidators=T||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(T){this._rawAsyncValidators=T||[],this._composedAsyncValidatorFn=De(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(T){this._onDestroyCallbacks.push(T)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(T=>T()),this._onDestroyCallbacks=[]}reset(T=void 0){this.control&&this.control.reset(T)}hasError(T,te){return!!this.control&&this.control.hasError(T,te)}getError(T,te){return this.control?this.control.getError(T,te):null}}class Kt extends jt{get formDirective(){return null}get path(){return null}}class nn extends jt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rn{constructor(T){this._cd=T}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 Sn=(()=>{var x;class T extends rn{constructor(k){super(k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(nn,2))},x.\u0275dir=o.lG2({type:x,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(k,ae){2&k&&o.ekj("ng-untouched",ae.isUntouched)("ng-touched",ae.isTouched)("ng-pristine",ae.isPristine)("ng-dirty",ae.isDirty)("ng-valid",ae.isValid)("ng-invalid",ae.isInvalid)("ng-pending",ae.isPending)},features:[o.qOj]}),T})(),zt=(()=>{var x;class T extends rn{constructor(k){super(k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(Kt,10))},x.\u0275dir=o.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(k,ae){2&k&&o.ekj("ng-untouched",ae.isUntouched)("ng-touched",ae.isTouched)("ng-pristine",ae.isPristine)("ng-dirty",ae.isDirty)("ng-valid",ae.isValid)("ng-invalid",ae.isInvalid)("ng-pending",ae.isPending)("ng-submitted",ae.isSubmitted)},features:[o.qOj]}),T})();const y="VALID",P="INVALID",ee="PENDING",Ae="DISABLED";function it(x){return(Ht(x)?x.validators:x)||null}function Et(x,T){return(Ht(T)?T.asyncValidators:x)||null}function Ht(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}class Oe{constructor(T,te){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(T),this._assignAsyncValidators(te)}get validator(){return this._composedValidatorFn}set validator(T){this._rawValidators=this._composedValidatorFn=T}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(T){this._rawAsyncValidators=this._composedAsyncValidatorFn=T}get parent(){return this._parent}get valid(){return this.status===y}get invalid(){return this.status===P}get pending(){return this.status==ee}get disabled(){return this.status===Ae}get enabled(){return this.status!==Ae}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(T){this._assignValidators(T)}setAsyncValidators(T){this._assignAsyncValidators(T)}addValidators(T){this.setValidators(Ct(T,this._rawValidators))}addAsyncValidators(T){this.setAsyncValidators(Ct(T,this._rawAsyncValidators))}removeValidators(T){this.setValidators(Nt(T,this._rawValidators))}removeAsyncValidators(T){this.setAsyncValidators(Nt(T,this._rawAsyncValidators))}hasValidator(T){return ke(this._rawValidators,T)}hasAsyncValidator(T){return ke(this._rawAsyncValidators,T)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(T={}){this.touched=!0,this._parent&&!T.onlySelf&&this._parent.markAsTouched(T)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(T=>T.markAllAsTouched())}markAsUntouched(T={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(te=>{te.markAsUntouched({onlySelf:!0})}),this._parent&&!T.onlySelf&&this._parent._updateTouched(T)}markAsDirty(T={}){this.pristine=!1,this._parent&&!T.onlySelf&&this._parent.markAsDirty(T)}markAsPristine(T={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(te=>{te.markAsPristine({onlySelf:!0})}),this._parent&&!T.onlySelf&&this._parent._updatePristine(T)}markAsPending(T={}){this.status=ee,!1!==T.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!T.onlySelf&&this._parent.markAsPending(T)}disable(T={}){const te=this._parentMarkedDirty(T.onlySelf);this.status=Ae,this.errors=null,this._forEachChild(k=>{k.disable({...T,onlySelf:!0})}),this._updateValue(),!1!==T.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...T,skipPristineCheck:te}),this._onDisabledChange.forEach(k=>k(!0))}enable(T={}){const te=this._parentMarkedDirty(T.onlySelf);this.status=y,this._forEachChild(k=>{k.enable({...T,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent}),this._updateAncestors({...T,skipPristineCheck:te}),this._onDisabledChange.forEach(k=>k(!1))}_updateAncestors(T){this._parent&&!T.onlySelf&&(this._parent.updateValueAndValidity(T),T.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(T){this._parent=T}getRawValue(){return this.value}updateValueAndValidity(T={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===y||this.status===ee)&&this._runAsyncValidator(T.emitEvent)),!1!==T.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!T.onlySelf&&this._parent.updateValueAndValidity(T)}_updateTreeValidity(T={emitEvent:!0}){this._forEachChild(te=>te._updateTreeValidity(T)),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ae:y}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(T){if(this.asyncValidator){this.status=ee,this._hasOwnPendingAsyncValidator=!0;const te=Qt(this.asyncValidator(this));this._asyncValidationSubscription=te.subscribe(k=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(k,{emitEvent:T})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(T,te={}){this.errors=T,this._updateControlsErrors(!1!==te.emitEvent)}get(T){let te=T;return null==te||(Array.isArray(te)||(te=te.split(".")),0===te.length)?null:te.reduce((k,ae)=>k&&k._find(ae),this)}getError(T,te){const k=te?this.get(te):this;return k&&k.errors?k.errors[T]:null}hasError(T,te){return!!this.getError(T,te)}get root(){let T=this;for(;T._parent;)T=T._parent;return T}_updateControlsErrors(T){this.status=this._calculateStatus(),T&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(T)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?Ae:this.errors?P:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ee)?ee:this._anyControlsHaveStatus(P)?P:y}_anyControlsHaveStatus(T){return this._anyControls(te=>te.status===T)}_anyControlsDirty(){return this._anyControls(T=>T.dirty)}_anyControlsTouched(){return this._anyControls(T=>T.touched)}_updatePristine(T={}){this.pristine=!this._anyControlsDirty(),this._parent&&!T.onlySelf&&this._parent._updatePristine(T)}_updateTouched(T={}){this.touched=this._anyControlsTouched(),this._parent&&!T.onlySelf&&this._parent._updateTouched(T)}_registerOnCollectionChange(T){this._onCollectionChange=T}_setUpdateStrategy(T){Ht(T)&&null!=T.updateOn&&(this._updateOn=T.updateOn)}_parentMarkedDirty(T){return!T&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(T){return null}_assignValidators(T){this._rawValidators=Array.isArray(T)?T.slice():T,this._composedValidatorFn=function St(x){return Array.isArray(x)?Xe(x):x||null}(this._rawValidators)}_assignAsyncValidators(T){this._rawAsyncValidators=Array.isArray(T)?T.slice():T,this._composedAsyncValidatorFn=function Pt(x){return Array.isArray(x)?De(x):x||null}(this._rawAsyncValidators)}}class z extends Oe{constructor(T,te,k){super(it(te),Et(k,te)),this.controls=T,this._initObservables(),this._setUpdateStrategy(te),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(T,te){return this.controls[T]?this.controls[T]:(this.controls[T]=te,te.setParent(this),te._registerOnCollectionChange(this._onCollectionChange),te)}addControl(T,te,k={}){this.registerControl(T,te),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}removeControl(T,te={}){this.controls[T]&&this.controls[T]._registerOnCollectionChange(()=>{}),delete this.controls[T],this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}setControl(T,te,k={}){this.controls[T]&&this.controls[T]._registerOnCollectionChange(()=>{}),delete this.controls[T],te&&this.registerControl(T,te),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}contains(T){return this.controls.hasOwnProperty(T)&&this.controls[T].enabled}setValue(T,te={}){(function cn(x,T,te){x._forEachChild((k,ae)=>{if(void 0===te[ae])throw new o.vHH(1002,"")})})(this,0,T),Object.keys(T).forEach(k=>{(function Yt(x,T,te){const k=x.controls;if(!(T?Object.keys(k):k).length)throw new o.vHH(1e3,"");if(!k[te])throw new o.vHH(1001,"")})(this,!0,k),this.controls[k].setValue(T[k],{onlySelf:!0,emitEvent:te.emitEvent})}),this.updateValueAndValidity(te)}patchValue(T,te={}){null!=T&&(Object.keys(T).forEach(k=>{const ae=this.controls[k];ae&&ae.patchValue(T[k],{onlySelf:!0,emitEvent:te.emitEvent})}),this.updateValueAndValidity(te))}reset(T={},te={}){this._forEachChild((k,ae)=>{k.reset(T[ae],{onlySelf:!0,emitEvent:te.emitEvent})}),this._updatePristine(te),this._updateTouched(te),this.updateValueAndValidity(te)}getRawValue(){return this._reduceChildren({},(T,te,k)=>(T[k]=te.getRawValue(),T))}_syncPendingControls(){let T=this._reduceChildren(!1,(te,k)=>!!k._syncPendingControls()||te);return T&&this.updateValueAndValidity({onlySelf:!0}),T}_forEachChild(T){Object.keys(this.controls).forEach(te=>{const k=this.controls[te];k&&T(k,te)})}_setUpControls(){this._forEachChild(T=>{T.setParent(this),T._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(T){for(const[te,k]of Object.entries(this.controls))if(this.contains(te)&&T(k))return!0;return!1}_reduceValue(){return this._reduceChildren({},(te,k,ae)=>((k.enabled||this.disabled)&&(te[ae]=k.value),te))}_reduceChildren(T,te){let k=T;return this._forEachChild((ae,At)=>{k=te(k,ae,At)}),k}_allControlsDisabled(){for(const T of Object.keys(this.controls))if(this.controls[T].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(T){return this.controls.hasOwnProperty(T)?this.controls[T]:null}}const j=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>L}),L="always";function xe(x,T,te=L){de(x,T),T.valueAccessor.writeValue(x.value),(x.disabled||"always"===te)&&T.valueAccessor.setDisabledState?.(x.disabled),function ot(x,T){T.valueAccessor.registerOnChange(te=>{x._pendingValue=te,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ee(x,T)})}(x,T),function We(x,T){const te=(k,ae)=>{T.valueAccessor.writeValue(k),ae&&T.viewToModelUpdate(k)};x.registerOnChange(te),T._registerOnDestroy(()=>{x._unregisterOnChange(te)})}(x,T),function le(x,T){T.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ee(x,T),"submit"!==x.updateOn&&x.markAsTouched()})}(x,T),function at(x,T){if(T.valueAccessor.setDisabledState){const te=k=>{T.valueAccessor.setDisabledState(k)};x.registerOnDisabledChange(te),T._registerOnDestroy(()=>{x._unregisterOnDisabledChange(te)})}}(x,T)}function ce(x,T,te=!0){const k=()=>{};T.valueAccessor&&(T.valueAccessor.registerOnChange(k),T.valueAccessor.registerOnTouched(k)),se(x,T),x&&(T._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function Se(x,T){x.forEach(te=>{te.registerOnValidatorChange&&te.registerOnValidatorChange(T)})}function de(x,T){const te=Ce(x);null!==T.validator?x.setValidators(Me(te,T.validator)):"function"==typeof te&&x.setValidators([te]);const k=Be(x);null!==T.asyncValidator?x.setAsyncValidators(Me(k,T.asyncValidator)):"function"==typeof k&&x.setAsyncValidators([k]);const ae=()=>x.updateValueAndValidity();Se(T._rawValidators,ae),Se(T._rawAsyncValidators,ae)}function se(x,T){let te=!1;if(null!==x){if(null!==T.validator){const ae=Ce(x);if(Array.isArray(ae)&&ae.length>0){const At=ae.filter(_n=>_n!==T.validator);At.length!==ae.length&&(te=!0,x.setValidators(At))}}if(null!==T.asyncValidator){const ae=Be(x);if(Array.isArray(ae)&&ae.length>0){const At=ae.filter(_n=>_n!==T.asyncValidator);At.length!==ae.length&&(te=!0,x.setAsyncValidators(At))}}}const k=()=>{};return Se(T._rawValidators,k),Se(T._rawAsyncValidators,k),te}function Ee(x,T){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),T.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function bt(x,T){de(x,T)}function ir(x,T){if(!x.hasOwnProperty("model"))return!1;const te=x.model;return!!te.isFirstChange()||!Object.is(T,te.currentValue)}function zr(x,T){x._syncPendingControls(),T.forEach(te=>{const k=te.control;"submit"===k.updateOn&&k._pendingChange&&(te.viewToModelUpdate(k._pendingValue),k._pendingChange=!1)})}function Mn(x,T){if(!T)return null;let te,k,ae;return Array.isArray(T),T.forEach(At=>{At.constructor===He?te=At:function yr(x){return Object.getPrototypeOf(x.constructor)===re}(At)?k=At:ae=At}),ae||k||te||null}const ti={provide:Kt,useExisting:(0,o.Gpc)(()=>qn)},Ln=(()=>Promise.resolve())();let qn=(()=>{var x;class T extends Kt{constructor(k,ae,At){super(),this.callSetDisabledState=At,this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new z({},Xe(k),De(ae))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(k){Ln.then(()=>{const ae=this._findContainer(k.path);k.control=ae.registerControl(k.name,k.control),xe(k.control,k,this.callSetDisabledState),k.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(k)})}getControl(k){return this.form.get(k.path)}removeControl(k){Ln.then(()=>{const ae=this._findContainer(k.path);ae&&ae.removeControl(k.name),this._directives.delete(k)})}addFormGroup(k){Ln.then(()=>{const ae=this._findContainer(k.path),At=new z({});bt(At,k),ae.registerControl(k.name,At),At.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(k){Ln.then(()=>{const ae=this._findContainer(k.path);ae&&ae.removeControl(k.name)})}getFormGroup(k){return this.form.get(k.path)}updateModel(k,ae){Ln.then(()=>{this.form.get(k.path).setValue(ae)})}setValue(k){this.control.setValue(k)}onSubmit(k){return this.submitted=!0,zr(this.form,this._directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(k){return k.pop(),k.length?this.form.get(k):this.form}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(X,10),o.Y36(Ye,10),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(k,ae){1&k&&o.NdJ("submit",function(_n){return ae.onSubmit(_n)})("reset",function(){return ae.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([ti]),o.qOj]}),T})();function Ii(x,T){const te=x.indexOf(T);te>-1&&x.splice(te,1)}function dr(x){return"object"==typeof x&&null!==x&&2===Object.keys(x).length&&"value"in x&&"disabled"in x}const ui=class extends Oe{constructor(T=null,te,k){super(it(te),Et(k,te)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(T),this._setUpdateStrategy(te),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ht(te)&&(te.nonNullable||te.initialValueIsDefault)&&(this.defaultValue=dr(T)?T.value:T)}setValue(T,te={}){this.value=this._pendingValue=T,this._onChange.length&&!1!==te.emitModelToViewChange&&this._onChange.forEach(k=>k(this.value,!1!==te.emitViewToModelChange)),this.updateValueAndValidity(te)}patchValue(T,te={}){this.setValue(T,te)}reset(T=this.defaultValue,te={}){this._applyFormState(T),this.markAsPristine(te),this.markAsUntouched(te),this.setValue(this.value,te),this._pendingChange=!1}_updateValue(){}_anyControls(T){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(T){this._onChange.push(T)}_unregisterOnChange(T){Ii(this._onChange,T)}registerOnDisabledChange(T){this._onDisabledChange.push(T)}_unregisterOnDisabledChange(T){Ii(this._onDisabledChange,T)}_forEachChild(T){}_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(T){dr(T)?(this.value=this._pendingValue=T.value,T.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=T}},Gr=ui,Do={provide:nn,useExisting:(0,o.Gpc)(()=>Br)},zo=(()=>Promise.resolve())();let Br=(()=>{var x;class T extends nn{constructor(k,ae,At,_n,Nr,Xr){super(),this._changeDetectorRef=Nr,this.callSetDisabledState=Xr,this.control=new ui,this._registered=!1,this.name="",this.update=new o.vpe,this._parent=k,this._setValidators(ae),this._setAsyncValidators(At),this.valueAccessor=Mn(0,_n)}ngOnChanges(k){if(this._checkForErrors(),!this._registered||"name"in k){if(this._registered&&(this._checkName(),this.formDirective)){const ae=k.name.previousValue;this.formDirective.removeControl({name:ae,path:this._getPath(ae)})}this._setUpControl()}"isDisabled"in k&&this._updateDisabled(k),ir(k,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(k){this.viewModel=k,this.update.emit(k)}_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(){xe(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(k){zo.then(()=>{this.control.setValue(k,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(k){const ae=k.isDisabled.currentValue,At=0!==ae&&(0,o.VuI)(ae);zo.then(()=>{At&&!this.control.disabled?this.control.disable():!At&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(k){return this._parent?function J(x,T){return[...T.path,x]}(k,this._parent):[k]}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(Kt,9),o.Y36(X,10),o.Y36(Ye,10),o.Y36(ue,10),o.Y36(o.sBO,8),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([Do]),o.qOj,o.TTD]}),T})(),Go=(()=>{var x;class T{}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275dir=o.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),T})();const xr={provide:ue,useExisting:(0,o.Gpc)(()=>Ki),multi:!0};let Ki=(()=>{var x;class T extends re{writeValue(k){this.setProperty("value",k??"")}registerOnChange(k){this.onChange=ae=>{k(""==ae?null:parseFloat(ae))}}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(k,ae){1&k&&o.NdJ("input",function(_n){return ae.onChange(_n.target.value)})("blur",function(){return ae.onTouched()})},features:[o._Bn([xr]),o.qOj]}),T})(),So=(()=>{var x;class T{}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({}),T})();const Kn=new o.OlP("NgModelWithFormControlWarning"),or={provide:nn,useExisting:(0,o.Gpc)(()=>bi)};let bi=(()=>{var x;class T extends nn{set isDisabled(k){}constructor(k,ae,At,_n,Nr){super(),this._ngModelWarningConfig=_n,this.callSetDisabledState=Nr,this.update=new o.vpe,this._ngModelWarningSent=!1,this._setValidators(k),this._setAsyncValidators(ae),this.valueAccessor=Mn(0,At)}ngOnChanges(k){if(this._isControlChanged(k)){const ae=k.form.previousValue;ae&&ce(ae,this,!1),xe(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ir(k,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ce(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_isControlChanged(k){return k.hasOwnProperty("form")}}return(x=T)._ngModelWarningSentOnce=!1,x.\u0275fac=function(k){return new(k||x)(o.Y36(X,10),o.Y36(Ye,10),o.Y36(ue,10),o.Y36(Kn,8),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o._Bn([or]),o.qOj,o.TTD]}),T})();const Pr={provide:Kt,useExisting:(0,o.Gpc)(()=>Mo)};let Mo=(()=>{var x;class T extends Kt{constructor(k,ae,At){super(),this.callSetDisabledState=At,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.vpe,this._setValidators(k),this._setAsyncValidators(ae)}ngOnChanges(k){this._checkFormPresent(),k.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(se(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(k){const ae=this.form.get(k.path);return xe(ae,k,this.callSetDisabledState),ae.updateValueAndValidity({emitEvent:!1}),this.directives.push(k),ae}getControl(k){return this.form.get(k.path)}removeControl(k){ce(k.control||null,k,!1),function Zn(x,T){const te=x.indexOf(T);te>-1&&x.splice(te,1)}(this.directives,k)}addFormGroup(k){this._setUpFormContainer(k)}removeFormGroup(k){this._cleanUpFormContainer(k)}getFormGroup(k){return this.form.get(k.path)}addFormArray(k){this._setUpFormContainer(k)}removeFormArray(k){this._cleanUpFormContainer(k)}getFormArray(k){return this.form.get(k.path)}updateModel(k,ae){this.form.get(k.path).setValue(ae)}onSubmit(k){return this.submitted=!0,zr(this.form,this.directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submitted=!1}_updateDomValue(){this.directives.forEach(k=>{const ae=k.control,At=this.form.get(k.path);ae!==At&&(ce(ae||null,k),(x=>x instanceof ui)(At)&&(xe(At,k,this.callSetDisabledState),k.control=At))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(k){const ae=this.form.get(k.path);bt(ae,k),ae.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(k){if(this.form){const ae=this.form.get(k.path);ae&&function ht(x,T){return se(x,T)}(ae,k)&&ae.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){de(this.form,this),this._oldForm&&se(this._oldForm,this)}_checkFormPresent(){}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(X,10),o.Y36(Ye,10),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(k,ae){1&k&&o.NdJ("submit",function(_n){return ae.onSubmit(_n)})("reset",function(){return ae.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([Pr]),o.qOj,o.TTD]}),T})();const Jn={provide:ue,useExisting:(0,o.Gpc)(()=>ur),multi:!0};function br(x,T){return null==x?`${T}`:(T&&"object"==typeof T&&(T="Object"),`${x}: ${T}`.slice(0,50))}let ur=(()=>{var x;class T extends re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(k){this._compareWith=k}writeValue(k){this.value=k;const At=br(this._getOptionId(k),k);this.setProperty("value",At)}registerOnChange(k){this.onChange=ae=>{this.value=this._getOptionValue(ae),k(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(k){for(const ae of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ae),k))return ae;return null}_getOptionValue(k){const ae=function Ai(x){return x.split(":")[0]}(k);return this._optionMap.has(ae)?this._optionMap.get(ae):k}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(k,ae){1&k&&o.NdJ("change",function(_n){return ae.onChange(_n.target.value)})("blur",function(){return ae.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([Jn]),o.qOj]}),T})(),Ci=(()=>{var x;class T{constructor(k,ae,At){this._element=k,this._renderer=ae,this._select=At,this._select&&(this.id=this._select._registerOption())}set ngValue(k){null!=this._select&&(this._select._optionMap.set(this.id,k),this._setElementValue(br(this.id,k)),this._select.writeValue(this._select.value))}set value(k){this._setElementValue(k),this._select&&this._select.writeValue(this._select.value)}_setElementValue(k){this._renderer.setProperty(this._element.nativeElement,"value",k)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(ur,9))},x.\u0275dir=o.lG2({type:x,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),T})();const ar={provide:ue,useExisting:(0,o.Gpc)(()=>Qr),multi:!0};function Ei(x,T){return null==x?`${T}`:("string"==typeof T&&(T=`'${T}'`),T&&"object"==typeof T&&(T="Object"),`${x}: ${T}`.slice(0,50))}let Qr=(()=>{var x;class T extends re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(k){this._compareWith=k}writeValue(k){let ae;if(this.value=k,Array.isArray(k)){const At=k.map(_n=>this._getOptionId(_n));ae=(_n,Nr)=>{_n._setSelected(At.indexOf(Nr.toString())>-1)}}else ae=(At,_n)=>{At._setSelected(!1)};this._optionMap.forEach(ae)}registerOnChange(k){this.onChange=ae=>{const At=[],_n=ae.selectedOptions;if(void 0!==_n){const Nr=_n;for(let Xr=0;Xr<Nr.length;Xr++){const Di=this._getOptionValue(Nr[Xr].value);At.push(Di)}}else{const Nr=ae.options;for(let Xr=0;Xr<Nr.length;Xr++){const co=Nr[Xr];if(co.selected){const Di=this._getOptionValue(co.value);At.push(Di)}}}this.value=At,k(At)}}_registerOption(k){const ae=(this._idCounter++).toString();return this._optionMap.set(ae,k),ae}_getOptionId(k){for(const ae of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ae)._value,k))return ae;return null}_getOptionValue(k){const ae=function hi(x){return x.split(":")[0]}(k);return this._optionMap.has(ae)?this._optionMap.get(ae)._value:k}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(k,ae){1&k&&o.NdJ("change",function(_n){return ae.onChange(_n.target)})("blur",function(){return ae.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([ar]),o.qOj]}),T})(),To=(()=>{var x;class T{constructor(k,ae,At){this._element=k,this._renderer=ae,this._select=At,this._select&&(this.id=this._select._registerOption(this))}set ngValue(k){null!=this._select&&(this._value=k,this._setElementValue(Ei(this.id,k)),this._select.writeValue(this._select.value))}set value(k){this._select?(this._value=k,this._setElementValue(Ei(this.id,k)),this._select.writeValue(this._select.value)):this._setElementValue(k)}_setElementValue(k){this._renderer.setProperty(this._element.nativeElement,"value",k)}_setSelected(k){this._renderer.setProperty(this._element.nativeElement,"selected",k)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Qr,9))},x.\u0275dir=o.lG2({type:x,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),T})();let fi=(()=>{var x;class T{constructor(){this._validator=Bt}ngOnChanges(k){if(this.inputName in k){const ae=this.normalizeInput(k[this.inputName].currentValue);this._enabled=this.enabled(ae),this._validator=this._enabled?this.createValidator(ae):Bt,this._onChange&&this._onChange()}}validate(k){return this._validator(k)}registerOnValidatorChange(k){this._onChange=k}enabled(k){return null!=k}}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275dir=o.lG2({type:x,features:[o.TTD]}),T})();const qi={provide:X,useExisting:(0,o.Gpc)(()=>Wr),multi:!0};let Wr=(()=>{var x;class T extends fi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=k=>function lr(x){return"number"==typeof x?x:parseFloat(x)}(k),this.createValidator=k=>me(k)}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("max",ae._enabled?ae.max:null)},inputs:{max:"max"},features:[o._Bn([qi]),o.qOj]}),T})();const Qi={provide:X,useExisting:(0,o.Gpc)(()=>Xi),multi:!0},pi={provide:X,useExisting:(0,o.Gpc)(()=>gi),multi:!0};let Xi=(()=>{var x;class T extends fi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=o.VuI,this.createValidator=k=>ve}enabled(k){return k}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("required",ae._enabled?"":null)},inputs:{required:"required"},features:[o._Bn([Qi]),o.qOj]}),T})(),gi=(()=>{var x;class T extends Xi{constructor(){super(...arguments),this.createValidator=k=>ye}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("required",ae._enabled?"":null)},features:[o._Bn([pi]),o.qOj]}),T})();const er={provide:X,useExisting:(0,o.Gpc)(()=>Bi),multi:!0};let Bi=(()=>{var x;class T extends fi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=k=>function Li(x){return"number"==typeof x?x:parseInt(x,10)}(k),this.createValidator=k=>ft(k)}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("maxlength",ae._enabled?ae.maxlength:null)},inputs:{maxlength:"maxlength"},features:[o._Bn([er]),o.qOj]}),T})(),fr=(()=>{var x;class T{}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[So]}),T})(),us=(()=>{var x;class T{static withConfig(k){return{ngModule:T,providers:[{provide:j,useValue:k.callSetDisabledState??L}]}}}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[fr]}),T})(),Xo=(()=>{var x;class T{static withConfig(k){return{ngModule:T,providers:[{provide:Kn,useValue:k.warnOnNgModelWithFormControl??"always"},{provide:j,useValue:k.callSetDisabledState??L}]}}}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[fr]}),T})()},3680:(wt,Pe,C)=>{C.d(Pe,{yN:()=>q,mZ:()=>me,_A:()=>Xe,rD:()=>Nt,sG:()=>Ze,Ad:()=>wn,K7:()=>vt,HF:()=>dt,BQ:()=>rt,XK:()=>ke,ey:()=>Ae,Ng:()=>Et,rN:()=>P,wG:()=>pe,Fq:()=>U,si:()=>nt,CB:()=>it,jH:()=>St,pj:()=>Rt,Kr:()=>Qt,Id:()=>Bt,FD:()=>sn,dB:()=>Cn,sb:()=>qt});var o=C(5879),l=C(7849),R=C(9388),Y=C(6814),W=C(2831),re=C(2495),ue=C(5592),ie=C(8645),V=C(6028);const He=["text"];function tt(B,S){if(1&B&&o._UZ(0,"mat-pseudo-checkbox",6),2&B){const H=o.oxw();o.Q6J("disabled",H.disabled)("state",H.selected?"checked":"unchecked")}}function $e(B,S){if(1&B&&o._UZ(0,"mat-pseudo-checkbox",7),2&B){const H=o.oxw();o.Q6J("disabled",H.disabled)}}function X(B,S){if(1&B&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&B){const H=o.oxw();o.xp6(1),o.hij("(",H.group.label,")")}}const Ye=[[["mat-icon"]],"*"],ut=["mat-icon","*"];let q=(()=>{var B;class S{}return(B=S).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",B.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",B.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",B.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",S})(),me=(()=>{var B;class S{}return(B=S).COMPLEX="375ms",B.ENTERING="225ms",B.EXITING="195ms",S})();const ye=new o.OlP("mat-sanity-checks",{providedIn:"root",factory:function ve(){return!0}});let rt=(()=>{var B;class S{constructor(j,L,J){this._sanityChecks=L,this._document=J,this._hasDoneGlobalChecks=!1,j._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(j){return!(0,W.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[j])}}return(B=S).\u0275fac=function(j){return new(j||B)(o.LFG(l.qm),o.LFG(ye,8),o.LFG(Y.K0))},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[R.vT,R.vT]}),S})();function Bt(B){return class extends B{get disabled(){return this._disabled}set disabled(S){this._disabled=(0,re.Ig)(S)}constructor(...S){super(...S),this._disabled=!1}}}function Rt(B,S){return class extends B{get color(){return this._color}set color(H){const j=H||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}constructor(...H){super(...H),this.defaultColor=S,this.color=S}}}function Qt(B){return class extends B{get disableRipple(){return this._disableRipple}set disableRipple(S){this._disableRipple=(0,re.Ig)(S)}constructor(...S){super(...S),this._disableRipple=!1}}}function qt(B,S=0){return class extends B{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(H){this._tabIndex=null!=H?(0,re.su)(H):this.defaultTabIndex}constructor(...H){super(...H),this._tabIndex=S,this.defaultTabIndex=S}}}function sn(B){return class extends B{updateErrorState(){const S=this.errorState,J=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);J!==S&&(this.errorState=J,this.stateChanges.next())}constructor(...S){super(...S),this.errorState=!1}}}function Cn(B){return class extends B{constructor(...S){super(...S),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ue.y(H=>{this._isInitialized?this._notifySubscriber(H):this._pendingSubscribers.push(H)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(S){S.next(),S.complete()}}}const wn=new o.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ge(){return(0,o.f3M)(o.soG)}});class Xe{constructor(){this._localeChanges=new ie.x,this.localeChanges=this._localeChanges}getValidDateOrNull(S){return this.isDateInstance(S)&&this.isValid(S)?S:null}deserialize(S){return null==S||this.isDateInstance(S)&&this.isValid(S)?S:this.invalid()}setLocale(S){this.locale=S,this._localeChanges.next()}compareDate(S,H){return this.getYear(S)-this.getYear(H)||this.getMonth(S)-this.getMonth(H)||this.getDate(S)-this.getDate(H)}sameDate(S,H){if(S&&H){let j=this.isValid(S),L=this.isValid(H);return j&&L?!this.compareDate(S,H):j==L}return S==H}clampDate(S,H,j){return H&&this.compareDate(S,H)<0?H:j&&this.compareDate(S,j)>0?j:S}}const Ze=new o.OlP("mat-date-formats"),De=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Me(B,S){const H=Array(B);for(let j=0;j<B;j++)H[j]=S(j);return H}let Ce=(()=>{var B;class S extends Xe{constructor(j,L){super(),this.useUtcForDisplay=!1,super.setLocale(j)}getYear(j){return j.getFullYear()}getMonth(j){return j.getMonth()}getDate(j){return j.getDate()}getDayOfWeek(j){return j.getDay()}getMonthNames(j){const L=new Intl.DateTimeFormat(this.locale,{month:j,timeZone:"utc"});return Me(12,J=>this._format(L,new Date(2017,J,1)))}getDateNames(){const j=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Me(31,L=>this._format(j,new Date(2017,0,L+1)))}getDayOfWeekNames(j){const L=new Intl.DateTimeFormat(this.locale,{weekday:j,timeZone:"utc"});return Me(7,J=>this._format(L,new Date(2017,0,J+1)))}getYearName(j){const L=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(L,j)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(j){return this.getDate(this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+1,0))}clone(j){return new Date(j.getTime())}createDate(j,L,J){let xe=this._createDateWithOverflow(j,L,J);return xe.getMonth(),xe}today(){return new Date}parse(j,L){return"number"==typeof j?new Date(j):j?new Date(Date.parse(j)):null}format(j,L){if(!this.isValid(j))throw Error("NativeDateAdapter: Cannot format invalid date.");const J=new Intl.DateTimeFormat(this.locale,{...L,timeZone:"utc"});return this._format(J,j)}addCalendarYears(j,L){return this.addCalendarMonths(j,12*L)}addCalendarMonths(j,L){let J=this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+L,this.getDate(j));return this.getMonth(J)!=((this.getMonth(j)+L)%12+12)%12&&(J=this._createDateWithOverflow(this.getYear(J),this.getMonth(J),0)),J}addCalendarDays(j,L){return this._createDateWithOverflow(this.getYear(j),this.getMonth(j),this.getDate(j)+L)}toIso8601(j){return[j.getUTCFullYear(),this._2digit(j.getUTCMonth()+1),this._2digit(j.getUTCDate())].join("-")}deserialize(j){if("string"==typeof j){if(!j)return null;if(De.test(j)){let L=new Date(j);if(this.isValid(L))return L}}return super.deserialize(j)}isDateInstance(j){return j instanceof Date}isValid(j){return!isNaN(j.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(j,L,J){const xe=new Date;return xe.setFullYear(j,L,J),xe.setHours(0,0,0,0),xe}_2digit(j){return("00"+j).slice(-2)}_format(j,L){const J=new Date;return J.setUTCFullYear(L.getFullYear(),L.getMonth(),L.getDate()),J.setUTCHours(L.getHours(),L.getMinutes(),L.getSeconds(),L.getMilliseconds()),j.format(J)}}return(B=S).\u0275fac=function(j){return new(j||B)(o.LFG(wn,8),o.LFG(W.t4))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),S})();const Be={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Fe=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[{provide:Xe,useClass:Ce}]}),S})(),ke=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[{provide:Ze,useValue:Be}],imports:[Fe]}),S})(),Nt=(()=>{var B;class S{isErrorState(j,L){return!!(j&&j.invalid&&(j.touched||L&&L.submitted))}}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),S})();class Xt{constructor(S,H,j,L=!1){this._renderer=S,this.element=H,this.config=j,this._animationForciblyDisabledThroughCss=L,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const an=(0,W.i$)({passive:!0,capture:!0});class Sn{constructor(){this._events=new Map,this._delegateEventHandler=S=>{const H=(0,W.sA)(S);H&&this._events.get(S.type)?.forEach((j,L)=>{(L===H||L.contains(H))&&j.forEach(J=>J.handleEvent(S))})}}addHandler(S,H,j,L){const J=this._events.get(H);if(J){const xe=J.get(j);xe?xe.add(L):J.set(j,new Set([L]))}else this._events.set(H,new Map([[j,new Set([L])]])),S.runOutsideAngular(()=>{document.addEventListener(H,this._delegateEventHandler,an)})}removeHandler(S,H,j){const L=this._events.get(S);if(!L)return;const J=L.get(H);J&&(J.delete(j),0===J.size&&L.delete(H),0===L.size&&(this._events.delete(S),document.removeEventListener(S,this._delegateEventHandler,an)))}}const zt={enterDuration:225,exitDuration:150},xn=(0,W.i$)({passive:!0,capture:!0}),Hn=["mousedown","touchstart"],Un=["mouseup","mouseleave","touchend","touchcancel"];class ze{constructor(S,H,j,L){this._target=S,this._ngZone=H,this._platform=L,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,L.isBrowser&&(this._containerElement=(0,re.fI)(j))}fadeInRipple(S,H,j={}){const L=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),J={...zt,...j.animation};j.centered&&(S=L.left+L.width/2,H=L.top+L.height/2);const xe=j.radius||function G(B,S,H){const j=Math.max(Math.abs(B-H.left),Math.abs(B-H.right)),L=Math.max(Math.abs(S-H.top),Math.abs(S-H.bottom));return Math.sqrt(j*j+L*L)}(S,H,L),ce=S-L.left,Se=H-L.top,at=J.enterDuration,de=document.createElement("div");de.classList.add("mat-ripple-element"),de.style.left=ce-xe+"px",de.style.top=Se-xe+"px",de.style.height=2*xe+"px",de.style.width=2*xe+"px",null!=j.color&&(de.style.backgroundColor=j.color),de.style.transitionDuration=`${at}ms`,this._containerElement.appendChild(de);const se=window.getComputedStyle(de),le=se.transitionDuration,Ee="none"===se.transitionProperty||"0s"===le||"0s, 0s"===le||0===L.width&&0===L.height,We=new Xt(this,de,j,Ee);de.style.transform="scale3d(1, 1, 1)",We.state=0,j.persistent||(this._mostRecentTransientRipple=We);let bt=null;return!Ee&&(at||J.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ht=()=>this._finishRippleTransition(We),Ut=()=>this._destroyRipple(We);de.addEventListener("transitionend",ht),de.addEventListener("transitioncancel",Ut),bt={onTransitionEnd:ht,onTransitionCancel:Ut}}),this._activeRipples.set(We,bt),(Ee||!at)&&this._finishRippleTransition(We),We}fadeOutRipple(S){if(2===S.state||3===S.state)return;const H=S.element,j={...zt,...S.config.animation};H.style.transitionDuration=`${j.exitDuration}ms`,H.style.opacity="0",S.state=2,(S._animationForciblyDisabledThroughCss||!j.exitDuration)&&this._finishRippleTransition(S)}fadeOutAll(){this._getActiveRipples().forEach(S=>S.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(S=>{S.config.persistent||S.fadeOut()})}setupTriggerEvents(S){const H=(0,re.fI)(S);!this._platform.isBrowser||!H||H===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=H,Hn.forEach(j=>{ze._eventManager.addHandler(this._ngZone,j,H,this)}))}handleEvent(S){"mousedown"===S.type?this._onMousedown(S):"touchstart"===S.type?this._onTouchStart(S):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Un.forEach(H=>{this._triggerElement.addEventListener(H,this,xn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(S){0===S.state?this._startFadeOutTransition(S):2===S.state&&this._destroyRipple(S)}_startFadeOutTransition(S){const H=S===this._mostRecentTransientRipple,{persistent:j}=S.config;S.state=1,!j&&(!H||!this._isPointerDown)&&S.fadeOut()}_destroyRipple(S){const H=this._activeRipples.get(S)??null;this._activeRipples.delete(S),this._activeRipples.size||(this._containerRect=null),S===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),S.state=3,null!==H&&(S.element.removeEventListener("transitionend",H.onTransitionEnd),S.element.removeEventListener("transitioncancel",H.onTransitionCancel)),S.element.remove()}_onMousedown(S){const H=(0,l.X6)(S),j=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!H&&!j&&(this._isPointerDown=!0,this.fadeInRipple(S.clientX,S.clientY,this._target.rippleConfig))}_onTouchStart(S){if(!this._target.rippleDisabled&&!(0,l.yG)(S)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const H=S.changedTouches;if(H)for(let j=0;j<H.length;j++)this.fadeInRipple(H[j].clientX,H[j].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(S=>{!S.config.persistent&&(1===S.state||S.config.terminateOnPointerUp&&0===S.state)&&S.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const S=this._triggerElement;S&&(Hn.forEach(H=>ze._eventManager.removeHandler(H,S,this)),this._pointerUpEventsRegistered&&Un.forEach(H=>S.removeEventListener(H,this,xn)))}}ze._eventManager=new Sn;const Ie=new o.OlP("mat-ripple-global-options");let pe=(()=>{var B;class S{get disabled(){return this._disabled}set disabled(j){j&&this.fadeOutAllNonPersistent(),this._disabled=j,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(j){this._trigger=j,this._setupTriggerEventsIfEnabled()}constructor(j,L,J,xe,ce){this._elementRef=j,this._animationMode=ce,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=xe||{},this._rippleRenderer=new ze(this,L,j,J)}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(j,L=0,J){return"number"==typeof j?this._rippleRenderer.fadeInRipple(j,L,{...this.rippleConfig,...J}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...j})}}return(B=S).\u0275fac=function(j){return new(j||B)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(W.t4),o.Y36(Ie,8),o.Y36(o.QbO,8))},B.\u0275dir=o.lG2({type:B,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(j,L){2&j&&o.ekj("mat-ripple-unbounded",L.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"]}),S})(),nt=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[rt,rt]}),S})(),Te=(()=>{var B;class S{constructor(j){this._animationMode=j,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(B=S).\u0275fac=function(j){return new(j||B)(o.Y36(o.QbO,8))},B.\u0275cmp=o.Xpm({type:B,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(j,L){2&j&&o.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===L.state)("mat-pseudo-checkbox-checked","checked"===L.state)("mat-pseudo-checkbox-disabled",L.disabled)("mat-pseudo-checkbox-minimal","minimal"===L.appearance)("mat-pseudo-checkbox-full","full"===L.appearance)("_mat-animation-noopable","NoopAnimations"===L._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(j,L){},styles:['.mat-pseudo-checkbox{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-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-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),S})(),Ke=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[rt]}),S})();const dt=new o.OlP("MAT_OPTION_PARENT_COMPONENT"),vt=new o.OlP("MatOptgroup");let y=0;class P{constructor(S,H=!1){this.source=S,this.isUserInput=H}}let ee=(()=>{var B;class S{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(j){this._disabled=(0,re.Ig)(j)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(j,L,J,xe){this._element=j,this._changeDetectorRef=L,this._parent=J,this.group=xe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+y++,this.onSelectionChange=new o.vpe,this._stateChanges=new ie.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(j=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),j&&this._emitSelectionChangeEvent())}deselect(j=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),j&&this._emitSelectionChangeEvent())}focus(j,L){const J=this._getHostElement();"function"==typeof J.focus&&J.focus(L)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(j){(j.keyCode===V.K5||j.keyCode===V.L_)&&!(0,V.Vb)(j)&&(this._selectViaInteraction(),j.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const j=this.viewValue;j!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=j)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(j=!1){this.onSelectionChange.emit(new P(this,j))}}return(B=S).\u0275fac=function(j){o.$Z()},B.\u0275dir=o.lG2({type:B,viewQuery:function(j,L){if(1&j&&o.Gf(He,7),2&j){let J;o.iGM(J=o.CRH())&&(L._text=J.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),S})(),Ae=(()=>{var B;class S extends ee{constructor(j,L,J,xe){super(j,L,J,xe)}}return(B=S).\u0275fac=function(j){return new(j||B)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(dt,8),o.Y36(vt,8))},B.\u0275cmp=o.Xpm({type:B,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(j,L){1&j&&o.NdJ("click",function(){return L._selectViaInteraction()})("keydown",function(xe){return L._handleKeydown(xe)}),2&j&&(o.Ikx("id",L.id),o.uIk("aria-selected",L.selected)("aria-disabled",L.disabled.toString()),o.ekj("mdc-list-item--selected",L.selected)("mat-mdc-option-multiple",L.multiple)("mat-mdc-option-active",L.active)("mdc-list-item--disabled",L.disabled))},exportAs:["matOption"],features:[o.qOj],ngContentSelectors:ut,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(j,L){1&j&&(o.F$t(Ye),o.YNc(0,tt,1,2,"mat-pseudo-checkbox",0),o.Hsn(1),o.TgZ(2,"span",1,2),o.Hsn(4,1),o.qZA(),o.YNc(5,$e,1,1,"mat-pseudo-checkbox",3),o.YNc(6,X,2,1,"span",4),o._UZ(7,"div",5)),2&j&&(o.Q6J("ngIf",L.multiple),o.xp6(5),o.Q6J("ngIf",!L.multiple&&L.selected&&!L.hideSingleSelectionIndicator),o.xp6(1),o.Q6J("ngIf",L.group&&L.group._inert),o.xp6(1),o.Q6J("matRippleTrigger",L._getHostElement())("matRippleDisabled",L.disabled||L.disableRipple))},dependencies:[pe,Y.O5,Te],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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);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:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.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-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.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;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.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 .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),S})();function it(B,S,H){if(H.length){let j=S.toArray(),L=H.toArray(),J=0;for(let xe=0;xe<B+1;xe++)j[xe].group&&j[xe].group===L[J]&&J++;return J}return 0}function St(B,S,H,j){return B<H?B:B+S>H+j?Math.max(0,B-j+S):H}let Et=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[nt,Y.ez,rt,Ke]}),S})();const Pt={capture:!0},Ht=["focus","click","mouseenter","touchstart"],Yt="mat-ripple-loader-uninitialized",cn="mat-ripple-loader-class-name",Oe="mat-ripple-loader-centered",z="mat-ripple-loader-disabled";let U=(()=>{var B;class S{constructor(){this._document=(0,o.f3M)(Y.K0,{optional:!0}),this._animationMode=(0,o.f3M)(o.QbO,{optional:!0}),this._globalRippleOptions=(0,o.f3M)(Ie,{optional:!0}),this._platform=(0,o.f3M)(W.t4),this._ngZone=(0,o.f3M)(o.R0b),this._onInteraction=j=>{if(!(j.target instanceof HTMLElement))return;const J=j.target.closest(`[${Yt}]`);J&&this.createRipple(J)},this._ngZone.runOutsideAngular(()=>{for(const j of Ht)this._document?.addEventListener(j,this._onInteraction,Pt)})}ngOnDestroy(){for(const j of Ht)this._document?.removeEventListener(j,this._onInteraction,Pt)}configureRipple(j,L){j.setAttribute(Yt,""),(L.className||!j.hasAttribute(cn))&&j.setAttribute(cn,L.className||""),L.centered&&j.setAttribute(Oe,""),L.disabled&&j.setAttribute(z,"")}getRipple(j){return j.matRipple?j.matRipple:this.createRipple(j)}setDisabled(j,L){const J=j.matRipple;J?J.disabled=L:L?j.setAttribute(z,""):j.removeAttribute(z)}createRipple(j){if(!this._document)return;j.querySelector(".mat-ripple")?.remove();const L=this._document.createElement("span");L.classList.add("mat-ripple",j.getAttribute(cn)),j.append(L);const J=new pe(new o.SBq(L),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return J._isInitialized=!0,J.trigger=j,J.centered=j.hasAttribute(Oe),J.disabled=j.hasAttribute(z),this.attachRipple(j,J),J}attachRipple(j,L){j.removeAttribute(Yt),j.matRipple=L}}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),S})()},7700:(wt,Pe,C)=>{C.d(Pe,{WI:()=>Nt,uw:()=>zt,Is:()=>Ie,so:()=>ke});var o=C(3651),l=C(6814),R=C(5879),K=C(7849),Y=C(2831),W=C(8484),re=C(6028),ue=C(8645),ie=C(4911),V=C(2096),Q=C(9388),be=C(7921);function Ve(Te,Ke){}class He{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,this.closeOnOverlayDetachments=!0}}let $e=(()=>{var Te;class Ke extends W.en{constructor(je,Je,pt,vt,Re,y,P,ee){super(),this._elementRef=je,this._focusTrapFactory=Je,this._config=vt,this._interactivityChecker=Re,this._ngZone=y,this._overlayRef=P,this._focusMonitor=ee,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Ae=>{this._portalOutlet.hasAttached();const it=this._portalOutlet.attachDomPortal(Ae);return this._contentAttached(),it},this._document=pt,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(je){this._portalOutlet.hasAttached();const Je=this._portalOutlet.attachComponentPortal(je);return this._contentAttached(),Je}attachTemplatePortal(je){this._portalOutlet.hasAttached();const Je=this._portalOutlet.attachTemplatePortal(je);return this._contentAttached(),Je}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(je,Je){this._interactivityChecker.isFocusable(je)||(je.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const pt=()=>{je.removeEventListener("blur",pt),je.removeEventListener("mousedown",pt),je.removeAttribute("tabindex")};je.addEventListener("blur",pt),je.addEventListener("mousedown",pt)})),je.focus(Je)}_focusByCssSelector(je,Je){let pt=this._elementRef.nativeElement.querySelector(je);pt&&this._forceFocus(pt,Je)}_trapFocus(){const je=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||je.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Je=>{Je||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 je=this._config.restoreFocus;let Je=null;if("string"==typeof je?Je=this._document.querySelector(je):"boolean"==typeof je?Je=je?this._elementFocusedBeforeDialogWasOpened:null:je&&(Je=je),this._config.restoreFocus&&Je&&"function"==typeof Je.focus){const pt=(0,Y.ht)(),vt=this._elementRef.nativeElement;(!pt||pt===this._document.body||pt===vt||vt.contains(pt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Je,this._closeInteractionType),this._closeInteractionType=null):Je.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const je=this._elementRef.nativeElement,Je=(0,Y.ht)();return je===Je||je.contains(Je)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Y.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.Y36(R.SBq),R.Y36(K.qV),R.Y36(l.K0,8),R.Y36(He),R.Y36(K.ic),R.Y36(R.R0b),R.Y36(o.Iu),R.Y36(K.tE))},Te.\u0275cmp=R.Xpm({type:Te,selectors:[["cdk-dialog-container"]],viewQuery:function(je,Je){if(1&je&&R.Gf(W.Pl,7),2&je){let pt;R.iGM(pt=R.CRH())&&(Je._portalOutlet=pt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(je,Je){2&je&&R.uIk("id",Je._config.id||null)("role",Je._config.role)("aria-modal",Je._config.ariaModal)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledByQueue[0])("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null)},features:[R.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(je,Je){1&je&&R.YNc(0,Ve,0,0,"ng-template",0)},dependencies:[W.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ke})();class X{constructor(Ke,dt){this.overlayRef=Ke,this.config=dt,this.closed=new ue.x,this.disableClose=dt.disableClose,this.backdropClick=Ke.backdropClick(),this.keydownEvents=Ke.keydownEvents(),this.outsidePointerEvents=Ke.outsidePointerEvents(),this.id=dt.id,this.keydownEvents.subscribe(je=>{je.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(je)&&(je.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ke.detachments().subscribe(()=>{!1!==dt.closeOnOverlayDetachments&&this.close()})}close(Ke,dt){if(this.containerInstance){const je=this.closed;this.containerInstance._closeInteractionType=dt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),je.next(Ke),je.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ke="",dt=""){return this.overlayRef.updateSize({width:Ke,height:dt}),this}addPanelClass(Ke){return this.overlayRef.addPanelClass(Ke),this}removePanelClass(Ke){return this.overlayRef.removePanelClass(Ke),this}}const Ye=new R.OlP("DialogScrollStrategy"),ut=new R.OlP("DialogData"),Ne=new R.OlP("DefaultDialogConfig"),me={provide:Ye,deps:[o.aV],useFactory:function q(Te){return()=>Te.scrollStrategies.block()}};let ve=0,ye=(()=>{var Te;class Ke{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(je,Je,pt,vt,Re,y){this._overlay=je,this._injector=Je,this._defaultOptions=pt,this._parentDialog=vt,this._overlayContainer=Re,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue.x,this._afterOpenedAtThisLevel=new ue.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ie.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,be.O)(void 0))),this._scrollStrategy=y}open(je,Je){(Je={...this._defaultOptions||new He,...Je}).id=Je.id||"cdk-dialog-"+ve++,Je.id&&this.getDialogById(Je.id);const vt=this._getOverlayConfig(Je),Re=this._overlay.create(vt),y=new X(Re,Je),P=this._attachContainer(Re,y,Je);return y.containerInstance=P,this._attachDialogContent(je,y,P,Je),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(y),y.closed.subscribe(()=>this._removeOpenDialog(y,!0)),this.afterOpened.next(y),y}closeAll(){rt(this.openDialogs,je=>je.close())}getDialogById(je){return this.openDialogs.find(Je=>Je.id===je)}ngOnDestroy(){rt(this._openDialogsAtThisLevel,je=>{!1===je.config.closeOnDestroy&&this._removeOpenDialog(je,!1)}),rt(this._openDialogsAtThisLevel,je=>je.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(je){const Je=new o.X_({positionStrategy:je.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:je.scrollStrategy||this._scrollStrategy(),panelClass:je.panelClass,hasBackdrop:je.hasBackdrop,direction:je.direction,minWidth:je.minWidth,minHeight:je.minHeight,maxWidth:je.maxWidth,maxHeight:je.maxHeight,width:je.width,height:je.height,disposeOnNavigation:je.closeOnNavigation});return je.backdropClass&&(Je.backdropClass=je.backdropClass),Je}_attachContainer(je,Je,pt){const vt=pt.injector||pt.viewContainerRef?.injector,Re=[{provide:He,useValue:pt},{provide:X,useValue:Je},{provide:o.Iu,useValue:je}];let y;pt.container?"function"==typeof pt.container?y=pt.container:(y=pt.container.type,Re.push(...pt.container.providers(pt))):y=$e;const P=new W.C5(y,pt.viewContainerRef,R.zs3.create({parent:vt||this._injector,providers:Re}),pt.componentFactoryResolver);return je.attach(P).instance}_attachDialogContent(je,Je,pt,vt){if(je instanceof R.Rgc){const Re=this._createInjector(vt,Je,pt,void 0);let y={$implicit:vt.data,dialogRef:Je};vt.templateContext&&(y={...y,..."function"==typeof vt.templateContext?vt.templateContext():vt.templateContext}),pt.attachTemplatePortal(new W.UE(je,null,y,Re))}else{const Re=this._createInjector(vt,Je,pt,this._injector),y=pt.attachComponentPortal(new W.C5(je,vt.viewContainerRef,Re,vt.componentFactoryResolver));Je.componentRef=y,Je.componentInstance=y.instance}}_createInjector(je,Je,pt,vt){const Re=je.injector||je.viewContainerRef?.injector,y=[{provide:ut,useValue:je.data},{provide:X,useValue:Je}];return je.providers&&("function"==typeof je.providers?y.push(...je.providers(Je,je,pt)):y.push(...je.providers)),je.direction&&(!Re||!Re.get(Q.Is,null,{optional:!0}))&&y.push({provide:Q.Is,useValue:{value:je.direction,change:(0,V.of)()}}),R.zs3.create({parent:Re||vt,providers:y})}_removeOpenDialog(je,Je){const pt=this.openDialogs.indexOf(je);pt>-1&&(this.openDialogs.splice(pt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((vt,Re)=>{vt?Re.setAttribute("aria-hidden",vt):Re.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Je&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const je=this._overlayContainer.getContainerElement();if(je.parentElement){const Je=je.parentElement.children;for(let pt=Je.length-1;pt>-1;pt--){const vt=Je[pt];vt!==je&&"SCRIPT"!==vt.nodeName&&"STYLE"!==vt.nodeName&&!vt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(vt,vt.getAttribute("aria-hidden")),vt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const je=this._parentDialog;return je?je._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.LFG(o.aV),R.LFG(R.zs3),R.LFG(Ne,8),R.LFG(Te,12),R.LFG(o.Xj),R.LFG(Ye))},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac}),Ke})();function rt(Te,Ke){let dt=Te.length;for(;dt--;)Ke(Te[dt])}let Qe=(()=>{var Te;class Ke{}return(Te=Ke).\u0275fac=function(je){return new(je||Te)},Te.\u0275mod=R.oAB({type:Te}),Te.\u0275inj=R.cJS({providers:[ye,me],imports:[o.U8,W.eL,K.rt,W.eL]}),Ke})();var ft=C(2495),xt=C(3019),Bt=C(2181),Rt=C(8180),Qt=C(3680);function sn(Te,Ke){}C(6825);class Cn{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 wn="mdc-dialog--open",Ge="mdc-dialog--opening",Xe="mdc-dialog--closing";let Me=(()=>{var Te;class Ke extends $e{constructor(je,Je,pt,vt,Re,y,P,ee){super(je,Je,pt,vt,Re,y,P,ee),this._animationStateChanged=new R.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(je){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:je})}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.Y36(R.SBq),R.Y36(K.qV),R.Y36(l.K0,8),R.Y36(Cn),R.Y36(K.ic),R.Y36(R.R0b),R.Y36(o.Iu),R.Y36(K.tE))},Te.\u0275cmp=R.Xpm({type:Te,selectors:[["ng-component"]],features:[R.qOj],decls:0,vars:0,template:function(je,Je){},encapsulation:2}),Ke})();const Ce="--mat-dialog-transition-duration";function Be(Te){return null==Te?null:"number"==typeof Te?Te:Te.endsWith("ms")?(0,ft.su)(Te.substring(0,Te.length-2)):Te.endsWith("s")?1e3*(0,ft.su)(Te.substring(0,Te.length-1)):"0"===Te?0:null}let Fe=(()=>{var Te;class Ke extends Me{constructor(je,Je,pt,vt,Re,y,P,ee,Ae){super(je,Je,pt,vt,Re,y,P,Ae),this._animationMode=ee,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Be(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?Be(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ce,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ge,wn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(wn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(wn),this._animationsEnabled?(this._hostElement.style.setProperty(Ce,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Xe)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(Ge,Xe)}_waitForAnimationToComplete(je,Je){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Je,je)}_requestAnimationFrame(je){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(je):je()})}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.Y36(R.SBq),R.Y36(K.qV),R.Y36(l.K0,8),R.Y36(Cn),R.Y36(K.ic),R.Y36(R.R0b),R.Y36(o.Iu),R.Y36(R.QbO,8),R.Y36(K.tE))},Te.\u0275cmp=R.Xpm({type:Te,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(je,Je){2&je&&(R.Ikx("id",Je._config.id),R.uIk("aria-modal",Je._config.ariaModal)("role",Je._config.role)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledByQueue[0])("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null),R.ekj("_mat-animation-noopable",!Je._animationsEnabled))},features:[R.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(je,Je){1&je&&(R.TgZ(0,"div",0)(1,"div",1),R.YNc(2,sn,0,0,"ng-template",2),R.qZA()())},dependencies:[W.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;outline:0}.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__container .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{--mdc-dialog-container-elevation-shadow: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);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);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, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.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}),Ke})();class ke{constructor(Ke,dt,je){this._ref=Ke,this._containerInstance=je,this._afterOpened=new ue.x,this._beforeClosed=new ue.x,this._state=0,this.disableClose=dt.disableClose,this.id=Ke.id,je._animationStateChanged.pipe((0,Bt.h)(Je=>"opened"===Je.state),(0,Rt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),je._animationStateChanged.pipe((0,Bt.h)(Je=>"closed"===Je.state),(0,Rt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,xt.T)(this.backdropClick(),this.keydownEvents().pipe((0,Bt.h)(Je=>Je.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(Je)))).subscribe(Je=>{this.disableClose||(Je.preventDefault(),function Ct(Te,Ke,dt){Te._closeInteractionType=Ke,Te.close(dt)}(this,"keydown"===Je.type?"keyboard":"mouse"))})}close(Ke){this._result=Ke,this._containerInstance._animationStateChanged.pipe((0,Bt.h)(dt=>"closing"===dt.state),(0,Rt.q)(1)).subscribe(dt=>{this._beforeClosed.next(Ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),dt.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(Ke){let dt=this._ref.config.positionStrategy;return Ke&&(Ke.left||Ke.right)?Ke.left?dt.left(Ke.left):dt.right(Ke.right):dt.centerHorizontally(),Ke&&(Ke.top||Ke.bottom)?Ke.top?dt.top(Ke.top):dt.bottom(Ke.bottom):dt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ke="",dt=""){return this._ref.updateSize(Ke,dt),this}addPanelClass(Ke){return this._ref.addPanelClass(Ke),this}removePanelClass(Ke){return this._ref.removePanelClass(Ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Nt=new R.OlP("MatMdcDialogData"),jt=new R.OlP("mat-mdc-dialog-default-options"),Kt=new R.OlP("mat-mdc-dialog-scroll-strategy"),rn={provide:Kt,deps:[o.aV],useFactory:function nn(Te){return()=>Te.scrollStrategies.block()}};let an=0,Sn=(()=>{var Te;class Ke{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const je=this._parentDialog;return je?je._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(je,Je,pt,vt,Re,y,P,ee,Ae,it){this._overlay=je,this._defaultOptions=pt,this._parentDialog=vt,this._dialogRefConstructor=P,this._dialogContainerType=ee,this._dialogDataToken=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue.x,this._afterOpenedAtThisLevel=new ue.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=Cn,this.afterAllClosed=(0,ie.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,be.O)(void 0))),this._scrollStrategy=y,this._dialog=Je.get(ye)}open(je,Je){let pt;(Je={...this._defaultOptions||new Cn,...Je}).id=Je.id||`${this._idPrefix}${an++}`,Je.scrollStrategy=Je.scrollStrategy||this._scrollStrategy();const vt=this._dialog.open(je,{...Je,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Je},{provide:He,useValue:Je}]},templateContext:()=>({dialogRef:pt}),providers:(Re,y,P)=>(pt=new this._dialogRefConstructor(Re,Je,P),pt.updatePosition(Je?.position),[{provide:this._dialogContainerType,useValue:P},{provide:this._dialogDataToken,useValue:y.data},{provide:this._dialogRefConstructor,useValue:pt}])});return pt.componentRef=vt.componentRef,pt.componentInstance=vt.componentInstance,this.openDialogs.push(pt),this.afterOpened.next(pt),pt.afterClosed().subscribe(()=>{const Re=this.openDialogs.indexOf(pt);Re>-1&&(this.openDialogs.splice(Re,1),this.openDialogs.length||this._getAfterAllClosed().next())}),pt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(je){return this.openDialogs.find(Je=>Je.id===je)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(je){let Je=je.length;for(;Je--;)je[Je].close()}}return(Te=Ke).\u0275fac=function(je){R.$Z()},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac}),Ke})(),zt=(()=>{var Te;class Ke extends Sn{constructor(je,Je,pt,vt,Re,y,P,ee){super(je,Je,vt,y,P,Re,ke,Fe,Nt,ee),this._idPrefix="mat-mdc-dialog-"}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.LFG(o.aV),R.LFG(R.zs3),R.LFG(l.Ye,8),R.LFG(jt,8),R.LFG(Kt),R.LFG(Te,12),R.LFG(o.Xj),R.LFG(R.QbO,8))},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac}),Ke})(),Ie=(()=>{var Te;class Ke{}return(Te=Ke).\u0275fac=function(je){return new(je||Te)},Te.\u0275mod=R.oAB({type:Te}),Te.\u0275inj=R.cJS({providers:[zt,rn],imports:[Qe,o.U8,W.eL,Qt.BQ,Qt.BQ]}),Ke})()},6593:(wt,Pe,C)=>{C.d(Pe,{Dx:()=>xn,H7:()=>P,b2:()=>Xt,q6:()=>jt,se:()=>Qe});var o=C(5879),l=C(6814);class R extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class K extends R{static makeCurrent(){(0,l.HT)(new K)}onAndCancel(U,B,S){return U.addEventListener(B,S),()=>{U.removeEventListener(B,S)}}dispatchEvent(U,B){U.dispatchEvent(B)}remove(U){U.parentNode&&U.parentNode.removeChild(U)}createElement(U,B){return(B=B||this.getDefaultDocument()).createElement(U)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(U){return U.nodeType===Node.ELEMENT_NODE}isShadowRoot(U){return U instanceof DocumentFragment}getGlobalEventTarget(U,B){return"window"===B?window:"document"===B?U:"body"===B?U.body:null}getBaseHref(U){const B=function W(){return Y=Y||document.querySelector("base"),Y?Y.getAttribute("href"):null}();return null==B?null:function ue(z){re=re||document.createElement("a"),re.setAttribute("href",z);const U=re.pathname;return"/"===U.charAt(0)?U:`/${U}`}(B)}resetBaseElement(){Y=null}getUserAgent(){return window.navigator.userAgent}getCookie(U){return(0,l.Mx)(document.cookie,U)}}let re,Y=null,V=(()=>{var z;class U{build(){return new XMLHttpRequest}}return(z=U).\u0275fac=function(S){return new(S||z)},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const Q=new o.OlP("EventManagerPlugins");let be=(()=>{var z;class U{constructor(S,H){this._zone=H,this._eventNameToPlugin=new Map,S.forEach(j=>{j.manager=this}),this._plugins=S.slice().reverse()}addEventListener(S,H,j){return this._findPluginFor(H).addEventListener(S,H,j)}getZone(){return this._zone}_findPluginFor(S){let H=this._eventNameToPlugin.get(S);if(H)return H;if(H=this._plugins.find(L=>L.supports(S)),!H)throw new o.vHH(5101,!1);return this._eventNameToPlugin.set(S,H),H}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(Q),o.LFG(o.R0b))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();class Ve{constructor(U){this._doc=U}}const He="ng-app-id";let tt=(()=>{var z;class U{constructor(S,H,j,L={}){this.doc=S,this.appId=H,this.nonce=j,this.platformId=L,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.PM)(L),this.resetHostNodes()}addStyles(S){for(const H of S)1===this.changeUsageCount(H,1)&&this.onStyleAdded(H)}removeStyles(S){for(const H of S)this.changeUsageCount(H,-1)<=0&&this.onStyleRemoved(H)}ngOnDestroy(){const S=this.styleNodesInDOM;S&&(S.forEach(H=>H.remove()),S.clear());for(const H of this.getAllStyles())this.onStyleRemoved(H);this.resetHostNodes()}addHost(S){this.hostNodes.add(S);for(const H of this.getAllStyles())this.addStyleToHost(S,H)}removeHost(S){this.hostNodes.delete(S)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(S){for(const H of this.hostNodes)this.addStyleToHost(H,S)}onStyleRemoved(S){const H=this.styleRef;H.get(S)?.elements?.forEach(j=>j.remove()),H.delete(S)}collectServerRenderedStyles(){const S=this.doc.head?.querySelectorAll(`style[${He}="${this.appId}"]`);if(S?.length){const H=new Map;return S.forEach(j=>{null!=j.textContent&&H.set(j.textContent,j)}),H}return null}changeUsageCount(S,H){const j=this.styleRef;if(j.has(S)){const L=j.get(S);return L.usage+=H,L.usage}return j.set(S,{usage:H,elements:[]}),H}getStyleElement(S,H){const j=this.styleNodesInDOM,L=j?.get(H);if(L?.parentNode===S)return j.delete(H),L.removeAttribute(He),L;{const J=this.doc.createElement("style");return this.nonce&&J.setAttribute("nonce",this.nonce),J.textContent=H,this.platformIsServer&&J.setAttribute(He,this.appId),J}}addStyleToHost(S,H){const j=this.getStyleElement(S,H);S.appendChild(j);const L=this.styleRef,J=L.get(H)?.elements;J?J.push(j):L.set(H,{elements:[j],usage:1})}resetHostNodes(){const S=this.hostNodes;S.clear(),S.add(this.doc.head)}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0),o.LFG(o.AFp),o.LFG(o.Ojb,8),o.LFG(o.Lbi))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const $e={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/"},X=/%COMP%/g,me=new o.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function rt(z,U){return U.map(B=>B.replace(X,z))}let Qe=(()=>{var z;class U{constructor(S,H,j,L,J,xe,ce,Se=null){this.eventManager=S,this.sharedStylesHost=H,this.appId=j,this.removeStylesOnCompDestroy=L,this.doc=J,this.platformId=xe,this.ngZone=ce,this.nonce=Se,this.rendererByCompId=new Map,this.platformIsServer=(0,l.PM)(xe),this.defaultRenderer=new ft(S,J,ce,this.platformIsServer)}createRenderer(S,H){if(!S||!H)return this.defaultRenderer;this.platformIsServer&&H.encapsulation===o.ifc.ShadowDom&&(H={...H,encapsulation:o.ifc.Emulated});const j=this.getOrCreateRenderer(S,H);return j instanceof sn?j.applyToHost(S):j instanceof qt&&j.applyStyles(),j}getOrCreateRenderer(S,H){const j=this.rendererByCompId;let L=j.get(H.id);if(!L){const J=this.doc,xe=this.ngZone,ce=this.eventManager,Se=this.sharedStylesHost,at=this.removeStylesOnCompDestroy,de=this.platformIsServer;switch(H.encapsulation){case o.ifc.Emulated:L=new sn(ce,Se,H,this.appId,at,J,xe,de);break;case o.ifc.ShadowDom:return new Qt(ce,Se,S,H,J,xe,this.nonce,de);default:L=new qt(ce,Se,H,at,J,xe,de)}j.set(H.id,L)}return L}ngOnDestroy(){this.rendererByCompId.clear()}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(be),o.LFG(tt),o.LFG(o.AFp),o.LFG(me),o.LFG(l.K0),o.LFG(o.Lbi),o.LFG(o.R0b),o.LFG(o.Ojb))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();class ft{constructor(U,B,S,H){this.eventManager=U,this.doc=B,this.ngZone=S,this.platformIsServer=H,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(U,B){return B?this.doc.createElementNS($e[B]||B,U):this.doc.createElement(U)}createComment(U){return this.doc.createComment(U)}createText(U){return this.doc.createTextNode(U)}appendChild(U,B){(Rt(U)?U.content:U).appendChild(B)}insertBefore(U,B,S){U&&(Rt(U)?U.content:U).insertBefore(B,S)}removeChild(U,B){U&&U.removeChild(B)}selectRootElement(U,B){let S="string"==typeof U?this.doc.querySelector(U):U;if(!S)throw new o.vHH(-5104,!1);return B||(S.textContent=""),S}parentNode(U){return U.parentNode}nextSibling(U){return U.nextSibling}setAttribute(U,B,S,H){if(H){B=H+":"+B;const j=$e[H];j?U.setAttributeNS(j,B,S):U.setAttribute(B,S)}else U.setAttribute(B,S)}removeAttribute(U,B,S){if(S){const H=$e[S];H?U.removeAttributeNS(H,B):U.removeAttribute(`${S}:${B}`)}else U.removeAttribute(B)}addClass(U,B){U.classList.add(B)}removeClass(U,B){U.classList.remove(B)}setStyle(U,B,S,H){H&(o.JOm.DashCase|o.JOm.Important)?U.style.setProperty(B,S,H&o.JOm.Important?"important":""):U.style[B]=S}removeStyle(U,B,S){S&o.JOm.DashCase?U.style.removeProperty(B):U.style[B]=""}setProperty(U,B,S){U[B]=S}setValue(U,B){U.nodeValue=B}listen(U,B,S){if("string"==typeof U&&!(U=(0,l.q)().getGlobalEventTarget(this.doc,U)))throw new Error(`Unsupported event target ${U} for event ${B}`);return this.eventManager.addEventListener(U,B,this.decoratePreventDefault(S))}decoratePreventDefault(U){return B=>{if("__ngUnwrap__"===B)return U;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>U(B)):U(B))&&B.preventDefault()}}}function Rt(z){return"TEMPLATE"===z.tagName&&void 0!==z.content}class Qt extends ft{constructor(U,B,S,H,j,L,J,xe){super(U,j,L,xe),this.sharedStylesHost=B,this.hostEl=S,this.shadowRoot=S.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ce=rt(H.id,H.styles);for(const Se of ce){const at=document.createElement("style");J&&at.setAttribute("nonce",J),at.textContent=Se,this.shadowRoot.appendChild(at)}}nodeOrShadowRoot(U){return U===this.hostEl?this.shadowRoot:U}appendChild(U,B){return super.appendChild(this.nodeOrShadowRoot(U),B)}insertBefore(U,B,S){return super.insertBefore(this.nodeOrShadowRoot(U),B,S)}removeChild(U,B){return super.removeChild(this.nodeOrShadowRoot(U),B)}parentNode(U){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(U)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class qt extends ft{constructor(U,B,S,H,j,L,J,xe){super(U,j,L,J),this.sharedStylesHost=B,this.removeStylesOnCompDestroy=H,this.styles=xe?rt(xe,S.styles):S.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class sn extends qt{constructor(U,B,S,H,j,L,J,xe){const ce=H+"-"+S.id;super(U,B,S,j,L,J,xe,ce),this.contentAttr=function ve(z){return"_ngcontent-%COMP%".replace(X,z)}(ce),this.hostAttr=function ye(z){return"_nghost-%COMP%".replace(X,z)}(ce)}applyToHost(U){this.applyStyles(),this.setAttribute(U,this.hostAttr,"")}createElement(U,B){const S=super.createElement(U,B);return super.setAttribute(S,this.contentAttr,""),S}}let Cn=(()=>{var z;class U extends Ve{constructor(S){super(S)}supports(S){return!0}addEventListener(S,H,j){return S.addEventListener(H,j,!1),()=>this.removeEventListener(S,H,j)}removeEventListener(S,H,j){return S.removeEventListener(H,j)}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const wn=["alt","control","meta","shift"],Ge={"\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"},Xe={alt:z=>z.altKey,control:z=>z.ctrlKey,meta:z=>z.metaKey,shift:z=>z.shiftKey};let Ze=(()=>{var z;class U extends Ve{constructor(S){super(S)}supports(S){return null!=U.parseEventName(S)}addEventListener(S,H,j){const L=U.parseEventName(H),J=U.eventCallback(L.fullKey,j,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(S,L.domEventName,J))}static parseEventName(S){const H=S.toLowerCase().split("."),j=H.shift();if(0===H.length||"keydown"!==j&&"keyup"!==j)return null;const L=U._normalizeKey(H.pop());let J="",xe=H.indexOf("code");if(xe>-1&&(H.splice(xe,1),J="code."),wn.forEach(Se=>{const at=H.indexOf(Se);at>-1&&(H.splice(at,1),J+=Se+".")}),J+=L,0!=H.length||0===L.length)return null;const ce={};return ce.domEventName=j,ce.fullKey=J,ce}static matchEventFullKeyCode(S,H){let j=Ge[S.key]||S.key,L="";return H.indexOf("code.")>-1&&(j=S.code,L="code."),!(null==j||!j)&&(j=j.toLowerCase()," "===j?j="space":"."===j&&(j="dot"),wn.forEach(J=>{J!==j&&(0,Xe[J])(S)&&(L+=J+".")}),L+=j,L===H)}static eventCallback(S,H,j){return L=>{U.matchEventFullKeyCode(L,S)&&j.runGuarded(()=>H(L))}}static _normalizeKey(S){return"esc"===S?"escape":S}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const jt=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:l.bD},{provide:o.g9A,useValue:function Fe(){K.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function Ct(){return(0,o.RDi)(document),document},deps:[]}]),Kt=new o.OlP(""),nn=[{provide:o.rWj,useClass:class ie{addToWindow(U){o.dqk.getAngularTestability=(S,H=!0)=>{const j=U.findTestabilityInTree(S,H);if(null==j)throw new o.vHH(5103,!1);return j},o.dqk.getAllAngularTestabilities=()=>U.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>U.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(S=>{const H=o.dqk.getAllAngularTestabilities();let j=H.length,L=!1;const J=function(xe){L=L||xe,j--,0==j&&S(L)};H.forEach(xe=>{xe.whenStable(J)})})}findTestabilityInTree(U,B,S){return null==B?null:U.getTestability(B)??(S?(0,l.q)().isShadowRoot(B)?this.findTestabilityInTree(U,B.host,!0):this.findTestabilityInTree(U,B.parentElement,!0):null)}},deps:[]},{provide:o.lri,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]}],rn=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function ke(){return new o.qLn},deps:[]},{provide:Q,useClass:Cn,multi:!0,deps:[l.K0,o.R0b,o.Lbi]},{provide:Q,useClass:Ze,multi:!0,deps:[l.K0]},Qe,tt,be,{provide:o.FYo,useExisting:Qe},{provide:l.JF,useClass:V,deps:[]},[]];let Xt=(()=>{var z;class U{constructor(S){}static withServerTransition(S){return{ngModule:U,providers:[{provide:o.AFp,useValue:S.appId}]}}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(Kt,12))},z.\u0275mod=o.oAB({type:z}),z.\u0275inj=o.cJS({providers:[...rn,...nn],imports:[l.ez,o.hGG]}),U})(),xn=(()=>{var z;class U{constructor(S){this._doc=S}getTitle(){return this._doc.title}setTitle(S){this._doc.title=S||""}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:function(S){let H=null;return H=S?new S:function Vn(){return new xn((0,o.LFG)(l.K0))}(),H},providedIn:"root"}),U})();typeof window<"u"&&window;let P=(()=>{var z;class U{}return(z=U).\u0275fac=function(S){return new(S||z)},z.\u0275prov=o.Yz7({token:z,factory:function(S){let H=null;return H=S?new(S||z):o.LFG(Ae),H},providedIn:"root"}),U})(),Ae=(()=>{var z;class U extends P{constructor(S){super(),this._doc=S}sanitize(S,H){if(null==H)return null;switch(S){case o.q3G.NONE:return H;case o.q3G.HTML:return(0,o.qzn)(H,"HTML")?(0,o.z3N)(H):(0,o.EiD)(this._doc,String(H)).toString();case o.q3G.STYLE:return(0,o.qzn)(H,"Style")?(0,o.z3N)(H):H;case o.q3G.SCRIPT:if((0,o.qzn)(H,"Script"))return(0,o.z3N)(H);throw new o.vHH(5200,!1);case o.q3G.URL:return(0,o.qzn)(H,"URL")?(0,o.z3N)(H):(0,o.mCW)(String(H));case o.q3G.RESOURCE_URL:if((0,o.qzn)(H,"ResourceURL"))return(0,o.z3N)(H);throw new o.vHH(5201,!1);default:throw new o.vHH(5202,!1)}}bypassSecurityTrustHtml(S){return(0,o.JVY)(S)}bypassSecurityTrustStyle(S){return(0,o.L6k)(S)}bypassSecurityTrustScript(S){return(0,o.eBb)(S)}bypassSecurityTrustUrl(S){return(0,o.LAX)(S)}bypassSecurityTrustResourceUrl(S){return(0,o.pB0)(S)}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:function(S){let H=null;return H=S?new S:function ee(z){return new Ae(z.get(l.K0))}(o.LFG(o.zs3)),H},providedIn:"root"}),U})()},8184:(wt,Pe,C)=>{C.d(Pe,{F0:()=>nr,rH:()=>no,Od:()=>Kr,Bz:()=>La,lC:()=>Ai});var o=C(5879),l=C(5592),R=C(4674),Y=C(2459),W=C(2096),re=C(5619),ue=C(2572),ie=C(6973),V=C(5211),Q=C(4911),be=C(8407),Ve=C(8504),He=C(6232),tt=C(7394),$e=C(9360),X=C(8251);function Ye(){return(0,$e.e)((f,v)=>{let w=null;f._refCount++;const _=(0,X.x)(v,void 0,void 0,void 0,()=>{if(!f||f._refCount<=0||0<--f._refCount)return void(w=null);const I=f._connection,Z=w;w=null,I&&(!Z||I===Z)&&I.unsubscribe(),v.unsubscribe()});f.subscribe(_),_.closed||(w=f.connect())})}class ut extends l.y{constructor(v,w){super(),this.source=v,this.subjectFactory=w,this._subject=null,this._refCount=0,this._connection=null,(0,$e.A)(v)&&(this.lift=v.lift)}_subscribe(v){return this.getSubject().subscribe(v)}getSubject(){const v=this._subject;return(!v||v.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:v}=this;this._subject=this._connection=null,v?.unsubscribe()}connect(){let v=this._connection;if(!v){v=this._connection=new tt.w0;const w=this.getSubject();v.add(this.source.subscribe((0,X.x)(w,void 0,()=>{this._teardown(),w.complete()},_=>{this._teardown(),w.error(_)},()=>this._teardown()))),v.closed&&(this._connection=null,v=tt.w0.EMPTY)}return v}refCount(){return Ye()(this)}}var Ne=C(8645),q=C(6814),me=C(7398),ve=C(4664),ye=C(8180),rt=C(7921),Qe=C(2181),ft=C(1631),xt=C(1374),Bt=C(6328),Rt=C(9397),Qt=C(6306);var Cn=C(3572);function wn(f){return f<=0?()=>He.E:(0,$e.e)((v,w)=>{let _=[];v.subscribe((0,X.x)(w,I=>{_.push(I),f<_.length&&_.shift()},()=>{for(const I of _)w.next(I);w.complete()},void 0,()=>{_=null}))})}var Ge=C(3026),Xe=C(2737),De=C(975),Me=C(4716),Ce=C(9773),Be=C(7537),Fe=C(6593);const ke="primary",Ct=Symbol("RouteTitle");class Nt{constructor(v){this.params=v||{}}has(v){return Object.prototype.hasOwnProperty.call(this.params,v)}get(v){if(this.has(v)){const w=this.params[v];return Array.isArray(w)?w[0]:w}return null}getAll(v){if(this.has(v)){const w=this.params[v];return Array.isArray(w)?w:[w]}return[]}get keys(){return Object.keys(this.params)}}function jt(f){return new Nt(f)}function Kt(f,v,w){const _=w.path.split("/");if(_.length>f.length||"full"===w.pathMatch&&(v.hasChildren()||_.length<f.length))return null;const I={};for(let Z=0;Z<_.length;Z++){const oe=_[Z],lt=f[Z];if(oe.startsWith(":"))I[oe.substring(1)]=lt;else if(oe!==lt.path)return null}return{consumed:f.slice(0,_.length),posParams:I}}function rn(f,v){const w=f?Object.keys(f):void 0,_=v?Object.keys(v):void 0;if(!w||!_||w.length!=_.length)return!1;let I;for(let Z=0;Z<w.length;Z++)if(I=w[Z],!Xt(f[I],v[I]))return!1;return!0}function Xt(f,v){if(Array.isArray(f)&&Array.isArray(v)){if(f.length!==v.length)return!1;const w=[...f].sort(),_=[...v].sort();return w.every((I,Z)=>_[Z]===I)}return f===v}function an(f){return f.length>0?f[f.length-1]:null}function Sn(f){return function K(f){return!!f&&(f instanceof l.y||(0,R.m)(f.lift)&&(0,R.m)(f.subscribe))}(f)?f:(0,o.QGY)(f)?(0,Y.D)(Promise.resolve(f)):(0,W.of)(f)}const zt={exact:function Un(f,v,w){if(!je(f.segments,v.segments)||!pe(f.segments,v.segments,w)||f.numberOfChildren!==v.numberOfChildren)return!1;for(const _ in v.children)if(!f.children[_]||!Un(f.children[_],v.children[_],w))return!1;return!0},subset:G},Vn={exact:function Hn(f,v){return rn(f,v)},subset:function ze(f,v){return Object.keys(v).length<=Object.keys(f).length&&Object.keys(v).every(w=>Xt(f[w],v[w]))},ignored:()=>!0};function xn(f,v,w){return zt[w.paths](f.root,v.root,w.matrixParams)&&Vn[w.queryParams](f.queryParams,v.queryParams)&&!("exact"===w.fragment&&f.fragment!==v.fragment)}function G(f,v,w){return Ie(f,v,v.segments,w)}function Ie(f,v,w,_){if(f.segments.length>w.length){const I=f.segments.slice(0,w.length);return!(!je(I,w)||v.hasChildren()||!pe(I,w,_))}if(f.segments.length===w.length){if(!je(f.segments,w)||!pe(f.segments,w,_))return!1;for(const I in v.children)if(!f.children[I]||!G(f.children[I],v.children[I],_))return!1;return!0}{const I=w.slice(0,f.segments.length),Z=w.slice(f.segments.length);return!!(je(f.segments,I)&&pe(f.segments,I,_)&&f.children[ke])&&Ie(f.children[ke],v,Z,_)}}function pe(f,v,w){return v.every((_,I)=>Vn[w](f[I].parameters,_.parameters))}class nt{constructor(v=new Te([],{}),w={},_=null){this.root=v,this.queryParams=w,this.fragment=_}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return Re.serialize(this)}}class Te{constructor(v,w){this.segments=v,this.children=w,this.parent=null,Object.values(w).forEach(_=>_.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return y(this)}}class Ke{constructor(v,w){this.path=v,this.parameters=w}get parameterMap(){return this._parameterMap||(this._parameterMap=jt(this.parameters)),this._parameterMap}toString(){return Ht(this)}}function je(f,v){return f.length===v.length&&f.every((w,_)=>w.path===v[_].path)}let pt=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return new vt},providedIn:"root"}),v})();class vt{parse(v){const w=new J(v);return new nt(w.parseRootSegment(),w.parseQueryParams(),w.parseFragment())}serialize(v){const w=`/${P(v.root,!0)}`,_=function cn(f){const v=Object.keys(f).map(w=>{const _=f[w];return Array.isArray(_)?_.map(I=>`${Ae(w)}=${Ae(I)}`).join("&"):`${Ae(w)}=${Ae(_)}`}).filter(w=>!!w);return v.length?`?${v.join("&")}`:""}(v.queryParams);return`${w}${_}${"string"==typeof v.fragment?`#${function it(f){return encodeURI(f)}(v.fragment)}`:""}`}}const Re=new vt;function y(f){return f.segments.map(v=>Ht(v)).join("/")}function P(f,v){if(!f.hasChildren())return y(f);if(v){const w=f.children[ke]?P(f.children[ke],!1):"",_=[];return Object.entries(f.children).forEach(([I,Z])=>{I!==ke&&_.push(`${I}:${P(Z,!1)}`)}),_.length>0?`${w}(${_.join("//")})`:w}{const w=function Je(f,v){let w=[];return Object.entries(f.children).forEach(([_,I])=>{_===ke&&(w=w.concat(v(I,_)))}),Object.entries(f.children).forEach(([_,I])=>{_!==ke&&(w=w.concat(v(I,_)))}),w}(f,(_,I)=>I===ke?[P(f.children[ke],!1)]:[`${I}:${P(_,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[ke]?`${y(f)}/${w[0]}`:`${y(f)}/(${w.join("//")})`}}function ee(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ae(f){return ee(f).replace(/%3B/gi,";")}function St(f){return ee(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(f){return decodeURIComponent(f)}function Pt(f){return Et(f.replace(/\+/g,"%20"))}function Ht(f){return`${St(f.path)}${function Yt(f){return Object.keys(f).map(v=>`;${St(v)}=${St(f[v])}`).join("")}(f.parameters)}`}const Oe=/^[^\/()?;#]+/;function z(f){const v=f.match(Oe);return v?v[0]:""}const U=/^[^\/()?;=#]+/,S=/^[^=?&#]+/,j=/^[^&#]+/;class J{constructor(v){this.url=v,this.remaining=v}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Te([],{}):new Te([],this.parseChildren())}parseQueryParams(){const v={};if(this.consumeOptional("?"))do{this.parseQueryParam(v)}while(this.consumeOptional("&"));return v}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const v=[];for(this.peekStartsWith("(")||v.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),v.push(this.parseSegment());let w={};this.peekStartsWith("/(")&&(this.capture("/"),w=this.parseParens(!0));let _={};return this.peekStartsWith("(")&&(_=this.parseParens(!1)),(v.length>0||Object.keys(w).length>0)&&(_[ke]=new Te(v,w)),_}parseSegment(){const v=z(this.remaining);if(""===v&&this.peekStartsWith(";"))throw new o.vHH(4009,!1);return this.capture(v),new Ke(Et(v),this.parseMatrixParams())}parseMatrixParams(){const v={};for(;this.consumeOptional(";");)this.parseParam(v);return v}parseParam(v){const w=function B(f){const v=f.match(U);return v?v[0]:""}(this.remaining);if(!w)return;this.capture(w);let _="";if(this.consumeOptional("=")){const I=z(this.remaining);I&&(_=I,this.capture(_))}v[Et(w)]=Et(_)}parseQueryParam(v){const w=function H(f){const v=f.match(S);return v?v[0]:""}(this.remaining);if(!w)return;this.capture(w);let _="";if(this.consumeOptional("=")){const oe=function L(f){const v=f.match(j);return v?v[0]:""}(this.remaining);oe&&(_=oe,this.capture(_))}const I=Pt(w),Z=Pt(_);if(v.hasOwnProperty(I)){let oe=v[I];Array.isArray(oe)||(oe=[oe],v[I]=oe),oe.push(Z)}else v[I]=Z}parseParens(v){const w={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const _=z(this.remaining),I=this.remaining[_.length];if("/"!==I&&")"!==I&&";"!==I)throw new o.vHH(4010,!1);let Z;_.indexOf(":")>-1?(Z=_.slice(0,_.indexOf(":")),this.capture(Z),this.capture(":")):v&&(Z=ke);const oe=this.parseChildren();w[Z]=1===Object.keys(oe).length?oe[ke]:new Te([],oe),this.consumeOptional("//")}return w}peekStartsWith(v){return this.remaining.startsWith(v)}consumeOptional(v){return!!this.peekStartsWith(v)&&(this.remaining=this.remaining.substring(v.length),!0)}capture(v){if(!this.consumeOptional(v))throw new o.vHH(4011,!1)}}function xe(f){return f.segments.length>0?new Te([],{[ke]:f}):f}function ce(f){const v={};for(const _ of Object.keys(f.children)){const Z=ce(f.children[_]);if(_===ke&&0===Z.segments.length&&Z.hasChildren())for(const[oe,lt]of Object.entries(Z.children))v[oe]=lt;else(Z.segments.length>0||Z.hasChildren())&&(v[_]=Z)}return function Se(f){if(1===f.numberOfChildren&&f.children[ke]){const v=f.children[ke];return new Te(f.segments.concat(v.segments),v.children)}return f}(new Te(f.segments,v))}function at(f){return f instanceof nt}function se(f){let v;const I=xe(function w(Z){const oe={};for(const It of Z.children){const mt=w(It);oe[It.outlet]=mt}const lt=new Te(Z.url,oe);return Z===f&&(v=lt),lt}(f.root));return v??I}function ot(f,v,w,_){let I=f;for(;I.parent;)I=I.parent;if(0===v.length)return We(I,I,I,w,_);const Z=function Ut(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new ht(!0,0,f);let v=0,w=!1;const _=f.reduce((I,Z,oe)=>{if("object"==typeof Z&&null!=Z){if(Z.outlets){const lt={};return Object.entries(Z.outlets).forEach(([It,mt])=>{lt[It]="string"==typeof mt?mt.split("/"):mt}),[...I,{outlets:lt}]}if(Z.segmentPath)return[...I,Z.segmentPath]}return"string"!=typeof Z?[...I,Z]:0===oe?(Z.split("/").forEach((lt,It)=>{0==It&&"."===lt||(0==It&&""===lt?w=!0:".."===lt?v++:""!=lt&&I.push(lt))}),I):[...I,Z]},[]);return new ht(w,v,_)}(v);if(Z.toRoot())return We(I,I,new Te([],{}),w,_);const oe=function Pn(f,v,w){if(f.isAbsolute)return new Gt(v,!0,0);if(!w)return new Gt(v,!1,NaN);if(null===w.parent)return new Gt(w,!0,0);const _=le(f.commands[0])?0:1;return function $n(f,v,w){let _=f,I=v,Z=w;for(;Z>I;){if(Z-=I,_=_.parent,!_)throw new o.vHH(4005,!1);I=_.segments.length}return new Gt(_,!1,I-Z)}(w,w.segments.length-1+_,f.numberOfDoubleDots)}(Z,I,f),lt=oe.processChildren?yr(oe.segmentGroup,oe.index,Z.commands):ir(oe.segmentGroup,oe.index,Z.commands);return We(I,oe.segmentGroup,lt,w,_)}function le(f){return"object"==typeof f&&null!=f&&!f.outlets&&!f.segmentPath}function Ee(f){return"object"==typeof f&&null!=f&&f.outlets}function We(f,v,w,_,I){let oe,Z={};_&&Object.entries(_).forEach(([It,mt])=>{Z[It]=Array.isArray(mt)?mt.map(Jt=>`${Jt}`):`${mt}`}),oe=f===v?w:bt(f,v,w);const lt=xe(ce(oe));return new nt(lt,Z,I)}function bt(f,v,w){const _={};return Object.entries(f.children).forEach(([I,Z])=>{_[I]=Z===v?w:bt(Z,v,w)}),new Te(f.segments,_)}class ht{constructor(v,w,_){if(this.isAbsolute=v,this.numberOfDoubleDots=w,this.commands=_,v&&_.length>0&&le(_[0]))throw new o.vHH(4003,!1);const I=_.find(Ee);if(I&&I!==an(_))throw new o.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gt{constructor(v,w,_){this.segmentGroup=v,this.processChildren=w,this.index=_}}function ir(f,v,w){if(f||(f=new Te([],{})),0===f.segments.length&&f.hasChildren())return yr(f,v,w);const _=function zr(f,v,w){let _=0,I=v;const Z={match:!1,pathIndex:0,commandIndex:0};for(;I<f.segments.length;){if(_>=w.length)return Z;const oe=f.segments[I],lt=w[_];if(Ee(lt))break;const It=`${lt}`,mt=_<w.length-1?w[_+1]:null;if(I>0&&void 0===It)break;if(It&&mt&&"object"==typeof mt&&void 0===mt.outlets){if(!ti(It,mt,oe))return Z;_+=2}else{if(!ti(It,{},oe))return Z;_++}I++}return{match:!0,pathIndex:I,commandIndex:_}}(f,v,w),I=w.slice(_.commandIndex);if(_.match&&_.pathIndex<f.segments.length){const Z=new Te(f.segments.slice(0,_.pathIndex),{});return Z.children[ke]=new Te(f.segments.slice(_.pathIndex),f.children),yr(Z,0,I)}return _.match&&0===I.length?new Te(f.segments,{}):_.match&&!f.hasChildren()?Mn(f,v,w):_.match?yr(f,0,I):Mn(f,v,w)}function yr(f,v,w){if(0===w.length)return new Te(f.segments,{});{const _=function Nn(f){return Ee(f[0])?f[0].outlets:{[ke]:f}}(w),I={};if(Object.keys(_).some(Z=>Z!==ke)&&f.children[ke]&&1===f.numberOfChildren&&0===f.children[ke].segments.length){const Z=yr(f.children[ke],v,w);return new Te(f.segments,Z.children)}return Object.entries(_).forEach(([Z,oe])=>{"string"==typeof oe&&(oe=[oe]),null!==oe&&(I[Z]=ir(f.children[Z],v,oe))}),Object.entries(f.children).forEach(([Z,oe])=>{void 0===_[Z]&&(I[Z]=oe)}),new Te(f.segments,I)}}function Mn(f,v,w){const _=f.segments.slice(0,v);let I=0;for(;I<w.length;){const Z=w[I];if(Ee(Z)){const It=Zn(Z.outlets);return new Te(_,It)}if(0===I&&le(w[0])){_.push(new Ke(f.segments[v].path,Or(w[0]))),I++;continue}const oe=Ee(Z)?Z.outlets[ke]:`${Z}`,lt=I<w.length-1?w[I+1]:null;oe&<&&le(lt)?(_.push(new Ke(oe,Or(lt))),I+=2):(_.push(new Ke(oe,{})),I++)}return new Te(_,{})}function Zn(f){const v={};return Object.entries(f).forEach(([w,_])=>{"string"==typeof _&&(_=[_]),null!==_&&(v[w]=Mn(new Te([],{}),0,_))}),v}function Or(f){const v={};return Object.entries(f).forEach(([w,_])=>v[w]=`${_}`),v}function ti(f,v,w){return f==w.path&&rn(v,w.parameters)}const Ln="imperative";class qn{constructor(v,w){this.id=v,this.url=w}}class Ii extends qn{constructor(v,w,_="imperative",I=null){super(v,w),this.type=0,this.navigationTrigger=_,this.restoredState=I}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dr extends qn{constructor(v,w,_){super(v,w),this.urlAfterRedirects=_,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ui extends qn{constructor(v,w,_,I){super(v,w),this.reason=_,this.code=I,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Gr extends qn{constructor(v,w,_,I){super(v,w),this.reason=_,this.code=I,this.type=16}}class hr extends qn{constructor(v,w,_,I){super(v,w),this.error=_,this.target=I,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class di extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $o extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ts extends qn{constructor(v,w,_,I,Z){super(v,w),this.urlAfterRedirects=_,this.state=I,this.shouldActivate=Z,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class la extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Is extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Eo{constructor(v){this.route=v,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ki{constructor(v){this.route=v,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Do{constructor(v){this.snapshot=v,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zo{constructor(v){this.snapshot=v,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Br{constructor(v){this.snapshot=v,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Go{constructor(v){this.snapshot=v,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xr{constructor(v,w,_){this.routerEvent=v,this.position=w,this.anchor=_,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ki{}class wo{constructor(v){this.url=v}}class So{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ni,this.attachRef=null}}let Ni=(()=>{var f;class v{constructor(){this.contexts=new Map}onChildOutletCreated(_,I){const Z=this.getOrCreateContext(_);Z.outlet=I,this.contexts.set(_,Z)}onChildOutletDestroyed(_){const I=this.getContext(_);I&&(I.outlet=null,I.attachRef=null)}onOutletDeactivated(){const _=this.contexts;return this.contexts=new Map,_}onOutletReAttached(_){this.contexts=_}getOrCreateContext(_){let I=this.getContext(_);return I||(I=new So,this.contexts.set(_,I)),I}getContext(_){return this.contexts.get(_)||null}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();class lo{constructor(v){this._root=v}get root(){return this._root.value}parent(v){const w=this.pathFromRoot(v);return w.length>1?w[w.length-2]:null}children(v){const w=Zo(v,this._root);return w?w.children.map(_=>_.value):[]}firstChild(v){const w=Zo(v,this._root);return w&&w.children.length>0?w.children[0].value:null}siblings(v){const w=An(v,this._root);return w.length<2?[]:w[w.length-2].children.map(I=>I.value).filter(I=>I!==v)}pathFromRoot(v){return An(v,this._root).map(w=>w.value)}}function Zo(f,v){if(f===v.value)return v;for(const w of v.children){const _=Zo(f,w);if(_)return _}return null}function An(f,v){if(f===v.value)return[v];for(const w of v.children){const _=An(f,w);if(_.length)return _.unshift(v),_}return[]}class Kn{constructor(v,w){this.value=v,this.children=w}toString(){return`TreeNode(${this.value})`}}function or(f){const v={};return f&&f.children.forEach(w=>v[w.value.outlet]=w),v}class bi extends lo{constructor(v,w){super(v),this.snapshot=w,Vt(this,v)}toString(){return this.snapshot.toString()}}function Pr(f,v){const w=function Mo(f,v){const oe=new ni([],{},{},"",{},ke,v,null,{});return new Xn("",new Kn(oe,[]))}(0,v),_=new re.X([new Ke("",{})]),I=new re.X({}),Z=new re.X({}),oe=new re.X({}),lt=new re.X(""),It=new Fi(_,I,oe,lt,Z,ke,v,w.root);return It.snapshot=w.root,new bi(new Kn(It,[]),w)}class Fi{constructor(v,w,_,I,Z,oe,lt,It){this.urlSubject=v,this.paramsSubject=w,this.queryParamsSubject=_,this.fragmentSubject=I,this.dataSubject=Z,this.outlet=oe,this.component=lt,this._futureSnapshot=It,this.title=this.dataSubject?.pipe((0,me.U)(mt=>mt[Ct]))??(0,W.of)(void 0),this.url=v,this.params=w,this.queryParams=_,this.fragment=I,this.data=Z}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,me.U)(v=>jt(v)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,me.U)(v=>jt(v)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yi(f,v="emptyOnly"){const w=f.pathFromRoot;let _=0;if("always"!==v)for(_=w.length-1;_>=1;){const I=w[_],Z=w[_-1];if(I.routeConfig&&""===I.routeConfig.path)_--;else{if(Z.component)break;_--}}return function As(f){return f.reduce((v,w)=>({params:{...v.params,...w.params},data:{...v.data,...w.data},resolve:{...w.data,...v.resolve,...w.routeConfig?.data,...w._resolvedData}}),{params:{},data:{},resolve:{}})}(w.slice(_))}class ni{get title(){return this.data?.[Ct]}constructor(v,w,_,I,Z,oe,lt,It,mt){this.url=v,this.params=w,this.queryParams=_,this.fragment=I,this.data=Z,this.outlet=oe,this.component=lt,this.routeConfig=It,this._resolve=mt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=jt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(_=>_.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xn extends lo{constructor(v,w){super(w),this.url=v,Vt(this,w)}toString(){return un(this._root)}}function Vt(f,v){v.value._routerState=f,v.children.forEach(w=>Vt(f,w))}function un(f){const v=f.children.length>0?` { ${f.children.map(un).join(", ")} } `:"";return`${f.value}${v}`}function Jn(f){if(f.snapshot){const v=f.snapshot,w=f._futureSnapshot;f.snapshot=w,rn(v.queryParams,w.queryParams)||f.queryParamsSubject.next(w.queryParams),v.fragment!==w.fragment&&f.fragmentSubject.next(w.fragment),rn(v.params,w.params)||f.paramsSubject.next(w.params),function nn(f,v){if(f.length!==v.length)return!1;for(let w=0;w<f.length;++w)if(!rn(f[w],v[w]))return!1;return!0}(v.url,w.url)||f.urlSubject.next(w.url),rn(v.data,w.data)||f.dataSubject.next(w.data)}else f.snapshot=f._futureSnapshot,f.dataSubject.next(f._futureSnapshot.data)}function br(f,v){const w=rn(f.params,v.params)&&function dt(f,v){return je(f,v)&&f.every((w,_)=>rn(w.parameters,v[_].parameters))}(f.url,v.url);return w&&!(!f.parent!=!v.parent)&&(!f.parent||br(f.parent,v.parent))}let Ai=(()=>{var f;class v{constructor(){this.activated=null,this._activatedRoute=null,this.name=ke,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.attachEvents=new o.vpe,this.detachEvents=new o.vpe,this.parentContexts=(0,o.f3M)(Ni),this.location=(0,o.f3M)(o.s_b),this.changeDetector=(0,o.f3M)(o.sBO),this.environmentInjector=(0,o.f3M)(o.lqb),this.inputBinder=(0,o.f3M)(Ci,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(_){if(_.name){const{firstChange:I,previousValue:Z}=_.name;if(I)return;this.isTrackedInParentContexts(Z)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Z)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(_){return this.parentContexts.getContext(_)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const _=this.parentContexts.getContext(this.name);_?.route&&(_.attachRef?this.attach(_.attachRef,_.route):this.activateWith(_.route,_.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.vHH(4012,!1);this.location.detach();const _=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_.instance),_}attach(_,I){this.activated=_,this._activatedRoute=I,this.location.insert(_.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(_.instance)}deactivate(){if(this.activated){const _=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,I){if(this.isActivated)throw new o.vHH(4013,!1);this._activatedRoute=_;const Z=this.location,lt=_.snapshot.component,It=this.parentContexts.getOrCreateContext(this.name).children,mt=new ur(_,It,Z.injector);this.activated=Z.createComponent(lt,{index:Z.length,injector:mt,environmentInjector:I??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275dir=o.lG2({type:f,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[o.TTD]}),v})();class ur{constructor(v,w,_){this.route=v,this.childContexts=w,this.parent=_}get(v,w){return v===Fi?this.route:v===Ni?this.childContexts:this.parent.get(v,w)}}const Ci=new o.OlP("");let ar=(()=>{var f;class v{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(_){this.unsubscribeFromRouteData(_),this.subscribeToRouteData(_)}unsubscribeFromRouteData(_){this.outletDataSubscriptions.get(_)?.unsubscribe(),this.outletDataSubscriptions.delete(_)}subscribeToRouteData(_){const{activatedRoute:I}=_,Z=(0,ue.a)([I.queryParams,I.params,I.data]).pipe((0,ve.w)(([oe,lt,It],mt)=>(It={...oe,...lt,...It},0===mt?(0,W.of)(It):Promise.resolve(It)))).subscribe(oe=>{if(!_.isActivated||!_.activatedComponentRef||_.activatedRoute!==I||null===I.component)return void this.unsubscribeFromRouteData(_);const lt=(0,o.qFp)(I.component);if(lt)for(const{templateName:It}of lt.inputs)_.activatedComponentRef.setInput(It,oe[It]);else this.unsubscribeFromRouteData(_)});this.outletDataSubscriptions.set(_,Z)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac}),v})();function hi(f,v,w){if(w&&f.shouldReuseRoute(v.value,w.value.snapshot)){const _=w.value;_._futureSnapshot=v.value;const I=function hn(f,v,w){return v.children.map(_=>{for(const I of w.children)if(f.shouldReuseRoute(_.value,I.value.snapshot))return hi(f,_,I);return hi(f,_)})}(f,v,w);return new Kn(_,I)}{if(f.shouldAttach(v.value)){const Z=f.retrieve(v.value);if(null!==Z){const oe=Z.route;return oe.value._futureSnapshot=v.value,oe.children=v.children.map(lt=>hi(f,lt)),oe}}const _=function Qr(f){return new Fi(new re.X(f.url),new re.X(f.params),new re.X(f.queryParams),new re.X(f.fragment),new re.X(f.data),f.outlet,f.component,f)}(v.value),I=v.children.map(Z=>hi(f,Z));return new Kn(_,I)}}const To="ngNavigationCancelingError";function Li(f,v){const{redirectTo:w,navigationBehaviorOptions:_}=at(v)?{redirectTo:v,navigationBehaviorOptions:void 0}:v,I=lr(!1,0,v);return I.url=w,I.navigationBehaviorOptions=_,I}function lr(f,v,w){const _=new Error("NavigationCancelingError: "+(f||""));return _[To]=!0,_.cancellationCode=v,w&&(_.url=w),_}function qi(f){return f&&f[To]}let Wr=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["ng-component"]],standalone:!0,features:[o.jDz],decls:1,vars:0,template:function(_,I){1&_&&o._UZ(0,"router-outlet")},dependencies:[Ai],encapsulation:2}),v})();function Cr(f){const v=f.children&&f.children.map(Cr),w=v?{...f,children:v}:{...f};return!w.component&&!w.loadComponent&&(v||w.loadChildren)&&w.outlet&&w.outlet!==ke&&(w.component=Wr),w}function er(f){return f.outlet||ke}function ri(f){if(!f)return null;if(f.routeConfig?._injector)return f.routeConfig._injector;for(let v=f.parent;v;v=v.parent){const w=v.routeConfig;if(w?._loadedInjector)return w._loadedInjector;if(w?._injector)return w._injector}return null}class xa{constructor(v,w,_,I,Z){this.routeReuseStrategy=v,this.futureState=w,this.currState=_,this.forwardEvent=I,this.inputBindingEnabled=Z}activate(v){const w=this.futureState._root,_=this.currState?this.currState._root:null;this.deactivateChildRoutes(w,_,v),Jn(this.futureState.root),this.activateChildRoutes(w,_,v)}deactivateChildRoutes(v,w,_){const I=or(w);v.children.forEach(Z=>{const oe=Z.value.outlet;this.deactivateRoutes(Z,I[oe],_),delete I[oe]}),Object.values(I).forEach(Z=>{this.deactivateRouteAndItsChildren(Z,_)})}deactivateRoutes(v,w,_){const I=v.value,Z=w?w.value:null;if(I===Z)if(I.component){const oe=_.getContext(I.outlet);oe&&this.deactivateChildRoutes(v,w,oe.children)}else this.deactivateChildRoutes(v,w,_);else Z&&this.deactivateRouteAndItsChildren(w,_)}deactivateRouteAndItsChildren(v,w){v.value.component&&this.routeReuseStrategy.shouldDetach(v.value.snapshot)?this.detachAndStoreRouteSubtree(v,w):this.deactivateRouteAndOutlet(v,w)}detachAndStoreRouteSubtree(v,w){const _=w.getContext(v.value.outlet),I=_&&v.value.component?_.children:w,Z=or(v);for(const oe of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[oe],I);if(_&&_.outlet){const oe=_.outlet.detach(),lt=_.children.onOutletDeactivated();this.routeReuseStrategy.store(v.value.snapshot,{componentRef:oe,route:v,contexts:lt})}}deactivateRouteAndOutlet(v,w){const _=w.getContext(v.value.outlet),I=_&&v.value.component?_.children:w,Z=or(v);for(const oe of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[oe],I);_&&(_.outlet&&(_.outlet.deactivate(),_.children.onOutletDeactivated()),_.attachRef=null,_.route=null)}activateChildRoutes(v,w,_){const I=or(w);v.children.forEach(Z=>{this.activateRoutes(Z,I[Z.value.outlet],_),this.forwardEvent(new Go(Z.value.snapshot))}),v.children.length&&this.forwardEvent(new zo(v.value.snapshot))}activateRoutes(v,w,_){const I=v.value,Z=w?w.value:null;if(Jn(I),I===Z)if(I.component){const oe=_.getOrCreateContext(I.outlet);this.activateChildRoutes(v,w,oe.children)}else this.activateChildRoutes(v,w,_);else if(I.component){const oe=_.getOrCreateContext(I.outlet);if(this.routeReuseStrategy.shouldAttach(I.snapshot)){const lt=this.routeReuseStrategy.retrieve(I.snapshot);this.routeReuseStrategy.store(I.snapshot,null),oe.children.onOutletReAttached(lt.contexts),oe.attachRef=lt.componentRef,oe.route=lt.route.value,oe.outlet&&oe.outlet.attach(lt.componentRef,lt.route.value),Jn(lt.route.value),this.activateChildRoutes(v,null,oe.children)}else{const lt=ri(I.snapshot);oe.attachRef=null,oe.route=I,oe.injector=lt,oe.outlet&&oe.outlet.activateWith(I,oe.injector),this.activateChildRoutes(v,null,oe.children)}}else this.activateChildRoutes(v,null,_)}}class Rr{constructor(v){this.path=v,this.route=this.path[this.path.length-1]}}class fr{constructor(v,w){this.component=v,this.route=w}}function Yo(f,v,w){const _=f._root;return kr(_,v?v._root:null,w,[_.value])}function Vr(f,v){const w=Symbol(),_=v.get(f,w);return _===w?"function"!=typeof f||(0,o.Z0I)(f)?v.get(f):f:_}function kr(f,v,w,_,I={canDeactivateChecks:[],canActivateChecks:[]}){const Z=or(v);return f.children.forEach(oe=>{(function qo(f,v,w,_,I={canDeactivateChecks:[],canActivateChecks:[]}){const Z=f.value,oe=v?v.value:null,lt=w?w.getContext(f.value.outlet):null;if(oe&&Z.routeConfig===oe.routeConfig){const It=function Qo(f,v,w){if("function"==typeof w)return w(f,v);switch(w){case"pathParamsChange":return!je(f.url,v.url);case"pathParamsOrQueryParamsChange":return!je(f.url,v.url)||!rn(f.queryParams,v.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!br(f,v)||!rn(f.queryParams,v.queryParams);default:return!br(f,v)}}(oe,Z,Z.routeConfig.runGuardsAndResolvers);It?I.canActivateChecks.push(new Rr(_)):(Z.data=oe.data,Z._resolvedData=oe._resolvedData),kr(f,v,Z.component?lt?lt.children:null:w,_,I),It&<&<.outlet&<.outlet.isActivated&&I.canDeactivateChecks.push(new fr(lt.outlet.component,oe))}else oe&&Oo(v,lt,I),I.canActivateChecks.push(new Rr(_)),kr(f,null,Z.component?lt?lt.children:null:w,_,I)})(oe,Z[oe.value.outlet],w,_.concat([oe.value]),I),delete Z[oe.value.outlet]}),Object.entries(Z).forEach(([oe,lt])=>Oo(lt,w.getContext(oe),I)),I}function Oo(f,v,w){const _=or(f),I=f.value;Object.entries(_).forEach(([Z,oe])=>{Oo(oe,I.component?v?v.children.getContext(Z):null:v,w)}),w.canDeactivateChecks.push(new fr(I.component&&v&&v.outlet&&v.outlet.isActivated?v.outlet.component:null,I))}function xo(f){return"function"==typeof f}function _n(f){return f instanceof ie.K||"EmptyError"===f?.name}const Nr=Symbol("INITIAL_VALUE");function Xr(){return(0,ve.w)(f=>(0,ue.a)(f.map(v=>v.pipe((0,ye.q)(1),(0,rt.O)(Nr)))).pipe((0,me.U)(v=>{for(const w of v)if(!0!==w){if(w===Nr)return Nr;if(!1===w||w instanceof nt)return w}return!0}),(0,Qe.h)(v=>v!==Nr),(0,ye.q)(1)))}function jr(f){return(0,be.z)((0,Rt.b)(v=>{if(at(v))throw Li(0,v)}),(0,me.U)(v=>!0===v))}class Hr{constructor(v){this.segmentGroup=v||null}}class gr{constructor(v){this.urlTree=v}}function wi(f){return(0,Ve._)(new Hr(f))}function Ur(f){return(0,Ve._)(new gr(f))}class fs{constructor(v,w){this.urlSerializer=v,this.urlTree=w}noMatchError(v){return new o.vHH(4002,!1)}lineralizeSegments(v,w){let _=[],I=w.root;for(;;){if(_=_.concat(I.segments),0===I.numberOfChildren)return(0,W.of)(_);if(I.numberOfChildren>1||!I.children[ke])return(0,Ve._)(new o.vHH(4e3,!1));I=I.children[ke]}}applyRedirectCommands(v,w,_){return this.applyRedirectCreateUrlTree(w,this.urlSerializer.parse(w),v,_)}applyRedirectCreateUrlTree(v,w,_,I){const Z=this.createSegmentGroup(v,w.root,_,I);return new nt(Z,this.createQueryParams(w.queryParams,this.urlTree.queryParams),w.fragment)}createQueryParams(v,w){const _={};return Object.entries(v).forEach(([I,Z])=>{if("string"==typeof Z&&Z.startsWith(":")){const lt=Z.substring(1);_[I]=w[lt]}else _[I]=Z}),_}createSegmentGroup(v,w,_,I){const Z=this.createSegments(v,w.segments,_,I);let oe={};return Object.entries(w.children).forEach(([lt,It])=>{oe[lt]=this.createSegmentGroup(v,It,_,I)}),new Te(Z,oe)}createSegments(v,w,_,I){return w.map(Z=>Z.path.startsWith(":")?this.findPosParam(v,Z,I):this.findOrReturn(Z,_))}findPosParam(v,w,_){const I=_[w.path.substring(1)];if(!I)throw new o.vHH(4001,!1);return I}findOrReturn(v,w){let _=0;for(const I of w){if(I.path===v.path)return w.splice(_),I;_++}return v}}const Jo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function es(f,v,w,_,I){const Z=ho(f,v,w);return Z.matched?(_=function Io(f,v){return f.providers&&!f._injector&&(f._injector=(0,o.MMx)(f.providers,v,`Route: ${f.path}`)),f._injector??v}(v,_),function Ps(f,v,w,_){const I=v.canMatch;if(!I||0===I.length)return(0,W.of)(!0);const Z=I.map(oe=>{const lt=Vr(oe,f);return Sn(function k(f){return f&&xo(f.canMatch)}(lt)?lt.canMatch(v,w):f.runInContext(()=>lt(v,w)))});return(0,W.of)(Z).pipe(Xr(),jr())}(_,v,w).pipe((0,me.U)(oe=>!0===oe?Z:{...Jo}))):(0,W.of)(Z)}function ho(f,v,w){if(""===v.path)return"full"===v.pathMatch&&(f.hasChildren()||w.length>0)?{...Jo}:{matched:!0,consumedSegments:[],remainingSegments:w,parameters:{},positionalParamSegments:{}};const I=(v.matcher||Kt)(w,f,v);if(!I)return{...Jo};const Z={};Object.entries(I.posParams??{}).forEach(([lt,It])=>{Z[lt]=It.path});const oe=I.consumed.length>0?{...Z,...I.consumed[I.consumed.length-1].parameters}:Z;return{matched:!0,consumedSegments:I.consumed,remainingSegments:w.slice(I.consumed.length),parameters:oe,positionalParamSegments:I.posParams??{}}}function ps(f,v,w,_){return w.length>0&&function Rs(f,v,w){return w.some(_=>fn(f,v,_)&&er(_)!==ke)}(f,w,_)?{segmentGroup:new Te(v,ua(_,new Te(w,f.children))),slicedSegments:[]}:0===w.length&&function da(f,v,w){return w.some(_=>fn(f,v,_))}(f,w,_)?{segmentGroup:new Te(f.segments,mr(f,0,w,_,f.children)),slicedSegments:w}:{segmentGroup:new Te(f.segments,f.children),slicedSegments:w}}function mr(f,v,w,_,I){const Z={};for(const oe of _)if(fn(f,w,oe)&&!I[er(oe)]){const lt=new Te([],{});Z[er(oe)]=lt}return{...I,...Z}}function ua(f,v){const w={};w[ke]=v;for(const _ of f)if(""===_.path&&er(_)!==ke){const I=new Te([],{});w[er(_)]=I}return w}function fn(f,v,w){return(!(f.hasChildren()||v.length>0)||"full"!==w.pathMatch)&&""===w.path}class Ns{constructor(v,w,_,I,Z,oe,lt){this.injector=v,this.configLoader=w,this.rootComponentType=_,this.config=I,this.urlTree=Z,this.paramsInheritanceStrategy=oe,this.urlSerializer=lt,this.allowRedirects=!0,this.applyRedirects=new fs(this.urlSerializer,this.urlTree)}noMatchError(v){return new o.vHH(4002,!1)}recognize(){const v=ps(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,v,ke).pipe((0,Qt.K)(w=>{if(w instanceof gr)return this.allowRedirects=!1,this.urlTree=w.urlTree,this.match(w.urlTree);throw w instanceof Hr?this.noMatchError(w):w}),(0,me.U)(w=>{const _=new ni([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ke,this.rootComponentType,null,{}),I=new Kn(_,w),Z=new Xn("",I),oe=function de(f,v,w=null,_=null){return ot(se(f),v,w,_)}(_,[],this.urlTree.queryParams,this.urlTree.fragment);return oe.queryParams=this.urlTree.queryParams,Z.url=this.urlSerializer.serialize(oe),this.inheritParamsAndData(Z._root),{state:Z,tree:oe}}))}match(v){return this.processSegmentGroup(this.injector,this.config,v.root,ke).pipe((0,Qt.K)(_=>{throw _ instanceof Hr?this.noMatchError(_):_}))}inheritParamsAndData(v){const w=v.value,_=Yi(w,this.paramsInheritanceStrategy);w.params=Object.freeze(_.params),w.data=Object.freeze(_.data),v.children.forEach(I=>this.inheritParamsAndData(I))}processSegmentGroup(v,w,_,I){return 0===_.segments.length&&_.hasChildren()?this.processChildren(v,w,_):this.processSegment(v,w,_,_.segments,I,!0)}processChildren(v,w,_){const I=[];for(const Z of Object.keys(_.children))"primary"===Z?I.unshift(Z):I.push(Z);return(0,Y.D)(I).pipe((0,Bt.b)(Z=>{const oe=_.children[Z],lt=function Bi(f,v){const w=f.filter(_=>er(_)===v);return w.push(...f.filter(_=>er(_)!==v)),w}(w,Z);return this.processSegmentGroup(v,lt,oe,Z)}),function sn(f,v){return(0,$e.e)(function qt(f,v,w,_,I){return(Z,oe)=>{let lt=w,It=v,mt=0;Z.subscribe((0,X.x)(oe,Jt=>{const vn=mt++;It=lt?f(It,Jt,vn):(lt=!0,Jt),_&&oe.next(It)},I&&(()=>{lt&&oe.next(It),oe.complete()})))}}(f,v,arguments.length>=2,!0))}((Z,oe)=>(Z.push(...oe),Z)),(0,Cn.d)(null),function Ze(f,v){const w=arguments.length>=2;return _=>_.pipe(f?(0,Qe.h)((I,Z)=>f(I,Z,_)):Xe.y,wn(1),w?(0,Cn.d)(v):(0,Ge.T)(()=>new ie.K))}(),(0,ft.z)(Z=>{if(null===Z)return wi(_);const oe=ms(Z);return function ts(f){f.sort((v,w)=>v.value.outlet===ke?-1:w.value.outlet===ke?1:v.value.outlet.localeCompare(w.value.outlet))}(oe),(0,W.of)(oe)}))}processSegment(v,w,_,I,Z,oe){return(0,Y.D)(w).pipe((0,Bt.b)(lt=>this.processSegmentAgainstRoute(lt._injector??v,w,lt,_,I,Z,oe).pipe((0,Qt.K)(It=>{if(It instanceof Hr)return(0,W.of)(null);throw It}))),(0,xt.P)(lt=>!!lt),(0,Qt.K)(lt=>{if(_n(lt))return function ji(f,v,w){return 0===v.length&&!f.children[w]}(_,I,Z)?(0,W.of)([]):wi(_);throw lt}))}processSegmentAgainstRoute(v,w,_,I,Z,oe,lt){return function gs(f,v,w,_){return!!(er(f)===_||_!==ke&&fn(v,w,f))&&("**"===f.path||ho(v,f,w).matched)}(_,I,Z,oe)?void 0===_.redirectTo?this.matchSegmentAgainstRoute(v,I,_,Z,oe,lt):lt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(v,I,w,_,Z,oe):wi(I):wi(I)}expandSegmentAgainstRouteUsingRedirect(v,w,_,I,Z,oe){return"**"===I.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(v,_,I,oe):this.expandRegularSegmentAgainstRouteUsingRedirect(v,w,_,I,Z,oe)}expandWildCardWithParamsAgainstRouteUsingRedirect(v,w,_,I){const Z=this.applyRedirects.applyRedirectCommands([],_.redirectTo,{});return _.redirectTo.startsWith("/")?Ur(Z):this.applyRedirects.lineralizeSegments(_,Z).pipe((0,ft.z)(oe=>{const lt=new Te(oe,{});return this.processSegment(v,w,lt,oe,I,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(v,w,_,I,Z,oe){const{matched:lt,consumedSegments:It,remainingSegments:mt,positionalParamSegments:Jt}=ho(w,I,Z);if(!lt)return wi(w);const vn=this.applyRedirects.applyRedirectCommands(It,I.redirectTo,Jt);return I.redirectTo.startsWith("/")?Ur(vn):this.applyRedirects.lineralizeSegments(I,vn).pipe((0,ft.z)(Mr=>this.processSegment(v,_,w,Mr.concat(mt),oe,!1)))}matchSegmentAgainstRoute(v,w,_,I,Z,oe){let lt;if("**"===_.path){const It=I.length>0?an(I).parameters:{},mt=new ni(I,It,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ls(_),er(_),_.component??_._loadedComponent??null,_,Bs(_));lt=(0,W.of)({snapshot:mt,consumedSegments:[],remainingSegments:[]}),w.children={}}else lt=es(w,_,I,v).pipe((0,me.U)(({matched:It,consumedSegments:mt,remainingSegments:Jt,parameters:vn})=>It?{snapshot:new ni(mt,vn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ls(_),er(_),_.component??_._loadedComponent??null,_,Bs(_)),consumedSegments:mt,remainingSegments:Jt}:null));return lt.pipe((0,ve.w)(It=>null===It?wi(w):this.getChildConfig(v=_._injector??v,_,I).pipe((0,ve.w)(({routes:mt})=>{const Jt=_._loadedInjector??v,{snapshot:vn,consumedSegments:Mr,remainingSegments:Gn}=It,{segmentGroup:ii,slicedSegments:$i}=ps(w,Mr,Gn,mt);if(0===$i.length&&ii.hasChildren())return this.processChildren(Jt,mt,ii).pipe((0,me.U)(ko=>null===ko?null:[new Kn(vn,ko)]));if(0===mt.length&&0===$i.length)return(0,W.of)([new Kn(vn,[])]);const Ro=er(_)===Z;return this.processSegment(Jt,mt,ii,$i,Ro?ke:Z,!0).pipe((0,me.U)(ko=>[new Kn(vn,ko)]))}))))}getChildConfig(v,w,_){return w.children?(0,W.of)({routes:w.children,injector:v}):w.loadChildren?void 0!==w._loadedRoutes?(0,W.of)({routes:w._loadedRoutes,injector:w._loadedInjector}):function uo(f,v,w,_){const I=v.canLoad;if(void 0===I||0===I.length)return(0,W.of)(!0);const Z=I.map(oe=>{const lt=Vr(oe,f);return Sn(function Xo(f){return f&&xo(f.canLoad)}(lt)?lt.canLoad(v,w):f.runInContext(()=>lt(v,w)))});return(0,W.of)(Z).pipe(Xr(),jr())}(v,w,_).pipe((0,ft.z)(I=>I?this.configLoader.loadChildren(v,w).pipe((0,Rt.b)(Z=>{w._loadedRoutes=Z.routes,w._loadedInjector=Z.injector})):function hs(f){return(0,Ve._)(lr(!1,3))}())):(0,W.of)({routes:[],injector:v})}}function Fs(f){const v=f.value.routeConfig;return v&&""===v.path}function ms(f){const v=[],w=new Set;for(const _ of f){if(!Fs(_)){v.push(_);continue}const I=v.find(Z=>_.value.routeConfig===Z.value.routeConfig);void 0!==I?(I.children.push(..._.children),w.add(I)):v.push(_)}for(const _ of w){const I=ms(_.children);v.push(new Kn(_.value,I))}return v.filter(_=>!w.has(_))}function Ls(f){return f.data||{}}function Bs(f){return f.resolve||{}}function ys(f){return"string"==typeof f.title||null===f.title}function g(f){return(0,ve.w)(v=>{const w=f(v);return w?(0,Y.D)(w).pipe((0,me.U)(()=>v)):(0,W.of)(v)})}const A=new o.OlP("ROUTES");let fe=(()=>{var f;class v{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,o.f3M)(o.Sil)}loadComponent(_){if(this.componentLoaders.get(_))return this.componentLoaders.get(_);if(_._loadedComponent)return(0,W.of)(_._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(_);const I=Sn(_.loadComponent()).pipe((0,me.U)(ne),(0,Rt.b)(oe=>{this.onLoadEndListener&&this.onLoadEndListener(_),_._loadedComponent=oe}),(0,Me.x)(()=>{this.componentLoaders.delete(_)})),Z=new ut(I,()=>new Ne.x).pipe(Ye());return this.componentLoaders.set(_,Z),Z}loadChildren(_,I){if(this.childrenLoaders.get(I))return this.childrenLoaders.get(I);if(I._loadedRoutes)return(0,W.of)({routes:I._loadedRoutes,injector:I._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(I);const oe=this.loadModuleFactoryOrRoutes(I.loadChildren).pipe((0,me.U)(It=>{this.onLoadEndListener&&this.onLoadEndListener(I);let mt,Jt;return Array.isArray(It)?Jt=It:(mt=It.create(_).injector,Jt=mt.get(A,[],o.XFs.Self|o.XFs.Optional).flat()),{routes:Jt.map(Cr),injector:mt}}),(0,Me.x)(()=>{this.childrenLoaders.delete(I)})),lt=new ut(oe,()=>new Ne.x).pipe(Ye());return this.childrenLoaders.set(I,lt),lt}loadModuleFactoryOrRoutes(_){return Sn(_()).pipe((0,me.U)(ne),(0,ft.z)(I=>I instanceof o.YKP||Array.isArray(I)?(0,W.of)(I):(0,Y.D)(this.compiler.compileModuleAsync(I))))}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function ne(f){return function M(f){return f&&"object"==typeof f&&"default"in f}(f)?f.default:f}let Le=(()=>{var f;class v{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ne.x,this.transitionAbortSubject=new Ne.x,this.configLoader=(0,o.f3M)(fe),this.environmentInjector=(0,o.f3M)(o.lqb),this.urlSerializer=(0,o.f3M)(pt),this.rootContexts=(0,o.f3M)(Ni),this.inputBindingEnabled=null!==(0,o.f3M)(Ci,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,W.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Z=>this.events.next(new ki(Z)),this.configLoader.onLoadStartListener=Z=>this.events.next(new Eo(Z))}complete(){this.transitions?.complete()}handleNavigationRequest(_){const I=++this.navigationId;this.transitions?.next({...this.transitions.value,..._,id:I})}setupNavigations(_,I,Z){return this.transitions=new re.X({id:0,currentUrlTree:I,currentRawUrl:I,currentBrowserUrl:I,extractedUrl:_.urlHandlingStrategy.extract(I),urlAfterRedirects:_.urlHandlingStrategy.extract(I),rawUrl:I,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ln,restoredState:null,currentSnapshot:Z.snapshot,targetSnapshot:null,currentRouterState:Z,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Qe.h)(oe=>0!==oe.id),(0,me.U)(oe=>({...oe,extractedUrl:_.urlHandlingStrategy.extract(oe.rawUrl)})),(0,ve.w)(oe=>{this.currentTransition=oe;let lt=!1,It=!1;return(0,W.of)(oe).pipe((0,Rt.b)(mt=>{this.currentNavigation={id:mt.id,initialUrl:mt.rawUrl,extractedUrl:mt.extractedUrl,trigger:mt.source,extras:mt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(mt=>{const Jt=mt.currentBrowserUrl.toString(),vn=!_.navigated||mt.extractedUrl.toString()!==Jt||Jt!==mt.currentUrlTree.toString();if(!vn&&"reload"!==(mt.extras.onSameUrlNavigation??_.onSameUrlNavigation)){const Gn="";return this.events.next(new Gr(mt.id,this.urlSerializer.serialize(mt.rawUrl),Gn,0)),mt.resolve(null),He.E}if(_.urlHandlingStrategy.shouldProcessUrl(mt.rawUrl))return(0,W.of)(mt).pipe((0,ve.w)(Gn=>{const ii=this.transitions?.getValue();return this.events.next(new Ii(Gn.id,this.urlSerializer.serialize(Gn.extractedUrl),Gn.source,Gn.restoredState)),ii!==this.transitions?.getValue()?He.E:Promise.resolve(Gn)}),function _s(f,v,w,_,I,Z){return(0,ft.z)(oe=>function ks(f,v,w,_,I,Z,oe="emptyOnly"){return new Ns(f,v,w,_,I,oe,Z).recognize()}(f,v,w,_,oe.extractedUrl,I,Z).pipe((0,me.U)(({state:lt,tree:It})=>({...oe,targetSnapshot:lt,urlAfterRedirects:It}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,_.config,this.urlSerializer,_.paramsInheritanceStrategy),(0,Rt.b)(Gn=>{oe.targetSnapshot=Gn.targetSnapshot,oe.urlAfterRedirects=Gn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Gn.urlAfterRedirects};const ii=new di(Gn.id,this.urlSerializer.serialize(Gn.extractedUrl),this.urlSerializer.serialize(Gn.urlAfterRedirects),Gn.targetSnapshot);this.events.next(ii)}));if(vn&&_.urlHandlingStrategy.shouldProcessUrl(mt.currentRawUrl)){const{id:Gn,extractedUrl:ii,source:$i,restoredState:Ro,extras:ko}=mt,Ba=new Ii(Gn,this.urlSerializer.serialize(ii),$i,Ro);this.events.next(Ba);const qr=Pr(0,this.rootComponentType).snapshot;return this.currentTransition=oe={...mt,targetSnapshot:qr,urlAfterRedirects:ii,extras:{...ko,skipLocationChange:!1,replaceUrl:!1}},(0,W.of)(oe)}{const Gn="";return this.events.next(new Gr(mt.id,this.urlSerializer.serialize(mt.extractedUrl),Gn,1)),mt.resolve(null),He.E}}),(0,Rt.b)(mt=>{const Jt=new $o(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects),mt.targetSnapshot);this.events.next(Jt)}),(0,me.U)(mt=>(this.currentTransition=oe={...mt,guards:Yo(mt.targetSnapshot,mt.currentSnapshot,this.rootContexts)},oe)),function co(f,v){return(0,ft.z)(w=>{const{targetSnapshot:_,currentSnapshot:I,guards:{canActivateChecks:Z,canDeactivateChecks:oe}}=w;return 0===oe.length&&0===Z.length?(0,W.of)({...w,guardsResult:!0}):function Di(f,v,w,_){return(0,Y.D)(f).pipe((0,ft.z)(I=>function xs(f,v,w,_,I){const Z=v&&v.routeConfig?v.routeConfig.canDeactivate:null;if(!Z||0===Z.length)return(0,W.of)(!0);const oe=Z.map(lt=>{const It=ri(v)??I,mt=Vr(lt,It);return Sn(function te(f){return f&&xo(f.canDeactivate)}(mt)?mt.canDeactivate(f,v,w,_):It.runInContext(()=>mt(f,v,w,_))).pipe((0,xt.P)())});return(0,W.of)(oe).pipe(Xr())}(I.component,I.route,w,v,_)),(0,xt.P)(I=>!0!==I,!0))}(oe,_,I,f).pipe((0,ft.z)(lt=>lt&&function us(f){return"boolean"==typeof f}(lt)?function nl(f,v,w,_){return(0,Y.D)(v).pipe((0,Bt.b)(I=>(0,V.z)(function ca(f,v){return null!==f&&v&&v(new Do(f)),(0,W.of)(!0)}(I.route.parent,_),function ds(f,v){return null!==f&&v&&v(new Br(f)),(0,W.of)(!0)}(I.route,_),function rl(f,v,w){const _=v[v.length-1],Z=v.slice(0,v.length-1).reverse().map(oe=>function Ji(f){const v=f.routeConfig?f.routeConfig.canActivateChild:null;return v&&0!==v.length?{node:f,guards:v}:null}(oe)).filter(oe=>null!==oe).map(oe=>(0,Q.P)(()=>{const lt=oe.guards.map(It=>{const mt=ri(oe.node)??w,Jt=Vr(It,mt);return Sn(function T(f){return f&&xo(f.canActivateChild)}(Jt)?Jt.canActivateChild(_,f):mt.runInContext(()=>Jt(_,f))).pipe((0,xt.P)())});return(0,W.of)(lt).pipe(Xr())}));return(0,W.of)(Z).pipe(Xr())}(f,I.path,w),function Pa(f,v,w){const _=v.routeConfig?v.routeConfig.canActivate:null;if(!_||0===_.length)return(0,W.of)(!0);const I=_.map(Z=>(0,Q.P)(()=>{const oe=ri(v)??w,lt=Vr(Z,oe);return Sn(function x(f){return f&&xo(f.canActivate)}(lt)?lt.canActivate(v,f):oe.runInContext(()=>lt(v,f))).pipe((0,xt.P)())}));return(0,W.of)(I).pipe(Xr())}(f,I.route,w))),(0,xt.P)(I=>!0!==I,!0))}(_,Z,f,v):(0,W.of)(lt)),(0,me.U)(lt=>({...w,guardsResult:lt})))})}(this.environmentInjector,mt=>this.events.next(mt)),(0,Rt.b)(mt=>{if(oe.guardsResult=mt.guardsResult,at(mt.guardsResult))throw Li(0,mt.guardsResult);const Jt=new Ts(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects),mt.targetSnapshot,!!mt.guardsResult);this.events.next(Jt)}),(0,Qe.h)(mt=>!!mt.guardsResult||(this.cancelNavigationTransition(mt,"",3),!1)),g(mt=>{if(mt.guards.canActivateChecks.length)return(0,W.of)(mt).pipe((0,Rt.b)(Jt=>{const vn=new la(Jt.id,this.urlSerializer.serialize(Jt.extractedUrl),this.urlSerializer.serialize(Jt.urlAfterRedirects),Jt.targetSnapshot);this.events.next(vn)}),(0,ve.w)(Jt=>{let vn=!1;return(0,W.of)(Jt).pipe(function Ra(f,v){return(0,ft.z)(w=>{const{targetSnapshot:_,guards:{canActivateChecks:I}}=w;if(!I.length)return(0,W.of)(w);let Z=0;return(0,Y.D)(I).pipe((0,Bt.b)(oe=>function Vs(f,v,w,_){const I=f.routeConfig,Z=f._resolve;return void 0!==I?.title&&!ys(I)&&(Z[Ct]=I.title),function ha(f,v,w,_){const I=function fa(f){return[...Object.keys(f),...Object.getOwnPropertySymbols(f)]}(f);if(0===I.length)return(0,W.of)({});const Z={};return(0,Y.D)(I).pipe((0,ft.z)(oe=>function vs(f,v,w,_){const I=ri(v)??_,Z=Vr(f,I);return Sn(Z.resolve?Z.resolve(v,w):I.runInContext(()=>Z(v,w)))}(f[oe],v,w,_).pipe((0,xt.P)(),(0,Rt.b)(lt=>{Z[oe]=lt}))),wn(1),(0,De.h)(Z),(0,Qt.K)(oe=>_n(oe)?He.E:(0,Ve._)(oe)))}(Z,f,v,_).pipe((0,me.U)(oe=>(f._resolvedData=oe,f.data=Yi(f,w).resolve,I&&ys(I)&&(f.data[Ct]=I.title),null)))}(oe.route,_,f,v)),(0,Rt.b)(()=>Z++),wn(1),(0,ft.z)(oe=>Z===I.length?(0,W.of)(w):He.E))})}(_.paramsInheritanceStrategy,this.environmentInjector),(0,Rt.b)({next:()=>vn=!0,complete:()=>{vn||this.cancelNavigationTransition(Jt,"",2)}}))}),(0,Rt.b)(Jt=>{const vn=new Is(Jt.id,this.urlSerializer.serialize(Jt.extractedUrl),this.urlSerializer.serialize(Jt.urlAfterRedirects),Jt.targetSnapshot);this.events.next(vn)}))}),g(mt=>{const Jt=vn=>{const Mr=[];vn.routeConfig?.loadComponent&&!vn.routeConfig._loadedComponent&&Mr.push(this.configLoader.loadComponent(vn.routeConfig).pipe((0,Rt.b)(Gn=>{vn.component=Gn}),(0,me.U)(()=>{})));for(const Gn of vn.children)Mr.push(...Jt(Gn));return Mr};return(0,ue.a)(Jt(mt.targetSnapshot.root)).pipe((0,Cn.d)(),(0,ye.q)(1))}),g(()=>this.afterPreactivation()),(0,me.U)(mt=>{const Jt=function Ei(f,v,w){const _=hi(f,v._root,w?w._root:void 0);return new bi(_,v)}(_.routeReuseStrategy,mt.targetSnapshot,mt.currentRouterState);return this.currentTransition=oe={...mt,targetRouterState:Jt},oe}),(0,Rt.b)(()=>{this.events.next(new Ki)}),((f,v,w,_)=>(0,me.U)(I=>(new xa(v,I.targetRouterState,I.currentRouterState,w,_).activate(f),I)))(this.rootContexts,_.routeReuseStrategy,mt=>this.events.next(mt),this.inputBindingEnabled),(0,ye.q)(1),(0,Rt.b)({next:mt=>{lt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dr(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects))),_.titleStrategy?.updateTitle(mt.targetRouterState.snapshot),mt.resolve(!0)},complete:()=>{lt=!0}}),(0,Ce.R)(this.transitionAbortSubject.pipe((0,Rt.b)(mt=>{throw mt}))),(0,Me.x)(()=>{lt||It||this.cancelNavigationTransition(oe,"",1),this.currentNavigation?.id===oe.id&&(this.currentNavigation=null)}),(0,Qt.K)(mt=>{if(It=!0,qi(mt))this.events.next(new ui(oe.id,this.urlSerializer.serialize(oe.extractedUrl),mt.message,mt.cancellationCode)),function fi(f){return qi(f)&&at(f.url)}(mt)?this.events.next(new wo(mt.url)):oe.resolve(!1);else{this.events.next(new hr(oe.id,this.urlSerializer.serialize(oe.extractedUrl),mt,oe.targetSnapshot??void 0));try{oe.resolve(_.errorHandler(mt))}catch(Jt){oe.reject(Jt)}}return He.E}))}))}cancelNavigationTransition(_,I,Z){const oe=new ui(_.id,this.urlSerializer.serialize(_.extractedUrl),I,Z);this.events.next(oe),_.resolve(!1)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function yt(f){return f!==Ln}let kt=(()=>{var f;class v{buildTitle(_){let I,Z=_.root;for(;void 0!==Z;)I=this.getResolvedTitleForRoute(Z)??I,Z=Z.children.find(oe=>oe.outlet===ke);return I}getResolvedTitleForRoute(_){return _.data[Ct]}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return(0,o.f3M)(Tn)},providedIn:"root"}),v})(),Tn=(()=>{var f;class v extends kt{constructor(_){super(),this.title=_}updateTitle(_){const I=this.buildTitle(_);void 0!==I&&this.title.setTitle(I)}}return(f=v).\u0275fac=function(_){return new(_||f)(o.LFG(Fe.Dx))},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})(),zn=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return(0,o.f3M)(bn)},providedIn:"root"}),v})();class Bn{shouldDetach(v){return!1}store(v,w){}shouldAttach(v){return!1}retrieve(v){return null}shouldReuseRoute(v,w){return v.routeConfig===w.routeConfig}}let bn=(()=>{var f;class v extends Bn{}return(f=v).\u0275fac=function(){let w;return function(I){return(w||(w=o.n5z(f)))(I||f)}}(),f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();const sr=new o.OlP("",{providedIn:"root",factory:()=>({})});let Qn=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return(0,o.f3M)(_r)},providedIn:"root"}),v})(),_r=(()=>{var f;class v{shouldProcessUrl(_){return!0}extract(_){return _}merge(_,I){return _}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();var Zr=function(f){return f[f.COMPLETE=0]="COMPLETE",f[f.FAILED=1]="FAILED",f[f.REDIRECTING=2]="REDIRECTING",f}(Zr||{});function Si(f,v){f.events.pipe((0,Qe.h)(w=>w instanceof dr||w instanceof ui||w instanceof hr||w instanceof Gr),(0,me.U)(w=>w instanceof dr||w instanceof Gr?Zr.COMPLETE:w instanceof ui&&(0===w.code||1===w.code)?Zr.REDIRECTING:Zr.FAILED),(0,Qe.h)(w=>w!==Zr.REDIRECTING),(0,ye.q)(1)).subscribe(()=>{v()})}function Oi(f){throw f}function xi(f,v,w){return v.parse("/")}const Dr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},to={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nr=(()=>{var f;class v{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,o.f3M)(o.c2e),this.isNgZoneEnabled=!1,this._events=new Ne.x,this.options=(0,o.f3M)(sr,{optional:!0})||{},this.pendingTasks=(0,o.f3M)(o.HDt),this.errorHandler=this.options.errorHandler||Oi,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||xi,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,o.f3M)(Qn),this.routeReuseStrategy=(0,o.f3M)(zn),this.titleStrategy=(0,o.f3M)(kt),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,o.f3M)(A,{optional:!0})?.flat()??[],this.navigationTransitions=(0,o.f3M)(Le),this.urlSerializer=(0,o.f3M)(pt),this.location=(0,o.f3M)(q.Ye),this.componentInputBindingEnabled=!!(0,o.f3M)(Ci,{optional:!0}),this.eventsSubscription=new tt.w0,this.isNgZoneEnabled=(0,o.f3M)(o.R0b)instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new nt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Pr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(_=>{this.lastSuccessfulId=_.id,this.currentPageId=this.browserPageId},_=>{this.console.warn(`Unhandled Navigation Error: ${_}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const _=this.navigationTransitions.events.subscribe(I=>{try{const{currentTransition:Z}=this.navigationTransitions;if(null===Z)return void(ns(I)&&this._events.next(I));if(I instanceof Ii)yt(Z.source)&&(this.browserUrlTree=Z.extractedUrl);else if(I instanceof Gr)this.rawUrlTree=Z.rawUrl;else if(I instanceof di){if("eager"===this.urlUpdateStrategy){if(!Z.extras.skipLocationChange){const oe=this.urlHandlingStrategy.merge(Z.urlAfterRedirects,Z.rawUrl);this.setBrowserUrl(oe,Z)}this.browserUrlTree=Z.urlAfterRedirects}}else if(I instanceof Ki)this.currentUrlTree=Z.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Z.urlAfterRedirects,Z.rawUrl),this.routerState=Z.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Z.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Z),this.browserUrlTree=Z.urlAfterRedirects);else if(I instanceof ui)0!==I.code&&1!==I.code&&(this.navigated=!0),(3===I.code||2===I.code)&&this.restoreHistory(Z);else if(I instanceof wo){const oe=this.urlHandlingStrategy.merge(I.url,Z.currentRawUrl),lt={skipLocationChange:Z.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yt(Z.source)};this.scheduleNavigation(oe,Ln,null,lt,{resolve:Z.resolve,reject:Z.reject,promise:Z.promise})}I instanceof hr&&this.restoreHistory(Z,!0),I instanceof dr&&(this.navigated=!0),ns(I)&&this._events.next(I)}catch(Z){this.navigationTransitions.transitionAbortSubject.next(Z)}});this.eventsSubscription.add(_)}resetRootComponentType(_){this.routerState.root.component=_,this.navigationTransitions.rootComponentType=_}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const _=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ln,_)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(_=>{const I="popstate"===_.type?"popstate":"hashchange";"popstate"===I&&setTimeout(()=>{this.navigateToSyncWithBrowser(_.url,I,_.state)},0)}))}navigateToSyncWithBrowser(_,I,Z){const oe={replaceUrl:!0},lt=Z?.navigationId?Z:null;if(Z){const mt={...Z};delete mt.navigationId,delete mt.\u0275routerPageId,0!==Object.keys(mt).length&&(oe.state=mt)}const It=this.parseUrl(_);this.scheduleNavigation(It,I,lt,oe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(_){this.config=_.map(Cr),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,this.eventsSubscription.unsubscribe()}createUrlTree(_,I={}){const{relativeTo:Z,queryParams:oe,fragment:lt,queryParamsHandling:It,preserveFragment:mt}=I,Jt=mt?this.currentUrlTree.fragment:lt;let Mr,vn=null;switch(It){case"merge":vn={...this.currentUrlTree.queryParams,...oe};break;case"preserve":vn=this.currentUrlTree.queryParams;break;default:vn=oe||null}null!==vn&&(vn=this.removeEmptyProps(vn));try{Mr=se(Z?Z.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof _[0]||!_[0].startsWith("/"))&&(_=[]),Mr=this.currentUrlTree.root}return ot(Mr,_,vn,Jt??null)}navigateByUrl(_,I={skipLocationChange:!1}){const Z=at(_)?_:this.parseUrl(_),oe=this.urlHandlingStrategy.merge(Z,this.rawUrlTree);return this.scheduleNavigation(oe,Ln,null,I)}navigate(_,I={skipLocationChange:!1}){return function tr(f){for(let v=0;v<f.length;v++)if(null==f[v])throw new o.vHH(4008,!1)}(_),this.navigateByUrl(this.createUrlTree(_,I),I)}serializeUrl(_){return this.urlSerializer.serialize(_)}parseUrl(_){let I;try{I=this.urlSerializer.parse(_)}catch(Z){I=this.malformedUriErrorHandler(Z,this.urlSerializer,_)}return I}isActive(_,I){let Z;if(Z=!0===I?{...Dr}:!1===I?{...to}:I,at(_))return xn(this.currentUrlTree,_,Z);const oe=this.parseUrl(_);return xn(this.currentUrlTree,oe,Z)}removeEmptyProps(_){return Object.keys(_).reduce((I,Z)=>{const oe=_[Z];return null!=oe&&(I[Z]=oe),I},{})}scheduleNavigation(_,I,Z,oe,lt){if(this.disposed)return Promise.resolve(!1);let It,mt,Jt;lt?(It=lt.resolve,mt=lt.reject,Jt=lt.promise):Jt=new Promise((Mr,Gn)=>{It=Mr,mt=Gn});const vn=this.pendingTasks.add();return Si(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(vn))}),this.navigationTransitions.handleNavigationRequest({source:I,restoredState:Z,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:_,extras:oe,resolve:It,reject:mt,promise:Jt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Jt.catch(Mr=>Promise.reject(Mr))}setBrowserUrl(_,I){const Z=this.urlSerializer.serialize(_);if(this.location.isCurrentPathEqualTo(Z)||I.extras.replaceUrl){const lt={...I.extras.state,...this.generateNgRouterState(I.id,this.browserPageId)};this.location.replaceState(Z,"",lt)}else{const oe={...I.extras.state,...this.generateNgRouterState(I.id,this.browserPageId+1)};this.location.go(Z,"",oe)}}restoreHistory(_,I=!1){if("computed"===this.canceledNavigationResolution){const oe=this.currentPageId-this.browserPageId;0!==oe?this.location.historyGo(oe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===oe&&(this.resetState(_),this.browserUrlTree=_.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(I&&this.resetState(_),this.resetUrlToCurrentUrlTree())}resetState(_){this.routerState=_.currentRouterState,this.currentUrlTree=_.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(_,I){return"computed"===this.canceledNavigationResolution?{navigationId:_,\u0275routerPageId:I}:{navigationId:_}}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function ns(f){return!(f instanceof Ki||f instanceof wo)}let no=(()=>{var f;class v{constructor(_,I,Z,oe,lt,It){this.router=_,this.route=I,this.tabIndexAttribute=Z,this.renderer=oe,this.el=lt,this.locationStrategy=It,this.href=null,this.commands=null,this.onChanges=new Ne.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const mt=lt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===mt||"area"===mt,this.isAnchorElement?this.subscription=_.events.subscribe(Jt=>{Jt instanceof dr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(_){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",_)}ngOnChanges(_){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(_){null!=_?(this.commands=Array.isArray(_)?_:[_],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(_,I,Z,oe,lt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==_||I||Z||oe||lt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const _=null===this.href?null:(0,o.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",_)}applyAttributeValue(_,I){const Z=this.renderer,oe=this.el.nativeElement;null!==I?Z.setAttribute(oe,_,I):Z.removeAttribute(oe,_)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(f=v).\u0275fac=function(_){return new(_||f)(o.Y36(nr),o.Y36(Fi),o.$8M("tabindex"),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(q.S$))},f.\u0275dir=o.lG2({type:f,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(_,I){1&_&&o.NdJ("click",function(oe){return I.onClick(oe.button,oe.ctrlKey,oe.shiftKey,oe.altKey,oe.metaKey)}),2&_&&o.uIk("target",I.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",o.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",o.VuI],replaceUrl:["replaceUrl","replaceUrl",o.VuI],routerLink:"routerLink"},standalone:!0,features:[o.Xq5,o.TTD]}),v})(),Kr=(()=>{var f;class v{get isActive(){return this._isActive}constructor(_,I,Z,oe,lt){this.router=_,this.element=I,this.renderer=Z,this.cdr=oe,this.link=lt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new o.vpe,this.routerEventsSubscription=_.events.subscribe(It=>{It instanceof dr&&this.update()})}ngAfterContentInit(){(0,W.of)(this.links.changes,(0,W.of)(null)).pipe((0,Be.J)()).subscribe(_=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const _=[...this.links.toArray(),this.link].filter(I=>!!I).map(I=>I.onChanges);this.linkInputChangesSubscription=(0,Y.D)(_).pipe((0,Be.J)()).subscribe(I=>{this._isActive!==this.isLinkActive(this.router)(I)&&this.update()})}set routerLinkActive(_){const I=Array.isArray(_)?_:_.split(" ");this.classes=I.filter(Z=>!!Z)}ngOnChanges(_){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const _=this.hasActiveLinks();this._isActive!==_&&(this._isActive=_,this.cdr.markForCheck(),this.classes.forEach(I=>{_?this.renderer.addClass(this.element.nativeElement,I):this.renderer.removeClass(this.element.nativeElement,I)}),_&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(_))})}isLinkActive(_){const I=function Mi(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Z=>!!Z.urlTree&&_.isActive(Z.urlTree,I)}hasActiveLinks(){const _=this.isLinkActive(this.router);return this.link&&_(this.link)||this.links.some(_)}}return(f=v).\u0275fac=function(_){return new(_||f)(o.Y36(nr),o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(no,8))},f.\u0275dir=o.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(_,I,Z){if(1&_&&o.Suo(Z,no,5),2&_){let oe;o.iGM(oe=o.CRH())&&(I.links=oe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[o.TTD]}),v})();class Ys{}let ol=(()=>{var f;class v{constructor(_,I,Z,oe,lt){this.router=_,this.injector=Z,this.preloadingStrategy=oe,this.loader=lt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Qe.h)(_=>_ instanceof dr),(0,Bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_,I){const Z=[];for(const oe of I){oe.providers&&!oe._injector&&(oe._injector=(0,o.MMx)(oe.providers,_,`Route: ${oe.path}`));const lt=oe._injector??_,It=oe._loadedInjector??lt;(oe.loadChildren&&!oe._loadedRoutes&&void 0===oe.canLoad||oe.loadComponent&&!oe._loadedComponent)&&Z.push(this.preloadConfig(lt,oe)),(oe.children||oe._loadedRoutes)&&Z.push(this.processRoutes(It,oe.children??oe._loadedRoutes))}return(0,Y.D)(Z).pipe((0,Be.J)())}preloadConfig(_,I){return this.preloadingStrategy.preload(I,()=>{let Z;Z=I.loadChildren&&void 0===I.canLoad?this.loader.loadChildren(_,I):(0,W.of)(null);const oe=Z.pipe((0,ft.z)(lt=>null===lt?(0,W.of)(void 0):(I._loadedRoutes=lt.routes,I._loadedInjector=lt.injector,this.processRoutes(lt.injector??_,lt.routes))));if(I.loadComponent&&!I._loadedComponent){const lt=this.loader.loadComponent(I);return(0,Y.D)([oe,lt]).pipe((0,Be.J)())}return oe})}}return(f=v).\u0275fac=function(_){return new(_||f)(o.LFG(nr),o.LFG(o.Sil),o.LFG(o.lqb),o.LFG(Ys),o.LFG(fe))},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();const Hi=new o.OlP("");let pa=(()=>{var f;class v{constructor(_,I,Z,oe,lt={}){this.urlSerializer=_,this.transitions=I,this.viewportScroller=Z,this.zone=oe,this.options=lt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},lt.scrollPositionRestoration=lt.scrollPositionRestoration||"disabled",lt.anchorScrolling=lt.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(_=>{_ instanceof Ii?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_.navigationTrigger,this.restoredId=_.restoredState?_.restoredState.navigationId:0):_ instanceof dr?(this.lastId=_.id,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.urlAfterRedirects).fragment)):_ instanceof Gr&&0===_.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof xr&&(_.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_.position):_.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_,I){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xr(_,"popstate"===this.lastSource?this.store[this.restoredId]:null,I))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(f=v).\u0275fac=function(_){o.$Z()},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac}),v})();function Ui(f,v){return{\u0275kind:f,\u0275providers:v}}function dn(){const f=(0,o.f3M)(o.zs3);return v=>{const w=f.get(o.z2F);if(v!==w.components[0])return;const _=f.get(nr),I=f.get(ma);1===f.get(_a)&&_.initialNavigation(),f.get(Sr,null,o.XFs.Optional)?.setUpPreloading(),f.get(Hi,null,o.XFs.Optional)?.init(),_.resetRootComponentType(w.componentTypes[0]),I.closed||(I.next(),I.complete(),I.unsubscribe())}}const ma=new o.OlP("",{factory:()=>new Ne.x}),_a=new o.OlP("",{providedIn:"root",factory:()=>1}),Sr=new o.OlP("");function fo(f){return Ui(0,[{provide:Sr,useExisting:ol},{provide:Ys,useExisting:f}])}const Mt=new o.OlP("ROUTER_FORROOT_GUARD"),Rn=[q.Ye,{provide:pt,useClass:vt},nr,Ni,{provide:Fi,useFactory:function sl(f){return f.routerState.root},deps:[nr]},fe,[]];function js(){return new o.PXZ("Router",nr)}let La=(()=>{var f;class v{constructor(_){}static forRoot(_,I){return{ngModule:v,providers:[Rn,[],{provide:A,multi:!0,useValue:_},{provide:Mt,useFactory:ei,deps:[[nr,new o.FiY,new o.tp0]]},{provide:sr,useValue:I||{}},I?.useHash?{provide:q.S$,useClass:q.Do}:{provide:q.S$,useClass:q.b0},{provide:Hi,useFactory:()=>{const f=(0,o.f3M)(q.EM),v=(0,o.f3M)(o.R0b),w=(0,o.f3M)(sr),_=(0,o.f3M)(Le),I=(0,o.f3M)(pt);return w.scrollOffset&&f.setOffset(w.scrollOffset),new pa(I,_,f,v,w)}},I?.preloadingStrategy?fo(I.preloadingStrategy).\u0275providers:[],{provide:o.PXZ,multi:!0,useFactory:js},I?.initialNavigation?rs(I):[],I?.bindToComponentInputs?Ui(8,[ar,{provide:Ci,useExisting:ar}]).\u0275providers:[],[{provide:Hs,useFactory:dn},{provide:o.tb,multi:!0,useExisting:Hs}]]}}static forChild(_){return{ngModule:v,providers:[{provide:A,multi:!0,useValue:_}]}}}return(f=v).\u0275fac=function(_){return new(_||f)(o.LFG(Mt,8))},f.\u0275mod=o.oAB({type:f}),f.\u0275inj=o.cJS({}),v})();function ei(f){return"guarded"}function rs(f){return["disabled"===f.initialNavigation?Ui(3,[{provide:o.ip1,multi:!0,useFactory:()=>{const v=(0,o.f3M)(nr);return()=>{v.setUpLocationChangeListener()}}},{provide:_a,useValue:2}]).\u0275providers:[],"enabledBlocking"===f.initialNavigation?Ui(2,[{provide:_a,useValue:0},{provide:o.ip1,multi:!0,deps:[o.zs3],useFactory:v=>{const w=v.get(q.V_,Promise.resolve());return()=>w.then(()=>new Promise(_=>{const I=v.get(nr),Z=v.get(ma);Si(I,()=>{_(!0)}),v.get(Le).afterPreactivation=()=>(_(!0),Z.closed?(0,W.of)(void 0):Z),I.initialNavigation()}))}}]).\u0275providers:[]]}const Hs=new o.OlP("")},3106:(wt,Pe,C)=>{C.d(Pe,{Z:()=>tt});var o=C(9058),l=C(4537),R=C(534),K=C(7879);class Y{constructor(X,Ye){this._delegate=X,this.firebase=Ye,(0,R._addComponent)(X,new l.wA("app-compat",()=>this,"PUBLIC")),this.container=X.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(X){this._delegate.automaticDataCollectionEnabled=X}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(X=>{this._delegate.checkDestroyed(),X()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,R.deleteApp)(this._delegate)))}_getService(X,Ye=R._DEFAULT_ENTRY_NAME){var ut;this._delegate.checkDestroyed();const Ne=this._delegate.container.getProvider(X);return!Ne.isInitialized()&&"EXPLICIT"===(null===(ut=Ne.getComponent())||void 0===ut?void 0:ut.instantiationMode)&&Ne.initialize(),Ne.getImmediate({identifier:Ye})}_removeServiceInstance(X,Ye=R._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(X).clearInstance(Ye)}_addComponent(X){(0,R._addComponent)(this._delegate,X)}_addOrOverwriteComponent(X){(0,R._addOrOverwriteComponent)(this._delegate,X)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const re=new o.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."}),V=function ie(){const $e=function ue($e){const X={},Ye={__esModule:!0,initializeApp:function q(rt,Qe={}){const ft=R.initializeApp(rt,Qe);if((0,o.r3)(X,ft.name))return X[ft.name];const xt=new $e(ft,Ye);return X[ft.name]=xt,xt},app:Ne,registerVersion:R.registerVersion,setLogLevel:R.setLogLevel,onLog:R.onLog,apps:null,SDK_VERSION:R.SDK_VERSION,INTERNAL:{registerComponent:function ve(rt){const Qe=rt.name,ft=Qe.replace("-compat","");if(R._registerComponent(rt)&&"PUBLIC"===rt.type){const xt=(Bt=Ne())=>{if("function"!=typeof Bt[ft])throw re.create("invalid-app-argument",{appName:Qe});return Bt[ft]()};void 0!==rt.serviceProps&&(0,o.ZB)(xt,rt.serviceProps),Ye[ft]=xt,$e.prototype[ft]=function(...Bt){return this._getService.bind(this,Qe).apply(this,rt.multipleInstances?Bt:[])}}return"PUBLIC"===rt.type?Ye[ft]:null},removeApp:function ut(rt){delete X[rt]},useAsService:function ye(rt,Qe){return"serverAuth"===Qe?null:Qe},modularAPIs:R}};function Ne(rt){if(!(0,o.r3)(X,rt=rt||R._DEFAULT_ENTRY_NAME))throw re.create("no-app",{appName:rt});return X[rt]}return Ye.default=Ye,Object.defineProperty(Ye,"apps",{get:function me(){return Object.keys(X).map(rt=>X[rt])}}),Ne.App=$e,Ye}(Y);return $e.INTERNAL=Object.assign(Object.assign({},$e.INTERNAL),{createFirebaseNamespace:ie,extendNamespace:function X(Ye){(0,o.ZB)($e,Ye)},createSubscribe:o.ne,ErrorFactory:o.LL,deepExtend:o.ZB}),$e}(),Q=new K.Yd("@firebase/app-compat");if((0,o.jU)()&&void 0!==self.firebase){Q.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const $e=self.firebase.SDK_VERSION;$e&&$e.indexOf("LITE")>=0&&Q.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 tt=V;!function He($e){(0,R.registerVersion)("@firebase/app-compat","0.2.13",$e)}()},534:(wt,Pe,C)=>{C.r(Pe),C.d(Pe,{FirebaseError:()=>K.ZR,SDK_VERSION:()=>y,_DEFAULT_ENTRY_NAME:()=>ze,_addComponent:()=>nt,_addOrOverwriteComponent:()=>Te,_apps:()=>Ie,_clearComponents:()=>Je,_components:()=>pe,_getProvider:()=>dt,_registerComponent:()=>Ke,_removeServiceInstance:()=>je,deleteApp:()=>it,getApp:()=>ee,getApps:()=>Ae,initializeApp:()=>P,onLog:()=>Pt,registerVersion:()=>Et,setLogLevel:()=>Ht});var o=C(5861),l=C(4537),R=C(7879),K=C(9058);const Y=(le,Ee)=>Ee.some(We=>le instanceof We);let W,re;const V=new WeakMap,Q=new WeakMap,be=new WeakMap,Ve=new WeakMap,He=new WeakMap;let X={get(le,Ee,We){if(le instanceof IDBTransaction){if("done"===Ee)return Q.get(le);if("objectStoreNames"===Ee)return le.objectStoreNames||be.get(le);if("store"===Ee)return We.objectStoreNames[1]?void 0:We.objectStore(We.objectStoreNames[0])}return q(le[Ee])},set:(le,Ee,We)=>(le[Ee]=We,!0),has:(le,Ee)=>le instanceof IDBTransaction&&("done"===Ee||"store"===Ee)||Ee in le};function Ne(le){return"function"==typeof le?function ut(le){return le!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function ie(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(le)?function(...Ee){return le.apply(me(this),Ee),q(V.get(this))}:function(...Ee){return q(le.apply(me(this),Ee))}:function(Ee,...We){const bt=le.call(me(this),Ee,...We);return be.set(bt,Ee.sort?Ee.sort():[Ee]),q(bt)}}(le):(le instanceof IDBTransaction&&function $e(le){if(Q.has(le))return;const Ee=new Promise((We,bt)=>{const ht=()=>{le.removeEventListener("complete",Ut),le.removeEventListener("error",Gt),le.removeEventListener("abort",Gt)},Ut=()=>{We(),ht()},Gt=()=>{bt(le.error||new DOMException("AbortError","AbortError")),ht()};le.addEventListener("complete",Ut),le.addEventListener("error",Gt),le.addEventListener("abort",Gt)});Q.set(le,Ee)}(le),Y(le,function ue(){return W||(W=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(le,X):le)}function q(le){if(le instanceof IDBRequest)return function tt(le){const Ee=new Promise((We,bt)=>{const ht=()=>{le.removeEventListener("success",Ut),le.removeEventListener("error",Gt)},Ut=()=>{We(q(le.result)),ht()},Gt=()=>{bt(le.error),ht()};le.addEventListener("success",Ut),le.addEventListener("error",Gt)});return Ee.then(We=>{We instanceof IDBCursor&&V.set(We,le)}).catch(()=>{}),He.set(Ee,le),Ee}(le);if(Ve.has(le))return Ve.get(le);const Ee=Ne(le);return Ee!==le&&(Ve.set(le,Ee),He.set(Ee,le)),Ee}const me=le=>He.get(le),rt=["get","getKey","getAll","getAllKeys","count"],Qe=["put","add","delete","clear"],ft=new Map;function xt(le,Ee){if(!(le instanceof IDBDatabase)||Ee in le||"string"!=typeof Ee)return;if(ft.get(Ee))return ft.get(Ee);const We=Ee.replace(/FromIndex$/,""),bt=Ee!==We,ht=Qe.includes(We);if(!(We in(bt?IDBIndex:IDBObjectStore).prototype)||!ht&&!rt.includes(We))return;const Ut=function(){var Gt=(0,o.Z)(function*(Pn,...$n){const Nn=this.transaction(Pn,ht?"readwrite":"readonly");let ir=Nn.store;return bt&&(ir=ir.index($n.shift())),(yield Promise.all([ir[We](...$n),ht&&Nn.done]))[0]});return function($n){return Gt.apply(this,arguments)}}();return ft.set(Ee,Ut),Ut}!function Ye(le){X=le(X)}(le=>({...le,get:(Ee,We,bt)=>xt(Ee,We)||le.get(Ee,We,bt),has:(Ee,We)=>!!xt(Ee,We)||le.has(Ee,We)}));class Bt{constructor(Ee){this.container=Ee}getPlatformInfoString(){return this.container.getProviders().map(We=>{if(function Rt(le){const Ee=le.getComponent();return"VERSION"===Ee?.type}(We)){const bt=We.getImmediate();return`${bt.library}/${bt.version}`}return null}).filter(We=>We).join(" ")}}const Qt="@firebase/app",sn=new R.Yd("@firebase/app"),ze="[DEFAULT]",G={[Qt]:"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"},Ie=new Map,pe=new Map;function nt(le,Ee){try{le.container.addComponent(Ee)}catch(We){sn.debug(`Component ${Ee.name} failed to register with FirebaseApp ${le.name}`,We)}}function Te(le,Ee){le.container.addOrOverwriteComponent(Ee)}function Ke(le){const Ee=le.name;if(pe.has(Ee))return sn.debug(`There were multiple attempts to register component ${Ee}.`),!1;pe.set(Ee,le);for(const We of Ie.values())nt(We,le);return!0}function dt(le,Ee){const We=le.container.getProvider("heartbeat").getImmediate({optional:!0});return We&&We.triggerHeartbeat(),le.container.getProvider(Ee)}function je(le,Ee,We=ze){dt(le,Ee).clearInstance(We)}function Je(){pe.clear()}const vt=new K.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","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 Re{constructor(Ee,We,bt){this._isDeleted=!1,this._options=Object.assign({},Ee),this._config=Object.assign({},We),this._name=We.name,this._automaticDataCollectionEnabled=We.automaticDataCollectionEnabled,this._container=bt,this.container.addComponent(new l.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ee){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ee}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(Ee){this._isDeleted=Ee}checkDestroyed(){if(this.isDeleted)throw vt.create("app-deleted",{appName:this._name})}}const y="9.23.0";function P(le,Ee={}){let We=le;"object"!=typeof Ee&&(Ee={name:Ee});const bt=Object.assign({name:ze,automaticDataCollectionEnabled:!1},Ee),ht=bt.name;if("string"!=typeof ht||!ht)throw vt.create("bad-app-name",{appName:String(ht)});if(We||(We=(0,K.aH)()),!We)throw vt.create("no-options");const Ut=Ie.get(ht);if(Ut){if((0,K.vZ)(We,Ut.options)&&(0,K.vZ)(bt,Ut.config))return Ut;throw vt.create("duplicate-app",{appName:ht})}const Gt=new l.H0(ht);for(const $n of pe.values())Gt.addComponent($n);const Pn=new Re(We,bt,Gt);return Ie.set(ht,Pn),Pn}function ee(le=ze){const Ee=Ie.get(le);if(!Ee&&le===ze&&(0,K.aH)())return P();if(!Ee)throw vt.create("no-app",{appName:le});return Ee}function Ae(){return Array.from(Ie.values())}function it(le){return St.apply(this,arguments)}function St(){return(St=(0,o.Z)(function*(le){const Ee=le.name;Ie.has(Ee)&&(Ie.delete(Ee),yield Promise.all(le.container.getProviders().map(We=>We.delete())),le.isDeleted=!0)})).apply(this,arguments)}function Et(le,Ee,We){var bt;let ht=null!==(bt=G[le])&&void 0!==bt?bt:le;We&&(ht+=`-${We}`);const Ut=ht.match(/\s|\//),Gt=Ee.match(/\s|\//);if(Ut||Gt){const Pn=[`Unable to register library "${ht}" with version "${Ee}":`];return Ut&&Pn.push(`library name "${ht}" contains illegal characters (whitespace or "/")`),Ut&&Gt&&Pn.push("and"),Gt&&Pn.push(`version name "${Ee}" contains illegal characters (whitespace or "/")`),void sn.warn(Pn.join(" "))}Ke(new l.wA(`${ht}-version`,()=>({library:ht,version:Ee}),"VERSION"))}function Pt(le,Ee){if(null!==le&&"function"!=typeof le)throw vt.create("invalid-log-argument");(0,R.Am)(le,Ee)}function Ht(le){(0,R.Ub)(le)}const Yt="firebase-heartbeat-database",cn=1,Oe="firebase-heartbeat-store";let z=null;function U(){return z||(z=function ve(le,Ee,{blocked:We,upgrade:bt,blocking:ht,terminated:Ut}={}){const Gt=indexedDB.open(le,Ee),Pn=q(Gt);return bt&&Gt.addEventListener("upgradeneeded",$n=>{bt(q(Gt.result),$n.oldVersion,$n.newVersion,q(Gt.transaction),$n)}),We&&Gt.addEventListener("blocked",$n=>We($n.oldVersion,$n.newVersion,$n)),Pn.then($n=>{Ut&&$n.addEventListener("close",()=>Ut()),ht&&$n.addEventListener("versionchange",Nn=>ht(Nn.oldVersion,Nn.newVersion,Nn))}).catch(()=>{}),Pn}(Yt,cn,{upgrade:(le,Ee)=>{0===Ee&&le.createObjectStore(Oe)}}).catch(le=>{throw vt.create("idb-open",{originalErrorMessage:le.message})})),z}function S(){return(S=(0,o.Z)(function*(le){try{return yield(yield U()).transaction(Oe).objectStore(Oe).get(L(le))}catch(Ee){if(Ee instanceof K.ZR)sn.warn(Ee.message);else{const We=vt.create("idb-get",{originalErrorMessage:Ee?.message});sn.warn(We.message)}}})).apply(this,arguments)}function H(le,Ee){return j.apply(this,arguments)}function j(){return(j=(0,o.Z)(function*(le,Ee){try{const bt=(yield U()).transaction(Oe,"readwrite");yield bt.objectStore(Oe).put(Ee,L(le)),yield bt.done}catch(We){if(We instanceof K.ZR)sn.warn(We.message);else{const bt=vt.create("idb-set",{originalErrorMessage:We?.message});sn.warn(bt.message)}}})).apply(this,arguments)}function L(le){return`${le.name}!${le.options.appId}`}class ce{constructor(Ee){this.container=Ee,this._heartbeatsCache=null;const We=this.container.getProvider("app").getImmediate();this._storage=new de(We),this._heartbeatsCachePromise=this._storage.read().then(bt=>(this._heartbeatsCache=bt,bt))}triggerHeartbeat(){var Ee=this;return(0,o.Z)(function*(){const bt=Ee.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ht=Se();if(null===Ee._heartbeatsCache&&(Ee._heartbeatsCache=yield Ee._heartbeatsCachePromise),Ee._heartbeatsCache.lastSentHeartbeatDate!==ht&&!Ee._heartbeatsCache.heartbeats.some(Ut=>Ut.date===ht))return Ee._heartbeatsCache.heartbeats.push({date:ht,agent:bt}),Ee._heartbeatsCache.heartbeats=Ee._heartbeatsCache.heartbeats.filter(Ut=>{const Gt=new Date(Ut.date).valueOf();return Date.now()-Gt<=2592e6}),Ee._storage.overwrite(Ee._heartbeatsCache)})()}getHeartbeatsHeader(){var Ee=this;return(0,o.Z)(function*(){if(null===Ee._heartbeatsCache&&(yield Ee._heartbeatsCachePromise),null===Ee._heartbeatsCache||0===Ee._heartbeatsCache.heartbeats.length)return"";const We=Se(),{heartbeatsToSend:bt,unsentEntries:ht}=function at(le,Ee=1024){const We=[];let bt=le.slice();for(const ht of le){const Ut=We.find(Gt=>Gt.agent===ht.agent);if(Ut){if(Ut.dates.push(ht.date),se(We)>Ee){Ut.dates.pop();break}}else if(We.push({agent:ht.agent,dates:[ht.date]}),se(We)>Ee){We.pop();break}bt=bt.slice(1)}return{heartbeatsToSend:We,unsentEntries:bt}}(Ee._heartbeatsCache.heartbeats),Ut=(0,K.L)(JSON.stringify({version:2,heartbeats:bt}));return Ee._heartbeatsCache.lastSentHeartbeatDate=We,ht.length>0?(Ee._heartbeatsCache.heartbeats=ht,yield Ee._storage.overwrite(Ee._heartbeatsCache)):(Ee._heartbeatsCache.heartbeats=[],Ee._storage.overwrite(Ee._heartbeatsCache)),Ut})()}}function Se(){return(new Date).toISOString().substring(0,10)}class de{constructor(Ee){this.app=Ee,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,o.Z)(function*(){return!!(0,K.hl)()&&(0,K.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ee=this;return(0,o.Z)(function*(){return(yield Ee._canUseIndexedDBPromise)&&(yield function B(le){return S.apply(this,arguments)}(Ee.app))||{heartbeats:[]}})()}overwrite(Ee){var We=this;return(0,o.Z)(function*(){var bt;if(yield We._canUseIndexedDBPromise){const Ut=yield We.read();return H(We.app,{lastSentHeartbeatDate:null!==(bt=Ee.lastSentHeartbeatDate)&&void 0!==bt?bt:Ut.lastSentHeartbeatDate,heartbeats:Ee.heartbeats})}})()}add(Ee){var We=this;return(0,o.Z)(function*(){var bt;if(yield We._canUseIndexedDBPromise){const Ut=yield We.read();return H(We.app,{lastSentHeartbeatDate:null!==(bt=Ee.lastSentHeartbeatDate)&&void 0!==bt?bt:Ut.lastSentHeartbeatDate,heartbeats:[...Ut.heartbeats,...Ee.heartbeats]})}})()}}function se(le){return(0,K.L)(JSON.stringify({version:2,heartbeats:le})).length}!function ot(le){Ke(new l.wA("platform-logger",Ee=>new Bt(Ee),"PRIVATE")),Ke(new l.wA("heartbeat",Ee=>new ce(Ee),"PRIVATE")),Et(Qt,"0.9.13",le),Et(Qt,"0.9.13","esm2017"),Et("fire-js","")}("")},4537:(wt,Pe,C)=>{C.d(Pe,{H0:()=>ue,wA:()=>R});var o=C(5861),l=C(9058);class R{constructor(V,Q,be){this.name=V,this.instanceFactory=Q,this.type=be,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(V){return this.instantiationMode=V,this}setMultipleInstances(V){return this.multipleInstances=V,this}setServiceProps(V){return this.serviceProps=V,this}setInstanceCreatedCallback(V){return this.onInstanceCreated=V,this}}const K="[DEFAULT]";class Y{constructor(V,Q){this.name=V,this.container=Q,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(V){const Q=this.normalizeInstanceIdentifier(V);if(!this.instancesDeferred.has(Q)){const be=new l.BH;if(this.instancesDeferred.set(Q,be),this.isInitialized(Q)||this.shouldAutoInitialize())try{const Ve=this.getOrInitializeService({instanceIdentifier:Q});Ve&&be.resolve(Ve)}catch{}}return this.instancesDeferred.get(Q).promise}getImmediate(V){var Q;const be=this.normalizeInstanceIdentifier(V?.identifier),Ve=null!==(Q=V?.optional)&&void 0!==Q&&Q;if(!this.isInitialized(be)&&!this.shouldAutoInitialize()){if(Ve)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:be})}catch(He){if(Ve)return null;throw He}}getComponent(){return this.component}setComponent(V){if(V.name!==this.name)throw Error(`Mismatching Component ${V.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=V,this.shouldAutoInitialize()){if(function re(ie){return"EAGER"===ie.instantiationMode}(V))try{this.getOrInitializeService({instanceIdentifier:K})}catch{}for(const[Q,be]of this.instancesDeferred.entries()){const Ve=this.normalizeInstanceIdentifier(Q);try{const He=this.getOrInitializeService({instanceIdentifier:Ve});be.resolve(He)}catch{}}}}clearInstance(V=K){this.instancesDeferred.delete(V),this.instancesOptions.delete(V),this.instances.delete(V)}delete(){var V=this;return(0,o.Z)(function*(){const Q=Array.from(V.instances.values());yield Promise.all([...Q.filter(be=>"INTERNAL"in be).map(be=>be.INTERNAL.delete()),...Q.filter(be=>"_delete"in be).map(be=>be._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(V=K){return this.instances.has(V)}getOptions(V=K){return this.instancesOptions.get(V)||{}}initialize(V={}){const{options:Q={}}=V,be=this.normalizeInstanceIdentifier(V.instanceIdentifier);if(this.isInitialized(be))throw Error(`${this.name}(${be}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ve=this.getOrInitializeService({instanceIdentifier:be,options:Q});for(const[He,tt]of this.instancesDeferred.entries())be===this.normalizeInstanceIdentifier(He)&&tt.resolve(Ve);return Ve}onInit(V,Q){var be;const Ve=this.normalizeInstanceIdentifier(Q),He=null!==(be=this.onInitCallbacks.get(Ve))&&void 0!==be?be:new Set;He.add(V),this.onInitCallbacks.set(Ve,He);const tt=this.instances.get(Ve);return tt&&V(tt,Ve),()=>{He.delete(V)}}invokeOnInitCallbacks(V,Q){const be=this.onInitCallbacks.get(Q);if(be)for(const Ve of be)try{Ve(V,Q)}catch{}}getOrInitializeService({instanceIdentifier:V,options:Q={}}){let be=this.instances.get(V);if(!be&&this.component&&(be=this.component.instanceFactory(this.container,{instanceIdentifier:(ie=V,ie===K?void 0:ie),options:Q}),this.instances.set(V,be),this.instancesOptions.set(V,Q),this.invokeOnInitCallbacks(be,V),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,V,be)}catch{}var ie;return be||null}normalizeInstanceIdentifier(V=K){return this.component?this.component.multipleInstances?V:K:V}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ue{constructor(V){this.name=V,this.providers=new Map}addComponent(V){const Q=this.getProvider(V.name);if(Q.isComponentSet())throw new Error(`Component ${V.name} has already been registered with ${this.name}`);Q.setComponent(V)}addOrOverwriteComponent(V){this.getProvider(V.name).isComponentSet()&&this.providers.delete(V.name),this.addComponent(V)}getProvider(V){if(this.providers.has(V))return this.providers.get(V);const Q=new Y(V,this);return this.providers.set(V,Q),Q}getProviders(){return Array.from(this.providers.values())}}},7879:(wt,Pe,C)=>{C.d(Pe,{Am:()=>ie,Ub:()=>ue,Yd:()=>re,in:()=>l});const o=[];var l=function(V){return V[V.DEBUG=0]="DEBUG",V[V.VERBOSE=1]="VERBOSE",V[V.INFO=2]="INFO",V[V.WARN=3]="WARN",V[V.ERROR=4]="ERROR",V[V.SILENT=5]="SILENT",V}(l||{});const R={debug:l.DEBUG,verbose:l.VERBOSE,info:l.INFO,warn:l.WARN,error:l.ERROR,silent:l.SILENT},K=l.INFO,Y={[l.DEBUG]:"log",[l.VERBOSE]:"log",[l.INFO]:"info",[l.WARN]:"warn",[l.ERROR]:"error"},W=(V,Q,...be)=>{if(Q<V.logLevel)return;const Ve=(new Date).toISOString(),He=Y[Q];if(!He)throw new Error(`Attempted to log a message with an invalid logType (value: ${Q})`);console[He](`[${Ve}] ${V.name}:`,...be)};class re{constructor(Q){this.name=Q,this._logLevel=K,this._logHandler=W,this._userLogHandler=null,o.push(this)}get logLevel(){return this._logLevel}set logLevel(Q){if(!(Q in l))throw new TypeError(`Invalid value "${Q}" assigned to \`logLevel\``);this._logLevel=Q}setLogLevel(Q){this._logLevel="string"==typeof Q?R[Q]:Q}get logHandler(){return this._logHandler}set logHandler(Q){if("function"!=typeof Q)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=Q}get userLogHandler(){return this._userLogHandler}set userLogHandler(Q){this._userLogHandler=Q}debug(...Q){this._userLogHandler&&this._userLogHandler(this,l.DEBUG,...Q),this._logHandler(this,l.DEBUG,...Q)}log(...Q){this._userLogHandler&&this._userLogHandler(this,l.VERBOSE,...Q),this._logHandler(this,l.VERBOSE,...Q)}info(...Q){this._userLogHandler&&this._userLogHandler(this,l.INFO,...Q),this._logHandler(this,l.INFO,...Q)}warn(...Q){this._userLogHandler&&this._userLogHandler(this,l.WARN,...Q),this._logHandler(this,l.WARN,...Q)}error(...Q){this._userLogHandler&&this._userLogHandler(this,l.ERROR,...Q),this._logHandler(this,l.ERROR,...Q)}}function ue(V){o.forEach(Q=>{Q.setLogLevel(V)})}function ie(V,Q){for(const be of o){let Ve=null;Q&&Q.level&&(Ve=R[Q.level]),be.userLogHandler=null===V?null:(He,tt,...$e)=>{const X=$e.map(Ye=>{if(null==Ye)return null;if("string"==typeof Ye)return Ye;if("number"==typeof Ye||"boolean"==typeof Ye)return Ye.toString();if(Ye instanceof Error)return Ye.message;try{return JSON.stringify(Ye)}catch{return null}}).filter(Ye=>Ye).join(" ");tt>=(Ve??He.logLevel)&&V({level:l[tt].toLowerCase(),message:X,args:$e,type:He.name})}}}},3182:(wt,Pe,C)=>{C.d(Pe,{C6:()=>o.getApps,Mq:()=>o.getApp});var o=C(534);(0,o.registerVersion)("firebase","9.23.0","app")},7142:(wt,Pe,C)=>{C.d(Pe,{Z:()=>o.Z});var o=C(3106);o.Z.registerVersion("firebase","9.23.0","app-compat")},2425:(wt,Pe,C)=>{C.d(Pe,{FN:()=>qt,PR:()=>ye,Rh:()=>wn,_W:()=>Qt});var o=C(1180),l=C(5879),R=C(6825),K=C(6814),Y=C(8645),W=C(6593);const re=["toast-component",""];function ue(Me,Ce){if(1&Me){const Be=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",function(){l.CHM(Be);const ke=l.oxw();return l.KtG(ke.remove())}),l.TgZ(1,"span",6),l._uU(2,"\xd7"),l.qZA()()}}function ie(Me,Ce){if(1&Me&&(l.ynx(0),l._uU(1),l.BQk()),2&Me){const Be=l.oxw(2);l.xp6(1),l.hij("[",Be.duplicatesCount+1,"]")}}function V(Me,Ce){if(1&Me&&(l.TgZ(0,"div"),l._uU(1),l.YNc(2,ie,2,1,"ng-container",4),l.qZA()),2&Me){const Be=l.oxw();l.Tol(Be.options.titleClass),l.uIk("aria-label",Be.title),l.xp6(1),l.hij(" ",Be.title," "),l.xp6(1),l.Q6J("ngIf",Be.duplicatesCount)}}function Q(Me,Ce){if(1&Me&&l._UZ(0,"div",7),2&Me){const Be=l.oxw();l.Tol(Be.options.messageClass),l.Q6J("innerHTML",Be.message,l.oJD)}}function be(Me,Ce){if(1&Me&&(l.TgZ(0,"div",8),l._uU(1),l.qZA()),2&Me){const Be=l.oxw();l.Tol(Be.options.messageClass),l.uIk("aria-label",Be.message),l.xp6(1),l.hij(" ",Be.message," ")}}function Ve(Me,Ce){if(1&Me&&(l.TgZ(0,"div"),l._UZ(1,"div",9),l.qZA()),2&Me){const Be=l.oxw();l.xp6(1),l.Udp("width",Be.width+"%")}}class q{constructor(Ce,Be){(0,o.Z)(this,"_attachedHost",void 0),(0,o.Z)(this,"component",void 0),(0,o.Z)(this,"viewContainerRef",void 0),(0,o.Z)(this,"injector",void 0),this.component=Ce,this.injector=Be}attach(Ce,Be){return this._attachedHost=Ce,Ce.attach(this,Be)}detach(){const Ce=this._attachedHost;if(Ce)return this._attachedHost=void 0,Ce.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ce){this._attachedHost=Ce}}class me{constructor(){(0,o.Z)(this,"_attachedPortal",void 0),(0,o.Z)(this,"_disposeFn",void 0)}attach(Ce,Be){return this._attachedPortal=Ce,this.attachComponentPortal(Ce,Be)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ce){this._disposeFn=Ce}}class ve{constructor(Ce){(0,o.Z)(this,"_overlayRef",void 0),(0,o.Z)(this,"componentInstance",void 0),(0,o.Z)(this,"duplicatesCount",0),(0,o.Z)(this,"_afterClosed",new Y.x),(0,o.Z)(this,"_activate",new Y.x),(0,o.Z)(this,"_manualClose",new Y.x),(0,o.Z)(this,"_resetTimeout",new Y.x),(0,o.Z)(this,"_countDuplicate",new Y.x),this._overlayRef=Ce}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(Ce,Be){Ce&&this._resetTimeout.next(),Be&&this._countDuplicate.next(++this.duplicatesCount)}}class ye{constructor(Ce,Be,Fe,ke,Ct,Nt){(0,o.Z)(this,"toastId",void 0),(0,o.Z)(this,"config",void 0),(0,o.Z)(this,"message",void 0),(0,o.Z)(this,"title",void 0),(0,o.Z)(this,"toastType",void 0),(0,o.Z)(this,"toastRef",void 0),(0,o.Z)(this,"_onTap",new Y.x),(0,o.Z)(this,"_onAction",new Y.x),this.toastId=Ce,this.config=Be,this.message=Fe,this.title=ke,this.toastType=Ct,this.toastRef=Nt,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(Ce){this._onAction.next(Ce)}onAction(){return this._onAction.asObservable()}}const Qe=new l.OlP("ToastConfig");class ft extends me{constructor(Ce,Be,Fe){super(),(0,o.Z)(this,"_hostDomElement",void 0),(0,o.Z)(this,"_componentFactoryResolver",void 0),(0,o.Z)(this,"_appRef",void 0),this._hostDomElement=Ce,this._componentFactoryResolver=Be,this._appRef=Fe}attachComponentPortal(Ce,Be){const Fe=this._componentFactoryResolver.resolveComponentFactory(Ce.component);let ke;return ke=Fe.create(Ce.injector),this._appRef.attachView(ke.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ke.hostView),ke.destroy()}),Be?this._hostDomElement.insertBefore(this._getComponentRootNode(ke),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ke)),ke}_getComponentRootNode(Ce){return Ce.hostView.rootNodes[0]}}let xt=(()=>{var Me;class Ce{constructor(){(0,o.Z)(this,"_document",(0,l.f3M)(K.K0)),(0,o.Z)(this,"_containerElement",void 0)}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Fe=this._document.createElement("div");Fe.classList.add("overlay-container"),Fe.setAttribute("aria-live","polite"),this._document.body.appendChild(Fe),this._containerElement=Fe}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)}),(0,o.Z)(Ce,"\u0275prov",l.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})),Ce})();class Bt{constructor(Ce){(0,o.Z)(this,"_portalHost",void 0),this._portalHost=Ce}attach(Ce,Be=!0){return this._portalHost.attach(Ce,Be)}detach(){return this._portalHost.detach()}}let Rt=(()=>{var Me;class Ce{constructor(){(0,o.Z)(this,"_overlayContainer",(0,l.f3M)(xt)),(0,o.Z)(this,"_componentFactoryResolver",(0,l.f3M)(l._Vd)),(0,o.Z)(this,"_appRef",(0,l.f3M)(l.z2F)),(0,o.Z)(this,"_document",(0,l.f3M)(K.K0)),(0,o.Z)(this,"_paneElements",new Map)}create(Fe,ke){return this._createOverlayRef(this.getPaneElement(Fe,ke))}getPaneElement(Fe="",ke){return this._paneElements.get(ke)||this._paneElements.set(ke,{}),this._paneElements.get(ke)[Fe]||(this._paneElements.get(ke)[Fe]=this._createPaneElement(Fe,ke)),this._paneElements.get(ke)[Fe]}_createPaneElement(Fe,ke){const Ct=this._document.createElement("div");return Ct.id="toast-container",Ct.classList.add(Fe),Ct.classList.add("toast-container"),ke?ke.getContainerElement().appendChild(Ct):this._overlayContainer.getContainerElement().appendChild(Ct),Ct}_createPortalHost(Fe){return new ft(Fe,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Fe){return new Bt(this._createPortalHost(Fe))}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)}),(0,o.Z)(Ce,"\u0275prov",l.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})),Ce})(),Qt=(()=>{var Me;class Ce{constructor(Fe,ke,Ct,Nt,jt){(0,o.Z)(this,"overlay",void 0),(0,o.Z)(this,"_injector",void 0),(0,o.Z)(this,"sanitizer",void 0),(0,o.Z)(this,"ngZone",void 0),(0,o.Z)(this,"toastrConfig",void 0),(0,o.Z)(this,"currentlyActive",0),(0,o.Z)(this,"toasts",[]),(0,o.Z)(this,"overlayContainer",void 0),(0,o.Z)(this,"previousToastMessage",void 0),(0,o.Z)(this,"index",0),this.overlay=ke,this._injector=Ct,this.sanitizer=Nt,this.ngZone=jt,this.toastrConfig={...Fe.default,...Fe.config},Fe.config.iconClasses&&(this.toastrConfig.iconClasses={...Fe.default.iconClasses,...Fe.config.iconClasses})}show(Fe,ke,Ct={},Nt=""){return this._preBuildNotification(Nt,Fe,ke,this.applyConfig(Ct))}success(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Fe,ke,this.applyConfig(Ct))}error(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Fe,ke,this.applyConfig(Ct))}info(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Fe,ke,this.applyConfig(Ct))}warning(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Fe,ke,this.applyConfig(Ct))}clear(Fe){for(const ke of this.toasts)if(void 0!==Fe){if(ke.toastId===Fe)return void ke.toastRef.manualClose()}else ke.toastRef.manualClose()}remove(Fe){const ke=this._findToast(Fe);if(!ke||(ke.activeToast.toastRef.close(),this.toasts.splice(ke.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ct=this.toasts[this.currentlyActive].toastRef;Ct.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ct.activate())}return!0}findDuplicate(Fe="",ke="",Ct,Nt){const{includeTitleDuplicates:jt}=this.toastrConfig;for(const Kt of this.toasts)if((!jt||jt&&Kt.title===Fe)&&Kt.message===ke)return Kt.toastRef.onDuplicate(Ct,Nt),Kt;return null}applyConfig(Fe={}){return{...this.toastrConfig,...Fe}}_findToast(Fe){for(let ke=0;ke<this.toasts.length;ke++)if(this.toasts[ke].toastId===Fe)return{index:ke,activeToast:this.toasts[ke]};return null}_preBuildNotification(Fe,ke,Ct,Nt){return Nt.onActivateTick?this.ngZone.run(()=>this._buildNotification(Fe,ke,Ct,Nt)):this._buildNotification(Fe,ke,Ct,Nt)}_buildNotification(Fe,ke,Ct,Nt){if(!Nt.toastComponent)throw new Error("toastComponent required");const jt=this.findDuplicate(Ct,ke,this.toastrConfig.resetTimeoutOnDuplicate&&Nt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ct||ke)&&this.toastrConfig.preventDuplicates&&null!==jt)return jt;this.previousToastMessage=ke;let Kt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Kt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const nn=this.overlay.create(Nt.positionClass,this.overlayContainer);this.index=this.index+1;let rn=ke;ke&&Nt.enableHtml&&(rn=this.sanitizer.sanitize(l.q3G.HTML,ke));const Xt=new ve(nn),an=new ye(this.index,Nt,rn,Ct,Fe,Xt),zt=l.zs3.create({providers:[{provide:ye,useValue:an}],parent:this._injector}),Vn=new q(Nt.toastComponent,zt),xn=nn.attach(Vn,Nt.newestOnTop);Xt.componentInstance=xn.instance;const Hn={toastId:this.index,title:Ct||"",message:ke||"",toastRef:Xt,onShown:Xt.afterActivate(),onHidden:Xt.afterClosed(),onTap:an.onTap(),onAction:an.onAction(),portal:xn};return Kt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Hn.toastRef.activate()})),this.toasts.push(Hn),Hn}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)(l.LFG(Qe),l.LFG(Rt),l.LFG(l.zs3),l.LFG(W.H7),l.LFG(l.R0b))}),(0,o.Z)(Ce,"\u0275prov",l.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})),Ce})(),qt=(()=>{var Me;class Ce{get displayStyle(){if("inactive"===this.state.value)return"none"}constructor(Fe,ke,Ct){(0,o.Z)(this,"toastrService",void 0),(0,o.Z)(this,"toastPackage",void 0),(0,o.Z)(this,"ngZone",void 0),(0,o.Z)(this,"message",void 0),(0,o.Z)(this,"title",void 0),(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"duplicatesCount",void 0),(0,o.Z)(this,"originalTimeout",void 0),(0,o.Z)(this,"width",-1),(0,o.Z)(this,"toastClasses",""),(0,o.Z)(this,"state",void 0),(0,o.Z)(this,"timeout",void 0),(0,o.Z)(this,"intervalId",void 0),(0,o.Z)(this,"hideTime",void 0),(0,o.Z)(this,"sub",void 0),(0,o.Z)(this,"sub1",void 0),(0,o.Z)(this,"sub2",void 0),(0,o.Z)(this,"sub3",void 0),this.toastrService=Fe,this.toastPackage=ke,this.ngZone=Ct,this.message=ke.message,this.title=ke.title,this.options=ke.config,this.originalTimeout=ke.config.timeOut,this.toastClasses=`${ke.toastType} ${ke.config.toastClass}`,this.sub=ke.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ke.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ke.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ke.toastRef.countDuplicate().subscribe(Nt=>{this.duplicatesCount=Nt}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}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 Fe=(new Date).getTime();this.width=(this.hideTime-Fe)/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(Fe,ke){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Fe),ke)):this.timeout=setTimeout(()=>Fe(),ke)}outsideInterval(Fe,ke){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Fe),ke)):this.intervalId=setInterval(()=>Fe(),ke)}runInsideAngular(Fe){this.ngZone?this.ngZone.run(()=>Fe()):Fe()}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)(l.Y36(Qt),l.Y36(ye),l.Y36(l.R0b))}),(0,o.Z)(Ce,"\u0275cmp",l.Xpm({type:Me,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Fe,ke){1&Fe&&l.NdJ("click",function(){return ke.tapToast()})("mouseenter",function(){return ke.stickAround()})("mouseleave",function(){return ke.delayedHideToast()}),2&Fe&&(l.d8E("@flyInOut",ke.state),l.Tol(ke.toastClasses),l.Udp("display",ke.displayStyle))},standalone:!0,features:[l.jDz],attrs:re,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(Fe,ke){1&Fe&&(l.YNc(0,ue,3,0,"button",0),l.YNc(1,V,3,5,"div",1),l.YNc(2,Q,1,3,"div",2),l.YNc(3,be,2,4,"div",3),l.YNc(4,Ve,2,2,"div",4)),2&Fe&&(l.Q6J("ngIf",ke.options.closeButton),l.xp6(1),l.Q6J("ngIf",ke.title),l.xp6(1),l.Q6J("ngIf",ke.message&&ke.options.enableHtml),l.xp6(1),l.Q6J("ngIf",ke.message&&!ke.options.enableHtml),l.xp6(1),l.Q6J("ngIf",ke.options.progressBar))},dependencies:[K.O5],encapsulation:2,data:{animation:[(0,R.X$)("flyInOut",[(0,R.SB)("inactive",(0,R.oB)({opacity:0})),(0,R.SB)("active",(0,R.oB)({opacity:1})),(0,R.SB)("removed",(0,R.oB)({opacity:0})),(0,R.eR)("inactive => active",(0,R.jt)("{{ easeTime }}ms {{ easing }}")),(0,R.eR)("active => removed",(0,R.jt)("{{ easeTime }}ms {{ easing }}"))])]}})),Ce})();const sn={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",toastComponent:qt},Cn=(Me={})=>(0,l.MR2)([{provide:Qe,useValue:{default:sn,config:Me}}]);let wn=(()=>{var Me;class Ce{static forRoot(Fe={}){return{ngModule:Ce,providers:[Cn(Fe)]}}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)}),(0,o.Z)(Ce,"\u0275mod",l.oAB({type:Me})),(0,o.Z)(Ce,"\u0275inj",l.cJS({})),Ce})()},5861:(wt,Pe,C)=>{function o(R,K,Y,W,re,ue,ie){try{var V=R[ue](ie),Q=V.value}catch(be){return void Y(be)}V.done?K(Q):Promise.resolve(Q).then(W,re)}function l(R){return function(){var K=this,Y=arguments;return new Promise(function(W,re){var ue=R.apply(K,Y);function ie(Q){o(ue,W,re,ie,V,"next",Q)}function V(Q){o(ue,W,re,ie,V,"throw",Q)}ie(void 0)})}}C.d(Pe,{Z:()=>l})},1180:(wt,Pe,C)=>{function o(Y){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(Y)}function K(Y,W,re){return(W=function R(Y){var W=function l(Y,W){if("object"!==o(Y)||null===Y)return Y;var re=Y[Symbol.toPrimitive];if(void 0!==re){var ue=re.call(Y,W||"default");if("object"!==o(ue))return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(Y)}(Y,"string");return"symbol"===o(W)?W:String(W)}(W))in Y?Object.defineProperty(Y,W,{value:re,enumerable:!0,configurable:!0,writable:!0}):Y[W]=re,Y}C.d(Pe,{Z:()=>K})},7582:(wt,Pe,C)=>{function K(Ge,Xe){var Ze={};for(var De in Ge)Object.prototype.hasOwnProperty.call(Ge,De)&&Xe.indexOf(De)<0&&(Ze[De]=Ge[De]);if(null!=Ge&&"function"==typeof Object.getOwnPropertySymbols){var Me=0;for(De=Object.getOwnPropertySymbols(Ge);Me<De.length;Me++)Xe.indexOf(De[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ge,De[Me])&&(Ze[De[Me]]=Ge[De[Me]])}return Ze}function be(Ge,Xe,Ze,De){return new(Ze||(Ze=Promise))(function(Ce,Be){function Fe(Nt){try{Ct(De.next(Nt))}catch(jt){Be(jt)}}function ke(Nt){try{Ct(De.throw(Nt))}catch(jt){Be(jt)}}function Ct(Nt){Nt.done?Ce(Nt.value):function Me(Ce){return Ce instanceof Ze?Ce:new Ze(function(Be){Be(Ce)})}(Nt.value).then(Fe,ke)}Ct((De=De.apply(Ge,Xe||[])).next())})}function q(Ge){return this instanceof q?(this.v=Ge,this):new q(Ge)}function me(Ge,Xe,Ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me,De=Ze.apply(Ge,Xe||[]),Ce=[];return Me={},Be("next"),Be("throw"),Be("return"),Me[Symbol.asyncIterator]=function(){return this},Me;function Be(Kt){De[Kt]&&(Me[Kt]=function(nn){return new Promise(function(rn,Xt){Ce.push([Kt,nn,rn,Xt])>1||Fe(Kt,nn)})})}function Fe(Kt,nn){try{!function ke(Kt){Kt.value instanceof q?Promise.resolve(Kt.value.v).then(Ct,Nt):jt(Ce[0][2],Kt)}(De[Kt](nn))}catch(rn){jt(Ce[0][3],rn)}}function Ct(Kt){Fe("next",Kt)}function Nt(Kt){Fe("throw",Kt)}function jt(Kt,nn){Kt(nn),Ce.shift(),Ce.length&&Fe(Ce[0][0],Ce[0][1])}}function ye(Ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,Xe=Ge[Symbol.asyncIterator];return Xe?Xe.call(Ge):(Ge=function $e(Ge){var Xe="function"==typeof Symbol&&Symbol.iterator,Ze=Xe&&Ge[Xe],De=0;if(Ze)return Ze.call(Ge);if(Ge&&"number"==typeof Ge.length)return{next:function(){return Ge&&De>=Ge.length&&(Ge=void 0),{value:Ge&&Ge[De++],done:!Ge}}};throw new TypeError(Xe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ge),Ze={},De("next"),De("throw"),De("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze);function De(Ce){Ze[Ce]=Ge[Ce]&&function(Be){return new Promise(function(Fe,ke){!function Me(Ce,Be,Fe,ke){Promise.resolve(ke).then(function(Ct){Ce({value:Ct,done:Fe})},Be)}(Fe,ke,(Be=Ge[Ce](Be)).done,Be.value)})}}}C.d(Pe,{FC:()=>me,KL:()=>ye,_T:()=>K,mG:()=>be,qq:()=>q}),"function"==typeof SuppressedError&&SuppressedError}},wt=>{wt(wt.s=9735)}]);
|
|
1
|
+
"use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[179],{6304:(wt,Pe,C)=>{C.d(Pe,{Dh:()=>ue,GT:()=>W,cc:()=>He,hO:()=>Ve,on:()=>V,pX:()=>Y,xv:()=>ie});var o=C(5879),l=C(7142),R=C(8186);wt=C.hmd(wt);const K=["ngOnDestroy"],Y=(Ye,ut,Ne,q={})=>new Proxy(Ye,{get:(me,ve)=>Ne.runOutsideAngular(()=>{var ye;if(Ye[ve])return!(null===(ye=q?.spy)||void 0===ye)&&ye.get&&q.spy.get(ve,Ye[ve]),Ye[ve];if(K.indexOf(ve)>-1)return()=>{};const rt=ut.toPromise().then(Qe=>{const ft=Qe&&Qe[ve];return"function"==typeof ft?ft.bind(Qe):ft&&ft.then?ft.then(xt=>Ne.run(()=>xt)):Ne.run(()=>ft)});return new Proxy(()=>{},{get:(Qe,ft)=>rt[ft],apply:(Qe,ft,xt)=>rt.then(Bt=>{var Rt;const Qt=Bt&&Bt(...xt);return!(null===(Rt=q?.spy)||void 0===Rt)&&Rt.apply&&q.spy.apply(ve,xt,Qt),Qt})})})}),W=(Ye,ut)=>{ut.forEach(Ne=>{Object.getOwnPropertyNames(Ne.prototype||Ne).forEach(q=>{Object.defineProperty(Ye.prototype,q,Object.getOwnPropertyDescriptor(Ne.prototype||Ne,q))})})};class re{constructor(ut){return ut}}const ue=new o.OlP("angularfire2.app.options"),ie=new o.OlP("angularfire2.app.name");function V(Ye,ut,Ne){const me="object"==typeof Ne&&Ne||{};me.name=me.name||"string"==typeof Ne&&Ne||"[DEFAULT]";const ye=l.Z.apps.filter(rt=>rt&&rt.name===me.name)[0]||ut.runOutsideAngular(()=>l.Z.initializeApp(Ye,me));try{JSON.stringify(Ye)!==JSON.stringify(ye.options)&&Q("error",`${ye.name} Firebase App already initialized with different options${wt.hot?", you may need to reload as Firebase is not HMR aware.":"."}`)}catch{}return new re(ye)}const Q=(Ye,...ut)=>{(0,o.X6Q)()&&typeof console<"u"&&console[Ye](...ut)},be={provide:re,useFactory:V,deps:[ue,o.R0b,[new o.FiY,ie]]};let Ve=(()=>{class Ye{constructor(Ne){l.Z.registerVersion("angularfire",R.q4.full,"core"),l.Z.registerVersion("angularfire",R.q4.full,"app-compat"),l.Z.registerVersion("angular",o.q4F.full,Ne.toString())}static initializeApp(Ne,q){return{ngModule:Ye,providers:[{provide:ue,useValue:Ne},{provide:ie,useValue:q}]}}}return Ye.\u0275fac=function(Ne){return new(Ne||Ye)(o.LFG(o.Lbi))},Ye.\u0275mod=o.oAB({type:Ye}),Ye.\u0275inj=o.cJS({providers:[be]}),Ye})();function He(Ye,ut,Ne,q,me){const[,ve,ye]=globalThis.\u0275AngularfireInstanceCache.find(rt=>rt[0]===Ye)||[];if(ve)return function tt(Ye,ut){try{return Ye.toString()===ut.toString()}catch{return Ye===ut}}(me,ye)||(X("error",`${ut} was already initialized on the ${Ne} Firebase App with different settings.${$e?" You may need to reload as Firebase is not HMR aware.":""}`),X("warn",{is:me,was:ye})),ve;{const rt=q();return globalThis.\u0275AngularfireInstanceCache.push([Ye,rt,me]),rt}}const $e=!!wt.hot,X=(Ye,...ut)=>{(0,o.X6Q)()&&typeof console<"u"&&console[Ye](...ut)};globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=[])},8186:(wt,Pe,C)=>{C.d(Pe,{q4:()=>gl,iC:()=>Ka,HU:()=>vl,vb:()=>wa,JM:()=>os});var o=C(5879),l=C(3182),R=C(5861),K=C(534),Y=C(9058),W=C(4537),re=C(7879);const ue=(m,D)=>D.some(N=>m instanceof N);let ie,V;const Ve=new WeakMap,He=new WeakMap,tt=new WeakMap,$e=new WeakMap,X=new WeakMap;let Ne={get(m,D,N){if(m instanceof IDBTransaction){if("done"===D)return He.get(m);if("objectStoreNames"===D)return m.objectStoreNames||tt.get(m);if("store"===D)return N.objectStoreNames[1]?void 0:N.objectStore(N.objectStoreNames[0])}return ye(m[D])},set:(m,D,N)=>(m[D]=N,!0),has:(m,D)=>m instanceof IDBTransaction&&("done"===D||"store"===D)||D in m};function ve(m){return"function"==typeof m?function me(m){return m!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function be(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(m)?function(...D){return m.apply(rt(this),D),ye(Ve.get(this))}:function(...D){return ye(m.apply(rt(this),D))}:function(D,...N){const he=m.call(rt(this),D,...N);return tt.set(he,D.sort?D.sort():[D]),ye(he)}}(m):(m instanceof IDBTransaction&&function ut(m){if(He.has(m))return;const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("complete",st),m.removeEventListener("error",_t),m.removeEventListener("abort",_t)},st=()=>{N(),Ue()},_t=()=>{he(m.error||new DOMException("AbortError","AbortError")),Ue()};m.addEventListener("complete",st),m.addEventListener("error",_t),m.addEventListener("abort",_t)});He.set(m,D)}(m),ue(m,function Q(){return ie||(ie=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(m,Ne):m)}function ye(m){if(m instanceof IDBRequest)return function Ye(m){const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("success",st),m.removeEventListener("error",_t)},st=()=>{N(ye(m.result)),Ue()},_t=()=>{he(m.error),Ue()};m.addEventListener("success",st),m.addEventListener("error",_t)});return D.then(N=>{N instanceof IDBCursor&&Ve.set(N,m)}).catch(()=>{}),X.set(D,m),D}(m);if($e.has(m))return $e.get(m);const D=ve(m);return D!==m&&($e.set(m,D),X.set(D,m)),D}const rt=m=>X.get(m),xt=["get","getKey","getAll","getAllKeys","count"],Bt=["put","add","delete","clear"],Rt=new Map;function Qt(m,D){if(!(m instanceof IDBDatabase)||D in m||"string"!=typeof D)return;if(Rt.get(D))return Rt.get(D);const N=D.replace(/FromIndex$/,""),he=D!==N,Ue=Bt.includes(N);if(!(N in(he?IDBIndex:IDBObjectStore).prototype)||!Ue&&!xt.includes(N))return;const st=function(){var _t=(0,R.Z)(function*($t,...Lt){const en=this.transaction($t,Ue?"readwrite":"readonly");let yn=en.store;return he&&(yn=yn.index(Lt.shift())),(yield Promise.all([yn[N](...Lt),Ue&&en.done]))[0]});return function(Lt){return _t.apply(this,arguments)}}();return Rt.set(D,st),st}!function q(m){Ne=m(Ne)}(m=>({...m,get:(D,N,he)=>Qt(D,N)||m.get(D,N,he),has:(D,N)=>!!Qt(D,N)||m.has(D,N)}));const qt="@firebase/installations",sn="0.6.4",Cn=1e4,wn=`w:${sn}`,Ge="FIS_v2",Xe="https://firebaseinstallations.googleapis.com/v1",Ze=36e5,Be=new Y.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 Fe(m){return m instanceof Y.ZR&&m.code.includes("request-failed")}function ke({projectId:m}){return`${Xe}/projects/${m}/installations`}function Ct(m){return{token:m.token,requestStatus:2,expiresIn:an(m.expiresIn),creationTime:Date.now()}}function Nt(m,D){return jt.apply(this,arguments)}function jt(){return(jt=(0,R.Z)(function*(m,D){const he=(yield D.json()).error;return Be.create("request-failed",{requestName:m,serverCode:he.code,serverMessage:he.message,serverStatus:he.status})})).apply(this,arguments)}function Kt({apiKey:m}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":m})}function rn(m){return Xt.apply(this,arguments)}function Xt(){return(Xt=(0,R.Z)(function*(m){const D=yield m();return D.status>=500&&D.status<600?m():D})).apply(this,arguments)}function an(m){return Number(m.replace("s","000"))}function Vn(){return(Vn=(0,R.Z)(function*({appConfig:m,heartbeatServiceProvider:D},{fid:N}){const he=ke(m),Ue=Kt(m),st=D.getImmediate({optional:!0});if(st){const en=yield st.getHeartbeatsHeader();en&&Ue.append("x-firebase-client",en)}const $t={method:"POST",headers:Ue,body:JSON.stringify({fid:N,authVersion:Ge,appId:m.appId,sdkVersion:wn})},Lt=yield rn(()=>fetch(he,$t));if(Lt.ok){const en=yield Lt.json();return{fid:en.fid||N,registrationStatus:2,refreshToken:en.refreshToken,authToken:Ct(en.authToken)}}throw yield Nt("Create Installation",Lt)})).apply(this,arguments)}function xn(m){return new Promise(D=>{setTimeout(D,m)})}const Un=/^[cdef][\w-]{21}$/,ze="";function G(){try{const m=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(m),m[0]=112+m[0]%16;const N=function Ie(m){return function Hn(m){return btoa(String.fromCharCode(...m)).replace(/\+/g,"-").replace(/\//g,"_")}(m).substr(0,22)}(m);return Un.test(N)?N:ze}catch{return ze}}function pe(m){return`${m.appName}!${m.appId}`}const nt=new Map;function Te(m,D){const N=pe(m);je(N,D),function Je(m,D){const N=function vt(){return!pt&&"BroadcastChannel"in self&&(pt=new BroadcastChannel("[Firebase] FID Change"),pt.onmessage=m=>{je(m.data.key,m.data.fid)}),pt}();N&&N.postMessage({key:m,fid:D}),function Re(){0===nt.size&&pt&&(pt.close(),pt=null)}()}(N,D)}function je(m,D){const N=nt.get(m);if(N)for(const he of N)he(D)}let pt=null;const y="firebase-installations-database",P=1,ee="firebase-installations-store";let Ae=null;function it(){return Ae||(Ae=function Qe(m,D,{blocked:N,upgrade:he,blocking:Ue,terminated:st}={}){const _t=indexedDB.open(m,D),$t=ye(_t);return he&&_t.addEventListener("upgradeneeded",Lt=>{he(ye(_t.result),Lt.oldVersion,Lt.newVersion,ye(_t.transaction))}),N&&_t.addEventListener("blocked",()=>N()),$t.then(Lt=>{st&&Lt.addEventListener("close",()=>st()),Ue&&Lt.addEventListener("versionchange",()=>Ue())}).catch(()=>{}),$t}(y,P,{upgrade:(m,D)=>{0===D&&m.createObjectStore(ee)}})),Ae}function St(m,D){return Et.apply(this,arguments)}function Et(){return(Et=(0,R.Z)(function*(m,D){const N=pe(m),Ue=(yield it()).transaction(ee,"readwrite"),st=Ue.objectStore(ee),_t=yield st.get(N);return yield st.put(D,N),yield Ue.done,(!_t||_t.fid!==D.fid)&&Te(m,D.fid),D})).apply(this,arguments)}function Pt(m){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,R.Z)(function*(m){const D=pe(m),he=(yield it()).transaction(ee,"readwrite");yield he.objectStore(ee).delete(D),yield he.done})).apply(this,arguments)}function Yt(m,D){return cn.apply(this,arguments)}function cn(){return(cn=(0,R.Z)(function*(m,D){const N=pe(m),Ue=(yield it()).transaction(ee,"readwrite"),st=Ue.objectStore(ee),_t=yield st.get(N),$t=D(_t);return void 0===$t?yield st.delete(N):yield st.put($t,N),yield Ue.done,$t&&(!_t||_t.fid!==$t.fid)&&Te(m,$t.fid),$t})).apply(this,arguments)}function Oe(m){return z.apply(this,arguments)}function z(){return z=(0,R.Z)(function*(m){let D;const N=yield Yt(m.appConfig,he=>{const Ue=function U(m){return xe(m||{fid:G(),registrationStatus:0})}(he),st=function B(m,D){if(0===D.registrationStatus){if(!navigator.onLine)return{installationEntry:D,registrationPromise:Promise.reject(Be.create("app-offline"))};const N={fid:D.fid,registrationStatus:1,registrationTime:Date.now()},he=function S(m,D){return H.apply(this,arguments)}(m,N);return{installationEntry:N,registrationPromise:he}}return 1===D.registrationStatus?{installationEntry:D,registrationPromise:j(m)}:{installationEntry:D}}(m,Ue);return D=st.registrationPromise,st.installationEntry});return N.fid===ze?{installationEntry:yield D}:{installationEntry:N,registrationPromise:D}}),z.apply(this,arguments)}function H(){return H=(0,R.Z)(function*(m,D){try{const N=yield function zt(m,D){return Vn.apply(this,arguments)}(m,D);return St(m.appConfig,N)}catch(N){throw Fe(N)&&409===N.customData.serverCode?yield Pt(m.appConfig):yield St(m.appConfig,{fid:D.fid,registrationStatus:0}),N}}),H.apply(this,arguments)}function j(m){return L.apply(this,arguments)}function L(){return(L=(0,R.Z)(function*(m){let D=yield J(m.appConfig);for(;1===D.registrationStatus;)yield xn(100),D=yield J(m.appConfig);if(0===D.registrationStatus){const{installationEntry:N,registrationPromise:he}=yield Oe(m);return he||N}return D})).apply(this,arguments)}function J(m){return Yt(m,D=>{if(!D)throw Be.create("installation-not-found");return xe(D)})}function xe(m){return function ce(m){return 1===m.registrationStatus&&m.registrationTime+Cn<Date.now()}(m)?{fid:m.fid,registrationStatus:0}:m}function at(){return(at=(0,R.Z)(function*({appConfig:m,heartbeatServiceProvider:D},N){const he=function de(m,{fid:D}){return`${ke(m)}/${D}/authTokens:generate`}(m,N),Ue=function nn(m,{refreshToken:D}){const N=Kt(m);return N.append("Authorization",function Sn(m){return`${Ge} ${m}`}(D)),N}(m,N),st=D.getImmediate({optional:!0});if(st){const en=yield st.getHeartbeatsHeader();en&&Ue.append("x-firebase-client",en)}const $t={method:"POST",headers:Ue,body:JSON.stringify({installation:{sdkVersion:wn,appId:m.appId}})},Lt=yield rn(()=>fetch(he,$t));if(Lt.ok)return Ct(yield Lt.json());throw yield Nt("Generate Auth Token",Lt)})).apply(this,arguments)}function se(m){return ot.apply(this,arguments)}function ot(){return ot=(0,R.Z)(function*(m,D=!1){let N;const he=yield Yt(m.appConfig,st=>{if(!Ut(st))throw Be.create("not-registered");const _t=st.authToken;if(!D&&function Gt(m){return 2===m.requestStatus&&!function Pn(m){const D=Date.now();return D<m.creationTime||m.creationTime+m.expiresIn<D+Ze}(m)}(_t))return st;if(1===_t.requestStatus)return N=function le(m,D){return Ee.apply(this,arguments)}(m,D),st;{if(!navigator.onLine)throw Be.create("app-offline");const $t=function $n(m){const D={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},m),{authToken:D})}(st);return N=function bt(m,D){return ht.apply(this,arguments)}(m,$t),$t}});return N?yield N:he.authToken}),ot.apply(this,arguments)}function Ee(){return(Ee=(0,R.Z)(function*(m,D){let N=yield We(m.appConfig);for(;1===N.authToken.requestStatus;)yield xn(100),N=yield We(m.appConfig);const he=N.authToken;return 0===he.requestStatus?se(m,D):he})).apply(this,arguments)}function We(m){return Yt(m,D=>{if(!Ut(D))throw Be.create("not-registered");return function Nn(m){return 1===m.requestStatus&&m.requestTime+Cn<Date.now()}(D.authToken)?Object.assign(Object.assign({},D),{authToken:{requestStatus:0}}):D})}function ht(){return ht=(0,R.Z)(function*(m,D){try{const N=yield function Se(m,D){return at.apply(this,arguments)}(m,D),he=Object.assign(Object.assign({},D),{authToken:N});return yield St(m.appConfig,he),N}catch(N){if(!Fe(N)||401!==N.customData.serverCode&&404!==N.customData.serverCode){const he=Object.assign(Object.assign({},D),{authToken:{requestStatus:0}});yield St(m.appConfig,he)}else yield Pt(m.appConfig);throw N}}),ht.apply(this,arguments)}function Ut(m){return void 0!==m&&2===m.registrationStatus}function yr(){return(yr=(0,R.Z)(function*(m){const D=m,{installationEntry:N,registrationPromise:he}=yield Oe(D);return he?he.catch(console.error):se(D).catch(console.error),N.fid})).apply(this,arguments)}function Mn(){return Mn=(0,R.Z)(function*(m,D=!1){const N=m;return yield function Zn(m){return Or.apply(this,arguments)}(N),(yield se(N,D)).token}),Mn.apply(this,arguments)}function Or(){return(Or=(0,R.Z)(function*(m){const{registrationPromise:D}=yield Oe(m);D&&(yield D)})).apply(this,arguments)}function di(m){return Be.create("missing-app-config-values",{valueName:m})}const $o="installations",la=m=>{const D=m.getProvider("app").getImmediate(),N=function hr(m){if(!m||!m.options)throw di("App Configuration");if(!m.name)throw di("App Name");const D=["projectId","apiKey","appId"];for(const N of D)if(!m.options[N])throw di(N);return{appName:m.name,projectId:m.options.projectId,apiKey:m.options.apiKey,appId:m.options.appId}}(D);return{app:D,appConfig:N,heartbeatServiceProvider:(0,K._getProvider)(D,"heartbeat"),_delete:()=>Promise.resolve()}},Is=m=>{const D=m.getProvider("app").getImmediate(),N=(0,K._getProvider)(D,$o).getImmediate();return{getId:()=>function ir(m){return yr.apply(this,arguments)}(N),getToken:Ue=>function zr(m){return Mn.apply(this,arguments)}(N,Ue)}};(function Eo(){(0,K._registerComponent)(new W.wA($o,la,"PUBLIC")),(0,K._registerComponent)(new W.wA("installations-internal",Is,"PRIVATE"))})(),(0,K.registerVersion)(qt,sn),(0,K.registerVersion)(qt,sn,"esm2017");const ki="@firebase/remote-config",xr=new Y.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 un{constructor(D,N,he,Ue){this.client=D,this.storage=N,this.storageCache=he,this.logger=Ue}isCachedDataFresh(D,N){if(!N)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;const he=Date.now()-N,Ue=he<=D;return this.logger.debug(`Config fetch cache check. Cache age millis: ${he}. Cache max age millis (minimumFetchIntervalMillis setting): ${D}. Is cache hit: ${Ue}.`),Ue}fetch(D){var N=this;return(0,R.Z)(function*(){const[he,Ue]=yield Promise.all([N.storage.getLastSuccessfulFetchTimestampMillis(),N.storage.getLastSuccessfulFetchResponse()]);if(Ue&&N.isCachedDataFresh(D.cacheMaxAgeMillis,he))return Ue;D.eTag=Ue&&Ue.eTag;const st=yield N.client.fetch(D),_t=[N.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===st.status&&_t.push(N.storage.setLastSuccessfulFetchResponse(st)),yield Promise.all(_t),st})()}}function Jn(m=navigator){return m.languages&&m.languages[0]||m.language}class br{constructor(D,N,he,Ue,st,_t){this.firebaseInstallations=D,this.sdkVersion=N,this.namespace=he,this.projectId=Ue,this.apiKey=st,this.appId=_t}fetch(D){var N=this;return(0,R.Z)(function*(){const[he,Ue]=yield Promise.all([N.firebaseInstallations.getId(),N.firebaseInstallations.getToken()]),_t=`${window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com"}/v1/projects/${N.projectId}/namespaces/${N.namespace}:fetch?key=${N.apiKey}`,$t={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":D.eTag||"*"},Lt={sdk_version:N.sdkVersion,app_instance_id:he,app_instance_id_token:Ue,app_id:N.appId,language_code:Jn()},en={method:"POST",headers:$t,body:JSON.stringify(Lt)},yn=fetch(_t,en),Dn=new Promise((_i,ws)=>{D.signal.addEventListener(()=>{const Pi=new Error("The operation was aborted.");Pi.name="AbortError",ws(Pi)})});let si;try{yield Promise.race([yn,Dn]),si=yield yn}catch(_i){let ws="fetch-client-network";throw"AbortError"===_i?.name&&(ws="fetch-timeout"),xr.create(ws,{originalErrorMessage:_i?.message})}let ai=si.status;const qa=si.headers.get("ETag")||void 0;let Tr,Ds;if(200===si.status){let _i;try{_i=yield si.json()}catch(ws){throw xr.create("fetch-client-parse",{originalErrorMessage:ws?.message})}Tr=_i.entries,Ds=_i.state}if("INSTANCE_STATE_UNSPECIFIED"===Ds?ai=500:"NO_CHANGE"===Ds?ai=304:("NO_TEMPLATE"===Ds||"EMPTY_CONFIG"===Ds)&&(Tr={}),304!==ai&&200!==ai)throw xr.create("fetch-status",{httpStatus:ai});return{status:ai,eTag:qa,config:Tr}})()}}class Ci{constructor(D,N){this.client=D,this.storage=N}fetch(D){var N=this;return(0,R.Z)(function*(){const he=(yield N.storage.getThrottleMetadata())||{backoffCount:0,throttleEndTimeMillis:Date.now()};return N.attemptFetch(D,he)})()}attemptFetch(D,{throttleEndTimeMillis:N,backoffCount:he}){var Ue=this;return(0,R.Z)(function*(){yield function Ai(m,D){return new Promise((N,he)=>{const Ue=Math.max(D-Date.now(),0),st=setTimeout(N,Ue);m.addEventListener(()=>{clearTimeout(st),he(xr.create("fetch-throttle",{throttleEndTimeMillis:D}))})})}(D.signal,N);try{const st=yield Ue.client.fetch(D);return yield Ue.storage.deleteThrottleMetadata(),st}catch(st){if(!function ur(m){if(!(m instanceof Y.ZR&&m.customData))return!1;const D=Number(m.customData.httpStatus);return 429===D||500===D||503===D||504===D}(st))throw st;const _t={throttleEndTimeMillis:Date.now()+(0,Y.$s)(he),backoffCount:he+1};return yield Ue.storage.setThrottleMetadata(_t),Ue.attemptFetch(D,_t)}})()}}class hi{constructor(D,N,he,Ue,st){this.app=D,this._client=N,this._storageCache=he,this._storage=Ue,this._logger=st,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 hn(m,D){const N=m.target.error||void 0;return xr.create(D,{originalErrorMessage:N&&N?.message})}const Qr="app_namespace_store";class fi{constructor(D,N,he,Ue=function lr(){return new Promise((m,D)=>{try{const N=indexedDB.open("firebase_remote_config",1);N.onerror=he=>{D(hn(he,"storage-open"))},N.onsuccess=he=>{m(he.target.result)},N.onupgradeneeded=he=>{0===he.oldVersion&&he.target.result.createObjectStore(Qr,{keyPath:"compositeKey"})}}catch(N){D(xr.create("storage-open",{originalErrorMessage:N?.message}))}})}()){this.appId=D,this.appName=N,this.namespace=he,this.openDbPromise=Ue}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(D){return this.set("last_fetch_status",D)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(D){return this.set("last_successful_fetch_timestamp_millis",D)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(D){return this.set("last_successful_fetch_response",D)}getActiveConfig(){return this.get("active_config")}setActiveConfig(D){return this.set("active_config",D)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(D){return this.set("active_config_etag",D)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(D){return this.set("throttle_metadata",D)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}get(D){var N=this;return(0,R.Z)(function*(){const he=yield N.openDbPromise;return new Promise((Ue,st)=>{const $t=he.transaction([Qr],"readonly").objectStore(Qr),Lt=N.createCompositeKey(D);try{const en=$t.get(Lt);en.onerror=yn=>{st(hn(yn,"storage-get"))},en.onsuccess=yn=>{const Dn=yn.target.result;Ue(Dn?Dn.value:void 0)}}catch(en){st(xr.create("storage-get",{originalErrorMessage:en?.message}))}})})()}set(D,N){var he=this;return(0,R.Z)(function*(){const Ue=yield he.openDbPromise;return new Promise((st,_t)=>{const Lt=Ue.transaction([Qr],"readwrite").objectStore(Qr),en=he.createCompositeKey(D);try{const yn=Lt.put({compositeKey:en,value:N});yn.onerror=Dn=>{_t(hn(Dn,"storage-set"))},yn.onsuccess=()=>{st()}}catch(yn){_t(xr.create("storage-set",{originalErrorMessage:yn?.message}))}})})()}delete(D){var N=this;return(0,R.Z)(function*(){const he=yield N.openDbPromise;return new Promise((Ue,st)=>{const $t=he.transaction([Qr],"readwrite").objectStore(Qr),Lt=N.createCompositeKey(D);try{const en=$t.delete(Lt);en.onerror=yn=>{st(hn(yn,"storage-delete"))},en.onsuccess=()=>{Ue()}}catch(en){st(xr.create("storage-delete",{originalErrorMessage:en?.message}))}})})()}createCompositeKey(D){return[this.appId,this.appName,this.namespace,D].join()}}class qi{constructor(D){this.storage=D}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}loadFromStorage(){var D=this;return(0,R.Z)(function*(){const N=D.storage.getLastFetchStatus(),he=D.storage.getLastSuccessfulFetchTimestampMillis(),Ue=D.storage.getActiveConfig(),st=yield N;st&&(D.lastFetchStatus=st);const _t=yield he;_t&&(D.lastSuccessfulFetchTimestampMillis=_t);const $t=yield Ue;$t&&(D.activeConfig=$t)})()}setLastFetchStatus(D){return this.lastFetchStatus=D,this.storage.setLastFetchStatus(D)}setLastSuccessfulFetchTimestampMillis(D){return this.lastSuccessfulFetchTimestampMillis=D,this.storage.setLastSuccessfulFetchTimestampMillis(D)}setActiveConfig(D){return this.activeConfig=D,this.storage.setActiveConfig(D)}}function Qi(){return pi.apply(this,arguments)}function pi(){return(pi=(0,R.Z)(function*(){if(!(0,Y.hl)())return!1;try{return yield(0,Y.eu)()}catch{return!1}})).apply(this,arguments)}!function Wr(){(0,K._registerComponent)(new W.wA("remote-config",function m(D,{instanceIdentifier:N}){const he=D.getProvider("app").getImmediate(),Ue=D.getProvider("installations-internal").getImmediate();if(typeof window>"u")throw xr.create("registration-window");if(!(0,Y.hl)())throw xr.create("indexed-db-unavailable");const{projectId:st,apiKey:_t,appId:$t}=he.options;if(!st)throw xr.create("registration-project-id");if(!_t)throw xr.create("registration-api-key");if(!$t)throw xr.create("registration-app-id");const Lt=new fi($t,he.name,N=N||"firebase"),en=new qi(Lt),yn=new re.Yd(ki);yn.logLevel=re.in.ERROR;const Dn=new br(Ue,K.SDK_VERSION,N,st,_t,$t),si=new Ci(Dn,Lt),ai=new un(si,Lt,en,yn),qa=new hi(he,ai,en,Lt,yn);return function or(m){const D=(0,Y.m9)(m);D._initializePromise||(D._initializePromise=D._storageCache.loadFromStorage().then(()=>{D._isInitializationComplete=!0}))}(qa),qa},"PUBLIC").setMultipleInstances(!0)),(0,K.registerVersion)(ki,"0.4.4"),(0,K.registerVersion)(ki,"0.4.4","esm2017")}();const Xi=(m,D)=>D.some(N=>m instanceof N);let gi,En;const Cr=new WeakMap,er=new WeakMap,Bi=new WeakMap,ri=new WeakMap,Vi=new WeakMap;let Rr={get(m,D,N){if(m instanceof IDBTransaction){if("done"===D)return er.get(m);if("objectStoreNames"===D)return m.objectStoreNames||Bi.get(m);if("store"===D)return N.objectStoreNames[1]?void 0:N.objectStore(N.objectStoreNames[0])}return Vr(m[D])},set:(m,D,N)=>(m[D]=N,!0),has:(m,D)=>m instanceof IDBTransaction&&("done"===D||"store"===D)||D in m};function Ji(m){return"function"==typeof m?function Yo(m){return m!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Ko(){return En||(En=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(m)?function(...D){return m.apply(kr(this),D),Vr(Cr.get(this))}:function(...D){return Vr(m.apply(kr(this),D))}:function(D,...N){const he=m.call(kr(this),D,...N);return Bi.set(he,D.sort?D.sort():[D]),Vr(he)}}(m):(m instanceof IDBTransaction&&function xa(m){if(er.has(m))return;const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("complete",st),m.removeEventListener("error",_t),m.removeEventListener("abort",_t)},st=()=>{N(),Ue()},_t=()=>{he(m.error||new DOMException("AbortError","AbortError")),Ue()};m.addEventListener("complete",st),m.addEventListener("error",_t),m.addEventListener("abort",_t)});er.set(m,D)}(m),Xi(m,function Os(){return gi||(gi=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(m,Rr):m)}function Vr(m){if(m instanceof IDBRequest)return function Er(m){const D=new Promise((N,he)=>{const Ue=()=>{m.removeEventListener("success",st),m.removeEventListener("error",_t)},st=()=>{N(Vr(m.result)),Ue()},_t=()=>{he(m.error),Ue()};m.addEventListener("success",st),m.addEventListener("error",_t)});return D.then(N=>{N instanceof IDBCursor&&Cr.set(N,m)}).catch(()=>{}),Vi.set(D,m),D}(m);if(ri.has(m))return ri.get(m);const D=Ji(m);return D!==m&&(ri.set(m,D),Vi.set(D,m)),D}const kr=m=>Vi.get(m);function qo(m,D,{blocked:N,upgrade:he,blocking:Ue,terminated:st}={}){const _t=indexedDB.open(m,D),$t=Vr(_t);return he&&_t.addEventListener("upgradeneeded",Lt=>{he(Vr(_t.result),Lt.oldVersion,Lt.newVersion,Vr(_t.transaction))}),N&&_t.addEventListener("blocked",()=>N()),$t.then(Lt=>{st&&Lt.addEventListener("close",()=>st()),Ue&&Lt.addEventListener("versionchange",()=>Ue())}).catch(()=>{}),$t}function Qo(m,{blocked:D}={}){const N=indexedDB.deleteDatabase(m);return D&&N.addEventListener("blocked",()=>D()),Vr(N).then(()=>{})}const Oo=["get","getKey","getAll","getAllKeys","count"],xo=["put","add","delete","clear"],us=new Map;function Xo(m,D){if(!(m instanceof IDBDatabase)||D in m||"string"!=typeof D)return;if(us.get(D))return us.get(D);const N=D.replace(/FromIndex$/,""),he=D!==N,Ue=xo.includes(N);if(!(N in(he?IDBIndex:IDBObjectStore).prototype)||!Ue&&!Oo.includes(N))return;const st=function(){var _t=(0,R.Z)(function*($t,...Lt){const en=this.transaction($t,Ue?"readwrite":"readonly");let yn=en.store;return he&&(yn=yn.index(Lt.shift())),(yield Promise.all([yn[N](...Lt),Ue&&en.done]))[0]});return function(Lt){return _t.apply(this,arguments)}}();return us.set(D,st),st}!function fr(m){Rr=m(Rr)}(m=>({...m,get:(D,N,he)=>Xo(D,N)||m.get(D,N,he),has:(D,N)=>!!Xo(D,N)||m.has(D,N)}));const x="/firebase-messaging-sw.js",T="/firebase-cloud-messaging-push-scope",te="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",k="https://fcmregistrations.googleapis.com/v1",ae="google.c.a.c_id",At="google.c.a.c_l",_n="google.c.a.ts";var co=function(m){return m.PUSH_RECEIVED="push-received",m.NOTIFICATION_CLICKED="notification-clicked",m}(co||{});function Di(m){const D=new Uint8Array(m);return btoa(String.fromCharCode(...D)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function nl(m){const N=(m+"=".repeat((4-m.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),he=atob(N),Ue=new Uint8Array(he.length);for(let st=0;st<he.length;++st)Ue[st]=he.charCodeAt(st);return Ue}const ds="fcm_token_details_db",ca=5,Pa="fcm_token_object_Store";function xs(){return xs=(0,R.Z)(function*(m){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(st=>st.name).includes(ds))return null;let D=null;return(yield qo(ds,ca,{upgrade:(he=(0,R.Z)(function*(Ue,st,_t,$t){var Lt;if(st<2||!Ue.objectStoreNames.contains(Pa))return;const en=$t.objectStore(Pa),yn=yield en.index("fcmSenderId").get(m);if(yield en.clear(),yn)if(2===st){const Dn=yn;if(!Dn.auth||!Dn.p256dh||!Dn.endpoint)return;D={token:Dn.fcmToken,createTime:null!==(Lt=Dn.createTime)&&void 0!==Lt?Lt:Date.now(),subscriptionOptions:{auth:Dn.auth,p256dh:Dn.p256dh,endpoint:Dn.endpoint,swScope:Dn.swScope,vapidKey:"string"==typeof Dn.vapidKey?Dn.vapidKey:Di(Dn.vapidKey)}}}else if(3===st){const Dn=yn;D={token:Dn.fcmToken,createTime:Dn.createTime,subscriptionOptions:{auth:Di(Dn.auth),p256dh:Di(Dn.p256dh),endpoint:Dn.endpoint,swScope:Dn.swScope,vapidKey:Di(Dn.vapidKey)}}}else if(4===st){const Dn=yn;D={token:Dn.fcmToken,createTime:Dn.createTime,subscriptionOptions:{auth:Di(Dn.auth),p256dh:Di(Dn.p256dh),endpoint:Dn.endpoint,swScope:Dn.swScope,vapidKey:Di(Dn.vapidKey)}}}}),function(st,_t,$t,Lt){return he.apply(this,arguments)})})).close(),yield Qo(ds),yield Qo("fcm_vapid_details_db"),yield Qo("undefined"),function uo(m){if(!m||!m.subscriptionOptions)return!1;const{subscriptionOptions:D}=m;return"number"==typeof m.createTime&&m.createTime>0&&"string"==typeof m.token&&m.token.length>0&&"string"==typeof D.auth&&D.auth.length>0&&"string"==typeof D.p256dh&&D.p256dh.length>0&&"string"==typeof D.endpoint&&D.endpoint.length>0&&"string"==typeof D.swScope&&D.swScope.length>0&&"string"==typeof D.vapidKey&&D.vapidKey.length>0}(D)?D:null;var he}),xs.apply(this,arguments)}const jr="firebase-messaging-database",Ps=1,Hr="firebase-messaging-store";let gr=null;function wi(){return gr||(gr=qo(jr,Ps,{upgrade:(m,D)=>{0===D&&m.createObjectStore(Hr)}})),gr}function Ur(m){return eo.apply(this,arguments)}function eo(){return eo=(0,R.Z)(function*(m){const D=ho(m),he=yield(yield wi()).transaction(Hr).objectStore(Hr).get(D);if(he)return he;{const Ue=yield function rl(m){return xs.apply(this,arguments)}(m.appConfig.senderId);if(Ue)return yield hs(m,Ue),Ue}}),eo.apply(this,arguments)}function hs(m,D){return fs.apply(this,arguments)}function fs(){return(fs=(0,R.Z)(function*(m,D){const N=ho(m),Ue=(yield wi()).transaction(Hr,"readwrite");return yield Ue.objectStore(Hr).put(D,N),yield Ue.done,D})).apply(this,arguments)}function es(){return(es=(0,R.Z)(function*(m){const D=ho(m),he=(yield wi()).transaction(Hr,"readwrite");yield he.objectStore(Hr).delete(D),yield he.done})).apply(this,arguments)}function ho({appConfig:m}){return m.appId}const mr=new Y.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 ua(m,D){return Rs.apply(this,arguments)}function Rs(){return(Rs=(0,R.Z)(function*(m,D){const N=yield Ns(m),he=Fs(D),Ue={method:"POST",headers:N,body:JSON.stringify(he)};let st;try{st=yield(yield fetch(ks(m.appConfig),Ue)).json()}catch(_t){throw mr.create("token-subscribe-failed",{errorInfo:_t?.toString()})}if(st.error)throw mr.create("token-subscribe-failed",{errorInfo:st.error.message});if(!st.token)throw mr.create("token-subscribe-no-token");return st.token})).apply(this,arguments)}function fn(){return(fn=(0,R.Z)(function*(m,D){const N=yield Ns(m),he=Fs(D.subscriptionOptions),Ue={method:"PATCH",headers:N,body:JSON.stringify(he)};let st;try{st=yield(yield fetch(`${ks(m.appConfig)}/${D.token}`,Ue)).json()}catch(_t){throw mr.create("token-update-failed",{errorInfo:_t?.toString()})}if(st.error)throw mr.create("token-update-failed",{errorInfo:st.error.message});if(!st.token)throw mr.create("token-update-no-token");return st.token})).apply(this,arguments)}function gs(m,D){return ji.apply(this,arguments)}function ji(){return(ji=(0,R.Z)(function*(m,D){const he={method:"DELETE",headers:yield Ns(m)};try{const st=yield(yield fetch(`${ks(m.appConfig)}/${D}`,he)).json();if(st.error)throw mr.create("token-unsubscribe-failed",{errorInfo:st.error.message})}catch(Ue){throw mr.create("token-unsubscribe-failed",{errorInfo:Ue?.toString()})}})).apply(this,arguments)}function ks({projectId:m}){return`${k}/projects/${m}/registrations`}function Ns(m){return ts.apply(this,arguments)}function ts(){return(ts=(0,R.Z)(function*({appConfig:m,installations:D}){const N=yield D.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":m.apiKey,"x-goog-firebase-installations-auth":`FIS ${N}`})})).apply(this,arguments)}function Fs({p256dh:m,auth:D,endpoint:N,vapidKey:he}){const Ue={web:{endpoint:N,auth:D,p256dh:m}};return he!==te&&(Ue.web.applicationPubKey=he),Ue}const ms=6048e5;function Ls(){return Ls=(0,R.Z)(function*(m){const D=yield function vs(m,D){return ys.apply(this,arguments)}(m.swRegistration,m.vapidKey),N={vapidKey:m.vapidKey,swScope:m.swRegistration.scope,endpoint:D.endpoint,auth:Di(D.getKey("auth")),p256dh:Di(D.getKey("p256dh"))},he=yield Ur(m.firebaseDependencies);if(he){if(function g(m,D){return D.vapidKey===m.vapidKey&&D.endpoint===m.endpoint&&D.auth===m.auth&&D.p256dh===m.p256dh}(he.subscriptionOptions,N))return Date.now()>=he.createTime+ms?function Ra(m,D){return Vs.apply(this,arguments)}(m,{token:he.token,createTime:Date.now(),subscriptionOptions:N}):he.token;try{yield gs(m.firebaseDependencies,he.token)}catch(Ue){console.warn(Ue)}return ha(m.firebaseDependencies,N)}return ha(m.firebaseDependencies,N)}),Ls.apply(this,arguments)}function _s(){return _s=(0,R.Z)(function*(m){const D=yield Ur(m.firebaseDependencies);D&&(yield gs(m.firebaseDependencies,D.token),yield function Jo(m){return es.apply(this,arguments)}(m.firebaseDependencies));const N=yield m.swRegistration.pushManager.getSubscription();return!N||N.unsubscribe()}),_s.apply(this,arguments)}function Vs(){return Vs=(0,R.Z)(function*(m,D){try{const N=yield function da(m,D){return fn.apply(this,arguments)}(m.firebaseDependencies,D),he=Object.assign(Object.assign({},D),{token:N,createTime:Date.now()});return yield hs(m.firebaseDependencies,he),N}catch(N){throw yield function Bs(m){return _s.apply(this,arguments)}(m),N}}),Vs.apply(this,arguments)}function ha(m,D){return fa.apply(this,arguments)}function fa(){return(fa=(0,R.Z)(function*(m,D){const he={token:yield ua(m,D),createTime:Date.now(),subscriptionOptions:D};return yield hs(m,he),he.token})).apply(this,arguments)}function ys(){return(ys=(0,R.Z)(function*(m,D){return(yield m.pushManager.getSubscription())||m.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:nl(D)})})).apply(this,arguments)}function A(m){const D={from:m.from,collapseKey:m.collapse_key,messageId:m.fcmMessageId};return function fe(m,D){if(!D.notification)return;m.notification={};const N=D.notification.title;N&&(m.notification.title=N);const he=D.notification.body;he&&(m.notification.body=he);const Ue=D.notification.image;Ue&&(m.notification.image=Ue);const st=D.notification.icon;st&&(m.notification.icon=st)}(D,m),function M(m,D){D.data&&(m.data=D.data)}(D,m),function ne(m,D){var N,he,Ue,st,_t;if(!(D.fcmOptions||null!==(N=D.notification)&&void 0!==N&&N.click_action))return;m.fcmOptions={};const $t=null!==(Ue=null===(he=D.fcmOptions)||void 0===he?void 0:he.link)&&void 0!==Ue?Ue:null===(st=D.notification)||void 0===st?void 0:st.click_action;$t&&(m.fcmOptions.link=$t);const Lt=null===(_t=D.fcmOptions)||void 0===_t?void 0:_t.analytics_label;Lt&&(m.fcmOptions.analyticsLabel=Lt)}(D,m),D}function yt(m,D){const N=[];for(let he=0;he<m.length;he++)N.push(m.charAt(he)),he<D.length&&N.push(D.charAt(he));return N.join("")}function Tn(m){return mr.create("missing-app-config-values",{valueName:m})}yt("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),yt("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class zn{constructor(D,N,he){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const Ue=function kt(m){if(!m||!m.options)throw Tn("App Configuration Object");if(!m.name)throw Tn("App Name");const D=["projectId","apiKey","appId","messagingSenderId"],{options:N}=m;for(const he of D)if(!N[he])throw Tn(he);return{appName:m.name,projectId:N.projectId,apiKey:N.apiKey,appId:N.appId,senderId:N.messagingSenderId}}(D);this.firebaseDependencies={app:D,appConfig:Ue,installations:N,analyticsProvider:he}}_delete(){return Promise.resolve()}}function bn(){return(bn=(0,R.Z)(function*(m){try{m.swRegistration=yield navigator.serviceWorker.register(x,{scope:T}),m.swRegistration.update().catch(()=>{})}catch(D){throw mr.create("failed-service-worker-registration",{browserErrorMessage:D?.message})}})).apply(this,arguments)}function Qn(){return(Qn=(0,R.Z)(function*(m,D){if(!D&&!m.swRegistration&&(yield function Bn(m){return bn.apply(this,arguments)}(m)),D||!m.swRegistration){if(!(D instanceof ServiceWorkerRegistration))throw mr.create("invalid-sw-registration");m.swRegistration=D}})).apply(this,arguments)}function Zr(){return(Zr=(0,R.Z)(function*(m,D){D?m.vapidKey=D:m.vapidKey||(m.vapidKey=te)})).apply(this,arguments)}function Oi(){return Oi=(0,R.Z)(function*(m,D){if(!navigator)throw mr.create("only-available-in-window");if("default"===Notification.permission&&(yield Notification.requestPermission()),"granted"!==Notification.permission)throw mr.create("permission-blocked");return yield function _r(m,D){return Zr.apply(this,arguments)}(m,D?.vapidKey),yield function sr(m,D){return Qn.apply(this,arguments)}(m,D?.serviceWorkerRegistration),function il(m){return Ls.apply(this,arguments)}(m)}),Oi.apply(this,arguments)}function Dr(){return(Dr=(0,R.Z)(function*(m,D,N){const he=function to(m){switch(m){case co.NOTIFICATION_CLICKED:return"notification_open";case co.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(D);(yield m.firebaseDependencies.analyticsProvider.get()).logEvent(he,{message_id:N[ae],message_name:N[At],message_time:N[_n],message_device_time:Math.floor(Date.now()/1e3)})})).apply(this,arguments)}function tr(){return tr=(0,R.Z)(function*(m,D){const N=D.data;if(!N.isFirebaseMessaging)return;m.onMessageHandler&&N.messageType===co.PUSH_RECEIVED&&("function"==typeof m.onMessageHandler?m.onMessageHandler(A(N)):m.onMessageHandler.next(A(N)));const he=N.data;(function Le(m){return"object"==typeof m&&!!m&&ae in m})(he)&&"1"===he["google.c.a.e"]&&(yield function xi(m,D,N){return Dr.apply(this,arguments)}(m,N.messageType,he))}),tr.apply(this,arguments)}const ns="@firebase/messaging",Kr=m=>{const D=new zn(m.getProvider("app").getImmediate(),m.getProvider("installations-internal").getImmediate(),m.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",N=>function nr(m,D){return tr.apply(this,arguments)}(D,N)),D},Mi=m=>{const D=m.getProvider("messaging").getImmediate();return{getToken:he=>function Si(m,D){return Oi.apply(this,arguments)}(D,he)}};function bs(){return Jr.apply(this,arguments)}function Jr(){return(Jr=(0,R.Z)(function*(){try{yield(0,Y.eu)()}catch{return!1}return typeof window<"u"&&(0,Y.hl)()&&(0,Y.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})).apply(this,arguments)}!function Ys(){(0,K._registerComponent)(new W.wA("messaging",Kr,"PUBLIC")),(0,K._registerComponent)(new W.wA("messaging-internal",Mi,"PRIVATE")),(0,K.registerVersion)(ns,"0.12.4"),(0,K.registerVersion)(ns,"0.12.4","esm2017")}();const ga="analytics",ll="firebase_id",dn="origin",ma=6e4,_a="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",va="https://www.googletagmanager.com/gtag/js",wr=new re.Yd("@firebase/analytics"),Sr=new Y.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.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function fo(m){if(!m.startsWith(va)){const D=Sr.create("invalid-gtag-resource",{gtagURL:m});return wr.warn(D.message),""}return m}function Na(m){return Promise.all(m.map(D=>D.catch(N=>N)))}function Mt(){return(Mt=(0,R.Z)(function*(m,D,N,he,Ue,st){const _t=he[Ue];try{if(_t)yield D[_t];else{const Lt=(yield Na(N)).find(en=>en.measurementId===Ue);Lt&&(yield D[Lt.appId])}}catch($t){wr.error($t)}m("config",Ue,st)})).apply(this,arguments)}function js(){return(js=(0,R.Z)(function*(m,D,N,he,Ue){try{let st=[];if(Ue&&Ue.send_to){let _t=Ue.send_to;Array.isArray(_t)||(_t=[_t]);const $t=yield Na(N);for(const Lt of _t){const en=$t.find(Dn=>Dn.measurementId===Lt),yn=en&&D[en.appId];if(!yn){st=[];break}st.push(yn)}}0===st.length&&(st=Object.values(D)),yield Promise.all(st),m("event",he,Ue||{})}catch(st){wr.error(st)}})).apply(this,arguments)}const mi=30,Hs=new class rs{constructor(D={},N=1e3){this.throttleMetadata=D,this.intervalMillis=N}getThrottleMetadata(D){return this.throttleMetadata[D]}setThrottleMetadata(D,N){this.throttleMetadata[D]=N}deleteThrottleMetadata(D){delete this.throttleMetadata[D]}};function Ea(m){return new Headers({Accept:"application/json","x-goog-api-key":m})}function is(){return(is=(0,R.Z)(function*(m){var D;const{appId:N,apiKey:he}=m,Ue={method:"GET",headers:Ea(he)},st=_a.replace("{app-id}",N),_t=yield fetch(st,Ue);if(200!==_t.status&&304!==_t.status){let $t="";try{const Lt=yield _t.json();null!==(D=Lt.error)&&void 0!==D&&D.message&&($t=Lt.error.message)}catch{}throw Sr.create("config-fetch-failed",{httpStatus:_t.status,responseMessage:$t})}return _t.json()})).apply(this,arguments)}function ro(){return(ro=(0,R.Z)(function*(m,D=Hs,N){const{appId:he,apiKey:Ue,measurementId:st}=m.options;if(!he)throw Sr.create("no-app-id");if(!Ue){if(st)return{measurementId:st,appId:he};throw Sr.create("no-api-key")}const _t=D.getThrottleMetadata(he)||{backoffCount:0,throttleEndTimeMillis:Date.now()},$t=new w;return setTimeout((0,R.Z)(function*(){$t.abort()}),void 0!==N?N:ma),qs({appId:he,apiKey:Ue,measurementId:st},_t,$t,D)})).apply(this,arguments)}function qs(m,D,N){return Es.apply(this,arguments)}function Es(){return Es=(0,R.Z)(function*(m,{throttleEndTimeMillis:D,backoffCount:N},he,Ue=Hs){var st;const{appId:_t,measurementId:$t}=m;try{yield function f(m,D){return new Promise((N,he)=>{const Ue=Math.max(D-Date.now(),0),st=setTimeout(N,Ue);m.addEventListener(()=>{clearTimeout(st),he(Sr.create("fetch-throttle",{throttleEndTimeMillis:D}))})})}(he,D)}catch(Lt){if($t)return wr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${$t} provided in the "measurementId" field in the local Firebase config. [${Lt?.message}]`),{appId:_t,measurementId:$t};throw Lt}try{const Lt=yield function Ol(m){return is.apply(this,arguments)}(m);return Ue.deleteThrottleMetadata(_t),Lt}catch(Lt){const en=Lt;if(!function v(m){if(!(m instanceof Y.ZR&&m.customData))return!1;const D=Number(m.customData.httpStatus);return 429===D||500===D||503===D||504===D}(en)){if(Ue.deleteThrottleMetadata(_t),$t)return wr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${$t} provided in the "measurementId" field in the local Firebase config. [${en?.message}]`),{appId:_t,measurementId:$t};throw Lt}const yn=503===Number(null===(st=en?.customData)||void 0===st?void 0:st.httpStatus)?(0,Y.$s)(N,Ue.intervalMillis,mi):(0,Y.$s)(N,Ue.intervalMillis),Dn={throttleEndTimeMillis:Date.now()+yn,backoffCount:N+1};return Ue.setThrottleMetadata(_t,Dn),wr.debug(`Calling attemptFetch again in ${yn} millis`),qs(m,Dn,he,Ue)}}),Es.apply(this,arguments)}class w{constructor(){this.listeners=[]}addEventListener(D){this.listeners.push(D)}abort(){this.listeners.forEach(D=>D())}}let _,Ro;function Z(){return(Z=(0,R.Z)(function*(m,D,N,he,Ue){if(Ue&&Ue.global)m("event",N,he);else{const st=yield D;m("event",N,Object.assign(Object.assign({},he),{send_to:st}))}})).apply(this,arguments)}function No(){return(No=(0,R.Z)(function*(){if(!(0,Y.hl)())return wr.warn(Sr.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{yield(0,Y.eu)()}catch(m){return wr.warn(Sr.create("indexeddb-unavailable",{errorInfo:m?.toString()}).message),!1}return!0})).apply(this,arguments)}function Va(){return Va=(0,R.Z)(function*(m,D,N,he,Ue,st,_t){var $t;const Lt=function Yr(m){return ro.apply(this,arguments)}(m);Lt.then(ai=>{N[ai.measurementId]=ai.appId,m.options.measurementId&&ai.measurementId!==m.options.measurementId&&wr.warn(`The measurement ID in the local Firebase config (${m.options.measurementId}) does not match the measurement ID fetched from the server (${ai.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(ai=>wr.error(ai)),D.push(Lt);const en=function qr(){return No.apply(this,arguments)}().then(ai=>{if(ai)return he.getId()}),[yn,Dn]=yield Promise.all([Lt,en]);(function po(m){const D=window.document.getElementsByTagName("script");for(const N of Object.values(D))if(N.src&&N.src.includes(va)&&N.src.includes(m))return N;return null})(st)||function Po(m,D){const N=function Fa(m,D){let N;return window.trustedTypes&&(N=window.trustedTypes.createPolicy(m,D)),N}("firebase-js-sdk-policy",{createScriptURL:fo}),he=document.createElement("script"),Ue=`${va}?l=${m}&id=${D}`;he.src=N?N?.createScriptURL(Ue):Ue,he.async=!0,document.head.appendChild(he)}(st,yn.measurementId),Ro&&(Ue("consent","default",Ro),function ko(m){Ro=m}(void 0)),Ue("js",new Date);const si=null!==($t=_t?.config)&&void 0!==$t?$t:{};return si[dn]="firebase",si.update=!0,null!=Dn&&(si[ll]=Dn),Ue("config",yn.measurementId,si),_&&(Ue("set",_),function Ba(m){_=m}(void 0)),yn.measurementId}),Va.apply(this,arguments)}class Ec{constructor(D){this.app=D}_delete(){return delete go[this.app.options.appId],Promise.resolve()}}let go={},xl=[];const cl={};let _o,zi,mo="dataLayer",Qs=!1;function dl(m,D,N){!function ja(){const m=[];if((0,Y.ru)()&&m.push("This is a browser extension environment."),(0,Y.zI)()||m.push("Cookies are not available."),m.length>0){const D=m.map((he,Ue)=>`(${Ue+1}) ${he}`).join(" "),N=Sr.create("invalid-analytics-context",{errorInfo:D});wr.warn(N.message)}}();const he=m.options.appId;if(!he)throw Sr.create("no-app-id");if(!m.options.apiKey){if(!m.options.measurementId)throw Sr.create("no-api-key");wr.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 ${m.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=go[he])throw Sr.create("already-exists",{id:he});if(!Qs){!function ba(m){let D=[];Array.isArray(window[m])?D=window[m]:window[m]=D}(mo);const{wrappedGtag:st,gtagCore:_t}=function $r(m,D,N,he,Ue){let st=function(..._t){window[he].push(arguments)};return window[Ue]&&"function"==typeof window[Ue]&&(st=window[Ue]),window[Ue]=function La(m,D,N,he){function st(){return st=(0,R.Z)(function*(_t,...$t){try{if("event"===_t){const[Lt,en]=$t;yield function Rn(m,D,N,he,Ue){return js.apply(this,arguments)}(m,D,N,Lt,en)}else if("config"===_t){const[Lt,en]=$t;yield function Ca(m,D,N,he,Ue,st){return Mt.apply(this,arguments)}(m,D,N,he,Lt,en)}else if("consent"===_t){const[Lt]=$t;m("consent","update",Lt)}else if("get"===_t){const[Lt,en,yn]=$t;m("get",Lt,en,yn)}else if("set"===_t){const[Lt]=$t;m("set",Lt)}else m(_t,...$t)}catch(Lt){wr.error(Lt)}}),st.apply(this,arguments)}return function Ue(_t){return st.apply(this,arguments)}}(st,m,D,N),{gtagCore:st,wrappedGtag:window[Ue]}}(go,xl,cl,mo,"gtag");zi=st,_o=_t,Qs=!0}return go[he]=function vr(m,D,N,he,Ue,st,_t){return Va.apply(this,arguments)}(m,xl,cl,D,_o,mo,N),new Ec(m)}function wc(){return vo.apply(this,arguments)}function vo(){return(vo=(0,R.Z)(function*(){if((0,Y.ru)()||!(0,Y.zI)()||!(0,Y.hl)())return!1;try{return yield(0,Y.eu)()}catch{return!1}})).apply(this,arguments)}const Ua="@firebase/analytics";!function pl(){(0,K._registerComponent)(new W.wA(ga,(D,{options:N})=>dl(D.getProvider("app").getImmediate(),D.getProvider("installations-internal").getImmediate(),N),"PUBLIC")),(0,K._registerComponent)(new W.wA("analytics-internal",function m(D){try{const N=D.getProvider(ga).getImmediate();return{logEvent:(he,Ue,st)=>function _d(m,D,N,he){m=(0,Y.m9)(m),function I(m,D,N,he,Ue){return Z.apply(this,arguments)}(zi,go[m.app.options.appId],D,N,he).catch(Ue=>wr.error(Ue))}(N,he,Ue,st)}}catch(N){throw Sr.create("interop-component-reg-failed",{reason:N})}},"PRIVATE")),(0,K.registerVersion)(Ua,"0.10.0"),(0,K.registerVersion)(Ua,"0.10.0","esm2017")}();var Js=C(1954),$a=C(2631);const Nl=new class uu extends $a.v{}(class kl extends Js.o{constructor(D,N){super(D,N),this.scheduler=D,this.work=N}schedule(D,N=0){return N>0?super.schedule(D,N):(this.delay=N,this.state=D,this.scheduler.flush(this),this)}execute(D,N){return N>0||this.closed?super.execute(D,N):this._execute(D,N)}requestAsyncId(D,N,he=0){return null!=he&&he>0||null==he&&this.delay>0?super.requestAsyncId(D,N,he):(D.flush(this),0)}});var Mc=C(6321),Fo=C(9397),Fl=C(5137),za=C(3093);const gl=new o.GfV("7.6.1"),Da="__angularfire_symbol__analyticsIsSupportedValue",ea="__angularfire_symbol__analyticsIsSupported",zs="__angularfire_symbol__remoteConfigIsSupportedValue",ml="__angularfire_symbol__remoteConfigIsSupported",Ga="__angularfire_symbol__messagingIsSupportedValue",Wa="__angularfire_symbol__messagingIsSupported";function os(m,D,N){if(D){if(1===D.length)return D[0];const st=D.filter(_t=>_t.app===N);if(1===st.length)return st[0]}return N.container.getProvider(m).getImmediate({optional:!0})}globalThis[ea]||(globalThis[ea]=wc().then(m=>globalThis[Da]=m).catch(()=>globalThis[Da]=!1)),globalThis[Wa]||(globalThis[Wa]=bs().then(m=>globalThis[Ga]=m).catch(()=>globalThis[Ga]=!1)),globalThis[ml]||(globalThis[ml]=Qi().then(m=>globalThis[zs]=m).catch(()=>globalThis[zs]=!1));const wa=(m,D)=>{const N=D?[D]:(0,l.C6)(),he=[];return N.forEach(Ue=>{Ue.container.getProvider(m).instances.forEach(_t=>{he.includes(_t)||he.push(_t)})}),he};function ss(){}class _l{constructor(D,N=Nl){this.zone=D,this.delegate=N}now(){return this.delegate.now()}schedule(D,N,he){const Ue=this.zone;return this.delegate.schedule(function(_t){Ue.runGuarded(()=>{D.apply(this,[_t])})},N,he)}}class Sa{constructor(D){this.zone=D,this.task=null}call(D,N){const he=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",ss,{},ss,ss)),N.pipe((0,Fo.b)({next:he,complete:he,error:he})).subscribe(D).add(he)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let vl=(()=>{class m{constructor(N){this.ngZone=N,this.outsideAngular=N.runOutsideAngular(()=>new _l(Zone.current)),this.insideAngular=N.run(()=>new _l(Zone.current,Mc.z)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return m.\u0275fac=function(N){return new(N||m)(o.LFG(o.R0b))},m.\u0275prov=o.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})();function Fr(){const m=globalThis.\u0275AngularFireScheduler;if(!m)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 m}function Ka(m){return Fr(),function Ya(m){return function(N){return(N=N.lift(new Sa(m.ngZone))).pipe((0,Fl.R)(m.outsideAngular),(0,za.Q)(m.insideAngular))}}(Fr())(m)}},9058:(wt,Pe,C)=>{C.d(Pe,{$s:()=>Pt,BH:()=>ve,L:()=>ie,LL:()=>Ce,Pz:()=>me,UG:()=>ft,US:()=>W,ZB:()=>be,ZR:()=>Me,aH:()=>q,b$:()=>Rt,eu:()=>Xe,hl:()=>Ge,jU:()=>xt,m9:()=>cn,ne:()=>pe,pd:()=>G,r3:()=>Xt,ru:()=>Bt,tV:()=>V,uI:()=>Qe,vZ:()=>Vn,w1:()=>qt,xO:()=>Un,xb:()=>Sn,z$:()=>rt,zI:()=>Ze,zd:()=>ze});const K=function(Oe){const z=[];let U=0;for(let B=0;B<Oe.length;B++){let S=Oe.charCodeAt(B);S<128?z[U++]=S:S<2048?(z[U++]=S>>6|192,z[U++]=63&S|128):55296==(64512&S)&&B+1<Oe.length&&56320==(64512&Oe.charCodeAt(B+1))?(S=65536+((1023&S)<<10)+(1023&Oe.charCodeAt(++B)),z[U++]=S>>18|240,z[U++]=S>>12&63|128,z[U++]=S>>6&63|128,z[U++]=63&S|128):(z[U++]=S>>12|224,z[U++]=S>>6&63|128,z[U++]=63&S|128)}return z},W={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(Oe,z){if(!Array.isArray(Oe))throw Error("encodeByteArray takes an array as a parameter");this.init_();const U=z?this.byteToCharMapWebSafe_:this.byteToCharMap_,B=[];for(let S=0;S<Oe.length;S+=3){const H=Oe[S],j=S+1<Oe.length,L=j?Oe[S+1]:0,J=S+2<Oe.length,xe=J?Oe[S+2]:0;let at=(15&L)<<2|xe>>6,de=63&xe;J||(de=64,j||(at=64)),B.push(U[H>>2],U[(3&H)<<4|L>>4],U[at],U[de])}return B.join("")},encodeString(Oe,z){return this.HAS_NATIVE_SUPPORT&&!z?btoa(Oe):this.encodeByteArray(K(Oe),z)},decodeString(Oe,z){return this.HAS_NATIVE_SUPPORT&&!z?atob(Oe):function(Oe){const z=[];let U=0,B=0;for(;U<Oe.length;){const S=Oe[U++];if(S<128)z[B++]=String.fromCharCode(S);else if(S>191&&S<224){const H=Oe[U++];z[B++]=String.fromCharCode((31&S)<<6|63&H)}else if(S>239&&S<365){const J=((7&S)<<18|(63&Oe[U++])<<12|(63&Oe[U++])<<6|63&Oe[U++])-65536;z[B++]=String.fromCharCode(55296+(J>>10)),z[B++]=String.fromCharCode(56320+(1023&J))}else{const H=Oe[U++],j=Oe[U++];z[B++]=String.fromCharCode((15&S)<<12|(63&H)<<6|63&j)}}return z.join("")}(this.decodeStringToByteArray(Oe,z))},decodeStringToByteArray(Oe,z){this.init_();const U=z?this.charToByteMapWebSafe_:this.charToByteMap_,B=[];for(let S=0;S<Oe.length;){const H=U[Oe.charAt(S++)],L=S<Oe.length?U[Oe.charAt(S)]:0;++S;const xe=S<Oe.length?U[Oe.charAt(S)]:64;++S;const Se=S<Oe.length?U[Oe.charAt(S)]:64;if(++S,null==H||null==L||null==xe||null==Se)throw new re;B.push(H<<2|L>>4),64!==xe&&(B.push(L<<4&240|xe>>2),64!==Se&&B.push(xe<<6&192|Se))}return B},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let Oe=0;Oe<this.ENCODED_VALS.length;Oe++)this.byteToCharMap_[Oe]=this.ENCODED_VALS.charAt(Oe),this.charToByteMap_[this.byteToCharMap_[Oe]]=Oe,this.byteToCharMapWebSafe_[Oe]=this.ENCODED_VALS_WEBSAFE.charAt(Oe),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[Oe]]=Oe,Oe>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(Oe)]=Oe,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(Oe)]=Oe)}}};class re extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const ie=function(Oe){return function(Oe){const z=K(Oe);return W.encodeByteArray(z,!0)}(Oe).replace(/\./g,"")},V=function(Oe){try{return W.decodeString(Oe,!0)}catch(z){console.error("base64Decode failed: ",z)}return null};function be(Oe,z){if(!(z instanceof Object))return z;switch(z.constructor){case Date:return new Date(z.getTime());case Object:void 0===Oe&&(Oe={});break;case Array:Oe=[];break;default:return z}for(const U in z)!z.hasOwnProperty(U)||!Ve(U)||(Oe[U]=be(Oe[U],z[U]));return Oe}function Ve(Oe){return"__proto__"!==Oe}const Ye=()=>{try{return function He(){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 Oe=process.env.__FIREBASE_DEFAULTS__;return Oe?JSON.parse(Oe):void 0})()||(()=>{if(typeof document>"u")return;let Oe;try{Oe=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const z=Oe&&V(Oe[1]);return z&&JSON.parse(z)})()}catch(Oe){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${Oe}`)}},q=()=>{var Oe;return null===(Oe=Ye())||void 0===Oe?void 0:Oe.config},me=Oe=>{var z;return null===(z=Ye())||void 0===z?void 0:z[`_${Oe}`]};class ve{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((z,U)=>{this.resolve=z,this.reject=U})}wrapCallback(z){return(U,B)=>{U?this.reject(U):this.resolve(B),"function"==typeof z&&(this.promise.catch(()=>{}),1===z.length?z(U):z(U,B))}}}function rt(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Qe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(rt())}function ft(){var Oe;const z=null===(Oe=Ye())||void 0===Oe?void 0:Oe.forceEnvironment;if("node"===z)return!0;if("browser"===z)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}function xt(){return"object"==typeof self&&self.self===self}function Bt(){const Oe="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof Oe&&void 0!==Oe.id}function Rt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function qt(){const Oe=rt();return Oe.indexOf("MSIE ")>=0||Oe.indexOf("Trident/")>=0}function Ge(){try{return"object"==typeof indexedDB}catch{return!1}}function Xe(){return new Promise((Oe,z)=>{try{let U=!0;const B="validate-browser-context-for-indexeddb-analytics-module",S=self.indexedDB.open(B);S.onsuccess=()=>{S.result.close(),U||self.indexedDB.deleteDatabase(B),Oe(!0)},S.onupgradeneeded=()=>{U=!1},S.onerror=()=>{var H;z((null===(H=S.error)||void 0===H?void 0:H.message)||"")}}catch(U){z(U)}})}function Ze(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}class Me extends Error{constructor(z,U,B){super(U),this.code=z,this.customData=B,this.name="FirebaseError",Object.setPrototypeOf(this,Me.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ce.prototype.create)}}class Ce{constructor(z,U,B){this.service=z,this.serviceName=U,this.errors=B}create(z,...U){const B=U[0]||{},S=`${this.service}/${z}`,H=this.errors[z],j=H?function Be(Oe,z){return Oe.replace(Fe,(U,B)=>{const S=z[B];return null!=S?String(S):`<${B}?>`})}(H,B):"Error";return new Me(S,`${this.serviceName}: ${j} (${S}).`,B)}}const Fe=/\{\$([^}]+)}/g;function Xt(Oe,z){return Object.prototype.hasOwnProperty.call(Oe,z)}function Sn(Oe){for(const z in Oe)if(Object.prototype.hasOwnProperty.call(Oe,z))return!1;return!0}function Vn(Oe,z){if(Oe===z)return!0;const U=Object.keys(Oe),B=Object.keys(z);for(const S of U){if(!B.includes(S))return!1;const H=Oe[S],j=z[S];if(xn(H)&&xn(j)){if(!Vn(H,j))return!1}else if(H!==j)return!1}for(const S of B)if(!U.includes(S))return!1;return!0}function xn(Oe){return null!==Oe&&"object"==typeof Oe}function Un(Oe){const z=[];for(const[U,B]of Object.entries(Oe))Array.isArray(B)?B.forEach(S=>{z.push(encodeURIComponent(U)+"="+encodeURIComponent(S))}):z.push(encodeURIComponent(U)+"="+encodeURIComponent(B));return z.length?"&"+z.join("&"):""}function ze(Oe){const z={};return Oe.replace(/^\?/,"").split("&").forEach(B=>{if(B){const[S,H]=B.split("=");z[decodeURIComponent(S)]=decodeURIComponent(H)}}),z}function G(Oe){const z=Oe.indexOf("?");if(!z)return"";const U=Oe.indexOf("#",z);return Oe.substring(z,U>0?U:void 0)}function pe(Oe,z){const U=new nt(Oe,z);return U.subscribe.bind(U)}class nt{constructor(z,U){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=U,this.task.then(()=>{z(this)}).catch(B=>{this.error(B)})}next(z){this.forEachObserver(U=>{U.next(z)})}error(z){this.forEachObserver(U=>{U.error(z)}),this.close(z)}complete(){this.forEachObserver(z=>{z.complete()}),this.close()}subscribe(z,U,B){let S;if(void 0===z&&void 0===U&&void 0===B)throw new Error("Missing Observer.");S=function Ke(Oe,z){if("object"!=typeof Oe||null===Oe)return!1;for(const U of z)if(U in Oe&&"function"==typeof Oe[U])return!0;return!1}(z,["next","error","complete"])?z:{next:z,error:U,complete:B},void 0===S.next&&(S.next=dt),void 0===S.error&&(S.error=dt),void 0===S.complete&&(S.complete=dt);const H=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?S.error(this.finalError):S.complete()}catch{}}),this.observers.push(S),H}unsubscribeOne(z){void 0===this.observers||void 0===this.observers[z]||(delete this.observers[z],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(z){if(!this.finalized)for(let U=0;U<this.observers.length;U++)this.sendOne(U,z)}sendOne(z,U){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[z])try{U(this.observers[z])}catch(B){typeof console<"u"&&console.error&&console.error(B)}})}close(z){this.finalized||(this.finalized=!0,void 0!==z&&(this.finalError=z),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function dt(){}const Ae=1e3,it=2,St=144e5,Et=.5;function Pt(Oe,z=Ae,U=it){const B=z*Math.pow(U,Oe),S=Math.round(Et*B*(Math.random()-.5)*2);return Math.min(St,B+S)}function cn(Oe){return Oe&&Oe._delegate?Oe._delegate:Oe}},4201:(wt,Pe,C)=>{C.d(Pe,{a:()=>K});var o=C(5879),l=C(4835),R=C(8184);let K=(()=>{var Y;class W{constructor(ue,ie){this._authService=ue,this._router=ie}canActivate(ue,ie){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}return(Y=W).\u0275fac=function(ue){return new(ue||Y)(o.LFG(l.$),o.LFG(R.F0))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac}),W})()},4835:(wt,Pe,C)=>{C.d(Pe,{$:()=>K});var o=C(5879),l=C(8184),R=C(2425);let K=(()=>{var Y;class W{constructor(ue,ie){this._router=ue,this.toaster=ie}login(ue){this._router.navigate([ue])}logout(){localStorage.removeItem("Token"),localStorage.removeItem("Domain"),this._router.navigate([""])}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!1}setLocalStorage(ue,ie){localStorage.setItem("posdomain",ue),localStorage.setItem("username",ie)}getUsernameLocalStorage(){return localStorage.getItem("username")}getDomainLocalStorage(){return localStorage.getItem("posdomain")}isLocalStorageExist(){let ue=localStorage.getItem("posdomain"),ie=localStorage.getItem("username"),V=!1;return ue&&ie&&(V=!0),V}}return(Y=W).\u0275fac=function(ue){return new(ue||Y)(o.LFG(l.F0),o.LFG(R._W))},Y.\u0275prov=o.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),W})()},8017:(wt,Pe,C)=>{C.d(Pe,{O:()=>tt});var o=C(9862),l=C(5592),R=C(6321),K=C(93),Y=C(9360),W=C(4829),re=C(2306),ue=C(8251),ie=C(7103);const V=(0,re.d)($e=>function(Ye=null){$e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Ye});function Q($e,X){const{first:Ye,each:ut,with:Ne=be,scheduler:q=X??R.z,meta:me=null}=(0,K.q)($e)?{first:$e}:"number"==typeof $e?{each:$e}:$e;if(null==Ye&&null==ut)throw new TypeError("No timeout provided.");return(0,Y.e)((ve,ye)=>{let rt,Qe,ft=null,xt=0;const Bt=Rt=>{Qe=(0,ie.f)(ye,q,()=>{try{rt.unsubscribe(),(0,W.Xf)(Ne({meta:me,lastValue:ft,seen:xt})).subscribe(ye)}catch(Qt){ye.error(Qt)}},Rt)};rt=ve.subscribe((0,ue.x)(ye,Rt=>{Qe?.unsubscribe(),xt++,ye.next(ft=Rt),ut>0&&Bt(ut)},void 0,void 0,()=>{Qe?.closed||Qe?.unsubscribe(),ft=null})),!xt&&Bt(null!=Ye?"number"==typeof Ye?Ye:+Ye-q.now():ut)})}function be($e){throw new V($e)}var Ve=C(5879),He=C(2425);let tt=(()=>{var $e;class X{constructor(ut,Ne){this.http=ut,this.toastr=Ne}delete(ut,Ne){let q=localStorage.getItem("Token"),me=new o.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});return q&&(me=me.append("Authorization","Bearer "+q)),this.http.delete(ut,{body:Ne,headers:me})}post(ut,Ne,q=1e5){return new l.y(me=>{let ve=localStorage.getItem("Token"),ye=new o.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});ve&&(ye=ye.append("Authorization","Bearer "+ve)),this.http.post(ut,Ne,{headers:ye}).pipe(Q(q)).subscribe(Qe=>{me.next(Qe),me.complete()},Qe=>{if(200==Qe.status)me.next(Qe.error.text),me.complete();else{if(!this.unauthorizedErrorHandling(Qe)){let xt=this.errorMessageHandling(Qe);this.toastr.error(""!=xt.message?xt.message:"An unknown error has occured!",xt.header)}me.error(Qe)}})})}postFormData(ut,Ne,q=!0){return new l.y(me=>{let ve=localStorage.getItem("Token"),rt={headers:new o.WM({Authorization:"Bearer "+ve})};this.http.post(ut,Ne,rt).pipe(Q(1e5)).subscribe(Qe=>{me.next(Qe),me.complete()},Qe=>{if(200==Qe.status)me.next(Qe.error.text),me.complete();else{if(!this.unauthorizedErrorHandling(Qe)&&q){let xt=this.errorMessageHandling(Qe);this.toastr.error(""!=xt.message?xt.message:"An unknown error has occured!",xt.header)}me.error(Qe)}})})}unauthorizedErrorHandling(ut){let Ne=!1;return 401==ut.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Ne=!0),Ne}errorMessageHandling(ut){let Ne="API Error",q="Exception Message";return ut.error?(Ne="API Error - "+ut.status,ut.error.Message&&(q=ut.error.Message)):ut.message&&(Ne="API Error - "+ut.name,q=ut.message),{header:Ne,message:q}}get(ut,Ne=1e5){return new l.y(q=>{let me=localStorage.getItem("Token"),ve=new o.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});me&&(ve=ve.append("Authorization","Bearer "+me)),this.http.get(ut,{headers:ve}).pipe(Q(Ne)).subscribe(rt=>{q.next(rt),q.complete()},rt=>{if(200==rt.status)q.next(rt.error.text),q.complete();else{if(!this.unauthorizedErrorHandling(rt)){let ft=this.errorMessageHandling(rt);this.toastr.error(""!=ft.message?ft.message:"An unknown error has occured!",ft.header)}q.error(rt)}})})}}return($e=X).\u0275fac=function(ut){return new(ut||$e)(Ve.LFG(o.eN),Ve.LFG(He._W))},$e.\u0275prov=Ve.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),X})()},5123:(wt,Pe,C)=>{C.d(Pe,{_:()=>Ve});var o=C(5879),l=C(7700),R=C(6814),K=C(4843),Y=C(7238);function W(tt,$e){1&tt&&(o.ynx(0),o.TgZ(1,"th",8),o._uU(2,"Page Number"),o.qZA(),o.TgZ(3,"th",8),o._uU(4,"Page Size"),o.qZA(),o.BQk())}function re(tt,$e){if(1&tt&&(o.ynx(0),o.TgZ(1,"td",11),o._uU(2),o.ALo(3,"number"),o.qZA(),o.TgZ(4,"td",11),o._uU(5),o.ALo(6,"number"),o.qZA(),o.BQk()),2&tt){const X=o.oxw();o.xp6(2),o.hij(" ",o.lcZ(3,2,null==X.data||null==X.data.Content?null:X.data.Content.PageNumber)," "),o.xp6(3),o.hij(" ",o.lcZ(6,4,null==X.data||null==X.data.Content?null:X.data.Content.RowCount)," ")}}function ue(tt,$e){if(1&tt&&(o.ynx(0),o.TgZ(1,"li")(2,"a",19),o._uU(3),o.qZA()(),o.BQk()),2&tt){const X=$e.$implicit;o.xp6(2),o.Q6J("href",X.imageUrl,o.LSH),o.xp6(1),o.hij(" ",X.fileName," ")}}function ie(tt,$e){if(1&tt&&(o.ynx(0),o.TgZ(1,"div",12)(2,"div",3)(3,"div",13)(4,"div",14),o._UZ(5,"i",15),o.TgZ(6,"div",16),o._uU(7," Some images failed to migrate. Please check the file "),o.qZA()(),o.TgZ(8,"ol",17),o.YNc(9,ue,4,2,"ng-container",18),o.qZA()()()(),o.BQk()),2&tt){const X=o.oxw();o.xp6(9),o.Q6J("ngForOf",X.failedMigrate())}}let V=(()=>{var tt;class $e{constructor(Ye){this.data=Ye,this.dialogRef=(0,o.f3M)(l.so),this.failedMigrate=(0,o.tdS)([]),this.initFailedMigrate()}initFailedMigrate(){this.failedMigrate.update(()=>this.data.Content?.Image_failed?.map(ut=>{let Ne=ut.split("/");return{fileName:Ne[Ne.length-1],imageUrl:ut}}))}ngOnInit(){this.modalConfig=new K.O,this.modalConfig.title="Migrate Complete",this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="600px"}onClose(){this.dialogRef.close()}}return(tt=$e).\u0275fac=function(Ye){return new(Ye||tt)(o.Y36(l.WI))},tt.\u0275cmp=o.Xpm({type:tt,selectors:[["app-modal-migrate-notification"]],standalone:!0,features:[o.jDz],decls:24,vars:10,consts:[[3,"config","onCancel","onClose"],[1,"container"],[1,"row"],[1,"col-12"],[1,"table-responsive"],[1,"table","table-bordered"],[1,"thead-light"],[4,"ngIf"],[1,"text-center"],[1,"text-center","fw-bold","text-success"],[1,"text-center","fw-bold","text-danger"],[1,"text-center","fw-bold"],[1,"row","mt-5"],[1,"text-break"],[1,"d-flex","justify-content-start","mt-5","align-items-center","bg-warning-subtle","ps-3","py-2","rounded-1"],[1,"fa-solid","fa-triangle-exclamation","text-warning","me-2","fs-5"],[1,"fs-5","fw-bold"],[1,"mt-3"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"]],template:function(Ye,ut){1&Ye&&(o.TgZ(0,"modal-material",0),o.NdJ("onCancel",function(){return ut.onClose()})("onClose",function(){return ut.onClose()}),o.TgZ(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"table",5)(7,"thead",6)(8,"tr"),o.YNc(9,W,5,0,"ng-container",7),o.TgZ(10,"th",8),o._uU(11,"Success"),o.qZA(),o.TgZ(12,"th",8),o._uU(13,"Fail"),o.qZA()()(),o.TgZ(14,"tbody")(15,"tr"),o.YNc(16,re,7,6,"ng-container",7),o.TgZ(17,"td",9),o._uU(18),o.ALo(19,"number"),o.qZA(),o.TgZ(20,"td",10),o._uU(21),o.ALo(22,"number"),o.qZA()()()()()()(),o.YNc(23,ie,10,1,"ng-container",7),o.qZA()()()),2&Ye&&(o.Q6J("config",ut.modalConfig),o.xp6(9),o.Q6J("ngIf",(null==ut.data||null==ut.data.Content?null:ut.data.Content.PageNumber)&&(null==ut.data||null==ut.data.Content?null:ut.data.Content.RowCount)),o.xp6(7),o.Q6J("ngIf",(null==ut.data||null==ut.data.Content?null:ut.data.Content.PageNumber)&&(null==ut.data||null==ut.data.Content?null:ut.data.Content.RowCount)),o.xp6(2),o.hij(" ",o.lcZ(19,6,null==ut.data||null==ut.data.Content?null:ut.data.Content.Success)," "),o.xp6(3),o.hij(" ",o.lcZ(22,8,null==ut.data||null==ut.data.Content?null:ut.data.Content.Failed)," "),o.xp6(2),o.Q6J("ngIf",ut.failedMigrate().length>0))},dependencies:[R.ez,R.sg,R.O5,R.JJ,Y.d,Y.M]}),$e})();var Q=C(1379),be=C(2425);let Ve=(()=>{var tt;class $e{get domain(){let Ye=`${localStorage.getItem("posdomain")}`;return Ye.includes("localhost")&&(Ye="localhost:5001"),Ye}constructor(Ye,ut){this.signalrService=Ye,this.toastr=ut,this.dialog=(0,o.f3M)(l.uw),this.subscribeMigrateNotification(),this.subscribeGroup()}subscribeGroup(){this.signalrService.subscribeGroup(this.domain)}subscribeMigrateNotification(){this.signalrService.migrateNotification$.subscribe(Ye=>{const ut=Ye?JSON.parse(Ye):null;ut&&this.dialog.open(V,{data:ut})})}}return(tt=$e).\u0275fac=function(Ye){return new(Ye||tt)(o.LFG(Q.Y),o.LFG(be._W))},tt.\u0275prov=o.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),$e})()},1379:(wt,Pe,C)=>{C.d(Pe,{Y:()=>vt});var o=C(8645);const l=[0,2e3,1e4,3e4,null];class R{constructor(y){this._retryDelays=void 0!==y?[...y,null]:l}nextRetryDelayInMilliseconds(y){return this._retryDelays[y.previousRetryCount]}}var K=C(5861);let Y=(()=>{class Re{}return Re.Authorization="Authorization",Re.Cookie="Cookie",Re})();class W{constructor(y,P,ee){this.statusCode=y,this.statusText=P,this.content=ee}}class re{get(y,P){return this.send({...P,method:"GET",url:y})}post(y,P){return this.send({...P,method:"POST",url:y})}delete(y,P){return this.send({...P,method:"DELETE",url:y})}getCookieString(y){return""}}class ue extends re{constructor(y,P){super(),this._innerClient=y,this._accessTokenFactory=P}send(y){var P=this;return(0,K.Z)(function*(){let ee=!0;P._accessTokenFactory&&(!P._accessToken||y.url&&y.url.indexOf("/negotiate?")>0)&&(ee=!1,P._accessToken=yield P._accessTokenFactory()),P._setAuthorizationHeader(y);const Ae=yield P._innerClient.send(y);return ee&&401===Ae.statusCode&&P._accessTokenFactory?(P._accessToken=yield P._accessTokenFactory(),P._setAuthorizationHeader(y),yield P._innerClient.send(y)):Ae})()}_setAuthorizationHeader(y){y.headers||(y.headers={}),this._accessToken?y.headers[Y.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&y.headers[Y.Authorization]&&delete y.headers[Y.Authorization]}getCookieString(y){return this._innerClient.getCookieString(y)}}class ie extends Error{constructor(y,P){const ee=new.target.prototype;super(`${y}: Status code '${P}'`),this.statusCode=P,this.__proto__=ee}}class V extends Error{constructor(y="A timeout occurred."){const P=new.target.prototype;super(y),this.__proto__=P}}class Q extends Error{constructor(y="An abort occurred."){const P=new.target.prototype;super(y),this.__proto__=P}}class be extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.transport=P,this.errorType="UnsupportedTransportError",this.__proto__=ee}}class Ve extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.transport=P,this.errorType="DisabledTransportError",this.__proto__=ee}}class He extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.transport=P,this.errorType="FailedToStartTransportError",this.__proto__=ee}}class tt extends Error{constructor(y){const P=new.target.prototype;super(y),this.errorType="FailedToNegotiateWithServerError",this.__proto__=P}}class $e extends Error{constructor(y,P){const ee=new.target.prototype;super(y),this.innerErrors=P,this.__proto__=ee}}var X=function(Re){return Re[Re.Trace=0]="Trace",Re[Re.Debug=1]="Debug",Re[Re.Information=2]="Information",Re[Re.Warning=3]="Warning",Re[Re.Error=4]="Error",Re[Re.Critical=5]="Critical",Re[Re.None=6]="None",Re}(X||{});class Ye{constructor(){}log(y,P){}}Ye.instance=new Ye;const ut="8.0.7";class Ne{static isRequired(y,P){if(null==y)throw new Error(`The '${P}' argument is required.`)}static isNotEmpty(y,P){if(!y||y.match(/^\s*$/))throw new Error(`The '${P}' argument should not be empty.`)}static isIn(y,P,ee){if(!(y in P))throw new Error(`Unknown ${ee} value: ${y}.`)}}class q{static get isBrowser(){return!q.isNode&&"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return!q.isNode&&"object"==typeof self&&"importScripts"in self}static get isReactNative(){return!q.isNode&&"object"==typeof window&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&"node"===process.release.name}}function me(Re,y){let P="";return ye(Re)?(P=`Binary data of length ${Re.byteLength}`,y&&(P+=`. Content: '${function ve(Re){const y=new Uint8Array(Re);let P="";return y.forEach(ee=>{P+=`0x${ee<16?"0":""}${ee.toString(16)} `}),P.substr(0,P.length-1)}(Re)}'`)):"string"==typeof Re&&(P=`String data of length ${Re.length}`,y&&(P+=`. Content: '${Re}'`)),P}function ye(Re){return Re&&typeof ArrayBuffer<"u"&&(Re instanceof ArrayBuffer||Re.constructor&&"ArrayBuffer"===Re.constructor.name)}function rt(Re,y,P,ee,Ae,it){return Qe.apply(this,arguments)}function Qe(){return(Qe=(0,K.Z)(function*(Re,y,P,ee,Ae,it){const St={},[Et,Pt]=Rt();St[Et]=Pt,Re.log(X.Trace,`(${y} transport) sending data. ${me(Ae,it.logMessageContent)}.`);const Ht=ye(Ae)?"arraybuffer":"text",Yt=yield P.post(ee,{content:Ae,headers:{...St,...it.headers},responseType:Ht,timeout:it.timeout,withCredentials:it.withCredentials});Re.log(X.Trace,`(${y} transport) request complete. Response status: ${Yt.statusCode}.`)})).apply(this,arguments)}class xt{constructor(y,P){this._subject=y,this._observer=P}dispose(){const y=this._subject.observers.indexOf(this._observer);y>-1&&this._subject.observers.splice(y,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(P=>{})}}class Bt{constructor(y){this._minLevel=y,this.out=console}log(y,P){if(y>=this._minLevel){const ee=`[${(new Date).toISOString()}] ${X[y]}: ${P}`;switch(y){case X.Critical:case X.Error:this.out.error(ee);break;case X.Warning:this.out.warn(ee);break;case X.Information:this.out.info(ee);break;default:this.out.log(ee)}}}}function Rt(){let Re="X-SignalR-User-Agent";return q.isNode&&(Re="User-Agent"),[Re,Qt(ut,qt(),q.isNode?"NodeJS":"Browser",sn())]}function Qt(Re,y,P,ee){let Ae="Microsoft SignalR/";const it=Re.split(".");return Ae+=`${it[0]}.${it[1]}`,Ae+=` (${Re}; `,Ae+=y&&""!==y?`${y}; `:"Unknown OS; ",Ae+=`${P}`,Ae+=ee?`; ${ee}`:"; Unknown Runtime Version",Ae+=")",Ae}function qt(){if(!q.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function sn(){if(q.isNode)return process.versions.node}function wn(Re){return Re.stack?Re.stack:Re.message?Re.message:`${Re}`}class Xe extends re{constructor(y){if(super(),this._logger=y,typeof fetch>"u"||q.isNode){const P=require;this._jar=new(P("tough-cookie").CookieJar),this._fetchType=typeof fetch>"u"?P("node-fetch"):fetch,this._fetchType=P("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function Ge(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const P=require;this._abortControllerType=P("abort-controller")}else this._abortControllerType=AbortController}send(y){var P=this;return(0,K.Z)(function*(){if(y.abortSignal&&y.abortSignal.aborted)throw new Q;if(!y.method)throw new Error("No method defined.");if(!y.url)throw new Error("No url defined.");const ee=new P._abortControllerType;let Ae;y.abortSignal&&(y.abortSignal.onabort=()=>{ee.abort(),Ae=new Q});let St,it=null;y.timeout&&(it=setTimeout(()=>{ee.abort(),P._logger.log(X.Warning,"Timeout from HTTP request."),Ae=new V},y.timeout)),""===y.content&&(y.content=void 0),y.content&&(y.headers=y.headers||{},y.headers["Content-Type"]=ye(y.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{St=yield P._fetchType(y.url,{body:y.content,cache:"no-cache",credentials:!0===y.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...y.headers},method:y.method,mode:"cors",redirect:"follow",signal:ee.signal})}catch(Ht){throw Ae||(P._logger.log(X.Warning,`Error from HTTP request. ${Ht}.`),Ht)}finally{it&&clearTimeout(it),y.abortSignal&&(y.abortSignal.onabort=null)}if(!St.ok){const Ht=yield Ze(St,"text");throw new ie(Ht||St.statusText,St.status)}const Pt=yield Ze(St,y.responseType);return new W(St.status,St.statusText,Pt)})()}getCookieString(y){let P="";return q.isNode&&this._jar&&this._jar.getCookies(y,(ee,Ae)=>P=Ae.join("; ")),P}}function Ze(Re,y){let P;switch(y){case"arraybuffer":P=Re.arrayBuffer();break;case"text":default:P=Re.text();break;case"blob":case"document":case"json":throw new Error(`${y} is not supported.`)}return P}class De extends re{constructor(y){super(),this._logger=y}send(y){return y.abortSignal&&y.abortSignal.aborted?Promise.reject(new Q):y.method?y.url?new Promise((P,ee)=>{const Ae=new XMLHttpRequest;Ae.open(y.method,y.url,!0),Ae.withCredentials=void 0===y.withCredentials||y.withCredentials,Ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===y.content&&(y.content=void 0),y.content&&(ye(y.content)?Ae.setRequestHeader("Content-Type","application/octet-stream"):Ae.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const it=y.headers;it&&Object.keys(it).forEach(St=>{Ae.setRequestHeader(St,it[St])}),y.responseType&&(Ae.responseType=y.responseType),y.abortSignal&&(y.abortSignal.onabort=()=>{Ae.abort(),ee(new Q)}),y.timeout&&(Ae.timeout=y.timeout),Ae.onload=()=>{y.abortSignal&&(y.abortSignal.onabort=null),Ae.status>=200&&Ae.status<300?P(new W(Ae.status,Ae.statusText,Ae.response||Ae.responseText)):ee(new ie(Ae.response||Ae.responseText||Ae.statusText,Ae.status))},Ae.onerror=()=>{this._logger.log(X.Warning,`Error from HTTP request. ${Ae.status}: ${Ae.statusText}.`),ee(new ie(Ae.statusText,Ae.status))},Ae.ontimeout=()=>{this._logger.log(X.Warning,"Timeout from HTTP request."),ee(new V)},Ae.send(y.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Me extends re{constructor(y){if(super(),typeof fetch<"u"||q.isNode)this._httpClient=new Xe(y);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new De(y)}}send(y){return y.abortSignal&&y.abortSignal.aborted?Promise.reject(new Q):y.method?y.url?this._httpClient.send(y):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(y){return this._httpClient.getCookieString(y)}}var Ce=function(Re){return Re[Re.None=0]="None",Re[Re.WebSockets=1]="WebSockets",Re[Re.ServerSentEvents=2]="ServerSentEvents",Re[Re.LongPolling=4]="LongPolling",Re}(Ce||{}),Be=function(Re){return Re[Re.Text=1]="Text",Re[Re.Binary=2]="Binary",Re}(Be||{});class Fe{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class ke{get pollAborted(){return this._pollAbort.aborted}constructor(y,P,ee){this._httpClient=y,this._logger=P,this._pollAbort=new Fe,this._options=ee,this._running=!1,this.onreceive=null,this.onclose=null}connect(y,P){var ee=this;return(0,K.Z)(function*(){if(Ne.isRequired(y,"url"),Ne.isRequired(P,"transferFormat"),Ne.isIn(P,Be,"transferFormat"),ee._url=y,ee._logger.log(X.Trace,"(LongPolling transport) Connecting."),P===Be.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[Ae,it]=Rt(),St={[Ae]:it,...ee._options.headers},Et={abortSignal:ee._pollAbort.signal,headers:St,timeout:1e5,withCredentials:ee._options.withCredentials};P===Be.Binary&&(Et.responseType="arraybuffer");const Pt=`${y}&_=${Date.now()}`;ee._logger.log(X.Trace,`(LongPolling transport) polling: ${Pt}.`);const Ht=yield ee._httpClient.get(Pt,Et);200!==Ht.statusCode?(ee._logger.log(X.Error,`(LongPolling transport) Unexpected response code: ${Ht.statusCode}.`),ee._closeError=new ie(Ht.statusText||"",Ht.statusCode),ee._running=!1):ee._running=!0,ee._receiving=ee._poll(ee._url,Et)})()}_poll(y,P){var ee=this;return(0,K.Z)(function*(){try{for(;ee._running;)try{const Ae=`${y}&_=${Date.now()}`;ee._logger.log(X.Trace,`(LongPolling transport) polling: ${Ae}.`);const it=yield ee._httpClient.get(Ae,P);204===it.statusCode?(ee._logger.log(X.Information,"(LongPolling transport) Poll terminated by server."),ee._running=!1):200!==it.statusCode?(ee._logger.log(X.Error,`(LongPolling transport) Unexpected response code: ${it.statusCode}.`),ee._closeError=new ie(it.statusText||"",it.statusCode),ee._running=!1):it.content?(ee._logger.log(X.Trace,`(LongPolling transport) data received. ${me(it.content,ee._options.logMessageContent)}.`),ee.onreceive&&ee.onreceive(it.content)):ee._logger.log(X.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(Ae){ee._running?Ae instanceof V?ee._logger.log(X.Trace,"(LongPolling transport) Poll timed out, reissuing."):(ee._closeError=Ae,ee._running=!1):ee._logger.log(X.Trace,`(LongPolling transport) Poll errored after shutdown: ${Ae.message}`)}}finally{ee._logger.log(X.Trace,"(LongPolling transport) Polling complete."),ee.pollAborted||ee._raiseOnClose()}})()}send(y){var P=this;return(0,K.Z)(function*(){return P._running?rt(P._logger,"LongPolling",P._httpClient,P._url,y,P._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var y=this;return(0,K.Z)(function*(){y._logger.log(X.Trace,"(LongPolling transport) Stopping polling."),y._running=!1,y._pollAbort.abort();try{yield y._receiving,y._logger.log(X.Trace,`(LongPolling transport) sending DELETE request to ${y._url}.`);const P={},[ee,Ae]=Rt();P[ee]=Ae;const it={headers:{...P,...y._options.headers},timeout:y._options.timeout,withCredentials:y._options.withCredentials};let St;try{yield y._httpClient.delete(y._url,it)}catch(Et){St=Et}St?St instanceof ie&&y._logger.log(X.Trace,404===St.statusCode?"(LongPolling transport) A 404 response was returned from sending a DELETE request.":`(LongPolling transport) Error sending a DELETE request: ${St}`):y._logger.log(X.Trace,"(LongPolling transport) DELETE request accepted.")}finally{y._logger.log(X.Trace,"(LongPolling transport) Stop finished."),y._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let y="(LongPolling transport) Firing onclose event.";this._closeError&&(y+=" Error: "+this._closeError),this._logger.log(X.Trace,y),this.onclose(this._closeError)}}}class Ct{constructor(y,P,ee,Ae){this._httpClient=y,this._accessToken=P,this._logger=ee,this._options=Ae,this.onreceive=null,this.onclose=null}connect(y,P){var ee=this;return(0,K.Z)(function*(){return Ne.isRequired(y,"url"),Ne.isRequired(P,"transferFormat"),Ne.isIn(P,Be,"transferFormat"),ee._logger.log(X.Trace,"(SSE transport) Connecting."),ee._url=y,ee._accessToken&&(y+=(y.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(ee._accessToken)}`),new Promise((Ae,it)=>{let Et,St=!1;if(P===Be.Text){if(q.isBrowser||q.isWebWorker)Et=new ee._options.EventSource(y,{withCredentials:ee._options.withCredentials});else{const Pt=ee._httpClient.getCookieString(y),Ht={};Ht.Cookie=Pt;const[Yt,cn]=Rt();Ht[Yt]=cn,Et=new ee._options.EventSource(y,{withCredentials:ee._options.withCredentials,headers:{...Ht,...ee._options.headers}})}try{Et.onmessage=Pt=>{if(ee.onreceive)try{ee._logger.log(X.Trace,`(SSE transport) data received. ${me(Pt.data,ee._options.logMessageContent)}.`),ee.onreceive(Pt.data)}catch(Ht){return void ee._close(Ht)}},Et.onerror=Pt=>{St?ee._close():it(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},Et.onopen=()=>{ee._logger.log(X.Information,`SSE connected to ${ee._url}`),ee._eventSource=Et,St=!0,Ae()}}catch(Pt){return void it(Pt)}}else it(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(y){var P=this;return(0,K.Z)(function*(){return P._eventSource?rt(P._logger,"SSE",P._httpClient,P._url,y,P._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(y){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(y))}}class Nt{constructor(y,P,ee,Ae,it,St){this._logger=ee,this._accessTokenFactory=P,this._logMessageContent=Ae,this._webSocketConstructor=it,this._httpClient=y,this.onreceive=null,this.onclose=null,this._headers=St}connect(y,P){var ee=this;return(0,K.Z)(function*(){let Ae;return Ne.isRequired(y,"url"),Ne.isRequired(P,"transferFormat"),Ne.isIn(P,Be,"transferFormat"),ee._logger.log(X.Trace,"(WebSockets transport) Connecting."),ee._accessTokenFactory&&(Ae=yield ee._accessTokenFactory()),new Promise((it,St)=>{let Et;y=y.replace(/^http/,"ws");const Pt=ee._httpClient.getCookieString(y);let Ht=!1;if(q.isNode||q.isReactNative){const Yt={},[cn,Oe]=Rt();Yt[cn]=Oe,Ae&&(Yt[Y.Authorization]=`Bearer ${Ae}`),Pt&&(Yt[Y.Cookie]=Pt),Et=new ee._webSocketConstructor(y,void 0,{headers:{...Yt,...ee._headers}})}else Ae&&(y+=(y.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Ae)}`);Et||(Et=new ee._webSocketConstructor(y)),P===Be.Binary&&(Et.binaryType="arraybuffer"),Et.onopen=Yt=>{ee._logger.log(X.Information,`WebSocket connected to ${y}.`),ee._webSocket=Et,Ht=!0,it()},Et.onerror=Yt=>{let cn=null;cn=typeof ErrorEvent<"u"&&Yt instanceof ErrorEvent?Yt.error:"There was an error with the transport",ee._logger.log(X.Information,`(WebSockets transport) ${cn}.`)},Et.onmessage=Yt=>{if(ee._logger.log(X.Trace,`(WebSockets transport) data received. ${me(Yt.data,ee._logMessageContent)}.`),ee.onreceive)try{ee.onreceive(Yt.data)}catch(cn){return void ee._close(cn)}},Et.onclose=Yt=>{if(Ht)ee._close(Yt);else{let cn=null;cn=typeof ErrorEvent<"u"&&Yt instanceof ErrorEvent?Yt.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",St(new Error(cn))}}})})()}send(y){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(X.Trace,`(WebSockets transport) sending data. ${me(y,this._logMessageContent)}.`),this._webSocket.send(y),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(y){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(X.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(y)||!1!==y.wasClean&&1e3===y.code?y instanceof Error?this.onclose(y):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${y.code} (${y.reason||"no reason given"}).`)))}_isCloseEvent(y){return y&&"boolean"==typeof y.wasClean&&"number"==typeof y.code}}class Kt{constructor(y,P={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Ne.isRequired(y,"url"),this._logger=function ft(Re){return void 0===Re?new Bt(X.Information):null===Re?Ye.instance:void 0!==Re.log?Re:new Bt(Re)}(P.logger),this.baseUrl=this._resolveUrl(y),(P=P||{}).logMessageContent=void 0!==P.logMessageContent&&P.logMessageContent,"boolean"!=typeof P.withCredentials&&void 0!==P.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");P.withCredentials=void 0===P.withCredentials||P.withCredentials,P.timeout=void 0===P.timeout?1e5:P.timeout;let ee=null,Ae=null;if(q.isNode){const it=require;ee=it("ws"),Ae=it("eventsource")}!q.isNode&&typeof WebSocket<"u"&&!P.WebSocket?P.WebSocket=WebSocket:q.isNode&&!P.WebSocket&&ee&&(P.WebSocket=ee),!q.isNode&&typeof EventSource<"u"&&!P.EventSource?P.EventSource=EventSource:q.isNode&&!P.EventSource&&typeof Ae<"u"&&(P.EventSource=Ae),this._httpClient=new ue(P.httpClient||new Me(this._logger),P.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=P,this.onreceive=null,this.onclose=null}start(y){var P=this;return(0,K.Z)(function*(){if(Ne.isIn(y=y||Be.Binary,Be,"transferFormat"),P._logger.log(X.Debug,`Starting connection with transfer format '${Be[y]}'.`),"Disconnected"!==P._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(P._connectionState="Connecting",P._startInternalPromise=P._startInternal(y),yield P._startInternalPromise,"Disconnecting"===P._connectionState){const ee="Failed to start the HttpConnection before stop() was called.";return P._logger.log(X.Error,ee),yield P._stopPromise,Promise.reject(new Q(ee))}if("Connected"!==P._connectionState){const ee="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return P._logger.log(X.Error,ee),Promise.reject(new Q(ee))}P._connectionStarted=!0})()}send(y){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new rn(this.transport)),this._sendQueue.send(y))}stop(y){var P=this;return(0,K.Z)(function*(){return"Disconnected"===P._connectionState?(P._logger.log(X.Debug,`Call to HttpConnection.stop(${y}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===P._connectionState?(P._logger.log(X.Debug,`Call to HttpConnection.stop(${y}) ignored because the connection is already in the disconnecting state.`),P._stopPromise):(P._connectionState="Disconnecting",P._stopPromise=new Promise(ee=>{P._stopPromiseResolver=ee}),yield P._stopInternal(y),void(yield P._stopPromise))})()}_stopInternal(y){var P=this;return(0,K.Z)(function*(){P._stopError=y;try{yield P._startInternalPromise}catch{}if(P.transport){try{yield P.transport.stop()}catch(ee){P._logger.log(X.Error,`HttpConnection.transport.stop() threw error '${ee}'.`),P._stopConnection()}P.transport=void 0}else P._logger.log(X.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(y){var P=this;return(0,K.Z)(function*(){let ee=P.baseUrl;P._accessTokenFactory=P._options.accessTokenFactory,P._httpClient._accessTokenFactory=P._accessTokenFactory;try{if(P._options.skipNegotiation){if(P._options.transport!==Ce.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");P.transport=P._constructTransport(Ce.WebSockets),yield P._startTransport(ee,y)}else{let Ae=null,it=0;do{if(Ae=yield P._getNegotiationResponse(ee),"Disconnecting"===P._connectionState||"Disconnected"===P._connectionState)throw new Q("The connection was stopped during negotiation.");if(Ae.error)throw new Error(Ae.error);if(Ae.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(Ae.url&&(ee=Ae.url),Ae.accessToken){const St=Ae.accessToken;P._accessTokenFactory=()=>St,P._httpClient._accessToken=St,P._httpClient._accessTokenFactory=void 0}it++}while(Ae.url&&it<100);if(100===it&&Ae.url)throw new Error("Negotiate redirection limit exceeded.");yield P._createTransport(ee,P._options.transport,Ae,y)}P.transport instanceof ke&&(P.features.inherentKeepAlive=!0),"Connecting"===P._connectionState&&(P._logger.log(X.Debug,"The HttpConnection connected successfully."),P._connectionState="Connected")}catch(Ae){return P._logger.log(X.Error,"Failed to start the connection: "+Ae),P._connectionState="Disconnected",P.transport=void 0,P._stopPromiseResolver(),Promise.reject(Ae)}})()}_getNegotiationResponse(y){var P=this;return(0,K.Z)(function*(){const ee={},[Ae,it]=Rt();ee[Ae]=it;const St=P._resolveNegotiateUrl(y);P._logger.log(X.Debug,`Sending negotiation request: ${St}.`);try{const Et=yield P._httpClient.post(St,{content:"",headers:{...ee,...P._options.headers},timeout:P._options.timeout,withCredentials:P._options.withCredentials});if(200!==Et.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Et.statusCode}'`));const Pt=JSON.parse(Et.content);return(!Pt.negotiateVersion||Pt.negotiateVersion<1)&&(Pt.connectionToken=Pt.connectionId),Pt.useStatefulReconnect&&!0!==P._options._useStatefulReconnect?Promise.reject(new tt("Client didn't negotiate Stateful Reconnect but the server did.")):Pt}catch(Et){let Pt="Failed to complete negotiation with the server: "+Et;return Et instanceof ie&&404===Et.statusCode&&(Pt+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),P._logger.log(X.Error,Pt),Promise.reject(new tt(Pt))}})()}_createConnectUrl(y,P){return P?y+(-1===y.indexOf("?")?"?":"&")+`id=${P}`:y}_createTransport(y,P,ee,Ae){var it=this;return(0,K.Z)(function*(){let St=it._createConnectUrl(y,ee.connectionToken);if(it._isITransport(P))return it._logger.log(X.Debug,"Connection was provided an instance of ITransport, using that directly."),it.transport=P,yield it._startTransport(St,Ae),void(it.connectionId=ee.connectionId);const Et=[],Pt=ee.availableTransports||[];let Ht=ee;for(const Yt of Pt){const cn=it._resolveTransportOrError(Yt,P,Ae,!0===Ht?.useStatefulReconnect);if(cn instanceof Error)Et.push(`${Yt.transport} failed:`),Et.push(cn);else if(it._isITransport(cn)){if(it.transport=cn,!Ht){try{Ht=yield it._getNegotiationResponse(y)}catch(Oe){return Promise.reject(Oe)}St=it._createConnectUrl(y,Ht.connectionToken)}try{return yield it._startTransport(St,Ae),void(it.connectionId=Ht.connectionId)}catch(Oe){if(it._logger.log(X.Error,`Failed to start the transport '${Yt.transport}': ${Oe}`),Ht=void 0,Et.push(new He(`${Yt.transport} failed: ${Oe}`,Ce[Yt.transport])),"Connecting"!==it._connectionState){const z="Failed to select transport before stop() was called.";return it._logger.log(X.Debug,z),Promise.reject(new Q(z))}}}}return Promise.reject(Et.length>0?new $e(`Unable to connect to the server with any of the available transports. ${Et.join(" ")}`,Et):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(y){switch(y){case Ce.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Nt(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Ce.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ct(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Ce.LongPolling:return new ke(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${y}.`)}}_startTransport(y,P){var ee=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=this.features.reconnect?function(){var Ae=(0,K.Z)(function*(it){let St=!1;if(ee.features.reconnect){try{ee.features.disconnected(),yield ee.transport.connect(y,P),yield ee.features.resend()}catch{St=!0}St&&ee._stopConnection(it)}else ee._stopConnection(it)});return function(it){return Ae.apply(this,arguments)}}():Ae=>this._stopConnection(Ae),this.transport.connect(y,P)}_resolveTransportOrError(y,P,ee,Ae){const it=Ce[y.transport];if(null==it)return this._logger.log(X.Debug,`Skipping transport '${y.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${y.transport}' because it is not supported by this client.`);if(!function nn(Re,y){return!Re||0!=(y&Re)}(P,it))return this._logger.log(X.Debug,`Skipping transport '${Ce[it]}' because it was disabled by the client.`),new Ve(`'${Ce[it]}' is disabled by the client.`,it);if(!(y.transferFormats.map(Et=>Be[Et]).indexOf(ee)>=0))return this._logger.log(X.Debug,`Skipping transport '${Ce[it]}' because it does not support the requested transfer format '${Be[ee]}'.`),new Error(`'${Ce[it]}' does not support ${Be[ee]}.`);if(it===Ce.WebSockets&&!this._options.WebSocket||it===Ce.ServerSentEvents&&!this._options.EventSource)return this._logger.log(X.Debug,`Skipping transport '${Ce[it]}' because it is not supported in your environment.'`),new be(`'${Ce[it]}' is not supported in your environment.`,it);this._logger.log(X.Debug,`Selecting transport '${Ce[it]}'.`);try{return this.features.reconnect=it===Ce.WebSockets?Ae:void 0,this._constructTransport(it)}catch(Et){return Et}}_isITransport(y){return y&&"object"==typeof y&&"connect"in y}_stopConnection(y){if(this._logger.log(X.Debug,`HttpConnection.stopConnection(${y}) called while in state ${this._connectionState}.`),this.transport=void 0,y=this._stopError||y,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(X.Warning,`Call to HttpConnection.stopConnection(${y}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${y}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),y?this._logger.log(X.Error,`Connection disconnected with error '${y}'.`):this._logger.log(X.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(P=>{this._logger.log(X.Error,`TransportSendQueue.stop() threw error '${P}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(y)}catch(P){this._logger.log(X.Error,`HttpConnection.onclose(${y}) threw error '${P}'.`)}}}else this._logger.log(X.Debug,`Call to HttpConnection.stopConnection(${y}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(y){if(0===y.lastIndexOf("https://",0)||0===y.lastIndexOf("http://",0))return y;if(!q.isBrowser)throw new Error(`Cannot resolve '${y}'.`);const P=window.document.createElement("a");return P.href=y,this._logger.log(X.Information,`Normalizing '${y}' to '${P.href}'.`),P.href}_resolveNegotiateUrl(y){const P=new URL(y);P.pathname.endsWith("/")?P.pathname+="negotiate":P.pathname+="/negotiate";const ee=new URLSearchParams(P.searchParams);return ee.has("negotiateVersion")||ee.append("negotiateVersion",this._negotiateVersion.toString()),ee.has("useStatefulReconnect")?"true"===ee.get("useStatefulReconnect")&&(this._options._useStatefulReconnect=!0):!0===this._options._useStatefulReconnect&&ee.append("useStatefulReconnect","true"),P.search=ee.toString(),P.toString()}}class rn{constructor(y){this._transport=y,this._buffer=[],this._executing=!0,this._sendBufferedData=new Xt,this._transportResult=new Xt,this._sendLoopPromise=this._sendLoop()}send(y){return this._bufferData(y),this._transportResult||(this._transportResult=new Xt),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(y){if(this._buffer.length&&typeof this._buffer[0]!=typeof y)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof y}`);this._buffer.push(y),this._sendBufferedData.resolve()}_sendLoop(){var y=this;return(0,K.Z)(function*(){for(;;){if(yield y._sendBufferedData.promise,!y._executing){y._transportResult&&y._transportResult.reject("Connection stopped.");break}y._sendBufferedData=new Xt;const P=y._transportResult;y._transportResult=void 0;const ee="string"==typeof y._buffer[0]?y._buffer.join(""):rn._concatBuffers(y._buffer);y._buffer.length=0;try{yield y._transport.send(ee),P.resolve()}catch(Ae){P.reject(Ae)}}})()}static _concatBuffers(y){const P=y.map(it=>it.byteLength).reduce((it,St)=>it+St),ee=new Uint8Array(P);let Ae=0;for(const it of y)ee.set(new Uint8Array(it),Ae),Ae+=it.byteLength;return ee.buffer}}class Xt{constructor(){this.promise=new Promise((y,P)=>[this._resolver,this._rejecter]=[y,P])}resolve(){this._resolver()}reject(y){this._rejecter(y)}}class an{static write(y){return`${y}${an.RecordSeparator}`}static parse(y){if(y[y.length-1]!==an.RecordSeparator)throw new Error("Message is incomplete.");const P=y.split(an.RecordSeparator);return P.pop(),P}}an.RecordSeparatorCode=30,an.RecordSeparator=String.fromCharCode(an.RecordSeparatorCode);class Sn{writeHandshakeRequest(y){return an.write(JSON.stringify(y))}parseHandshakeResponse(y){let P,ee;if(ye(y)){const Et=new Uint8Array(y),Pt=Et.indexOf(an.RecordSeparatorCode);if(-1===Pt)throw new Error("Message is incomplete.");const Ht=Pt+1;P=String.fromCharCode.apply(null,Array.prototype.slice.call(Et.slice(0,Ht))),ee=Et.byteLength>Ht?Et.slice(Ht).buffer:null}else{const Et=y,Pt=Et.indexOf(an.RecordSeparator);if(-1===Pt)throw new Error("Message is incomplete.");const Ht=Pt+1;P=Et.substring(0,Ht),ee=Et.length>Ht?Et.substring(Ht):null}const Ae=an.parse(P),it=JSON.parse(Ae[0]);if(it.type)throw new Error("Expected a handshake response from the server.");return[ee,it]}}var zt=function(Re){return Re[Re.Invocation=1]="Invocation",Re[Re.StreamItem=2]="StreamItem",Re[Re.Completion=3]="Completion",Re[Re.StreamInvocation=4]="StreamInvocation",Re[Re.CancelInvocation=5]="CancelInvocation",Re[Re.Ping=6]="Ping",Re[Re.Close=7]="Close",Re[Re.Ack=8]="Ack",Re[Re.Sequence=9]="Sequence",Re}(zt||{});class Vn{constructor(){this.observers=[]}next(y){for(const P of this.observers)P.next(y)}error(y){for(const P of this.observers)P.error&&P.error(y)}complete(){for(const y of this.observers)y.complete&&y.complete()}subscribe(y){return this.observers.push(y),new xt(this,y)}}class xn{constructor(y,P,ee){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=y,this._connection=P,this._bufferSize=ee}_send(y){var P=this;return(0,K.Z)(function*(){const ee=P._protocol.writeMessage(y);let Ae=Promise.resolve();if(P._isInvocationMessage(y)){P._totalMessageCount++;let it=()=>{},St=()=>{};ye(ee)?P._bufferedByteCount+=ee.byteLength:P._bufferedByteCount+=ee.length,P._bufferedByteCount>=P._bufferSize&&(Ae=new Promise((Et,Pt)=>{it=Et,St=Pt})),P._messages.push(new Hn(ee,P._totalMessageCount,it,St))}try{P._reconnectInProgress||(yield P._connection.send(ee))}catch{P._disconnected()}yield Ae})()}_ack(y){let P=-1;for(let ee=0;ee<this._messages.length;ee++){const Ae=this._messages[ee];if(Ae._id<=y.sequenceId)P=ee,ye(Ae._message)?this._bufferedByteCount-=Ae._message.byteLength:this._bufferedByteCount-=Ae._message.length,Ae._resolver();else{if(!(this._bufferedByteCount<this._bufferSize))break;Ae._resolver()}}-1!==P&&(this._messages=this._messages.slice(P+1))}_shouldProcessMessage(y){if(this._waitForSequenceMessage)return y.type===zt.Sequence&&(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(y))return!0;const P=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,P<=this._latestReceivedSequenceId?(P===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=P,this._ackTimer(),!0)}_resetSequence(y){y.sequenceId>this._nextReceivingSequenceId?this._connection.stop(new Error("Sequence ID greater than amount of messages we've received.")):this._nextReceivingSequenceId=y.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}_resend(){var y=this;return(0,K.Z)(function*(){const P=0!==y._messages.length?y._messages[0]._id:y._totalMessageCount+1;yield y._connection.send(y._protocol.writeMessage({type:zt.Sequence,sequenceId:P}));const ee=y._messages;for(const Ae of ee)yield y._connection.send(Ae._message);y._reconnectInProgress=!1})()}_dispose(y){y??(y=new Error("Unable to reconnect to server."));for(const P of this._messages)P._rejector(y)}_isInvocationMessage(y){switch(y.type){case zt.Invocation:case zt.StreamItem:case zt.Completion:case zt.StreamInvocation:case zt.CancelInvocation:return!0;case zt.Close:case zt.Sequence:case zt.Ping:case zt.Ack:return!1}}_ackTimer(){var y=this;void 0===this._ackTimerHandle&&(this._ackTimerHandle=setTimeout((0,K.Z)(function*(){try{y._reconnectInProgress||(yield y._connection.send(y._protocol.writeMessage({type:zt.Ack,sequenceId:y._latestReceivedSequenceId})))}catch{}clearTimeout(y._ackTimerHandle),y._ackTimerHandle=void 0}),1e3))}}class Hn{constructor(y,P,ee,Ae){this._message=y,this._id=P,this._resolver=ee,this._rejector=Ae}}var Ie=function(Re){return Re.Disconnected="Disconnected",Re.Connecting="Connecting",Re.Connected="Connected",Re.Disconnecting="Disconnecting",Re.Reconnecting="Reconnecting",Re}(Ie||{});class pe{static create(y,P,ee,Ae,it,St,Et){return new pe(y,P,ee,Ae,it,St,Et)}constructor(y,P,ee,Ae,it,St,Et){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(X.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Ne.isRequired(y,"connection"),Ne.isRequired(P,"logger"),Ne.isRequired(ee,"protocol"),this.serverTimeoutInMilliseconds=it??3e4,this.keepAliveIntervalInMilliseconds=St??15e3,this._statefulReconnectBufferSize=Et??1e5,this._logger=P,this._protocol=ee,this.connection=y,this._reconnectPolicy=Ae,this._handshakeProtocol=new Sn,this.connection.onreceive=Pt=>this._processIncomingData(Pt),this.connection.onclose=Pt=>this._connectionClosed(Pt),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:zt.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(y){if(this._connectionState!==Ie.Disconnected&&this._connectionState!==Ie.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!y)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=y}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var y=this;return(0,K.Z)(function*(){if(y._connectionState!==Ie.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));y._connectionState=Ie.Connecting,y._logger.log(X.Debug,"Starting HubConnection.");try{yield y._startInternal(),q.isBrowser&&window.document.addEventListener("freeze",y._freezeEventListener),y._connectionState=Ie.Connected,y._connectionStarted=!0,y._logger.log(X.Debug,"HubConnection connected successfully.")}catch(P){return y._connectionState=Ie.Disconnected,y._logger.log(X.Debug,`HubConnection failed to start successfully because of error '${P}'.`),Promise.reject(P)}})()}_startInternal(){var y=this;return(0,K.Z)(function*(){y._stopDuringStartError=void 0,y._receivedHandshakeResponse=!1;const P=new Promise((ee,Ae)=>{y._handshakeResolver=ee,y._handshakeRejecter=Ae});yield y.connection.start(y._protocol.transferFormat);try{let ee=y._protocol.version;y.connection.features.reconnect||(ee=1);const Ae={protocol:y._protocol.name,version:ee};if(y._logger.log(X.Debug,"Sending handshake request."),yield y._sendMessage(y._handshakeProtocol.writeHandshakeRequest(Ae)),y._logger.log(X.Information,`Using HubProtocol '${y._protocol.name}'.`),y._cleanupTimeout(),y._resetTimeoutPeriod(),y._resetKeepAliveInterval(),yield P,y._stopDuringStartError)throw y._stopDuringStartError;!!y.connection.features.reconnect&&(y._messageBuffer=new xn(y._protocol,y.connection,y._statefulReconnectBufferSize),y.connection.features.disconnected=y._messageBuffer._disconnected.bind(y._messageBuffer),y.connection.features.resend=()=>{if(y._messageBuffer)return y._messageBuffer._resend()}),y.connection.features.inherentKeepAlive||(yield y._sendMessage(y._cachedPingMessage))}catch(ee){throw y._logger.log(X.Debug,`Hub handshake failed with error '${ee}' during start(). Stopping HubConnection.`),y._cleanupTimeout(),y._cleanupPingTimer(),yield y.connection.stop(ee),ee}})()}stop(){var y=this;return(0,K.Z)(function*(){const P=y._startPromise;y.connection.features.reconnect=!1,y._stopPromise=y._stopInternal(),yield y._stopPromise;try{yield P}catch{}})()}_stopInternal(y){if(this._connectionState===Ie.Disconnected)return this._logger.log(X.Debug,`Call to HubConnection.stop(${y}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ie.Disconnecting)return this._logger.log(X.Debug,`Call to HttpConnection.stop(${y}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const P=this._connectionState;return this._connectionState=Ie.Disconnecting,this._logger.log(X.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(X.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(P===Ie.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=y||new Q("The connection was stopped before the hub handshake could complete."),this.connection.stop(y))}_sendCloseMessage(){var y=this;return(0,K.Z)(function*(){try{yield y._sendWithProtocol(y._createCloseMessage())}catch{}})()}stream(y,...P){const[ee,Ae]=this._replaceStreamingParams(P),it=this._createStreamInvocation(y,P,Ae);let St;const Et=new Vn;return Et.cancelCallback=()=>{const Pt=this._createCancelInvocation(it.invocationId);return delete this._callbacks[it.invocationId],St.then(()=>this._sendWithProtocol(Pt))},this._callbacks[it.invocationId]=(Pt,Ht)=>{Ht?Et.error(Ht):Pt&&(Pt.type===zt.Completion?Pt.error?Et.error(new Error(Pt.error)):Et.complete():Et.next(Pt.item))},St=this._sendWithProtocol(it).catch(Pt=>{Et.error(Pt),delete this._callbacks[it.invocationId]}),this._launchStreams(ee,St),Et}_sendMessage(y){return this._resetKeepAliveInterval(),this.connection.send(y)}_sendWithProtocol(y){return this._messageBuffer?this._messageBuffer._send(y):this._sendMessage(this._protocol.writeMessage(y))}send(y,...P){const[ee,Ae]=this._replaceStreamingParams(P),it=this._sendWithProtocol(this._createInvocation(y,P,!0,Ae));return this._launchStreams(ee,it),it}invoke(y,...P){const[ee,Ae]=this._replaceStreamingParams(P),it=this._createInvocation(y,P,!1,Ae);return new Promise((Et,Pt)=>{this._callbacks[it.invocationId]=(Yt,cn)=>{cn?Pt(cn):Yt&&(Yt.type===zt.Completion?Yt.error?Pt(new Error(Yt.error)):Et(Yt.result):Pt(new Error(`Unexpected message type: ${Yt.type}`)))};const Ht=this._sendWithProtocol(it).catch(Yt=>{Pt(Yt),delete this._callbacks[it.invocationId]});this._launchStreams(ee,Ht)})}on(y,P){!y||!P||(y=y.toLowerCase(),this._methods[y]||(this._methods[y]=[]),-1===this._methods[y].indexOf(P)&&this._methods[y].push(P))}off(y,P){if(!y)return;y=y.toLowerCase();const ee=this._methods[y];if(ee)if(P){const Ae=ee.indexOf(P);-1!==Ae&&(ee.splice(Ae,1),0===ee.length&&delete this._methods[y])}else delete this._methods[y]}onclose(y){y&&this._closedCallbacks.push(y)}onreconnecting(y){y&&this._reconnectingCallbacks.push(y)}onreconnected(y){y&&this._reconnectedCallbacks.push(y)}_processIncomingData(y){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(y=this._processHandshakeResponse(y),this._receivedHandshakeResponse=!0),y){const P=this._protocol.parseMessages(y,this._logger);for(const ee of P)if(!this._messageBuffer||this._messageBuffer._shouldProcessMessage(ee))switch(ee.type){case zt.Invocation:this._invokeClientMethod(ee).catch(Ae=>{this._logger.log(X.Error,`Invoke client method threw error: ${wn(Ae)}`)});break;case zt.StreamItem:case zt.Completion:{const Ae=this._callbacks[ee.invocationId];if(Ae){ee.type===zt.Completion&&delete this._callbacks[ee.invocationId];try{Ae(ee)}catch(it){this._logger.log(X.Error,`Stream callback threw error: ${wn(it)}`)}}break}case zt.Ping:break;case zt.Close:{this._logger.log(X.Information,"Close message received from server.");const Ae=ee.error?new Error("Server returned an error on close: "+ee.error):void 0;!0===ee.allowReconnect?this.connection.stop(Ae):this._stopPromise=this._stopInternal(Ae);break}case zt.Ack:this._messageBuffer&&this._messageBuffer._ack(ee);break;case zt.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(ee);break;default:this._logger.log(X.Warning,`Invalid message type: ${ee.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(y){let P,ee;try{[ee,P]=this._handshakeProtocol.parseHandshakeResponse(y)}catch(Ae){const it="Error parsing handshake response: "+Ae;this._logger.log(X.Error,it);const St=new Error(it);throw this._handshakeRejecter(St),St}if(P.error){const Ae="Server returned handshake error: "+P.error;this._logger.log(X.Error,Ae);const it=new Error(Ae);throw this._handshakeRejecter(it),it}return this._logger.log(X.Debug,"Server handshake complete."),this._handshakeResolver(),ee}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var y=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let P=this._nextKeepAlive-(new Date).getTime();P<0&&(P=0),this._pingServerHandle=setTimeout((0,K.Z)(function*(){if(y._connectionState===Ie.Connected)try{yield y._sendMessage(y._cachedPingMessage)}catch{y._cleanupPingTimer()}}),P)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(y){var P=this;return(0,K.Z)(function*(){const ee=y.target.toLowerCase(),Ae=P._methods[ee];if(!Ae)return P._logger.log(X.Warning,`No client method with the name '${ee}' found.`),void(y.invocationId&&(P._logger.log(X.Warning,`No result given for '${ee}' method and invocation ID '${y.invocationId}'.`),yield P._sendWithProtocol(P._createCompletionMessage(y.invocationId,"Client didn't provide a result.",null))));const it=Ae.slice(),St=!!y.invocationId;let Et,Pt,Ht;for(const Yt of it)try{const cn=Et;Et=yield Yt.apply(P,y.arguments),St&&Et&&cn&&(P._logger.log(X.Error,`Multiple results provided for '${ee}'. Sending error to server.`),Ht=P._createCompletionMessage(y.invocationId,"Client provided multiple results.",null)),Pt=void 0}catch(cn){Pt=cn,P._logger.log(X.Error,`A callback for the method '${ee}' threw error '${cn}'.`)}Ht?yield P._sendWithProtocol(Ht):St?(Pt?Ht=P._createCompletionMessage(y.invocationId,`${Pt}`,null):void 0!==Et?Ht=P._createCompletionMessage(y.invocationId,null,Et):(P._logger.log(X.Warning,`No result given for '${ee}' method and invocation ID '${y.invocationId}'.`),Ht=P._createCompletionMessage(y.invocationId,"Client didn't provide a result.",null)),yield P._sendWithProtocol(Ht)):Et&&P._logger.log(X.Error,`Result given for '${ee}' method but server is not expecting a result.`)})()}_connectionClosed(y){this._logger.log(X.Debug,`HubConnection.connectionClosed(${y}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||y||new Q("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(y||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ie.Disconnecting?this._completeClose(y):this._connectionState===Ie.Connected&&this._reconnectPolicy?this._reconnect(y):this._connectionState===Ie.Connected&&this._completeClose(y)}_completeClose(y){if(this._connectionStarted){this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(y??new Error("Connection closed.")),this._messageBuffer=void 0),q.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(P=>P.apply(this,[y]))}catch(P){this._logger.log(X.Error,`An onclose callback called with error '${y}' threw error '${P}'.`)}}}_reconnect(y){var P=this;return(0,K.Z)(function*(){const ee=Date.now();let Ae=0,it=void 0!==y?y:new Error("Attempting to reconnect due to a unknown error."),St=P._getNextRetryDelay(Ae++,0,it);if(null===St)return P._logger.log(X.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void P._completeClose(y);if(P._connectionState=Ie.Reconnecting,P._logger.log(X.Information,y?`Connection reconnecting because of error '${y}'.`:"Connection reconnecting."),0!==P._reconnectingCallbacks.length){try{P._reconnectingCallbacks.forEach(Et=>Et.apply(P,[y]))}catch(Et){P._logger.log(X.Error,`An onreconnecting callback called with error '${y}' threw error '${Et}'.`)}if(P._connectionState!==Ie.Reconnecting)return void P._logger.log(X.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==St;){if(P._logger.log(X.Information,`Reconnect attempt number ${Ae} will start in ${St} ms.`),yield new Promise(Et=>{P._reconnectDelayHandle=setTimeout(Et,St)}),P._reconnectDelayHandle=void 0,P._connectionState!==Ie.Reconnecting)return void P._logger.log(X.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield P._startInternal(),P._connectionState=Ie.Connected,P._logger.log(X.Information,"HubConnection reconnected successfully."),0!==P._reconnectedCallbacks.length)try{P._reconnectedCallbacks.forEach(Et=>Et.apply(P,[P.connection.connectionId]))}catch(Et){P._logger.log(X.Error,`An onreconnected callback called with connectionId '${P.connection.connectionId}; threw error '${Et}'.`)}return}catch(Et){if(P._logger.log(X.Information,`Reconnect attempt failed because of error '${Et}'.`),P._connectionState!==Ie.Reconnecting)return P._logger.log(X.Debug,`Connection moved to the '${P._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(P._connectionState===Ie.Disconnecting&&P._completeClose());it=Et instanceof Error?Et:new Error(Et.toString()),St=P._getNextRetryDelay(Ae++,Date.now()-ee,it)}}P._logger.log(X.Information,`Reconnect retries have been exhausted after ${Date.now()-ee} ms and ${Ae} failed attempts. Connection disconnecting.`),P._completeClose()})()}_getNextRetryDelay(y,P,ee){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:P,previousRetryCount:y,retryReason:ee})}catch(Ae){return this._logger.log(X.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${y}, ${P}) threw error '${Ae}'.`),null}}_cancelCallbacksWithError(y){const P=this._callbacks;this._callbacks={},Object.keys(P).forEach(ee=>{const Ae=P[ee];try{Ae(null,y)}catch(it){this._logger.log(X.Error,`Stream 'error' callback called with '${y}' threw error: ${wn(it)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(y,P,ee,Ae){if(ee)return 0!==Ae.length?{arguments:P,streamIds:Ae,target:y,type:zt.Invocation}:{arguments:P,target:y,type:zt.Invocation};{const it=this._invocationId;return this._invocationId++,0!==Ae.length?{arguments:P,invocationId:it.toString(),streamIds:Ae,target:y,type:zt.Invocation}:{arguments:P,invocationId:it.toString(),target:y,type:zt.Invocation}}}_launchStreams(y,P){if(0!==y.length){P||(P=Promise.resolve());for(const ee in y)y[ee].subscribe({complete:()=>{P=P.then(()=>this._sendWithProtocol(this._createCompletionMessage(ee)))},error:Ae=>{let it;it=Ae instanceof Error?Ae.message:Ae&&Ae.toString?Ae.toString():"Unknown error",P=P.then(()=>this._sendWithProtocol(this._createCompletionMessage(ee,it)))},next:Ae=>{P=P.then(()=>this._sendWithProtocol(this._createStreamItemMessage(ee,Ae)))}})}}_replaceStreamingParams(y){const P=[],ee=[];for(let Ae=0;Ae<y.length;Ae++){const it=y[Ae];if(this._isObservable(it)){const St=this._invocationId;this._invocationId++,P[St]=it,ee.push(St.toString()),y.splice(Ae,1)}}return[P,ee]}_isObservable(y){return y&&y.subscribe&&"function"==typeof y.subscribe}_createStreamInvocation(y,P,ee){const Ae=this._invocationId;return this._invocationId++,0!==ee.length?{arguments:P,invocationId:Ae.toString(),streamIds:ee,target:y,type:zt.StreamInvocation}:{arguments:P,invocationId:Ae.toString(),target:y,type:zt.StreamInvocation}}_createCancelInvocation(y){return{invocationId:y,type:zt.CancelInvocation}}_createStreamItemMessage(y,P){return{invocationId:y,item:P,type:zt.StreamItem}}_createCompletionMessage(y,P,ee){return P?{error:P,invocationId:y,type:zt.Completion}:{invocationId:y,result:ee,type:zt.Completion}}_createCloseMessage(){return{type:zt.Close}}}class Te{constructor(){this.name="json",this.version=2,this.transferFormat=Be.Text}parseMessages(y,P){if("string"!=typeof y)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!y)return[];null===P&&(P=Ye.instance);const ee=an.parse(y),Ae=[];for(const it of ee){const St=JSON.parse(it);if("number"!=typeof St.type)throw new Error("Invalid payload.");switch(St.type){case zt.Invocation:this._isInvocationMessage(St);break;case zt.StreamItem:this._isStreamItemMessage(St);break;case zt.Completion:this._isCompletionMessage(St);break;case zt.Ping:case zt.Close:break;case zt.Ack:this._isAckMessage(St);break;case zt.Sequence:this._isSequenceMessage(St);break;default:P.log(X.Information,"Unknown message type '"+St.type+"' ignored.");continue}Ae.push(St)}return Ae}writeMessage(y){return an.write(JSON.stringify(y))}_isInvocationMessage(y){this._assertNotEmptyString(y.target,"Invalid payload for Invocation message."),void 0!==y.invocationId&&this._assertNotEmptyString(y.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(y){if(this._assertNotEmptyString(y.invocationId,"Invalid payload for StreamItem message."),void 0===y.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(y){if(y.result&&y.error)throw new Error("Invalid payload for Completion message.");!y.result&&y.error&&this._assertNotEmptyString(y.error,"Invalid payload for Completion message."),this._assertNotEmptyString(y.invocationId,"Invalid payload for Completion message.")}_isAckMessage(y){if("number"!=typeof y.sequenceId)throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(y){if("number"!=typeof y.sequenceId)throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(y,P){if("string"!=typeof y||""===y)throw new Error(P)}}const Ke={trace:X.Trace,debug:X.Debug,info:X.Information,information:X.Information,warn:X.Warning,warning:X.Warning,error:X.Error,critical:X.Critical,none:X.None};class je{configureLogging(y){if(Ne.isRequired(y,"logging"),function Je(Re){return void 0!==Re.log}(y))this.logger=y;else if("string"==typeof y){const P=function dt(Re){const y=Ke[Re.toLowerCase()];if(typeof y<"u")return y;throw new Error(`Unknown log level: ${Re}`)}(y);this.logger=new Bt(P)}else this.logger=new Bt(y);return this}withUrl(y,P){return Ne.isRequired(y,"url"),Ne.isNotEmpty(y,"url"),this.url=y,this.httpConnectionOptions="object"==typeof P?{...this.httpConnectionOptions,...P}:{...this.httpConnectionOptions,transport:P},this}withHubProtocol(y){return Ne.isRequired(y,"protocol"),this.protocol=y,this}withAutomaticReconnect(y){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=y?Array.isArray(y)?new R(y):y:new R,this}withServerTimeout(y){return Ne.isRequired(y,"milliseconds"),this._serverTimeoutInMilliseconds=y,this}withKeepAliveInterval(y){return Ne.isRequired(y,"milliseconds"),this._keepAliveIntervalInMilliseconds=y,this}withStatefulReconnect(y){return void 0===this.httpConnectionOptions&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=y?.bufferSize,this}build(){const y=this.httpConnectionOptions||{};if(void 0===y.logger&&(y.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const P=new Kt(this.url,y);return pe.create(P,this.logger||Ye.instance,this.protocol||new Te,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}var pt=C(5879);let vt=(()=>{var Re;class y{constructor(){this._migrateNotification=new o.x,this.migrateNotification$=this._migrateNotification.asObservable(),this.socketConnection=(new je).withUrl("/ToolsHub").withAutomaticReconnect().configureLogging(X.Information).build(),this.listenToNotification()}subscribeGroup(ee){this.socketConnection.state===Ie.Connected?this.invoke(ee):this.socketConnection.start().then(()=>{this.invoke(ee)})}invoke(ee){this.socketConnection.invoke("SubscribeGroup",{CurrentID:ee,PreviousID:this.lastGroupID}).then(()=>{console.log(`Successfully subscribed to group: ${ee}`),this.lastGroupID=ee}).catch(it=>{console.error(`Failed to subscribe to group: ${ee}`)})}listenToNotification(){this.socketConnection.on("Notification",ee=>{this._migrateNotification.next(ee)})}}return(Re=y).\u0275fac=function(ee){return new(ee||Re)},Re.\u0275prov=pt.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),y})()},3102:(wt,Pe,C)=>{C.d(Pe,{n:()=>o});var o=function(l){return l.Success="Success",l.Info="Info",l.Warning="Warning",l.Error="Error",l}(o||{})},6493:(wt,Pe,C)=>{C.d(Pe,{g:()=>o});let o=(()=>{var R;class K{static StringFormat(W,...re){for(let ue=0;ue<re.length;ue++)W=W.replace(`{${ue}}`,re[ue]);return W}static parseJwt(W){var ue=W.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),ie=decodeURIComponent(atob(ue).split("").map(function(V){return"%"+("00"+V.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(ie)}static IsNotEmpty(W){return""!=W&&W!=K.GuidEmpty&&null!=W&&null!=W}static IsEmpty(W){return""==W||null==W||null==W||W==K.GuidEmpty}static FilterByID(W,re){try{const ue=W.filter(ie=>ie.ID==re);if(ue.length>0)return ue[0]}catch{console.log("error filter")}return null}static DateOnly(W){return W?new Date(new Date(W).toDateString()):new Date((new Date).toDateString())}static GenerateYears(W,re,ue){var ie=-1;(null==re||null==re)&&(re=11),(null==ue||null==ue||!ue)&&(ie=1);for(var V=[],Q=0;Q<re;Q++)V.push(W+Q*ie);return V}static formatTitleFromDate(W,re){let ue=null;const ie=new Date(W),V=new Date(re);return ie.getDate()!=V.getDate()&&(ue="dd"),ie.getMonth()!=V.getMonth()&&(ue="dd MMM"),ie.getFullYear()!=V.getFullYear()&&(ue="dd MMM yyyy"),ue}}return(R=K).GuidEmpty="00000000-0000-0000-0000-000000000000",R.DecimalMinValue="-7.922816251426434e+28",R.InputLockTimeSpan=500,R.MinDate="0001-01-01T00:00:00",R.MinTime="00:00:00",R.Month=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}],K})()},4843:(wt,Pe,C)=>{C.d(Pe,{O:()=>l});var o=C(3102);class l{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=o.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}}},7238:(wt,Pe,C)=>{C.d(Pe,{M:()=>Ye,d:()=>ut});var o=C(5879),l=C(6814),R=C(4843),K=C(3102);function Y(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"div",8),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw();return o.KtG(ye.onBack.emit())}),o.TgZ(1,"a",9),o._UZ(2,"i",10),o.qZA()()}}function W(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"div")(1,"a",11),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw();return o.KtG(ye.onCancel.emit())}),o._UZ(2,"i",12),o.qZA()()}}function re(Ne,q){1&Ne&&o.Hsn(0,2,["*ngIf","more"])}function ue(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"a",17),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.more=!ye.more)}),o._uU(1,"More"),o.qZA()}}const ie=function(Ne){return{"me-6":Ne}};function V(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"a",18),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.onCancel.emit())}),o._uU(1),o.qZA()}if(2&Ne){const me=o.oxw(2);o.Q6J("ngClass",o.VKq(2,ie,me.config.hideOk)),o.xp6(1),o.hij(" ",me.config.cancelText?me.config.cancelText:"Cancel","")}}function Q(Ne,q){if(1&Ne){const me=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.onOk.emit())})("keyup.F2",function(){o.CHM(me);const ye=o.oxw(2);return o.KtG(ye.onOk.emit())}),o.qZA()}if(2&Ne){const me=o.oxw(2);o.Q6J("disabled",!me.config.validated||!me.dynamicValidated)("innerHTML",me.config.okText?me.config.okText:"Ok (F2)",o.oJD)}}function be(Ne,q){if(1&Ne&&(o.TgZ(0,"mat-dialog-actions",13),o.YNc(1,ue,2,0,"a",14),o.Hsn(2,3),o.YNc(3,V,2,4,"a",15),o.YNc(4,Q,1,2,"button",16),o.qZA()),2&Ne){const me=o.oxw();o.xp6(1),o.Q6J("ngIf",me.config.showMoreButton),o.xp6(2),o.Q6J("ngIf",!me.config.hideCancel),o.xp6(1),o.Q6J("ngIf",!me.config.hideOk)}}const Ve=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],He=function(Ne,q){return{bodyScrollable:Ne,hideScrollbar:q}},tt=function(Ne){return{"mx-auto":Ne}},$e=function(Ne,q){return{"show-footer":Ne,"no-padding":q}},X=["header","content","more-content","footer"];let Ye=(()=>{var Ne;class q{constructor(){this.dynamicValidated=!0,this.onOk=new o.vpe,this.onCancel=new o.vpe,this.onClose=new o.vpe,this.onBack=new o.vpe,this.term="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new R.O),this.config.headerType){case K.n.Success:this.background="bg-success";break;case K.n.Warning:case K.n.Info:this.background="bg-warning";break;case K.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(ve){this.config.disableKeyup||("F2"==ve.code&&this.onOk.emit("F2"),("Enter"==ve.code||"NumpadEnter"==ve.code)&&this.onOk.emit("Enter"))}}return(Ne=q).\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275cmp=o.Xpm({type:Ne,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:X,decls:12,vars:21,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",3,"ngClass"],[1,"fw-normal"],[4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],["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,"fas","fa-times","fa-lg","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"ngClass","click",4,"ngIf"],["class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"ngClass","click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"disabled","innerHTML","click","keyup.F2"]],template:function(ve,ye){1&ve&&(o.F$t(Ve),o.TgZ(0,"div",0),o.NdJ("keyup",function(Qe){return ye.onKeyup(Qe)}),o.TgZ(1,"div",1),o.YNc(2,Y,3,0,"div",2),o.TgZ(3,"div",3)(4,"h4",4),o._uU(5),o.qZA(),o.Hsn(6),o.qZA(),o.YNc(7,W,3,0,"div",5),o.qZA(),o.TgZ(8,"mat-dialog-content",6),o.Hsn(9,1),o.YNc(10,re,1,0,"ng-content",5),o.qZA(),o.YNc(11,be,5,3,"mat-dialog-actions",7),o.qZA()),2&ve&&(o.Udp("width",ye.config.customWidth),o.Q6J("ngClass",o.WLB(13,He,ye.config.bodyScrollable,ye.config.hideScrollbar)),o.xp6(1),o.Gre("d-flex w-100 justify-content-between modal-header position-relative ",ye.background,""),o.xp6(1),o.Q6J("ngIf",ye.config.eMoney),o.xp6(1),o.Q6J("ngClass",o.VKq(16,tt,ye.config.eMoney)),o.xp6(2),o.Oqu(ye.config.title),o.xp6(2),o.Q6J("ngIf",!ye.config.hideClose),o.xp6(1),o.Q6J("ngClass",o.WLB(18,$e,!ye.config.hideFooter,ye.config.noPadding)),o.xp6(2),o.Q6J("ngIf",ye.more),o.xp6(1),o.Q6J("ngIf",!ye.config.hideFooter))},dependencies:[l.mk,l.O5],styles:[".mat-mdc-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-mdc-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-mdc-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}@media (max-width: 576px){ .dialog-filter .modal-material, .column-toggle .modal-material{width:100%!important} .dialog-filter mat-dialog-actions, .column-toggle mat-dialog-actions{position:sticky;bottom:0;background:white} .dialog-filter .modal-material.d-flex.align-items-start.flex-column.position-relative.maxHeight.bodyScrollable.maxHeight.bodyScrollable .modal-body, .column-toggle .modal-material.d-flex.align-items-start.flex-column.position-relative.maxHeight.bodyScrollable.maxHeight.bodyScrollable .modal-body{max-height:100%!important;overflow-y:auto}}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:60vh;overflow-y:auto}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:60vh;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]}),q})(),ut=(()=>{var Ne;class q{}return(Ne=q).\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=o.oAB({type:Ne}),Ne.\u0275inj=o.cJS({imports:[l.ez]}),q})()},9735:(wt,Pe,C)=>{var o=C(6593),l=C(5879),R=C(8184);function K(p){this.message=p}(K.prototype=new Error).name="InvalidCharacterError";var Y=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(p){var a=String(p).replace(/=+$/,"");if(a.length%4==1)throw new K("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,h,E=0,F=0,ge="";h=a.charAt(F++);~h&&(c=E%4?64*c+h:h,E++%4)?ge+=String.fromCharCode(255&c>>(-2*E&6)):0)h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(h);return ge};function re(p){this.message=p}(re.prototype=new Error).name="InvalidTokenError";var V=C(6493),Q=C(3106),be=C(2459),Ve=C(7398),He=C(4664),tt=C(9397),$e=C(8017),X=C(2425),Ye=C(4835),ut=C(8645),Ne=C(2096),q=C(5592),me=C(3019),ve=C(3093),ye=C(7081),rt=C(1374),Qe=C(4674);function ft(p,a){return(0,Qe.m)(a)?(0,He.w)(()=>p,a):(0,He.w)(()=>p)}var xt=C(5137),Bt=C(2181),Rt=C(8186),Qt=C(6304),qt=C(6814);C(3182);var Xt=C(5861),an=C(534),Sn=C(4537),zt=C(9058),Vn=C(7879);const xn=new Map,Hn={activated:!1,tokenObservers:[]},Un={initialized:!1,enabled:!1};function ze(p){return xn.get(p)||Object.assign({},Hn)}function Ie(){return Un}const pe="https://content-firebaseappcheck.googleapis.com/v1",Ke="exchangeDebugToken",dt={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4};class Je{constructor(a,c,h,E,F){if(this.operation=a,this.retryPolicy=c,this.getWaitDuration=h,this.lowerBound=E,this.upperBound=F,this.pending=null,this.nextErrorWaitInterval=E,E>F)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(a){var c=this;return(0,Xt.Z)(function*(){c.stop();try{c.pending=new zt.BH,yield function pt(p){return new Promise(a=>{setTimeout(a,p)})}(c.getNextRun(a)),c.pending.resolve(),yield c.pending.promise,c.pending=new zt.BH,yield c.operation(),c.pending.resolve(),yield c.pending.promise,c.process(!0).catch(()=>{})}catch(h){c.retryPolicy(h)?c.process(!1).catch(()=>{}):c.stop()}})()}getNextRun(a){if(a)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{const c=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),c}}}const Re=new zt.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 P(p){if(!ze(p).activated)throw Re.create("use-before-activation",{appName:p.name})}function it(p,a){return St.apply(this,arguments)}function St(){return(St=(0,Xt.Z)(function*({url:p,body:a},c){const h={"Content-Type":"application/json"},E=c.getImmediate({optional:!0});if(E){const Ft=yield E.getHeartbeatsHeader();Ft&&(h["X-Firebase-Client"]=Ft)}const F={method:"POST",body:JSON.stringify(a),headers:h};let ge,we;try{ge=yield fetch(p,F)}catch(Ft){throw Re.create("fetch-network-error",{originalErrorMessage:Ft?.message})}if(200!==ge.status)throw Re.create("fetch-status-error",{httpStatus:ge.status});try{we=yield ge.json()}catch(Ft){throw Re.create("fetch-parse-error",{originalErrorMessage:Ft?.message})}const et=we.ttl.match(/^([\d.]+)(s)$/);if(!et||!et[2]||isNaN(Number(et[1])))throw Re.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${we.ttl}`});const gt=1e3*Number(et[1]),Wt=Date.now();return{token:we.token,expireTimeMillis:Wt+gt,issuedAtTimeMillis:Wt}})).apply(this,arguments)}function Ht(p,a){const{projectId:c,appId:h,apiKey:E}=p.options;return{url:`${pe}/projects/${c}/apps/${h}:${Ke}?key=${E}`,body:{debug_token:a}}}const Yt="firebase-app-check-database",cn=1,Oe="firebase-app-check-store";let U=null;function xe(){return(xe=(0,Xt.Z)(function*(p,a){const h=(yield function B(){return U||(U=new Promise((p,a)=>{try{const c=indexedDB.open(Yt,cn);c.onsuccess=h=>{p(h.target.result)},c.onerror=h=>{var E;a(Re.create("storage-open",{originalErrorMessage:null===(E=h.target.error)||void 0===E?void 0:E.message}))},c.onupgradeneeded=h=>{0===h.oldVersion&&h.target.result.createObjectStore(Oe,{keyPath:"compositeKey"})}}catch(c){a(Re.create("storage-open",{originalErrorMessage:c?.message}))}}),U)}()).transaction(Oe,"readwrite"),F=h.objectStore(Oe).put({compositeKey:p,value:a});return new Promise((ge,we)=>{F.onsuccess=et=>{ge()},h.onerror=et=>{var gt;we(Re.create("storage-set",{originalErrorMessage:null===(gt=et.target.error)||void 0===gt?void 0:gt.message}))}})})).apply(this,arguments)}const de=new Vn.Yd("@firebase/app-check");function le(p,a){return(0,zt.hl)()?function H(p,a){return function J(p,a){return xe.apply(this,arguments)}(function at(p){return`${p.options.appId}-${p.name}`}(p),a)}(p,a).catch(c=>{de.warn(`Failed to write token to IndexedDB. Error: ${c}`)}):Promise.resolve()}function bt(){return Ie().enabled}function ht(){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,Xt.Z)(function*(){const p=Ie();if(p.enabled&&p.token)return p.token.promise;throw Error("\n Can't get debug token in production mode.\n ")})).apply(this,arguments)}const Pn={error:"UNKNOWN_ERROR"};function $n(p){return zt.US.encodeString(JSON.stringify(p),!1)}function Nn(p){return ir.apply(this,arguments)}function ir(){return(ir=(0,Xt.Z)(function*(p,a=!1){const c=p.app;P(c);const h=ze(c);let F,E=h.token;if(E&&!qn(E)&&(h.token=void 0,E=void 0),!E){const et=yield h.cachedTokenPromise;et&&(qn(et)?E=et:yield le(c,void 0))}if(!a&&E&&qn(E))return{token:E.token};let we,ge=!1;if(bt()){h.exchangeTokenPromise||(h.exchangeTokenPromise=it(Ht(c,yield ht()),p.heartbeatServiceProvider).finally(()=>{h.exchangeTokenPromise=void 0}),ge=!0);const et=yield h.exchangeTokenPromise;return yield le(c,et),h.token=et,{token:et.token}}try{h.exchangeTokenPromise||(h.exchangeTokenPromise=h.provider.getToken().finally(()=>{h.exchangeTokenPromise=void 0}),ge=!0),E=yield ze(c).exchangeTokenPromise}catch(et){"appCheck/throttled"===et.code?de.warn(et.message):de.error(et),F=et}return E?F?we=qn(E)?{token:E.token,internalError:F}:Ii(F):(we={token:E.token},h.token=E,yield le(c,E)):we=Ii(F),ge&&function Ln(p,a){const c=ze(p).tokenObservers;for(const h of c)try{"EXTERNAL"===h.type&&null!=a.error?h.error(a.error):h.next(a)}catch{}}(c,we),we})).apply(this,arguments)}function yr(p){return zr.apply(this,arguments)}function zr(){return(zr=(0,Xt.Z)(function*(p){const a=p.app;P(a);const{provider:c}=ze(a);if(bt()){const h=yield ht(),{token:E}=yield it(Ht(a,h),p.heartbeatServiceProvider);return{token:E}}{const{token:h}=yield c.getToken();return{token:h}}})).apply(this,arguments)}function Zn(p,a){const c=ze(p),h=c.tokenObservers.filter(E=>E.next!==a);0===h.length&&c.tokenRefresher&&c.tokenRefresher.isRunning()&&c.tokenRefresher.stop(),c.tokenObservers=h}function Or(p){const{app:a}=p,c=ze(a);let h=c.tokenRefresher;h||(h=function ti(p){const{app:a}=p;return new Je((0,Xt.Z)(function*(){let h;if(h=ze(a).token?yield Nn(p,!0):yield Nn(p),h.error)throw h.error;if(h.internalError)throw h.internalError}),()=>!0,()=>{const c=ze(a);if(c.token){let h=c.token.issuedAtTimeMillis+.5*(c.token.expireTimeMillis-c.token.issuedAtTimeMillis)+3e5;return h=Math.min(h,c.token.expireTimeMillis-3e5),Math.max(0,h-Date.now())}return 0},dt.RETRIAL_MIN_WAIT,dt.RETRIAL_MAX_WAIT)}(p),c.tokenRefresher=h),!h.isRunning()&&c.isTokenAutoRefreshEnabled&&h.start()}function qn(p){return p.expireTimeMillis-Date.now()>0}function Ii(p){return{token:$n(Pn),error:p}}class dr{constructor(a,c){this.app=a,this.heartbeatServiceProvider=c}_delete(){const{tokenObservers:a}=ze(this.app);for(const c of a)Zn(this.app,c.next);return Promise.resolve()}}const Fi="app-check-internal";!function Yi(){(0,an._registerComponent)(new Sn.wA("app-check",p=>function ui(p,a){return new dr(p,a)}(p.getProvider("app").getImmediate(),p.getProvider("heartbeat")),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((p,a,c)=>{p.getProvider(Fi).initialize()})),(0,an._registerComponent)(new Sn.wA(Fi,p=>function Gr(p){return{getToken:a=>Nn(p,a),getLimitedUseToken:()=>yr(p),addTokenListener:a=>function Mn(p,a,c,h){const{app:E}=p,F=ze(E);if(F.tokenObservers=[...F.tokenObservers,{next:c,error:h,type:a}],F.token&&qn(F.token)){const we=F.token;Promise.resolve().then(()=>{c({token:we.token}),Or(p)}).catch(()=>{})}F.cachedTokenPromise.then(()=>Or(p))}(p,"INTERNAL",a),removeTokenListener:a=>Zn(p.app,a)}}(p.getProvider("app-check").getImmediate()),"PUBLIC").setInstantiationMode("EXPLICIT")),(0,an.registerVersion)("@firebase/app-check","0.8.0")}();class Xn{constructor(){return(0,Rt.vb)("app-check")}}typeof window<"u"&&window;var fi=C(7142);const Wr=new l.OlP("angularfire2.auth.use-emulator"),Io=new l.OlP("angularfire2.auth.settings"),Ao=new l.OlP("angularfire2.auth.tenant-id"),Qi=new l.OlP("angularfire2.auth.langugage-code"),pi=new l.OlP("angularfire2.auth.use-device-language"),Xi=new l.OlP("angularfire.auth.persistence");let En=(()=>{class p{constructor(c,h,E,F,ge,we,et,gt,Wt,Ft,Fn,On){const ln=new ut.x,pn=(0,Ne.of)(void 0).pipe((0,ve.Q)(ge.outsideAngular),(0,He.w)(()=>F.runOutsideAngular(()=>C.e(967).then(C.bind(C,5967)))),(0,Ve.U)(()=>(0,Qt.on)(c,F,h)),(0,Ve.U)(rr=>((p,a,c,h,E,F,ge,we)=>(0,Qt.cc)(`${p.name}.auth`,"AngularFireAuth",p.name,()=>{const et=a.runOutsideAngular(()=>p.auth());if(c&&et.useEmulator(...c),h&&(et.tenantId=h),et.languageCode=E,F&&et.useDeviceLanguage(),ge)for(const[gt,Wt]of Object.entries(ge))et.settings[gt]=Wt;return we&&et.setPersistence(we),et},[c,h,E,F,ge,we]))(rr,F,we,gt,Wt,Ft,et,Fn)),(0,ye.d)({bufferSize:1,refCount:!1}));if((0,qt.PM)(E))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=(0,Ne.of)(null);else{pn.pipe((0,rt.P)()).subscribe();const Ir=pn.pipe((0,He.w)(Wn=>Wn.getRedirectResult().then(Wi=>Wi,()=>null)),Rt.iC,(0,ye.d)({bufferSize:1,refCount:!1})),Lr=pn.pipe((0,He.w)(Wn=>new q.y(Wi=>({unsubscribe:F.runOutsideAngular(()=>Wn.onAuthStateChanged(yi=>Wi.next(yi),yi=>Wi.error(yi),()=>Wi.complete()))})))),vi=pn.pipe((0,He.w)(Wn=>new q.y(Wi=>({unsubscribe:F.runOutsideAngular(()=>Wn.onIdTokenChanged(yi=>Wi.next(yi),yi=>Wi.error(yi),()=>Wi.complete()))}))));this.authState=Ir.pipe(ft(Lr),(0,xt.R)(ge.outsideAngular),(0,ve.Q)(ge.insideAngular)),this.user=Ir.pipe(ft(vi),(0,xt.R)(ge.outsideAngular),(0,ve.Q)(ge.insideAngular)),this.idToken=this.user.pipe((0,He.w)(Wn=>Wn?(0,be.D)(Wn.getIdToken()):(0,Ne.of)(null))),this.idTokenResult=this.user.pipe((0,He.w)(Wn=>Wn?(0,be.D)(Wn.getIdTokenResult()):(0,Ne.of)(null))),this.credential=(0,me.T)(Ir,ln,this.authState.pipe((0,Bt.h)(Wn=>!Wn))).pipe((0,Ve.U)(Wn=>Wn?.user?Wn:null),(0,xt.R)(ge.outsideAngular),(0,ve.Q)(ge.insideAngular))}return(0,Qt.pX)(this,pn,F,{spy:{apply:(rr,Ir,Lr)=>{(rr.startsWith("signIn")||rr.startsWith("createUser"))&&Lr.then(vi=>ln.next(vi))}}})}}return p.\u0275fac=function(c){return new(c||p)(l.LFG(Qt.Dh),l.LFG(Qt.xv,8),l.LFG(l.Lbi),l.LFG(l.R0b),l.LFG(Rt.HU),l.LFG(Wr,8),l.LFG(Io,8),l.LFG(Ao,8),l.LFG(Qi,8),l.LFG(pi,8),l.LFG(Xi,8),l.LFG(Xn,8))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"any"}),p})(),Os=(()=>{class p{constructor(){fi.Z.registerVersion("angularfire",Rt.q4.full,"auth-compat")}}return p.\u0275fac=function(c){return new(c||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({providers:[En]}),p})();var Ko=C(5123),Cr=C(6223);const er=["domainAutoFocus"],Bi=["passAutoFocus"];function ri(p,a){if(1&p){const c=l.EpF();l.ynx(0),l.TgZ(1,"div",18)(2,"div",19)(3,"form")(4,"div",20)(5,"h2",21),l._uU(6,"Sign in"),l.qZA(),l.TgZ(7,"div",22)(8,"div",23)(9,"div",24)(10,"span",25),l._UZ(11,"i",26),l.qZA(),l.TgZ(12,"input",27,28),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.posDomain=E)}),l.qZA()()(),l.TgZ(14,"select",29),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.domain=E)}),l.TgZ(15,"option",30),l._uU(16,".dealpos.co.id"),l.qZA(),l.TgZ(17,"option",31),l._uU(18,".dealpos.net"),l.qZA(),l.TgZ(19,"option",32),l._uU(20,".dealpos.com"),l.qZA(),l.TgZ(21,"option",33),l._uU(22,".dealpos.app"),l.qZA()()()(),l.TgZ(23,"div",34)(24,"button",35),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.onNextState())}),l._uU(25," Next "),l.qZA()()()()(),l.BQk()}if(2&p){const c=l.oxw();l.xp6(12),l.Q6J("ngModel",c.posDomain),l.xp6(2),l.Q6J("ngModel",c.domain)}}function Vi(p,a){1&p&&(l.TgZ(0,"p"),l._uU(1," Username is required "),l.qZA())}function Er(p,a){if(1&p&&(l.TgZ(0,"div",59),l.YNc(1,Vi,2,0,"p",60),l.qZA()),2&p){l.oxw();const c=l.MAs(13);l.xp6(1),l.Q6J("ngIf",c.errors.required)}}const xa=function(p,a){return{"fa-eye":p,"fa-eye-slash":a}};function Rr(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"i",61),l.NdJ("click",function(){l.CHM(c);const E=l.oxw(2);return l.KtG(E.hideShowPassword())}),l.qZA()}if(2&p){const c=l.oxw(2);l.Q6J("ngClass",l.WLB(1,xa,"eye-off"==c.passwordIcon,"eye"==c.passwordIcon))}}function fr(p,a){1&p&&(l.TgZ(0,"p"),l._uU(1," Password is required "),l.qZA())}function Yo(p,a){if(1&p&&(l.TgZ(0,"div",59),l.YNc(1,fr,2,0,"p",60),l.qZA()),2&p){l.oxw();const c=l.MAs(19);l.xp6(1),l.Q6J("ngIf",c.errors.required)}}function Ji(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"div",18)(1,"div",19)(2,"div",36)(3,"h2",21),l._uU(4,"Sign in"),l.qZA(),l.TgZ(5,"div",37),l._uU(6," to "),l.TgZ(7,"h6",38),l._uU(8),l.qZA(),l.TgZ(9,"i",39),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.onEditDomain())}),l.qZA()()(),l.TgZ(10,"form",40)(11,"div",41)(12,"input",42,43),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.username=E)}),l.qZA(),l.TgZ(14,"label",44),l._uU(15,"Username"),l.qZA(),l.YNc(16,Er,2,1,"div",45),l.qZA(),l.TgZ(17,"div",46)(18,"input",47,48),l.NdJ("ngModelChange",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.password=E)}),l.qZA(),l.TgZ(20,"label",49),l._uU(21,"Password"),l.qZA(),l.YNc(22,Rr,1,4,"i",50),l.YNc(23,Yo,2,1,"div",45),l.qZA(),l.TgZ(24,"div",51)(25,"a",52),l._uU(26,"Forgot Password?"),l.qZA()(),l.TgZ(27,"div",53)(28,"button",54),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.onLogin())}),l._uU(29," Log in "),l.qZA()(),l.TgZ(30,"div",55),l._UZ(31,"hr"),l.TgZ(32,"span",56),l._uU(33,"or"),l.qZA(),l._UZ(34,"hr"),l.qZA(),l.TgZ(35,"div")(36,"button",57),l.NdJ("click",function(E){l.CHM(c);const F=l.oxw();return l.KtG(F.onLoginByGoogle(E))}),l._UZ(37,"i",58),l._uU(38," Sign In with Google "),l.qZA()()()()()}if(2&p){const c=l.MAs(13),h=l.MAs(19),E=l.oxw();l.xp6(8),l.AsE(" (",E.posDomain,"",E.domain,") "),l.xp6(4),l.Q6J("ngModel",E.username),l.xp6(4),l.Q6J("ngIf",c.invalid&&(c.dirty||c.touched)),l.xp6(2),l.Q6J("type",E.passwordType)("ngModel",E.password),l.xp6(4),l.Q6J("ngIf",""!=E.password&&"edge"!=E.browser),l.xp6(1),l.Q6J("ngIf",h.invalid&&(h.dirty||h.touched)),l.xp6(2),l.Q6J("href","https://"+E.posDomain+E.domain+"/ForgotPassword",l.LSH)}}const kr=[{path:"",component:(()=>{var p;class a{constructor(h,E,F,ge,we,et,gt,Wt){this._httpService=h,this.toastr=E,this.auth=F,this.elementRef=ge,this.cdr=we,this.afAuth=et,this.router=gt,this.notificationService=Wt,this.loginState="FORM_DOMAIN",this.domain=".dealpos.co.id",this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#edefff"}ngAfterViewInit(){this.getLocalStorage()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}getLocalStorage(){let h=this.auth.isLocalStorageExist();this.setAutoFocusDomain(),this.username=localStorage.getItem("username"),this.posDomain=localStorage.getItem("posdomain").split(".dealpos")[0];const E=localStorage.getItem("posdomain").split(".dealpos")[1];this.domain=".co.id"==E?".dealpos.co.id":".net"==E?".dealpos.net":".dealpos.com",h&&(this.setAutoFocusPass(),this.cdr.detectChanges(),this.username=this.auth.getUsernameLocalStorage(),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"}onLogin(){var h={Username:this.username,Password:this.password,Host:this.posDomain+(this.posDomain.includes("localhost")?"":this.domain)};this._httpService.post("api/Token/Login",JSON.stringify(h)).toPromise().then(E=>{null==E.access_token&&null==E.access_token||(localStorage.setItem("Domain",this.posDomain+(this.posDomain.includes("localhost")?"":this.domain)),localStorage.setItem("Token",E.access_token),"Tools"==function ue(p,a){if("string"!=typeof p)throw new re("Invalid token specified");var c=!0===(a=a||{}).header?0:1;try{return JSON.parse(function W(p){var a=p.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(Y(a).replace(/(.)/g,function(h,E){var F=E.charCodeAt(0).toString(16).toUpperCase();return F.length<2&&(F="0"+F),"%"+F}))}catch{return Y(a)}}(p.split(".")[c]))}catch(h){throw new re("Invalid token specified: "+h.message)}}(E.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"].filter(et=>"Tools"==et)?(this.saveToLocalStorage(),this.notificationService.subscribeGroup(),this.auth.login("/menu/product")):this.toastr.error("Please check your role","Error"))})}saveToLocalStorage(){this.auth.setLocalStorage(this.posDomain+this.domain,this.username)}onNextState(){V.g.IsEmpty(this.posDomain)?this.toastr.warning("Account Domain is required","Warning"):this.loginState="FORM_AUTH"}onEditDomain(){this.loginState="FORM_DOMAIN"}onLoginByGoogle(h){var E=this.posDomain+(this.posDomain.includes("localhost")?"":this.domain);h.preventDefault();const F=new Q.Z.auth.GoogleAuthProvider;F.setCustomParameters({prompt:"select_account"}),(0,be.D)(this.afAuth.signInWithPopup(F)).pipe((0,Ve.U)(we=>we.credential),(0,Ve.U)(we=>we.idToken),(0,He.w)(we=>this._httpService.post("api/Token/LoginWithSocialProvider",JSON.stringify({IDToken:we,Host:E}))),(0,tt.b)(we=>{localStorage.setItem("Token",we.Token),this.notificationService.subscribeGroup(),this.router.navigate(["/menu/product/existing"])})).subscribe()}}return(p=a).\u0275fac=function(h){return new(h||p)(l.Y36($e.O),l.Y36(X._W),l.Y36(Ye.$),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(En),l.Y36(R.F0),l.Y36(Ko._))},p.\u0275cmp=l.Xpm({type:p,selectors:[["app-login"]],viewQuery:function(h,E){if(1&h&&(l.Gf(er,5),l.Gf(Bi,5)),2&h){let F;l.iGM(F=l.CRH())&&(E.domainElementRef=F.first),l.iGM(F=l.CRH())&&(E.passElementRef=F.first)}},decls:30,vars:7,consts:[[1,"container"],[1,"row","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["src","https://res.cloudinary.com/pos/image/upload/w_200/v1614247725/Apps/Login/tools-dealpos-app.png","alt","integration-image",1,"img-fluid",3,"width"],[1,"col-12","col-md-5","order-first","order-md-last","mt-12"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-8","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",3,"width","height"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-8","font-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,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center","mt-6"],[1,"mt-7","w-75","rounded-end-0"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0",2,"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",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end","mt-3"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(h,E){if(1&h&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),l._uU(4," DealPOS - Tools "),l.qZA(),l._UZ(5,"img",4),l.qZA(),l.TgZ(6,"div",5)(7,"h1",6),l._uU(8," DealPOS - Tools "),l.qZA(),l.YNc(9,ri,26,2,"ng-container",7),l.YNc(10,Ji,39,9,"ng-template",null,8,l.W1O),l.qZA(),l.TgZ(12,"div",9)(13,"p",10),l._uU(14,"Powered by :"),l.qZA(),l.TgZ(15,"a",11),l._UZ(16,"img",12),l.qZA(),l._UZ(17,"br"),l.TgZ(18,"a",13),l._uU(19,"Version 2.6.2"),l.qZA()()()(),l.TgZ(20,"footer",14)(21,"div",15)(22,"div",16)(23,"p",10),l._uU(24,"Powered by :"),l.qZA(),l.TgZ(25,"a",11),l._UZ(26,"img",12),l.qZA()(),l.TgZ(27,"div",17)(28,"a",13),l._uU(29,"Version 2.6.2"),l.qZA()()()()),2&h){const F=l.MAs(11);l.xp6(5),l.Q6J("width",250),l.xp6(4),l.Q6J("ngIf","FORM_DOMAIN"==E.loginState)("ngIfElse",F),l.xp6(7),l.Q6J("width",130)("height",73),l.xp6(10),l.Q6J("width",130)("height",73)}},dependencies:[qt.mk,qt.O5,Cr._Y,Cr.YN,Cr.Kr,Cr.Fj,Cr.EJ,Cr.JJ,Cr.JL,Cr.Q7,Cr.On,Cr.F],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.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}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}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}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}"]}),a})(),pathMatch:"full"},{path:"menu",loadChildren:()=>C.e(818).then(C.bind(C,7818)).then(p=>p.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let qo=(()=>{var p;class a{}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({imports:[R.Bz.forRoot(kr,{}),R.Bz]}),a})();var Qo=C(7328);function Oo(p,a){return(c,h)=>!p.call(a,c,h)}var xo=C(4829),Xo=C(9080),x=C(4716),T=C(9360),te=C(2420),k=C(8251);function ae(p){return(0,T.e)((a,c)=>{let h=!1,E=null,F=null;const ge=()=>{if(F?.unsubscribe(),F=null,h){h=!1;const we=E;E=null,c.next(we)}};a.subscribe((0,k.x)(c,we=>{F?.unsubscribe(),h=!0,E=we,F=(0,k.x)(c,ge,te.Z),(0,xo.Xf)(p(we)).subscribe(F)},()=>{ge(),c.complete()},void 0,()=>{E=F=null}))})}var At=C(3997),_n=C(9862);function Nr(p,a){1&p&&l.GkF(0)}function Xr(p,a){if(1&p&&l._UZ(0,"sk-cube-grid",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function co(p,a){if(1&p&&l._UZ(0,"sk-chasing-dots",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function Di(p,a){if(1&p&&l._UZ(0,"sk-double-bounce",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function nl(p,a){if(1&p&&l._UZ(0,"sk-rotating-plane",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function ds(p,a){if(1&p&&l._UZ(0,"sk-spinner-pulse",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function ca(p,a){if(1&p&&l._UZ(0,"sk-three-bounce",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function Pa(p,a){if(1&p&&l._UZ(0,"sk-wandering-cubes",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}function rl(p,a){if(1&p&&l._UZ(0,"sk-wave",4),2&p){const c=l.oxw(2);l.Q6J("backgroundColor",c.backgroundColor)}}const xs=function(p){return{"background-color":p}};function uo(p,a){if(1&p&&(l.TgZ(0,"div",1),l.YNc(1,Nr,1,0,"ng-container",2),l.YNc(2,Xr,1,1,"sk-cube-grid",3),l.YNc(3,co,1,1,"sk-chasing-dots",3),l.YNc(4,Di,1,1,"sk-double-bounce",3),l.YNc(5,nl,1,1,"sk-rotating-plane",3),l.YNc(6,ds,1,1,"sk-spinner-pulse",3),l.YNc(7,ca,1,1,"sk-three-bounce",3),l.YNc(8,Pa,1,1,"sk-wandering-cubes",3),l.YNc(9,rl,1,1,"sk-wave",3),l.qZA()),2&p){const c=l.oxw();l.Udp("opacity",c.opacity),l.ekj("backdrop",c.backdrop),l.Q6J("ngStyle",l.VKq(14,xs,c.backdrop?c.backdropBackgroundColor:"transparent")),l.xp6(1),l.Q6J("ngComponentOutlet",c.entryComponent),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skCubeGrid),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skChasingDots),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skDoubleBounce),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skRotatingPlane),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skSpinnerPulse),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skThreeBounce),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skWanderingCubes),l.xp6(1),l.Q6J("ngIf",c.spinner===c.spinkit.skWave)}}let jr=(()=>{var p;class a{}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275dir=l.lG2({type:p,inputs:{backgroundColor:"backgroundColor"}}),a})(),Ps=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-chasing-dots"]],features:[l.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),Hr=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-cube-grid"]],features:[l.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(h,E){1&h&&(l.TgZ(0,"div",0),l._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),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),gr=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-double-bounce"]],features:[l.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),wi=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-rotating-plane"]],features:[l.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(h,E){1&h&&l._UZ(0,"div",0),2&h&&l.Udp("background-color",E.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)}}"]}),a})(),Ur=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-spinner-pulse"]],features:[l.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(h,E){1&h&&l._UZ(0,"div",0),2&h&&l.Udp("background-color",E.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}}"]}),a})(),eo=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-three-bounce"]],features:[l.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(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2)(3,"div",3),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),hs=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-wandering-cubes"]],features:[l.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})(),fs=(()=>{var p;class a extends jr{}return(p=a).\u0275fac=function(){let c;return function(E){return(c||(c=l.n5z(p)))(E||p)}}(),p.\u0275cmp=l.Xpm({type:p,selectors:[["sk-wave"]],features:[l.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(h,E){1&h&&(l.TgZ(0,"div",0),l._UZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),l.qZA()),2&h&&(l.ekj("colored",!E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.backgroundColor),l.xp6(1),l.Udp("background-color",E.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)}}"]}),a})();const Jo={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 ho=(()=>{var p;class a{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new Qo.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(h){this._filteredMethods=h}set filteredHeaders(h){this._filteredHeaders=h}set forceByPass(h){this._forceByPass=h}shouldBypassUrl(h){return this._filteredUrlPatterns.some(E=>E.test(h))}shouldBypassMethod(h){return this._filteredMethods.some(E=>E.toUpperCase()===h.method.toUpperCase())}shouldBypassHeader(h){return this._filteredHeaders.some(E=>h.headers.has(E))}shouldBypass(h){return this._forceByPass||this.shouldBypassUrl(h.urlWithParams)||this.shouldBypassMethod(h)||this.shouldBypassHeader(h)}intercept(h,E){const F=this.shouldBypass(h);return F||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),E.handle(h).pipe((0,x.x)(()=>{F||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),a})();const ps=[{provide:_n.TP,useExisting:ho,multi:!0}];let mr=(()=>{var p;class a{constructor(h){this.pendingRequestsInterceptor=h,this._visibility$=new Qo.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(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(ho))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),a})(),ua=(()=>{var p;class a{constructor(h,E){this.pendingRequestsInterceptor=h,this.spinnerVisibility=E,this.spinkit=Jo,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=Jo.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[h,E]=function us(p,a,c){return[(0,Bt.h)(a,c)((0,xo.Xf)(p)),(0,Bt.h)(Oo(a,c))((0,xo.Xf)(p))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,F=>F);this.isVisible$=(0,me.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,He.w)(()=>h.pipe(ae(()=>(0,Xo.H)(this.debounceDelay))))),h.pipe((0,He.w)(()=>E.pipe(ae(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,At.x)(),(0,tt.b)(F=>this.updateExpirationDelay(F)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(h=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(h)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(h){h&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,Xo.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return(p=a).\u0275fac=function(h){return new(h||p)(l.Y36(ho),l.Y36(mr))},p.\u0275cmp=l.Xpm({type:p,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(h,E){1&h&&(l.YNc(0,uo,10,16,"div",0),l.ALo(1,"async")),2&h&&l.Q6J("ngIf",l.lcZ(1,1,E.isVisible$))},dependencies:[qt.$G,qt.O5,qt.PC,Hr,Ps,gr,wi,Ur,eo,hs,fs,qt.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}"]}),a})(),Rs=(()=>{var p;class a{static forRoot(){return{ngModule:a,providers:[ps]}}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({imports:[qt.ez]}),a})();var da=C(4201),fn=C(6825);function ji(p){return new l.vHH(3e3,!1)}function nr(p){switch(p.length){case 0:return new fn.ZN;case 1:return p[0];default:return new fn.ZE(p)}}function tr(p,a,c=new Map,h=new Map){const E=[],F=[];let ge=-1,we=null;if(a.forEach(et=>{const gt=et.get("offset"),Wt=gt==ge,Ft=Wt&&we||new Map;et.forEach((Fn,On)=>{let ln=On,pn=Fn;if("offset"!==On)switch(ln=p.normalizePropertyName(ln,E),pn){case fn.k1:pn=c.get(On);break;case fn.l3:pn=h.get(On);break;default:pn=p.normalizeStyleValue(On,ln,pn,E)}Ft.set(ln,pn)}),Wt||F.push(Ft),we=Ft,ge=gt}),E.length)throw function Tn(p){return new l.vHH(3502,!1)}();return F}function ns(p,a,c,h){switch(a){case"start":p.onStart(()=>h(c&&no(c,"start",p)));break;case"done":p.onDone(()=>h(c&&no(c,"done",p)));break;case"destroy":p.onDestroy(()=>h(c&&no(c,"destroy",p)))}}function no(p,a,c){const F=Kr(p.element,p.triggerName,p.fromState,p.toState,a||p.phaseName,c.totalTime??p.totalTime,!!c.disabled),ge=p._data;return null!=ge&&(F._data=ge),F}function Kr(p,a,c,h,E="",F=0,ge){return{element:p,triggerName:a,fromState:c,toState:h,phaseName:E,totalTime:F,disabled:!!ge}}function Mi(p,a,c){let h=p.get(a);return h||p.set(a,h=c),h}function Ys(p){const a=p.indexOf(":");return[p.substring(1,a),p.slice(a+1)]}const bs=(()=>typeof document>"u"?null:document.documentElement)();function Jr(p){const a=p.parentNode||p.host||null;return a===bs?null:a}let Hi=null,pa=!1;function ka(p,a){for(;a;){if(a===p)return!0;a=Jr(a)}return!1}function al(p,a,c){if(c)return Array.from(p.querySelectorAll(a));const h=p.querySelector(a);return h?[h]:[]}let ll=(()=>{var p;class a{validateStyleProperty(h){return function Cs(p){Hi||(Hi=function Ui(){return typeof document<"u"?document.body:null}()||{},pa=!!Hi.style&&"WebkitAppearance"in Hi.style);let a=!0;return Hi.style&&!function ol(p){return"ebkit"==p.substring(1,6)}(p)&&(a=p in Hi.style,!a&&pa&&(a="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in Hi.style)),a}(h)}matchesElement(h,E){return!1}containsElement(h,E){return ka(h,E)}getParentElement(h){return Jr(h)}query(h,E,F){return al(h,E,F)}computeStyle(h,E,F){return F||""}animate(h,E,F,ge,we,et=[],gt){return new fn.ZN(F,ge)}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})(),dn=(()=>{class a{}return a.NOOP=new ll,a})();const ma=1e3,wr="ng-enter",ya="ng-leave",Sr="ng-trigger",fo=".ng-trigger",Na="ng-animating",Fa=".ng-animating";function Po(p){if("number"==typeof p)return p;const a=p.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:ba(parseFloat(a[1]),a[2])}function ba(p,a){return"s"===a?p*ma:p}function Ca(p,a,c){return p.hasOwnProperty("duration")?p:function Mt(p,a,c){let E,F=0,ge="";if("string"==typeof p){const we=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===we)return a.push(ji()),{duration:0,delay:0,easing:""};E=ba(parseFloat(we[1]),we[2]);const et=we[3];null!=et&&(F=ba(parseFloat(et),we[4]));const gt=we[5];gt&&(ge=gt)}else E=p;if(!c){let we=!1,et=a.length;E<0&&(a.push(function ks(){return new l.vHH(3100,!1)}()),we=!0),F<0&&(a.push(function Ns(){return new l.vHH(3101,!1)}()),we=!0),we&&a.splice(et,0,ji())}return{duration:E,delay:F,easing:ge}}(p,a,c)}function Rn(p,a={}){return Object.keys(p).forEach(c=>{a[c]=p[c]}),a}function js(p){const a=new Map;return Object.keys(p).forEach(c=>{a.set(c,p[c])}),a}function po(p,a=new Map,c){if(c)for(let[h,E]of c)a.set(h,E);for(let[h,E]of p)a.set(h,E);return a}function mi(p,a,c){a.forEach((h,E)=>{const F=qs(E);c&&!c.has(E)&&c.set(E,p.style[F]),p.style[F]=h})}function ei(p,a){a.forEach((c,h)=>{const E=qs(h);p.style[E]=""})}function rs(p){return Array.isArray(p)?1==p.length?p[0]:(0,fn.vP)(p):p}const Ea=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ol(p){let a=[];if("string"==typeof p){let c;for(;c=Ea.exec(p);)a.push(c[1]);Ea.lastIndex=0}return a}function is(p,a,c){const h=p.toString(),E=h.replace(Ea,(F,ge)=>{let we=a[ge];return null==we&&(c.push(function Fs(p){return new l.vHH(3003,!1)}()),we=""),we.toString()});return E==h?p:E}function Yr(p){const a=[];let c=p.next();for(;!c.done;)a.push(c.value),c=p.next();return a}const ro=/-+([a-z0-9])/g;function qs(p){return p.replace(ro,(...a)=>a[1].toUpperCase())}function w(p,a,c){switch(a.type){case 7:return p.visitTrigger(a,c);case 0:return p.visitState(a,c);case 1:return p.visitTransition(a,c);case 2:return p.visitSequence(a,c);case 3:return p.visitGroup(a,c);case 4:return p.visitAnimate(a,c);case 5:return p.visitKeyframes(a,c);case 6:return p.visitStyle(a,c);case 8:return p.visitReference(a,c);case 9:return p.visitAnimateChild(a,c);case 10:return p.visitAnimateRef(a,c);case 11:return p.visitQuery(a,c);case 12:return p.visitStagger(a,c);default:throw function ms(p){return new l.vHH(3004,!1)}()}}function _(p,a){return window.getComputedStyle(p)[a]}const Jt="*";function vn(p,a){const c=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(h=>function Mr(p,a,c){if(":"==p[0]){const et=function Gn(p,a){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,h)=>parseFloat(h)>parseFloat(c);case":decrement":return(c,h)=>parseFloat(h)<parseFloat(c);default:return a.push(function ne(p){return new l.vHH(3016,!1)}()),"* => *"}}(p,c);if("function"==typeof et)return void a.push(et);p=et}const h=p.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==h||h.length<4)return c.push(function M(p){return new l.vHH(3015,!1)}()),a;const E=h[1],F=h[2],ge=h[3];a.push(Ro(E,ge));"<"==F[0]&&!(E==Jt&&ge==Jt)&&a.push(Ro(ge,E))}(h,c,a)):c.push(p),c}const ii=new Set(["true","1"]),$i=new Set(["false","0"]);function Ro(p,a){const c=ii.has(p)||$i.has(p),h=ii.has(a)||$i.has(a);return(E,F)=>{let ge=p==Jt||p==E,we=a==Jt||a==F;return!ge&&c&&"boolean"==typeof E&&(ge=E?ii.has(p):$i.has(p)),!we&&h&&"boolean"==typeof F&&(we=F?ii.has(a):$i.has(a)),ge&&we}}const Ba=new RegExp("s*:selfs*,?","g");function qr(p,a,c,h){return new vr(p).build(a,c,h)}class vr{constructor(a){this._driver=a}build(a,c,h){const E=new go(c);return this._resetContextStyleTimingState(E),w(this,rs(a),E)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,c){let h=c.queryCount=0,E=c.depCount=0;const F=[],ge=[];return"@"==a.name.charAt(0)&&c.errors.push(function Ls(){return new l.vHH(3006,!1)}()),a.definitions.forEach(we=>{if(this._resetContextStyleTimingState(c),0==we.type){const et=we,gt=et.name;gt.toString().split(/\s*,\s*/).forEach(Wt=>{et.name=Wt,F.push(this.visitState(et,c))}),et.name=gt}else if(1==we.type){const et=this.visitTransition(we,c);h+=et.queryCount,E+=et.depCount,ge.push(et)}else c.errors.push(function Bs(){return new l.vHH(3007,!1)}())}),{type:7,name:a.name,states:F,transitions:ge,queryCount:h,depCount:E,options:null}}visitState(a,c){const h=this.visitStyle(a.styles,c),E=a.options&&a.options.params||null;if(h.containsDynamicStyles){const F=new Set,ge=E||{};h.styles.forEach(we=>{we instanceof Map&&we.forEach(et=>{Ol(et).forEach(gt=>{ge.hasOwnProperty(gt)||F.add(gt)})})}),F.size&&(Yr(F.values()),c.errors.push(function _s(p,a){return new l.vHH(3008,!1)}()))}return{type:0,name:a.name,style:h,options:E?{params:E}:null}}visitTransition(a,c){c.queryCount=0,c.depCount=0;const h=w(this,rs(a.animation),c);return{type:1,matchers:vn(a.expr,c.errors),animation:h,queryCount:c.queryCount,depCount:c.depCount,options:mo(a.options)}}visitSequence(a,c){return{type:2,steps:a.steps.map(h=>w(this,h,c)),options:mo(a.options)}}visitGroup(a,c){const h=c.currentTime;let E=0;const F=a.steps.map(ge=>{c.currentTime=h;const we=w(this,ge,c);return E=Math.max(E,c.currentTime),we});return c.currentTime=E,{type:3,steps:F,options:mo(a.options)}}visitAnimate(a,c){const h=function cl(p,a){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return Us(Ca(p,a).duration,0,"");const c=p;if(c.split(/\s+/).some(F=>"{"==F.charAt(0)&&"{"==F.charAt(1))){const F=Us(0,0,"");return F.dynamic=!0,F.strValue=c,F}const E=Ca(c,a);return Us(E.duration,E.delay,E.easing)}(a.timings,c.errors);c.currentAnimateTimings=h;let E,F=a.styles?a.styles:(0,fn.oB)({});if(5==F.type)E=this.visitKeyframes(F,c);else{let ge=a.styles,we=!1;if(!ge){we=!0;const gt={};h.easing&&(gt.easing=h.easing),ge=(0,fn.oB)(gt)}c.currentTime+=h.duration+h.delay;const et=this.visitStyle(ge,c);et.isEmptyStep=we,E=et}return c.currentAnimateTimings=null,{type:4,timings:h,style:E,options:null}}visitStyle(a,c){const h=this._makeStyleAst(a,c);return this._validateStyleAst(h,c),h}_makeStyleAst(a,c){const h=[],E=Array.isArray(a.styles)?a.styles:[a.styles];for(let we of E)"string"==typeof we?we===fn.l3?h.push(we):c.errors.push(new l.vHH(3002,!1)):h.push(js(we));let F=!1,ge=null;return h.forEach(we=>{if(we instanceof Map&&(we.has("easing")&&(ge=we.get("easing"),we.delete("easing")),!F))for(let et of we.values())if(et.toString().indexOf("{{")>=0){F=!0;break}}),{type:6,styles:h,easing:ge,offset:a.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(a,c){const h=c.currentAnimateTimings;let E=c.currentTime,F=c.currentTime;h&&F>0&&(F-=h.duration+h.delay),a.styles.forEach(ge=>{"string"!=typeof ge&&ge.forEach((we,et)=>{const gt=c.collectedStyles.get(c.currentQuerySelector),Wt=gt.get(et);let Ft=!0;Wt&&(F!=E&&F>=Wt.startTime&&E<=Wt.endTime&&(c.errors.push(function ha(p,a,c,h,E){return new l.vHH(3010,!1)}()),Ft=!1),F=Wt.startTime),Ft&>.set(et,{startTime:F,endTime:E}),c.options&&function Hs(p,a,c){const h=a.params||{},E=Ol(p);E.length&&E.forEach(F=>{h.hasOwnProperty(F)||c.push(function ts(p){return new l.vHH(3001,!1)}())})}(we,c.options,c.errors)})})}visitKeyframes(a,c){const h={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push(function fa(){return new l.vHH(3011,!1)}()),h;let F=0;const ge=[];let we=!1,et=!1,gt=0;const Wt=a.steps.map(Ir=>{const Lr=this._makeStyleAst(Ir,c);let vi=null!=Lr.offset?Lr.offset:function xl(p){if("string"==typeof p)return null;let a=null;if(Array.isArray(p))p.forEach(c=>{if(c instanceof Map&&c.has("offset")){const h=c;a=parseFloat(h.get("offset")),h.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const c=p;a=parseFloat(c.get("offset")),c.delete("offset")}return a}(Lr.styles),Wn=0;return null!=vi&&(F++,Wn=Lr.offset=vi),et=et||Wn<0||Wn>1,we=we||Wn<gt,gt=Wn,ge.push(Wn),Lr});et&&c.errors.push(function vs(){return new l.vHH(3012,!1)}()),we&&c.errors.push(function ys(){return new l.vHH(3200,!1)}());const Ft=a.steps.length;let Fn=0;F>0&&F<Ft?c.errors.push(function g(){return new l.vHH(3202,!1)}()):0==F&&(Fn=1/(Ft-1));const On=Ft-1,ln=c.currentTime,pn=c.currentAnimateTimings,rr=pn.duration;return Wt.forEach((Ir,Lr)=>{const vi=Fn>0?Lr==On?1:Fn*Lr:ge[Lr],Wn=vi*rr;c.currentTime=ln+pn.delay+Wn,pn.duration=Wn,this._validateStyleAst(Ir,c),Ir.offset=vi,h.styles.push(Ir)}),h}visitReference(a,c){return{type:8,animation:w(this,rs(a.animation),c),options:mo(a.options)}}visitAnimateChild(a,c){return c.depCount++,{type:9,options:mo(a.options)}}visitAnimateRef(a,c){return{type:10,animation:this.visitReference(a.animation,c),options:mo(a.options)}}visitQuery(a,c){const h=c.currentQuerySelector,E=a.options||{};c.queryCount++,c.currentQuery=a;const[F,ge]=function Va(p){const a=!!p.split(/\s*,\s*/).find(c=>":self"==c);return a&&(p=p.replace(Ba,"")),p=p.replace(/@\*/g,fo).replace(/@\w+/g,c=>fo+"-"+c.slice(1)).replace(/:animating/g,Fa),[p,a]}(a.selector);c.currentQuerySelector=h.length?h+" "+F:F,Mi(c.collectedStyles,c.currentQuerySelector,new Map);const we=w(this,rs(a.animation),c);return c.currentQuery=null,c.currentQuerySelector=h,{type:11,selector:F,limit:E.limit||0,optional:!!E.optional,includeSelf:ge,animation:we,originalSelector:a.selector,options:mo(a.options)}}visitStagger(a,c){c.currentQuery||c.errors.push(function A(){return new l.vHH(3013,!1)}());const h="full"===a.timings?{duration:0,delay:0,easing:"full"}:Ca(a.timings,c.errors,!0);return{type:12,animation:w(this,rs(a.animation),c),timings:h,options:null}}}class go{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 mo(p){return p?(p=Rn(p)).params&&(p.params=function Ec(p){return p?Rn(p):null}(p.params)):p={},p}function Us(p,a,c){return{duration:p,delay:a,easing:c}}function _o(p,a,c,h,E,F,ge=null,we=!1){return{type:1,element:p,keyframes:a,preStyleProps:c,postStyleProps:h,duration:E,delay:F,totalTime:E+F,easing:ge,subTimeline:we}}class zi{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,c){let h=this._map.get(a);h||this._map.set(a,h=[]),h.push(...c)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const ja=new RegExp(":enter","g"),Dc=new RegExp(":leave","g");function Ha(p,a,c,h,E,F=new Map,ge=new Map,we,et,gt=[]){return(new wc).buildKeyframes(p,a,c,h,E,F,ge,we,et,gt)}class wc{buildKeyframes(a,c,h,E,F,ge,we,et,gt,Wt=[]){gt=gt||new zi;const Ft=new Xs(a,c,gt,E,F,Wt,[]);Ft.options=et;const Fn=et.delay?Po(et.delay):0;Ft.currentTimeline.delayNextStep(Fn),Ft.currentTimeline.setStyles([ge],null,Ft.errors,et),w(this,h,Ft);const On=Ft.timelines.filter(ln=>ln.containsAnimation());if(On.length&&we.size){let ln;for(let pn=On.length-1;pn>=0;pn--){const rr=On[pn];if(rr.element===c){ln=rr;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([we],null,Ft.errors,et)}return On.length?On.map(ln=>ln.buildKeyframes()):[_o(c,[],[],[],0,Fn,"",!1)]}visitTrigger(a,c){}visitState(a,c){}visitTransition(a,c){}visitAnimateChild(a,c){const h=c.subInstructions.get(c.element);if(h){const E=c.createSubContext(a.options),F=c.currentTimeline.currentTime,ge=this._visitSubInstructions(h,E,E.options);F!=ge&&c.transformIntoNewTimeline(ge)}c.previousNode=a}visitAnimateRef(a,c){const h=c.createSubContext(a.options);h.transformIntoNewTimeline(),this._applyAnimationRefDelays([a.options,a.animation.options],c,h),this.visitReference(a.animation,h),c.transformIntoNewTimeline(h.currentTimeline.currentTime),c.previousNode=a}_applyAnimationRefDelays(a,c,h){for(const E of a){const F=E?.delay;if(F){const ge="number"==typeof F?F:Po(is(F,E?.params??{},c.errors));h.delayNextStep(ge)}}}_visitSubInstructions(a,c,h){let F=c.currentTimeline.currentTime;const ge=null!=h.duration?Po(h.duration):null,we=null!=h.delay?Po(h.delay):null;return 0!==ge&&a.forEach(et=>{const gt=c.appendInstructionToTimeline(et,ge,we);F=Math.max(F,gt.duration+gt.delay)}),F}visitReference(a,c){c.updateOptions(a.options,!0),w(this,a.animation,c),c.previousNode=a}visitSequence(a,c){const h=c.subContextCount;let E=c;const F=a.options;if(F&&(F.params||F.delay)&&(E=c.createSubContext(F),E.transformIntoNewTimeline(),null!=F.delay)){6==E.previousNode.type&&(E.currentTimeline.snapshotCurrentStyles(),E.previousNode=vo);const ge=Po(F.delay);E.delayNextStep(ge)}a.steps.length&&(a.steps.forEach(ge=>w(this,ge,E)),E.currentTimeline.applyStylesToKeyframe(),E.subContextCount>h&&E.transformIntoNewTimeline()),c.previousNode=a}visitGroup(a,c){const h=[];let E=c.currentTimeline.currentTime;const F=a.options&&a.options.delay?Po(a.options.delay):0;a.steps.forEach(ge=>{const we=c.createSubContext(a.options);F&&we.delayNextStep(F),w(this,ge,we),E=Math.max(E,we.currentTimeline.currentTime),h.push(we.currentTimeline)}),h.forEach(ge=>c.currentTimeline.mergeTimelineCollectedStyles(ge)),c.transformIntoNewTimeline(E),c.previousNode=a}_visitTiming(a,c){if(a.dynamic){const h=a.strValue;return Ca(c.params?is(h,c.params,c.errors):h,c.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,c){const h=c.currentAnimateTimings=this._visitTiming(a.timings,c),E=c.currentTimeline;h.delay&&(c.incrementTime(h.delay),E.snapshotCurrentStyles());const F=a.style;5==F.type?this.visitKeyframes(F,c):(c.incrementTime(h.duration),this.visitStyle(F,c),E.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=a}visitStyle(a,c){const h=c.currentTimeline,E=c.currentAnimateTimings;!E&&h.hasCurrentStyleProperties()&&h.forwardFrame();const F=E&&E.easing||a.easing;a.isEmptyStep?h.applyEmptyStep(F):h.setStyles(a.styles,F,c.errors,c.options),c.previousNode=a}visitKeyframes(a,c){const h=c.currentAnimateTimings,E=c.currentTimeline.duration,F=h.duration,we=c.createSubContext().currentTimeline;we.easing=h.easing,a.styles.forEach(et=>{we.forwardTime((et.offset||0)*F),we.setStyles(et.styles,et.easing,c.errors,c.options),we.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(we),c.transformIntoNewTimeline(E+F),c.previousNode=a}visitQuery(a,c){const h=c.currentTimeline.currentTime,E=a.options||{},F=E.delay?Po(E.delay):0;F&&(6===c.previousNode.type||0==h&&c.currentTimeline.hasCurrentStyleProperties())&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=vo);let ge=h;const we=c.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!E.optional,c.errors);c.currentQueryTotal=we.length;let et=null;we.forEach((gt,Wt)=>{c.currentQueryIndex=Wt;const Ft=c.createSubContext(a.options,gt);F&&Ft.delayNextStep(F),gt===c.element&&(et=Ft.currentTimeline),w(this,a.animation,Ft),Ft.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Ft.currentTimeline.currentTime)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline(ge),et&&(c.currentTimeline.mergeTimelineCollectedStyles(et),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=a}visitStagger(a,c){const h=c.parentContext,E=c.currentTimeline,F=a.timings,ge=Math.abs(F.duration),we=ge*(c.currentQueryTotal-1);let et=ge*c.currentQueryIndex;switch(F.duration<0?"reverse":F.easing){case"reverse":et=we-et;break;case"full":et=h.currentStaggerTime}const Wt=c.currentTimeline;et&&Wt.delayNextStep(et);const Ft=Wt.currentTime;w(this,a.animation,c),c.previousNode=a,h.currentStaggerTime=E.currentTime-Ft+(E.startTime-h.currentTimeline.startTime)}}const vo={};class Xs{constructor(a,c,h,E,F,ge,we,et){this._driver=a,this.element=c,this.subInstructions=h,this._enterClassName=E,this._leaveClassName=F,this.errors=ge,this.timelines=we,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=et||new hl(this._driver,c,0),we.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,c){if(!a)return;const h=a;let E=this.options;null!=h.duration&&(E.duration=Po(h.duration)),null!=h.delay&&(E.delay=Po(h.delay));const F=h.params;if(F){let ge=E.params;ge||(ge=this.options.params={}),Object.keys(F).forEach(we=>{(!c||!ge.hasOwnProperty(we))&&(ge[we]=is(F[we],ge,this.errors))})}}_copyOptions(){const a={};if(this.options){const c=this.options.params;if(c){const h=a.params={};Object.keys(c).forEach(E=>{h[E]=c[E]})}}return a}createSubContext(a=null,c,h){const E=c||this.element,F=new Xs(this._driver,E,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(E,h||0));return F.previousNode=this.previousNode,F.currentAnimateTimings=this.currentAnimateTimings,F.options=this._copyOptions(),F.updateOptions(a),F.currentQueryIndex=this.currentQueryIndex,F.currentQueryTotal=this.currentQueryTotal,F.parentContext=this,this.subContextCount++,F}transformIntoNewTimeline(a){return this.previousNode=vo,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,c,h){const E={duration:c??a.duration,delay:this.currentTimeline.currentTime+(h??0)+a.delay,easing:""},F=new Pl(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,E,a.stretchStartingKeyframe);return this.timelines.push(F),E}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,c,h,E,F,ge){let we=[];if(E&&we.push(this.element),a.length>0){a=(a=a.replace(ja,"."+this._enterClassName)).replace(Dc,"."+this._leaveClassName);let gt=this._driver.query(this.element,a,1!=h);0!==h&&(gt=h<0?gt.slice(gt.length+h,gt.length):gt.slice(0,h)),we.push(...gt)}return!F&&0==we.length&&ge.push(function fe(p){return new l.vHH(3014,!1)}()),we}}class hl{constructor(a,c,h,E){this._driver=a,this.element=c,this.startTime=h,this._elementTimelineStylesLookup=E,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(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,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 c=1===this._keyframes.size&&this._pendingStyles.size;this.duration||c?(this.forwardTime(this.currentTime+a),c&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,c){return this.applyStylesToKeyframe(),new hl(this._driver,a,c||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,c){this._localTimelineStyles.set(a,c),this._globalTimelineStyles.set(a,c),this._styleSummary.set(a,{time:this.currentTime,value:c})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[c,h]of this._globalTimelineStyles)this._backFill.set(c,h||fn.l3),this._currentKeyframe.set(c,fn.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,c,h,E){c&&this._previousKeyframe.set("easing",c);const F=E&&E.params||{},ge=function gd(p,a){const c=new Map;let h;return p.forEach(E=>{if("*"===E){h=h||a.keys();for(let F of h)c.set(F,fn.l3)}else po(E,c)}),c}(a,this._globalTimelineStyles);for(let[we,et]of ge){const gt=is(et,F,h);this._pendingStyles.set(we,gt),this._localTimelineStyles.has(we)||this._backFill.set(we,this._globalTimelineStyles.get(we)??fn.l3),this._updateStyle(we,gt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,c)=>{this._currentKeyframe.set(c,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,c)=>{this._currentKeyframe.has(c)||this._currentKeyframe.set(c,a)}))}snapshotCurrentStyles(){for(let[a,c]of this._localTimelineStyles)this._pendingStyles.set(a,c),this._updateStyle(a,c)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let c in this._currentKeyframe)a.push(c);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((c,h)=>{const E=this._styleSummary.get(h);(!E||c.time>E.time)&&this._updateStyle(h,c.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,c=new Set,h=1===this._keyframes.size&&0===this.duration;let E=[];this._keyframes.forEach((we,et)=>{const gt=po(we,new Map,this._backFill);gt.forEach((Wt,Ft)=>{Wt===fn.k1?a.add(Ft):Wt===fn.l3&&c.add(Ft)}),h||gt.set("offset",et/this.duration),E.push(gt)});const F=a.size?Yr(a.values()):[],ge=c.size?Yr(c.values()):[];if(h){const we=E[0],et=new Map(we);we.set("offset",0),et.set("offset",1),E=[we,et]}return _o(this.element,E,F,ge,this.duration,this.startTime,this.easing,!1)}}class Pl extends hl{constructor(a,c,h,E,F,ge,we=!1){super(a,c,ge.delay),this.keyframes=h,this.preStyleProps=E,this.postStyleProps=F,this._stretchStartingKeyframe=we,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:c,duration:h,easing:E}=this.timings;if(this._stretchStartingKeyframe&&c){const F=[],ge=h+c,we=c/ge,et=po(a[0]);et.set("offset",0),F.push(et);const gt=po(a[0]);gt.set("offset",fl(we)),F.push(gt);const Wt=a.length-1;for(let Ft=1;Ft<=Wt;Ft++){let Fn=po(a[Ft]);const On=Fn.get("offset");Fn.set("offset",fl((c+On*h)/ge)),F.push(Fn)}h=ge,c=0,E="",a=F}return _o(this.element,a,this.preStyleProps,this.postStyleProps,h,c,E,!0)}}function fl(p,a=3){const c=Math.pow(10,a-1);return Math.round(p*c)/c}class Rl{}const vd=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 Ua extends Rl{normalizePropertyName(a,c){return qs(a)}normalizeStyleValue(a,c,h,E){let F="";const ge=h.toString().trim();if(vd.has(c)&&0!==h&&"0"!==h)if("number"==typeof h)F="px";else{const we=h.match(/^[+-]?[\d\.]+([a-z]*)$/);we&&0==we[1].length&&E.push(function il(p,a){return new l.vHH(3005,!1)}())}return ge+F}}function $s(p,a,c,h,E,F,ge,we,et,gt,Wt,Ft,Fn){return{type:0,element:p,triggerName:a,isRemovalTransition:E,fromState:c,fromStyles:F,toState:h,toStyles:ge,timelines:we,queriedElements:et,preStyleProps:gt,postStyleProps:Wt,totalTime:Ft,errors:Fn}}const pl={};class Js{constructor(a,c,h){this._triggerName=a,this.ast=c,this._stateStyles=h}match(a,c,h,E){return function $a(p,a,c,h,E){return p.some(F=>F(a,c,h,E))}(this.ast.matchers,a,c,h,E)}buildStyles(a,c,h){let E=this._stateStyles.get("*");return void 0!==a&&(E=this._stateStyles.get(a?.toString())||E),E?E.buildStyles(c,h):new Map}build(a,c,h,E,F,ge,we,et,gt,Wt){const Ft=[],Fn=this.ast.options&&this.ast.options.params||pl,ln=this.buildStyles(h,we&&we.params||pl,Ft),pn=et&&et.params||pl,rr=this.buildStyles(E,pn,Ft),Ir=new Set,Lr=new Map,vi=new Map,Wn="void"===E,Wi={params:uu(pn,Fn),delay:this.ast.options?.delay},yi=Wt?[]:Ha(a,c,this.ast.animation,F,ge,ln,rr,Wi,gt,Ft);let Zi=0;if(yi.forEach(ta=>{Zi=Math.max(ta.duration+ta.delay,Zi)}),Ft.length)return $s(c,this._triggerName,h,E,Wn,ln,rr,[],[],Lr,vi,Zi,Ft);yi.forEach(ta=>{const na=ta.element,$l=Mi(Lr,na,new Set);ta.preStyleProps.forEach(Xa=>$l.add(Xa));const zl=Mi(vi,na,new Set);ta.postStyleProps.forEach(Xa=>zl.add(Xa)),na!==c&&Ir.add(na)});const as=Yr(Ir.values());return $s(c,this._triggerName,h,E,Wn,ln,rr,yi,as,Lr,vi,Zi)}}function uu(p,a){const c=Rn(a);for(const h in p)p.hasOwnProperty(h)&&null!=p[h]&&(c[h]=p[h]);return c}class Nl{constructor(a,c,h){this.styles=a,this.defaultParams=c,this.normalizer=h}buildStyles(a,c){const h=new Map,E=Rn(this.defaultParams);return Object.keys(a).forEach(F=>{const ge=a[F];null!==ge&&(E[F]=ge)}),this.styles.styles.forEach(F=>{"string"!=typeof F&&F.forEach((ge,we)=>{ge&&(ge=is(ge,E,c));const et=this.normalizer.normalizePropertyName(we,c);ge=this.normalizer.normalizeStyleValue(we,et,ge,c),h.set(we,ge)})}),h}}class Mc{constructor(a,c,h){this.name=a,this.ast=c,this._normalizer=h,this.transitionFactories=[],this.states=new Map,c.states.forEach(E=>{this.states.set(E.name,new Nl(E.style,E.options&&E.options.params||{},h))}),Fl(this.states,"true","1"),Fl(this.states,"false","0"),c.transitions.forEach(E=>{this.transitionFactories.push(new Js(a,E,this.states))}),this.fallbackTransition=function Fo(p,a,c){return new Js(p,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,we)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,c,h,E){return this.transitionFactories.find(ge=>ge.match(a,c,h,E))||null}matchStyles(a,c,h){return this.fallbackTransition.buildStyles(a,c,h)}}function Fl(p,a,c){p.has(a)?p.has(c)||p.set(c,p.get(a)):p.has(c)&&p.set(a,p.get(c))}const za=new zi;class gl{constructor(a,c,h){this.bodyNode=a,this._driver=c,this._normalizer=h,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,c){const h=[],F=qr(this._driver,c,h,[]);if(h.length)throw function zn(p){return new l.vHH(3503,!1)}();this._animations.set(a,F)}_buildPlayer(a,c,h){const E=a.element,F=tr(this._normalizer,a.keyframes,c,h);return this._driver.animate(E,F,a.duration,a.delay,a.easing,[],!0)}create(a,c,h={}){const E=[],F=this._animations.get(a);let ge;const we=new Map;if(F?(ge=Ha(this._driver,c,F,wr,ya,new Map,new Map,h,za,E),ge.forEach(Wt=>{const Ft=Mi(we,Wt.element,new Map);Wt.postStyleProps.forEach(Fn=>Ft.set(Fn,null))})):(E.push(function Bn(){return new l.vHH(3300,!1)}()),ge=[]),E.length)throw function bn(p){return new l.vHH(3504,!1)}();we.forEach((Wt,Ft)=>{Wt.forEach((Fn,On)=>{Wt.set(On,this._driver.computeStyle(Ft,On,fn.l3))})});const gt=nr(ge.map(Wt=>{const Ft=we.get(Wt.element);return this._buildPlayer(Wt,new Map,Ft)}));return this._playersById.set(a,gt),gt.onDestroy(()=>this.destroy(a)),this.players.push(gt),gt}destroy(a){const c=this._getPlayer(a);c.destroy(),this._playersById.delete(a);const h=this.players.indexOf(c);h>=0&&this.players.splice(h,1)}_getPlayer(a){const c=this._playersById.get(a);if(!c)throw function sr(p){return new l.vHH(3301,!1)}();return c}listen(a,c,h,E){const F=Kr(c,"","","");return ns(this._getPlayer(a),h,F,E),()=>{}}command(a,c,h,E){if("register"==h)return void this.register(a,E[0]);if("create"==h)return void this.create(a,c,E[0]||{});const F=this._getPlayer(a);switch(h){case"play":F.play();break;case"pause":F.pause();break;case"reset":F.reset();break;case"restart":F.restart();break;case"finish":F.finish();break;case"init":F.init();break;case"setPosition":F.setPosition(parseFloat(E[0]));break;case"destroy":this.destroy(a)}}}const Da="ng-animate-queued",zs="ng-animate-disabled",Za=[],Ll={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},du={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Gi="__ng_removed";class os{get params(){return this.options.params}constructor(a,c=""){this.namespaceId=c;const h=a&&a.hasOwnProperty("value");if(this.value=function Tc(p){return p??null}(h?a.value:a),h){const F=Rn(a);delete F.value,this.options=F}else this.options={};this.options.params||(this.options.params={})}absorbOptions(a){const c=a.params;if(c){const h=this.options.params;Object.keys(c).forEach(E=>{null==h[E]&&(h[E]=c[E])})}}}const wa="void",ss=new os(wa);class _l{constructor(a,c,h){this.id=a,this.hostElement=c,this._engine=h,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,oi(c,this._hostClassName)}listen(a,c,h,E){if(!this._triggers.has(c))throw function Qn(p,a){return new l.vHH(3302,!1)}();if(null==h||0==h.length)throw function _r(p){return new l.vHH(3303,!1)}();if(!function Bl(p){return"start"==p||"done"==p}(h))throw function Zr(p,a){return new l.vHH(3400,!1)}();const F=Mi(this._elementListeners,a,[]),ge={name:c,phase:h,callback:E};F.push(ge);const we=Mi(this._engine.statesByElement,a,new Map);return we.has(c)||(oi(a,Sr),oi(a,Sr+"-"+c),we.set(c,ss)),()=>{this._engine.afterFlush(()=>{const et=F.indexOf(ge);et>=0&&F.splice(et,1),this._triggers.has(c)||we.delete(c)})}}register(a,c){return!this._triggers.has(a)&&(this._triggers.set(a,c),!0)}_getTrigger(a){const c=this._triggers.get(a);if(!c)throw function Si(p){return new l.vHH(3401,!1)}();return c}trigger(a,c,h,E=!0){const F=this._getTrigger(c),ge=new vl(this.id,c,a);let we=this._engine.statesByElement.get(a);we||(oi(a,Sr),oi(a,Sr+"-"+c),this._engine.statesByElement.set(a,we=new Map));let et=we.get(c);const gt=new os(h,this.id);if(!(h&&h.hasOwnProperty("value"))&&et&>.absorbOptions(et.options),we.set(c,gt),et||(et=ss),gt.value!==wa&&et.value===gt.value){if(!function he(p,a){const c=Object.keys(p),h=Object.keys(a);if(c.length!=h.length)return!1;for(let E=0;E<c.length;E++){const F=c[E];if(!a.hasOwnProperty(F)||p[F]!==a[F])return!1}return!0}(et.params,gt.params)){const pn=[],rr=F.matchStyles(et.value,et.params,pn),Ir=F.matchStyles(gt.value,gt.params,pn);pn.length?this._engine.reportError(pn):this._engine.afterFlush(()=>{ei(a,rr),mi(a,Ir)})}return}const Fn=Mi(this._engine.playersByElement,a,[]);Fn.forEach(pn=>{pn.namespaceId==this.id&&pn.triggerName==c&&pn.queued&&pn.destroy()});let On=F.matchTransition(et.value,gt.value,a,gt.params),ln=!1;if(!On){if(!E)return;On=F.fallbackTransition,ln=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:On,fromState:et,toState:gt,player:ge,isFallbackTransition:ln}),ln||(oi(a,Da),ge.onStart(()=>{Lo(a,Da)})),ge.onDone(()=>{let pn=this.players.indexOf(ge);pn>=0&&this.players.splice(pn,1);const rr=this._engine.playersByElement.get(a);if(rr){let Ir=rr.indexOf(ge);Ir>=0&&rr.splice(Ir,1)}}),this.players.push(ge),Fn.push(ge),ge}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(c=>c.delete(a)),this._elementListeners.forEach((c,h)=>{this._elementListeners.set(h,c.filter(E=>E.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const c=this._engine.playersByElement.get(a);c&&(c.forEach(h=>h.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,c){const h=this._engine.driver.query(a,fo,!0);h.forEach(E=>{if(E[Gi])return;const F=this._engine.fetchNamespacesByElement(E);F.size?F.forEach(ge=>ge.triggerLeaveAnimation(E,c,!1,!0)):this.clearElementCache(E)}),this._engine.afterFlushAnimationsDone(()=>h.forEach(E=>this.clearElementCache(E)))}triggerLeaveAnimation(a,c,h,E){const F=this._engine.statesByElement.get(a),ge=new Map;if(F){const we=[];if(F.forEach((et,gt)=>{if(ge.set(gt,et.value),this._triggers.has(gt)){const Wt=this.trigger(a,gt,wa,E);Wt&&we.push(Wt)}}),we.length)return this._engine.markElementAsRemoved(this.id,a,!0,c,ge),h&&nr(we).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const c=this._elementListeners.get(a),h=this._engine.statesByElement.get(a);if(c&&h){const E=new Set;c.forEach(F=>{const ge=F.name;if(E.has(ge))return;E.add(ge);const et=this._triggers.get(ge).fallbackTransition,gt=h.get(ge)||ss,Wt=new os(wa),Ft=new vl(this.id,ge,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:ge,transition:et,fromState:gt,toState:Wt,player:Ft,isFallbackTransition:!0})})}}removeNode(a,c){const h=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,c),this.triggerLeaveAnimation(a,c,!0))return;let E=!1;if(h.totalAnimations){const F=h.players.length?h.playersByQueriedElement.get(a):[];if(F&&F.length)E=!0;else{let ge=a;for(;ge=ge.parentNode;)if(h.statesByElement.get(ge)){E=!0;break}}}if(this.prepareLeaveAnimationListeners(a),E)h.markElementAsRemoved(this.id,a,!1,c);else{const F=a[Gi];(!F||F===Ll)&&(h.afterFlush(()=>this.clearElementCache(a)),h.destroyInnerAnimations(a),h._onRemovalComplete(a,c))}}insertNode(a,c){oi(a,this._hostClassName)}drainQueuedTransitions(a){const c=[];return this._queue.forEach(h=>{const E=h.player;if(E.destroyed)return;const F=h.element,ge=this._elementListeners.get(F);ge&&ge.forEach(we=>{if(we.name==h.triggerName){const et=Kr(F,h.triggerName,h.fromState.value,h.toState.value);et._data=a,ns(h.player,we.phase,et,we.callback)}}),E.markedForDestroy?this._engine.afterFlush(()=>{E.destroy()}):c.push(h)}),this._queue=[],c.sort((h,E)=>{const F=h.transition.ast.depCount,ge=E.transition.ast.depCount;return 0==F||0==ge?F-ge:this._engine.driver.containsElement(h.element,E.element)?1:-1})}destroy(a){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}}class Sa{_onRemovalComplete(a,c){this.onRemovalComplete(a,c)}constructor(a,c,h){this.bodyNode=a,this.driver=c,this._normalizer=h,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=(E,F)=>{}}get queuedPlayers(){const a=[];return this._namespaceList.forEach(c=>{c.players.forEach(h=>{h.queued&&a.push(h)})}),a}createNamespace(a,c){const h=new _l(a,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(h,c):(this.newHostElements.set(c,h),this.collectEnterElement(c)),this._namespaceLookup[a]=h}_balanceNamespaceList(a,c){const h=this._namespaceList,E=this.namespacesByHostElement;if(h.length-1>=0){let ge=!1,we=this.driver.getParentElement(c);for(;we;){const et=E.get(we);if(et){const gt=h.indexOf(et);h.splice(gt+1,0,a),ge=!0;break}we=this.driver.getParentElement(we)}ge||h.unshift(a)}else h.push(a);return E.set(c,a),a}register(a,c){let h=this._namespaceLookup[a];return h||(h=this.createNamespace(a,c)),h}registerTrigger(a,c,h){let E=this._namespaceLookup[a];E&&E.register(c,h)&&this.totalAnimations++}destroy(a,c){a&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const h=this._fetchNamespace(a);this.namespacesByHostElement.delete(h.hostElement);const E=this._namespaceList.indexOf(h);E>=0&&this._namespaceList.splice(E,1),h.destroy(c),delete this._namespaceLookup[a]}))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const c=new Set,h=this.statesByElement.get(a);if(h)for(let E of h.values())if(E.namespaceId){const F=this._fetchNamespace(E.namespaceId);F&&c.add(F)}return c}trigger(a,c,h,E){if(yo(c)){const F=this._fetchNamespace(a);if(F)return F.trigger(c,h,E),!0}return!1}insertNode(a,c,h,E){if(!yo(c))return;const F=c[Gi];if(F&&F.setForRemoval){F.setForRemoval=!1,F.setForMove=!0;const ge=this.collectedLeaveElements.indexOf(c);ge>=0&&this.collectedLeaveElements.splice(ge,1)}if(a){const ge=this._fetchNamespace(a);ge&&ge.insertNode(c,h)}E&&this.collectEnterElement(c)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,c){c?this.disabledNodes.has(a)||(this.disabledNodes.add(a),oi(a,zs)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Lo(a,zs))}removeNode(a,c,h){if(yo(c)){const E=a?this._fetchNamespace(a):null;E?E.removeNode(c,h):this.markElementAsRemoved(a,c,!1,h);const F=this.namespacesByHostElement.get(c);F&&F.id!==a&&F.removeNode(c,h)}else this._onRemovalComplete(c,h)}markElementAsRemoved(a,c,h,E,F){this.collectedLeaveElements.push(c),c[Gi]={namespaceId:a,setForRemoval:E,hasAnimation:h,removedBeforeQueried:!1,previousTriggersValues:F}}listen(a,c,h,E,F){return yo(c)?this._fetchNamespace(a).listen(c,h,E,F):()=>{}}_buildInstruction(a,c,h,E,F){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,h,E,a.fromState.options,a.toState.options,c,F)}destroyInnerAnimations(a){let c=this.driver.query(a,fo,!0);c.forEach(h=>this.destroyActiveAnimationsForElement(h)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(a,Fa,!0),c.forEach(h=>this.finishActiveQueriedAnimationOnElement(h)))}destroyActiveAnimationsForElement(a){const c=this.playersByElement.get(a);c&&c.forEach(h=>{h.queued?h.markedForDestroy=!0:h.destroy()})}finishActiveQueriedAnimationOnElement(a){const c=this.playersByQueriedElement.get(a);c&&c.forEach(h=>h.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return nr(this.players).onDone(()=>a());a()})}processLeaveNode(a){const c=a[Gi];if(c&&c.setForRemoval){if(a[Gi]=Ll,c.namespaceId){this.destroyInnerAnimations(a);const h=this._fetchNamespace(c.namespaceId);h&&h.clearElementCache(a)}this._onRemovalComplete(a,c.setForRemoval)}a.classList?.contains(zs)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(h=>{this.markElementAsDisabled(h,!1)})}flush(a=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((h,E)=>this._balanceNamespaceList(h,E)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let h=0;h<this.collectedEnterElements.length;h++)oi(this.collectedEnterElements[h],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const h=[];try{c=this._flushAnimations(h,a)}finally{for(let E=0;E<h.length;E++)h[E]()}}else for(let h=0;h<this.collectedLeaveElements.length;h++)this.processLeaveNode(this.collectedLeaveElements[h]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(h=>h()),this._flushFns=[],this._whenQuietFns.length){const h=this._whenQuietFns;this._whenQuietFns=[],c.length?nr(c).onDone(()=>{h.forEach(E=>E())}):h.forEach(E=>E())}}reportError(a){throw function Oi(p){return new l.vHH(3402,!1)}()}_flushAnimations(a,c){const h=new zi,E=[],F=new Map,ge=[],we=new Map,et=new Map,gt=new Map,Wt=new Set;this.disabledNodes.forEach(tn=>{Wt.add(tn);const gn=this.driver.query(tn,".ng-animate-queued",!0);for(let mn=0;mn<gn.length;mn++)Wt.add(gn[mn])});const Ft=this.bodyNode,Fn=Array.from(this.statesByElement.keys()),On=Ya(Fn,this.collectedEnterElements),ln=new Map;let pn=0;On.forEach((tn,gn)=>{const mn=wr+pn++;ln.set(gn,mn),tn.forEach(Yn=>oi(Yn,mn))});const rr=[],Ir=new Set,Lr=new Set;for(let tn=0;tn<this.collectedLeaveElements.length;tn++){const gn=this.collectedLeaveElements[tn],mn=gn[Gi];mn&&mn.setForRemoval&&(rr.push(gn),Ir.add(gn),mn.hasAnimation?this.driver.query(gn,".ng-star-inserted",!0).forEach(Yn=>Ir.add(Yn)):Lr.add(gn))}const vi=new Map,Wn=Ya(Fn,Array.from(Ir));Wn.forEach((tn,gn)=>{const mn=ya+pn++;vi.set(gn,mn),tn.forEach(Yn=>oi(Yn,mn))}),a.push(()=>{On.forEach((tn,gn)=>{const mn=ln.get(gn);tn.forEach(Yn=>Lo(Yn,mn))}),Wn.forEach((tn,gn)=>{const mn=vi.get(gn);tn.forEach(Yn=>Lo(Yn,mn))}),rr.forEach(tn=>{this.processLeaveNode(tn)})});const Wi=[],yi=[];for(let tn=this._namespaceList.length-1;tn>=0;tn--)this._namespaceList[tn].drainQueuedTransitions(c).forEach(mn=>{const Yn=mn.player,li=mn.element;if(Wi.push(Yn),this.collectedEnterElements.length){const ci=li[Gi];if(ci&&ci.setForMove){if(ci.previousTriggersValues&&ci.previousTriggersValues.has(mn.triggerName)){const Ss=ci.previousTriggersValues.get(mn.triggerName),Bo=this.statesByElement.get(mn.element);if(Bo&&Bo.has(mn.triggerName)){const Wl=Bo.get(mn.triggerName);Wl.value=Ss,Bo.set(mn.triggerName,Wl)}}return void Yn.destroy()}}const ls=!Ft||!this.driver.containsElement(Ft,li),oo=vi.get(li),bo=ln.get(li),Ar=this._buildInstruction(mn,h,bo,oo,ls);if(Ar.errors&&Ar.errors.length)return void yi.push(Ar);if(ls)return Yn.onStart(()=>ei(li,Ar.fromStyles)),Yn.onDestroy(()=>mi(li,Ar.toStyles)),void E.push(Yn);if(mn.isFallbackTransition)return Yn.onStart(()=>ei(li,Ar.fromStyles)),Yn.onDestroy(()=>mi(li,Ar.toStyles)),void E.push(Yn);const xc=[];Ar.timelines.forEach(ci=>{ci.stretchStartingKeyframe=!0,this.disabledNodes.has(ci.element)||xc.push(ci)}),Ar.timelines=xc,h.append(li,Ar.timelines),ge.push({instruction:Ar,player:Yn,element:li}),Ar.queriedElements.forEach(ci=>Mi(we,ci,[]).push(Yn)),Ar.preStyleProps.forEach((ci,Ss)=>{if(ci.size){let Bo=et.get(Ss);Bo||et.set(Ss,Bo=new Set),ci.forEach((Wl,Pc)=>Bo.add(Pc))}}),Ar.postStyleProps.forEach((ci,Ss)=>{let Bo=gt.get(Ss);Bo||gt.set(Ss,Bo=new Set),ci.forEach((Wl,Pc)=>Bo.add(Pc))})});if(yi.length){const tn=[];yi.forEach(gn=>{tn.push(function Dr(p,a){return new l.vHH(3505,!1)}())}),Wi.forEach(gn=>gn.destroy()),this.reportError(tn)}const Zi=new Map,as=new Map;ge.forEach(tn=>{const gn=tn.element;h.has(gn)&&(as.set(gn,gn),this._beforeAnimationBuild(tn.player.namespaceId,tn.instruction,Zi))}),E.forEach(tn=>{const gn=tn.element;this._getPreviousPlayers(gn,!1,tn.namespaceId,tn.triggerName,null).forEach(Yn=>{Mi(Zi,gn,[]).push(Yn),Yn.destroy()})});const ta=rr.filter(tn=>Ue(tn,et,gt)),na=new Map;Ka(na,this.driver,Lr,gt,fn.l3).forEach(tn=>{Ue(tn,et,gt)&&ta.push(tn)});const zl=new Map;On.forEach((tn,gn)=>{Ka(zl,this.driver,new Set(tn),et,fn.k1)}),ta.forEach(tn=>{const gn=na.get(tn),mn=zl.get(tn);na.set(tn,new Map([...gn?.entries()??[],...mn?.entries()??[]]))});const Xa=[],Od=[],xd={};ge.forEach(tn=>{const{element:gn,player:mn,instruction:Yn}=tn;if(h.has(gn)){if(Wt.has(gn))return mn.onDestroy(()=>mi(gn,Yn.toStyles)),mn.disabled=!0,mn.overrideTotalTime(Yn.totalTime),void E.push(mn);let li=xd;if(as.size>1){let oo=gn;const bo=[];for(;oo=oo.parentNode;){const Ar=as.get(oo);if(Ar){li=Ar;break}bo.push(oo)}bo.forEach(Ar=>as.set(Ar,li))}const ls=this._buildAnimation(mn.namespaceId,Yn,Zi,F,zl,na);if(mn.setRealPlayer(ls),li===xd)Xa.push(mn);else{const oo=this.playersByElement.get(li);oo&&oo.length&&(mn.parentPlayer=nr(oo)),E.push(mn)}}else ei(gn,Yn.fromStyles),mn.onDestroy(()=>mi(gn,Yn.toStyles)),Od.push(mn),Wt.has(gn)&&E.push(mn)}),Od.forEach(tn=>{const gn=F.get(tn.element);if(gn&&gn.length){const mn=nr(gn);tn.setRealPlayer(mn)}}),E.forEach(tn=>{tn.parentPlayer?tn.syncPlayerEvents(tn.parentPlayer):tn.destroy()});for(let tn=0;tn<rr.length;tn++){const gn=rr[tn],mn=gn[Gi];if(Lo(gn,ya),mn&&mn.hasAnimation)continue;let Yn=[];if(we.size){let ls=we.get(gn);ls&&ls.length&&Yn.push(...ls);let oo=this.driver.query(gn,Fa,!0);for(let bo=0;bo<oo.length;bo++){let Ar=we.get(oo[bo]);Ar&&Ar.length&&Yn.push(...Ar)}}const li=Yn.filter(ls=>!ls.destroyed);li.length?m(this,gn,li):this.processLeaveNode(gn)}return rr.length=0,Xa.forEach(tn=>{this.players.push(tn),tn.onDone(()=>{tn.destroy();const gn=this.players.indexOf(tn);this.players.splice(gn,1)}),tn.play()}),Xa}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,c,h,E,F){let ge=[];if(c){const we=this.playersByQueriedElement.get(a);we&&(ge=we)}else{const we=this.playersByElement.get(a);if(we){const et=!F||F==wa;we.forEach(gt=>{gt.queued||!et&>.triggerName!=E||ge.push(gt)})}}return(h||E)&&(ge=ge.filter(we=>!(h&&h!=we.namespaceId||E&&E!=we.triggerName))),ge}_beforeAnimationBuild(a,c,h){const F=c.element,ge=c.isRemovalTransition?void 0:a,we=c.isRemovalTransition?void 0:c.triggerName;for(const et of c.timelines){const gt=et.element,Wt=gt!==F,Ft=Mi(h,gt,[]);this._getPreviousPlayers(gt,Wt,ge,we,c.toState).forEach(On=>{const ln=On.getRealPlayer();ln.beforeDestroy&&ln.beforeDestroy(),On.destroy(),Ft.push(On)})}ei(F,c.fromStyles)}_buildAnimation(a,c,h,E,F,ge){const we=c.triggerName,et=c.element,gt=[],Wt=new Set,Ft=new Set,Fn=c.timelines.map(ln=>{const pn=ln.element;Wt.add(pn);const rr=pn[Gi];if(rr&&rr.removedBeforeQueried)return new fn.ZN(ln.duration,ln.delay);const Ir=pn!==et,Lr=function D(p){const a=[];return N(p,a),a}((h.get(pn)||Za).map(Zi=>Zi.getRealPlayer())).filter(Zi=>!!Zi.element&&Zi.element===pn),vi=F.get(pn),Wn=ge.get(pn),Wi=tr(this._normalizer,ln.keyframes,vi,Wn),yi=this._buildPlayer(ln,Wi,Lr);if(ln.subTimeline&&E&&Ft.add(pn),Ir){const Zi=new vl(a,we,pn);Zi.setRealPlayer(yi),gt.push(Zi)}return yi});gt.forEach(ln=>{Mi(this.playersByQueriedElement,ln.element,[]).push(ln),ln.onDone(()=>function Fr(p,a,c){let h=p.get(a);if(h){if(h.length){const E=h.indexOf(c);h.splice(E,1)}0==h.length&&p.delete(a)}return h}(this.playersByQueriedElement,ln.element,ln))}),Wt.forEach(ln=>oi(ln,Na));const On=nr(Fn);return On.onDestroy(()=>{Wt.forEach(ln=>Lo(ln,Na)),mi(et,c.toStyles)}),Ft.forEach(ln=>{Mi(E,ln,[]).push(On)}),On}_buildPlayer(a,c,h){return c.length>0?this.driver.animate(a.element,c,a.duration,a.delay,a.easing,h):new fn.ZN(a.duration,a.delay)}}class vl{constructor(a,c,h){this.namespaceId=a,this.triggerName=c,this.element=h,this._player=new fn.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((c,h)=>{c.forEach(E=>ns(a,h,void 0,E))}),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 c=this._player;c.triggerCallback&&a.onStart(()=>c.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,c){Mi(this._queuedCallbacks,a,[]).push(c)}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 c=this._player;c.triggerCallback&&c.triggerCallback(a)}}function yo(p){return p&&1===p.nodeType}function Ic(p,a){const c=p.style.display;return p.style.display=a??"none",c}function Ka(p,a,c,h,E){const F=[];c.forEach(et=>F.push(Ic(et)));const ge=[];h.forEach((et,gt)=>{const Wt=new Map;et.forEach(Ft=>{const Fn=a.computeStyle(gt,Ft,E);Wt.set(Ft,Fn),(!Fn||0==Fn.length)&&(gt[Gi]=du,ge.push(gt))}),p.set(gt,Wt)});let we=0;return c.forEach(et=>Ic(et,F[we++])),ge}function Ya(p,a){const c=new Map;if(p.forEach(we=>c.set(we,[])),0==a.length)return c;const E=new Set(a),F=new Map;function ge(we){if(!we)return 1;let et=F.get(we);if(et)return et;const gt=we.parentNode;return et=c.has(gt)?gt:E.has(gt)?1:ge(gt),F.set(we,et),et}return a.forEach(we=>{const et=ge(we);1!==et&&c.get(et).push(we)}),c}function oi(p,a){p.classList?.add(a)}function Lo(p,a){p.classList?.remove(a)}function m(p,a,c){nr(c).onDone(()=>p.processLeaveNode(a))}function N(p,a){for(let c=0;c<p.length;c++){const h=p[c];h instanceof fn.ZE?N(h.players,a):a.push(h)}}function Ue(p,a,c){const h=c.get(p);if(!h)return!1;let E=a.get(p);return E?h.forEach(F=>E.add(F)):a.set(p,h),c.delete(p),!0}class st{constructor(a,c,h){this.bodyNode=a,this._driver=c,this._normalizer=h,this._triggerCache={},this.onRemovalComplete=(E,F)=>{},this._transitionEngine=new Sa(a,c,h),this._timelineEngine=new gl(a,c,h),this._transitionEngine.onRemovalComplete=(E,F)=>this.onRemovalComplete(E,F)}registerTrigger(a,c,h,E,F){const ge=a+"-"+E;let we=this._triggerCache[ge];if(!we){const et=[],Wt=qr(this._driver,F,et,[]);if(et.length)throw function kt(p,a){return new l.vHH(3404,!1)}();we=function Sc(p,a,c){return new Mc(p,a,c)}(E,Wt,this._normalizer),this._triggerCache[ge]=we}this._transitionEngine.registerTrigger(c,E,we)}register(a,c){this._transitionEngine.register(a,c)}destroy(a,c){this._transitionEngine.destroy(a,c)}onInsert(a,c,h,E){this._transitionEngine.insertNode(a,c,h,E)}onRemove(a,c,h){this._transitionEngine.removeNode(a,c,h)}disableAnimations(a,c){this._transitionEngine.markElementAsDisabled(a,c)}process(a,c,h,E){if("@"==h.charAt(0)){const[F,ge]=Ys(h);this._timelineEngine.command(F,c,ge,E)}else this._transitionEngine.trigger(a,c,h,E)}listen(a,c,h,E,F){if("@"==h.charAt(0)){const[ge,we]=Ys(h);return this._timelineEngine.listen(ge,c,we,F)}return this._transitionEngine.listen(a,c,h,E,F)}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 $t=(()=>{class a{constructor(h,E,F){this._element=h,this._startStyles=E,this._endStyles=F,this._state=0;let ge=a.initialStylesByElement.get(h);ge||a.initialStylesByElement.set(h,ge=new Map),this._initialStyles=ge}start(){this._state<1&&(this._startStyles&&mi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mi(this._element,this._initialStyles),this._endStyles&&(mi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(ei(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ei(this._element,this._endStyles),this._endStyles=null),mi(this._element,this._initialStyles),this._state=3)}}return a.initialStylesByElement=new WeakMap,a})();function Lt(p){let a=null;return p.forEach((c,h)=>{(function en(p){return"display"===p||"position"===p})(h)&&(a=a||new Map,a.set(h,c))}),a}class yn{constructor(a,c,h,E){this.element=a,this.keyframes=c,this.options=h,this._specialStyles=E,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=h.duration,this._delay=h.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 c=[];return a.forEach(h=>{c.push(Object.fromEntries(h))}),c}_triggerWebAnimation(a,c,h){return a.animate(this._convertKeyframesToObject(c),h)}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((h,E)=>{"offset"!==E&&a.set(E,this._finished?h:_(this.element,E))}),this.currentSnapshot=a}triggerCallback(a){const c="start"===a?this._onStartFns:this._onDoneFns;c.forEach(h=>h()),c.length=0}}class Dn{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,c){return!1}containsElement(a,c){return ka(a,c)}getParentElement(a){return Jr(a)}query(a,c,h){return al(a,c,h)}computeStyle(a,c,h){return window.getComputedStyle(a)[c]}animate(a,c,h,E,F,ge=[]){const et={duration:h,delay:E,fill:0==E?"both":"forwards"};F&&(et.easing=F);const gt=new Map,Wt=ge.filter(On=>On instanceof yn);(function f(p,a){return 0===p||0===a})(h,E)&&Wt.forEach(On=>{On.currentSnapshot.forEach((ln,pn)=>gt.set(pn,ln))});let Ft=function La(p){return p.length?p[0]instanceof Map?p:p.map(a=>js(a)):[]}(c).map(On=>po(On));Ft=function v(p,a,c){if(c.size&&a.length){let h=a[0],E=[];if(c.forEach((F,ge)=>{h.has(ge)||E.push(ge),h.set(ge,F)}),E.length)for(let F=1;F<a.length;F++){let ge=a[F];E.forEach(we=>ge.set(we,_(p,we)))}}return a}(a,Ft,gt);const Fn=function _t(p,a){let c=null,h=null;return Array.isArray(a)&&a.length?(c=Lt(a[0]),a.length>1&&(h=Lt(a[a.length-1]))):a instanceof Map&&(c=Lt(a)),c||h?new $t(p,c,h):null}(a,Ft);return new yn(a,Ft,et,Fn)}}let si=(()=>{var p;class a extends fn._j{constructor(h,E){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(E.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(h){const E=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(h)?(0,fn.vP)(h):h;return Tr(this._renderer,null,E,"register",[F]),new ai(E,this._renderer)}}return(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(l.FYo),l.LFG(qt.K0))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})();class ai extends fn.LC{constructor(a,c){super(),this._id=a,this._renderer=c}create(a,c){return new qa(this._id,a,c||{},this._renderer)}}class qa{constructor(a,c,h,E){this.id=a,this.element=c,this._renderer=E,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",h)}_listen(a,c){return this._renderer.listen(this.element,`@@${this.id}:${a}`,c)}_command(a,...c){return Tr(this._renderer,this.element,this.id,a,c)}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 Tr(p,a,c,h,E){return p.setProperty(a,`@@${c}:${h}`,E)}const _i="@.disabled";let ws=(()=>{var p;class a{constructor(h,E,F){this.delegate=h,this.engine=E,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,E.onRemovalComplete=(ge,we)=>{const et=we?.parentNode(ge);et&&we.removeChild(et,ge)}}createRenderer(h,E){const ge=this.delegate.createRenderer(h,E);if(!(h&&E&&E.data&&E.data.animation)){let Ft=this._rendererCache.get(ge);return Ft||(Ft=new Pi("",ge,this.engine,()=>this._rendererCache.delete(ge)),this._rendererCache.set(ge,Ft)),Ft}const we=E.id,et=E.id+"-"+this._currentId;this._currentId++,this.engine.register(et,h);const gt=Ft=>{Array.isArray(Ft)?Ft.forEach(gt):this.engine.registerTrigger(we,et,h,Ft.name,Ft)};return E.data.animation.forEach(gt),new Qa(this,et,ge,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(h,E,F){h>=0&&h<this._microtaskId?this._zone.run(()=>E(F)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ge=>{const[we,et]=ge;we(et)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([E,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(l.FYo),l.LFG(st),l.LFG(l.R0b))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})();class Pi{constructor(a,c,h,E){this.namespaceId=a,this.delegate=c,this.engine=h,this._onDestroy=E}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,c){return this.delegate.createElement(a,c)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,c){this.delegate.appendChild(a,c),this.engine.onInsert(this.namespaceId,c,a,!1)}insertBefore(a,c,h,E=!0){this.delegate.insertBefore(a,c,h),this.engine.onInsert(this.namespaceId,c,a,E)}removeChild(a,c,h){this.engine.onRemove(this.namespaceId,c,this.delegate)}selectRootElement(a,c){return this.delegate.selectRootElement(a,c)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,c,h,E){this.delegate.setAttribute(a,c,h,E)}removeAttribute(a,c,h){this.delegate.removeAttribute(a,c,h)}addClass(a,c){this.delegate.addClass(a,c)}removeClass(a,c){this.delegate.removeClass(a,c)}setStyle(a,c,h,E){this.delegate.setStyle(a,c,h,E)}removeStyle(a,c,h){this.delegate.removeStyle(a,c,h)}setProperty(a,c,h){"@"==c.charAt(0)&&c==_i?this.disableAnimations(a,!!h):this.delegate.setProperty(a,c,h)}setValue(a,c){this.delegate.setValue(a,c)}listen(a,c,h){return this.delegate.listen(a,c,h)}disableAnimations(a,c){this.engine.disableAnimations(a,c)}}class Qa extends Pi{constructor(a,c,h,E,F){super(c,h,E,F),this.factory=a,this.namespaceId=c}setProperty(a,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==_i?this.disableAnimations(a,h=void 0===h||!!h):this.engine.process(this.namespaceId,a,c.slice(1),h):this.delegate.setProperty(a,c,h)}listen(a,c,h){if("@"==c.charAt(0)){const E=function hu(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(a);let F=c.slice(1),ge="";return"@"!=F.charAt(0)&&([F,ge]=function Vl(p){const a=p.indexOf(".");return[p.substring(0,a),p.slice(a+1)]}(F)),this.engine.listen(this.namespaceId,E,F,ge,we=>{this.factory.scheduleListenerCallback(we._data||-1,h,we)})}return this.delegate.listen(a,c,h)}}const fu=[{provide:fn._j,useClass:si},{provide:Rl,useFactory:function yd(){return new Ua}},{provide:st,useClass:(()=>{var p;class a extends st{constructor(h,E,F,ge){super(h.body,E,F)}ngOnDestroy(){this.flush()}}return(p=a).\u0275fac=function(h){return new(h||p)(l.LFG(qt.K0),l.LFG(dn),l.LFG(Rl),l.LFG(l.z2F))},p.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac}),a})()},{provide:l.FYo,useFactory:function Wf(p,a,c){return new ws(p,a,c)},deps:[o.se,st,l.R0b]}],pu=[{provide:dn,useFactory:()=>new Dn},{provide:l.QbO,useValue:"BrowserAnimations"},...fu],io=[{provide:dn,useClass:ll},{provide:l.QbO,useValue:"NoopAnimations"},...fu];let Ac=(()=>{var p;class a{static withConfig(h){return{ngModule:a,providers:h.disableAnimations?io:pu}}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p}),p.\u0275inj=l.cJS({providers:pu,imports:[o.b2]}),a})(),Cd=(()=>{var p;class a{constructor(){function h(E){return E<10?"0"+E:E}this.title="web-tools",Date.prototype.toJSON=function(){return this.getFullYear()+"-"+h(this.getMonth()+1)+"-"+h(this.getDate())+"T"+h(this.getHours())+":"+h(this.getMinutes())+":"+h(this.getSeconds())+".000"}}}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275cmp=l.Xpm({type:p,selectors:[["app-root"]],decls:2,vars:0,template:function(h,E){1&h&&l._UZ(0,"ng-http-loader")(1,"router-outlet")},dependencies:[R.lC,ua]}),a})();const Ed=["custom-toast-component",""];function Dd(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"a",11),l.NdJ("click",function(){l.CHM(c);const E=l.oxw(2);return l.KtG(E.remove())}),l._uU(1," x "),l.qZA()}}function wd(p,a){if(1&p&&(l.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"h4"),l._uU(4),l.qZA()()(),l.TgZ(5,"div",9),l.YNc(6,Dd,2,0,"a",10),l.qZA()()),2&p){const c=l.oxw();l.Udp("display","inactive"===c.state.value?"none":""),l.xp6(2),l.Tol(c.options.titleClass),l.uIk("aria-label",c.title),l.xp6(2),l.Oqu(c.title),l.xp6(2),l.Q6J("ngIf",c.options.closeButton)}}const gu=function(p){return{notitle:p}};function Sd(p,a){if(1&p&&l._UZ(0,"div",12),2&p){const c=l.oxw();l.Tol(c.options.messageClass),l.Q6J("ngClass",l.VKq(4,gu,null==c.title))("innerHTML",c.message,l.oJD)}}function Oc(p,a){if(1&p&&(l.TgZ(0,"div",13),l._uU(1),l.qZA()),2&p){const c=l.oxw();l.Tol(c.options.messageClass),l.Q6J("ngClass",l.VKq(5,gu,null==c.title)),l.uIk("aria-label",c.message),l.xp6(1),l.hij(" ",c.message," ")}}function jl(p,a){if(1&p){const c=l.EpF();l.TgZ(0,"a",11),l.NdJ("click",function(){l.CHM(c);const E=l.oxw();return l.KtG(E.remove())}),l._uU(1," x "),l.qZA()}}function Md(p,a){if(1&p&&(l.TgZ(0,"div"),l._UZ(1,"div",14),l.qZA()),2&p){const c=l.oxw();l.xp6(1),l.Udp("width",c.width+"%")}}let Hl=(()=>{var p;class a extends X.FN{constructor(h,E){super(h,E),this.toastrService=h,this.toastPackage=E}ngOnInit(){}action(h){return h.stopPropagation(),this.toastPackage.triggerAction(),!1}}return(p=a).\u0275fac=function(h){return new(h||p)(l.Y36(X._W),l.Y36(X.PR))},p.\u0275cmp=l.Xpm({type:p,selectors:[["","custom-toast-component",""]],features:[l.qOj],attrs:Ed,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body text-start","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row toast-body text-start","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","text-start"],[1,"my-4"],[1,"col-auto","mt-5","pe-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body","text-start",3,"ngClass"],[1,"toast-progress"]],template:function(h,E){1&h&&(l.TgZ(0,"div",0),l.YNc(1,wd,7,7,"div",1),l.YNc(2,Sd,1,6,"div",2),l.YNc(3,Oc,2,7,"div",3),l.YNc(4,jl,2,0,"a",4),l.YNc(5,Md,2,2,"div",5),l.qZA()),2&h&&(l.xp6(1),l.Q6J("ngIf",E.title),l.xp6(1),l.Q6J("ngIf",E.message&&E.options.enableHtml),l.xp6(1),l.Q6J("ngIf",E.message&&!E.options.enableHtml),l.xp6(1),l.Q6J("ngIf",E.options.closeButton&&null==E.title),l.xp6(1),l.Q6J("ngIf",E.options.progressBar))},dependencies:[qt.mk,qt.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:1px solid gainsboro;border-width:1px;padding-bottom:0rem;padding-top:0rem;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding:10px 15px 10px 0}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button[_ngcontent-%COMP%]{color:#dcdcdc!important}"],data:{animation:[(0,fn.X$)("flyInOut",[(0,fn.SB)("inactive",(0,fn.oB)({opacity:0})),(0,fn.eR)("inactive => active",(0,fn.jt)("400ms ease-out",(0,fn.F4)([(0,fn.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,fn.oB)({transform:"skewX(20deg)",opacity:1}),(0,fn.oB)({transform:"skewX(-5deg)",opacity:1}),(0,fn.oB)({transform:"none",opacity:1})]))),(0,fn.eR)("active => removed",(0,fn.jt)("400ms ease-out",(0,fn.F4)([(0,fn.oB)({opacity:1}),(0,fn.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),a})();var Td=C(7700);const Ul={apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"};let Id=(()=>{var p;class a{}return(p=a).\u0275fac=function(h){return new(h||p)},p.\u0275mod=l.oAB({type:p,bootstrap:[Cd]}),p.\u0275inj=l.cJS({providers:[$e.O,da.a],imports:[o.b2,Ac,qo,Cr.u5,R.Bz,Qt.hO.initializeApp(Ul),Os,_n.JF,Rs.forRoot(),X.Rh.forRoot({toastComponent:Hl,positionClass:"toast-bottom-right",closeButton:!0}),Td.Is,R.Bz]}),a})();(0,l.G48)(),o.q6().bootstrapModule(Id).catch(p=>console.error(p))},5619:(wt,Pe,C)=>{C.d(Pe,{X:()=>l});var o=C(8645);class l extends o.x{constructor(K){super(),this._value=K}get value(){return this.getValue()}_subscribe(K){const Y=super._subscribe(K);return!Y.closed&&K.next(this._value),Y}getValue(){const{hasError:K,thrownError:Y,_value:W}=this;if(K)throw Y;return this._throwIfClosed(),W}next(K){super.next(this._value=K)}}},5592:(wt,Pe,C)=>{C.d(Pe,{y:()=>ue});var o=C(305),l=C(7394),R=C(4850),K=C(8407),Y=C(2653),W=C(4674),re=C(1441);let ue=(()=>{class be{constructor(He){He&&(this._subscribe=He)}lift(He){const tt=new be;return tt.source=this,tt.operator=He,tt}subscribe(He,tt,$e){const X=function Q(be){return be&&be instanceof o.Lv||function V(be){return be&&(0,W.m)(be.next)&&(0,W.m)(be.error)&&(0,W.m)(be.complete)}(be)&&(0,l.Nn)(be)}(He)?He:new o.Hp(He,tt,$e);return(0,re.x)(()=>{const{operator:Ye,source:ut}=this;X.add(Ye?Ye.call(X,ut):ut?this._subscribe(X):this._trySubscribe(X))}),X}_trySubscribe(He){try{return this._subscribe(He)}catch(tt){He.error(tt)}}forEach(He,tt){return new(tt=ie(tt))(($e,X)=>{const Ye=new o.Hp({next:ut=>{try{He(ut)}catch(Ne){X(Ne),Ye.unsubscribe()}},error:X,complete:$e});this.subscribe(Ye)})}_subscribe(He){var tt;return null===(tt=this.source)||void 0===tt?void 0:tt.subscribe(He)}[R.L](){return this}pipe(...He){return(0,K.U)(He)(this)}toPromise(He){return new(He=ie(He))((tt,$e)=>{let X;this.subscribe(Ye=>X=Ye,Ye=>$e(Ye),()=>tt(X))})}}return be.create=Ve=>new be(Ve),be})();function ie(be){var Ve;return null!==(Ve=be??Y.config.Promise)&&void 0!==Ve?Ve:Promise}},7328:(wt,Pe,C)=>{C.d(Pe,{t:()=>R});var o=C(8645),l=C(4552);class R extends o.x{constructor(Y=1/0,W=1/0,re=l.l){super(),this._bufferSize=Y,this._windowTime=W,this._timestampProvider=re,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=W===1/0,this._bufferSize=Math.max(1,Y),this._windowTime=Math.max(1,W)}next(Y){const{isStopped:W,_buffer:re,_infiniteTimeWindow:ue,_timestampProvider:ie,_windowTime:V}=this;W||(re.push(Y),!ue&&re.push(ie.now()+V)),this._trimBuffer(),super.next(Y)}_subscribe(Y){this._throwIfClosed(),this._trimBuffer();const W=this._innerSubscribe(Y),{_infiniteTimeWindow:re,_buffer:ue}=this,ie=ue.slice();for(let V=0;V<ie.length&&!Y.closed;V+=re?1:2)Y.next(ie[V]);return this._checkFinalizedStatuses(Y),W}_trimBuffer(){const{_bufferSize:Y,_timestampProvider:W,_buffer:re,_infiniteTimeWindow:ue}=this,ie=(ue?1:2)*Y;if(Y<1/0&&ie<re.length&&re.splice(0,re.length-ie),!ue){const V=W.now();let Q=0;for(let be=1;be<re.length&&re[be]<=V;be+=2)Q=be;Q&&re.splice(0,Q+1)}}}},8645:(wt,Pe,C)=>{C.d(Pe,{x:()=>re});var o=C(5592),l=C(7394);const K=(0,C(2306).d)(ie=>function(){ie(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Y=C(9039),W=C(1441);let re=(()=>{class ie extends o.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const be=new ue(this,this);return be.operator=Q,be}_throwIfClosed(){if(this.closed)throw new K}next(Q){(0,W.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const be of this.currentObservers)be.next(Q)}})}error(Q){(0,W.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:be}=this;for(;be.length;)be.shift().error(Q)}})}complete(){(0,W.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:be,isStopped:Ve,observers:He}=this;return be||Ve?l.Lc:(this.currentObservers=null,He.push(Q),new l.w0(()=>{this.currentObservers=null,(0,Y.P)(He,Q)}))}_checkFinalizedStatuses(Q){const{hasError:be,thrownError:Ve,isStopped:He}=this;be?Q.error(Ve):He&&Q.complete()}asObservable(){const Q=new o.y;return Q.source=this,Q}}return ie.create=(V,Q)=>new ue(V,Q),ie})();class ue extends re{constructor(V,Q){super(),this.destination=V,this.source=Q}next(V){var Q,be;null===(be=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===be||be.call(Q,V)}error(V){var Q,be;null===(be=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===be||be.call(Q,V)}complete(){var V,Q;null===(Q=null===(V=this.destination)||void 0===V?void 0:V.complete)||void 0===Q||Q.call(V)}_subscribe(V){var Q,be;return null!==(be=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(V))&&void 0!==be?be:l.Lc}}},305:(wt,Pe,C)=>{C.d(Pe,{Hp:()=>$e,Lv:()=>be});var o=C(4674),l=C(7394),R=C(2653),K=C(3894),Y=C(2420);const W=ie("C",void 0,void 0);function ie(q,me,ve){return{kind:q,value:me,error:ve}}var V=C(7599),Q=C(1441);class be extends l.w0{constructor(me){super(),this.isStopped=!1,me?(this.destination=me,(0,l.Nn)(me)&&me.add(this)):this.destination=Ne}static create(me,ve,ye){return new $e(me,ve,ye)}next(me){this.isStopped?ut(function ue(q){return ie("N",q,void 0)}(me),this):this._next(me)}error(me){this.isStopped?ut(function re(q){return ie("E",void 0,q)}(me),this):(this.isStopped=!0,this._error(me))}complete(){this.isStopped?ut(W,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(me){this.destination.next(me)}_error(me){try{this.destination.error(me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ve=Function.prototype.bind;function He(q,me){return Ve.call(q,me)}class tt{constructor(me){this.partialObserver=me}next(me){const{partialObserver:ve}=this;if(ve.next)try{ve.next(me)}catch(ye){X(ye)}}error(me){const{partialObserver:ve}=this;if(ve.error)try{ve.error(me)}catch(ye){X(ye)}else X(me)}complete(){const{partialObserver:me}=this;if(me.complete)try{me.complete()}catch(ve){X(ve)}}}class $e extends be{constructor(me,ve,ye){let rt;if(super(),(0,o.m)(me)||!me)rt={next:me??void 0,error:ve??void 0,complete:ye??void 0};else{let Qe;this&&R.config.useDeprecatedNextContext?(Qe=Object.create(me),Qe.unsubscribe=()=>this.unsubscribe(),rt={next:me.next&&He(me.next,Qe),error:me.error&&He(me.error,Qe),complete:me.complete&&He(me.complete,Qe)}):rt=me}this.destination=new tt(rt)}}function X(q){R.config.useDeprecatedSynchronousErrorHandling?(0,Q.O)(q):(0,K.h)(q)}function ut(q,me){const{onStoppedNotification:ve}=R.config;ve&&V.z.setTimeout(()=>ve(q,me))}const Ne={closed:!0,next:Y.Z,error:function Ye(q){throw q},complete:Y.Z}},7394:(wt,Pe,C)=>{C.d(Pe,{Lc:()=>W,w0:()=>Y,Nn:()=>re});var o=C(4674);const R=(0,C(2306).d)(ie=>function(Q){ie(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((be,Ve)=>`${Ve+1}) ${be.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var K=C(9039);class Y{constructor(V){this.initialTeardown=V,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let V;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const He of Q)He.remove(this);else Q.remove(this);const{initialTeardown:be}=this;if((0,o.m)(be))try{be()}catch(He){V=He instanceof R?He.errors:[He]}const{_finalizers:Ve}=this;if(Ve){this._finalizers=null;for(const He of Ve)try{ue(He)}catch(tt){V=V??[],tt instanceof R?V=[...V,...tt.errors]:V.push(tt)}}if(V)throw new R(V)}}add(V){var Q;if(V&&V!==this)if(this.closed)ue(V);else{if(V instanceof Y){if(V.closed||V._hasParent(this))return;V._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(V)}}_hasParent(V){const{_parentage:Q}=this;return Q===V||Array.isArray(Q)&&Q.includes(V)}_addParent(V){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(V),Q):Q?[Q,V]:V}_removeParent(V){const{_parentage:Q}=this;Q===V?this._parentage=null:Array.isArray(Q)&&(0,K.P)(Q,V)}remove(V){const{_finalizers:Q}=this;Q&&(0,K.P)(Q,V),V instanceof Y&&V._removeParent(this)}}Y.EMPTY=(()=>{const ie=new Y;return ie.closed=!0,ie})();const W=Y.EMPTY;function re(ie){return ie instanceof Y||ie&&"closed"in ie&&(0,o.m)(ie.remove)&&(0,o.m)(ie.add)&&(0,o.m)(ie.unsubscribe)}function ue(ie){(0,o.m)(ie)?ie():ie.unsubscribe()}},2653:(wt,Pe,C)=>{C.d(Pe,{config:()=>o});const o={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(wt,Pe,C)=>{C.d(Pe,{a:()=>V});var o=C(5592),l=C(7453),R=C(2459),K=C(2737),Y=C(7400),W=C(9940),re=C(2714),ue=C(8251),ie=C(7103);function V(...Ve){const He=(0,W.yG)(Ve),tt=(0,W.jO)(Ve),{args:$e,keys:X}=(0,l.D)(Ve);if(0===$e.length)return(0,R.D)([],He);const Ye=new o.y(function Q(Ve,He,tt=K.y){return $e=>{be(He,()=>{const{length:X}=Ve,Ye=new Array(X);let ut=X,Ne=X;for(let q=0;q<X;q++)be(He,()=>{const me=(0,R.D)(Ve[q],He);let ve=!1;me.subscribe((0,ue.x)($e,ye=>{Ye[q]=ye,ve||(ve=!0,Ne--),Ne||$e.next(tt(Ye.slice()))},()=>{--ut||$e.complete()}))},$e)},$e)}}($e,He,X?ut=>(0,re.n)(X,ut):K.y));return tt?Ye.pipe((0,Y.Z)(tt)):Ye}function be(Ve,He,tt){Ve?(0,ie.f)(tt,Ve,He):He()}},5211:(wt,Pe,C)=>{C.d(Pe,{z:()=>Y});var o=C(7537),R=C(9940),K=C(2459);function Y(...W){return function l(){return(0,o.J)(1)}()((0,K.D)(W,(0,R.yG)(W)))}},4911:(wt,Pe,C)=>{C.d(Pe,{P:()=>R});var o=C(5592),l=C(4829);function R(K){return new o.y(Y=>{(0,l.Xf)(K()).subscribe(Y)})}},6232:(wt,Pe,C)=>{C.d(Pe,{E:()=>l});const l=new(C(5592).y)(Y=>Y.complete())},9315:(wt,Pe,C)=>{C.d(Pe,{D:()=>ue});var o=C(5592),l=C(7453),R=C(4829),K=C(9940),Y=C(8251),W=C(7400),re=C(2714);function ue(...ie){const V=(0,K.jO)(ie),{args:Q,keys:be}=(0,l.D)(ie),Ve=new o.y(He=>{const{length:tt}=Q;if(!tt)return void He.complete();const $e=new Array(tt);let X=tt,Ye=tt;for(let ut=0;ut<tt;ut++){let Ne=!1;(0,R.Xf)(Q[ut]).subscribe((0,Y.x)(He,q=>{Ne||(Ne=!0,Ye--),$e[ut]=q},()=>X--,void 0,()=>{(!X||!Ne)&&(Ye||He.next(be?(0,re.n)(be,$e):$e),He.complete())}))}});return V?Ve.pipe((0,W.Z)(V)):Ve}},2459:(wt,Pe,C)=>{C.d(Pe,{D:()=>me});var o=C(4829),l=C(3093),R=C(5137),W=C(5592),ue=C(4971),ie=C(4674),V=C(7103);function be(ve,ye){if(!ve)throw new Error("Iterable cannot be null");return new W.y(rt=>{(0,V.f)(rt,ye,()=>{const Qe=ve[Symbol.asyncIterator]();(0,V.f)(rt,ye,()=>{Qe.next().then(ft=>{ft.done?rt.complete():rt.next(ft.value)})},0,!0)})})}var Ve=C(8382),He=C(4026),tt=C(4266),$e=C(3664),X=C(5726),Ye=C(9853),ut=C(541);function me(ve,ye){return ye?function q(ve,ye){if(null!=ve){if((0,Ve.c)(ve))return function K(ve,ye){return(0,o.Xf)(ve).pipe((0,R.R)(ye),(0,l.Q)(ye))}(ve,ye);if((0,tt.z)(ve))return function re(ve,ye){return new W.y(rt=>{let Qe=0;return ye.schedule(function(){Qe===ve.length?rt.complete():(rt.next(ve[Qe++]),rt.closed||this.schedule())})})}(ve,ye);if((0,He.t)(ve))return function Y(ve,ye){return(0,o.Xf)(ve).pipe((0,R.R)(ye),(0,l.Q)(ye))}(ve,ye);if((0,X.D)(ve))return be(ve,ye);if((0,$e.T)(ve))return function Q(ve,ye){return new W.y(rt=>{let Qe;return(0,V.f)(rt,ye,()=>{Qe=ve[ue.h](),(0,V.f)(rt,ye,()=>{let ft,xt;try{({value:ft,done:xt}=Qe.next())}catch(Bt){return void rt.error(Bt)}xt?rt.complete():rt.next(ft)},0,!0)}),()=>(0,ie.m)(Qe?.return)&&Qe.return()})}(ve,ye);if((0,ut.L)(ve))return function Ne(ve,ye){return be((0,ut.Q)(ve),ye)}(ve,ye)}throw(0,Ye.z)(ve)}(ve,ye):(0,o.Xf)(ve)}},2438:(wt,Pe,C)=>{C.d(Pe,{R:()=>V});var o=C(4829),l=C(5592),R=C(1631),K=C(4266),Y=C(4674),W=C(7400);const re=["addListener","removeListener"],ue=["addEventListener","removeEventListener"],ie=["on","off"];function V(tt,$e,X,Ye){if((0,Y.m)(X)&&(Ye=X,X=void 0),Ye)return V(tt,$e,X).pipe((0,W.Z)(Ye));const[ut,Ne]=function He(tt){return(0,Y.m)(tt.addEventListener)&&(0,Y.m)(tt.removeEventListener)}(tt)?ue.map(q=>me=>tt[q]($e,me,X)):function be(tt){return(0,Y.m)(tt.addListener)&&(0,Y.m)(tt.removeListener)}(tt)?re.map(Q(tt,$e)):function Ve(tt){return(0,Y.m)(tt.on)&&(0,Y.m)(tt.off)}(tt)?ie.map(Q(tt,$e)):[];if(!ut&&(0,K.z)(tt))return(0,R.z)(q=>V(q,$e,X))((0,o.Xf)(tt));if(!ut)throw new TypeError("Invalid event target");return new l.y(q=>{const me=(...ve)=>q.next(1<ve.length?ve:ve[0]);return ut(me),()=>Ne(me)})}function Q(tt,$e){return X=>Ye=>tt[X]($e,Ye)}},4829:(wt,Pe,C)=>{C.d(Pe,{Xf:()=>Ve});var o=C(7582),l=C(4266),R=C(4026),K=C(5592),Y=C(8382),W=C(5726),re=C(9853),ue=C(3664),ie=C(541),V=C(4674),Q=C(3894),be=C(4850);function Ve(q){if(q instanceof K.y)return q;if(null!=q){if((0,Y.c)(q))return function He(q){return new K.y(me=>{const ve=q[be.L]();if((0,V.m)(ve.subscribe))return ve.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(q);if((0,l.z)(q))return function tt(q){return new K.y(me=>{for(let ve=0;ve<q.length&&!me.closed;ve++)me.next(q[ve]);me.complete()})}(q);if((0,R.t)(q))return function $e(q){return new K.y(me=>{q.then(ve=>{me.closed||(me.next(ve),me.complete())},ve=>me.error(ve)).then(null,Q.h)})}(q);if((0,W.D)(q))return Ye(q);if((0,ue.T)(q))return function X(q){return new K.y(me=>{for(const ve of q)if(me.next(ve),me.closed)return;me.complete()})}(q);if((0,ie.L)(q))return function ut(q){return Ye((0,ie.Q)(q))}(q)}throw(0,re.z)(q)}function Ye(q){return new K.y(me=>{(function Ne(q,me){var ve,ye,rt,Qe;return(0,o.mG)(this,void 0,void 0,function*(){try{for(ve=(0,o.KL)(q);!(ye=yield ve.next()).done;)if(me.next(ye.value),me.closed)return}catch(ft){rt={error:ft}}finally{try{ye&&!ye.done&&(Qe=ve.return)&&(yield Qe.call(ve))}finally{if(rt)throw rt.error}}me.complete()})})(q,me).catch(ve=>me.error(ve))})}},3019:(wt,Pe,C)=>{C.d(Pe,{T:()=>W});var o=C(7537),l=C(4829),R=C(6232),K=C(9940),Y=C(2459);function W(...re){const ue=(0,K.yG)(re),ie=(0,K._6)(re,1/0),V=re;return V.length?1===V.length?(0,l.Xf)(V[0]):(0,o.J)(ie)((0,Y.D)(V,ue)):R.E}},2096:(wt,Pe,C)=>{C.d(Pe,{of:()=>R});var o=C(9940),l=C(2459);function R(...K){const Y=(0,o.yG)(K);return(0,l.D)(K,Y)}},8504:(wt,Pe,C)=>{C.d(Pe,{_:()=>R});var o=C(5592),l=C(4674);function R(K,Y){const W=(0,l.m)(K)?K:()=>K,re=ue=>ue.error(W());return new o.y(Y?ue=>Y.schedule(re,0,ue):re)}},9080:(wt,Pe,C)=>{C.d(Pe,{H:()=>Y});var o=C(5592),l=C(6321),R=C(671),K=C(93);function Y(W=0,re,ue=l.P){let ie=-1;return null!=re&&((0,R.K)(re)?ue=re:ie=re),new o.y(V=>{let Q=(0,K.q)(W)?+W-ue.now():W;Q<0&&(Q=0);let be=0;return ue.schedule(function(){V.closed||(V.next(be++),0<=ie?this.schedule(void 0,ie):V.complete())},Q)})}},8251:(wt,Pe,C)=>{C.d(Pe,{x:()=>l});var o=C(305);function l(K,Y,W,re,ue){return new R(K,Y,W,re,ue)}class R extends o.Lv{constructor(Y,W,re,ue,ie,V){super(Y),this.onFinalize=ie,this.shouldUnsubscribe=V,this._next=W?function(Q){try{W(Q)}catch(be){Y.error(be)}}:super._next,this._error=ue?function(Q){try{ue(Q)}catch(be){Y.error(be)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(Q){Y.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Y;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:W}=this;super.unsubscribe(),!W&&(null===(Y=this.onFinalize)||void 0===Y||Y.call(this))}}}},9028:(wt,Pe,C)=>{C.d(Pe,{e:()=>re});var o=C(6321),l=C(9360),R=C(4829),K=C(8251),W=C(9080);function re(ue,ie=o.z){return function Y(ue){return(0,l.e)((ie,V)=>{let Q=!1,be=null,Ve=null,He=!1;const tt=()=>{if(Ve?.unsubscribe(),Ve=null,Q){Q=!1;const X=be;be=null,V.next(X)}He&&V.complete()},$e=()=>{Ve=null,He&&V.complete()};ie.subscribe((0,K.x)(V,X=>{Q=!0,be=X,Ve||(0,R.Xf)(ue(X)).subscribe(Ve=(0,K.x)(V,tt,$e))},()=>{He=!0,(!Q||!Ve||Ve.closed)&&V.complete()}))})}(()=>(0,W.H)(ue,ie))}},6306:(wt,Pe,C)=>{C.d(Pe,{K:()=>K});var o=C(4829),l=C(8251),R=C(9360);function K(Y){return(0,R.e)((W,re)=>{let V,ue=null,ie=!1;ue=W.subscribe((0,l.x)(re,void 0,void 0,Q=>{V=(0,o.Xf)(Y(Q,K(Y)(W))),ue?(ue.unsubscribe(),ue=null,V.subscribe(re)):ie=!0})),ie&&(ue.unsubscribe(),ue=null,V.subscribe(re))})}},6328:(wt,Pe,C)=>{C.d(Pe,{b:()=>R});var o=C(1631),l=C(4674);function R(K,Y){return(0,l.m)(Y)?(0,o.z)(K,Y,1):(0,o.z)(K,1)}},3620:(wt,Pe,C)=>{C.d(Pe,{b:()=>K});var o=C(6321),l=C(9360),R=C(8251);function K(Y,W=o.z){return(0,l.e)((re,ue)=>{let ie=null,V=null,Q=null;const be=()=>{if(ie){ie.unsubscribe(),ie=null;const He=V;V=null,ue.next(He)}};function Ve(){const He=Q+Y,tt=W.now();if(tt<He)return ie=this.schedule(void 0,He-tt),void ue.add(ie);be()}re.subscribe((0,R.x)(ue,He=>{V=He,Q=W.now(),ie||(ie=W.schedule(Ve,Y),ue.add(ie))},()=>{be(),ue.complete()},void 0,()=>{V=ie=null}))})}},3572:(wt,Pe,C)=>{C.d(Pe,{d:()=>R});var o=C(9360),l=C(8251);function R(K){return(0,o.e)((Y,W)=>{let re=!1;Y.subscribe((0,l.x)(W,ue=>{re=!0,W.next(ue)},()=>{re||W.next(K),W.complete()}))})}},3997:(wt,Pe,C)=>{C.d(Pe,{x:()=>K});var o=C(2737),l=C(9360),R=C(8251);function K(W,re=o.y){return W=W??Y,(0,l.e)((ue,ie)=>{let V,Q=!0;ue.subscribe((0,R.x)(ie,be=>{const Ve=re(be);(Q||!W(V,Ve))&&(Q=!1,V=Ve,ie.next(be))}))})}function Y(W,re){return W===re}},2181:(wt,Pe,C)=>{C.d(Pe,{h:()=>R});var o=C(9360),l=C(8251);function R(K,Y){return(0,o.e)((W,re)=>{let ue=0;W.subscribe((0,l.x)(re,ie=>K.call(Y,ie,ue++)&&re.next(ie)))})}},4716:(wt,Pe,C)=>{C.d(Pe,{x:()=>l});var o=C(9360);function l(R){return(0,o.e)((K,Y)=>{try{K.subscribe(Y)}finally{Y.add(R)}})}},1374:(wt,Pe,C)=>{C.d(Pe,{P:()=>re});var o=C(6973),l=C(2181),R=C(8180),K=C(3572),Y=C(3026),W=C(2737);function re(ue,ie){const V=arguments.length>=2;return Q=>Q.pipe(ue?(0,l.h)((be,Ve)=>ue(be,Ve,Q)):W.y,(0,R.q)(1),V?(0,K.d)(ie):(0,Y.T)(()=>new o.K))}},7398:(wt,Pe,C)=>{C.d(Pe,{U:()=>R});var o=C(9360),l=C(8251);function R(K,Y){return(0,o.e)((W,re)=>{let ue=0;W.subscribe((0,l.x)(re,ie=>{re.next(K.call(Y,ie,ue++))}))})}},975:(wt,Pe,C)=>{C.d(Pe,{h:()=>l});var o=C(7398);function l(R){return(0,o.U)(()=>R)}},7537:(wt,Pe,C)=>{C.d(Pe,{J:()=>R});var o=C(1631),l=C(2737);function R(K=1/0){return(0,o.z)(l.y,K)}},1631:(wt,Pe,C)=>{C.d(Pe,{z:()=>ue});var o=C(7398),l=C(4829),R=C(9360),K=C(7103),Y=C(8251),re=C(4674);function ue(ie,V,Q=1/0){return(0,re.m)(V)?ue((be,Ve)=>(0,o.U)((He,tt)=>V(be,He,Ve,tt))((0,l.Xf)(ie(be,Ve))),Q):("number"==typeof V&&(Q=V),(0,R.e)((be,Ve)=>function W(ie,V,Q,be,Ve,He,tt,$e){const X=[];let Ye=0,ut=0,Ne=!1;const q=()=>{Ne&&!X.length&&!Ye&&V.complete()},me=ye=>Ye<be?ve(ye):X.push(ye),ve=ye=>{He&&V.next(ye),Ye++;let rt=!1;(0,l.Xf)(Q(ye,ut++)).subscribe((0,Y.x)(V,Qe=>{Ve?.(Qe),He?me(Qe):V.next(Qe)},()=>{rt=!0},void 0,()=>{if(rt)try{for(Ye--;X.length&&Ye<be;){const Qe=X.shift();tt?(0,K.f)(V,tt,()=>ve(Qe)):ve(Qe)}q()}catch(Qe){V.error(Qe)}}))};return ie.subscribe((0,Y.x)(V,me,()=>{Ne=!0,q()})),()=>{$e?.()}}(be,Ve,ie,Q)))}},3093:(wt,Pe,C)=>{C.d(Pe,{Q:()=>K});var o=C(7103),l=C(9360),R=C(8251);function K(Y,W=0){return(0,l.e)((re,ue)=>{re.subscribe((0,R.x)(ue,ie=>(0,o.f)(ue,Y,()=>ue.next(ie),W),()=>(0,o.f)(ue,Y,()=>ue.complete(),W),ie=>(0,o.f)(ue,Y,()=>ue.error(ie),W)))})}},3020:(wt,Pe,C)=>{C.d(Pe,{B:()=>Y});var o=C(4829),l=C(8645),R=C(305),K=C(9360);function Y(re={}){const{connector:ue=(()=>new l.x),resetOnError:ie=!0,resetOnComplete:V=!0,resetOnRefCountZero:Q=!0}=re;return be=>{let Ve,He,tt,$e=0,X=!1,Ye=!1;const ut=()=>{He?.unsubscribe(),He=void 0},Ne=()=>{ut(),Ve=tt=void 0,X=Ye=!1},q=()=>{const me=Ve;Ne(),me?.unsubscribe()};return(0,K.e)((me,ve)=>{$e++,!Ye&&!X&&ut();const ye=tt=tt??ue();ve.add(()=>{$e--,0===$e&&!Ye&&!X&&(He=W(q,Q))}),ye.subscribe(ve),!Ve&&$e>0&&(Ve=new R.Hp({next:rt=>ye.next(rt),error:rt=>{Ye=!0,ut(),He=W(Ne,ie,rt),ye.error(rt)},complete:()=>{X=!0,ut(),He=W(Ne,V),ye.complete()}}),(0,o.Xf)(me).subscribe(Ve))})(be)}}function W(re,ue,...ie){if(!0===ue)return void re();if(!1===ue)return;const V=new R.Hp({next:()=>{V.unsubscribe(),re()}});return(0,o.Xf)(ue(...ie)).subscribe(V)}},7081:(wt,Pe,C)=>{C.d(Pe,{d:()=>R});var o=C(7328),l=C(3020);function R(K,Y,W){let re,ue=!1;return K&&"object"==typeof K?({bufferSize:re=1/0,windowTime:Y=1/0,refCount:ue=!1,scheduler:W}=K):re=K??1/0,(0,l.B)({connector:()=>new o.t(re,Y,W),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ue})}},7921:(wt,Pe,C)=>{C.d(Pe,{O:()=>K});var o=C(5211),l=C(9940),R=C(9360);function K(...Y){const W=(0,l.yG)(Y);return(0,R.e)((re,ue)=>{(W?(0,o.z)(Y,re,W):(0,o.z)(Y,re)).subscribe(ue)})}},5137:(wt,Pe,C)=>{C.d(Pe,{R:()=>l});var o=C(9360);function l(R,K=0){return(0,o.e)((Y,W)=>{W.add(R.schedule(()=>Y.subscribe(W),K))})}},4664:(wt,Pe,C)=>{C.d(Pe,{w:()=>K});var o=C(4829),l=C(9360),R=C(8251);function K(Y,W){return(0,l.e)((re,ue)=>{let ie=null,V=0,Q=!1;const be=()=>Q&&!ie&&ue.complete();re.subscribe((0,R.x)(ue,Ve=>{ie?.unsubscribe();let He=0;const tt=V++;(0,o.Xf)(Y(Ve,tt)).subscribe(ie=(0,R.x)(ue,$e=>ue.next(W?W(Ve,$e,tt,He++):$e),()=>{ie=null,be()}))},()=>{Q=!0,be()}))})}},8180:(wt,Pe,C)=>{C.d(Pe,{q:()=>K});var o=C(6232),l=C(9360),R=C(8251);function K(Y){return Y<=0?()=>o.E:(0,l.e)((W,re)=>{let ue=0;W.subscribe((0,R.x)(re,ie=>{++ue<=Y&&(re.next(ie),Y<=ue&&re.complete())}))})}},9773:(wt,Pe,C)=>{C.d(Pe,{R:()=>Y});var o=C(9360),l=C(8251),R=C(4829),K=C(2420);function Y(W){return(0,o.e)((re,ue)=>{(0,R.Xf)(W).subscribe((0,l.x)(ue,()=>ue.complete(),K.Z)),!ue.closed&&re.subscribe(ue)})}},9397:(wt,Pe,C)=>{C.d(Pe,{b:()=>Y});var o=C(4674),l=C(9360),R=C(8251),K=C(2737);function Y(W,re,ue){const ie=(0,o.m)(W)||re||ue?{next:W,error:re,complete:ue}:W;return ie?(0,l.e)((V,Q)=>{var be;null===(be=ie.subscribe)||void 0===be||be.call(ie);let Ve=!0;V.subscribe((0,R.x)(Q,He=>{var tt;null===(tt=ie.next)||void 0===tt||tt.call(ie,He),Q.next(He)},()=>{var He;Ve=!1,null===(He=ie.complete)||void 0===He||He.call(ie),Q.complete()},He=>{var tt;Ve=!1,null===(tt=ie.error)||void 0===tt||tt.call(ie,He),Q.error(He)},()=>{var He,tt;Ve&&(null===(He=ie.unsubscribe)||void 0===He||He.call(ie)),null===(tt=ie.finalize)||void 0===tt||tt.call(ie)}))}):K.y}},3026:(wt,Pe,C)=>{C.d(Pe,{T:()=>K});var o=C(6973),l=C(9360),R=C(8251);function K(W=Y){return(0,l.e)((re,ue)=>{let ie=!1;re.subscribe((0,R.x)(ue,V=>{ie=!0,ue.next(V)},()=>ie?ue.complete():ue.error(W())))})}function Y(){return new o.K}},1954:(wt,Pe,C)=>{C.d(Pe,{o:()=>Y});var o=C(7394);class l extends o.w0{constructor(re,ue){super()}schedule(re,ue=0){return this}}const R={setInterval(W,re,...ue){const{delegate:ie}=R;return ie?.setInterval?ie.setInterval(W,re,...ue):setInterval(W,re,...ue)},clearInterval(W){const{delegate:re}=R;return(re?.clearInterval||clearInterval)(W)},delegate:void 0};var K=C(9039);class Y extends l{constructor(re,ue){super(re,ue),this.scheduler=re,this.work=ue,this.pending=!1}schedule(re,ue=0){var ie;if(this.closed)return this;this.state=re;const V=this.id,Q=this.scheduler;return null!=V&&(this.id=this.recycleAsyncId(Q,V,ue)),this.pending=!0,this.delay=ue,this.id=null!==(ie=this.id)&&void 0!==ie?ie:this.requestAsyncId(Q,this.id,ue),this}requestAsyncId(re,ue,ie=0){return R.setInterval(re.flush.bind(re,this),ie)}recycleAsyncId(re,ue,ie=0){if(null!=ie&&this.delay===ie&&!1===this.pending)return ue;null!=ue&&R.clearInterval(ue)}execute(re,ue){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ie=this._execute(re,ue);if(ie)return ie;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(re,ue){let V,ie=!1;try{this.work(re)}catch(Q){ie=!0,V=Q||new Error("Scheduled action threw falsy error")}if(ie)return this.unsubscribe(),V}unsubscribe(){if(!this.closed){const{id:re,scheduler:ue}=this,{actions:ie}=ue;this.work=this.state=this.scheduler=null,this.pending=!1,(0,K.P)(ie,this),null!=re&&(this.id=this.recycleAsyncId(ue,re,null)),this.delay=null,super.unsubscribe()}}}},2631:(wt,Pe,C)=>{C.d(Pe,{v:()=>R});var o=C(4552);class l{constructor(Y,W=l.now){this.schedulerActionCtor=Y,this.now=W}schedule(Y,W=0,re){return new this.schedulerActionCtor(this,Y).schedule(re,W)}}l.now=o.l.now;class R extends l{constructor(Y,W=l.now){super(Y,W),this.actions=[],this._active=!1}flush(Y){const{actions:W}=this;if(this._active)return void W.push(Y);let re;this._active=!0;do{if(re=Y.execute(Y.state,Y.delay))break}while(Y=W.shift());if(this._active=!1,re){for(;Y=W.shift();)Y.unsubscribe();throw re}}}},927:(wt,Pe,C)=>{C.d(Pe,{Z:()=>re});var o=C(1954),l=C(7394);const R={schedule(ie){let V=requestAnimationFrame,Q=cancelAnimationFrame;const{delegate:be}=R;be&&(V=be.requestAnimationFrame,Q=be.cancelAnimationFrame);const Ve=V(He=>{Q=void 0,ie(He)});return new l.w0(()=>Q?.(Ve))},requestAnimationFrame(...ie){const{delegate:V}=R;return(V?.requestAnimationFrame||requestAnimationFrame)(...ie)},cancelAnimationFrame(...ie){const{delegate:V}=R;return(V?.cancelAnimationFrame||cancelAnimationFrame)(...ie)},delegate:void 0};var Y=C(2631);const re=new class W extends Y.v{flush(V){this._active=!0;const Q=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let Ve;V=V||be.shift();do{if(Ve=V.execute(V.state,V.delay))break}while((V=be[0])&&V.id===Q&&be.shift());if(this._active=!1,Ve){for(;(V=be[0])&&V.id===Q&&be.shift();)V.unsubscribe();throw Ve}}}(class K extends o.o{constructor(V,Q){super(V,Q),this.scheduler=V,this.work=Q}requestAsyncId(V,Q,be=0){return null!==be&&be>0?super.requestAsyncId(V,Q,be):(V.actions.push(this),V._scheduled||(V._scheduled=R.requestAnimationFrame(()=>V.flush(void 0))))}recycleAsyncId(V,Q,be=0){var Ve;if(null!=be?be>0:this.delay>0)return super.recycleAsyncId(V,Q,be);const{actions:He}=V;null!=Q&&(null===(Ve=He[He.length-1])||void 0===Ve?void 0:Ve.id)!==Q&&(R.cancelAnimationFrame(Q),V._scheduled=void 0)}})},6410:(wt,Pe,C)=>{C.d(Pe,{E:()=>He});var o=C(1954);let R,l=1;const K={};function Y($e){return $e in K&&(delete K[$e],!0)}const W={setImmediate($e){const X=l++;return K[X]=!0,R||(R=Promise.resolve()),R.then(()=>Y(X)&&$e()),X},clearImmediate($e){Y($e)}},{setImmediate:ue,clearImmediate:ie}=W,V={setImmediate(...$e){const{delegate:X}=V;return(X?.setImmediate||ue)(...$e)},clearImmediate($e){const{delegate:X}=V;return(X?.clearImmediate||ie)($e)},delegate:void 0};var be=C(2631);const He=new class Ve extends be.v{flush(X){this._active=!0;const Ye=this._scheduled;this._scheduled=void 0;const{actions:ut}=this;let Ne;X=X||ut.shift();do{if(Ne=X.execute(X.state,X.delay))break}while((X=ut[0])&&X.id===Ye&&ut.shift());if(this._active=!1,Ne){for(;(X=ut[0])&&X.id===Ye&&ut.shift();)X.unsubscribe();throw Ne}}}(class Q extends o.o{constructor(X,Ye){super(X,Ye),this.scheduler=X,this.work=Ye}requestAsyncId(X,Ye,ut=0){return null!==ut&&ut>0?super.requestAsyncId(X,Ye,ut):(X.actions.push(this),X._scheduled||(X._scheduled=V.setImmediate(X.flush.bind(X,void 0))))}recycleAsyncId(X,Ye,ut=0){var Ne;if(null!=ut?ut>0:this.delay>0)return super.recycleAsyncId(X,Ye,ut);const{actions:q}=X;null!=Ye&&(null===(Ne=q[q.length-1])||void 0===Ne?void 0:Ne.id)!==Ye&&(V.clearImmediate(Ye),X._scheduled===Ye&&(X._scheduled=void 0))}})},6321:(wt,Pe,C)=>{C.d(Pe,{P:()=>K,z:()=>R});var o=C(1954);const R=new(C(2631).v)(o.o),K=R},4552:(wt,Pe,C)=>{C.d(Pe,{l:()=>o});const o={now:()=>(o.delegate||Date).now(),delegate:void 0}},7599:(wt,Pe,C)=>{C.d(Pe,{z:()=>o});const o={setTimeout(l,R,...K){const{delegate:Y}=o;return Y?.setTimeout?Y.setTimeout(l,R,...K):setTimeout(l,R,...K)},clearTimeout(l){const{delegate:R}=o;return(R?.clearTimeout||clearTimeout)(l)},delegate:void 0}},4971:(wt,Pe,C)=>{C.d(Pe,{h:()=>l});const l=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(wt,Pe,C)=>{C.d(Pe,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(wt,Pe,C)=>{C.d(Pe,{K:()=>l});const l=(0,C(2306).d)(R=>function(){R(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(wt,Pe,C)=>{C.d(Pe,{_6:()=>W,jO:()=>K,yG:()=>Y});var o=C(4674),l=C(671);function R(re){return re[re.length-1]}function K(re){return(0,o.m)(R(re))?re.pop():void 0}function Y(re){return(0,l.K)(R(re))?re.pop():void 0}function W(re,ue){return"number"==typeof R(re)?re.pop():ue}},7453:(wt,Pe,C)=>{C.d(Pe,{D:()=>Y});const{isArray:o}=Array,{getPrototypeOf:l,prototype:R,keys:K}=Object;function Y(re){if(1===re.length){const ue=re[0];if(o(ue))return{args:ue,keys:null};if(function W(re){return re&&"object"==typeof re&&l(re)===R}(ue)){const ie=K(ue);return{args:ie.map(V=>ue[V]),keys:ie}}}return{args:re,keys:null}}},9039:(wt,Pe,C)=>{function o(l,R){if(l){const K=l.indexOf(R);0<=K&&l.splice(K,1)}}C.d(Pe,{P:()=>o})},2306:(wt,Pe,C)=>{function o(l){const K=l(Y=>{Error.call(Y),Y.stack=(new Error).stack});return K.prototype=Object.create(Error.prototype),K.prototype.constructor=K,K}C.d(Pe,{d:()=>o})},2714:(wt,Pe,C)=>{function o(l,R){return l.reduce((K,Y,W)=>(K[Y]=R[W],K),{})}C.d(Pe,{n:()=>o})},1441:(wt,Pe,C)=>{C.d(Pe,{O:()=>K,x:()=>R});var o=C(2653);let l=null;function R(Y){if(o.config.useDeprecatedSynchronousErrorHandling){const W=!l;if(W&&(l={errorThrown:!1,error:null}),Y(),W){const{errorThrown:re,error:ue}=l;if(l=null,re)throw ue}}else Y()}function K(Y){o.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=Y)}},7103:(wt,Pe,C)=>{function o(l,R,K,Y=0,W=!1){const re=R.schedule(function(){K(),W?l.add(this.schedule(null,Y)):this.unsubscribe()},Y);if(l.add(re),!W)return re}C.d(Pe,{f:()=>o})},2737:(wt,Pe,C)=>{function o(l){return l}C.d(Pe,{y:()=>o})},4266:(wt,Pe,C)=>{C.d(Pe,{z:()=>o});const o=l=>l&&"number"==typeof l.length&&"function"!=typeof l},5726:(wt,Pe,C)=>{C.d(Pe,{D:()=>l});var o=C(4674);function l(R){return Symbol.asyncIterator&&(0,o.m)(R?.[Symbol.asyncIterator])}},93:(wt,Pe,C)=>{function o(l){return l instanceof Date&&!isNaN(l)}C.d(Pe,{q:()=>o})},4674:(wt,Pe,C)=>{function o(l){return"function"==typeof l}C.d(Pe,{m:()=>o})},8382:(wt,Pe,C)=>{C.d(Pe,{c:()=>R});var o=C(4850),l=C(4674);function R(K){return(0,l.m)(K[o.L])}},3664:(wt,Pe,C)=>{C.d(Pe,{T:()=>R});var o=C(4971),l=C(4674);function R(K){return(0,l.m)(K?.[o.h])}},4026:(wt,Pe,C)=>{C.d(Pe,{t:()=>l});var o=C(4674);function l(R){return(0,o.m)(R?.then)}},541:(wt,Pe,C)=>{C.d(Pe,{L:()=>K,Q:()=>R});var o=C(7582),l=C(4674);function R(Y){return(0,o.FC)(this,arguments,function*(){const re=Y.getReader();try{for(;;){const{value:ue,done:ie}=yield(0,o.qq)(re.read());if(ie)return yield(0,o.qq)(void 0);yield yield(0,o.qq)(ue)}}finally{re.releaseLock()}})}function K(Y){return(0,l.m)(Y?.getReader)}},671:(wt,Pe,C)=>{C.d(Pe,{K:()=>l});var o=C(4674);function l(R){return R&&(0,o.m)(R.schedule)}},9360:(wt,Pe,C)=>{C.d(Pe,{A:()=>l,e:()=>R});var o=C(4674);function l(K){return(0,o.m)(K?.lift)}function R(K){return Y=>{if(l(Y))return Y.lift(function(W){try{return K(W,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(wt,Pe,C)=>{C.d(Pe,{Z:()=>K});var o=C(7398);const{isArray:l}=Array;function K(Y){return(0,o.U)(W=>function R(Y,W){return l(W)?Y(...W):Y(W)}(Y,W))}},2420:(wt,Pe,C)=>{function o(){}C.d(Pe,{Z:()=>o})},8407:(wt,Pe,C)=>{C.d(Pe,{U:()=>R,z:()=>l});var o=C(2737);function l(...K){return R(K)}function R(K){return 0===K.length?o.y:1===K.length?K[0]:function(W){return K.reduce((re,ue)=>ue(re),W)}}},3894:(wt,Pe,C)=>{C.d(Pe,{h:()=>R});var o=C(2653),l=C(7599);function R(K){l.z.setTimeout(()=>{const{onUnhandledError:Y}=o.config;if(!Y)throw K;Y(K)})}},9853:(wt,Pe,C)=>{function o(l){return new TypeError(`You provided ${null!==l&&"object"==typeof l?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Pe,{z:()=>o})},6825:(wt,Pe,C)=>{C.d(Pe,{F4:()=>V,IO:()=>tt,LC:()=>l,SB:()=>ie,X$:()=>K,ZE:()=>Ye,ZN:()=>X,_7:()=>He,_j:()=>o,eR:()=>Q,jt:()=>Y,k1:()=>ut,l3:()=>R,oB:()=>ue,oQ:()=>be,pV:()=>Ve,ru:()=>W,vP:()=>re});class o{}class l{}const R="*";function K(Ne,q){return{type:7,name:Ne,definitions:q,options:{}}}function Y(Ne,q=null){return{type:4,styles:q,timings:Ne}}function W(Ne,q=null){return{type:3,steps:Ne,options:q}}function re(Ne,q=null){return{type:2,steps:Ne,options:q}}function ue(Ne){return{type:6,styles:Ne,offset:null}}function ie(Ne,q,me){return{type:0,name:Ne,styles:q,options:me}}function V(Ne){return{type:5,steps:Ne}}function Q(Ne,q,me=null){return{type:1,expr:Ne,animation:q,options:me}}function be(Ne,q=null){return{type:8,animation:Ne,options:q}}function Ve(Ne=null){return{type:9,options:Ne}}function He(Ne,q=null){return{type:10,animation:Ne,options:q}}function tt(Ne,q,me=null){return{type:11,selector:Ne,animation:q,options:me}}class X{constructor(q=0,me=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=q+me}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}onStart(q){this._originalOnStartFns.push(q),this._onStartFns.push(q)}onDone(q){this._originalOnDoneFns.push(q),this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(q=>q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(q){this._position=this.totalTime?q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(q){const me="start"==q?this._onStartFns:this._onDoneFns;me.forEach(ve=>ve()),me.length=0}}class Ye{constructor(q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=q;let me=0,ve=0,ye=0;const rt=this.players.length;0==rt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Qe=>{Qe.onDone(()=>{++me==rt&&this._onFinish()}),Qe.onDestroy(()=>{++ve==rt&&this._onDestroy()}),Qe.onStart(()=>{++ye==rt&&this._onStart()})}),this.totalTime=this.players.reduce((Qe,ft)=>Math.max(Qe,ft.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}init(){this.players.forEach(q=>q.init())}onStart(q){this._onStartFns.push(q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(q=>q()),this._onStartFns=[])}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(q=>q.play())}pause(){this.players.forEach(q=>q.pause())}restart(){this.players.forEach(q=>q.restart())}finish(){this._onFinish(),this.players.forEach(q=>q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(q=>q.destroy()),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this.players.forEach(q=>q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(q){const me=q*this.totalTime;this.players.forEach(ve=>{const ye=ve.totalTime?Math.min(1,me/ve.totalTime):1;ve.setPosition(ye)})}getPosition(){const q=this.players.reduce((me,ve)=>null===me||ve.totalTime>me.totalTime?ve:me,null);return null!=q?q.getPosition():0}beforeDestroy(){this.players.forEach(q=>{q.beforeDestroy&&q.beforeDestroy()})}triggerCallback(q){const me="start"==q?this._onStartFns:this._onDoneFns;me.forEach(ve=>ve()),me.length=0}}const ut="!"},7849:(wt,Pe,C)=>{C.d(Pe,{rt:()=>j,s1:()=>ke,$s:()=>Me,kH:()=>z,mK:()=>pe,Em:()=>Ct,tE:()=>Oe,qV:()=>Ie,qm:()=>H,ic:()=>jt,Kd:()=>Pt,Zf:()=>sn,X6:()=>Je,yG:()=>pt,iD:()=>Cn});var o=C(6814),l=C(5879),R=C(2831),K=C(8645),Y=C(7394),W=C(5619),re=C(2096),ue=C(6028),ie=C(9397),V=C(3620),Q=C(2181),be=C(7398),Ve=C(8180);function He(L){return(0,Q.h)((J,xe)=>L<=xe)}var tt=C(3997),$e=C(9773),X=C(2495),Ye=C(7131),ut=C(2572),Ne=C(5211),q=C(5592),me=C(7921);const ye=new Set;let rt,Qe=(()=>{var L;class J{constructor(ce,Se){this._platform=ce,this._nonce=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xt}matchMedia(ce){return(this._platform.WEBKIT||this._platform.BLINK)&&function ft(L,J){if(!ye.has(L))try{rt||(rt=document.createElement("style"),J&&(rt.nonce=J),rt.setAttribute("type","text/css"),document.head.appendChild(rt)),rt.sheet&&(rt.sheet.insertRule(`@media ${L} {body{ }}`,0),ye.add(L))}catch(xe){console.error(xe)}}(ce,this._nonce),this._matchMedia(ce)}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4),l.LFG(l.Ojb,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function xt(L){return{matches:"all"===L||""===L,media:L,addListener:()=>{},removeListener:()=>{}}}let Bt=(()=>{var L;class J{constructor(ce,Se){this._mediaMatcher=ce,this._zone=Se,this._queries=new Map,this._destroySubject=new K.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ce){return Rt((0,X.Eq)(ce)).some(at=>this._registerQuery(at).mql.matches)}observe(ce){const at=Rt((0,X.Eq)(ce)).map(se=>this._registerQuery(se).observable);let de=(0,ut.a)(at);return de=(0,Ne.z)(de.pipe((0,Ve.q)(1)),de.pipe(He(1),(0,V.b)(0))),de.pipe((0,be.U)(se=>{const ot={matches:!1,breakpoints:{}};return se.forEach(({matches:le,query:Ee})=>{ot.matches=ot.matches||le,ot.breakpoints[Ee]=le}),ot}))}_registerQuery(ce){if(this._queries.has(ce))return this._queries.get(ce);const Se=this._mediaMatcher.matchMedia(ce),de={observable:new q.y(se=>{const ot=le=>this._zone.run(()=>se.next(le));return Se.addListener(ot),()=>{Se.removeListener(ot)}}).pipe((0,me.O)(Se),(0,be.U)(({matches:se})=>({query:ce,matches:se})),(0,$e.R)(this._destroySubject)),mql:Se};return this._queries.set(ce,de),de}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(Qe),l.LFG(l.R0b))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function Rt(L){return L.map(J=>J.split(",")).reduce((J,xe)=>J.concat(xe)).map(J=>J.trim())}const qt=" ";function sn(L,J,xe){const ce=wn(L,J);ce.some(Se=>Se.trim()==xe.trim())||(ce.push(xe.trim()),L.setAttribute(J,ce.join(qt)))}function Cn(L,J,xe){const Se=wn(L,J).filter(at=>at!=xe.trim());Se.length?L.setAttribute(J,Se.join(qt)):L.removeAttribute(J)}function wn(L,J){return(L.getAttribute(J)||"").match(/\S+/g)||[]}const Xe="cdk-describedby-message",Ze="cdk-describedby-host";let De=0,Me=(()=>{var L;class J{constructor(ce,Se){this._platform=Se,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+De++,this._document=ce,this._id=(0,l.f3M)(l.AFp)+"-"+De++}describe(ce,Se,at){if(!this._canBeDescribed(ce,Se))return;const de=Ce(Se,at);"string"!=typeof Se?(Be(Se,this._id),this._messageRegistry.set(de,{messageElement:Se,referenceCount:0})):this._messageRegistry.has(de)||this._createMessageElement(Se,at),this._isElementDescribedByMessage(ce,de)||this._addMessageReference(ce,de)}removeDescription(ce,Se,at){if(!Se||!this._isElementNode(ce))return;const de=Ce(Se,at);if(this._isElementDescribedByMessage(ce,de)&&this._removeMessageReference(ce,de),"string"==typeof Se){const se=this._messageRegistry.get(de);se&&0===se.referenceCount&&this._deleteMessageElement(de)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const ce=this._document.querySelectorAll(`[${Ze}="${this._id}"]`);for(let Se=0;Se<ce.length;Se++)this._removeCdkDescribedByReferenceIds(ce[Se]),ce[Se].removeAttribute(Ze);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(ce,Se){const at=this._document.createElement("div");Be(at,this._id),at.textContent=ce,Se&&at.setAttribute("role",Se),this._createMessagesContainer(),this._messagesContainer.appendChild(at),this._messageRegistry.set(Ce(ce,Se),{messageElement:at,referenceCount:0})}_deleteMessageElement(ce){this._messageRegistry.get(ce)?.messageElement?.remove(),this._messageRegistry.delete(ce)}_createMessagesContainer(){if(this._messagesContainer)return;const ce="cdk-describedby-message-container",Se=this._document.querySelectorAll(`.${ce}[platform="server"]`);for(let de=0;de<Se.length;de++)Se[de].remove();const at=this._document.createElement("div");at.style.visibility="hidden",at.classList.add(ce),at.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&at.setAttribute("platform","server"),this._document.body.appendChild(at),this._messagesContainer=at}_removeCdkDescribedByReferenceIds(ce){const Se=wn(ce,"aria-describedby").filter(at=>0!=at.indexOf(Xe));ce.setAttribute("aria-describedby",Se.join(" "))}_addMessageReference(ce,Se){const at=this._messageRegistry.get(Se);sn(ce,"aria-describedby",at.messageElement.id),ce.setAttribute(Ze,this._id),at.referenceCount++}_removeMessageReference(ce,Se){const at=this._messageRegistry.get(Se);at.referenceCount--,Cn(ce,"aria-describedby",at.messageElement.id),ce.removeAttribute(Ze)}_isElementDescribedByMessage(ce,Se){const at=wn(ce,"aria-describedby"),de=this._messageRegistry.get(Se),se=de&&de.messageElement.id;return!!se&&-1!=at.indexOf(se)}_canBeDescribed(ce,Se){if(!this._isElementNode(ce))return!1;if(Se&&"object"==typeof Se)return!0;const at=null==Se?"":`${Se}`.trim(),de=ce.getAttribute("aria-label");return!(!at||de&&de.trim()===at)}_isElementNode(ce){return ce.nodeType===this._document.ELEMENT_NODE}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(o.K0),l.LFG(R.t4))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function Ce(L,J){return"string"==typeof L?`${J||""}/${L}`:L}function Be(L,J){L.id||(L.id=`${Xe}-${J}-${De++}`)}class Fe{constructor(J){this._items=J,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new K.x,this._typeaheadSubscription=Y.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=xe=>xe.disabled,this._pressedLetters=[],this.tabOut=new K.x,this.change=new K.x,J instanceof l.n_E&&(this._itemChangesSubscription=J.changes.subscribe(xe=>{if(this._activeItem){const Se=xe.toArray().indexOf(this._activeItem);Se>-1&&Se!==this._activeItemIndex&&(this._activeItemIndex=Se)}}))}skipPredicate(J){return this._skipPredicateFn=J,this}withWrap(J=!0){return this._wrap=J,this}withVerticalOrientation(J=!0){return this._vertical=J,this}withHorizontalOrientation(J){return this._horizontal=J,this}withAllowedModifierKeys(J){return this._allowedModifierKeys=J,this}withTypeAhead(J=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ie.b)(xe=>this._pressedLetters.push(xe)),(0,V.b)(J),(0,Q.h)(()=>this._pressedLetters.length>0),(0,be.U)(()=>this._pressedLetters.join(""))).subscribe(xe=>{const ce=this._getItemsArray();for(let Se=1;Se<ce.length+1;Se++){const at=(this._activeItemIndex+Se)%ce.length,de=ce[at];if(!this._skipPredicateFn(de)&&0===de.getLabel().toUpperCase().trim().indexOf(xe)){this.setActiveItem(at);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(J=!0){return this._homeAndEnd=J,this}withPageUpDown(J=!0,xe=10){return this._pageUpAndDown={enabled:J,delta:xe},this}setActiveItem(J){const xe=this._activeItem;this.updateActiveItem(J),this._activeItem!==xe&&this.change.next(this._activeItemIndex)}onKeydown(J){const xe=J.keyCode,Se=["altKey","ctrlKey","metaKey","shiftKey"].every(at=>!J[at]||this._allowedModifierKeys.indexOf(at)>-1);switch(xe){case ue.Mf:return void this.tabOut.next();case ue.JH:if(this._vertical&&Se){this.setNextItemActive();break}return;case ue.LH:if(this._vertical&&Se){this.setPreviousItemActive();break}return;case ue.SV:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ue.oh:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ue.Sd:if(this._homeAndEnd&&Se){this.setFirstItemActive();break}return;case ue.uR:if(this._homeAndEnd&&Se){this.setLastItemActive();break}return;case ue.Ku:if(this._pageUpAndDown.enabled&&Se){const at=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(at>0?at:0,1);break}return;case ue.VM:if(this._pageUpAndDown.enabled&&Se){const at=this._activeItemIndex+this._pageUpAndDown.delta,de=this._getItemsArray().length;this._setActiveItemByIndex(at<de?at:de-1,-1);break}return;default:return void((Se||(0,ue.Vb)(J,"shiftKey"))&&(J.key&&1===J.key.length?this._letterKeyStream.next(J.key.toLocaleUpperCase()):(xe>=ue.A&&xe<=ue.Z||xe>=ue.xE&&xe<=ue.aO)&&this._letterKeyStream.next(String.fromCharCode(xe))))}this._pressedLetters=[],J.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(J){const xe=this._getItemsArray(),ce="number"==typeof J?J:xe.indexOf(J);this._activeItem=xe[ce]??null,this._activeItemIndex=ce}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(J){this._wrap?this._setActiveInWrapMode(J):this._setActiveInDefaultMode(J)}_setActiveInWrapMode(J){const xe=this._getItemsArray();for(let ce=1;ce<=xe.length;ce++){const Se=(this._activeItemIndex+J*ce+xe.length)%xe.length;if(!this._skipPredicateFn(xe[Se]))return void this.setActiveItem(Se)}}_setActiveInDefaultMode(J){this._setActiveItemByIndex(this._activeItemIndex+J,J)}_setActiveItemByIndex(J,xe){const ce=this._getItemsArray();if(ce[J]){for(;this._skipPredicateFn(ce[J]);)if(!ce[J+=xe])return;this.setActiveItem(J)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class ke extends Fe{setActiveItem(J){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(J),this.activeItem&&this.activeItem.setActiveStyles()}}class Ct extends Fe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(J){return this._origin=J,this}setActiveItem(J){super.setActiveItem(J),this.activeItem&&this.activeItem.focus(this._origin)}}let jt=(()=>{var L;class J{constructor(ce){this._platform=ce}isDisabled(ce){return ce.hasAttribute("disabled")}isVisible(ce){return function nn(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}(ce)&&"visible"===getComputedStyle(ce).visibility}isTabbable(ce){if(!this._platform.isBrowser)return!1;const Se=function Kt(L){try{return L.frameElement}catch{return null}}(function ze(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}(ce));if(Se&&(-1===xn(Se)||!this.isVisible(Se)))return!1;let at=ce.nodeName.toLowerCase(),de=xn(ce);return ce.hasAttribute("contenteditable")?-1!==de:!("iframe"===at||"object"===at||this._platform.WEBKIT&&this._platform.IOS&&!function Hn(L){let J=L.nodeName.toLowerCase(),xe="input"===J&&L.type;return"text"===xe||"password"===xe||"select"===J||"textarea"===J}(ce))&&("audio"===at?!!ce.hasAttribute("controls")&&-1!==de:"video"===at?-1!==de&&(null!==de||this._platform.FIREFOX||ce.hasAttribute("controls")):ce.tabIndex>=0)}isFocusable(ce,Se){return function Un(L){return!function Xt(L){return function Sn(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function rn(L){let J=L.nodeName.toLowerCase();return"input"===J||"select"===J||"button"===J||"textarea"===J}(L)||function an(L){return function zt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Vn(L))}(ce)&&!this.isDisabled(ce)&&(Se?.ignoreVisibility||this.isVisible(ce))}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();function Vn(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let J=L.getAttribute("tabindex");return!(!J||isNaN(parseInt(J,10)))}function xn(L){if(!Vn(L))return null;const J=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(J)?-1:J}class G{get enabled(){return this._enabled}set enabled(J){this._enabled=J,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}constructor(J,xe,ce,Se,at=!1){this._element=J,this._checker=xe,this._ngZone=ce,this._document=Se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,at||this.attachAnchors()}destroy(){const J=this._startAnchor,xe=this._endAnchor;J&&(J.removeEventListener("focus",this.startAnchorListener),J.remove()),xe&&(xe.removeEventListener("focus",this.endAnchorListener),xe.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(J){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusInitialElement(J)))})}focusFirstTabbableElementWhenReady(J){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusFirstTabbableElement(J)))})}focusLastTabbableElementWhenReady(J){return new Promise(xe=>{this._executeOnStable(()=>xe(this.focusLastTabbableElement(J)))})}_getRegionBoundary(J){const xe=this._element.querySelectorAll(`[cdk-focus-region-${J}], [cdkFocusRegion${J}], [cdk-focus-${J}]`);return"start"==J?xe.length?xe[0]:this._getFirstTabbableElement(this._element):xe.length?xe[xe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(J){const xe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(xe){if(!this._checker.isFocusable(xe)){const ce=this._getFirstTabbableElement(xe);return ce?.focus(J),!!ce}return xe.focus(J),!0}return this.focusFirstTabbableElement(J)}focusFirstTabbableElement(J){const xe=this._getRegionBoundary("start");return xe&&xe.focus(J),!!xe}focusLastTabbableElement(J){const xe=this._getRegionBoundary("end");return xe&&xe.focus(J),!!xe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const xe=J.children;for(let ce=0;ce<xe.length;ce++){const Se=xe[ce].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(xe[ce]):null;if(Se)return Se}return null}_getLastTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const xe=J.children;for(let ce=xe.length-1;ce>=0;ce--){const Se=xe[ce].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(xe[ce]):null;if(Se)return Se}return null}_createAnchor(){const J=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,J),J.classList.add("cdk-visually-hidden"),J.classList.add("cdk-focus-trap-anchor"),J.setAttribute("aria-hidden","true"),J}_toggleAnchorTabIndex(J,xe){J?xe.setAttribute("tabindex","0"):xe.removeAttribute("tabindex")}toggleAnchors(J){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}_executeOnStable(J){this._ngZone.isStable?J():this._ngZone.onStable.pipe((0,Ve.q)(1)).subscribe(J)}}let Ie=(()=>{var L;class J{constructor(ce,Se,at){this._checker=ce,this._ngZone=Se,this._document=at}create(ce,Se=!1){return new G(ce,this._checker,this._ngZone,this._document,Se)}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(jt),l.LFG(l.R0b),l.LFG(o.K0))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})(),pe=(()=>{var L;class J{get enabled(){return this.focusTrap.enabled}set enabled(ce){this.focusTrap.enabled=(0,X.Ig)(ce)}get autoCapture(){return this._autoCapture}set autoCapture(ce){this._autoCapture=(0,X.Ig)(ce)}constructor(ce,Se,at){this._elementRef=ce,this._focusTrapFactory=Se,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ce){const Se=ce.autoCapture;Se&&!Se.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,R.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.Y36(l.SBq),l.Y36(Ie),l.Y36(o.K0))},L.\u0275dir=l.lG2({type:L,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[l.TTD]}),J})();function Je(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}function pt(L){const J=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!J||-1!==J.identifier||null!=J.radiusX&&1!==J.radiusX||null!=J.radiusY&&1!==J.radiusY)}const vt=new l.OlP("cdk-input-modality-detector-options"),Re={ignoreKeys:[ue.zL,ue.jx,ue.b2,ue.MW,ue.JU]},P=(0,R.i$)({passive:!0,capture:!0});let ee=(()=>{var L;class J{get mostRecentModality(){return this._modality.value}constructor(ce,Se,at,de){this._platform=ce,this._mostRecentTarget=null,this._modality=new W.X(null),this._lastTouchMs=0,this._onKeydown=se=>{this._options?.ignoreKeys?.some(ot=>ot===se.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,R.sA)(se))},this._onMousedown=se=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Je(se)?"keyboard":"mouse"),this._mostRecentTarget=(0,R.sA)(se))},this._onTouchstart=se=>{pt(se)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,R.sA)(se))},this._options={...Re,...de},this.modalityDetected=this._modality.pipe(He(1)),this.modalityChanged=this.modalityDetected.pipe((0,tt.x)()),ce.isBrowser&&Se.runOutsideAngular(()=>{at.addEventListener("keydown",this._onKeydown,P),at.addEventListener("mousedown",this._onMousedown,P),at.addEventListener("touchstart",this._onTouchstart,P)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(vt,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();const Ae=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function it(){return null}}),St=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Et=0,Pt=(()=>{var L;class J{constructor(ce,Se,at,de){this._ngZone=Se,this._defaultOptions=de,this._document=at,this._liveElement=ce||this._createLiveElement()}announce(ce,...Se){const at=this._defaultOptions;let de,se;return 1===Se.length&&"number"==typeof Se[0]?se=Se[0]:[de,se]=Se,this.clear(),clearTimeout(this._previousTimeout),de||(de=at&&at.politeness?at.politeness:"polite"),null==se&&at&&(se=at.duration),this._liveElement.setAttribute("aria-live",de),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ot=>this._currentResolve=ot)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ce,"number"==typeof se&&(this._previousTimeout=setTimeout(()=>this.clear(),se)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ce="cdk-live-announcer-element",Se=this._document.getElementsByClassName(ce),at=this._document.createElement("div");for(let de=0;de<Se.length;de++)Se[de].remove();return at.classList.add(ce),at.classList.add("cdk-visually-hidden"),at.setAttribute("aria-atomic","true"),at.setAttribute("aria-live","polite"),at.id="cdk-live-announcer-"+Et++,this._document.body.appendChild(at),at}_exposeAnnouncerToModals(ce){const Se=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let at=0;at<Se.length;at++){const de=Se[at],se=de.getAttribute("aria-owns");se?-1===se.indexOf(ce)&&de.setAttribute("aria-owns",se+" "+ce):de.setAttribute("aria-owns",ce)}}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(Ae,8),l.LFG(l.R0b),l.LFG(o.K0),l.LFG(St,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})();const Yt=new l.OlP("cdk-focus-monitor-default-options"),cn=(0,R.i$)({passive:!0,capture:!0});let Oe=(()=>{var L;class J{constructor(ce,Se,at,de,se){this._ngZone=ce,this._platform=Se,this._inputModalityDetector=at,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 K.x,this._rootNodeFocusAndBlurListener=ot=>{for(let Ee=(0,R.sA)(ot);Ee;Ee=Ee.parentElement)"focus"===ot.type?this._onFocus(ot,Ee):this._onBlur(ot,Ee)},this._document=de,this._detectionMode=se?.detectionMode||0}monitor(ce,Se=!1){const at=(0,X.fI)(ce);if(!this._platform.isBrowser||1!==at.nodeType)return(0,re.of)();const de=(0,R.kV)(at)||this._getDocument(),se=this._elementInfo.get(at);if(se)return Se&&(se.checkChildren=!0),se.subject;const ot={checkChildren:Se,subject:new K.x,rootNode:de};return this._elementInfo.set(at,ot),this._registerGlobalListeners(ot),ot.subject}stopMonitoring(ce){const Se=(0,X.fI)(ce),at=this._elementInfo.get(Se);at&&(at.subject.complete(),this._setClasses(Se),this._elementInfo.delete(Se),this._removeGlobalListeners(at))}focusVia(ce,Se,at){const de=(0,X.fI)(ce);de===this._getDocument().activeElement?this._getClosestElementsInfo(de).forEach(([ot,le])=>this._originChanged(ot,Se,le)):(this._setOrigin(Se),"function"==typeof de.focus&&de.focus(at))}ngOnDestroy(){this._elementInfo.forEach((ce,Se)=>this.stopMonitoring(Se))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ce){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ce)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ce&&this._isLastInteractionFromInputLabel(ce)?"mouse":"program"}_shouldBeAttributedToTouch(ce){return 1===this._detectionMode||!!ce?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ce,Se){ce.classList.toggle("cdk-focused",!!Se),ce.classList.toggle("cdk-touch-focused","touch"===Se),ce.classList.toggle("cdk-keyboard-focused","keyboard"===Se),ce.classList.toggle("cdk-mouse-focused","mouse"===Se),ce.classList.toggle("cdk-program-focused","program"===Se)}_setOrigin(ce,Se=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ce,this._originFromTouchInteraction="touch"===ce&&Se,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ce,Se){const at=this._elementInfo.get(Se),de=(0,R.sA)(ce);!at||!at.checkChildren&&Se!==de||this._originChanged(Se,this._getFocusOrigin(de),at)}_onBlur(ce,Se){const at=this._elementInfo.get(Se);!at||at.checkChildren&&ce.relatedTarget instanceof Node&&Se.contains(ce.relatedTarget)||(this._setClasses(Se),this._emitOrigin(at,null))}_emitOrigin(ce,Se){ce.subject.observers.length&&this._ngZone.run(()=>ce.subject.next(Se))}_registerGlobalListeners(ce){if(!this._platform.isBrowser)return;const Se=ce.rootNode,at=this._rootNodeFocusListenerCount.get(Se)||0;at||this._ngZone.runOutsideAngular(()=>{Se.addEventListener("focus",this._rootNodeFocusAndBlurListener,cn),Se.addEventListener("blur",this._rootNodeFocusAndBlurListener,cn)}),this._rootNodeFocusListenerCount.set(Se,at+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,$e.R)(this._stopInputModalityDetector)).subscribe(de=>{this._setOrigin(de,!0)}))}_removeGlobalListeners(ce){const Se=ce.rootNode;if(this._rootNodeFocusListenerCount.has(Se)){const at=this._rootNodeFocusListenerCount.get(Se);at>1?this._rootNodeFocusListenerCount.set(Se,at-1):(Se.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cn),Se.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cn),this._rootNodeFocusListenerCount.delete(Se))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ce,Se,at){this._setClasses(ce,Se),this._emitOrigin(at,Se),this._lastFocusOrigin=Se}_getClosestElementsInfo(ce){const Se=[];return this._elementInfo.forEach((at,de)=>{(de===ce||at.checkChildren&&de.contains(ce))&&Se.push([de,at])}),Se}_isLastInteractionFromInputLabel(ce){const{_mostRecentTarget:Se,mostRecentModality:at}=this._inputModalityDetector;if("mouse"!==at||!Se||Se===ce||"INPUT"!==ce.nodeName&&"TEXTAREA"!==ce.nodeName||ce.disabled)return!1;const de=ce.labels;if(de)for(let se=0;se<de.length;se++)if(de[se].contains(Se))return!0;return!1}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(l.R0b),l.LFG(R.t4),l.LFG(ee),l.LFG(o.K0,8),l.LFG(Yt,8))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})(),z=(()=>{var L;class J{constructor(ce,Se){this._elementRef=ce,this._focusMonitor=Se,this._focusOrigin=null,this.cdkFocusChange=new l.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ce=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ce,1===ce.nodeType&&ce.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Se=>{this._focusOrigin=Se,this.cdkFocusChange.emit(Se)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.Y36(l.SBq),l.Y36(Oe))},L.\u0275dir=l.lG2({type:L,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),J})();const U="cdk-high-contrast-black-on-white",B="cdk-high-contrast-white-on-black",S="cdk-high-contrast-active";let H=(()=>{var L;class J{constructor(ce,Se){this._platform=ce,this._document=Se,this._breakpointSubscription=(0,l.f3M)(Bt).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ce=this._document.createElement("div");ce.style.backgroundColor="rgb(1,2,3)",ce.style.position="absolute",this._document.body.appendChild(ce);const Se=this._document.defaultView||window,at=Se&&Se.getComputedStyle?Se.getComputedStyle(ce):null,de=(at&&at.backgroundColor||"").replace(/ /g,"");switch(ce.remove(),de){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ce=this._document.body.classList;ce.remove(S,U,B),this._hasCheckedHighContrastMode=!0;const Se=this.getHighContrastMode();1===Se?ce.add(S,U):2===Se&&ce.add(S,B)}}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(R.t4),l.LFG(o.K0))},L.\u0275prov=l.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),J})(),j=(()=>{var L;class J{constructor(ce){ce._applyBodyHighContrastModeCssClasses()}}return(L=J).\u0275fac=function(ce){return new(ce||L)(l.LFG(H))},L.\u0275mod=l.oAB({type:L}),L.\u0275inj=l.cJS({imports:[Ye.Q8]}),J})()},9388:(wt,Pe,C)=>{C.d(Pe,{Is:()=>re,vT:()=>ie});var o=C(5879),l=C(6814);const R=new o.OlP("cdk-dir-doc",{providedIn:"root",factory:function K(){return(0,o.f3M)(l.K0)}}),Y=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let re=(()=>{var V;class Q{constructor(Ve){this.value="ltr",this.change=new o.vpe,Ve&&(this.value=function W(V){const Q=V?.toLowerCase()||"";return"auto"===Q&&typeof navigator<"u"&&navigator?.language?Y.test(navigator.language)?"rtl":"ltr":"rtl"===Q?"rtl":"ltr"}((Ve.body?Ve.body.dir:null)||(Ve.documentElement?Ve.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(V=Q).\u0275fac=function(Ve){return new(Ve||V)(o.LFG(R,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),Q})(),ie=(()=>{var V;class Q{}return(V=Q).\u0275fac=function(Ve){return new(Ve||V)},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({}),Q})()},2495:(wt,Pe,C)=>{C.d(Pe,{Eq:()=>Y,HM:()=>W,Ig:()=>l,du:()=>ue,fI:()=>re,su:()=>R});var o=C(5879);function l(ie){return null!=ie&&"false"!=`${ie}`}function R(ie,V=0){return function K(ie){return!isNaN(parseFloat(ie))&&!isNaN(Number(ie))}(ie)?Number(ie):V}function Y(ie){return Array.isArray(ie)?ie:[ie]}function W(ie){return null==ie?"":"string"==typeof ie?ie:`${ie}px`}function re(ie){return ie instanceof o.SBq?ie.nativeElement:ie}function ue(ie,V=/\s+/){const Q=[];if(null!=ie){const be=Array.isArray(ie)?ie:`${ie}`.split(V);for(const Ve of be){const He=`${Ve}`.trim();He&&Q.push(He)}}return Q}},6028:(wt,Pe,C)=>{C.d(Pe,{A:()=>De,JH:()=>Ne,JU:()=>W,K5:()=>Y,Ku:()=>Ve,LH:()=>Ye,L_:()=>be,MW:()=>Ke,Mf:()=>R,SV:()=>ut,Sd:()=>$e,VM:()=>He,Vb:()=>ui,Z:()=>Te,ZH:()=>l,aO:()=>Cn,b2:()=>dr,hY:()=>Q,jx:()=>re,oh:()=>X,uR:()=>tt,xE:()=>rt,zL:()=>ue});const l=8,R=9,Y=13,W=16,re=17,ue=18,Q=27,be=32,Ve=33,He=34,tt=35,$e=36,X=37,Ye=38,ut=39,Ne=40,rt=48,Cn=57,De=65,Te=90,Ke=91,dr=224;function ui(Gr,...hr){return hr.length?hr.some(di=>Gr[di]):Gr.altKey||Gr.shiftKey||Gr.ctrlKey||Gr.metaKey}},7131:(wt,Pe,C)=>{C.d(Pe,{Q8:()=>Y});var o=C(5879);let l=(()=>{var W;class re{create(ie){return typeof MutationObserver>"u"?null:new MutationObserver(ie)}}return(W=re).\u0275fac=function(ie){return new(ie||W)},W.\u0275prov=o.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),re})(),Y=(()=>{var W;class re{}return(W=re).\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=o.oAB({type:W}),W.\u0275inj=o.cJS({providers:[l]}),re})()},3651:(wt,Pe,C)=>{C.d(Pe,{pI:()=>zt,xu:()=>Sn,_G:()=>Me,aV:()=>rn,X_:()=>ft,Xj:()=>Ge,U8:()=>Hn,Iu:()=>Xe});var o=C(6672),l=C(6814),R=C(5879),K=C(2495),Y=C(2831),W=C(2181),re=C(8180),ue=C(9773),ie=C(9360),V=C(8251),be=C(9388),Ve=C(8484),He=C(8645),tt=C(7394),$e=C(3019),X=C(6028);const Ye=(0,Y.Mq)();class ut{constructor(G,Ie){this._viewportRuler=G,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ie}attach(){}enable(){if(this._canBeEnabled()){const G=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=G.style.left||"",this._previousHTMLStyles.top=G.style.top||"",G.style.left=(0,K.HM)(-this._previousScrollPosition.left),G.style.top=(0,K.HM)(-this._previousScrollPosition.top),G.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const G=this._document.documentElement,pe=G.style,nt=this._document.body.style,Te=pe.scrollBehavior||"",Ke=nt.scrollBehavior||"";this._isEnabled=!1,pe.left=this._previousHTMLStyles.left,pe.top=this._previousHTMLStyles.top,G.classList.remove("cdk-global-scrollblock"),Ye&&(pe.scrollBehavior=nt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ye&&(pe.scrollBehavior=Te,nt.scrollBehavior=Ke)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ie=this._document.body,pe=this._viewportRuler.getViewportSize();return Ie.scrollHeight>pe.height||Ie.scrollWidth>pe.width}}class q{constructor(G,Ie,pe,nt){this._scrollDispatcher=G,this._ngZone=Ie,this._viewportRuler=pe,this._config=nt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(G){this._overlayRef=G}enable(){if(this._scrollSubscription)return;const G=this._scrollDispatcher.scrolled(0).pipe((0,W.h)(Ie=>!Ie||!this._overlayRef.overlayElement.contains(Ie.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=G.subscribe(()=>{const Ie=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ie-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=G.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function ve(ze,G){return G.some(Ie=>ze.bottom<Ie.top||ze.top>Ie.bottom||ze.right<Ie.left||ze.left>Ie.right)}function ye(ze,G){return G.some(Ie=>ze.top<Ie.top||ze.bottom>Ie.bottom||ze.left<Ie.left||ze.right>Ie.right)}class rt{constructor(G,Ie,pe,nt){this._scrollDispatcher=G,this._viewportRuler=Ie,this._ngZone=pe,this._config=nt,this._scrollSubscription=null}attach(G){this._overlayRef=G}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 Ie=this._overlayRef.overlayElement.getBoundingClientRect(),{width:pe,height:nt}=this._viewportRuler.getViewportSize();ve(Ie,[{width:pe,height:nt,bottom:nt,right:pe,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 Qe=(()=>{var ze;class G{constructor(pe,nt,Te,Ke){this._scrollDispatcher=pe,this._viewportRuler=nt,this._ngZone=Te,this.noop=()=>new me,this.close=dt=>new q(this._scrollDispatcher,this._ngZone,this._viewportRuler,dt),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=dt=>new rt(this._scrollDispatcher,this._viewportRuler,this._ngZone,dt),this._document=Ke}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(o.mF),R.LFG(o.rL),R.LFG(R.R0b),R.LFG(l.K0))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})();class ft{constructor(G){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,G){const Ie=Object.keys(G);for(const pe of Ie)void 0!==G[pe]&&(this[pe]=G[pe])}}}class Rt{constructor(G,Ie){this.connectionPair=G,this.scrollableViewProperties=Ie}}let sn=(()=>{var ze;class G{constructor(pe){this._attachedOverlays=[],this._document=pe}ngOnDestroy(){this.detach()}add(pe){this.remove(pe),this._attachedOverlays.push(pe)}remove(pe){const nt=this._attachedOverlays.indexOf(pe);nt>-1&&this._attachedOverlays.splice(nt,1),0===this._attachedOverlays.length&&this.detach()}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),Cn=(()=>{var ze;class G extends sn{constructor(pe,nt){super(pe),this._ngZone=nt,this._keydownListener=Te=>{const Ke=this._attachedOverlays;for(let dt=Ke.length-1;dt>-1;dt--)if(Ke[dt]._keydownEvents.observers.length>0){const je=Ke[dt]._keydownEvents;this._ngZone?this._ngZone.run(()=>je.next(Te)):je.next(Te);break}}}add(pe){super.add(pe),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(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0),R.LFG(R.R0b,8))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),wn=(()=>{var ze;class G extends sn{constructor(pe,nt,Te){super(pe),this._platform=nt,this._ngZone=Te,this._cursorStyleIsSet=!1,this._pointerDownListener=Ke=>{this._pointerDownEventTarget=(0,Y.sA)(Ke)},this._clickListener=Ke=>{const dt=(0,Y.sA)(Ke),je="click"===Ke.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:dt;this._pointerDownEventTarget=null;const Je=this._attachedOverlays.slice();for(let pt=Je.length-1;pt>-1;pt--){const vt=Je[pt];if(vt._outsidePointerEvents.observers.length<1||!vt.hasAttached())continue;if(vt.overlayElement.contains(dt)||vt.overlayElement.contains(je))break;const Re=vt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Re.next(Ke)):Re.next(Ke)}}}add(pe){if(super.add(pe),!this._isAttached){const nt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(nt)):this._addEventListeners(nt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=nt.style.cursor,nt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const pe=this._document.body;pe.removeEventListener("pointerdown",this._pointerDownListener,!0),pe.removeEventListener("click",this._clickListener,!0),pe.removeEventListener("auxclick",this._clickListener,!0),pe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(pe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(pe){pe.addEventListener("pointerdown",this._pointerDownListener,!0),pe.addEventListener("click",this._clickListener,!0),pe.addEventListener("auxclick",this._clickListener,!0),pe.addEventListener("contextmenu",this._clickListener,!0)}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0),R.LFG(Y.t4),R.LFG(R.R0b,8))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),Ge=(()=>{var ze;class G{constructor(pe,nt){this._platform=nt,this._document=pe}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const pe="cdk-overlay-container";if(this._platform.isBrowser||(0,Y.Oy)()){const Te=this._document.querySelectorAll(`.${pe}[platform="server"], .${pe}[platform="test"]`);for(let Ke=0;Ke<Te.length;Ke++)Te[Ke].remove()}const nt=this._document.createElement("div");nt.classList.add(pe),(0,Y.Oy)()?nt.setAttribute("platform","test"):this._platform.isBrowser||nt.setAttribute("platform","server"),this._document.body.appendChild(nt),this._containerElement=nt}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(l.K0),R.LFG(Y.t4))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})();class Xe{constructor(G,Ie,pe,nt,Te,Ke,dt,je,Je,pt=!1){this._portalOutlet=G,this._host=Ie,this._pane=pe,this._config=nt,this._ngZone=Te,this._keyboardDispatcher=Ke,this._document=dt,this._location=je,this._outsideClickDispatcher=Je,this._animationsDisabled=pt,this._backdropElement=null,this._backdropClick=new He.x,this._attachments=new He.x,this._detachments=new He.x,this._locationChanges=tt.w0.EMPTY,this._backdropClickHandler=vt=>this._backdropClick.next(vt),this._backdropTransitionendHandler=vt=>{this._disposeBackdrop(vt.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,nt.scrollStrategy&&(this._scrollStrategy=nt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=nt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(G){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ie=this._portalOutlet.attach(G);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,re.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 Ie?.onDestroy&&Ie.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ie}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const G=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),G}dispose(){const G=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,G&&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(G){G!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=G,this.hasAttached()&&(G.attach(this),this.updatePosition()))}updateSize(G){this._config={...this._config,...G},this._updateElementSize()}setDirection(G){this._config={...this._config,direction:G},this._updateElementDirection()}addPanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!0)}removePanelClass(G){this._pane&&this._toggleClasses(this._pane,G,!1)}getDirection(){const G=this._config.direction;return G?"string"==typeof G?G:G.value:"ltr"}updateScrollStrategy(G){G!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=G,this.hasAttached()&&(G.attach(this),G.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const G=this._pane.style;G.width=(0,K.HM)(this._config.width),G.height=(0,K.HM)(this._config.height),G.minWidth=(0,K.HM)(this._config.minWidth),G.minHeight=(0,K.HM)(this._config.minHeight),G.maxWidth=(0,K.HM)(this._config.maxWidth),G.maxHeight=(0,K.HM)(this._config.maxHeight)}_togglePointerEvents(G){this._pane.style.pointerEvents=G?"":"none"}_attachBackdrop(){const G="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(G)})}):this._backdropElement.classList.add(G)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const G=this._backdropElement;if(G){if(this._animationsDisabled)return void this._disposeBackdrop(G);G.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{G.addEventListener("transitionend",this._backdropTransitionendHandler)}),G.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(G)},500))}}_toggleClasses(G,Ie,pe){const nt=(0,K.Eq)(Ie||[]).filter(Te=>!!Te);nt.length&&(pe?G.classList.add(...nt):G.classList.remove(...nt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const G=this._ngZone.onStable.pipe((0,ue.R)((0,$e.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()),G.unsubscribe())})})}_disposeScrollStrategy(){const G=this._scrollStrategy;G&&(G.disable(),G.detach&&G.detach())}_disposeBackdrop(G){G&&(G.removeEventListener("click",this._backdropClickHandler),G.removeEventListener("transitionend",this._backdropTransitionendHandler),G.remove(),this._backdropElement===G&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Ze="cdk-overlay-connected-position-bounding-box",De=/([A-Za-z%]+)$/;class Me{get positions(){return this._preferredPositions}constructor(G,Ie,pe,nt,Te){this._viewportRuler=Ie,this._document=pe,this._platform=nt,this._overlayContainer=Te,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 He.x,this._resizeSubscription=tt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(G)}attach(G){this._validatePositions(),G.hostElement.classList.add(Ze),this._overlayRef=G,this._boundingBox=G.hostElement,this._pane=G.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 G=this._originRect,Ie=this._overlayRect,pe=this._viewportRect,nt=this._containerRect,Te=[];let Ke;for(let dt of this._preferredPositions){let je=this._getOriginPoint(G,nt,dt),Je=this._getOverlayPoint(je,Ie,dt),pt=this._getOverlayFit(Je,Ie,pe,dt);if(pt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(dt,je);this._canFitWithFlexibleDimensions(pt,Je,pe)?Te.push({position:dt,origin:je,overlayRect:Ie,boundingBoxRect:this._calculateBoundingBoxRect(je,dt)}):(!Ke||Ke.overlayFit.visibleArea<pt.visibleArea)&&(Ke={overlayFit:pt,overlayPoint:Je,originPoint:je,position:dt,overlayRect:Ie})}if(Te.length){let dt=null,je=-1;for(const Je of Te){const pt=Je.boundingBoxRect.width*Je.boundingBoxRect.height*(Je.position.weight||1);pt>je&&(je=pt,dt=Je)}return this._isPushed=!1,void this._applyPosition(dt.position,dt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ke.position,Ke.originPoint);this._applyPosition(Ke.position,Ke.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ce(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ze),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const G=this._lastPosition;if(G){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ie=this._getOriginPoint(this._originRect,this._containerRect,G);this._applyPosition(G,Ie)}else this.apply()}withScrollableContainers(G){return this._scrollables=G,this}withPositions(G){return this._preferredPositions=G,-1===G.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(G){return this._viewportMargin=G,this}withFlexibleDimensions(G=!0){return this._hasFlexibleDimensions=G,this}withGrowAfterOpen(G=!0){return this._growAfterOpen=G,this}withPush(G=!0){return this._canPush=G,this}withLockedPosition(G=!0){return this._positionLocked=G,this}setOrigin(G){return this._origin=G,this}withDefaultOffsetX(G){return this._offsetX=G,this}withDefaultOffsetY(G){return this._offsetY=G,this}withTransformOriginOn(G){return this._transformOriginSelector=G,this}_getOriginPoint(G,Ie,pe){let nt,Te;if("center"==pe.originX)nt=G.left+G.width/2;else{const Ke=this._isRtl()?G.right:G.left,dt=this._isRtl()?G.left:G.right;nt="start"==pe.originX?Ke:dt}return Ie.left<0&&(nt-=Ie.left),Te="center"==pe.originY?G.top+G.height/2:"top"==pe.originY?G.top:G.bottom,Ie.top<0&&(Te-=Ie.top),{x:nt,y:Te}}_getOverlayPoint(G,Ie,pe){let nt,Te;return nt="center"==pe.overlayX?-Ie.width/2:"start"===pe.overlayX?this._isRtl()?-Ie.width:0:this._isRtl()?0:-Ie.width,Te="center"==pe.overlayY?-Ie.height/2:"top"==pe.overlayY?0:-Ie.height,{x:G.x+nt,y:G.y+Te}}_getOverlayFit(G,Ie,pe,nt){const Te=Fe(Ie);let{x:Ke,y:dt}=G,je=this._getOffset(nt,"x"),Je=this._getOffset(nt,"y");je&&(Ke+=je),Je&&(dt+=Je);let Re=0-dt,y=dt+Te.height-pe.height,P=this._subtractOverflows(Te.width,0-Ke,Ke+Te.width-pe.width),ee=this._subtractOverflows(Te.height,Re,y),Ae=P*ee;return{visibleArea:Ae,isCompletelyWithinViewport:Te.width*Te.height===Ae,fitsInViewportVertically:ee===Te.height,fitsInViewportHorizontally:P==Te.width}}_canFitWithFlexibleDimensions(G,Ie,pe){if(this._hasFlexibleDimensions){const nt=pe.bottom-Ie.y,Te=pe.right-Ie.x,Ke=Be(this._overlayRef.getConfig().minHeight),dt=Be(this._overlayRef.getConfig().minWidth);return(G.fitsInViewportVertically||null!=Ke&&Ke<=nt)&&(G.fitsInViewportHorizontally||null!=dt&&dt<=Te)}return!1}_pushOverlayOnScreen(G,Ie,pe){if(this._previousPushAmount&&this._positionLocked)return{x:G.x+this._previousPushAmount.x,y:G.y+this._previousPushAmount.y};const nt=Fe(Ie),Te=this._viewportRect,Ke=Math.max(G.x+nt.width-Te.width,0),dt=Math.max(G.y+nt.height-Te.height,0),je=Math.max(Te.top-pe.top-G.y,0),Je=Math.max(Te.left-pe.left-G.x,0);let pt=0,vt=0;return pt=nt.width<=Te.width?Je||-Ke:G.x<this._viewportMargin?Te.left-pe.left-G.x:0,vt=nt.height<=Te.height?je||-dt:G.y<this._viewportMargin?Te.top-pe.top-G.y:0,this._previousPushAmount={x:pt,y:vt},{x:G.x+pt,y:G.y+vt}}_applyPosition(G,Ie){if(this._setTransformOrigin(G),this._setOverlayElementStyles(Ie,G),this._setBoundingBoxStyles(Ie,G),G.panelClass&&this._addPanelClasses(G.panelClass),this._lastPosition=G,this._positionChanges.observers.length){const pe=this._getScrollVisibility(),nt=new Rt(G,pe);this._positionChanges.next(nt)}this._isInitialRender=!1}_setTransformOrigin(G){if(!this._transformOriginSelector)return;const Ie=this._boundingBox.querySelectorAll(this._transformOriginSelector);let pe,nt=G.overlayY;pe="center"===G.overlayX?"center":this._isRtl()?"start"===G.overlayX?"right":"left":"start"===G.overlayX?"left":"right";for(let Te=0;Te<Ie.length;Te++)Ie[Te].style.transformOrigin=`${pe} ${nt}`}_calculateBoundingBoxRect(G,Ie){const pe=this._viewportRect,nt=this._isRtl();let Te,Ke,dt,pt,vt,Re;if("top"===Ie.overlayY)Ke=G.y,Te=pe.height-Ke+this._viewportMargin;else if("bottom"===Ie.overlayY)dt=pe.height-G.y+2*this._viewportMargin,Te=pe.height-dt+this._viewportMargin;else{const y=Math.min(pe.bottom-G.y+pe.top,G.y),P=this._lastBoundingBoxSize.height;Te=2*y,Ke=G.y-y,Te>P&&!this._isInitialRender&&!this._growAfterOpen&&(Ke=G.y-P/2)}if("end"===Ie.overlayX&&!nt||"start"===Ie.overlayX&&nt)Re=pe.width-G.x+this._viewportMargin,pt=G.x-this._viewportMargin;else if("start"===Ie.overlayX&&!nt||"end"===Ie.overlayX&&nt)vt=G.x,pt=pe.right-G.x;else{const y=Math.min(pe.right-G.x+pe.left,G.x),P=this._lastBoundingBoxSize.width;pt=2*y,vt=G.x-y,pt>P&&!this._isInitialRender&&!this._growAfterOpen&&(vt=G.x-P/2)}return{top:Ke,left:vt,bottom:dt,right:Re,width:pt,height:Te}}_setBoundingBoxStyles(G,Ie){const pe=this._calculateBoundingBoxRect(G,Ie);!this._isInitialRender&&!this._growAfterOpen&&(pe.height=Math.min(pe.height,this._lastBoundingBoxSize.height),pe.width=Math.min(pe.width,this._lastBoundingBoxSize.width));const nt={};if(this._hasExactPosition())nt.top=nt.left="0",nt.bottom=nt.right=nt.maxHeight=nt.maxWidth="",nt.width=nt.height="100%";else{const Te=this._overlayRef.getConfig().maxHeight,Ke=this._overlayRef.getConfig().maxWidth;nt.height=(0,K.HM)(pe.height),nt.top=(0,K.HM)(pe.top),nt.bottom=(0,K.HM)(pe.bottom),nt.width=(0,K.HM)(pe.width),nt.left=(0,K.HM)(pe.left),nt.right=(0,K.HM)(pe.right),nt.alignItems="center"===Ie.overlayX?"center":"end"===Ie.overlayX?"flex-end":"flex-start",nt.justifyContent="center"===Ie.overlayY?"center":"bottom"===Ie.overlayY?"flex-end":"flex-start",Te&&(nt.maxHeight=(0,K.HM)(Te)),Ke&&(nt.maxWidth=(0,K.HM)(Ke))}this._lastBoundingBoxSize=pe,Ce(this._boundingBox.style,nt)}_resetBoundingBoxStyles(){Ce(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ce(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(G,Ie){const pe={},nt=this._hasExactPosition(),Te=this._hasFlexibleDimensions,Ke=this._overlayRef.getConfig();if(nt){const pt=this._viewportRuler.getViewportScrollPosition();Ce(pe,this._getExactOverlayY(Ie,G,pt)),Ce(pe,this._getExactOverlayX(Ie,G,pt))}else pe.position="static";let dt="",je=this._getOffset(Ie,"x"),Je=this._getOffset(Ie,"y");je&&(dt+=`translateX(${je}px) `),Je&&(dt+=`translateY(${Je}px)`),pe.transform=dt.trim(),Ke.maxHeight&&(nt?pe.maxHeight=(0,K.HM)(Ke.maxHeight):Te&&(pe.maxHeight="")),Ke.maxWidth&&(nt?pe.maxWidth=(0,K.HM)(Ke.maxWidth):Te&&(pe.maxWidth="")),Ce(this._pane.style,pe)}_getExactOverlayY(G,Ie,pe){let nt={top:"",bottom:""},Te=this._getOverlayPoint(Ie,this._overlayRect,G);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,pe)),"bottom"===G.overlayY?nt.bottom=this._document.documentElement.clientHeight-(Te.y+this._overlayRect.height)+"px":nt.top=(0,K.HM)(Te.y),nt}_getExactOverlayX(G,Ie,pe){let Ke,nt={left:"",right:""},Te=this._getOverlayPoint(Ie,this._overlayRect,G);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,pe)),Ke=this._isRtl()?"end"===G.overlayX?"left":"right":"end"===G.overlayX?"right":"left","right"===Ke?nt.right=this._document.documentElement.clientWidth-(Te.x+this._overlayRect.width)+"px":nt.left=(0,K.HM)(Te.x),nt}_getScrollVisibility(){const G=this._getOriginRect(),Ie=this._pane.getBoundingClientRect(),pe=this._scrollables.map(nt=>nt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ye(G,pe),isOriginOutsideView:ve(G,pe),isOverlayClipped:ye(Ie,pe),isOverlayOutsideView:ve(Ie,pe)}}_subtractOverflows(G,...Ie){return Ie.reduce((pe,nt)=>pe-Math.max(nt,0),G)}_getNarrowedViewportRect(){const G=this._document.documentElement.clientWidth,Ie=this._document.documentElement.clientHeight,pe=this._viewportRuler.getViewportScrollPosition();return{top:pe.top+this._viewportMargin,left:pe.left+this._viewportMargin,right:pe.left+G-this._viewportMargin,bottom:pe.top+Ie-this._viewportMargin,width:G-2*this._viewportMargin,height:Ie-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(G,Ie){return"x"===Ie?null==G.offsetX?this._offsetX:G.offsetX:null==G.offsetY?this._offsetY:G.offsetY}_validatePositions(){}_addPanelClasses(G){this._pane&&(0,K.Eq)(G).forEach(Ie=>{""!==Ie&&-1===this._appliedPanelClasses.indexOf(Ie)&&(this._appliedPanelClasses.push(Ie),this._pane.classList.add(Ie))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(G=>{this._pane.classList.remove(G)}),this._appliedPanelClasses=[])}_getOriginRect(){const G=this._origin;if(G instanceof R.SBq)return G.nativeElement.getBoundingClientRect();if(G instanceof Element)return G.getBoundingClientRect();const Ie=G.width||0,pe=G.height||0;return{top:G.y,bottom:G.y+pe,left:G.x,right:G.x+Ie,height:pe,width:Ie}}}function Ce(ze,G){for(let Ie in G)G.hasOwnProperty(Ie)&&(ze[Ie]=G[Ie]);return ze}function Be(ze){if("number"!=typeof ze&&null!=ze){const[G,Ie]=ze.split(De);return Ie&&"px"!==Ie?null:parseFloat(G)}return ze||null}function Fe(ze){return{top:Math.floor(ze.top),right:Math.floor(ze.right),bottom:Math.floor(ze.bottom),left:Math.floor(ze.left),width:Math.floor(ze.width),height:Math.floor(ze.height)}}const Nt="cdk-global-overlay-wrapper";class jt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(G){const Ie=G.getConfig();this._overlayRef=G,this._width&&!Ie.width&&G.updateSize({width:this._width}),this._height&&!Ie.height&&G.updateSize({height:this._height}),G.hostElement.classList.add(Nt),this._isDisposed=!1}top(G=""){return this._bottomOffset="",this._topOffset=G,this._alignItems="flex-start",this}left(G=""){return this._xOffset=G,this._xPosition="left",this}bottom(G=""){return this._topOffset="",this._bottomOffset=G,this._alignItems="flex-end",this}right(G=""){return this._xOffset=G,this._xPosition="right",this}start(G=""){return this._xOffset=G,this._xPosition="start",this}end(G=""){return this._xOffset=G,this._xPosition="end",this}width(G=""){return this._overlayRef?this._overlayRef.updateSize({width:G}):this._width=G,this}height(G=""){return this._overlayRef?this._overlayRef.updateSize({height:G}):this._height=G,this}centerHorizontally(G=""){return this.left(G),this._xPosition="center",this}centerVertically(G=""){return this.top(G),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const G=this._overlayRef.overlayElement.style,Ie=this._overlayRef.hostElement.style,pe=this._overlayRef.getConfig(),{width:nt,height:Te,maxWidth:Ke,maxHeight:dt}=pe,je=!("100%"!==nt&&"100vw"!==nt||Ke&&"100%"!==Ke&&"100vw"!==Ke),Je=!("100%"!==Te&&"100vh"!==Te||dt&&"100%"!==dt&&"100vh"!==dt),pt=this._xPosition,vt=this._xOffset,Re="rtl"===this._overlayRef.getConfig().direction;let y="",P="",ee="";je?ee="flex-start":"center"===pt?(ee="center",Re?P=vt:y=vt):Re?"left"===pt||"end"===pt?(ee="flex-end",y=vt):("right"===pt||"start"===pt)&&(ee="flex-start",P=vt):"left"===pt||"start"===pt?(ee="flex-start",y=vt):("right"===pt||"end"===pt)&&(ee="flex-end",P=vt),G.position=this._cssPosition,G.marginLeft=je?"0":y,G.marginTop=Je?"0":this._topOffset,G.marginBottom=this._bottomOffset,G.marginRight=je?"0":P,Ie.justifyContent=ee,Ie.alignItems=Je?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const G=this._overlayRef.overlayElement.style,Ie=this._overlayRef.hostElement,pe=Ie.style;Ie.classList.remove(Nt),pe.justifyContent=pe.alignItems=G.marginTop=G.marginBottom=G.marginLeft=G.marginRight=G.position="",this._overlayRef=null,this._isDisposed=!0}}let Kt=(()=>{var ze;class G{constructor(pe,nt,Te,Ke){this._viewportRuler=pe,this._document=nt,this._platform=Te,this._overlayContainer=Ke}global(){return new jt}flexibleConnectedTo(pe){return new Me(pe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(o.rL),R.LFG(l.K0),R.LFG(Y.t4),R.LFG(Ge))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})(),nn=0,rn=(()=>{var ze;class G{constructor(pe,nt,Te,Ke,dt,je,Je,pt,vt,Re,y,P){this.scrollStrategies=pe,this._overlayContainer=nt,this._componentFactoryResolver=Te,this._positionBuilder=Ke,this._keyboardDispatcher=dt,this._injector=je,this._ngZone=Je,this._document=pt,this._directionality=vt,this._location=Re,this._outsideClickDispatcher=y,this._animationsModuleType=P}create(pe){const nt=this._createHostElement(),Te=this._createPaneElement(nt),Ke=this._createPortalOutlet(Te),dt=new ft(pe);return dt.direction=dt.direction||this._directionality.value,new Xe(Ke,nt,Te,dt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(pe){const nt=this._document.createElement("div");return nt.id="cdk-overlay-"+nn++,nt.classList.add("cdk-overlay-pane"),pe.appendChild(nt),nt}_createHostElement(){const pe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(pe),pe}_createPortalOutlet(pe){return this._appRef||(this._appRef=this._injector.get(R.z2F)),new Ve.u0(pe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.LFG(Qe),R.LFG(Ge),R.LFG(R._Vd),R.LFG(Kt),R.LFG(Cn),R.LFG(R.zs3),R.LFG(R.R0b),R.LFG(l.K0),R.LFG(be.Is),R.LFG(l.Ye),R.LFG(wn),R.LFG(R.QbO,8))},ze.\u0275prov=R.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),G})();const Xt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],an=new R.OlP("cdk-connected-overlay-scroll-strategy");let Sn=(()=>{var ze;class G{constructor(pe){this.elementRef=pe}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.Y36(R.SBq))},ze.\u0275dir=R.lG2({type:ze,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),G})(),zt=(()=>{var ze;class G{get offsetX(){return this._offsetX}set offsetX(pe){this._offsetX=pe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(pe){this._offsetY=pe,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(pe){this._hasBackdrop=(0,K.Ig)(pe)}get lockPosition(){return this._lockPosition}set lockPosition(pe){this._lockPosition=(0,K.Ig)(pe)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(pe){this._flexibleDimensions=(0,K.Ig)(pe)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(pe){this._growAfterOpen=(0,K.Ig)(pe)}get push(){return this._push}set push(pe){this._push=(0,K.Ig)(pe)}constructor(pe,nt,Te,Ke,dt){this._overlay=pe,this._dir=dt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=tt.w0.EMPTY,this._attachSubscription=tt.w0.EMPTY,this._detachSubscription=tt.w0.EMPTY,this._positionSubscription=tt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new R.vpe,this.positionChange=new R.vpe,this.attach=new R.vpe,this.detach=new R.vpe,this.overlayKeydown=new R.vpe,this.overlayOutsideClick=new R.vpe,this._templatePortal=new Ve.UE(nt,Te),this._scrollStrategyFactory=Ke,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(pe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),pe.origin&&this.open&&this._position.apply()),pe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Xt);const pe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=pe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=pe.detachments().subscribe(()=>this.detach.emit()),pe.keydownEvents().subscribe(nt=>{this.overlayKeydown.next(nt),nt.keyCode===X.hY&&!this.disableClose&&!(0,X.Vb)(nt)&&(nt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(nt=>{this.overlayOutsideClick.next(nt)})}_buildConfig(){const pe=this._position=this.positionStrategy||this._createPositionStrategy(),nt=new ft({direction:this._dir,positionStrategy:pe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(nt.width=this.width),(this.height||0===this.height)&&(nt.height=this.height),(this.minWidth||0===this.minWidth)&&(nt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(nt.minHeight=this.minHeight),this.backdropClass&&(nt.backdropClass=this.backdropClass),this.panelClass&&(nt.panelClass=this.panelClass),nt}_updatePositionStrategy(pe){const nt=this.positions.map(Te=>({originX:Te.originX,originY:Te.originY,overlayX:Te.overlayX,overlayY:Te.overlayY,offsetX:Te.offsetX||this.offsetX,offsetY:Te.offsetY||this.offsetY,panelClass:Te.panelClass||void 0}));return pe.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(nt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const pe=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(pe),pe}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Sn?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(pe=>{this.backdropClick.emit(pe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Q(ze,G=!1){return(0,ie.e)((Ie,pe)=>{let nt=0;Ie.subscribe((0,V.x)(pe,Te=>{const Ke=ze(Te,nt++);(Ke||G)&&pe.next(Te),!Ke&&pe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(pe=>{this.positionChange.emit(pe),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(ze=G).\u0275fac=function(pe){return new(pe||ze)(R.Y36(rn),R.Y36(R.Rgc),R.Y36(R.s_b),R.Y36(an),R.Y36(be.Is,8))},ze.\u0275dir=R.lG2({type:ze,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[R.TTD]}),G})();const xn={provide:an,deps:[rn],useFactory:function Vn(ze){return()=>ze.scrollStrategies.reposition()}};let Hn=(()=>{var ze;class G{}return(ze=G).\u0275fac=function(pe){return new(pe||ze)},ze.\u0275mod=R.oAB({type:ze}),ze.\u0275inj=R.cJS({providers:[rn,xn],imports:[be.vT,Ve.eL,o.Cl,o.Cl]}),G})()},2831:(wt,Pe,C)=>{C.d(Pe,{Mq:()=>He,Oy:()=>q,ht:()=>ut,i$:()=>Q,kV:()=>Ye,qK:()=>ue,sA:()=>Ne,t4:()=>K});var o=C(5879),l=C(6814);let R;try{R=typeof Intl<"u"&&Intl.v8BreakIterator}catch{R=!1}let W,K=(()=>{var me;class ve{constructor(rt){this._platformId=rt,this.isBrowser=this._platformId?(0,l.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(me=ve).\u0275fac=function(rt){return new(rt||me)(o.LFG(o.Lbi))},me.\u0275prov=o.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),ve})();const re=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ue(){if(W)return W;if("object"!=typeof document||!document)return W=new Set(re),W;let me=document.createElement("input");return W=new Set(re.filter(ve=>(me.setAttribute("type",ve),me.type===ve))),W}let ie,Ve,$e;function Q(me){return function V(){if(null==ie&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ie=!0}))}finally{ie=ie||!1}return ie}()?me:!!me.capture}function He(){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 me=Element.prototype.scrollTo;Ve=!!me&&!/\{\s*\[native code\]\s*\}/.test(me.toString())}}return Ve}function Ye(me){if(function X(){if(null==$e){const me=typeof document<"u"?document.head:null;$e=!(!me||!me.createShadowRoot&&!me.attachShadow)}return $e}()){const ve=me.getRootNode?me.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ve instanceof ShadowRoot)return ve}return null}function ut(){let me=typeof document<"u"&&document?document.activeElement:null;for(;me&&me.shadowRoot;){const ve=me.shadowRoot.activeElement;if(ve===me)break;me=ve}return me}function Ne(me){return me.composedPath?me.composedPath()[0]:me.target}function q(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(wt,Pe,C)=>{C.d(Pe,{C5:()=>V,Pl:()=>ut,UE:()=>Q,eL:()=>q,en:()=>Ve,u0:()=>tt});var o=C(5879),l=C(6814);class ie{attach(ye){return this._attachedHost=ye,ye.attach(this)}detach(){let ye=this._attachedHost;null!=ye&&(this._attachedHost=null,ye.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ye){this._attachedHost=ye}}class V extends ie{constructor(ye,rt,Qe,ft,xt){super(),this.component=ye,this.viewContainerRef=rt,this.injector=Qe,this.componentFactoryResolver=ft,this.projectableNodes=xt}}class Q extends ie{constructor(ye,rt,Qe,ft){super(),this.templateRef=ye,this.viewContainerRef=rt,this.context=Qe,this.injector=ft}get origin(){return this.templateRef.elementRef}attach(ye,rt=this.context){return this.context=rt,super.attach(ye)}detach(){return this.context=void 0,super.detach()}}class be extends ie{constructor(ye){super(),this.element=ye instanceof o.SBq?ye.nativeElement:ye}}class Ve{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ye){return ye instanceof V?(this._attachedPortal=ye,this.attachComponentPortal(ye)):ye instanceof Q?(this._attachedPortal=ye,this.attachTemplatePortal(ye)):this.attachDomPortal&&ye instanceof be?(this._attachedPortal=ye,this.attachDomPortal(ye)):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(ye){this._disposeFn=ye}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tt extends Ve{constructor(ye,rt,Qe,ft,xt){super(),this.outletElement=ye,this._componentFactoryResolver=rt,this._appRef=Qe,this._defaultInjector=ft,this.attachDomPortal=Bt=>{const Rt=Bt.element,Qt=this._document.createComment("dom-portal");Rt.parentNode.insertBefore(Qt,Rt),this.outletElement.appendChild(Rt),this._attachedPortal=Bt,super.setDisposeFn(()=>{Qt.parentNode&&Qt.parentNode.replaceChild(Rt,Qt)})},this._document=xt}attachComponentPortal(ye){const Qe=(ye.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ye.component);let ft;return ye.viewContainerRef?(ft=ye.viewContainerRef.createComponent(Qe,ye.viewContainerRef.length,ye.injector||ye.viewContainerRef.injector,ye.projectableNodes||void 0),this.setDisposeFn(()=>ft.destroy())):(ft=Qe.create(ye.injector||this._defaultInjector||o.zs3.NULL),this._appRef.attachView(ft.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ft.hostView),ft.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ft)),this._attachedPortal=ye,ft}attachTemplatePortal(ye){let rt=ye.viewContainerRef,Qe=rt.createEmbeddedView(ye.templateRef,ye.context,{injector:ye.injector});return Qe.rootNodes.forEach(ft=>this.outletElement.appendChild(ft)),Qe.detectChanges(),this.setDisposeFn(()=>{let ft=rt.indexOf(Qe);-1!==ft&&rt.remove(ft)}),this._attachedPortal=ye,Qe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ye){return ye.hostView.rootNodes[0]}}let ut=(()=>{var ve;class ye extends Ve{constructor(Qe,ft,xt){super(),this._componentFactoryResolver=Qe,this._viewContainerRef=ft,this._isInitialized=!1,this.attached=new o.vpe,this.attachDomPortal=Bt=>{const Rt=Bt.element,Qt=this._document.createComment("dom-portal");Bt.setAttachedHost(this),Rt.parentNode.insertBefore(Qt,Rt),this._getRootNode().appendChild(Rt),this._attachedPortal=Bt,super.setDisposeFn(()=>{Qt.parentNode&&Qt.parentNode.replaceChild(Rt,Qt)})},this._document=xt}get portal(){return this._attachedPortal}set portal(Qe){this.hasAttached()&&!Qe&&!this._isInitialized||(this.hasAttached()&&super.detach(),Qe&&super.attach(Qe),this._attachedPortal=Qe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Qe){Qe.setAttachedHost(this);const ft=null!=Qe.viewContainerRef?Qe.viewContainerRef:this._viewContainerRef,Bt=(Qe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Qe.component),Rt=ft.createComponent(Bt,ft.length,Qe.injector||ft.injector,Qe.projectableNodes||void 0);return ft!==this._viewContainerRef&&this._getRootNode().appendChild(Rt.hostView.rootNodes[0]),super.setDisposeFn(()=>Rt.destroy()),this._attachedPortal=Qe,this._attachedRef=Rt,this.attached.emit(Rt),Rt}attachTemplatePortal(Qe){Qe.setAttachedHost(this);const ft=this._viewContainerRef.createEmbeddedView(Qe.templateRef,Qe.context,{injector:Qe.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Qe,this._attachedRef=ft,this.attached.emit(ft),ft}_getRootNode(){const Qe=this._viewContainerRef.element.nativeElement;return Qe.nodeType===Qe.ELEMENT_NODE?Qe:Qe.parentNode}}return(ve=ye).\u0275fac=function(Qe){return new(Qe||ve)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36(l.K0))},ve.\u0275dir=o.lG2({type:ve,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.qOj]}),ye})(),q=(()=>{var ve;class ye{}return(ve=ye).\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=o.oAB({type:ve}),ve.\u0275inj=o.cJS({}),ye})()},6672:(wt,Pe,C)=>{C.d(Pe,{Cl:()=>wn,ZD:()=>Cn,mF:()=>q,rL:()=>ye});var o=C(2495),l=C(5879),R=C(8645),K=C(2096),Y=C(5592),W=C(2438),ie=(C(927),C(6410),C(9028)),V=C(2181),Q=C(2831),be=C(6814),Ve=C(9388);let q=(()=>{var Ge;class Xe{constructor(De,Me,Ce){this._ngZone=De,this._platform=Me,this._scrolled=new R.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ce}register(De){this.scrollContainers.has(De)||this.scrollContainers.set(De,De.elementScrolled().subscribe(()=>this._scrolled.next(De)))}deregister(De){const Me=this.scrollContainers.get(De);Me&&(Me.unsubscribe(),this.scrollContainers.delete(De))}scrolled(De=20){return this._platform.isBrowser?new Y.y(Me=>{this._globalSubscription||this._addGlobalListener();const Ce=De>0?this._scrolled.pipe((0,ie.e)(De)).subscribe(Me):this._scrolled.subscribe(Me);return this._scrolledCount++,()=>{Ce.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,K.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((De,Me)=>this.deregister(Me)),this._scrolled.complete()}ancestorScrolled(De,Me){const Ce=this.getAncestorScrollContainers(De);return this.scrolled(Me).pipe((0,V.h)(Be=>!Be||Ce.indexOf(Be)>-1))}getAncestorScrollContainers(De){const Me=[];return this.scrollContainers.forEach((Ce,Be)=>{this._scrollableContainsElement(Be,De)&&Me.push(Be)}),Me}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(De,Me){let Ce=(0,o.fI)(Me),Be=De.getElementRef().nativeElement;do{if(Ce==Be)return!0}while(Ce=Ce.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const De=this._getWindow();return(0,W.R)(De.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)(l.LFG(l.R0b),l.LFG(Q.t4),l.LFG(be.K0,8))},Ge.\u0275prov=l.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Xe})(),ye=(()=>{var Ge;class Xe{constructor(De,Me,Ce){this._platform=De,this._change=new R.x,this._changeListener=Be=>{this._change.next(Be)},this._document=Ce,Me.runOutsideAngular(()=>{if(De.isBrowser){const Be=this._getWindow();Be.addEventListener("resize",this._changeListener),Be.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const De=this._getWindow();De.removeEventListener("resize",this._changeListener),De.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const De={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),De}getViewportRect(){const De=this.getViewportScrollPosition(),{width:Me,height:Ce}=this.getViewportSize();return{top:De.top,left:De.left,bottom:De.top+Ce,right:De.left+Me,height:Ce,width:Me}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const De=this._document,Me=this._getWindow(),Ce=De.documentElement,Be=Ce.getBoundingClientRect();return{top:-Be.top||De.body.scrollTop||Me.scrollY||Ce.scrollTop||0,left:-Be.left||De.body.scrollLeft||Me.scrollX||Ce.scrollLeft||0}}change(De=20){return De>0?this._change.pipe((0,ie.e)(De)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const De=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:De.innerWidth,height:De.innerHeight}:{width:0,height:0}}}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)(l.LFG(Q.t4),l.LFG(l.R0b),l.LFG(be.K0,8))},Ge.\u0275prov=l.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Xe})(),Cn=(()=>{var Ge;class Xe{}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)},Ge.\u0275mod=l.oAB({type:Ge}),Ge.\u0275inj=l.cJS({}),Xe})(),wn=(()=>{var Ge;class Xe{}return(Ge=Xe).\u0275fac=function(De){return new(De||Ge)},Ge.\u0275mod=l.oAB({type:Ge}),Ge.\u0275inj=l.cJS({imports:[Ve.vT,Cn,Ve.vT,Cn]}),Xe})()},6814:(wt,Pe,C)=>{C.d(Pe,{$G:()=>Zn,Do:()=>$e,ED:()=>Ts,EM:()=>Wr,HT:()=>K,JF:()=>pi,JJ:()=>Vt,K0:()=>W,Mx:()=>ir,NF:()=>To,O5:()=>dr,OU:()=>ur,Ov:()=>Wo,PC:()=>ki,PM:()=>Li,RF:()=>di,S$:()=>Ve,V_:()=>ue,Ye:()=>X,b0:()=>tt,bD:()=>Ei,ez:()=>ar,mk:()=>Mn,n9:()=>$o,q:()=>R,sg:()=>Ln,tP:()=>Do,uU:()=>bi,w_:()=>Y});var o=C(5879);let l=null;function R(){return l}function K(g){l||(l=g)}class Y{}const W=new o.OlP("DocumentToken");let re=(()=>{var g;class A{historyGo(M){throw new Error("Not implemented")}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275prov=o.Yz7({token:g,factory:function(){return(0,o.f3M)(ie)},providedIn:"platform"}),A})();const ue=new o.OlP("Location Initialized");let ie=(()=>{var g;class A extends re{constructor(){super(),this._doc=(0,o.f3M)(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState(M){const ne=R().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",M,!1),()=>ne.removeEventListener("popstate",M)}onHashChange(M){const ne=R().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",M,!1),()=>ne.removeEventListener("hashchange",M)}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(M){this._location.pathname=M}pushState(M,ne,Le){this._history.pushState(M,ne,Le)}replaceState(M,ne,Le){this._history.replaceState(M,ne,Le)}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275prov=o.Yz7({token:g,factory:function(){return new g},providedIn:"platform"}),A})();function V(g,A){if(0==g.length)return A;if(0==A.length)return g;let fe=0;return g.endsWith("/")&&fe++,A.startsWith("/")&&fe++,2==fe?g+A.substring(1):1==fe?g+A:g+"/"+A}function Q(g){const A=g.match(/#|\?|$/),fe=A&&A.index||g.length;return g.slice(0,fe-("/"===g[fe-1]?1:0))+g.slice(fe)}function be(g){return g&&"?"!==g[0]?"?"+g:g}let Ve=(()=>{var g;class A{historyGo(M){throw new Error("Not implemented")}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275prov=o.Yz7({token:g,factory:function(){return(0,o.f3M)(tt)},providedIn:"root"}),A})();const He=new o.OlP("appBaseHref");let tt=(()=>{var g;class A extends Ve{constructor(M,ne){super(),this._platformLocation=M,this._removeListenerFns=[],this._baseHref=ne??this._platformLocation.getBaseHrefFromDOM()??(0,o.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return V(this._baseHref,M)}path(M=!1){const ne=this._platformLocation.pathname+be(this._platformLocation.search),Le=this._platformLocation.hash;return Le&&M?`${ne}${Le}`:ne}pushState(M,ne,Le,yt){const kt=this.prepareExternalUrl(Le+be(yt));this._platformLocation.pushState(M,ne,kt)}replaceState(M,ne,Le,yt){const kt=this.prepareExternalUrl(Le+be(yt));this._platformLocation.replaceState(M,ne,kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}}return(g=A).\u0275fac=function(M){return new(M||g)(o.LFG(re),o.LFG(He,8))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),A})(),$e=(()=>{var g;class A extends Ve{constructor(M,ne){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}path(M=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(M){const ne=V(this._baseHref,M);return ne.length>0?"#"+ne:ne}pushState(M,ne,Le,yt){let kt=this.prepareExternalUrl(Le+be(yt));0==kt.length&&(kt=this._platformLocation.pathname),this._platformLocation.pushState(M,ne,kt)}replaceState(M,ne,Le,yt){let kt=this.prepareExternalUrl(Le+be(yt));0==kt.length&&(kt=this._platformLocation.pathname),this._platformLocation.replaceState(M,ne,kt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}}return(g=A).\u0275fac=function(M){return new(M||g)(o.LFG(re),o.LFG(He,8))},g.\u0275prov=o.Yz7({token:g,factory:g.\u0275fac}),A})(),X=(()=>{var g;class A{constructor(M){this._subject=new o.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=M;const ne=this._locationStrategy.getBaseHref();this._basePath=function q(g){if(new RegExp("^(https?:)?//").test(g)){const[,fe]=g.split(/\/\/[^\/]+/);return fe}return g}(Q(Ne(ne))),this._locationStrategy.onPopState(Le=>{this._subject.emit({url:this.path(!0),pop:!0,state:Le.state,type:Le.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(M=!1){return this.normalize(this._locationStrategy.path(M))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(M,ne=""){return this.path()==this.normalize(M+be(ne))}normalize(M){return A.stripTrailingSlash(function ut(g,A){if(!g||!A.startsWith(g))return A;const fe=A.substring(g.length);return""===fe||["/",";","?","#"].includes(fe[0])?fe:A}(this._basePath,Ne(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._locationStrategy.prepareExternalUrl(M)}go(M,ne="",Le=null){this._locationStrategy.pushState(Le,"",M,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+be(ne)),Le)}replaceState(M,ne="",Le=null){this._locationStrategy.replaceState(Le,"",M,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+be(ne)),Le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(M=0){this._locationStrategy.historyGo?.(M)}onUrlChange(M){return this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)})),()=>{const ne=this._urlChangeListeners.indexOf(M);this._urlChangeListeners.splice(ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(M="",ne){this._urlChangeListeners.forEach(Le=>Le(M,ne))}subscribe(M,ne,Le){return this._subject.subscribe({next:M,error:ne,complete:Le})}}return(g=A).normalizeQueryParams=be,g.joinWithSlash=V,g.stripTrailingSlash=Q,g.\u0275fac=function(M){return new(M||g)(o.LFG(Ve))},g.\u0275prov=o.Yz7({token:g,factory:function(){return function Ye(){return new X((0,o.LFG)(Ve))}()},providedIn:"root"}),A})();function Ne(g){return g.replace(/\/index.html$/,"")}var ve=function(g){return g[g.Decimal=0]="Decimal",g[g.Percent=1]="Percent",g[g.Currency=2]="Currency",g[g.Scientific=3]="Scientific",g}(ve||{}),rt=function(g){return g[g.Format=0]="Format",g[g.Standalone=1]="Standalone",g}(rt||{}),Qe=function(g){return g[g.Narrow=0]="Narrow",g[g.Abbreviated=1]="Abbreviated",g[g.Wide=2]="Wide",g[g.Short=3]="Short",g}(Qe||{}),ft=function(g){return g[g.Short=0]="Short",g[g.Medium=1]="Medium",g[g.Long=2]="Long",g[g.Full=3]="Full",g}(ft||{}),xt=function(g){return g[g.Decimal=0]="Decimal",g[g.Group=1]="Group",g[g.List=2]="List",g[g.PercentSign=3]="PercentSign",g[g.PlusSign=4]="PlusSign",g[g.MinusSign=5]="MinusSign",g[g.Exponential=6]="Exponential",g[g.SuperscriptingExponent=7]="SuperscriptingExponent",g[g.PerMille=8]="PerMille",g[g.Infinity=9]="Infinity",g[g.NaN=10]="NaN",g[g.TimeSeparator=11]="TimeSeparator",g[g.CurrencyDecimal=12]="CurrencyDecimal",g[g.CurrencyGroup=13]="CurrencyGroup",g}(xt||{});function Xe(g,A){return Xt((0,o.cg1)(g)[o.wAp.DateFormat],A)}function Ze(g,A){return Xt((0,o.cg1)(g)[o.wAp.TimeFormat],A)}function De(g,A){return Xt((0,o.cg1)(g)[o.wAp.DateTimeFormat],A)}function Me(g,A){const fe=(0,o.cg1)(g),M=fe[o.wAp.NumberSymbols][A];if(typeof M>"u"){if(A===xt.CurrencyDecimal)return fe[o.wAp.NumberSymbols][xt.Decimal];if(A===xt.CurrencyGroup)return fe[o.wAp.NumberSymbols][xt.Group]}return M}function jt(g){if(!g[o.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${g[o.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xt(g,A){for(let fe=A;fe>-1;fe--)if(typeof g[fe]<"u")return g[fe];throw new Error("Locale data API: locale data undefined")}function an(g){const[A,fe]=g.split(":");return{hours:+A,minutes:+fe}}const xn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hn={},Un=/((?:[^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 ze=function(g){return g[g.Short=0]="Short",g[g.ShortGMT=1]="ShortGMT",g[g.Long=2]="Long",g[g.Extended=3]="Extended",g}(ze||{}),G=function(g){return g[g.FullYear=0]="FullYear",g[g.Month=1]="Month",g[g.Date=2]="Date",g[g.Hours=3]="Hours",g[g.Minutes=4]="Minutes",g[g.Seconds=5]="Seconds",g[g.FractionalSeconds=6]="FractionalSeconds",g[g.Day=7]="Day",g}(G||{}),Ie=function(g){return g[g.DayPeriods=0]="DayPeriods",g[g.Days=1]="Days",g[g.Months=2]="Months",g[g.Eras=3]="Eras",g}(Ie||{});function pe(g,A,fe,M){let ne=function z(g){if(B(g))return g;if("number"==typeof g&&!isNaN(g))return new Date(g);if("string"==typeof g){if(g=g.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(g)){const[ne,Le=1,yt=1]=g.split("-").map(kt=>+kt);return nt(ne,Le-1,yt)}const fe=parseFloat(g);if(!isNaN(g-fe))return new Date(fe);let M;if(M=g.match(xn))return function U(g){const A=new Date(0);let fe=0,M=0;const ne=g[8]?A.setUTCFullYear:A.setFullYear,Le=g[8]?A.setUTCHours:A.setHours;g[9]&&(fe=Number(g[9]+g[10]),M=Number(g[9]+g[11])),ne.call(A,Number(g[1]),Number(g[2])-1,Number(g[3]));const yt=Number(g[4]||0)-fe,kt=Number(g[5]||0)-M,Tn=Number(g[6]||0),zn=Math.floor(1e3*parseFloat("0."+(g[7]||0)));return Le.call(A,yt,kt,Tn,zn),A}(M)}const A=new Date(g);if(!B(A))throw new Error(`Unable to convert "${g}" into a date`);return A}(g);A=Te(fe,A)||A;let kt,yt=[];for(;A;){if(kt=Un.exec(A),!kt){yt.push(A);break}{yt=yt.concat(kt.slice(1));const Bn=yt.pop();if(!Bn)break;A=Bn}}let Tn=ne.getTimezoneOffset();M&&(Tn=Yt(M,Tn),ne=function Oe(g,A,fe){const M=fe?-1:1,ne=g.getTimezoneOffset();return function cn(g,A){return(g=new Date(g.getTime())).setMinutes(g.getMinutes()+A),g}(g,M*(Yt(A,ne)-ne))}(ne,M,!0));let zn="";return yt.forEach(Bn=>{const bn=function Ht(g){if(Pt[g])return Pt[g];let A;switch(g){case"G":case"GG":case"GGG":A=vt(Ie.Eras,Qe.Abbreviated);break;case"GGGG":A=vt(Ie.Eras,Qe.Wide);break;case"GGGGG":A=vt(Ie.Eras,Qe.Narrow);break;case"y":A=Je(G.FullYear,1,0,!1,!0);break;case"yy":A=Je(G.FullYear,2,0,!0,!0);break;case"yyy":A=Je(G.FullYear,3,0,!1,!0);break;case"yyyy":A=Je(G.FullYear,4,0,!1,!0);break;case"Y":A=Et(1);break;case"YY":A=Et(2,!0);break;case"YYY":A=Et(3);break;case"YYYY":A=Et(4);break;case"M":case"L":A=Je(G.Month,1,1);break;case"MM":case"LL":A=Je(G.Month,2,1);break;case"MMM":A=vt(Ie.Months,Qe.Abbreviated);break;case"MMMM":A=vt(Ie.Months,Qe.Wide);break;case"MMMMM":A=vt(Ie.Months,Qe.Narrow);break;case"LLL":A=vt(Ie.Months,Qe.Abbreviated,rt.Standalone);break;case"LLLL":A=vt(Ie.Months,Qe.Wide,rt.Standalone);break;case"LLLLL":A=vt(Ie.Months,Qe.Narrow,rt.Standalone);break;case"w":A=St(1);break;case"ww":A=St(2);break;case"W":A=St(1,!0);break;case"d":A=Je(G.Date,1);break;case"dd":A=Je(G.Date,2);break;case"c":case"cc":A=Je(G.Day,1);break;case"ccc":A=vt(Ie.Days,Qe.Abbreviated,rt.Standalone);break;case"cccc":A=vt(Ie.Days,Qe.Wide,rt.Standalone);break;case"ccccc":A=vt(Ie.Days,Qe.Narrow,rt.Standalone);break;case"cccccc":A=vt(Ie.Days,Qe.Short,rt.Standalone);break;case"E":case"EE":case"EEE":A=vt(Ie.Days,Qe.Abbreviated);break;case"EEEE":A=vt(Ie.Days,Qe.Wide);break;case"EEEEE":A=vt(Ie.Days,Qe.Narrow);break;case"EEEEEE":A=vt(Ie.Days,Qe.Short);break;case"a":case"aa":case"aaa":A=vt(Ie.DayPeriods,Qe.Abbreviated);break;case"aaaa":A=vt(Ie.DayPeriods,Qe.Wide);break;case"aaaaa":A=vt(Ie.DayPeriods,Qe.Narrow);break;case"b":case"bb":case"bbb":A=vt(Ie.DayPeriods,Qe.Abbreviated,rt.Standalone,!0);break;case"bbbb":A=vt(Ie.DayPeriods,Qe.Wide,rt.Standalone,!0);break;case"bbbbb":A=vt(Ie.DayPeriods,Qe.Narrow,rt.Standalone,!0);break;case"B":case"BB":case"BBB":A=vt(Ie.DayPeriods,Qe.Abbreviated,rt.Format,!0);break;case"BBBB":A=vt(Ie.DayPeriods,Qe.Wide,rt.Format,!0);break;case"BBBBB":A=vt(Ie.DayPeriods,Qe.Narrow,rt.Format,!0);break;case"h":A=Je(G.Hours,1,-12);break;case"hh":A=Je(G.Hours,2,-12);break;case"H":A=Je(G.Hours,1);break;case"HH":A=Je(G.Hours,2);break;case"m":A=Je(G.Minutes,1);break;case"mm":A=Je(G.Minutes,2);break;case"s":A=Je(G.Seconds,1);break;case"ss":A=Je(G.Seconds,2);break;case"S":A=Je(G.FractionalSeconds,1);break;case"SS":A=Je(G.FractionalSeconds,2);break;case"SSS":A=Je(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":A=y(ze.Short);break;case"ZZZZZ":A=y(ze.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":A=y(ze.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":A=y(ze.Long);break;default:return null}return Pt[g]=A,A}(Bn);zn+=bn?bn(ne,fe,Tn):"''"===Bn?"'":Bn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),zn}function nt(g,A,fe){const M=new Date(0);return M.setFullYear(g,A,fe),M.setHours(0,0,0),M}function Te(g,A){const fe=function Rt(g){return(0,o.cg1)(g)[o.wAp.LocaleId]}(g);if(Hn[fe]=Hn[fe]||{},Hn[fe][A])return Hn[fe][A];let M="";switch(A){case"shortDate":M=Xe(g,ft.Short);break;case"mediumDate":M=Xe(g,ft.Medium);break;case"longDate":M=Xe(g,ft.Long);break;case"fullDate":M=Xe(g,ft.Full);break;case"shortTime":M=Ze(g,ft.Short);break;case"mediumTime":M=Ze(g,ft.Medium);break;case"longTime":M=Ze(g,ft.Long);break;case"fullTime":M=Ze(g,ft.Full);break;case"short":const ne=Te(g,"shortTime"),Le=Te(g,"shortDate");M=Ke(De(g,ft.Short),[ne,Le]);break;case"medium":const yt=Te(g,"mediumTime"),kt=Te(g,"mediumDate");M=Ke(De(g,ft.Medium),[yt,kt]);break;case"long":const Tn=Te(g,"longTime"),zn=Te(g,"longDate");M=Ke(De(g,ft.Long),[Tn,zn]);break;case"full":const Bn=Te(g,"fullTime"),bn=Te(g,"fullDate");M=Ke(De(g,ft.Full),[Bn,bn])}return M&&(Hn[fe][A]=M),M}function Ke(g,A){return A&&(g=g.replace(/\{([^}]+)}/g,function(fe,M){return null!=A&&M in A?A[M]:fe})),g}function dt(g,A,fe="-",M,ne){let Le="";(g<0||ne&&g<=0)&&(ne?g=1-g:(g=-g,Le=fe));let yt=String(g);for(;yt.length<A;)yt="0"+yt;return M&&(yt=yt.slice(yt.length-A)),Le+yt}function Je(g,A,fe=0,M=!1,ne=!1){return function(Le,yt){let kt=function pt(g,A){switch(g){case G.FullYear:return A.getFullYear();case G.Month:return A.getMonth();case G.Date:return A.getDate();case G.Hours:return A.getHours();case G.Minutes:return A.getMinutes();case G.Seconds:return A.getSeconds();case G.FractionalSeconds:return A.getMilliseconds();case G.Day:return A.getDay();default:throw new Error(`Unknown DateType value "${g}".`)}}(g,Le);if((fe>0||kt>-fe)&&(kt+=fe),g===G.Hours)0===kt&&-12===fe&&(kt=12);else if(g===G.FractionalSeconds)return function je(g,A){return dt(g,3).substring(0,A)}(kt,A);const Tn=Me(yt,xt.MinusSign);return dt(kt,A,Tn,M,ne)}}function vt(g,A,fe=rt.Format,M=!1){return function(ne,Le){return function Re(g,A,fe,M,ne,Le){switch(fe){case Ie.Months:return function sn(g,A,fe){const M=(0,o.cg1)(g),Le=Xt([M[o.wAp.MonthsFormat],M[o.wAp.MonthsStandalone]],A);return Xt(Le,fe)}(A,ne,M)[g.getMonth()];case Ie.Days:return function qt(g,A,fe){const M=(0,o.cg1)(g),Le=Xt([M[o.wAp.DaysFormat],M[o.wAp.DaysStandalone]],A);return Xt(Le,fe)}(A,ne,M)[g.getDay()];case Ie.DayPeriods:const yt=g.getHours(),kt=g.getMinutes();if(Le){const zn=function Kt(g){const A=(0,o.cg1)(g);return jt(A),(A[o.wAp.ExtraData][2]||[]).map(M=>"string"==typeof M?an(M):[an(M[0]),an(M[1])])}(A),Bn=function nn(g,A,fe){const M=(0,o.cg1)(g);jt(M);const Le=Xt([M[o.wAp.ExtraData][0],M[o.wAp.ExtraData][1]],A)||[];return Xt(Le,fe)||[]}(A,ne,M),bn=zn.findIndex(sr=>{if(Array.isArray(sr)){const[Qn,_r]=sr,Zr=yt>=Qn.hours&&kt>=Qn.minutes,Si=yt<_r.hours||yt===_r.hours&&kt<_r.minutes;if(Qn.hours<_r.hours){if(Zr&&Si)return!0}else if(Zr||Si)return!0}else if(sr.hours===yt&&sr.minutes===kt)return!0;return!1});if(-1!==bn)return Bn[bn]}return function Qt(g,A,fe){const M=(0,o.cg1)(g),Le=Xt([M[o.wAp.DayPeriodsFormat],M[o.wAp.DayPeriodsStandalone]],A);return Xt(Le,fe)}(A,ne,M)[yt<12?0:1];case Ie.Eras:return function Cn(g,A){return Xt((0,o.cg1)(g)[o.wAp.Eras],A)}(A,M)[g.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${fe}`)}}(ne,Le,g,A,fe,M)}}function y(g){return function(A,fe,M){const ne=-1*M,Le=Me(fe,xt.MinusSign),yt=ne>0?Math.floor(ne/60):Math.ceil(ne/60);switch(g){case ze.Short:return(ne>=0?"+":"")+dt(yt,2,Le)+dt(Math.abs(ne%60),2,Le);case ze.ShortGMT:return"GMT"+(ne>=0?"+":"")+dt(yt,1,Le);case ze.Long:return"GMT"+(ne>=0?"+":"")+dt(yt,2,Le)+":"+dt(Math.abs(ne%60),2,Le);case ze.Extended:return 0===M?"Z":(ne>=0?"+":"")+dt(yt,2,Le)+":"+dt(Math.abs(ne%60),2,Le);default:throw new Error(`Unknown zone width "${g}"`)}}}const P=0,ee=4;function it(g){return nt(g.getFullYear(),g.getMonth(),g.getDate()+(ee-g.getDay()))}function St(g,A=!1){return function(fe,M){let ne;if(A){const Le=new Date(fe.getFullYear(),fe.getMonth(),1).getDay()-1,yt=fe.getDate();ne=1+Math.floor((yt+Le)/7)}else{const Le=it(fe),yt=function Ae(g){const A=nt(g,P,1).getDay();return nt(g,0,1+(A<=ee?ee:ee+7)-A)}(Le.getFullYear()),kt=Le.getTime()-yt.getTime();ne=1+Math.round(kt/6048e5)}return dt(ne,g,Me(M,xt.MinusSign))}}function Et(g,A=!1){return function(fe,M){return dt(it(fe).getFullYear(),g,Me(M,xt.MinusSign),A)}}const Pt={};function Yt(g,A){g=g.replace(/:/g,"");const fe=Date.parse("Jan 01, 1970 00:00:00 "+g)/6e4;return isNaN(fe)?A:fe}function B(g){return g instanceof Date&&!isNaN(g.valueOf())}const S=/^(\d+)?\.((\d+)(-(\d+))?)?$/,j=".",L="0";function Ut(g){const A=parseInt(g);if(isNaN(A))throw new Error("Invalid integer literal when parsing "+g);return A}function ir(g,A){A=encodeURIComponent(A);for(const fe of g.split(";")){const M=fe.indexOf("="),[ne,Le]=-1==M?[fe,""]:[fe.slice(0,M),fe.slice(M+1)];if(ne.trim()===A)return decodeURIComponent(Le)}return null}const yr=/\s+/,zr=[];let Mn=(()=>{var g;class A{constructor(M,ne,Le,yt){this._iterableDiffers=M,this._keyValueDiffers=ne,this._ngEl=Le,this._renderer=yt,this.initialClasses=zr,this.stateMap=new Map}set klass(M){this.initialClasses=null!=M?M.trim().split(yr):zr}set ngClass(M){this.rawClass="string"==typeof M?M.trim().split(yr):M}ngDoCheck(){for(const ne of this.initialClasses)this._updateState(ne,!0);const M=this.rawClass;if(Array.isArray(M)||M instanceof Set)for(const ne of M)this._updateState(ne,!0);else if(null!=M)for(const ne of Object.keys(M))this._updateState(ne,!!M[ne]);this._applyStateDiff()}_updateState(M,ne){const Le=this.stateMap.get(M);void 0!==Le?(Le.enabled!==ne&&(Le.changed=!0,Le.enabled=ne),Le.touched=!0):this.stateMap.set(M,{enabled:ne,changed:!0,touched:!0})}_applyStateDiff(){for(const M of this.stateMap){const ne=M[0],Le=M[1];Le.changed?(this._toggleClass(ne,Le.enabled),Le.changed=!1):Le.touched||(Le.enabled&&this._toggleClass(ne,!1),this.stateMap.delete(ne)),Le.touched=!1}}_toggleClass(M,ne){(M=M.trim()).length>0&&M.split(yr).forEach(Le=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Le):this._renderer.removeClass(this._ngEl.nativeElement,Le)})}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.ZZ4),o.Y36(o.aQg),o.Y36(o.SBq),o.Y36(o.Qsj))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),A})(),Zn=(()=>{var g;class A{constructor(M){this._viewContainerRef=M,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(M){return void 0!==M.ngComponentOutletNgModule||void 0!==M.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(M){return void 0!==M.ngComponentOutlet||void 0!==M.ngComponentOutletContent||void 0!==M.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(M)}ngOnChanges(M){if(this._needToReCreateComponentInstance(M)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const ne=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(M)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,o.Lck)(this.ngComponentOutletNgModule,Or(ne)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Or(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 M of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(M,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(M){for(const[ne,Le]of this._inputsUsed)Le?(M.setInput(ne,this.ngComponentOutletInputs[ne]),this._inputsUsed.set(ne,!1)):(M.setInput(ne,void 0),this._inputsUsed.delete(ne))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[o.TTD]}),A})();function Or(g){return g.get(o.h0i).injector}class ti{constructor(A,fe,M,ne){this.$implicit=A,this.ngForOf=fe,this.index=M,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 Ln=(()=>{var g;class A{set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}constructor(M,ne,Le){this._viewContainer=M,this._template=ne,this._differs=Le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;!this._differ&&M&&(this._differ=this._differs.find(M).create(this.ngForTrackBy))}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const ne=this._viewContainer;M.forEachOperation((Le,yt,kt)=>{if(null==Le.previousIndex)ne.createEmbeddedView(this._template,new ti(Le.item,this._ngForOf,-1,-1),null===kt?void 0:kt);else if(null==kt)ne.remove(null===yt?void 0:yt);else if(null!==yt){const Tn=ne.get(yt);ne.move(Tn,kt),qn(Tn,Le)}});for(let Le=0,yt=ne.length;Le<yt;Le++){const Tn=ne.get(Le).context;Tn.index=Le,Tn.count=yt,Tn.ngForOf=this._ngForOf}M.forEachIdentityChange(Le=>{qn(ne.get(Le.currentIndex),Le)})}static ngTemplateContextGuard(M,ne){return!0}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),A})();function qn(g,A){g.context.$implicit=A.item}let dr=(()=>{var g;class A{constructor(M,ne){this._viewContainer=M,this._context=new ui,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Gr("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Gr("ngIfElse",M),this._elseTemplateRef=M,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(M,ne){return!0}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),A})();class ui{constructor(){this.$implicit=null,this.ngIf=null}}function Gr(g,A){if(A&&!A.createEmbeddedView)throw new Error(`${g} must be a TemplateRef, but received '${(0,o.AaK)(A)}'.`)}class hr{constructor(A,fe){this._viewContainerRef=A,this._templateRef=fe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(A){A&&!this._created?this.create():!A&&this._created&&this.destroy()}}let di=(()=>{var g;class A{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(M){this._ngSwitch=M,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(M){this._defaultViews.push(M)}_matchCase(M){const ne=M==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(M){if(this._defaultViews.length>0&&M!==this._defaultUsed){this._defaultUsed=M;for(const ne of this._defaultViews)ne.enforceState(M)}}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275dir=o.lG2({type:g,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),A})(),$o=(()=>{var g;class A{constructor(M,ne,Le){this.ngSwitch=Le,Le._addCase(),this._view=new hr(M,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(di,9))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),A})(),Ts=(()=>{var g;class A{constructor(M,ne,Le){Le._addDefault(new hr(M,ne))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(di,9))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngSwitchDefault",""]],standalone:!0}),A})(),ki=(()=>{var g;class A{constructor(M,ne,Le){this._ngEl=M,this._differs=ne,this._renderer=Le,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,ne){const[Le,yt]=M.split("."),kt=-1===Le.indexOf("-")?void 0:o.JOm.DashCase;null!=ne?this._renderer.setStyle(this._ngEl.nativeElement,Le,yt?`${ne}${yt}`:ne,kt):this._renderer.removeStyle(this._ngEl.nativeElement,Le,kt)}_applyChanges(M){M.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),M.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),M.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.SBq),o.Y36(o.aQg),o.Y36(o.Qsj))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),A})(),Do=(()=>{var g;class A{constructor(M){this._viewContainerRef=M,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(M){if(M.ngTemplateOutlet||M.ngTemplateOutletInjector){const ne=this._viewContainerRef;if(this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Le,ngTemplateOutletContext:yt,ngTemplateOutletInjector:kt}=this;this._viewRef=ne.createEmbeddedView(Le,yt,kt?{injector:kt}:void 0)}else this._viewRef=null}else this._viewRef&&M.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.s_b))},g.\u0275dir=o.lG2({type:g,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[o.TTD]}),A})();function Br(g,A){return new o.vHH(2100,!1)}class Go{createSubscription(A,fe){return(0,o.rg0)(()=>A.subscribe({next:fe,error:M=>{throw M}}))}dispose(A){(0,o.rg0)(()=>A.unsubscribe())}}class xr{createSubscription(A,fe){return A.then(fe,M=>{throw M})}dispose(A){}}const Ki=new xr,wo=new Go;let Wo=(()=>{var g;class A{constructor(M){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=M}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(M){return this._obj?M!==this._obj?(this._dispose(),this.transform(M)):this._latestValue:(M&&this._subscribe(M),this._latestValue)}_subscribe(M){this._obj=M,this._strategy=this._selectStrategy(M),this._subscription=this._strategy.createSubscription(M,ne=>this._updateLatestValue(M,ne))}_selectStrategy(M){if((0,o.QGY)(M))return Ki;if((0,o.F4k)(M))return wo;throw Br()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,ne){M===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.sBO,16))},g.\u0275pipe=o.Yjl({name:"async",type:g,pure:!1,standalone:!0}),A})();const Kn=new o.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),or=new o.OlP("DATE_PIPE_DEFAULT_OPTIONS");let bi=(()=>{var g;class A{constructor(M,ne,Le){this.locale=M,this.defaultTimezone=ne,this.defaultOptions=Le}transform(M,ne,Le,yt){if(null==M||""===M||M!=M)return null;try{return pe(M,ne??this.defaultOptions?.dateFormat??"mediumDate",yt||this.locale,Le??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(kt){throw Br()}}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.soG,16),o.Y36(Kn,24),o.Y36(or,24))},g.\u0275pipe=o.Yjl({name:"date",type:g,pure:!0,standalone:!0}),A})(),Vt=(()=>{var g;class A{constructor(M){this._locale=M}transform(M,ne,Le){if(!function br(g){return!(null==g||""===g||g!=g)}(M))return null;Le=Le||this._locale;try{return function le(g,A,fe){return function de(g,A,fe,M,ne,Le,yt=!1){let kt="",Tn=!1;if(isFinite(g)){let zn=function bt(g){let M,ne,Le,yt,kt,A=Math.abs(g)+"",fe=0;for((ne=A.indexOf(j))>-1&&(A=A.replace(j,"")),(Le=A.search(/e/i))>0?(ne<0&&(ne=Le),ne+=+A.slice(Le+1),A=A.substring(0,Le)):ne<0&&(ne=A.length),Le=0;A.charAt(Le)===L;Le++);if(Le===(kt=A.length))M=[0],ne=1;else{for(kt--;A.charAt(kt)===L;)kt--;for(ne-=Le,M=[],yt=0;Le<=kt;Le++,yt++)M[yt]=Number(A.charAt(Le))}return ne>22&&(M=M.splice(0,21),fe=ne-1,ne=1),{digits:M,exponent:fe,integerLen:ne}}(g);yt&&(zn=function We(g){if(0===g.digits[0])return g;const A=g.digits.length-g.integerLen;return g.exponent?g.exponent+=2:(0===A?g.digits.push(0,0):1===A&&g.digits.push(0),g.integerLen+=2),g}(zn));let Bn=A.minInt,bn=A.minFrac,sr=A.maxFrac;if(Le){const xi=Le.match(S);if(null===xi)throw new Error(`${Le} is not a valid digit info`);const Dr=xi[1],to=xi[3],nr=xi[5];null!=Dr&&(Bn=Ut(Dr)),null!=to&&(bn=Ut(to)),null!=nr?sr=Ut(nr):null!=to&&bn>sr&&(sr=bn)}!function ht(g,A,fe){if(A>fe)throw new Error(`The minimum number of digits after fraction (${A}) is higher than the maximum (${fe}).`);let M=g.digits,ne=M.length-g.integerLen;const Le=Math.min(Math.max(A,ne),fe);let yt=Le+g.integerLen,kt=M[yt];if(yt>0){M.splice(Math.max(g.integerLen,yt));for(let bn=yt;bn<M.length;bn++)M[bn]=0}else{ne=Math.max(0,ne),g.integerLen=1,M.length=Math.max(1,yt=Le+1),M[0]=0;for(let bn=1;bn<yt;bn++)M[bn]=0}if(kt>=5)if(yt-1<0){for(let bn=0;bn>yt;bn--)M.unshift(0),g.integerLen++;M.unshift(1),g.integerLen++}else M[yt-1]++;for(;ne<Math.max(0,Le);ne++)M.push(0);let Tn=0!==Le;const zn=A+g.integerLen,Bn=M.reduceRight(function(bn,sr,Qn,_r){return _r[Qn]=(sr+=bn)<10?sr:sr-10,Tn&&(0===_r[Qn]&&Qn>=zn?_r.pop():Tn=!1),sr>=10?1:0},0);Bn&&(M.unshift(Bn),g.integerLen++)}(zn,bn,sr);let Qn=zn.digits,_r=zn.integerLen;const Zr=zn.exponent;let Si=[];for(Tn=Qn.every(xi=>!xi);_r<Bn;_r++)Qn.unshift(0);for(;_r<0;_r++)Qn.unshift(0);_r>0?Si=Qn.splice(_r,Qn.length):(Si=Qn,Qn=[0]);const Oi=[];for(Qn.length>=A.lgSize&&Oi.unshift(Qn.splice(-A.lgSize,Qn.length).join(""));Qn.length>A.gSize;)Oi.unshift(Qn.splice(-A.gSize,Qn.length).join(""));Qn.length&&Oi.unshift(Qn.join("")),kt=Oi.join(Me(fe,M)),Si.length&&(kt+=Me(fe,ne)+Si.join("")),Zr&&(kt+=Me(fe,xt.Exponential)+"+"+Zr)}else kt=Me(fe,xt.Infinity);return kt=g<0&&!Tn?A.negPre+kt+A.negSuf:A.posPre+kt+A.posSuf,kt}(g,function Ee(g,A="-"){const fe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},M=g.split(";"),ne=M[0],Le=M[1],yt=-1!==ne.indexOf(j)?ne.split(j):[ne.substring(0,ne.lastIndexOf(L)+1),ne.substring(ne.lastIndexOf(L)+1)],kt=yt[0],Tn=yt[1]||"";fe.posPre=kt.substring(0,kt.indexOf("#"));for(let Bn=0;Bn<Tn.length;Bn++){const bn=Tn.charAt(Bn);bn===L?fe.minFrac=fe.maxFrac=Bn+1:"#"===bn?fe.maxFrac=Bn+1:fe.posSuf+=bn}const zn=kt.split(",");if(fe.gSize=zn[1]?zn[1].length:0,fe.lgSize=zn[2]||zn[1]?(zn[2]||zn[1]).length:0,Le){const Bn=ne.length-fe.posPre.length-fe.posSuf.length,bn=Le.indexOf("#");fe.negPre=Le.substring(0,bn).replace(/'/g,""),fe.negSuf=Le.slice(bn+Bn).replace(/'/g,"")}else fe.negPre=A+fe.posPre,fe.negSuf=fe.posSuf;return fe}(function Ce(g,A){return(0,o.cg1)(g)[o.wAp.NumberFormats][A]}(A,ve.Decimal),Me(A,xt.MinusSign)),A,xt.Group,xt.Decimal,fe)}(function Ai(g){if("string"==typeof g&&!isNaN(Number(g)-parseFloat(g)))return Number(g);if("number"!=typeof g)throw new Error(`${g} is not a number`);return g}(M),Le,ne)}catch(yt){throw Br()}}}return(g=A).\u0275fac=function(M){return new(M||g)(o.Y36(o.soG,16))},g.\u0275pipe=o.Yjl({name:"number",type:g,pure:!0,standalone:!0}),A})();let ur=(()=>{var g;class A{transform(M,ne,Le){if(null==M)return null;if(!this.supports(M))throw Br();return M.slice(ne,Le)}supports(M){return"string"==typeof M||Array.isArray(M)}}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275pipe=o.Yjl({name:"slice",type:g,pure:!1,standalone:!0}),A})(),ar=(()=>{var g;class A{}return(g=A).\u0275fac=function(M){return new(M||g)},g.\u0275mod=o.oAB({type:g}),g.\u0275inj=o.cJS({}),A})();const Ei="browser",hi="server";function To(g){return g===Ei}function Li(g){return g===hi}let Wr=(()=>{var g;class A{}return(g=A).\u0275prov=(0,o.Yz7)({token:g,providedIn:"root",factory:()=>new Io((0,o.LFG)(W),window)}),A})();class Io{constructor(A,fe){this.document=A,this.window=fe,this.offset=()=>[0,0]}setOffset(A){this.offset=Array.isArray(A)?()=>A:A}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(A){this.supportsScrolling()&&this.window.scrollTo(A[0],A[1])}scrollToAnchor(A){if(!this.supportsScrolling())return;const fe=function Ao(g,A){const fe=g.getElementById(A)||g.getElementsByName(A)[0];if(fe)return fe;if("function"==typeof g.createTreeWalker&&g.body&&"function"==typeof g.body.attachShadow){const M=g.createTreeWalker(g.body,NodeFilter.SHOW_ELEMENT);let ne=M.currentNode;for(;ne;){const Le=ne.shadowRoot;if(Le){const yt=Le.getElementById(A)||Le.querySelector(`[name="${A}"]`);if(yt)return yt}ne=M.nextNode()}}return null}(this.document,A);fe&&(this.scrollToElement(fe),fe.focus())}setHistoryScrollRestoration(A){this.supportsScrolling()&&(this.window.history.scrollRestoration=A)}scrollToElement(A){const fe=A.getBoundingClientRect(),M=fe.left+this.window.pageXOffset,ne=fe.top+this.window.pageYOffset,Le=this.offset();this.window.scrollTo(M-Le[0],ne-Le[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class pi{}},9862:(wt,Pe,C)=>{C.d(Pe,{JF:()=>S,TP:()=>jt,WM:()=>Ve,eN:()=>Ge});var o=C(5879),l=C(2096),R=C(2459),K=C(5592),Y=C(6328),W=C(2181),re=C(7398),ue=C(4716),ie=C(4664),V=C(6814);class Q{}class be{}class Ve{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?"string"==typeof se?this.lazyInit=()=>{this.headers=new Map,se.split("\n").forEach(ot=>{const le=ot.indexOf(":");if(le>0){const Ee=ot.slice(0,le),We=Ee.toLowerCase(),bt=ot.slice(le+1).trim();this.maybeSetNormalizedName(Ee,We),this.headers.has(We)?this.headers.get(We).push(bt):this.headers.set(We,[bt])}})}:typeof Headers<"u"&&se instanceof Headers?(this.headers=new Map,se.forEach((ot,le)=>{this.setHeaderEntries(le,ot)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(se).forEach(([ot,le])=>{this.setHeaderEntries(ot,le)})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const ot=this.headers.get(se.toLowerCase());return ot&&ot.length>0?ot[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,ot){return this.clone({name:se,value:ot,op:"a"})}set(se,ot){return this.clone({name:se,value:ot,op:"s"})}delete(se,ot){return this.clone({name:se,value:ot,op:"d"})}maybeSetNormalizedName(se,ot){this.normalizedNames.has(ot)||this.normalizedNames.set(ot,se)}init(){this.lazyInit&&(this.lazyInit instanceof Ve?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(ot=>{this.headers.set(ot,se.headers.get(ot)),this.normalizedNames.set(ot,se.normalizedNames.get(ot))})}clone(se){const ot=new Ve;return ot.lazyInit=this.lazyInit&&this.lazyInit instanceof Ve?this.lazyInit:this,ot.lazyUpdate=(this.lazyUpdate||[]).concat([se]),ot}applyUpdate(se){const ot=se.name.toLowerCase();switch(se.op){case"a":case"s":let le=se.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(se.name,ot);const Ee=("a"===se.op?this.headers.get(ot):void 0)||[];Ee.push(...le),this.headers.set(ot,Ee);break;case"d":const We=se.value;if(We){let bt=this.headers.get(ot);if(!bt)return;bt=bt.filter(ht=>-1===We.indexOf(ht)),0===bt.length?(this.headers.delete(ot),this.normalizedNames.delete(ot)):this.headers.set(ot,bt)}else this.headers.delete(ot),this.normalizedNames.delete(ot)}}setHeaderEntries(se,ot){const le=(Array.isArray(ot)?ot:[ot]).map(We=>We.toString()),Ee=se.toLowerCase();this.headers.set(Ee,le),this.maybeSetNormalizedName(se,Ee)}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(ot=>se(this.normalizedNames.get(ot),this.headers.get(ot)))}}class tt{encodeKey(se){return ut(se)}encodeValue(se){return ut(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const X=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ut(de){return encodeURIComponent(de).replace(X,(se,ot)=>Ye[ot]??se)}function Ne(de){return`${de}`}class q{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new tt,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $e(de,se){const ot=new Map;return de.length>0&&de.replace(/^\?/,"").split("&").forEach(Ee=>{const We=Ee.indexOf("="),[bt,ht]=-1==We?[se.decodeKey(Ee),""]:[se.decodeKey(Ee.slice(0,We)),se.decodeValue(Ee.slice(We+1))],Ut=ot.get(bt)||[];Ut.push(ht),ot.set(bt,Ut)}),ot}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(ot=>{const le=se.fromObject[ot],Ee=Array.isArray(le)?le.map(Ne):[Ne(le)];this.map.set(ot,Ee)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const ot=this.map.get(se);return ot?ot[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,ot){return this.clone({param:se,value:ot,op:"a"})}appendAll(se){const ot=[];return Object.keys(se).forEach(le=>{const Ee=se[le];Array.isArray(Ee)?Ee.forEach(We=>{ot.push({param:le,value:We,op:"a"})}):ot.push({param:le,value:Ee,op:"a"})}),this.clone(ot)}set(se,ot){return this.clone({param:se,value:ot,op:"s"})}delete(se,ot){return this.clone({param:se,value:ot,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const ot=this.encoder.encodeKey(se);return this.map.get(se).map(le=>ot+"="+this.encoder.encodeValue(le)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const ot=new q({encoder:this.encoder});return ot.cloneFrom=this.cloneFrom||this,ot.updates=(this.updates||[]).concat(se),ot}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const ot=("a"===se.op?this.map.get(se.param):void 0)||[];ot.push(Ne(se.value)),this.map.set(se.param,ot);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let le=this.map.get(se.param)||[];const Ee=le.indexOf(Ne(se.value));-1!==Ee&&le.splice(Ee,1),le.length>0?this.map.set(se.param,le):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(se,ot){return this.map.set(se,ot),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function rt(de){return typeof ArrayBuffer<"u"&&de instanceof ArrayBuffer}function Qe(de){return typeof Blob<"u"&&de instanceof Blob}function ft(de){return typeof FormData<"u"&&de instanceof FormData}class Bt{constructor(se,ot,le,Ee){let We;if(this.url=ot,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function ye(de){switch(de){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ee?(this.body=void 0!==le?le:null,We=Ee):We=le,We&&(this.reportProgress=!!We.reportProgress,this.withCredentials=!!We.withCredentials,We.responseType&&(this.responseType=We.responseType),We.headers&&(this.headers=We.headers),We.context&&(this.context=We.context),We.params&&(this.params=We.params)),this.headers||(this.headers=new Ve),this.context||(this.context=new ve),this.params){const bt=this.params.toString();if(0===bt.length)this.urlWithParams=ot;else{const ht=ot.indexOf("?");this.urlWithParams=ot+(-1===ht?"?":ht<ot.length-1?"&":"")+bt}}else this.params=new q,this.urlWithParams=ot}serializeBody(){return null===this.body?null:rt(this.body)||Qe(this.body)||ft(this.body)||function xt(de){return typeof URLSearchParams<"u"&&de instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof q?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||ft(this.body)?null:Qe(this.body)?this.body.type||null:rt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(se={}){const ot=se.method||this.method,le=se.url||this.url,Ee=se.responseType||this.responseType,We=void 0!==se.body?se.body:this.body,bt=void 0!==se.withCredentials?se.withCredentials:this.withCredentials,ht=void 0!==se.reportProgress?se.reportProgress:this.reportProgress;let Ut=se.headers||this.headers,Gt=se.params||this.params;const Pn=se.context??this.context;return void 0!==se.setHeaders&&(Ut=Object.keys(se.setHeaders).reduce(($n,Nn)=>$n.set(Nn,se.setHeaders[Nn]),Ut)),se.setParams&&(Gt=Object.keys(se.setParams).reduce(($n,Nn)=>$n.set(Nn,se.setParams[Nn]),Gt)),new Bt(ot,le,We,{params:Gt,headers:Ut,context:Pn,reportProgress:ht,responseType:Ee,withCredentials:bt})}}var Rt=function(de){return de[de.Sent=0]="Sent",de[de.UploadProgress=1]="UploadProgress",de[de.ResponseHeader=2]="ResponseHeader",de[de.DownloadProgress=3]="DownloadProgress",de[de.Response=4]="Response",de[de.User=5]="User",de}(Rt||{});class Qt{constructor(se,ot=200,le="OK"){this.headers=se.headers||new Ve,this.status=void 0!==se.status?se.status:ot,this.statusText=se.statusText||le,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class qt extends Qt{constructor(se={}){super(se),this.type=Rt.ResponseHeader}clone(se={}){return new qt({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class sn extends Qt{constructor(se={}){super(se),this.type=Rt.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new sn({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Cn extends Qt{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function wn(de,se){return{body:se,headers:de.headers,context:de.context,observe:de.observe,params:de.params,reportProgress:de.reportProgress,responseType:de.responseType,withCredentials:de.withCredentials}}let Ge=(()=>{var de;class se{constructor(le){this.handler=le}request(le,Ee,We={}){let bt;if(le instanceof Bt)bt=le;else{let Gt,Pn;Gt=We.headers instanceof Ve?We.headers:new Ve(We.headers),We.params&&(Pn=We.params instanceof q?We.params:new q({fromObject:We.params})),bt=new Bt(le,Ee,void 0!==We.body?We.body:null,{headers:Gt,context:We.context,params:Pn,reportProgress:We.reportProgress,responseType:We.responseType||"json",withCredentials:We.withCredentials})}const ht=(0,l.of)(bt).pipe((0,Y.b)(Gt=>this.handler.handle(Gt)));if(le instanceof Bt||"events"===We.observe)return ht;const Ut=ht.pipe((0,W.h)(Gt=>Gt instanceof sn));switch(We.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return Ut.pipe((0,re.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Gt.body}));case"blob":return Ut.pipe((0,re.U)(Gt=>{if(null!==Gt.body&&!(Gt.body instanceof Blob))throw new Error("Response is not a Blob.");return Gt.body}));case"text":return Ut.pipe((0,re.U)(Gt=>{if(null!==Gt.body&&"string"!=typeof Gt.body)throw new Error("Response is not a string.");return Gt.body}));default:return Ut.pipe((0,re.U)(Gt=>Gt.body))}case"response":return Ut;default:throw new Error(`Unreachable: unhandled observe type ${We.observe}}`)}}delete(le,Ee={}){return this.request("DELETE",le,Ee)}get(le,Ee={}){return this.request("GET",le,Ee)}head(le,Ee={}){return this.request("HEAD",le,Ee)}jsonp(le,Ee){return this.request("JSONP",le,{params:(new q).append(Ee,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(le,Ee={}){return this.request("OPTIONS",le,Ee)}patch(le,Ee,We={}){return this.request("PATCH",le,wn(We,Ee))}post(le,Ee,We={}){return this.request("POST",le,wn(We,Ee))}put(le,Ee,We={}){return this.request("PUT",le,wn(We,Ee))}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(Q))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();function ke(de,se){return se(de)}function Ct(de,se){return(ot,le)=>se.intercept(ot,{handle:Ee=>de(Ee,le)})}const jt=new o.OlP(""),Kt=new o.OlP(""),nn=new o.OlP("");function rn(){let de=null;return(se,ot)=>{null===de&&(de=((0,o.f3M)(jt,{optional:!0})??[]).reduceRight(Ct,ke));const le=(0,o.f3M)(o.HDt),Ee=le.add();return de(se,ot).pipe((0,ue.x)(()=>le.remove(Ee)))}}let Xt=(()=>{var de;class se extends Q{constructor(le,Ee){super(),this.backend=le,this.injector=Ee,this.chain=null,this.pendingTasks=(0,o.f3M)(o.HDt)}handle(le){if(null===this.chain){const We=Array.from(new Set([...this.injector.get(Kt),...this.injector.get(nn,[])]));this.chain=We.reduceRight((bt,ht)=>function Nt(de,se,ot){return(le,Ee)=>ot.runInContext(()=>se(le,We=>de(We,Ee)))}(bt,ht,this.injector),ke)}const Ee=this.pendingTasks.add();return this.chain(le,We=>this.backend.handle(We)).pipe((0,ue.x)(()=>this.pendingTasks.remove(Ee)))}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(be),o.LFG(o.lqb))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();const nt=/^\)\]\}',?\n/;let Ke=(()=>{var de;class se{constructor(le){this.xhrFactory=le}handle(le){if("JSONP"===le.method)throw new o.vHH(-2800,!1);const Ee=this.xhrFactory;return(Ee.\u0275loadImpl?(0,R.D)(Ee.\u0275loadImpl()):(0,l.of)(null)).pipe((0,ie.w)(()=>new K.y(bt=>{const ht=Ee.build();if(ht.open(le.method,le.urlWithParams),le.withCredentials&&(ht.withCredentials=!0),le.headers.forEach((Mn,Zn)=>ht.setRequestHeader(Mn,Zn.join(","))),le.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!le.headers.has("Content-Type")){const Mn=le.detectContentTypeHeader();null!==Mn&&ht.setRequestHeader("Content-Type",Mn)}if(le.responseType){const Mn=le.responseType.toLowerCase();ht.responseType="json"!==Mn?Mn:"text"}const Ut=le.serializeBody();let Gt=null;const Pn=()=>{if(null!==Gt)return Gt;const Mn=ht.statusText||"OK",Zn=new Ve(ht.getAllResponseHeaders()),Or=function Te(de){return"responseURL"in de&&de.responseURL?de.responseURL:/^X-Request-URL:/m.test(de.getAllResponseHeaders())?de.getResponseHeader("X-Request-URL"):null}(ht)||le.url;return Gt=new qt({headers:Zn,status:ht.status,statusText:Mn,url:Or}),Gt},$n=()=>{let{headers:Mn,status:Zn,statusText:Or,url:ti}=Pn(),Ln=null;204!==Zn&&(Ln=typeof ht.response>"u"?ht.responseText:ht.response),0===Zn&&(Zn=Ln?200:0);let qn=Zn>=200&&Zn<300;if("json"===le.responseType&&"string"==typeof Ln){const Ii=Ln;Ln=Ln.replace(nt,"");try{Ln=""!==Ln?JSON.parse(Ln):null}catch(dr){Ln=Ii,qn&&(qn=!1,Ln={error:dr,text:Ln})}}qn?(bt.next(new sn({body:Ln,headers:Mn,status:Zn,statusText:Or,url:ti||void 0})),bt.complete()):bt.error(new Cn({error:Ln,headers:Mn,status:Zn,statusText:Or,url:ti||void 0}))},Nn=Mn=>{const{url:Zn}=Pn(),Or=new Cn({error:Mn,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:Zn||void 0});bt.error(Or)};let ir=!1;const yr=Mn=>{ir||(bt.next(Pn()),ir=!0);let Zn={type:Rt.DownloadProgress,loaded:Mn.loaded};Mn.lengthComputable&&(Zn.total=Mn.total),"text"===le.responseType&&ht.responseText&&(Zn.partialText=ht.responseText),bt.next(Zn)},zr=Mn=>{let Zn={type:Rt.UploadProgress,loaded:Mn.loaded};Mn.lengthComputable&&(Zn.total=Mn.total),bt.next(Zn)};return ht.addEventListener("load",$n),ht.addEventListener("error",Nn),ht.addEventListener("timeout",Nn),ht.addEventListener("abort",Nn),le.reportProgress&&(ht.addEventListener("progress",yr),null!==Ut&&ht.upload&&ht.upload.addEventListener("progress",zr)),ht.send(Ut),bt.next({type:Rt.Sent}),()=>{ht.removeEventListener("error",Nn),ht.removeEventListener("abort",Nn),ht.removeEventListener("load",$n),ht.removeEventListener("timeout",Nn),le.reportProgress&&(ht.removeEventListener("progress",yr),null!==Ut&&ht.upload&&ht.upload.removeEventListener("progress",zr)),ht.readyState!==ht.DONE&&ht.abort()}})))}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(V.JF))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();const dt=new o.OlP("XSRF_ENABLED"),Je=new o.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vt=new o.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Re{}let y=(()=>{var de;class se{constructor(le,Ee,We){this.doc=le,this.platform=Ee,this.cookieName=We,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,V.Mx)(le,this.cookieName),this.lastCookieString=le),this.lastToken}}return(de=se).\u0275fac=function(le){return new(le||de)(o.LFG(V.K0),o.LFG(o.Lbi),o.LFG(Je))},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac}),se})();function P(de,se){const ot=de.url.toLowerCase();if(!(0,o.f3M)(dt)||"GET"===de.method||"HEAD"===de.method||ot.startsWith("http://")||ot.startsWith("https://"))return se(de);const le=(0,o.f3M)(Re).getToken(),Ee=(0,o.f3M)(vt);return null!=le&&!de.headers.has(Ee)&&(de=de.clone({headers:de.headers.set(Ee,le)})),se(de)}var Ae=function(de){return de[de.Interceptors=0]="Interceptors",de[de.LegacyInterceptors=1]="LegacyInterceptors",de[de.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",de[de.NoXsrfProtection=3]="NoXsrfProtection",de[de.JsonpSupport=4]="JsonpSupport",de[de.RequestsMadeViaParent=5]="RequestsMadeViaParent",de[de.Fetch=6]="Fetch",de}(Ae||{});function it(de,se){return{\u0275kind:de,\u0275providers:se}}function St(...de){const se=[Ge,Ke,Xt,{provide:Q,useExisting:Xt},{provide:be,useExisting:Ke},{provide:Kt,useValue:P,multi:!0},{provide:dt,useValue:!0},{provide:Re,useClass:y}];for(const ot of de)se.push(...ot.\u0275providers);return(0,o.MR2)(se)}const Pt=new o.OlP("LEGACY_INTERCEPTOR_FN");let S=(()=>{var de;class se{}return(de=se).\u0275fac=function(le){return new(le||de)},de.\u0275mod=o.oAB({type:de}),de.\u0275inj=o.cJS({providers:[St(it(Ae.LegacyInterceptors,[{provide:Pt,useFactory:rn},{provide:Kt,useExisting:Pt,multi:!0}]))]}),se})()},5879:(wt,Pe,C)=>{C.d(Pe,{$8M:()=>Ya,$WT:()=>bi,$Z:()=>bg,AFp:()=>Bp,ALo:()=>iv,AaK:()=>be,Akn:()=>Ws,AsE:()=>af,BQk:()=>qu,CHM:()=>js,CRH:()=>Dv,DdM:()=>W_,Dn7:()=>av,EJc:()=>Yw,EiD:()=>Tp,EpF:()=>hm,F$t:()=>vm,F4k:()=>fm,FYo:()=>Gp,FiY:()=>Hl,Flj:()=>Ns,G48:()=>xS,Gf:()=>Cv,GfV:()=>Wp,GkF:()=>Wh,Gpc:()=>tt,Gre:()=>Qm,HDt:()=>Wv,Hsn:()=>ym,Ikx:()=>lf,JOm:()=>Ss,JVY:()=>hb,JZr:()=>Ne,Jf7:()=>og,KtG:()=>La,L6k:()=>fb,LAX:()=>gb,LFG:()=>L,LSH:()=>qd,Lbi:()=>oh,Lck:()=>zD,MAs:()=>cm,MMx:()=>B_,MR2:()=>Xd,NdJ:()=>Kh,O4$:()=>Va,Ojb:()=>Ub,OlP:()=>cr,Oqu:()=>sf,P3R:()=>Op,PXZ:()=>ES,Q6J:()=>$h,QGY:()=>Zh,QbO:()=>Hb,Qsj:()=>rC,R0b:()=>Ri,RDi:()=>ob,Rgc:()=>au,SBq:()=>$c,Sil:()=>Xw,Suo:()=>Ev,TTD:()=>Bn,TgZ:()=>Zu,Tol:()=>Nm,Udp:()=>tf,VKq:()=>Z_,VuI:()=>oM,W1O:()=>Tv,WFA:()=>Yh,WLB:()=>K_,X6Q:()=>OS,XFs:()=>ze,Xpm:()=>Go,Xq5:()=>Zg,Xts:()=>Vc,Y36:()=>rc,YKP:()=>F_,YNc:()=>sm,Yjl:()=>Zo,Yz7:()=>jt,Z0I:()=>Xt,ZZ4:()=>Uf,_Bn:()=>N_,_UZ:()=>Gh,_Vd:()=>Uc,_c5:()=>ZS,_uU:()=>Um,aQg:()=>$f,c2e:()=>Gv,cJS:()=>nn,cg1:()=>uf,d8E:()=>cf,dDg:()=>vS,dqk:()=>Ke,eBb:()=>pb,eFA:()=>ny,eJc:()=>Mf,ekj:()=>nf,eoX:()=>Xv,f3M:()=>xe,g9A:()=>Vp,gM2:()=>lv,h0i:()=>Il,hGG:()=>KS,hij:()=>Ju,iGM:()=>bv,ifc:()=>We,ip1:()=>zv,jDz:()=>V_,kEZ:()=>Y_,kL8:()=>a_,kcU:()=>go,l5B:()=>q_,lG2:()=>lo,lcZ:()=>ov,lqb:()=>ra,lri:()=>qv,mCW:()=>wu,n5z:()=>yo,n_E:()=>id,oAB:()=>Wo,oJD:()=>Ip,oxw:()=>_m,pB0:()=>mb,q3G:()=>Dl,q4F:()=>Zp,qFp:()=>aM,qLn:()=>Ja,qOj:()=>Nh,qZA:()=>Ku,qbA:()=>Q_,qzn:()=>ql,rFY:()=>X_,rWj:()=>Qv,rg0:()=>ne,s9C:()=>qh,sBO:()=>PS,s_b:()=>ad,soG:()=>cd,tb:()=>Ff,tdS:()=>ha,tp0:()=>Ul,uIk:()=>Lh,vHH:()=>q,vpe:()=>ia,wAp:()=>mc,xi3:()=>sv,xp6:()=>vg,ynx:()=>Yu,z2F:()=>bc,z3N:()=>Ma,zSh:()=>th,zs3:()=>Gs});var o=C(8645),l=C(7394),R=C(5592),K=C(3019),Y=C(5619),W=C(2096),re=C(3020),ue=C(4664),ie=C(3997);function V(e){for(let t in e)if(e[t]===V)return t;throw Error("Could not find renamed property on target object.")}function Q(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function be(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(be).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 He=V({__forward_ref__:V});function tt(e){return e.__forward_ref__=tt,e.toString=function(){return be(this())},e}function $e(e){return X(e)?e():e}function X(e){return"function"==typeof e&&e.hasOwnProperty(He)&&e.__forward_ref__===tt}function Ye(e){return e&&!!e.\u0275providers}const Ne="https://g.co/ng/security#xss";class q extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function xt(e,t){throw new q(-201,!1)}function Be(e,t){null==e&&function Fe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function jt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function rn(e){return an(e,Vn)||an(e,Hn)}function Xt(e){return null!==rn(e)}function an(e,t){return e.hasOwnProperty(t)?e[t]:null}function zt(e){return e&&(e.hasOwnProperty(xn)||e.hasOwnProperty(Un))?e[xn]:null}const Vn=V({\u0275prov:V}),xn=V({\u0275inj:V}),Hn=V({ngInjectableDef:V}),Un=V({ngInjectorDef:V});var ze=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}(ze||{});let G;function pe(e){const t=G;return G=e,t}function nt(e,t,n){const r=rn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ze.Optional?null:void 0!==t?t:void xt(be(e))}const Ke=globalThis,Pt={},Ht="__NG_DI_FLAG__",Yt="ngTempTokenPath",Oe=/\n/gm,U="__source";let B;function H(e){const t=B;return B=e,t}function j(e,t=ze.Default){if(void 0===B)throw new q(-203,!1);return null===B?nt(e,void 0,t):B.get(e,t&ze.Optional?null:void 0,t)}function L(e,t=ze.Default){return(function Ie(){return G}()||j)($e(e),t)}function xe(e,t=ze.Default){return L(e,ce(t))}function ce(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Se(e){const t=[];for(let n=0;n<e.length;n++){const r=$e(e[n]);if(Array.isArray(r)){if(0===r.length)throw new q(900,!1);let i,s=ze.Default;for(let u=0;u<r.length;u++){const d=r[u],b=de(d);"number"==typeof b?-1===b?i=d.token:s|=b:i=d}t.push(L(i,s))}else t.push(L(r))}return t}function at(e,t){return e[Ht]=t,e.prototype[Ht]=t,e}function de(e){return e[Ht]}function le(e){return{toString:e}.toString()}var Ee=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Ee||{}),We=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(We||{});const bt={},ht=[],Ut=V({\u0275cmp:V}),Gt=V({\u0275dir:V}),Pn=V({\u0275pipe:V}),$n=V({\u0275mod:V}),Nn=V({\u0275fac:V}),ir=V({__NG_ELEMENT_ID__:V}),yr=V({__NG_ENV_ID__:V});function zr(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}function Mn(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const s=n[r++],u=n[r++],d=n[r++];e.setAttribute(t,u,d,s)}else{const s=i,u=n[++r];Or(s)?e.setProperty(t,s,u):e.setAttribute(t,s,u),r++}}return r}function Zn(e){return 3===e||4===e||6===e}function Or(e){return 64===e.charCodeAt(0)}function ti(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||Ln(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Ln(e,t,n,r,i){let s=0,u=e.length;if(-1===t)u=-1;else for(;s<e.length;){const d=e[s++];if("number"==typeof d){if(d===t){u=-1;break}if(d>t){u=s-1;break}}}for(;s<e.length;){const d=e[s];if("number"==typeof d)break;if(d===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==u&&(e.splice(u,0,t),s=u+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const qn="ng-template";function Ii(e,t,n){let r=0,i=!0;for(;r<e.length;){let s=e[r++];if("string"==typeof s&&i){const u=e[r++];if(n&&"class"===s&&-1!==zr(u.toLowerCase(),t,0))return!0}else{if(1===s){for(;r<e.length&&"string"==typeof(s=e[r++]);)if(s.toLowerCase()===t)return!0;return!1}"number"==typeof s&&(i=!1)}}return!1}function dr(e){return 4===e.type&&e.value!==qn}function ui(e,t,n){return t===(4!==e.type||n?e.value:qn)}function Gr(e,t,n){let r=4;const i=e.attrs||[],s=function la(e){for(let t=0;t<e.length;t++)if(Zn(e[t]))return t;return e.length}(i);let u=!1;for(let d=0;d<t.length;d++){const b=t[d];if("number"!=typeof b){if(!u)if(4&r){if(r=2|1&r,""!==b&&!ui(e,b,n)||""===b&&1===t.length){if(hr(r))return!1;u=!0}}else{const O=8&r?b:t[++d];if(8&r&&null!==e.attrs){if(!Ii(e.attrs,O,n)){if(hr(r))return!1;u=!0}continue}const _e=di(8&r?"class":b,i,dr(e),n);if(-1===_e){if(hr(r))return!1;u=!0;continue}if(""!==O){let qe;qe=_e>s?"":i[_e+1].toLowerCase();const ct=8&r?qe:null;if(ct&&-1!==zr(ct,O,0)||2&r&&O!==qe){if(hr(r))return!1;u=!0}}}}else{if(!u&&!hr(r)&&!hr(b))return!1;if(u&&hr(b))continue;u=!1,r=b|1&r}}return hr(r)||u}function hr(e){return 0==(1&e)}function di(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const u=t[i];if(u===e)return i;if(3===u||6===u)s=!0;else{if(1===u||2===u){let d=t[++i];for(;"string"==typeof d;)d=t[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=s?1:2}return-1}return function Is(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function $o(e,t,n=!1){for(let r=0;r<t.length;r++)if(Gr(e,t[r],n))return!0;return!1}function Eo(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function ki(e,t){return e?":not("+t.trim()+")":t}function Do(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let u=e[n];if("string"==typeof u)if(2&r){const d=e[++n];i+="["+u+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!hr(u)&&(t+=ki(s,i),i=""),r=u,s=s||!hr(r);n++}return""!==i&&(t+=ki(s,i)),t}function Go(e){return le(()=>{const t=Mo(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ee.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||We.Emulated,styles:e.styles||ht,_:null,schemas:e.schemas||null,tView:null,id:""};Fi(n);const r=e.dependencies;return n.directiveDefs=Yi(r,!1),n.pipeDefs=Yi(r,!0),n.id=function ni(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 i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Ki(e){return An(e)||Kn(e)}function wo(e){return null!==e}function Wo(e){return le(()=>({type:e.type,bootstrap:e.bootstrap||ht,declarations:e.declarations||ht,imports:e.imports||ht,exports:e.exports||ht,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ni(e,t){if(null==e)return bt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}function lo(e){return le(()=>{const t=Mo(e);return Fi(t),t})}function Zo(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 An(e){return e[Ut]||null}function Kn(e){return e[Gt]||null}function or(e){return e[Pn]||null}function bi(e){const t=An(e)||Kn(e)||or(e);return null!==t&&t.standalone}function Pr(e,t){const n=e[$n]||null;if(!n&&!0===t)throw new Error(`Type ${be(e)} does not have '\u0275mod' property.`);return n}function Mo(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||bt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ht,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ni(e.inputs,t),outputs:Ni(e.outputs)}}function Fi(e){e.features?.forEach(t=>t(e))}function Yi(e,t){if(!e)return null;const n=t?or:Ki;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(wo)}const Xn=0,Vt=1,un=2,Jn=3,br=4,Ai=5,ur=6,Ci=7,ar=8,Ei=9,hi=10,hn=11,Qr=12,To=13,Li=14,lr=15,fi=16,qi=17,Wr=18,Io=19,Ao=20,Qi=21,pi=22,Xi=23,gi=24,En=25,Ko=1,Cr=2,er=7,ri=9,Er=11;function Rr(e){return Array.isArray(e)&&"object"==typeof e[Ko]}function fr(e){return Array.isArray(e)&&!0===e[Ko]}function Yo(e){return 0!=(4&e.flags)}function Ji(e){return e.componentOffset>-1}function Vr(e){return 1==(1&e.flags)}function kr(e){return!!e.template}function qo(e){return 0!=(512&e[un])}function uo(e,t){return e.hasOwnProperty(Nn)?e[Nn]:null}const jr=Symbol("SIGNAL");function Hr(e,t){return(null===e||"object"!=typeof e)&&Object.is(e,t)}let gr=null,wi=!1;function Ur(e){const t=gr;return gr=e,t}const eo={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function hs(e){if(wi)throw new Error("");if(null===gr)return;const t=gr.nextProducerIndex++;ji(gr),t<gr.producerNode.length&&gr.producerNode[t]!==e&&gs(gr)&&fn(gr.producerNode[t],gr.producerIndexOfThis[t]),gr.producerNode[t]!==e&&(gr.producerNode[t]=e,gr.producerIndexOfThis[t]=gs(gr)?da(e,gr,t):0),gr.producerLastReadVersion[t]=e.version}function fs(e){if(!gs(e)||e.dirty){if(!e.producerMustRecompute(e)&&!ua(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Jo(e){if(void 0===e.liveConsumerNode)return;const t=wi;wi=!0;try{for(const n of e.liveConsumerNode)n.dirty||ho(n)}finally{wi=t}}function es(){return!1!==gr?.consumerAllowSignalWrites}function ho(e){e.dirty=!0,Jo(e),e.consumerMarkedDirty?.(e)}function ps(e){return e&&(e.nextProducerIndex=0),Ur(e)}function mr(e,t){if(Ur(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(gs(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)fn(e.producerNode[n],e.producerIndexOfThis[n]);for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ua(e){ji(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(fs(n),r!==n.version))return!0}return!1}function Rs(e){if(ji(e),gs(e))for(let t=0;t<e.producerNode.length;t++)fn(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function da(e,t,n){if(ks(e),ji(e),0===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=da(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function fn(e,t){if(ks(e),ji(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)fn(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];ji(i),i.producerIndexOfThis[r]=t}}function gs(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function ji(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ks(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ns(e,t){const n=Object.create(il);n.computation=e,t?.equal&&(n.equal=t.equal);const r=()=>{if(fs(n),hs(n),n.value===ms)throw n.error;return n.value};return r[jr]=n,r}const ts=Symbol("UNSET"),Fs=Symbol("COMPUTING"),ms=Symbol("ERRORED"),il={...eo,value:ts,dirty:!0,error:null,equal:Hr,producerMustRecompute:e=>e.value===ts||e.value===Fs,producerRecomputeValue(e){if(e.value===Fs)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Fs;const n=ps(e);let r;try{r=e.computation()}catch(i){r=ms,e.error=i}finally{mr(e,n)}t!==ts&&t!==ms&&r!==ms&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let Bs=function Ls(){throw new Error};function _s(){Bs()}let Vs=null;function ha(e,t){const n=Object.create(vs);function r(){return hs(n),n.value}return n.value=e,t?.equal&&(n.equal=t.equal),r.set=g,r.update=A,r.mutate=fe,r.asReadonly=M,r[jr]=n,r}const vs={...eo,equal:Hr,readonlyFn:void 0};function ys(e){e.version++,Jo(e),Vs?.()}function g(e){const t=this[jr];es()||_s(),t.equal(t.value,e)||(t.value=e,ys(t))}function A(e){es()||_s(),g.call(this,e(this[jr].value))}function fe(e){const t=this[jr];es()||_s(),e(t.value),ys(t)}function M(){const e=this[jr];if(void 0===e.readonlyFn){const t=()=>this();t[jr]=e,e.readonlyFn=t}return e.readonlyFn}function ne(e){const t=Ur(null);try{return e()}finally{Ur(t)}}const yt=()=>{},kt={...eo,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:yt};class zn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Bn(){return bn}function bn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qn),sr}function sr(){const e=Zr(this),t=e?.current;if(t){const n=e.previous;if(n===bt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qn(e,t,n,r){const i=this.declaredInputs[n],s=Zr(e)||function Si(e,t){return e[_r]=t}(e,{previous:bt,current:null}),u=s.current||(s.current={}),d=s.previous,b=d[i];u[i]=new zn(b&&b.currentValue,t,d===bt),e[r]=t}Bn.ngInherit=!0;const _r="__ngSimpleChanges__";function Zr(e){return e[_r]||null}const Dr=function(e,t,n){},to="svg";function tr(e){for(;Array.isArray(e);)e=e[Xn];return e}function no(e,t){return tr(t[e])}function Kr(e,t){return tr(t[e.index])}function Ys(e,t){return e.data[t]}function bs(e,t){return e[t]}function Jr(e,t){const n=t[e];return Rr(n)?n:n[Xn]}function Cs(e,t){return null==t?null:e[t]}function sl(e){e[qi]=0}function Ui(e){1024&e[un]||(e[un]|=1024,al(e,1))}function ka(e){1024&e[un]&&(e[un]&=-1025,al(e,-1))}function al(e,t){let n=e[Jn];if(null===n)return;n[Ai]+=t;let r=n;for(n=n[Jn];null!==n&&(1===t&&1===r[Ai]||-1===t&&0===r[Ai]);)n[Ai]+=t,r=n,n=n[Jn]}const dn={lFrame:Gn(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Sr(){return dn.bindingsEnabled}function fo(){return null!==dn.skipHydrationRootTNode}function Mt(){return dn.lFrame.lView}function Rn(){return dn.lFrame.tView}function js(e){return dn.lFrame.contextLView=e,e[ar]}function La(e){return dn.lFrame.contextLView=null,e}function $r(){let e=po();for(;null!==e&&64===e.type;)e=e.parent;return e}function po(){return dn.lFrame.currentTNode}function ei(e,t){const n=dn.lFrame;n.currentTNode=e,n.isParent=t}function rs(){return dn.lFrame.isParent}function Hs(){dn.lFrame.isParent=!1}function Yr(){const e=dn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Es(){return dn.lFrame.bindingIndex++}function f(e){const t=dn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _(e,t){const n=dn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Z(t)}function Z(e){dn.lFrame.currentDirectiveIndex=e}function oe(e){const t=dn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function lt(){return dn.lFrame.currentQueryIndex}function It(e){dn.lFrame.currentQueryIndex=e}function mt(e){const t=e[Vt];return 2===t.type?t.declTNode:1===t.type?e[ur]:null}function Jt(e,t,n){if(n&ze.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&ze.Host||(i=mt(s),null===i||(s=s[Li],10&i.type))););if(null===i)return!1;t=i,e=s}const r=dn.lFrame=Mr();return r.currentTNode=t,r.lView=e,!0}function vn(e){const t=Mr(),n=e[Vt];dn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Mr(){const e=dn.lFrame,t=null===e?null:e.child;return null===t?Gn(e):t}function Gn(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 ii(){const e=dn.lFrame;return dn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $i=ii;function Ro(){const e=ii();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 qr(){return dn.lFrame.selectedIndex}function No(e){dn.lFrame.selectedIndex=e}function vr(){const e=dn.lFrame;return Ys(e.tView,e.selectedIndex)}function Va(){dn.lFrame.currentNamespace=to}function go(){!function xl(){dn.lFrame.currentNamespace=null}()}let mo=!0;function Us(){return mo}function _o(e){mo=e}function Qs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:d,ngAfterViewInit:b,ngAfterViewChecked:O,ngOnDestroy:$}=s;u&&(e.contentHooks??=[]).push(-n,u),d&&((e.contentHooks??=[]).push(n,d),(e.contentCheckHooks??=[]).push(n,d)),b&&(e.viewHooks??=[]).push(-n,b),O&&((e.viewHooks??=[]).push(n,O),(e.viewCheckHooks??=[]).push(n,O)),null!=$&&(e.destroyHooks??=[]).push(n,$)}}function ul(e,t,n){Dc(e,t,3,n)}function ja(e,t,n,r){(3&e[un])===n&&Dc(e,t,n,r)}function dl(e,t){let n=e[un];(3&n)===t&&(n&=8191,n+=1,e[un]=n)}function Dc(e,t,n,r){const s=r??-1,u=t.length-1;let d=0;for(let b=void 0!==r?65535&e[qi]:0;b<u;b++)if("number"==typeof t[b+1]){if(d=t[b],null!=r&&d>=r)break}else t[b]<0&&(e[qi]+=65536),(d<s||-1==s)&&(wc(e,n,t,b),e[qi]=(4294901760&e[qi])+b+2),b++}function Ha(e,t){Dr(4,e,t);const n=Ur(null);try{t.call(e)}finally{Ur(n),Dr(5,e,t)}}function wc(e,t,n,r){const i=n[r]<0,s=n[r+1],d=e[i?-n[r]:n[r]];i?e[un]>>13<e[qi]>>16&&(3&e[un])===t&&(e[un]+=8192,Ha(d,s)):Ha(d,s)}const vo=-1;class Xs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ua(e){return e!==vo}function $s(e){return 32767&e}function Js(e,t){let n=function pl(e){return e>>16}(e),r=t;for(;n>0;)r=r[Li],n--;return r}let kl=!0;function $a(e){const t=kl;return kl=e,t}const Nl=255,Sc=5;let Mc=0;const Fo={};function za(e,t){const n=Da(e,t);if(-1!==n)return n;const r=t[Vt];r.firstCreatePass&&(e.injectorIndex=t.length,gl(r.data,e),gl(t,null),gl(r.blueprint,null));const i=ea(e,t),s=e.injectorIndex;if(Ua(i)){const u=$s(i),d=Js(i,t),b=d[Vt].data;for(let O=0;O<8;O++)t[s+O]=d[u+O]|b[u+O]}return t[s+8]=i,s}function gl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Da(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ea(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Ka(i),null===r)return vo;if(n++,i=i[Li],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return vo}function zs(e,t,n){!function Fl(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ir)&&(r=n[ir]),null==r&&(r=n[ir]=Mc++);const i=r&Nl;t.data[e+(i>>Sc)]|=1<<i}(e,t,n)}function Ga(e,t,n){if(n&ze.Optional||void 0!==e)return e;xt()}function Wa(e,t,n,r){if(n&ze.Optional&&void 0===r&&(r=null),!(n&(ze.Self|ze.Host))){const i=e[Ei],s=pe(void 0);try{return i?i.get(t,r,n&ze.Optional):nt(t,r,n&ze.Optional)}finally{pe(s)}}return Ga(r,0,n)}function Za(e,t,n,r=ze.Default,i){if(null!==e){if(2048&t[un]&&!(r&ze.Self)){const u=function Ic(e,t,n,r,i){let s=e,u=t;for(;null!==s&&null!==u&&2048&u[un]&&!(512&u[un]);){const d=Ll(s,u,n,r|ze.Self,Fo);if(d!==Fo)return d;let b=s.parent;if(!b){const O=u[Ao];if(O){const $=O.get(n,Fo,r);if($!==Fo)return $}b=Ka(u),u=u[Li]}s=b}return i}(e,t,n,r,Fo);if(u!==Fo)return u}const s=Ll(e,t,n,r,Fo);if(s!==Fo)return s}return Wa(t,n,r,i)}function Ll(e,t,n,r,i){const s=function wa(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ir)?e[ir]:void 0;return"number"==typeof t?t>=0?t&Nl:Tc:t}(n);if("function"==typeof s){if(!Jt(t,e,r))return r&ze.Host?Ga(i,0,r):Wa(t,n,r,i);try{let u;if(u=s(r),null!=u||r&ze.Optional)return u;xt()}finally{$i()}}else if("number"==typeof s){let u=null,d=Da(e,t),b=vo,O=r&ze.Host?t[lr][ur]:null;for((-1===d||r&ze.SkipSelf)&&(b=-1===d?ea(e,t):t[d+8],b!==vo&&_l(r,!1)?(u=t[Vt],d=$s(b),t=Js(b,t)):d=-1);-1!==d;){const $=t[Vt];if(ss(s,d,$.data)){const _e=du(d,t,n,u,r,O);if(_e!==Fo)return _e}b=t[d+8],b!==vo&&_l(r,t[Vt].data[d+8]===O)&&ss(s,d,t)?(u=$,d=$s(b),t=Js(b,t)):d=-1}}return i}function du(e,t,n,r,i,s){const u=t[Vt],d=u.data[e+8],$=Gi(d,u,n,null==r?Ji(d)&&kl:r!=u&&0!=(3&d.type),i&ze.Host&&s===d);return null!==$?os(t,u,$,d):Fo}function Gi(e,t,n,r,i){const s=e.providerIndexes,u=t.data,d=1048575&s,b=e.directiveStart,$=s>>20,qe=i?d+$:e.directiveEnd;for(let ct=r?d:d+$;ct<qe;ct++){const Dt=u[ct];if(ct<b&&n===Dt||ct>=b&&Dt.type===n)return ct}if(i){const ct=u[b];if(ct&&kr(ct)&&ct.type===n)return b}return null}function os(e,t,n,r){let i=e[n];const s=t.data;if(function hl(e){return e instanceof Xs}(i)){const u=i;u.resolving&&function rt(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new q(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ye(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}(s[n]));const d=$a(u.canSeeViewProviders);u.resolving=!0;const O=u.injectImpl?pe(u.injectImpl):null;Jt(e,r,ze.Default);try{i=e[n]=u.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function zi(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const u=bn(t);(n.preOrderHooks??=[]).push(e,u),(n.preOrderCheckHooks??=[]).push(e,u)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],t)}finally{null!==O&&pe(O),$a(d),u.resolving=!1,$i()}}return i}function ss(e,t,n){return!!(n[t+(e>>Sc)]&1<<e)}function _l(e,t){return!(e&ze.Self||e&ze.Host&&t)}class Fr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Za(this._tNode,this._lView,t,ce(r),n)}}function Tc(){return new Fr($r(),Mt())}function yo(e){return le(()=>{const t=e.prototype.constructor,n=t[Nn]||Bl(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Nn]||Bl(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Bl(e){return X(e)?()=>{const t=Bl($e(e));return t&&t()}:uo(e)}function Ka(e){const t=e[Vt],n=t.type;return 2===n?t.declTNode:1===n?e[ur]:null}function Ya(e){return function ml(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const s=n[i];if(Zn(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}($r(),e)}const Lo="__parameters__";function he(e,t,n){return le(()=>{const r=function N(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const u=new i(...s);return d.annotation=u,d;function d(b,O,$){const _e=b.hasOwnProperty(Lo)?b[Lo]:Object.defineProperty(b,Lo,{value:[]})[Lo];for(;_e.length<=$;)_e.push(null);return(_e[$]=_e[$]||[]).push(u),b}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Qa(e,t){e.forEach(n=>Array.isArray(n)?Qa(n,t):t(n))}function hu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function yl(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function io(e,t,n){let r=bl(e,t);return r>=0?e[1|r]=n:(r=~r,function fu(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ac(e,t){const n=bl(e,t);if(n>=0)return e[1|n]}function bl(e,t){return function bd(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),u=e[s<<n];if(t===u)return s<<n;u>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const Hl=at(he("Optional"),8),Ul=at(he("SkipSelf"),4);function Gl(e){return 128==(128&e.flags)}var Ss=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ss||{});const Bo=/^>|^->|<!--|-->|--!>|<!-$/g,Wl=/(<|>)/g,Pc="\u200b$1\u200b";const Pd=new Map;let Ay=0;const kd="__ngContext__";function so(e,t){Rr(t)?(e[kd]=t[Io],function xy(e){Pd.set(e[Io],e)}(t)):e[kd]=t}let Nd;function Fd(e,t){return Nd(e,t)}function kc(e){const t=e[Jn];return fr(t)?t[Jn]:t}function tp(e){return rp(e[Qr])}function np(e){return rp(e[br])}function rp(e){for(;null!==e&&!fr(e);)e=e[br];return e}function Zl(e,t,n,r,i){if(null!=r){let s,u=!1;fr(r)?s=r:Rr(r)&&(u=!0,r=r[Xn]);const d=tr(r);0===e&&null!==n?null==i?ap(t,n,d):Cl(t,n,d,i||null,!0):1===e&&null!==n?Cl(t,n,d,i||null,!0):2===e?function Cu(e,t,n){const r=yu(e,t);r&&function qy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,d,u):3===e&&t.destroyNode(d),null!=s&&function Jy(e,t,n,r,i){const s=n[er];s!==tr(n)&&Zl(t,e,r,s,i);for(let d=Er;d<n.length;d++){const b=n[d];Fc(b[Vt],b,e,t,r,s)}}(t,e,s,n,i)}}function Ld(e,t){return e.createComment(function Zf(e){return e.replace(Bo,t=>t.replace(Wl,Pc))}(t))}function _u(e,t,n){return e.createElement(t,n)}function op(e,t){const n=e[ri],r=n.indexOf(t);ka(t),n.splice(r,1)}function vu(e,t){if(e.length<=Er)return;const n=Er+t,r=e[n];if(r){const i=r[fi];null!==i&&i!==e&&op(i,r),t>0&&(e[n-1][br]=r[br]);const s=Vl(e,Er+t);!function Uy(e,t){Fc(e,t,t[hn],2,null,null),t[Xn]=null,t[ur]=null}(r[Vt],r);const u=s[Wr];null!==u&&u.detachView(s[Vt]),r[Jn]=null,r[br]=null,r[un]&=-129}return r}function Bd(e,t){if(!(256&t[un])){const n=t[hn];t[Xi]&&Rs(t[Xi]),t[gi]&&Rs(t[gi]),n.destroyNode&&Fc(e,t,n,3,null,null),function Gy(e){let t=e[Qr];if(!t)return Vd(e[Vt],e);for(;t;){let n=null;if(Rr(t))n=t[Qr];else{const r=t[Er];r&&(n=r)}if(!n){for(;t&&!t[br]&&t!==e;)Rr(t)&&Vd(t[Vt],t),t=t[Jn];null===t&&(t=e),Rr(t)&&Vd(t[Vt],t),n=t&&t[br]}t=n}}(t)}}function Vd(e,t){if(!(256&t[un])){t[un]&=-129,t[un]|=256,function Yy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof Xs)){const s=n[r+1];if(Array.isArray(s))for(let u=0;u<s.length;u+=2){const d=i[s[u]],b=s[u+1];Dr(4,d,b);try{b.call(d)}finally{Dr(5,d,b)}}else{Dr(4,i,s);try{s.call(i)}finally{Dr(5,i,s)}}}}}(e,t),function Ky(e,t){const n=e.cleanup,r=t[Ci];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const u=n[s+3];u>=0?r[u]():r[-u].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[Ci]=null);const i=t[Qi];if(null!==i){t[Qi]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,t),1===t[Vt].type&&t[hn].destroy();const n=t[fi];if(null!==n&&fr(t[Jn])){n!==t[Jn]&&op(n,t);const r=t[Wr];null!==r&&r.detachView(e)}!function Py(e){Pd.delete(e[Io])}(t)}}function jd(e,t,n){return function sp(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Xn];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===We.None||s===We.Emulated)return null}return Kr(r,n)}}(e,t.parent,n)}function Cl(e,t,n,r,i){e.insertBefore(t,n,r,i)}function ap(e,t,n){e.appendChild(t,n)}function lp(e,t,n,r,i){null!==r?Cl(e,t,n,r,i):ap(e,t,n)}function yu(e,t){return e.parentNode(t)}function cp(e,t,n){return dp(e,t,n)}let Hd,Eu,Gd,Du,dp=function up(e,t,n){return 40&e.type?Kr(e,n):null};function bu(e,t,n,r){const i=jd(e,r,t),s=t[hn],d=cp(r.parent||t[ur],r,t);if(null!=i)if(Array.isArray(n))for(let b=0;b<n.length;b++)lp(s,i,n[b],d,!1);else lp(s,i,n,d,!1);void 0!==Hd&&Hd(s,r,t,n,i)}function Nc(e,t){if(null!==t){const n=t.type;if(3&n)return Kr(t,e);if(4&n)return Ud(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Nc(e,r);{const i=e[t.index];return fr(i)?Ud(-1,i):tr(i)}}if(32&n)return Fd(t,e)()||tr(e[t.index]);{const r=fp(e,t);return null!==r?Array.isArray(r)?r[0]:Nc(kc(e[lr]),r):Nc(e,t.next)}}return null}function fp(e,t){return null!==t?e[lr][ur].projection[t.projection]:null}function Ud(e,t){const n=Er+e+1;if(n<t.length){const r=t[n],i=r[Vt].firstChild;if(null!==i)return Nc(r,i)}return t[er]}function $d(e,t,n,r,i,s,u){for(;null!=n;){const d=r[n.index],b=n.type;if(u&&0===t&&(d&&so(tr(d),r),n.flags|=2),32!=(32&n.flags))if(8&b)$d(e,t,n.child,r,i,s,!1),Zl(t,e,i,d,s);else if(32&b){const O=Fd(n,r);let $;for(;$=O();)Zl(t,e,i,$,s);Zl(t,e,i,d,s)}else 16&b?gp(e,t,r,n,i,s):Zl(t,e,i,d,s);n=u?n.projectionNext:n.next}}function Fc(e,t,n,r,i,s){$d(n,r,e.firstChild,t,i,s,!1)}function gp(e,t,n,r,i,s){const u=n[lr],b=u[ur].projection[r.projection];if(Array.isArray(b))for(let O=0;O<b.length;O++)Zl(t,e,i,b[O],s);else{let O=b;const $=u[Jn];Gl(r)&&(O.flags|=128),$d(e,t,O,$,i,s,!0)}}function mp(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function _p(e,t,n){const{mergedAttrs:r,classes:i,styles:s}=n;null!==r&&Mn(e,t,r),null!==i&&mp(e,t,i),null!==s&&function tb(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}function Kl(e){return function zd(){if(void 0===Eu&&(Eu=null,Ke.trustedTypes))try{Eu=Ke.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Eu}()?.createHTML(e)||e}function ob(e){Gd=e}function Yl(){if(void 0!==Gd)return Gd;if(typeof document<"u")return document;throw new q(210,!1)}function Wd(){if(void 0===Du&&(Du=null,Ke.trustedTypes))try{Du=Ke.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Du}function vp(e){return Wd()?.createHTML(e)||e}function bp(e){return Wd()?.createScriptURL(e)||e}class El{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ne})`}}class sb extends El{getTypeName(){return"HTML"}}class ab extends El{getTypeName(){return"Style"}}class lb extends El{getTypeName(){return"Script"}}class cb extends El{getTypeName(){return"URL"}}class ub extends El{getTypeName(){return"ResourceURL"}}function Ma(e){return e instanceof El?e.changingThisBreaksApplicationSecurity:e}function ql(e,t){const n=function db(e){return e instanceof El&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ne})`)}return n===t}function hb(e){return new sb(e)}function fb(e){return new ab(e)}function pb(e){return new lb(e)}function gb(e){return new cb(e)}function mb(e){return new ub(e)}class _b{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Kl(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class vb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Kl(t),n}}const bb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function wu(e){return(e=String(e)).match(bb)?e:"unsafe:"+e}function Ta(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Lc(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ep=Ta("area,br,col,hr,img,wbr"),Dp=Ta("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wp=Ta("rp,rt"),Zd=Lc(Ep,Lc(Dp,Ta("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")),Lc(wp,Ta("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")),Lc(wp,Dp)),Kd=Ta("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sp=Lc(Kd,Ta("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"),Ta("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")),Cb=Ta("script,style,template");class Eb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Zd.hasOwnProperty(n))return this.sanitizedSomething=!0,!Cb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),u=s.name,d=u.toLowerCase();if(!Sp.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let b=s.value;Kd[d]&&(b=wu(b)),this.buf.push(" ",u,'="',Mp(b),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Zd.hasOwnProperty(n)&&!Ep.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Mp(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 Db=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wb=/([^\#-~ |!])/g;function Mp(e){return e.replace(/&/g,"&").replace(Db,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(wb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Su;function Tp(e,t){let n=null;try{Su=Su||function Cp(e){const t=new vb(e);return function yb(){try{return!!(new window.DOMParser).parseFromString(Kl(""),"text/html")}catch{return!1}}()?new _b(t):t}(e);let r=t?String(t):"";n=Su.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Su.getInertBodyElement(r)}while(r!==s);return Kl((new Eb).sanitizeChildren(Yd(n)||n))}finally{if(n){const r=Yd(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Yd(e){return"content"in e&&function Sb(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Dl=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}(Dl||{});function Ip(e){const t=Bc();return t?vp(t.sanitize(Dl.HTML,e)||""):ql(e,"HTML")?vp(Ma(e)):Tp(Yl(),ve(e))}function qd(e){const t=Bc();return t?t.sanitize(Dl.URL,e)||"":ql(e,"URL")?Ma(e):wu(ve(e))}function Ap(e){const t=Bc();if(t)return bp(t.sanitize(Dl.RESOURCE_URL,e)||"");if(ql(e,"ResourceURL"))return bp(Ma(e));throw new q(904,!1)}function Op(e,t,n){return function Ob(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ap:qd}(t,n)(e)}function Bc(){const e=Mt();return e&&e[hi].sanitizer}class cr{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=jt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Vc=new cr("ENVIRONMENT_INITIALIZER"),xp=new cr("INJECTOR",-1),Pp=new cr("INJECTOR_DEF_TYPES");class Qd{get(t,n=Pt){if(n===Pt){const r=new Error(`NullInjectorError: No provider for ${be(t)}!`);throw r.name="NullInjectorError",r}return n}}function Xd(e){return{\u0275providers:e}}function xb(...e){return{\u0275providers:Rp(0,e),\u0275fromNgModule:!0}}function Rp(e,...t){const n=[],r=new Set;let i;const s=u=>{n.push(u)};return Qa(t,u=>{const d=u;Mu(d,s,[],r)&&(i||=[],i.push(d))}),void 0!==i&&kp(i,s),n}function kp(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:i}=e[n];Jd(i,s=>{t(s,r)})}}function Mu(e,t,n,r){if(!(e=$e(e)))return!1;let i=null,s=zt(e);const u=!s&&An(e);if(s||u){if(u&&!u.standalone)return!1;i=e}else{const b=e.ngModule;if(s=zt(b),!s)return!1;i=b}const d=r.has(i);if(u){if(d)return!1;if(r.add(i),u.dependencies){const b="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const O of b)Mu(O,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!d){let O;r.add(i);try{Qa(s.imports,$=>{Mu($,t,n,r)&&(O||=[],O.push($))})}finally{}void 0!==O&&kp(O,t)}if(!d){const O=uo(i)||(()=>new i);t({provide:i,useFactory:O,deps:ht},i),t({provide:Pp,useValue:i,multi:!0},i),t({provide:Vc,useValue:()=>L(i),multi:!0},i)}const b=s.providers;if(null!=b&&!d){const O=e;Jd(b,$=>{t($,O)})}}}return i!==e&&void 0!==e.providers}function Jd(e,t){for(let n of e)Ye(n)&&(n=n.\u0275providers),Array.isArray(n)?Jd(n,t):t(n)}const Pb=V({provide:String,useValue:V});function eh(e){return null!==e&&"object"==typeof e&&Pb in e}function wl(e){return"function"==typeof e}const th=new cr("Set Injector scope."),Tu={},kb={};let nh;function Iu(){return void 0===nh&&(nh=new Qd),nh}class ra{}class Au extends ra{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ih(t,u=>this.processProvider(u)),this.records.set(xp,Ql(void 0,this)),i.has("environment")&&this.records.set(ra,Ql(void 0,this));const s=this.records.get(th);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Pp.multi,ht,ze.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=H(this),r=pe(void 0);try{return t()}finally{H(n),pe(r)}}get(t,n=Pt,r=ze.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(yr))return t[yr](this);r=ce(r);const s=H(this),u=pe(void 0);try{if(!(r&ze.SkipSelf)){let b=this.records.get(t);if(void 0===b){const O=function Vb(e){return"function"==typeof e||"object"==typeof e&&e instanceof cr}(t)&&rn(t);b=O&&this.injectableDefInScope(O)?Ql(rh(t),Tu):null,this.records.set(t,b)}if(null!=b)return this.hydrate(t,b)}return(r&ze.Self?Iu():this.parent).get(t,n=r&ze.Optional&&n===Pt?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Yt]=d[Yt]||[]).unshift(be(t)),s)throw d;return function se(e,t,n,r){const i=e[Yt];throw t[U]&&i.unshift(t[U]),e.message=function ot(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=be(t);if(Array.isArray(t))i=t.map(be).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let d=t[u];s.push(u+":"+("string"==typeof d?JSON.stringify(d):be(d)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Oe,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Yt]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{pe(u),H(s)}}resolveInjectorInitializers(){const t=H(this),n=pe(void 0);try{const i=this.get(Vc.multi,ht,ze.Self);for(const s of i)s()}finally{H(t),pe(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(be(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(t){let n=wl(t=$e(t))?t:$e(t&&t.provide);const r=function Fb(e){return eh(e)?Ql(void 0,e.useValue):Ql(Lp(e),Tu)}(t);if(wl(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Ql(void 0,Tu,!0),i.factory=()=>Se(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Tu&&(n.value=kb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Bb(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=$e(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 rh(e){const t=rn(e),n=null!==t?t.factory:uo(e);if(null!==n)return n;if(e instanceof cr)throw new q(204,!1);if(e instanceof Function)return function Nb(e){const t=e.length;if(t>0)throw yl(t,"?"),new q(204,!1);const n=function Sn(e){return e&&(e[Vn]||e[Hn])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new q(204,!1)}function Lp(e,t,n){let r;if(wl(e)){const i=$e(e);return uo(i)||rh(i)}if(eh(e))r=()=>$e(e.useValue);else if(function Fp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Se(e.deps||[]));else if(function Np(e){return!(!e||!e.useExisting)}(e))r=()=>L($e(e.useExisting));else{const i=$e(e&&(e.useClass||e.provide));if(!function Lb(e){return!!e.deps}(e))return uo(i)||rh(i);r=()=>new i(...Se(e.deps))}return r}function Ql(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ih(e,t){for(const n of e)Array.isArray(n)?ih(n,t):n&&Ye(n)?ih(n.\u0275providers,t):t(n)}const Bp=new cr("AppId",{providedIn:"root",factory:()=>jb}),jb="ng",Vp=new cr("Platform Initializer"),oh=new cr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Hb=new cr("AnimationModuleType"),Ub=new cr("CSP nonce",{providedIn:"root",factory:()=>Yl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let jp=(e,t,n)=>null;function fh(e,t,n=!1){return jp(e,t,n)}class Xb{}class $p{}class eC{resolveComponentFactory(t){throw function Jb(e){const t=Error(`No component factory found for ${be(e)}.`);return t.ngComponent=e,t}(t)}}let Uc=(()=>{class t{}return t.NULL=new eC,t})();function tC(){return ec($r(),Mt())}function ec(e,t){return new $c(Kr(e,t))}let $c=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=tC,t})();function nC(e){return e instanceof $c?e.nativeElement:e}class Gp{}let rC=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function iC(){const e=Mt(),n=Jr($r().index,e);return(Rr(n)?n:e)[hn]}(),t})(),oC=(()=>{var e;class t{}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:()=>null}),t})();class Wp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Zp=new Wp("16.2.5"),mh={};function Qp(e,t=null,n=null,r){const i=Xp(e,t,n,r);return i.resolveInjectorInitializers(),i}function Xp(e,t=null,n=null,r,i=new Set){const s=[n||ht,xb(e)];return r=r||("object"==typeof e?void 0:be(e)),new Au(s,t||Iu(),r||null,i)}let Gs=(()=>{var e;class t{static create(r,i){if(Array.isArray(r))return Qp({name:""},i,r,"");{const s=r.name??"";return Qp({name:s},r.parent,r.providers,s)}}}return(e=t).THROW_IF_NOT_FOUND=Pt,e.NULL=new Qd,e.\u0275prov=jt({token:e,providedIn:"any",factory:()=>L(xp)}),e.__NG_ELEMENT_ID__=-1,t})();function vh(e){return e.ngOriginalError}class Ja{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&&vh(t);for(;n&&vh(n);)n=vh(n);return n||null}}function bh(e){return t=>{setTimeout(e,void 0,t)}}const ia=class hC extends o.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,s=n||(()=>null),u=r;if(t&&"object"==typeof t){const b=t;i=b.next?.bind(b),s=b.error?.bind(b),u=b.complete?.bind(b)}this.__isAsync&&(s=bh(s),i&&(i=bh(i)),u&&(u=bh(u)));const d=super.subscribe({next:i,error:s,complete:u});return t instanceof l.w0&&t.add(d),d}};function eg(...e){}class Ri{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ia(!1),this.onMicrotaskEmpty=new ia(!1),this.onStable=new ia(!1),this.onError=new ia(!1),typeof Zone>"u")throw new q(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function fC(){const e="function"==typeof Ke.requestAnimationFrame;let t=Ke[e?"requestAnimationFrame":"setTimeout"],n=Ke[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function mC(e){const t=()=>{!function gC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ke,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Eh(e),e.isCheckStableRunning=!0,Ch(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Eh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,u,d)=>{if(function vC(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(d))return n.invokeTask(i,s,u,d);try{return tg(e),n.invokeTask(i,s,u,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),ng(e)}},onInvoke:(n,r,i,s,u,d,b)=>{try{return tg(e),n.invoke(i,s,u,d,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),ng(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Eh(e),Ch(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ri.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(Ri.isInAngularZone())throw new q(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+i,t,pC,eg,eg);try{return s.runTask(u,n,r)}finally{s.cancelTask(u)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const pC={};function Ch(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 Eh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function tg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ng(e){e._nesting--,Ch(e)}class _C{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ia,this.onMicrotaskEmpty=new ia,this.onStable=new ia,this.onError=new ia}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const rg=new cr("",{providedIn:"root",factory:ig});function ig(){const e=xe(Ri);let t=!0;const n=new R.y(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),r=new R.y(i=>{let s;e.runOutsideAngular(()=>{s=e.onStable.subscribe(()=>{Ri.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});const u=e.onUnstable.subscribe(()=>{Ri.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{s.unsubscribe(),u.unsubscribe()}});return(0,K.T)(n,r.pipe((0,re.B)()))}function og(e){return e.ownerDocument.defaultView}function Ia(e){return e instanceof Function?e():e}let Dh=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:()=>new e}),t})();function zc(e){for(;e;){e[un]|=64;const t=kc(e);if(qo(e)&&!t)return e;e=t}return null}const ug=new cr("",{providedIn:"root",factory:()=>!1});let Fu=null;function pg(e,t){return e[t]??_g()}function gg(e,t){const n=_g();n.producerNode?.length&&(e[t]=Fu,n.lView=e,Fu=mg())}const TC={...eo,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{zc(e.lView)},lView:null};function mg(){return Object.create(TC)}function _g(){return Fu??=mg(),Fu}const kn={};function vg(e){yg(Rn(),Mt(),qr()+e,!1)}function yg(e,t,n,r){if(!r)if(3==(3&t[un])){const s=e.preOrderCheckHooks;null!==s&&ul(t,s,n)}else{const s=e.preOrderHooks;null!==s&&ja(t,s,0,n)}No(n)}function rc(e,t=ze.Default){const n=Mt();return null===n?L(e,t):Za($r(),n,$e(e),t)}function bg(){throw new Error("invalid")}function Lu(e,t,n,r,i,s,u,d,b,O,$){const _e=t.blueprint.slice();return _e[Xn]=i,_e[un]=140|r,(null!==O||e&&2048&e[un])&&(_e[un]|=2048),sl(_e),_e[Jn]=_e[Li]=e,_e[ar]=n,_e[hi]=u||e&&e[hi],_e[hn]=d||e&&e[hn],_e[Ei]=b||e&&e[Ei]||null,_e[ur]=s,_e[Io]=function Oy(){return Ay++}(),_e[pi]=$,_e[Ao]=O,_e[lr]=2==t.type?e[lr]:_e,_e}function ic(e,t,n,r,i){let s=e.data[t];if(null===s)s=function wh(e,t,n,r,i){const s=po(),u=rs(),b=e.data[t]=function NC(e,t,n,r,i,s){let u=t?t.injectorIndex:-1,d=0;return fo()&&(d|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:u,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:d,providerIndexes:0,value:i,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,u?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=b),null!==s&&(u?null==s.child&&null!==b.parent&&(s.child=b):null===s.next&&(s.next=b,b.prev=s)),b}(e,t,n,r,i),function v(){return dn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const u=function mi(){const e=dn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===u?-1:u.injectorIndex}return ei(s,!0),s}function Gc(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Cg(e,t,n,r,i){const s=pg(t,Xi),u=qr(),d=2&r;try{No(-1),d&&t.length>En&&yg(e,t,En,!1),Dr(d?2:0,i);const O=d?s:null,$=ps(O);try{null!==O&&(O.dirty=!1),n(r,i)}finally{mr(O,$)}}finally{d&&null===t[Xi]&&gg(t,Xi),No(u),Dr(d?3:1,i)}}function Sh(e,t,n){if(Yo(t)){const r=Ur(null);try{const s=t.directiveEnd;for(let u=t.directiveStart;u<s;u++){const d=e.data[u];d.contentQueries&&d.contentQueries(1,n[u],u)}}finally{Ur(r)}}}function Mh(e,t,n){Sr()&&(function UC(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;Ji(n)&&function YC(e,t,n){const r=Kr(t,e),i=Eg(n);let u=16;n.signals?u=4096:n.onPush&&(u=64);const d=Bu(e,Lu(e,i,null,u,r,t,null,e[hi].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=d}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||za(n,t),so(r,t);const u=n.initialInputs;for(let d=i;d<s;d++){const b=e.data[d],O=os(t,e,d,n);so(O,t),null!==u&&qC(0,d-i,O,b,0,u),kr(b)&&(Jr(n.index,t)[ar]=os(t,e,d,n))}}(e,t,n,Kr(n,t)),64==(64&n.flags)&&Tg(e,t,n))}function Th(e,t,n=Kr){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const u=r[s+1],d=-1===u?n(t,e):e[u];e[i++]=d}}}function Eg(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ih(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ih(e,t,n,r,i,s,u,d,b,O,$){const _e=En+r,qe=_e+i,ct=function AC(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:kn);return n}(_e,qe),Dt="function"==typeof O?O():O;return ct[Vt]={type:e,blueprint:ct,template:n,queries:null,viewQuery:d,declTNode:t,data:ct.slice().fill(null,_e),bindingStartIndex:_e,expandoStartIndex:qe,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 u?u():u,firstChild:null,schemas:b,consts:Dt,incompleteFirstPass:!1,ssrId:$}}let Dg=e=>null;function wg(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=null===n?{}:n;const s=e[i];null===r?Sg(n,t,i,s):r.hasOwnProperty(i)&&Sg(n,t,r[i],s)}return n}function Sg(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function cs(e,t,n,r,i,s,u,d){const b=Kr(t,n);let $,O=t.inputs;!d&&null!=O&&($=O[r])?(Rh(e,n,$,r,i),Ji(t)&&function BC(e,t){const n=Jr(t,e);16&n[un]||(n[un]|=64)}(n,t.index)):3&t.type&&(r=function LC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=u?u(i,t.value||"",r):i,s.setProperty(b,r,i))}function Ah(e,t,n,r){if(Sr()){const i=null===r?null:{"":-1},s=function zC(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let s=0;s<n.length;s++){const u=n[s];if($o(t,u.selectors,!1))if(r||(r=[]),kr(u))if(null!==u.findHostDirectiveDefs){const d=[];i=i||new Map,u.findHostDirectiveDefs(u,d,i),r.unshift(...d,u),Oh(e,t,d.length)}else r.unshift(u),Oh(e,t,0);else i=i||new Map,u.findHostDirectiveDefs?.(u,r,i),r.push(u)}return null===r?null:[r,i]}(e,n);let u,d;null===s?u=d=null:[u,d]=s,null!==u&&Mg(e,t,n,u,i,d),i&&function GC(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new q(-301,!1);r.push(t[i],s)}}}(n,r,i)}n.mergedAttrs=ti(n.mergedAttrs,n.attrs)}function Mg(e,t,n,r,i,s){for(let O=0;O<r.length;O++)zs(za(n,t),e,r[O].type);!function ZC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let O=0;O<r.length;O++){const $=r[O];$.providersResolver&&$.providersResolver($)}let u=!1,d=!1,b=Gc(e,t,r.length,null);for(let O=0;O<r.length;O++){const $=r[O];n.mergedAttrs=ti(n.mergedAttrs,$.hostAttrs),KC(e,n,t,b,$),WC(b,$,i),null!==$.contentQueries&&(n.flags|=4),(null!==$.hostBindings||null!==$.hostAttrs||0!==$.hostVars)&&(n.flags|=64);const _e=$.type.prototype;!u&&(_e.ngOnChanges||_e.ngOnInit||_e.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!d&&(_e.ngOnChanges||_e.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),b++}!function FC(e,t,n){const i=t.directiveEnd,s=e.data,u=t.attrs,d=[];let b=null,O=null;for(let $=t.directiveStart;$<i;$++){const _e=s[$],qe=n?n.get(_e):null,Dt=qe?qe.outputs:null;b=wg(_e.inputs,$,b,qe?qe.inputs:null),O=wg(_e.outputs,$,O,Dt);const Ot=null===b||null===u||dr(t)?null:QC(b,$,u);d.push(Ot)}null!==b&&(b.hasOwnProperty("class")&&(t.flags|=8),b.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=d,t.inputs=b,t.outputs=O}(e,n,s)}function Tg(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,u=function I(){return dn.lFrame.currentDirectiveIndex}();try{No(s);for(let d=r;d<i;d++){const b=e.data[d],O=t[d];Z(d),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&$C(b,O)}}finally{No(-1),Z(u)}}function $C(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Oh(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function WC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;kr(t)&&(n[""]=e)}}function KC(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=uo(i.type)),u=new Xs(s,kr(i),rc);e.blueprint[r]=u,n[r]=u,function jC(e,t,n,r,i){const s=i.hostBindings;if(s){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const d=~t.index;(function HC(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=d&&u.push(d),u.push(n,r,s)}}(e,t,r,Gc(e,n,i.hostVars,kn),i)}function oa(e,t,n,r,i,s){const u=Kr(e,t);!function xh(e,t,n,r,i,s,u){if(null==s)e.removeAttribute(t,i,n);else{const d=null==u?ve(s):u(s,r||"",i);e.setAttribute(t,i,d,n)}}(t[hn],u,s,e.value,n,r,i)}function qC(e,t,n,r,i,s){const u=s[t];if(null!==u)for(let d=0;d<u.length;)Ig(r,n,u[d++],u[d++],u[d++])}function Ig(e,t,n,r,i){const s=Ur(null);try{const u=e.inputTransforms;null!==u&&u.hasOwnProperty(r)&&(i=u[r].call(t,i)),null!==e.setInput?e.setInput(t,i,n,r):t[r]=i}finally{Ur(s)}}function QC(e,t,n){let r=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const u=e[s];for(let d=0;d<u.length;d+=2)if(u[d]===t){r.push(s,u[d+1],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Ag(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function Og(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r+1];if(-1!==s){const u=e.data[s];It(n[r]),u.contentQueries(2,t[s],s)}}}function Bu(e,t){return e[Qr]?e[To][br]=t:e[Qr]=t,e[To]=t,t}function Ph(e,t,n){It(0);const r=Ur(null);try{t(e,n)}finally{Ur(r)}}function xg(e){return e[Ci]||(e[Ci]=[])}function Pg(e){return e.cleanup||(e.cleanup=[])}function Rg(e,t,n){return(null===e||kr(e))&&(n=function ns(e){for(;Array.isArray(e);){if("object"==typeof e[Ko])return e;e=e[Xn]}return null}(n[t.index])),n[hn]}function kg(e,t){const n=e[Ei],r=n?n.get(Ja,null):null;r&&r.handleError(t)}function Rh(e,t,n,r,i){for(let s=0;s<n.length;){const u=n[s++],d=n[s++];Ig(e.data[u],t[u],r,d,i)}}function Aa(e,t,n){const r=no(t,e);!function ip(e,t,n){e.setValue(t,n)}(e[hn],r,n)}function XC(e,t){const n=Jr(t,e),r=n[Vt];!function JC(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const i=n[Xn];null!==i&&null===n[pi]&&(n[pi]=fh(i,n[Ei])),kh(r,n,n[ar])}function kh(e,t,n){vn(t);try{const r=e.viewQuery;null!==r&&Ph(1,r,n);const i=e.template;null!==i&&Cg(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Og(e,t),e.staticViewQueries&&Ph(2,e.viewQuery,n);const s=e.components;null!==s&&function e0(e,t){for(let n=0;n<t.length;n++)XC(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[un]&=-5,Ro()}}let Ng=(()=>{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(r,i,s){const u=typeof Zone>"u"?null:Zone.current,d=function Le(e,t,n){const r=Object.create(kt);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const i=u=>{r.cleanupFn=u};return r.ref={notify:()=>ho(r),run:()=>{if(r.dirty=!1,r.hasRun&&!ua(r))return;r.hasRun=!0;const u=ps(r);try{r.cleanupFn(),r.cleanupFn=yt,r.fn(i)}finally{mr(r,u)}},cleanup:()=>r.cleanupFn()},r.ref}(r,$=>{this.all.has($)&&this.queue.set($,u)},s);let b;this.all.add(d),d.notify();const O=()=>{d.cleanup(),b?.(),this.all.delete(d),this.queue.delete(d)};return b=i?.onDestroy(O),{destroy:O}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:()=>new e}),t})();function Vu(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let u=0;u<t.length;u++){const d=t[u];"number"==typeof d?s=d:1==s?i=Ve(i,d):2==s&&(r=Ve(r,d+": "+t[++u]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Wc(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];null!==s&&r.push(tr(s)),fr(s)&&Fg(s,r);const u=n.type;if(8&u)Wc(e,t,n.child,r);else if(32&u){const d=Fd(n,t);let b;for(;b=d();)r.push(b)}else if(16&u){const d=fp(t,n);if(Array.isArray(d))r.push(...d);else{const b=kc(t[lr]);Wc(b[Vt],b,d,r,!0)}}n=i?n.projectionNext:n.next}return r}function Fg(e,t){for(let n=Er;n<e.length;n++){const r=e[n],i=r[Vt].firstChild;null!==i&&Wc(r[Vt],r,i,t)}e[er]!==e[Xn]&&t.push(e[er])}function ju(e,t,n,r=!0){const i=t[hi],s=i.rendererFactory,u=i.afterRenderEventManager;s.begin?.(),u?.begin();try{Lg(e,t,e.template,n)}catch(b){throw r&&kg(t,b),b}finally{s.end?.(),i.effectManager?.flush(),u?.end()}}function Lg(e,t,n,r){const i=t[un];if(256!=(256&i)){t[hi].effectManager?.flush(),vn(t);try{sl(t),function qs(e){return dn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Cg(e,t,n,2,r);const u=3==(3&i);if(u){const O=e.preOrderCheckHooks;null!==O&&ul(t,O,null)}else{const O=e.preOrderHooks;null!==O&&ja(t,O,0,null),dl(t,0)}if(function r0(e){for(let t=tp(e);null!==t;t=np(t)){if(!t[Cr])continue;const n=t[ri];for(let r=0;r<n.length;r++){Ui(n[r])}}}(t),Bg(t,2),null!==e.contentQueries&&Og(e,t),u){const O=e.contentCheckHooks;null!==O&&ul(t,O)}else{const O=e.contentHooks;null!==O&&ja(t,O,1),dl(t,1)}!function IC(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=pg(t,gi);try{for(let i=0;i<n.length;i++){const s=n[i];if(s<0)No(~s);else{const u=s,d=n[++i],b=n[++i];_(d,u),r.dirty=!1;const O=ps(r);try{b(2,t[u])}finally{mr(r,O)}}}}finally{null===t[gi]&&gg(t,gi),No(-1)}}(e,t);const d=e.components;null!==d&&jg(t,d,0);const b=e.viewQuery;if(null!==b&&Ph(2,b,r),u){const O=e.viewCheckHooks;null!==O&&ul(t,O)}else{const O=e.viewHooks;null!==O&&ja(t,O,2),dl(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[un]&=-73,ka(t)}finally{Ro()}}}function Bg(e,t){for(let n=tp(e);null!==n;n=np(n))for(let r=Er;r<n.length;r++)Vg(n[r],t)}function o0(e,t,n){Vg(Jr(t,e),n)}function Vg(e,t){if(!function Hi(e){return 128==(128&e[un])}(e))return;const n=e[Vt],r=e[un];if(80&r&&0===t||1024&r||2===t)Lg(n,e,n.template,e[ar]);else if(e[Ai]>0){Bg(e,1);const i=n.components;null!==i&&jg(e,i,1)}}function jg(e,t,n){for(let r=0;r<t.length;r++)o0(e,t[r],n)}class Zc{get rootNodes(){const t=this._lView,n=t[Vt];return Wc(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ar]}set context(t){this._lView[ar]=t}get destroyed(){return 256==(256&this._lView[un])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Jn];if(fr(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(vu(t,r),Vl(n,r))}this._attachedToViewContainer=!1}Bd(this._lView[Vt],this._lView)}onDestroy(t){!function ga(e,t){if(256==(256&e[un]))throw new q(911,!1);null===e[Qi]&&(e[Qi]=[]),e[Qi].push(t)}(this._lView,t)}markForCheck(){zc(this._cdRefInjectingView||this._lView)}detach(){this._lView[un]&=-129}reattach(){this._lView[un]|=128}detectChanges(){ju(this._lView[Vt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zy(e,t){Fc(e,t,t[hn],2,null,null)}(this._lView[Vt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=t}}class s0 extends Zc{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ju(t[Vt],t,t[ar],!1)}checkNoChanges(){}get context(){return null}}class Hg extends Uc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=An(t);return new Kc(n,this.ngModule)}}function Ug(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class l0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ce(r);const i=this.injector.get(t,mh,r);return i!==mh||n===mh?i:this.parentInjector.get(t,n,r)}}class Kc extends $p{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Ug(t.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Ug(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function zo(e){return e.map(Do).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let s=(i=i||this.ngModule)instanceof ra?i:i?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const u=s?new l0(t,s):t,d=u.get(Gp,null);if(null===d)throw new q(407,!1);const _e={rendererFactory:d,sanitizer:u.get(oC,null),effectManager:u.get(Ng,null),afterRenderEventManager:u.get(Dh,null)},qe=d.createRenderer(null,this.componentDef),ct=this.componentDef.selectors[0][0]||"div",Dt=r?function OC(e,t,n,r){const s=r.get(ug,!1)||n===We.ShadowDom,u=e.selectRootElement(t,s);return function xC(e){Dg(e)}(u),u}(qe,r,this.componentDef.encapsulation,u):_u(qe,ct,function a0(e){const t=e.toLowerCase();return"svg"===t?to:"math"===t?"math":null}(ct)),on=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Tt=null;null!==Dt&&(Tt=fh(Dt,u,!0));const In=Ih(0,null,null,1,0,null,null,null,null,null,null),jn=Lu(null,In,null,on,null,null,_e,qe,u,null,Tt);let pr,Uo;vn(jn);try{const Oa=this.componentDef;let Cc,Gf=null;Oa.findHostDirectiveDefs?(Cc=[],Gf=new Map,Oa.findHostDirectiveDefs(Oa,Cc,Gf),Cc.push(Oa)):Cc=[Oa];const lM=function u0(e,t){const n=e[Vt],r=En;return e[r]=t,ic(n,r,2,"#host",null)}(jn,Dt),cM=function d0(e,t,n,r,i,s,u){const d=i[Vt];!function h0(e,t,n,r){for(const i of e)t.mergedAttrs=ti(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Vu(t,t.mergedAttrs,!0),null!==n&&_p(r,n,t))}(r,e,t,u);let b=null;null!==t&&(b=fh(t,i[Ei]));const O=s.rendererFactory.createRenderer(t,n);let $=16;n.signals?$=4096:n.onPush&&($=64);const _e=Lu(i,Eg(n),null,$,i[e.index],e,s,O,null,null,b);return d.firstCreatePass&&Oh(d,e,r.length-1),Bu(i,_e),i[e.index]=_e}(lM,Dt,Oa,Cc,jn,_e,qe);Uo=Ys(In,En),Dt&&function p0(e,t,n,r){if(r)Mn(e,n,["ng-version",Zp.full]);else{const{attrs:i,classes:s}=function Br(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!hr(i))break;i=s}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&Mn(e,n,i),s&&s.length>0&&mp(e,n,s.join(" "))}}(qe,Oa,Dt,r),void 0!==n&&function g0(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const s=n[i];r.push(null!=s?Array.from(s):null)}}(Uo,this.ngContentSelectors,n),pr=function f0(e,t,n,r,i,s){const u=$r(),d=i[Vt],b=Kr(u,i);Mg(d,i,u,n,null,r);for(let $=0;$<n.length;$++)so(os(i,d,u.directiveStart+$,u),i);Tg(d,i,u),b&&so(b,i);const O=os(i,d,u.directiveStart+u.componentOffset,u);if(e[ar]=i[ar]=O,null!==s)for(const $ of s)$(O,t);return Sh(d,u,e),O}(cM,Oa,Cc,Gf,jn,[m0]),kh(In,jn,null)}finally{Ro()}return new c0(this.componentType,pr,ec(Uo,jn),jn,Uo)}}class c0 extends Xb{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new s0(i),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const s=this._rootLView;Rh(s[Vt],s,i,t,n),this.previousInputValues.set(t,n),zc(Jr(this._tNode.index,s))}}get injector(){return new Fr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function m0(){const e=$r();Qs(Mt()[Vt],e)}function Nh(e){let t=function $g(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(kr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new q(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const u=e;u.inputs=Hu(e.inputs),u.inputTransforms=Hu(e.inputTransforms),u.declaredInputs=Hu(e.declaredInputs),u.outputs=Hu(e.outputs);const d=i.hostBindings;d&&b0(e,d);const b=i.viewQuery,O=i.contentQueries;if(b&&v0(e,b),O&&y0(e,O),Q(e.inputs,i.inputs),Q(e.declaredInputs,i.declaredInputs),Q(e.outputs,i.outputs),null!==i.inputTransforms&&(null===u.inputTransforms&&(u.inputTransforms={}),Q(u.inputTransforms,i.inputTransforms)),kr(i)&&i.data.animation){const $=e.data;$.animation=($.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let u=0;u<s.length;u++){const d=s[u];d&&d.ngInherit&&d(e),d===Nh&&(n=!1)}}t=Object.getPrototypeOf(t)}!function _0(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ti(i.hostAttrs,n=ti(n,i.hostAttrs))}}(r)}function Hu(e){return e===bt?{}:e===ht?[]:e}function v0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function y0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function b0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function Zg(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const i=t[r];Array.isArray(i)&&i[2]&&(n[r]=i[2])}e.inputTransforms=n}function Uu(e){return!!Fh(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Fh(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function sa(e,t,n){return e[t]=n}function Yc(e,t){return e[t]}function ao(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sl(e,t,n,r){const i=ao(e,t,n);return ao(e,t+1,r)||i}function Ms(e,t,n,r,i,s){const u=Sl(e,t,n,r);return Sl(e,t+2,i,s)||u}function Lh(e,t,n,r){const i=Mt();return ao(i,Es(),t)&&(Rn(),oa(vr(),i,e,t,n,r)),Lh}function sc(e,t,n,r){return ao(e,Es(),n)?t+ve(n)+r:kn}function ac(e,t,n,r,i,s){const d=Sl(e,function ro(){return dn.lFrame.bindingIndex}(),n,i);return f(2),d?t+ve(n)+r+ve(i)+s:kn}function sm(e,t,n,r,i,s,u,d){const b=Mt(),O=Rn(),$=e+En,_e=O.firstCreatePass?function G0(e,t,n,r,i,s,u,d,b){const O=t.consts,$=ic(t,e,4,u||null,Cs(O,d));Ah(t,n,$,Cs(O,b)),Qs(t,$);const _e=$.tView=Ih(2,$,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,O,null);return null!==t.queries&&(t.queries.template(t,$),_e.queries=t.queries.embeddedTView($)),$}($,O,b,t,n,r,i,s,u):O.data[$];ei(_e,!1);const qe=am(O,b,_e,e);Us()&&bu(O,b,qe,_e),so(qe,b),Bu(b,b[$]=Ag(qe,b,qe,_e)),Vr(_e)&&Mh(O,b,_e),null!=u&&Th(b,_e,d)}let am=function lm(e,t,n,r){return _o(!0),t[hn].createComment("")};function cm(e){return bs(function Ea(){return dn.lFrame.contextLView}(),En+e)}function $h(e,t,n){const r=Mt();return ao(r,Es(),t)&&cs(Rn(),vr(),r,e,t,r[hn],n,!1),$h}function zh(e,t,n,r,i){const u=i?"class":"style";Rh(e,n,t.inputs[u],u,r)}function Zu(e,t,n,r){const i=Mt(),s=Rn(),u=En+e,d=i[hn],b=s.firstCreatePass?function Y0(e,t,n,r,i,s){const u=t.consts,b=ic(t,e,2,r,Cs(u,i));return Ah(t,n,b,Cs(u,s)),null!==b.attrs&&Vu(b,b.attrs,!1),null!==b.mergedAttrs&&Vu(b,b.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,b),b}(u,s,i,t,n,r):s.data[u],O=um(s,i,b,d,t,e);i[u]=O;const $=Vr(b);return ei(b,!0),_p(d,O,b),32!=(32&b.flags)&&Us()&&bu(s,i,O,b),0===function va(){return dn.lFrame.elementDepthCount}()&&so(O,i),function wr(){dn.lFrame.elementDepthCount++}(),$&&(Mh(s,i,b),Sh(s,b,i)),null!==r&&Th(i,b),Zu}function Ku(){let e=$r();rs()?Hs():(e=e.parent,ei(e,!1));const t=e;(function Na(e){return dn.skipHydrationRootTNode===e})(t)&&function Ca(){dn.skipHydrationRootTNode=null}(),function ya(){dn.lFrame.elementDepthCount--}();const n=Rn();return n.firstCreatePass&&(Qs(n,e),Yo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function md(e){return 0!=(8&e.flags)}(t)&&zh(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Rl(e){return 0!=(16&e.flags)}(t)&&zh(n,t,Mt(),t.stylesWithoutHost,!1),Ku}function Gh(e,t,n,r){return Zu(e,t,n,r),Ku(),Gh}let um=(e,t,n,r,i,s)=>(_o(!0),_u(r,i,function cl(){return dn.lFrame.currentNamespace}()));function Yu(e,t,n){const r=Mt(),i=Rn(),s=e+En,u=i.firstCreatePass?function X0(e,t,n,r,i){const s=t.consts,u=Cs(s,r),d=ic(t,e,8,"ng-container",u);return null!==u&&Vu(d,u,!0),Ah(t,n,d,Cs(s,i)),null!==t.queries&&t.queries.elementStart(t,d),d}(s,i,r,t,n):i.data[s];ei(u,!0);const d=dm(i,r,u,e);return r[s]=d,Us()&&bu(i,r,d,u),so(d,r),Vr(u)&&(Mh(i,r,u),Sh(i,u,r)),null!=n&&Th(r,u),Yu}function qu(){let e=$r();const t=Rn();return rs()?Hs():(e=e.parent,ei(e,!1)),t.firstCreatePass&&(Qs(t,e),Yo(e)&&t.queries.elementEnd(e)),qu}function Wh(e,t,n){return Yu(e,t,n),qu(),Wh}let dm=(e,t,n,r)=>(_o(!0),Ld(t[hn],""));function hm(){return Mt()}function Zh(e){return!!e&&"function"==typeof e.then}function fm(e){return!!e&&"function"==typeof e.subscribe}function Kh(e,t,n,r){const i=Mt(),s=Rn(),u=$r();return pm(s,i,i[hn],u,e,t,r),Kh}function Yh(e,t){const n=$r(),r=Mt(),i=Rn();return pm(i,r,Rg(oe(i.data),n,r),n,e,t),Yh}function pm(e,t,n,r,i,s,u){const d=Vr(r),O=e.firstCreatePass&&Pg(e),$=t[ar],_e=xg(t);let qe=!0;if(3&r.type||u){const Ot=Kr(r,t),Zt=u?u(Ot):Ot,on=_e.length,Tt=u?jn=>u(tr(jn[r.index])):r.index;let In=null;if(!u&&d&&(In=function tE(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const u=i[s];if(u===n&&i[s+1]===r){const d=t[Ci],b=i[s+2];return d.length>b?d[b]:null}"string"==typeof u&&(s+=2)}return null}(e,t,i,r.index)),null!==In)(In.__ngLastListenerFn__||In).__ngNextListenerFn__=s,In.__ngLastListenerFn__=s,qe=!1;else{s=mm(r,t,$,s,!1);const jn=n.listen(Zt,i,s);_e.push(s,jn),O&&O.push(i,Tt,on,on+1)}}else s=mm(r,t,$,s,!1);const ct=r.outputs;let Dt;if(qe&&null!==ct&&(Dt=ct[i])){const Ot=Dt.length;if(Ot)for(let Zt=0;Zt<Ot;Zt+=2){const pr=t[Dt[Zt]][Dt[Zt+1]].subscribe(s),Uo=_e.length;_e.push(s,pr),O&&O.push(i,r.index,Uo,-(Uo+1))}}}function gm(e,t,n,r){try{return Dr(6,t,n),!1!==n(r)}catch(i){return kg(e,i),!1}finally{Dr(7,t,n)}}function mm(e,t,n,r,i){return function s(u){if(u===Function)return r;zc(e.componentOffset>-1?Jr(e.index,t):t);let b=gm(t,n,r,u),O=s.__ngNextListenerFn__;for(;O;)b=gm(t,n,O,u)&&b,O=O.__ngNextListenerFn__;return i&&!1===b&&u.preventDefault(),b}}function _m(e=1){return function ko(e){return(dn.lFrame.contextLView=function Ba(e,t){for(;e>0;)t=t[Li],e--;return t}(e,dn.lFrame.contextLView))[ar]}(e)}function nE(e,t){let n=null;const r=function Ts(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?$o(e,s,!0):Eo(r,s))return i}else n=i}return n}function vm(e){const t=Mt()[lr][ur];if(!t.projection){const r=t.projection=yl(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const u=e?nE(s,e):0;null!==u&&(i[u]?i[u].projectionNext=s:r[u]=s,i[u]=s),s=s.next}}}function ym(e,t=0,n){const r=Mt(),i=Rn(),s=ic(i,En+e,16,null,n||null);null===s.projection&&(s.projection=t),Hs(),(!r[pi]||fo())&&32!=(32&s.flags)&&function Xy(e,t,n){gp(t[hn],0,t,n,jd(e,n,t),cp(n.parent||t[ur],n,t))}(i,r,s)}function qh(e,t,n){return Qh(e,"",t,"",n),qh}function Qh(e,t,n,r,i){const s=Mt(),u=sc(s,t,n,r);return u!==kn&&cs(Rn(),vr(),s,e,u,s[hn],i,!1),Qh}function Qu(e,t){return e<<17|t<<2}function el(e){return e>>17&32767}function Xh(e){return 2|e}function Ml(e){return(131068&e)>>2}function Jh(e,t){return-131069&e|t<<2}function ef(e){return 1|e}function Im(e,t,n,r,i){const s=e[n+1],u=null===t;let d=r?el(s):Ml(s),b=!1;for(;0!==d&&(!1===b||u);){const $=e[d+1];lE(e[d],t)&&(b=!0,e[d+1]=r?ef($):Xh($)),d=r?el($):Ml($)}b&&(e[n+1]=r?Xh(s):ef(s))}function lE(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&bl(e,t)>=0}const Ti={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Am(e){return e.substring(Ti.key,Ti.keyEnd)}function cE(e){return e.substring(Ti.value,Ti.valueEnd)}function Om(e,t){const n=Ti.textEnd;return n===t?-1:(t=Ti.keyEnd=function hE(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ti.key=t,n),pc(e,t,n))}function xm(e,t){const n=Ti.textEnd;let r=Ti.key=pc(e,t,n);return n===r?-1:(r=Ti.keyEnd=function fE(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Rm(e,r,n),r=Ti.value=pc(e,r,n),r=Ti.valueEnd=function pE(e,t,n){let r=-1,i=-1,s=-1,u=t,d=u;for(;u<n;){const b=e.charCodeAt(u++);if(59===b)return d;34===b||39===b?d=u=km(e,b,u,n):t===u-4&&85===s&&82===i&&76===r&&40===b?d=u=km(e,41,u,n):b>32&&(d=u),s=i,i=r,r=-33&b}return d}(e,r,n),Rm(e,r,n))}function Pm(e){Ti.key=0,Ti.keyEnd=0,Ti.value=0,Ti.valueEnd=0,Ti.textEnd=e.length}function pc(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Rm(e,t,n,r){return(t=pc(e,t,n))<n&&t++,t}function km(e,t,n,r){let i=-1,s=n;for(;s<r;){const u=e.charCodeAt(s++);if(u==t&&92!==i)return s;i=92==u&&92===i?0:u}throw new Error}function tf(e,t,n){return Zs(e,t,n,!1),tf}function nf(e,t){return Zs(e,t,null,!0),nf}function Ws(e){Ks(Bm,gE,e,!1)}function gE(e,t){for(let n=function dE(e){return Pm(e),xm(e,pc(e,0,Ti.textEnd))}(t);n>=0;n=xm(t,n))Bm(e,Am(t),cE(t))}function Nm(e){Ks(CE,aa,e,!0)}function aa(e,t){for(let n=function uE(e){return Pm(e),Om(e,pc(e,0,Ti.textEnd))}(t);n>=0;n=Om(t,n))io(e,Am(t),!0)}function Zs(e,t,n,r){const i=Mt(),s=Rn(),u=f(2);s.firstUpdatePass&&Lm(s,e,u,r),t!==kn&&ao(i,u,t)&&Vm(s,s.data[qr()],i,i[hn],e,i[u+1]=function DE(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=be(Ma(e)))),e}(t,n),r,u)}function Ks(e,t,n,r){const i=Rn(),s=f(2);i.firstUpdatePass&&Lm(i,null,s,r);const u=Mt();if(n!==kn&&ao(u,s,n)){const d=i.data[qr()];if(Hm(d,r)&&!Fm(i,s)){let b=r?d.classesWithoutHost:d.stylesWithoutHost;null!==b&&(n=Ve(b,n||"")),zh(i,d,u,n,r)}else!function EE(e,t,n,r,i,s,u,d){i===kn&&(i=ht);let b=0,O=0,$=0<i.length?i[0]:null,_e=0<s.length?s[0]:null;for(;null!==$||null!==_e;){const qe=b<i.length?i[b+1]:void 0,ct=O<s.length?s[O+1]:void 0;let Ot,Dt=null;$===_e?(b+=2,O+=2,qe!==ct&&(Dt=_e,Ot=ct)):null===_e||null!==$&&$<_e?(b+=2,Dt=$):(O+=2,Dt=_e,Ot=ct),null!==Dt&&Vm(e,t,n,r,Dt,Ot,u,d),$=b<i.length?i[b]:null,_e=O<s.length?s[O]:null}}(i,d,u,u[hn],u[s+1],u[s+1]=function bE(e,t,n){if(null==n||""===n)return ht;const r=[],i=Ma(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}function Fm(e,t){return t>=e.expandoStartIndex}function Lm(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[qr()],u=Fm(e,n);Hm(s,r)&&null===t&&!u&&(t=!1),t=function mE(e,t,n,r){const i=oe(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Jc(n=rf(null,e,t,n,r),t.attrs,r),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==i)if(n=rf(i,e,t,n,r),null===s){let b=function _E(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ml(r))return e[el(r)]}(e,t,r);void 0!==b&&Array.isArray(b)&&(b=rf(null,e,t,b[1],r),b=Jc(b,t.attrs,r),function vE(e,t,n,r){e[el(n?t.classBindings:t.styleBindings)]=r}(e,t,r,b))}else s=function yE(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Jc(r,e[s].hostAttrs,n);return Jc(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function sE(e,t,n,r,i,s){let u=s?t.classBindings:t.styleBindings,d=el(u),b=Ml(u);e[r]=n;let $,O=!1;if(Array.isArray(n)?($=n[1],(null===$||bl(n,$)>0)&&(O=!0)):$=n,i)if(0!==b){const qe=el(e[d+1]);e[r+1]=Qu(qe,d),0!==qe&&(e[qe+1]=Jh(e[qe+1],r)),e[d+1]=function iE(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=Qu(d,0),0!==d&&(e[d+1]=Jh(e[d+1],r)),d=r;else e[r+1]=Qu(b,0),0===d?d=r:e[b+1]=Jh(e[b+1],r),b=r;O&&(e[r+1]=Xh(e[r+1])),Im(e,$,r,!0),Im(e,$,r,!1),function aE(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&bl(s,t)>=0&&(n[r+1]=ef(n[r+1]))}(t,$,e,r,s),u=Qu(d,b),s?t.classBindings=u:t.styleBindings=u}(i,s,t,n,u,r)}}function rf(e,t,n,r,i){let s=null;const u=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<u&&(s=t[d],r=Jc(r,s.hostAttrs,i),s!==e);)d++;return null!==e&&(n.directiveStylingLast=d),r}function Jc(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const u=t[s];"number"==typeof u?i=u:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),io(e,u,!!n||t[++s]))}return void 0===e?null:e}function Bm(e,t,n){io(e,t,Ma(n))}function CE(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&io(e,r,n)}function Vm(e,t,n,r,i,s,u,d){if(!(3&t.type))return;const b=e.data,O=b[d+1],$=function oE(e){return 1==(1&e)}(O)?jm(b,t,n,i,Ml(O),u):void 0;Xu($)||(Xu(s)||function rE(e){return 2==(2&e)}(O)&&(s=jm(b,null,n,i,d,u)),function eb(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=-1===r.indexOf("-")?void 0:Ss.DashCase;null==i?e.removeStyle(n,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Ss.Important),e.setStyle(n,r,i,s))}}(r,u,no(qr(),n),i,s))}function jm(e,t,n,r,i,s){const u=null===t;let d;for(;i>0;){const b=e[i],O=Array.isArray(b),$=O?b[1]:b,_e=null===$;let qe=n[i+1];qe===kn&&(qe=_e?ht:void 0);let ct=_e?Ac(qe,r):$===r?qe:void 0;if(O&&!Xu(ct)&&(ct=Ac(b,r)),Xu(ct)&&(d=ct,u))return d;const Dt=e[i+1];i=u?el(Dt):Ml(Dt)}if(null!==t){let b=s?t.residualClasses:t.residualStyles;null!=b&&(d=Ac(b,r))}return d}function Xu(e){return void 0!==e}function Hm(e,t){return 0!=(e.flags&(t?8:16))}function Um(e,t=""){const n=Mt(),r=Rn(),i=e+En,s=r.firstCreatePass?ic(r,i,1,t,null):r.data[i],u=$m(r,n,s,t,e);n[i]=u,Us()&&bu(r,n,u,s),ei(s,!1)}let $m=(e,t,n,r,i)=>(_o(!0),function mu(e,t){return e.createText(t)}(t[hn],r));function sf(e){return Ju("",e,""),sf}function Ju(e,t,n){const r=Mt(),i=sc(r,e,t,n);return i!==kn&&Aa(r,qr(),i),Ju}function af(e,t,n,r,i){const s=Mt(),u=ac(s,e,t,n,r,i);return u!==kn&&Aa(s,qr(),u),af}function Qm(e,t,n){Ks(io,aa,sc(Mt(),e,t,n),!0)}function lf(e,t,n){const r=Mt();return ao(r,Es(),t)&&cs(Rn(),vr(),r,e,t,r[hn],n,!0),lf}function cf(e,t,n){const r=Mt();if(ao(r,Es(),t)){const s=Rn(),u=vr();cs(s,u,r,e,t,Rg(oe(s.data),u,r),n,!0)}return cf}const Tl=void 0;var zE=["en",[["a","p"],["AM","PM"],Tl],[["AM","PM"],Tl,Tl],[["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"]],Tl,[["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"]],Tl,[["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}",Tl,"{1} 'at' {0}",Tl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $E(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let gc={};function uf(e){const t=function GE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=l_(t);if(n)return n;const r=t.split("-")[0];if(n=l_(r),n)return n;if("en"===r)return zE;throw new q(701,!1)}function a_(e){return uf(e)[mc.PluralCase]}function l_(e){return e in gc||(gc[e]=Ke.ng&&Ke.ng.common&&Ke.ng.common.locales&&Ke.ng.common.locales[e]),gc[e]}var mc=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}(mc||{});const _c="en-US";let c_=_c;function ff(e,t,n,r,i){if(e=$e(e),Array.isArray(e))for(let s=0;s<e.length;s++)ff(e[s],t,n,r,i);else{const s=Rn(),u=Mt(),d=$r();let b=wl(e)?e:$e(e.provide);const O=Lp(e),$=1048575&d.providerIndexes,_e=d.directiveStart,qe=d.providerIndexes>>20;if(wl(e)||!e.multi){const ct=new Xs(O,i,rc),Dt=gf(b,t,i?$:$+qe,_e);-1===Dt?(zs(za(d,u),s,b),pf(s,e,t.length),t.push(b),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),n.push(ct),u.push(ct)):(n[Dt]=ct,u[Dt]=ct)}else{const ct=gf(b,t,$+qe,_e),Dt=gf(b,t,$,$+qe),Zt=Dt>=0&&n[Dt];if(i&&!Zt||!i&&!(ct>=0&&n[ct])){zs(za(d,u),s,b);const on=function $D(e,t,n,r,i){const s=new Xs(e,n,rc);return s.multi=[],s.index=t,s.componentProviders=0,k_(s,i,r&&!n),s}(i?UD:HD,n.length,i,r,O);!i&&Zt&&(n[Dt].providerFactory=on),pf(s,e,t.length,0),t.push(b),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),n.push(on),u.push(on)}else pf(s,e,ct>-1?ct:Dt,k_(n[i?Dt:ct],O,!i&&r));!i&&r&&Zt&&n[Dt].componentProviders++}}}function pf(e,t,n,r){const i=wl(t),s=function Rb(e){return!!e.useClass}(t);if(i||s){const b=(s?$e(t.useClass):t).prototype.ngOnDestroy;if(b){const O=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const $=O.indexOf(n);-1===$?O.push(n,[r,b]):O[$+1].push(r,b)}else O.push(n,b)}}}function k_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gf(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function HD(e,t,n,r){return mf(this.multi,[])}function UD(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const u=this.providerFactory.componentProviders,d=os(n,n[Vt],this.providerFactory.index,r);s=d.slice(0,u),mf(i,s);for(let b=u;b<d.length;b++)s.push(d[b])}else s=[],mf(i,s);return s}function mf(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function N_(e,t=[]){return n=>{n.providersResolver=(r,i)=>function jD(e,t,n){const r=Rn();if(r.firstCreatePass){const i=kr(e);ff(n,r.data,r.blueprint,i,!0),ff(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class Il{}class F_{}function zD(e,t){return new _f(e,t??null,[])}class _f extends Il{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hg(this);const i=Pr(t);this._bootstrapComponents=Ia(i.bootstrap),this._r3Injector=Xp(t,n,[{provide:Il,useValue:this},{provide:Uc,useValue:this.componentFactoryResolver},...r],be(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 vf extends F_{constructor(t){super(),this.moduleType=t}create(t){return new _f(this.moduleType,t,[])}}class L_ extends Il{constructor(t){super(),this.componentFactoryResolver=new Hg(this),this.instance=null;const n=new Au([...t.providers,{provide:Il,useValue:this},{provide:Uc,useValue:this.componentFactoryResolver}],t.parent||Iu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function B_(e,t,n=null){return new L_({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let WD=(()=>{var e;class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Rp(0,r.type),s=i.length>0?B_([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,s)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=jt({token:e,providedIn:"environment",factory:()=>new e(L(ra))}),t})();function V_(e){e.getStandaloneInjector=t=>t.get(WD).getOrCreateStandaloneInjector(e)}function W_(e,t,n){const r=Yr()+e,i=Mt();return i[r]===kn?sa(i,r,n?t.call(n):t()):Yc(i,r)}function Z_(e,t,n,r){return J_(Mt(),Yr(),e,t,n,r)}function K_(e,t,n,r,i){return ev(Mt(),Yr(),e,t,n,r,i)}function Y_(e,t,n,r,i,s){return tv(Mt(),Yr(),e,t,n,r,i,s)}function q_(e,t,n,r,i,s,u){return nv(Mt(),Yr(),e,t,n,r,i,s,u)}function Q_(e,t,n,r,i,s,u,d){const b=Yr()+e,O=Mt(),$=Ms(O,b,n,r,i,s);return ao(O,b+4,u)||$?sa(O,b+5,d?t.call(d,n,r,i,s,u):t(n,r,i,s,u)):Yc(O,b+5)}function X_(e,t,n,r){return function rv(e,t,n,r,i,s){let u=t+n,d=!1;for(let b=0;b<i.length;b++)ao(e,u++,i[b])&&(d=!0);return d?sa(e,u,r.apply(s,i)):ou(e,u)}(Mt(),Yr(),e,t,n,r)}function ou(e,t){const n=e[t];return n===kn?void 0:n}function J_(e,t,n,r,i,s){const u=t+n;return ao(e,u,i)?sa(e,u+1,s?r.call(s,i):r(i)):ou(e,u+1)}function ev(e,t,n,r,i,s,u){const d=t+n;return Sl(e,d,i,s)?sa(e,d+2,u?r.call(u,i,s):r(i,s)):ou(e,d+2)}function tv(e,t,n,r,i,s,u,d){const b=t+n;return function $u(e,t,n,r,i){const s=Sl(e,t,n,r);return ao(e,t+2,i)||s}(e,b,i,s,u)?sa(e,b+3,d?r.call(d,i,s,u):r(i,s,u)):ou(e,b+3)}function nv(e,t,n,r,i,s,u,d,b){const O=t+n;return Ms(e,O,i,s,u,d)?sa(e,O+4,b?r.call(b,i,s,u,d):r(i,s,u,d)):ou(e,O+4)}function iv(e,t){const n=Rn();let r;const i=e+En;n.firstCreatePass?(r=function iw(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=uo(r.type)),d=pe(rc);try{const b=$a(!1),O=s();return $a(b),function K0(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Mt(),i,O),O}finally{pe(d)}}function ov(e,t,n){const r=e+En,i=Mt(),s=bs(i,r);return su(i,r)?J_(i,Yr(),t,s.transform,n,s):s.transform(n)}function sv(e,t,n,r){const i=e+En,s=Mt(),u=bs(s,i);return su(s,i)?ev(s,Yr(),t,u.transform,n,r,u):u.transform(n,r)}function av(e,t,n,r,i){const s=e+En,u=Mt(),d=bs(u,s);return su(u,s)?tv(u,Yr(),t,d.transform,n,r,i,d):d.transform(n,r,i)}function lv(e,t,n,r,i,s){const u=e+En,d=Mt(),b=bs(d,u);return su(d,u)?nv(d,Yr(),t,b.transform,n,r,i,s,b):b.transform(n,r,i,s)}function su(e,t){return e[Vt].data[t].pure}function sw(){return this._results[Symbol.iterator]()}class id{get changes(){return this._changes||(this._changes=new ia)}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=id.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=sw)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=function Pi(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ws(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function lw(e,t,n,r=!0){const i=t[Vt];if(function Wy(e,t,n,r){const i=Er+r,s=n.length;r>0&&(n[i-1][br]=t),r<s-Er?(t[br]=n[i],hu(n,Er+r,t)):(n.push(t),t[br]=null),t[Jn]=n;const u=t[fi];null!==u&&n!==u&&function Zy(e,t){const n=e[ri];t[lr]!==t[Jn][Jn][lr]&&(e[Cr]=!0),null===n?e[ri]=[t]:n.push(t)}(u,t);const d=t[Wr];null!==d&&d.insertView(e),t[un]|=128}(i,t,e,n),r){const s=Ud(n,e),u=t[hn],d=yu(u,e[er]);null!==d&&function $y(e,t,n,r,i,s){r[Xn]=i,r[ur]=t,Fc(e,r,n,1,i,s)}(i,e[ur],u,t,d,s)}}let au=(()=>{class t{}return t.__NG_ELEMENT_ID__=dw,t})();const cw=au,uw=class extends cw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=function aw(e,t,n,r){const i=t.tView,d=Lu(e,i,n,4096&e[un]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);d[fi]=e[t.index];const O=e[Wr];return null!==O&&(d[Wr]=O.createEmbeddedView(i)),kh(i,d,n),d}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new Zc(i)}};function dw(){return od($r(),Mt())}function od(e,t){return 4&e.type?new uw(t,e,ec(e,t)):null}let ad=(()=>{class t{}return t.__NG_ELEMENT_ID__=_w,t})();function _w(){return gv($r(),Mt())}const vw=ad,fv=class extends vw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ec(this._hostTNode,this._hostLView)}get injector(){return new Fr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ea(this._hostTNode,this._hostLView);if(Ua(t)){const n=Js(t,this._hostLView),r=$s(t);return new Fr(n[Vt].data[r+8],n)}return new Fr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=pv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Er}createEmbeddedView(t,n,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const d=t.createEmbeddedViewImpl(n||{},s,null);return this.insertImpl(d,i,false),d}createComponent(t,n,r,i,s){const u=t&&!function _i(e){return"function"==typeof e}(t);let d;if(u)d=n;else{const Ot=n||{};d=Ot.index,r=Ot.injector,i=Ot.projectableNodes,s=Ot.environmentInjector||Ot.ngModuleRef}const b=u?t:new Kc(An(t)),O=r||this.parentInjector;if(!s&&null==b.ngModule){const Zt=(u?O:this.parentInjector).get(ra,null);Zt&&(s=Zt)}An(b.componentType??{});const ct=b.create(O,i,null,s);return this.insertImpl(ct.hostView,d,false),ct}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const i=t._lView;if(function pa(e){return fr(e[Jn])}(i)){const b=this.indexOf(t);if(-1!==b)this.detach(b);else{const O=i[Jn],$=new fv(O,O[ur],O[Jn]);$.detach($.indexOf(t))}}const u=this._adjustIndex(n),d=this._lContainer;return lw(d,i,u,!r),t.attachToViewContainerRef(),hu(bf(d),u,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=pv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=vu(this._lContainer,n);r&&(Vl(bf(this._lContainer),n),Bd(r[Vt],r))}detach(t){const n=this._adjustIndex(t,-1),r=vu(this._lContainer,n);return r&&null!=Vl(bf(this._lContainer),n)?new Zc(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function pv(e){return e[8]}function bf(e){return e[8]||(e[8]=[])}function gv(e,t){let n;const r=t[e.index];return fr(r)?n=r:(n=Ag(r,t,null,e),t[e.index]=n,Bu(t,n)),mv(n,t,e,r),new fv(n,e,t)}let mv=function _v(e,t,n,r){if(e[er])return;let i;i=8&n.type?tr(r):function yw(e,t){const n=e[hn],r=n.createComment(""),i=Kr(t,e);return Cl(n,yu(n,i),r,function Qy(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[er]=i};class Cf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Cf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ef{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){const u=n.getByIndex(s);i.push(this.queries[u.indexInDeclarationView].clone())}return new Ef(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Mv(t,n).matches&&this.queries[n].setDirty()}}class vv{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Df{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new Df(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class wf{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 wf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(t,n,Ew(n,s)),this.matchTNodeWithReadOption(t,n,Gi(n,t,s,!1,!1))}else r===au?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Gi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===$c||i===ad||i===au&&4&n.type)this.addMatch(n.index,-2);else{const s=Gi(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Ew(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function ww(e,t,n,r){return-1===n?function Dw(e,t){return 11&e.type?ec(e,t):4&e.type?od(e,t):null}(t,e):-2===n?function Sw(e,t,n){return n===$c?ec(t,e):n===au?od(t,e):n===ad?gv(t,e):void 0}(e,t,r):os(e,e[Vt],n,t)}function yv(e,t,n,r){const i=t[Wr].queries[r];if(null===i.matches){const s=e.data,u=n.matches,d=[];for(let b=0;b<u.length;b+=2){const O=u[b];d.push(O<0?null:ww(t,s[O],u[b+1],n.metadata.read))}i.matches=d}return i.matches}function Sf(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const u=yv(e,t,i,n);for(let d=0;d<s.length;d+=2){const b=s[d];if(b>0)r.push(u[d/2]);else{const O=s[d+1],$=t[-b];for(let _e=Er;_e<$.length;_e++){const qe=$[_e];qe[fi]===qe[Jn]&&Sf(qe[Vt],qe,O,r)}if(null!==$[ri]){const _e=$[ri];for(let qe=0;qe<_e.length;qe++){const ct=_e[qe];Sf(ct[Vt],ct,O,r)}}}}}return r}function bv(e){const t=Mt(),n=Rn(),r=lt();It(r+1);const i=Mv(n,r);if(e.dirty&&function ol(e){return 4==(4&e[un])}(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?Sf(n,t,r,[]):yv(n,t,i,r);e.reset(s,nC),e.notifyOnChanges()}return!0}return!1}function Cv(e,t,n){const r=Rn();r.firstCreatePass&&(Sv(r,new vv(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),wv(r,Mt(),t)}function Ev(e,t,n,r){const i=Rn();if(i.firstCreatePass){const s=$r();Sv(i,new vv(t,n,r),s.index),function Tw(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}wv(i,Mt(),n)}function Dv(){return function Mw(e,t){return e[Wr].queries[t].queryList}(Mt(),lt())}function wv(e,t,n){const r=new id(4==(4&n));(function kC(e,t,n,r){const i=xg(t);i.push(n),e.firstCreatePass&&Pg(e).push(r,i.length-1)})(e,t,r,r.destroy),null===t[Wr]&&(t[Wr]=new Ef),t[Wr].queries.push(new Cf(r))}function Sv(e,t,n){null===e.queries&&(e.queries=new Df),e.queries.track(new wf(t,n))}function Mv(e,t){return e.queries.getByIndex(t)}function Tv(e,t){return od(e,t)}function Mf(e){return!!Pr(e)}const zv=new cr("Application Initializer");let xf=(()=>{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=xe(zv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const s of this.appInits){const u=s();if(Zh(u))r.push(u);else if(fm(u)){const d=new Promise((b,O)=>{u.subscribe({complete:b,error:O})});r.push(d)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(s=>{this.reject(s)}),0===r.length&&i(),this.initialized=!0}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),Gv=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const cd=new cr("LocaleId",{providedIn:"root",factory:()=>xe(cd,ze.Optional|ze.SkipSelf)||function Kw(){return typeof $localize<"u"&&$localize.locale||_c}()}),Yw=new cr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Wv=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Y.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class Qw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Xw=(()=>{var e;class t{compileModuleSync(r){return new vf(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),u=Ia(Pr(r).declarations).reduce((d,b)=>{const O=An(b);return O&&d.push(new Kc(O)),d},[]);return new Qw(i,u)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const qv=new cr(""),Qv=new cr("");let kf,vS=(()=>{var e;class t{constructor(r,i,s){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kf||(function yS(e){kf=e}(s),s.addToWindow(i)),this._watchAngularEvents(),r.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:()=>{Ri.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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,s){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==u),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:s})}whenStable(r,i,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(r,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,s){return[]}}return(e=t).\u0275fac=function(r){return new(r||e)(L(Ri),L(Xv),L(Qv))},e.\u0275prov=jt({token:e,factory:e.\u0275fac}),t})(),Xv=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return kf?.findTestabilityInTree(this,r,i)??null}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),tl=null;const Jv=new cr("AllowMultipleToken"),Nf=new cr("PlatformDestroyListeners"),Ff=new cr("appBootstrapListener");class ES{constructor(t,n){this.name=t,this.token=n}}function ny(e,t,n=[]){const r=`Platform: ${t}`,i=new cr(r);return(s=[])=>{let u=Lf();if(!u||u.injector.get(Jv,!1)){const d=[...n,...s,{provide:i,useValue:!0}];e?e(d):function DS(e){if(tl&&!tl.get(Jv,!1))throw new q(400,!1);(function ey(){!function Ra(e){Bs=e}(()=>{throw new q(600,!1)})})(),tl=e;const t=e.get(iy);(function ty(e){e.get(Vp,null)?.forEach(n=>n())})(e)}(function ry(e=[],t){return Gs.create({name:t,providers:[{provide:th,useValue:"platform"},{provide:Nf,useValue:new Set([()=>tl=null])},...e]})}(d,r))}return function SS(e){const t=Lf();if(!t)throw new q(401,!1);return t}()}}function Lf(){return tl?.get(iy)??null}let iy=(()=>{var e;class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const s=function MS(e="zone.js",t){return"noop"===e?new _C:"zone.js"===e?new Ri(t):e}(i?.ngZone,function oy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return s.run(()=>{const u=function GD(e,t,n){return new _f(e,t,n)}(r.moduleType,this.injector,function uy(e){return[{provide:Ri,useFactory:e},{provide:Vc,multi:!0,useFactory:()=>{const t=xe(IS,{optional:!0});return()=>t.initialize()}},{provide:cy,useFactory:TS},{provide:rg,useFactory:ig}]}(()=>s)),d=u.injector.get(Ja,null);return s.runOutsideAngular(()=>{const b=s.onError.subscribe({next:O=>{d.handleError(O)}});u.onDestroy(()=>{dd(this._modules,u),b.unsubscribe()})}),function sy(e,t,n){try{const r=n();return Zh(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,s,()=>{const b=u.injector.get(xf);return b.runInitializers(),b.donePromise.then(()=>(function u_(e){Be(e,"Expected localeId to be defined"),"string"==typeof e&&(c_=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(cd,_c)||_c),this._moduleDoBootstrap(u),u))})})}bootstrapModule(r,i=[]){const s=ay({},i);return function bS(e,t,n){const r=new vf(n);return Promise.resolve(r)}(0,0,r).then(u=>this.bootstrapModuleFactory(u,s))}_moduleDoBootstrap(r){const i=r.injector.get(bc);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!r.instance.ngDoBootstrap)throw new q(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new q(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Nf,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(r){return new(r||e)(L(Gs))},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function ay(e,t){return Array.isArray(t)?t.reduce(ay,e):{...e,...t}}let bc=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=xe(cy),this.zoneIsStable=xe(rg),this.componentTypes=[],this.components=[],this.isStable=xe(Wv).hasPendingTasks.pipe((0,ue.w)(r=>r?(0,W.of)(!1):this.zoneIsStable),(0,ie.x)(),(0,re.B)()),this._injector=xe(ra)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const s=r instanceof $p;if(!this._injector.get(xf).done)throw!s&&bi(r),new q(405,!1);let d;d=s?r:this._injector.get(Uc).resolveComponentFactory(r),this.componentTypes.push(d.componentType);const b=function CS(e){return e.isBoundToModule}(d)?void 0:this._injector.get(Il),$=d.create(Gs.NULL,[],i||d.selector,b),_e=$.location.nativeElement,qe=$.injector.get(qv,null);return qe?.registerApplication(_e),$.onDestroy(()=>{this.detachView($.hostView),dd(this.components,$),qe?.unregisterApplication(_e)}),this._loadComponent($),$}tick(){if(this._runningTick)throw new q(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;dd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Ff,[]);i.push(...this._bootstrapListeners),i.forEach(s=>s(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>dd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new q(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function dd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const cy=new cr("",{providedIn:"root",factory:()=>xe(Ja).handleError.bind(void 0)});function TS(){const e=xe(Ri),t=xe(Ja);return n=>e.runOutsideAngular(()=>t.handleError(n))}let IS=(()=>{var e;class t{constructor(){this.zone=xe(Ri),this.applicationRef=xe(bc)}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(r){return new(r||e)},e.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function OS(){return!1}function xS(){}let PS=(()=>{class t{}return t.__NG_ELEMENT_ID__=RS,t})();function RS(e){return function kS(e,t,n){if(Ji(e)&&!n){const r=Jr(e.index,t);return new Zc(r,r)}return 47&e.type?new Zc(t[lr],t):null}($r(),Mt(),16==(16&e))}class py{constructor(){}supports(t){return Uu(t)}create(t){return new jS(t)}}const VS=(e,t)=>t;class jS{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||VS}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const u=!r||n&&n.currentIndex<my(r,i,s)?n:r,d=my(u,i,s),b=u.currentIndex;if(u===r)i--,r=r._nextRemoved;else if(n=n._next,null==u.previousIndex)i++;else{s||(s=[]);const O=d-i,$=b-i;if(O!=$){for(let qe=0;qe<O;qe++){const ct=qe<s.length?s[qe]:s[qe]=0,Dt=ct+qe;$<=Dt&&Dt<O&&(s[qe]=ct+1)}s[u.previousIndex]=$-O}}d!==b&&t(u,d,b)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Uu(t))throw new q(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,u,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)s=t[d],u=this._trackByFn(d,s),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,s,u,d)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,u,d),r=!0),n=n._next}else i=0,function T0(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{u=this._trackByFn(i,d),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,d,u,i)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,u,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new HS(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new gy),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gy),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 HS{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 US{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class gy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new US,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function my(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class _y{constructor(){}supports(t){return t instanceof Map||Fh(t)}create(){return new $S}}class $S{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||Fh(t)))throw new q(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const s=i._prev,u=i._next;return s&&(s._next=u),u&&(u._prev=s),i._next=null,i._prev=null,i}const r=new zS(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class zS{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 vy(){return new Uf([new py])}let Uf=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,i){if(null!=i){const s=i.factories.slice();r=r.concat(s)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||vy()),deps:[[t,new Ul,new Hl]]}}find(r){const i=this.factories.find(s=>s.supports(r));if(null!=i)return i;throw new q(901,!1)}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:vy}),t})();function yy(){return new $f([new _y])}let $f=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,i){if(i){const s=i.factories.slice();r=r.concat(s)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||yy()),deps:[[t,new Ul,new Hl]]}}find(r){const i=this.factories.find(s=>s.supports(r));if(i)return i;throw new q(901,!1)}}return(e=t).\u0275prov=jt({token:e,providedIn:"root",factory:yy}),t})();const ZS=ny(null,"core",[]);let KS=(()=>{var e;class t{constructor(r){}}return(e=t).\u0275fac=function(r){return new(r||e)(L(bc))},e.\u0275mod=Wo({type:e}),e.\u0275inj=nn({}),t})();function oM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function aM(e){const t=An(e);if(!t)return null;const n=new Kc(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}}}},6223:(wt,Pe,C)=>{C.d(Pe,{Cf:()=>X,EJ:()=>ur,F:()=>qn,Fd:()=>Wr,Fj:()=>He,JJ:()=>Sn,JL:()=>zt,JU:()=>ue,Kr:()=>To,NI:()=>ui,On:()=>Br,Q7:()=>Xi,UX:()=>Xo,Wl:()=>V,YN:()=>Ci,Zs:()=>gi,_Y:()=>Go,a5:()=>nn,gN:()=>Kt,kI:()=>Ne,nD:()=>Bi,oH:()=>bi,p4:()=>Gr,sg:()=>Mo,u5:()=>us,wV:()=>Ki});var o=C(5879),l=C(6814),R=C(2459),K=C(9315),Y=C(7398);let W=(()=>{var x;class T{constructor(k,ae){this._renderer=k,this._elementRef=ae,this.onChange=At=>{},this.onTouched=()=>{}}setProperty(k,ae){this._renderer.setProperty(this._elementRef.nativeElement,k,ae)}registerOnTouched(k){this.onTouched=k}registerOnChange(k){this.onChange=k}setDisabledState(k){this.setProperty("disabled",k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.Qsj),o.Y36(o.SBq))},x.\u0275dir=o.lG2({type:x}),T})(),re=(()=>{var x;class T extends W{}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,features:[o.qOj]}),T})();const ue=new o.OlP("NgValueAccessor"),ie={provide:ue,useExisting:(0,o.Gpc)(()=>V),multi:!0};let V=(()=>{var x;class T extends re{writeValue(k){this.setProperty("checked",k)}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(k,ae){1&k&&o.NdJ("change",function(_n){return ae.onChange(_n.target.checked)})("blur",function(){return ae.onTouched()})},features:[o._Bn([ie]),o.qOj]}),T})();const Q={provide:ue,useExisting:(0,o.Gpc)(()=>He),multi:!0},Ve=new o.OlP("CompositionEventMode");let He=(()=>{var x;class T extends W{constructor(k,ae,At){super(k,ae),this._compositionMode=At,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function be(){const x=(0,l.q)()?(0,l.q)().getUserAgent():"";return/android (\d+)/.test(x.toLowerCase())}())}writeValue(k){this.setProperty("value",k??"")}_handleInput(k){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(k)}_compositionStart(){this._composing=!0}_compositionEnd(k){this._composing=!1,this._compositionMode&&this.onChange(k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(Ve,8))},x.\u0275dir=o.lG2({type:x,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(k,ae){1&k&&o.NdJ("input",function(_n){return ae._handleInput(_n.target.value)})("blur",function(){return ae.onTouched()})("compositionstart",function(){return ae._compositionStart()})("compositionend",function(_n){return ae._compositionEnd(_n.target.value)})},features:[o._Bn([Q]),o.qOj]}),T})();function tt(x){return null==x||("string"==typeof x||Array.isArray(x))&&0===x.length}function $e(x){return null!=x&&"number"==typeof x.length}const X=new o.OlP("NgValidators"),Ye=new o.OlP("NgAsyncValidators"),ut=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ne{static min(T){return function q(x){return T=>{if(tt(T.value)||tt(x))return null;const te=parseFloat(T.value);return!isNaN(te)&&te<x?{min:{min:x,actual:T.value}}:null}}(T)}static max(T){return me(T)}static required(T){return ve(T)}static requiredTrue(T){return ye(T)}static email(T){return function rt(x){return tt(x.value)||ut.test(x.value)?null:{email:!0}}(T)}static minLength(T){return function Qe(x){return T=>tt(T.value)||!$e(T.value)?null:T.value.length<x?{minlength:{requiredLength:x,actualLength:T.value.length}}:null}(T)}static maxLength(T){return ft(T)}static pattern(T){return function xt(x){if(!x)return Bt;let T,te;return"string"==typeof x?(te="","^"!==x.charAt(0)&&(te+="^"),te+=x,"$"!==x.charAt(x.length-1)&&(te+="$"),T=new RegExp(te)):(te=x.toString(),T=x),k=>{if(tt(k.value))return null;const ae=k.value;return T.test(ae)?null:{pattern:{requiredPattern:te,actualValue:ae}}}}(T)}static nullValidator(T){return null}static compose(T){return Ge(T)}static composeAsync(T){return Ze(T)}}function me(x){return T=>{if(tt(T.value)||tt(x))return null;const te=parseFloat(T.value);return!isNaN(te)&&te>x?{max:{max:x,actual:T.value}}:null}}function ve(x){return tt(x.value)?{required:!0}:null}function ye(x){return!0===x.value?null:{required:!0}}function ft(x){return T=>$e(T.value)&&T.value.length>x?{maxlength:{requiredLength:x,actualLength:T.value.length}}:null}function Bt(x){return null}function Rt(x){return null!=x}function Qt(x){return(0,o.QGY)(x)?(0,R.D)(x):x}function qt(x){let T={};return x.forEach(te=>{T=null!=te?{...T,...te}:T}),0===Object.keys(T).length?null:T}function sn(x,T){return T.map(te=>te(x))}function wn(x){return x.map(T=>function Cn(x){return!x.validate}(T)?T:te=>T.validate(te))}function Ge(x){if(!x)return null;const T=x.filter(Rt);return 0==T.length?null:function(te){return qt(sn(te,T))}}function Xe(x){return null!=x?Ge(wn(x)):null}function Ze(x){if(!x)return null;const T=x.filter(Rt);return 0==T.length?null:function(te){const k=sn(te,T).map(Qt);return(0,K.D)(k).pipe((0,Y.U)(qt))}}function De(x){return null!=x?Ze(wn(x)):null}function Me(x,T){return null===x?[T]:Array.isArray(x)?[...x,T]:[x,T]}function Ce(x){return x._rawValidators}function Be(x){return x._rawAsyncValidators}function Fe(x){return x?Array.isArray(x)?x:[x]:[]}function ke(x,T){return Array.isArray(x)?x.includes(T):x===T}function Ct(x,T){const te=Fe(T);return Fe(x).forEach(ae=>{ke(te,ae)||te.push(ae)}),te}function Nt(x,T){return Fe(T).filter(te=>!ke(x,te))}class jt{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(T){this._rawValidators=T||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(T){this._rawAsyncValidators=T||[],this._composedAsyncValidatorFn=De(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(T){this._onDestroyCallbacks.push(T)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(T=>T()),this._onDestroyCallbacks=[]}reset(T=void 0){this.control&&this.control.reset(T)}hasError(T,te){return!!this.control&&this.control.hasError(T,te)}getError(T,te){return this.control?this.control.getError(T,te):null}}class Kt extends jt{get formDirective(){return null}get path(){return null}}class nn extends jt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rn{constructor(T){this._cd=T}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 Sn=(()=>{var x;class T extends rn{constructor(k){super(k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(nn,2))},x.\u0275dir=o.lG2({type:x,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(k,ae){2&k&&o.ekj("ng-untouched",ae.isUntouched)("ng-touched",ae.isTouched)("ng-pristine",ae.isPristine)("ng-dirty",ae.isDirty)("ng-valid",ae.isValid)("ng-invalid",ae.isInvalid)("ng-pending",ae.isPending)},features:[o.qOj]}),T})(),zt=(()=>{var x;class T extends rn{constructor(k){super(k)}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(Kt,10))},x.\u0275dir=o.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(k,ae){2&k&&o.ekj("ng-untouched",ae.isUntouched)("ng-touched",ae.isTouched)("ng-pristine",ae.isPristine)("ng-dirty",ae.isDirty)("ng-valid",ae.isValid)("ng-invalid",ae.isInvalid)("ng-pending",ae.isPending)("ng-submitted",ae.isSubmitted)},features:[o.qOj]}),T})();const y="VALID",P="INVALID",ee="PENDING",Ae="DISABLED";function it(x){return(Ht(x)?x.validators:x)||null}function Et(x,T){return(Ht(T)?T.asyncValidators:x)||null}function Ht(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}class Oe{constructor(T,te){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(T),this._assignAsyncValidators(te)}get validator(){return this._composedValidatorFn}set validator(T){this._rawValidators=this._composedValidatorFn=T}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(T){this._rawAsyncValidators=this._composedAsyncValidatorFn=T}get parent(){return this._parent}get valid(){return this.status===y}get invalid(){return this.status===P}get pending(){return this.status==ee}get disabled(){return this.status===Ae}get enabled(){return this.status!==Ae}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(T){this._assignValidators(T)}setAsyncValidators(T){this._assignAsyncValidators(T)}addValidators(T){this.setValidators(Ct(T,this._rawValidators))}addAsyncValidators(T){this.setAsyncValidators(Ct(T,this._rawAsyncValidators))}removeValidators(T){this.setValidators(Nt(T,this._rawValidators))}removeAsyncValidators(T){this.setAsyncValidators(Nt(T,this._rawAsyncValidators))}hasValidator(T){return ke(this._rawValidators,T)}hasAsyncValidator(T){return ke(this._rawAsyncValidators,T)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(T={}){this.touched=!0,this._parent&&!T.onlySelf&&this._parent.markAsTouched(T)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(T=>T.markAllAsTouched())}markAsUntouched(T={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(te=>{te.markAsUntouched({onlySelf:!0})}),this._parent&&!T.onlySelf&&this._parent._updateTouched(T)}markAsDirty(T={}){this.pristine=!1,this._parent&&!T.onlySelf&&this._parent.markAsDirty(T)}markAsPristine(T={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(te=>{te.markAsPristine({onlySelf:!0})}),this._parent&&!T.onlySelf&&this._parent._updatePristine(T)}markAsPending(T={}){this.status=ee,!1!==T.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!T.onlySelf&&this._parent.markAsPending(T)}disable(T={}){const te=this._parentMarkedDirty(T.onlySelf);this.status=Ae,this.errors=null,this._forEachChild(k=>{k.disable({...T,onlySelf:!0})}),this._updateValue(),!1!==T.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...T,skipPristineCheck:te}),this._onDisabledChange.forEach(k=>k(!0))}enable(T={}){const te=this._parentMarkedDirty(T.onlySelf);this.status=y,this._forEachChild(k=>{k.enable({...T,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent}),this._updateAncestors({...T,skipPristineCheck:te}),this._onDisabledChange.forEach(k=>k(!1))}_updateAncestors(T){this._parent&&!T.onlySelf&&(this._parent.updateValueAndValidity(T),T.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(T){this._parent=T}getRawValue(){return this.value}updateValueAndValidity(T={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===y||this.status===ee)&&this._runAsyncValidator(T.emitEvent)),!1!==T.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!T.onlySelf&&this._parent.updateValueAndValidity(T)}_updateTreeValidity(T={emitEvent:!0}){this._forEachChild(te=>te._updateTreeValidity(T)),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ae:y}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(T){if(this.asyncValidator){this.status=ee,this._hasOwnPendingAsyncValidator=!0;const te=Qt(this.asyncValidator(this));this._asyncValidationSubscription=te.subscribe(k=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(k,{emitEvent:T})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(T,te={}){this.errors=T,this._updateControlsErrors(!1!==te.emitEvent)}get(T){let te=T;return null==te||(Array.isArray(te)||(te=te.split(".")),0===te.length)?null:te.reduce((k,ae)=>k&&k._find(ae),this)}getError(T,te){const k=te?this.get(te):this;return k&&k.errors?k.errors[T]:null}hasError(T,te){return!!this.getError(T,te)}get root(){let T=this;for(;T._parent;)T=T._parent;return T}_updateControlsErrors(T){this.status=this._calculateStatus(),T&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(T)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?Ae:this.errors?P:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ee)?ee:this._anyControlsHaveStatus(P)?P:y}_anyControlsHaveStatus(T){return this._anyControls(te=>te.status===T)}_anyControlsDirty(){return this._anyControls(T=>T.dirty)}_anyControlsTouched(){return this._anyControls(T=>T.touched)}_updatePristine(T={}){this.pristine=!this._anyControlsDirty(),this._parent&&!T.onlySelf&&this._parent._updatePristine(T)}_updateTouched(T={}){this.touched=this._anyControlsTouched(),this._parent&&!T.onlySelf&&this._parent._updateTouched(T)}_registerOnCollectionChange(T){this._onCollectionChange=T}_setUpdateStrategy(T){Ht(T)&&null!=T.updateOn&&(this._updateOn=T.updateOn)}_parentMarkedDirty(T){return!T&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(T){return null}_assignValidators(T){this._rawValidators=Array.isArray(T)?T.slice():T,this._composedValidatorFn=function St(x){return Array.isArray(x)?Xe(x):x||null}(this._rawValidators)}_assignAsyncValidators(T){this._rawAsyncValidators=Array.isArray(T)?T.slice():T,this._composedAsyncValidatorFn=function Pt(x){return Array.isArray(x)?De(x):x||null}(this._rawAsyncValidators)}}class z extends Oe{constructor(T,te,k){super(it(te),Et(k,te)),this.controls=T,this._initObservables(),this._setUpdateStrategy(te),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(T,te){return this.controls[T]?this.controls[T]:(this.controls[T]=te,te.setParent(this),te._registerOnCollectionChange(this._onCollectionChange),te)}addControl(T,te,k={}){this.registerControl(T,te),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}removeControl(T,te={}){this.controls[T]&&this.controls[T]._registerOnCollectionChange(()=>{}),delete this.controls[T],this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}setControl(T,te,k={}){this.controls[T]&&this.controls[T]._registerOnCollectionChange(()=>{}),delete this.controls[T],te&&this.registerControl(T,te),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}contains(T){return this.controls.hasOwnProperty(T)&&this.controls[T].enabled}setValue(T,te={}){(function cn(x,T,te){x._forEachChild((k,ae)=>{if(void 0===te[ae])throw new o.vHH(1002,"")})})(this,0,T),Object.keys(T).forEach(k=>{(function Yt(x,T,te){const k=x.controls;if(!(T?Object.keys(k):k).length)throw new o.vHH(1e3,"");if(!k[te])throw new o.vHH(1001,"")})(this,!0,k),this.controls[k].setValue(T[k],{onlySelf:!0,emitEvent:te.emitEvent})}),this.updateValueAndValidity(te)}patchValue(T,te={}){null!=T&&(Object.keys(T).forEach(k=>{const ae=this.controls[k];ae&&ae.patchValue(T[k],{onlySelf:!0,emitEvent:te.emitEvent})}),this.updateValueAndValidity(te))}reset(T={},te={}){this._forEachChild((k,ae)=>{k.reset(T[ae],{onlySelf:!0,emitEvent:te.emitEvent})}),this._updatePristine(te),this._updateTouched(te),this.updateValueAndValidity(te)}getRawValue(){return this._reduceChildren({},(T,te,k)=>(T[k]=te.getRawValue(),T))}_syncPendingControls(){let T=this._reduceChildren(!1,(te,k)=>!!k._syncPendingControls()||te);return T&&this.updateValueAndValidity({onlySelf:!0}),T}_forEachChild(T){Object.keys(this.controls).forEach(te=>{const k=this.controls[te];k&&T(k,te)})}_setUpControls(){this._forEachChild(T=>{T.setParent(this),T._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(T){for(const[te,k]of Object.entries(this.controls))if(this.contains(te)&&T(k))return!0;return!1}_reduceValue(){return this._reduceChildren({},(te,k,ae)=>((k.enabled||this.disabled)&&(te[ae]=k.value),te))}_reduceChildren(T,te){let k=T;return this._forEachChild((ae,At)=>{k=te(k,ae,At)}),k}_allControlsDisabled(){for(const T of Object.keys(this.controls))if(this.controls[T].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(T){return this.controls.hasOwnProperty(T)?this.controls[T]:null}}const j=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>L}),L="always";function xe(x,T,te=L){de(x,T),T.valueAccessor.writeValue(x.value),(x.disabled||"always"===te)&&T.valueAccessor.setDisabledState?.(x.disabled),function ot(x,T){T.valueAccessor.registerOnChange(te=>{x._pendingValue=te,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ee(x,T)})}(x,T),function We(x,T){const te=(k,ae)=>{T.valueAccessor.writeValue(k),ae&&T.viewToModelUpdate(k)};x.registerOnChange(te),T._registerOnDestroy(()=>{x._unregisterOnChange(te)})}(x,T),function le(x,T){T.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ee(x,T),"submit"!==x.updateOn&&x.markAsTouched()})}(x,T),function at(x,T){if(T.valueAccessor.setDisabledState){const te=k=>{T.valueAccessor.setDisabledState(k)};x.registerOnDisabledChange(te),T._registerOnDestroy(()=>{x._unregisterOnDisabledChange(te)})}}(x,T)}function ce(x,T,te=!0){const k=()=>{};T.valueAccessor&&(T.valueAccessor.registerOnChange(k),T.valueAccessor.registerOnTouched(k)),se(x,T),x&&(T._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function Se(x,T){x.forEach(te=>{te.registerOnValidatorChange&&te.registerOnValidatorChange(T)})}function de(x,T){const te=Ce(x);null!==T.validator?x.setValidators(Me(te,T.validator)):"function"==typeof te&&x.setValidators([te]);const k=Be(x);null!==T.asyncValidator?x.setAsyncValidators(Me(k,T.asyncValidator)):"function"==typeof k&&x.setAsyncValidators([k]);const ae=()=>x.updateValueAndValidity();Se(T._rawValidators,ae),Se(T._rawAsyncValidators,ae)}function se(x,T){let te=!1;if(null!==x){if(null!==T.validator){const ae=Ce(x);if(Array.isArray(ae)&&ae.length>0){const At=ae.filter(_n=>_n!==T.validator);At.length!==ae.length&&(te=!0,x.setValidators(At))}}if(null!==T.asyncValidator){const ae=Be(x);if(Array.isArray(ae)&&ae.length>0){const At=ae.filter(_n=>_n!==T.asyncValidator);At.length!==ae.length&&(te=!0,x.setAsyncValidators(At))}}}const k=()=>{};return Se(T._rawValidators,k),Se(T._rawAsyncValidators,k),te}function Ee(x,T){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),T.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function bt(x,T){de(x,T)}function ir(x,T){if(!x.hasOwnProperty("model"))return!1;const te=x.model;return!!te.isFirstChange()||!Object.is(T,te.currentValue)}function zr(x,T){x._syncPendingControls(),T.forEach(te=>{const k=te.control;"submit"===k.updateOn&&k._pendingChange&&(te.viewToModelUpdate(k._pendingValue),k._pendingChange=!1)})}function Mn(x,T){if(!T)return null;let te,k,ae;return Array.isArray(T),T.forEach(At=>{At.constructor===He?te=At:function yr(x){return Object.getPrototypeOf(x.constructor)===re}(At)?k=At:ae=At}),ae||k||te||null}const ti={provide:Kt,useExisting:(0,o.Gpc)(()=>qn)},Ln=(()=>Promise.resolve())();let qn=(()=>{var x;class T extends Kt{constructor(k,ae,At){super(),this.callSetDisabledState=At,this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new z({},Xe(k),De(ae))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(k){Ln.then(()=>{const ae=this._findContainer(k.path);k.control=ae.registerControl(k.name,k.control),xe(k.control,k,this.callSetDisabledState),k.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(k)})}getControl(k){return this.form.get(k.path)}removeControl(k){Ln.then(()=>{const ae=this._findContainer(k.path);ae&&ae.removeControl(k.name),this._directives.delete(k)})}addFormGroup(k){Ln.then(()=>{const ae=this._findContainer(k.path),At=new z({});bt(At,k),ae.registerControl(k.name,At),At.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(k){Ln.then(()=>{const ae=this._findContainer(k.path);ae&&ae.removeControl(k.name)})}getFormGroup(k){return this.form.get(k.path)}updateModel(k,ae){Ln.then(()=>{this.form.get(k.path).setValue(ae)})}setValue(k){this.control.setValue(k)}onSubmit(k){return this.submitted=!0,zr(this.form,this._directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(k){return k.pop(),k.length?this.form.get(k):this.form}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(X,10),o.Y36(Ye,10),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(k,ae){1&k&&o.NdJ("submit",function(_n){return ae.onSubmit(_n)})("reset",function(){return ae.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([ti]),o.qOj]}),T})();function Ii(x,T){const te=x.indexOf(T);te>-1&&x.splice(te,1)}function dr(x){return"object"==typeof x&&null!==x&&2===Object.keys(x).length&&"value"in x&&"disabled"in x}const ui=class extends Oe{constructor(T=null,te,k){super(it(te),Et(k,te)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(T),this._setUpdateStrategy(te),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ht(te)&&(te.nonNullable||te.initialValueIsDefault)&&(this.defaultValue=dr(T)?T.value:T)}setValue(T,te={}){this.value=this._pendingValue=T,this._onChange.length&&!1!==te.emitModelToViewChange&&this._onChange.forEach(k=>k(this.value,!1!==te.emitViewToModelChange)),this.updateValueAndValidity(te)}patchValue(T,te={}){this.setValue(T,te)}reset(T=this.defaultValue,te={}){this._applyFormState(T),this.markAsPristine(te),this.markAsUntouched(te),this.setValue(this.value,te),this._pendingChange=!1}_updateValue(){}_anyControls(T){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(T){this._onChange.push(T)}_unregisterOnChange(T){Ii(this._onChange,T)}registerOnDisabledChange(T){this._onDisabledChange.push(T)}_unregisterOnDisabledChange(T){Ii(this._onDisabledChange,T)}_forEachChild(T){}_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(T){dr(T)?(this.value=this._pendingValue=T.value,T.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=T}},Gr=ui,Do={provide:nn,useExisting:(0,o.Gpc)(()=>Br)},zo=(()=>Promise.resolve())();let Br=(()=>{var x;class T extends nn{constructor(k,ae,At,_n,Nr,Xr){super(),this._changeDetectorRef=Nr,this.callSetDisabledState=Xr,this.control=new ui,this._registered=!1,this.name="",this.update=new o.vpe,this._parent=k,this._setValidators(ae),this._setAsyncValidators(At),this.valueAccessor=Mn(0,_n)}ngOnChanges(k){if(this._checkForErrors(),!this._registered||"name"in k){if(this._registered&&(this._checkName(),this.formDirective)){const ae=k.name.previousValue;this.formDirective.removeControl({name:ae,path:this._getPath(ae)})}this._setUpControl()}"isDisabled"in k&&this._updateDisabled(k),ir(k,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(k){this.viewModel=k,this.update.emit(k)}_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(){xe(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(k){zo.then(()=>{this.control.setValue(k,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(k){const ae=k.isDisabled.currentValue,At=0!==ae&&(0,o.VuI)(ae);zo.then(()=>{At&&!this.control.disabled?this.control.disable():!At&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(k){return this._parent?function J(x,T){return[...T.path,x]}(k,this._parent):[k]}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(Kt,9),o.Y36(X,10),o.Y36(Ye,10),o.Y36(ue,10),o.Y36(o.sBO,8),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([Do]),o.qOj,o.TTD]}),T})(),Go=(()=>{var x;class T{}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275dir=o.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),T})();const xr={provide:ue,useExisting:(0,o.Gpc)(()=>Ki),multi:!0};let Ki=(()=>{var x;class T extends re{writeValue(k){this.setProperty("value",k??"")}registerOnChange(k){this.onChange=ae=>{k(""==ae?null:parseFloat(ae))}}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(k,ae){1&k&&o.NdJ("input",function(_n){return ae.onChange(_n.target.value)})("blur",function(){return ae.onTouched()})},features:[o._Bn([xr]),o.qOj]}),T})(),So=(()=>{var x;class T{}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({}),T})();const Kn=new o.OlP("NgModelWithFormControlWarning"),or={provide:nn,useExisting:(0,o.Gpc)(()=>bi)};let bi=(()=>{var x;class T extends nn{set isDisabled(k){}constructor(k,ae,At,_n,Nr){super(),this._ngModelWarningConfig=_n,this.callSetDisabledState=Nr,this.update=new o.vpe,this._ngModelWarningSent=!1,this._setValidators(k),this._setAsyncValidators(ae),this.valueAccessor=Mn(0,At)}ngOnChanges(k){if(this._isControlChanged(k)){const ae=k.form.previousValue;ae&&ce(ae,this,!1),xe(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ir(k,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ce(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_isControlChanged(k){return k.hasOwnProperty("form")}}return(x=T)._ngModelWarningSentOnce=!1,x.\u0275fac=function(k){return new(k||x)(o.Y36(X,10),o.Y36(Ye,10),o.Y36(ue,10),o.Y36(Kn,8),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o._Bn([or]),o.qOj,o.TTD]}),T})();const Pr={provide:Kt,useExisting:(0,o.Gpc)(()=>Mo)};let Mo=(()=>{var x;class T extends Kt{constructor(k,ae,At){super(),this.callSetDisabledState=At,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.vpe,this._setValidators(k),this._setAsyncValidators(ae)}ngOnChanges(k){this._checkFormPresent(),k.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(se(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(k){const ae=this.form.get(k.path);return xe(ae,k,this.callSetDisabledState),ae.updateValueAndValidity({emitEvent:!1}),this.directives.push(k),ae}getControl(k){return this.form.get(k.path)}removeControl(k){ce(k.control||null,k,!1),function Zn(x,T){const te=x.indexOf(T);te>-1&&x.splice(te,1)}(this.directives,k)}addFormGroup(k){this._setUpFormContainer(k)}removeFormGroup(k){this._cleanUpFormContainer(k)}getFormGroup(k){return this.form.get(k.path)}addFormArray(k){this._setUpFormContainer(k)}removeFormArray(k){this._cleanUpFormContainer(k)}getFormArray(k){return this.form.get(k.path)}updateModel(k,ae){this.form.get(k.path).setValue(ae)}onSubmit(k){return this.submitted=!0,zr(this.form,this.directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submitted=!1}_updateDomValue(){this.directives.forEach(k=>{const ae=k.control,At=this.form.get(k.path);ae!==At&&(ce(ae||null,k),(x=>x instanceof ui)(At)&&(xe(At,k,this.callSetDisabledState),k.control=At))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(k){const ae=this.form.get(k.path);bt(ae,k),ae.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(k){if(this.form){const ae=this.form.get(k.path);ae&&function ht(x,T){return se(x,T)}(ae,k)&&ae.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){de(this.form,this),this._oldForm&&se(this._oldForm,this)}_checkFormPresent(){}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(X,10),o.Y36(Ye,10),o.Y36(j,8))},x.\u0275dir=o.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(k,ae){1&k&&o.NdJ("submit",function(_n){return ae.onSubmit(_n)})("reset",function(){return ae.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([Pr]),o.qOj,o.TTD]}),T})();const Jn={provide:ue,useExisting:(0,o.Gpc)(()=>ur),multi:!0};function br(x,T){return null==x?`${T}`:(T&&"object"==typeof T&&(T="Object"),`${x}: ${T}`.slice(0,50))}let ur=(()=>{var x;class T extends re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(k){this._compareWith=k}writeValue(k){this.value=k;const At=br(this._getOptionId(k),k);this.setProperty("value",At)}registerOnChange(k){this.onChange=ae=>{this.value=this._getOptionValue(ae),k(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(k){for(const ae of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ae),k))return ae;return null}_getOptionValue(k){const ae=function Ai(x){return x.split(":")[0]}(k);return this._optionMap.has(ae)?this._optionMap.get(ae):k}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(k,ae){1&k&&o.NdJ("change",function(_n){return ae.onChange(_n.target.value)})("blur",function(){return ae.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([Jn]),o.qOj]}),T})(),Ci=(()=>{var x;class T{constructor(k,ae,At){this._element=k,this._renderer=ae,this._select=At,this._select&&(this.id=this._select._registerOption())}set ngValue(k){null!=this._select&&(this._select._optionMap.set(this.id,k),this._setElementValue(br(this.id,k)),this._select.writeValue(this._select.value))}set value(k){this._setElementValue(k),this._select&&this._select.writeValue(this._select.value)}_setElementValue(k){this._renderer.setProperty(this._element.nativeElement,"value",k)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(ur,9))},x.\u0275dir=o.lG2({type:x,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),T})();const ar={provide:ue,useExisting:(0,o.Gpc)(()=>Qr),multi:!0};function Ei(x,T){return null==x?`${T}`:("string"==typeof T&&(T=`'${T}'`),T&&"object"==typeof T&&(T="Object"),`${x}: ${T}`.slice(0,50))}let Qr=(()=>{var x;class T extends re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(k){this._compareWith=k}writeValue(k){let ae;if(this.value=k,Array.isArray(k)){const At=k.map(_n=>this._getOptionId(_n));ae=(_n,Nr)=>{_n._setSelected(At.indexOf(Nr.toString())>-1)}}else ae=(At,_n)=>{At._setSelected(!1)};this._optionMap.forEach(ae)}registerOnChange(k){this.onChange=ae=>{const At=[],_n=ae.selectedOptions;if(void 0!==_n){const Nr=_n;for(let Xr=0;Xr<Nr.length;Xr++){const Di=this._getOptionValue(Nr[Xr].value);At.push(Di)}}else{const Nr=ae.options;for(let Xr=0;Xr<Nr.length;Xr++){const co=Nr[Xr];if(co.selected){const Di=this._getOptionValue(co.value);At.push(Di)}}}this.value=At,k(At)}}_registerOption(k){const ae=(this._idCounter++).toString();return this._optionMap.set(ae,k),ae}_getOptionId(k){for(const ae of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ae)._value,k))return ae;return null}_getOptionValue(k){const ae=function hi(x){return x.split(":")[0]}(k);return this._optionMap.has(ae)?this._optionMap.get(ae)._value:k}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(k,ae){1&k&&o.NdJ("change",function(_n){return ae.onChange(_n.target)})("blur",function(){return ae.onTouched()})},inputs:{compareWith:"compareWith"},features:[o._Bn([ar]),o.qOj]}),T})(),To=(()=>{var x;class T{constructor(k,ae,At){this._element=k,this._renderer=ae,this._select=At,this._select&&(this.id=this._select._registerOption(this))}set ngValue(k){null!=this._select&&(this._value=k,this._setElementValue(Ei(this.id,k)),this._select.writeValue(this._select.value))}set value(k){this._select?(this._value=k,this._setElementValue(Ei(this.id,k)),this._select.writeValue(this._select.value)):this._setElementValue(k)}_setElementValue(k){this._renderer.setProperty(this._element.nativeElement,"value",k)}_setSelected(k){this._renderer.setProperty(this._element.nativeElement,"selected",k)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return(x=T).\u0275fac=function(k){return new(k||x)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Qr,9))},x.\u0275dir=o.lG2({type:x,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),T})();let fi=(()=>{var x;class T{constructor(){this._validator=Bt}ngOnChanges(k){if(this.inputName in k){const ae=this.normalizeInput(k[this.inputName].currentValue);this._enabled=this.enabled(ae),this._validator=this._enabled?this.createValidator(ae):Bt,this._onChange&&this._onChange()}}validate(k){return this._validator(k)}registerOnValidatorChange(k){this._onChange=k}enabled(k){return null!=k}}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275dir=o.lG2({type:x,features:[o.TTD]}),T})();const qi={provide:X,useExisting:(0,o.Gpc)(()=>Wr),multi:!0};let Wr=(()=>{var x;class T extends fi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=k=>function lr(x){return"number"==typeof x?x:parseFloat(x)}(k),this.createValidator=k=>me(k)}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("max",ae._enabled?ae.max:null)},inputs:{max:"max"},features:[o._Bn([qi]),o.qOj]}),T})();const Qi={provide:X,useExisting:(0,o.Gpc)(()=>Xi),multi:!0},pi={provide:X,useExisting:(0,o.Gpc)(()=>gi),multi:!0};let Xi=(()=>{var x;class T extends fi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=o.VuI,this.createValidator=k=>ve}enabled(k){return k}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("required",ae._enabled?"":null)},inputs:{required:"required"},features:[o._Bn([Qi]),o.qOj]}),T})(),gi=(()=>{var x;class T extends Xi{constructor(){super(...arguments),this.createValidator=k=>ye}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("required",ae._enabled?"":null)},features:[o._Bn([pi]),o.qOj]}),T})();const er={provide:X,useExisting:(0,o.Gpc)(()=>Bi),multi:!0};let Bi=(()=>{var x;class T extends fi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=k=>function Li(x){return"number"==typeof x?x:parseInt(x,10)}(k),this.createValidator=k=>ft(k)}}return(x=T).\u0275fac=function(){let te;return function(ae){return(te||(te=o.n5z(x)))(ae||x)}}(),x.\u0275dir=o.lG2({type:x,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(k,ae){2&k&&o.uIk("maxlength",ae._enabled?ae.maxlength:null)},inputs:{maxlength:"maxlength"},features:[o._Bn([er]),o.qOj]}),T})(),fr=(()=>{var x;class T{}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[So]}),T})(),us=(()=>{var x;class T{static withConfig(k){return{ngModule:T,providers:[{provide:j,useValue:k.callSetDisabledState??L}]}}}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[fr]}),T})(),Xo=(()=>{var x;class T{static withConfig(k){return{ngModule:T,providers:[{provide:Kn,useValue:k.warnOnNgModelWithFormControl??"always"},{provide:j,useValue:k.callSetDisabledState??L}]}}}return(x=T).\u0275fac=function(k){return new(k||x)},x.\u0275mod=o.oAB({type:x}),x.\u0275inj=o.cJS({imports:[fr]}),T})()},3680:(wt,Pe,C)=>{C.d(Pe,{yN:()=>q,mZ:()=>me,_A:()=>Xe,rD:()=>Nt,sG:()=>Ze,Ad:()=>wn,K7:()=>vt,HF:()=>dt,BQ:()=>rt,XK:()=>ke,ey:()=>Ae,Ng:()=>Et,rN:()=>P,wG:()=>pe,Fq:()=>U,si:()=>nt,CB:()=>it,jH:()=>St,pj:()=>Rt,Kr:()=>Qt,Id:()=>Bt,FD:()=>sn,dB:()=>Cn,sb:()=>qt});var o=C(5879),l=C(7849),R=C(9388),Y=C(6814),W=C(2831),re=C(2495),ue=C(5592),ie=C(8645),V=C(6028);const He=["text"];function tt(B,S){if(1&B&&o._UZ(0,"mat-pseudo-checkbox",6),2&B){const H=o.oxw();o.Q6J("disabled",H.disabled)("state",H.selected?"checked":"unchecked")}}function $e(B,S){if(1&B&&o._UZ(0,"mat-pseudo-checkbox",7),2&B){const H=o.oxw();o.Q6J("disabled",H.disabled)}}function X(B,S){if(1&B&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&B){const H=o.oxw();o.xp6(1),o.hij("(",H.group.label,")")}}const Ye=[[["mat-icon"]],"*"],ut=["mat-icon","*"];let q=(()=>{var B;class S{}return(B=S).STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",B.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",B.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",B.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",S})(),me=(()=>{var B;class S{}return(B=S).COMPLEX="375ms",B.ENTERING="225ms",B.EXITING="195ms",S})();const ye=new o.OlP("mat-sanity-checks",{providedIn:"root",factory:function ve(){return!0}});let rt=(()=>{var B;class S{constructor(j,L,J){this._sanityChecks=L,this._document=J,this._hasDoneGlobalChecks=!1,j._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(j){return!(0,W.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[j])}}return(B=S).\u0275fac=function(j){return new(j||B)(o.LFG(l.qm),o.LFG(ye,8),o.LFG(Y.K0))},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[R.vT,R.vT]}),S})();function Bt(B){return class extends B{get disabled(){return this._disabled}set disabled(S){this._disabled=(0,re.Ig)(S)}constructor(...S){super(...S),this._disabled=!1}}}function Rt(B,S){return class extends B{get color(){return this._color}set color(H){const j=H||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}constructor(...H){super(...H),this.defaultColor=S,this.color=S}}}function Qt(B){return class extends B{get disableRipple(){return this._disableRipple}set disableRipple(S){this._disableRipple=(0,re.Ig)(S)}constructor(...S){super(...S),this._disableRipple=!1}}}function qt(B,S=0){return class extends B{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(H){this._tabIndex=null!=H?(0,re.su)(H):this.defaultTabIndex}constructor(...H){super(...H),this._tabIndex=S,this.defaultTabIndex=S}}}function sn(B){return class extends B{updateErrorState(){const S=this.errorState,J=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);J!==S&&(this.errorState=J,this.stateChanges.next())}constructor(...S){super(...S),this.errorState=!1}}}function Cn(B){return class extends B{constructor(...S){super(...S),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ue.y(H=>{this._isInitialized?this._notifySubscriber(H):this._pendingSubscribers.push(H)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(S){S.next(),S.complete()}}}const wn=new o.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ge(){return(0,o.f3M)(o.soG)}});class Xe{constructor(){this._localeChanges=new ie.x,this.localeChanges=this._localeChanges}getValidDateOrNull(S){return this.isDateInstance(S)&&this.isValid(S)?S:null}deserialize(S){return null==S||this.isDateInstance(S)&&this.isValid(S)?S:this.invalid()}setLocale(S){this.locale=S,this._localeChanges.next()}compareDate(S,H){return this.getYear(S)-this.getYear(H)||this.getMonth(S)-this.getMonth(H)||this.getDate(S)-this.getDate(H)}sameDate(S,H){if(S&&H){let j=this.isValid(S),L=this.isValid(H);return j&&L?!this.compareDate(S,H):j==L}return S==H}clampDate(S,H,j){return H&&this.compareDate(S,H)<0?H:j&&this.compareDate(S,j)>0?j:S}}const Ze=new o.OlP("mat-date-formats"),De=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Me(B,S){const H=Array(B);for(let j=0;j<B;j++)H[j]=S(j);return H}let Ce=(()=>{var B;class S extends Xe{constructor(j,L){super(),this.useUtcForDisplay=!1,super.setLocale(j)}getYear(j){return j.getFullYear()}getMonth(j){return j.getMonth()}getDate(j){return j.getDate()}getDayOfWeek(j){return j.getDay()}getMonthNames(j){const L=new Intl.DateTimeFormat(this.locale,{month:j,timeZone:"utc"});return Me(12,J=>this._format(L,new Date(2017,J,1)))}getDateNames(){const j=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Me(31,L=>this._format(j,new Date(2017,0,L+1)))}getDayOfWeekNames(j){const L=new Intl.DateTimeFormat(this.locale,{weekday:j,timeZone:"utc"});return Me(7,J=>this._format(L,new Date(2017,0,J+1)))}getYearName(j){const L=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(L,j)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(j){return this.getDate(this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+1,0))}clone(j){return new Date(j.getTime())}createDate(j,L,J){let xe=this._createDateWithOverflow(j,L,J);return xe.getMonth(),xe}today(){return new Date}parse(j,L){return"number"==typeof j?new Date(j):j?new Date(Date.parse(j)):null}format(j,L){if(!this.isValid(j))throw Error("NativeDateAdapter: Cannot format invalid date.");const J=new Intl.DateTimeFormat(this.locale,{...L,timeZone:"utc"});return this._format(J,j)}addCalendarYears(j,L){return this.addCalendarMonths(j,12*L)}addCalendarMonths(j,L){let J=this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+L,this.getDate(j));return this.getMonth(J)!=((this.getMonth(j)+L)%12+12)%12&&(J=this._createDateWithOverflow(this.getYear(J),this.getMonth(J),0)),J}addCalendarDays(j,L){return this._createDateWithOverflow(this.getYear(j),this.getMonth(j),this.getDate(j)+L)}toIso8601(j){return[j.getUTCFullYear(),this._2digit(j.getUTCMonth()+1),this._2digit(j.getUTCDate())].join("-")}deserialize(j){if("string"==typeof j){if(!j)return null;if(De.test(j)){let L=new Date(j);if(this.isValid(L))return L}}return super.deserialize(j)}isDateInstance(j){return j instanceof Date}isValid(j){return!isNaN(j.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(j,L,J){const xe=new Date;return xe.setFullYear(j,L,J),xe.setHours(0,0,0,0),xe}_2digit(j){return("00"+j).slice(-2)}_format(j,L){const J=new Date;return J.setUTCFullYear(L.getFullYear(),L.getMonth(),L.getDate()),J.setUTCHours(L.getHours(),L.getMinutes(),L.getSeconds(),L.getMilliseconds()),j.format(J)}}return(B=S).\u0275fac=function(j){return new(j||B)(o.LFG(wn,8),o.LFG(W.t4))},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac}),S})();const Be={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Fe=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[{provide:Xe,useClass:Ce}]}),S})(),ke=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({providers:[{provide:Ze,useValue:Be}],imports:[Fe]}),S})(),Nt=(()=>{var B;class S{isErrorState(j,L){return!!(j&&j.invalid&&(j.touched||L&&L.submitted))}}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),S})();class Xt{constructor(S,H,j,L=!1){this._renderer=S,this.element=H,this.config=j,this._animationForciblyDisabledThroughCss=L,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const an=(0,W.i$)({passive:!0,capture:!0});class Sn{constructor(){this._events=new Map,this._delegateEventHandler=S=>{const H=(0,W.sA)(S);H&&this._events.get(S.type)?.forEach((j,L)=>{(L===H||L.contains(H))&&j.forEach(J=>J.handleEvent(S))})}}addHandler(S,H,j,L){const J=this._events.get(H);if(J){const xe=J.get(j);xe?xe.add(L):J.set(j,new Set([L]))}else this._events.set(H,new Map([[j,new Set([L])]])),S.runOutsideAngular(()=>{document.addEventListener(H,this._delegateEventHandler,an)})}removeHandler(S,H,j){const L=this._events.get(S);if(!L)return;const J=L.get(H);J&&(J.delete(j),0===J.size&&L.delete(H),0===L.size&&(this._events.delete(S),document.removeEventListener(S,this._delegateEventHandler,an)))}}const zt={enterDuration:225,exitDuration:150},xn=(0,W.i$)({passive:!0,capture:!0}),Hn=["mousedown","touchstart"],Un=["mouseup","mouseleave","touchend","touchcancel"];class ze{constructor(S,H,j,L){this._target=S,this._ngZone=H,this._platform=L,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,L.isBrowser&&(this._containerElement=(0,re.fI)(j))}fadeInRipple(S,H,j={}){const L=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),J={...zt,...j.animation};j.centered&&(S=L.left+L.width/2,H=L.top+L.height/2);const xe=j.radius||function G(B,S,H){const j=Math.max(Math.abs(B-H.left),Math.abs(B-H.right)),L=Math.max(Math.abs(S-H.top),Math.abs(S-H.bottom));return Math.sqrt(j*j+L*L)}(S,H,L),ce=S-L.left,Se=H-L.top,at=J.enterDuration,de=document.createElement("div");de.classList.add("mat-ripple-element"),de.style.left=ce-xe+"px",de.style.top=Se-xe+"px",de.style.height=2*xe+"px",de.style.width=2*xe+"px",null!=j.color&&(de.style.backgroundColor=j.color),de.style.transitionDuration=`${at}ms`,this._containerElement.appendChild(de);const se=window.getComputedStyle(de),le=se.transitionDuration,Ee="none"===se.transitionProperty||"0s"===le||"0s, 0s"===le||0===L.width&&0===L.height,We=new Xt(this,de,j,Ee);de.style.transform="scale3d(1, 1, 1)",We.state=0,j.persistent||(this._mostRecentTransientRipple=We);let bt=null;return!Ee&&(at||J.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ht=()=>this._finishRippleTransition(We),Ut=()=>this._destroyRipple(We);de.addEventListener("transitionend",ht),de.addEventListener("transitioncancel",Ut),bt={onTransitionEnd:ht,onTransitionCancel:Ut}}),this._activeRipples.set(We,bt),(Ee||!at)&&this._finishRippleTransition(We),We}fadeOutRipple(S){if(2===S.state||3===S.state)return;const H=S.element,j={...zt,...S.config.animation};H.style.transitionDuration=`${j.exitDuration}ms`,H.style.opacity="0",S.state=2,(S._animationForciblyDisabledThroughCss||!j.exitDuration)&&this._finishRippleTransition(S)}fadeOutAll(){this._getActiveRipples().forEach(S=>S.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(S=>{S.config.persistent||S.fadeOut()})}setupTriggerEvents(S){const H=(0,re.fI)(S);!this._platform.isBrowser||!H||H===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=H,Hn.forEach(j=>{ze._eventManager.addHandler(this._ngZone,j,H,this)}))}handleEvent(S){"mousedown"===S.type?this._onMousedown(S):"touchstart"===S.type?this._onTouchStart(S):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Un.forEach(H=>{this._triggerElement.addEventListener(H,this,xn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(S){0===S.state?this._startFadeOutTransition(S):2===S.state&&this._destroyRipple(S)}_startFadeOutTransition(S){const H=S===this._mostRecentTransientRipple,{persistent:j}=S.config;S.state=1,!j&&(!H||!this._isPointerDown)&&S.fadeOut()}_destroyRipple(S){const H=this._activeRipples.get(S)??null;this._activeRipples.delete(S),this._activeRipples.size||(this._containerRect=null),S===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),S.state=3,null!==H&&(S.element.removeEventListener("transitionend",H.onTransitionEnd),S.element.removeEventListener("transitioncancel",H.onTransitionCancel)),S.element.remove()}_onMousedown(S){const H=(0,l.X6)(S),j=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!H&&!j&&(this._isPointerDown=!0,this.fadeInRipple(S.clientX,S.clientY,this._target.rippleConfig))}_onTouchStart(S){if(!this._target.rippleDisabled&&!(0,l.yG)(S)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const H=S.changedTouches;if(H)for(let j=0;j<H.length;j++)this.fadeInRipple(H[j].clientX,H[j].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(S=>{!S.config.persistent&&(1===S.state||S.config.terminateOnPointerUp&&0===S.state)&&S.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const S=this._triggerElement;S&&(Hn.forEach(H=>ze._eventManager.removeHandler(H,S,this)),this._pointerUpEventsRegistered&&Un.forEach(H=>S.removeEventListener(H,this,xn)))}}ze._eventManager=new Sn;const Ie=new o.OlP("mat-ripple-global-options");let pe=(()=>{var B;class S{get disabled(){return this._disabled}set disabled(j){j&&this.fadeOutAllNonPersistent(),this._disabled=j,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(j){this._trigger=j,this._setupTriggerEventsIfEnabled()}constructor(j,L,J,xe,ce){this._elementRef=j,this._animationMode=ce,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=xe||{},this._rippleRenderer=new ze(this,L,j,J)}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(j,L=0,J){return"number"==typeof j?this._rippleRenderer.fadeInRipple(j,L,{...this.rippleConfig,...J}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...j})}}return(B=S).\u0275fac=function(j){return new(j||B)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(W.t4),o.Y36(Ie,8),o.Y36(o.QbO,8))},B.\u0275dir=o.lG2({type:B,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(j,L){2&j&&o.ekj("mat-ripple-unbounded",L.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"]}),S})(),nt=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[rt,rt]}),S})(),Te=(()=>{var B;class S{constructor(j){this._animationMode=j,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(B=S).\u0275fac=function(j){return new(j||B)(o.Y36(o.QbO,8))},B.\u0275cmp=o.Xpm({type:B,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(j,L){2&j&&o.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===L.state)("mat-pseudo-checkbox-checked","checked"===L.state)("mat-pseudo-checkbox-disabled",L.disabled)("mat-pseudo-checkbox-minimal","minimal"===L.appearance)("mat-pseudo-checkbox-full","full"===L.appearance)("_mat-animation-noopable","NoopAnimations"===L._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(j,L){},styles:['.mat-pseudo-checkbox{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-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-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),S})(),Ke=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[rt]}),S})();const dt=new o.OlP("MAT_OPTION_PARENT_COMPONENT"),vt=new o.OlP("MatOptgroup");let y=0;class P{constructor(S,H=!1){this.source=S,this.isUserInput=H}}let ee=(()=>{var B;class S{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(j){this._disabled=(0,re.Ig)(j)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(j,L,J,xe){this._element=j,this._changeDetectorRef=L,this._parent=J,this.group=xe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+y++,this.onSelectionChange=new o.vpe,this._stateChanges=new ie.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(j=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),j&&this._emitSelectionChangeEvent())}deselect(j=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),j&&this._emitSelectionChangeEvent())}focus(j,L){const J=this._getHostElement();"function"==typeof J.focus&&J.focus(L)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(j){(j.keyCode===V.K5||j.keyCode===V.L_)&&!(0,V.Vb)(j)&&(this._selectViaInteraction(),j.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const j=this.viewValue;j!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=j)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(j=!1){this.onSelectionChange.emit(new P(this,j))}}return(B=S).\u0275fac=function(j){o.$Z()},B.\u0275dir=o.lG2({type:B,viewQuery:function(j,L){if(1&j&&o.Gf(He,7),2&j){let J;o.iGM(J=o.CRH())&&(L._text=J.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),S})(),Ae=(()=>{var B;class S extends ee{constructor(j,L,J,xe){super(j,L,J,xe)}}return(B=S).\u0275fac=function(j){return new(j||B)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(dt,8),o.Y36(vt,8))},B.\u0275cmp=o.Xpm({type:B,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(j,L){1&j&&o.NdJ("click",function(){return L._selectViaInteraction()})("keydown",function(xe){return L._handleKeydown(xe)}),2&j&&(o.Ikx("id",L.id),o.uIk("aria-selected",L.selected)("aria-disabled",L.disabled.toString()),o.ekj("mdc-list-item--selected",L.selected)("mat-mdc-option-multiple",L.multiple)("mat-mdc-option-active",L.active)("mdc-list-item--disabled",L.disabled))},exportAs:["matOption"],features:[o.qOj],ngContentSelectors:ut,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(j,L){1&j&&(o.F$t(Ye),o.YNc(0,tt,1,2,"mat-pseudo-checkbox",0),o.Hsn(1),o.TgZ(2,"span",1,2),o.Hsn(4,1),o.qZA(),o.YNc(5,$e,1,1,"mat-pseudo-checkbox",3),o.YNc(6,X,2,1,"span",4),o._UZ(7,"div",5)),2&j&&(o.Q6J("ngIf",L.multiple),o.xp6(5),o.Q6J("ngIf",!L.multiple&&L.selected&&!L.hideSingleSelectionIndicator),o.xp6(1),o.Q6J("ngIf",L.group&&L.group._inert),o.xp6(1),o.Q6J("matRippleTrigger",L._getHostElement())("matRippleDisabled",L.disabled||L.disableRipple))},dependencies:[pe,Y.O5,Te],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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);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:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.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-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.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;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.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 .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),S})();function it(B,S,H){if(H.length){let j=S.toArray(),L=H.toArray(),J=0;for(let xe=0;xe<B+1;xe++)j[xe].group&&j[xe].group===L[J]&&J++;return J}return 0}function St(B,S,H,j){return B<H?B:B+S>H+j?Math.max(0,B-j+S):H}let Et=(()=>{var B;class S{}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275mod=o.oAB({type:B}),B.\u0275inj=o.cJS({imports:[nt,Y.ez,rt,Ke]}),S})();const Pt={capture:!0},Ht=["focus","click","mouseenter","touchstart"],Yt="mat-ripple-loader-uninitialized",cn="mat-ripple-loader-class-name",Oe="mat-ripple-loader-centered",z="mat-ripple-loader-disabled";let U=(()=>{var B;class S{constructor(){this._document=(0,o.f3M)(Y.K0,{optional:!0}),this._animationMode=(0,o.f3M)(o.QbO,{optional:!0}),this._globalRippleOptions=(0,o.f3M)(Ie,{optional:!0}),this._platform=(0,o.f3M)(W.t4),this._ngZone=(0,o.f3M)(o.R0b),this._onInteraction=j=>{if(!(j.target instanceof HTMLElement))return;const J=j.target.closest(`[${Yt}]`);J&&this.createRipple(J)},this._ngZone.runOutsideAngular(()=>{for(const j of Ht)this._document?.addEventListener(j,this._onInteraction,Pt)})}ngOnDestroy(){for(const j of Ht)this._document?.removeEventListener(j,this._onInteraction,Pt)}configureRipple(j,L){j.setAttribute(Yt,""),(L.className||!j.hasAttribute(cn))&&j.setAttribute(cn,L.className||""),L.centered&&j.setAttribute(Oe,""),L.disabled&&j.setAttribute(z,"")}getRipple(j){return j.matRipple?j.matRipple:this.createRipple(j)}setDisabled(j,L){const J=j.matRipple;J?J.disabled=L:L?j.setAttribute(z,""):j.removeAttribute(z)}createRipple(j){if(!this._document)return;j.querySelector(".mat-ripple")?.remove();const L=this._document.createElement("span");L.classList.add("mat-ripple",j.getAttribute(cn)),j.append(L);const J=new pe(new o.SBq(L),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return J._isInitialized=!0,J.trigger=j,J.centered=j.hasAttribute(Oe),J.disabled=j.hasAttribute(z),this.attachRipple(j,J),J}attachRipple(j,L){j.removeAttribute(Yt),j.matRipple=L}}return(B=S).\u0275fac=function(j){return new(j||B)},B.\u0275prov=o.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),S})()},7700:(wt,Pe,C)=>{C.d(Pe,{WI:()=>Nt,uw:()=>zt,Is:()=>Ie,so:()=>ke});var o=C(3651),l=C(6814),R=C(5879),K=C(7849),Y=C(2831),W=C(8484),re=C(6028),ue=C(8645),ie=C(4911),V=C(2096),Q=C(9388),be=C(7921);function Ve(Te,Ke){}class He{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,this.closeOnOverlayDetachments=!0}}let $e=(()=>{var Te;class Ke extends W.en{constructor(je,Je,pt,vt,Re,y,P,ee){super(),this._elementRef=je,this._focusTrapFactory=Je,this._config=vt,this._interactivityChecker=Re,this._ngZone=y,this._overlayRef=P,this._focusMonitor=ee,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Ae=>{this._portalOutlet.hasAttached();const it=this._portalOutlet.attachDomPortal(Ae);return this._contentAttached(),it},this._document=pt,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(je){this._portalOutlet.hasAttached();const Je=this._portalOutlet.attachComponentPortal(je);return this._contentAttached(),Je}attachTemplatePortal(je){this._portalOutlet.hasAttached();const Je=this._portalOutlet.attachTemplatePortal(je);return this._contentAttached(),Je}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(je,Je){this._interactivityChecker.isFocusable(je)||(je.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const pt=()=>{je.removeEventListener("blur",pt),je.removeEventListener("mousedown",pt),je.removeAttribute("tabindex")};je.addEventListener("blur",pt),je.addEventListener("mousedown",pt)})),je.focus(Je)}_focusByCssSelector(je,Je){let pt=this._elementRef.nativeElement.querySelector(je);pt&&this._forceFocus(pt,Je)}_trapFocus(){const je=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||je.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Je=>{Je||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 je=this._config.restoreFocus;let Je=null;if("string"==typeof je?Je=this._document.querySelector(je):"boolean"==typeof je?Je=je?this._elementFocusedBeforeDialogWasOpened:null:je&&(Je=je),this._config.restoreFocus&&Je&&"function"==typeof Je.focus){const pt=(0,Y.ht)(),vt=this._elementRef.nativeElement;(!pt||pt===this._document.body||pt===vt||vt.contains(pt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Je,this._closeInteractionType),this._closeInteractionType=null):Je.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const je=this._elementRef.nativeElement,Je=(0,Y.ht)();return je===Je||je.contains(Je)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Y.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.Y36(R.SBq),R.Y36(K.qV),R.Y36(l.K0,8),R.Y36(He),R.Y36(K.ic),R.Y36(R.R0b),R.Y36(o.Iu),R.Y36(K.tE))},Te.\u0275cmp=R.Xpm({type:Te,selectors:[["cdk-dialog-container"]],viewQuery:function(je,Je){if(1&je&&R.Gf(W.Pl,7),2&je){let pt;R.iGM(pt=R.CRH())&&(Je._portalOutlet=pt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(je,Je){2&je&&R.uIk("id",Je._config.id||null)("role",Je._config.role)("aria-modal",Je._config.ariaModal)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledByQueue[0])("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null)},features:[R.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(je,Je){1&je&&R.YNc(0,Ve,0,0,"ng-template",0)},dependencies:[W.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Ke})();class X{constructor(Ke,dt){this.overlayRef=Ke,this.config=dt,this.closed=new ue.x,this.disableClose=dt.disableClose,this.backdropClick=Ke.backdropClick(),this.keydownEvents=Ke.keydownEvents(),this.outsidePointerEvents=Ke.outsidePointerEvents(),this.id=dt.id,this.keydownEvents.subscribe(je=>{je.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(je)&&(je.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ke.detachments().subscribe(()=>{!1!==dt.closeOnOverlayDetachments&&this.close()})}close(Ke,dt){if(this.containerInstance){const je=this.closed;this.containerInstance._closeInteractionType=dt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),je.next(Ke),je.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ke="",dt=""){return this.overlayRef.updateSize({width:Ke,height:dt}),this}addPanelClass(Ke){return this.overlayRef.addPanelClass(Ke),this}removePanelClass(Ke){return this.overlayRef.removePanelClass(Ke),this}}const Ye=new R.OlP("DialogScrollStrategy"),ut=new R.OlP("DialogData"),Ne=new R.OlP("DefaultDialogConfig"),me={provide:Ye,deps:[o.aV],useFactory:function q(Te){return()=>Te.scrollStrategies.block()}};let ve=0,ye=(()=>{var Te;class Ke{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(je,Je,pt,vt,Re,y){this._overlay=je,this._injector=Je,this._defaultOptions=pt,this._parentDialog=vt,this._overlayContainer=Re,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue.x,this._afterOpenedAtThisLevel=new ue.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ie.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,be.O)(void 0))),this._scrollStrategy=y}open(je,Je){(Je={...this._defaultOptions||new He,...Je}).id=Je.id||"cdk-dialog-"+ve++,Je.id&&this.getDialogById(Je.id);const vt=this._getOverlayConfig(Je),Re=this._overlay.create(vt),y=new X(Re,Je),P=this._attachContainer(Re,y,Je);return y.containerInstance=P,this._attachDialogContent(je,y,P,Je),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(y),y.closed.subscribe(()=>this._removeOpenDialog(y,!0)),this.afterOpened.next(y),y}closeAll(){rt(this.openDialogs,je=>je.close())}getDialogById(je){return this.openDialogs.find(Je=>Je.id===je)}ngOnDestroy(){rt(this._openDialogsAtThisLevel,je=>{!1===je.config.closeOnDestroy&&this._removeOpenDialog(je,!1)}),rt(this._openDialogsAtThisLevel,je=>je.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(je){const Je=new o.X_({positionStrategy:je.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:je.scrollStrategy||this._scrollStrategy(),panelClass:je.panelClass,hasBackdrop:je.hasBackdrop,direction:je.direction,minWidth:je.minWidth,minHeight:je.minHeight,maxWidth:je.maxWidth,maxHeight:je.maxHeight,width:je.width,height:je.height,disposeOnNavigation:je.closeOnNavigation});return je.backdropClass&&(Je.backdropClass=je.backdropClass),Je}_attachContainer(je,Je,pt){const vt=pt.injector||pt.viewContainerRef?.injector,Re=[{provide:He,useValue:pt},{provide:X,useValue:Je},{provide:o.Iu,useValue:je}];let y;pt.container?"function"==typeof pt.container?y=pt.container:(y=pt.container.type,Re.push(...pt.container.providers(pt))):y=$e;const P=new W.C5(y,pt.viewContainerRef,R.zs3.create({parent:vt||this._injector,providers:Re}),pt.componentFactoryResolver);return je.attach(P).instance}_attachDialogContent(je,Je,pt,vt){if(je instanceof R.Rgc){const Re=this._createInjector(vt,Je,pt,void 0);let y={$implicit:vt.data,dialogRef:Je};vt.templateContext&&(y={...y,..."function"==typeof vt.templateContext?vt.templateContext():vt.templateContext}),pt.attachTemplatePortal(new W.UE(je,null,y,Re))}else{const Re=this._createInjector(vt,Je,pt,this._injector),y=pt.attachComponentPortal(new W.C5(je,vt.viewContainerRef,Re,vt.componentFactoryResolver));Je.componentRef=y,Je.componentInstance=y.instance}}_createInjector(je,Je,pt,vt){const Re=je.injector||je.viewContainerRef?.injector,y=[{provide:ut,useValue:je.data},{provide:X,useValue:Je}];return je.providers&&("function"==typeof je.providers?y.push(...je.providers(Je,je,pt)):y.push(...je.providers)),je.direction&&(!Re||!Re.get(Q.Is,null,{optional:!0}))&&y.push({provide:Q.Is,useValue:{value:je.direction,change:(0,V.of)()}}),R.zs3.create({parent:Re||vt,providers:y})}_removeOpenDialog(je,Je){const pt=this.openDialogs.indexOf(je);pt>-1&&(this.openDialogs.splice(pt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((vt,Re)=>{vt?Re.setAttribute("aria-hidden",vt):Re.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Je&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const je=this._overlayContainer.getContainerElement();if(je.parentElement){const Je=je.parentElement.children;for(let pt=Je.length-1;pt>-1;pt--){const vt=Je[pt];vt!==je&&"SCRIPT"!==vt.nodeName&&"STYLE"!==vt.nodeName&&!vt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(vt,vt.getAttribute("aria-hidden")),vt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const je=this._parentDialog;return je?je._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.LFG(o.aV),R.LFG(R.zs3),R.LFG(Ne,8),R.LFG(Te,12),R.LFG(o.Xj),R.LFG(Ye))},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac}),Ke})();function rt(Te,Ke){let dt=Te.length;for(;dt--;)Ke(Te[dt])}let Qe=(()=>{var Te;class Ke{}return(Te=Ke).\u0275fac=function(je){return new(je||Te)},Te.\u0275mod=R.oAB({type:Te}),Te.\u0275inj=R.cJS({providers:[ye,me],imports:[o.U8,W.eL,K.rt,W.eL]}),Ke})();var ft=C(2495),xt=C(3019),Bt=C(2181),Rt=C(8180),Qt=C(3680);function sn(Te,Ke){}C(6825);class Cn{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 wn="mdc-dialog--open",Ge="mdc-dialog--opening",Xe="mdc-dialog--closing";let Me=(()=>{var Te;class Ke extends $e{constructor(je,Je,pt,vt,Re,y,P,ee){super(je,Je,pt,vt,Re,y,P,ee),this._animationStateChanged=new R.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(je){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:je})}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.Y36(R.SBq),R.Y36(K.qV),R.Y36(l.K0,8),R.Y36(Cn),R.Y36(K.ic),R.Y36(R.R0b),R.Y36(o.Iu),R.Y36(K.tE))},Te.\u0275cmp=R.Xpm({type:Te,selectors:[["ng-component"]],features:[R.qOj],decls:0,vars:0,template:function(je,Je){},encapsulation:2}),Ke})();const Ce="--mat-dialog-transition-duration";function Be(Te){return null==Te?null:"number"==typeof Te?Te:Te.endsWith("ms")?(0,ft.su)(Te.substring(0,Te.length-2)):Te.endsWith("s")?1e3*(0,ft.su)(Te.substring(0,Te.length-1)):"0"===Te?0:null}let Fe=(()=>{var Te;class Ke extends Me{constructor(je,Je,pt,vt,Re,y,P,ee,Ae){super(je,Je,pt,vt,Re,y,P,Ae),this._animationMode=ee,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Be(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?Be(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ce,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ge,wn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(wn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(wn),this._animationsEnabled?(this._hostElement.style.setProperty(Ce,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Xe)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(Ge,Xe)}_waitForAnimationToComplete(je,Je){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Je,je)}_requestAnimationFrame(je){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(je):je()})}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.Y36(R.SBq),R.Y36(K.qV),R.Y36(l.K0,8),R.Y36(Cn),R.Y36(K.ic),R.Y36(R.R0b),R.Y36(o.Iu),R.Y36(R.QbO,8),R.Y36(K.tE))},Te.\u0275cmp=R.Xpm({type:Te,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(je,Je){2&je&&(R.Ikx("id",Je._config.id),R.uIk("aria-modal",Je._config.ariaModal)("role",Je._config.role)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledByQueue[0])("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null),R.ekj("_mat-animation-noopable",!Je._animationsEnabled))},features:[R.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(je,Je){1&je&&(R.TgZ(0,"div",0)(1,"div",1),R.YNc(2,sn,0,0,"ng-template",2),R.qZA()())},dependencies:[W.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;outline:0}.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__container .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{--mdc-dialog-container-elevation-shadow: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);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);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, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.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}),Ke})();class ke{constructor(Ke,dt,je){this._ref=Ke,this._containerInstance=je,this._afterOpened=new ue.x,this._beforeClosed=new ue.x,this._state=0,this.disableClose=dt.disableClose,this.id=Ke.id,je._animationStateChanged.pipe((0,Bt.h)(Je=>"opened"===Je.state),(0,Rt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),je._animationStateChanged.pipe((0,Bt.h)(Je=>"closed"===Je.state),(0,Rt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ke.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,xt.T)(this.backdropClick(),this.keydownEvents().pipe((0,Bt.h)(Je=>Je.keyCode===re.hY&&!this.disableClose&&!(0,re.Vb)(Je)))).subscribe(Je=>{this.disableClose||(Je.preventDefault(),function Ct(Te,Ke,dt){Te._closeInteractionType=Ke,Te.close(dt)}(this,"keydown"===Je.type?"keyboard":"mouse"))})}close(Ke){this._result=Ke,this._containerInstance._animationStateChanged.pipe((0,Bt.h)(dt=>"closing"===dt.state),(0,Rt.q)(1)).subscribe(dt=>{this._beforeClosed.next(Ke),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),dt.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(Ke){let dt=this._ref.config.positionStrategy;return Ke&&(Ke.left||Ke.right)?Ke.left?dt.left(Ke.left):dt.right(Ke.right):dt.centerHorizontally(),Ke&&(Ke.top||Ke.bottom)?Ke.top?dt.top(Ke.top):dt.bottom(Ke.bottom):dt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ke="",dt=""){return this._ref.updateSize(Ke,dt),this}addPanelClass(Ke){return this._ref.addPanelClass(Ke),this}removePanelClass(Ke){return this._ref.removePanelClass(Ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Nt=new R.OlP("MatMdcDialogData"),jt=new R.OlP("mat-mdc-dialog-default-options"),Kt=new R.OlP("mat-mdc-dialog-scroll-strategy"),rn={provide:Kt,deps:[o.aV],useFactory:function nn(Te){return()=>Te.scrollStrategies.block()}};let an=0,Sn=(()=>{var Te;class Ke{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const je=this._parentDialog;return je?je._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(je,Je,pt,vt,Re,y,P,ee,Ae,it){this._overlay=je,this._defaultOptions=pt,this._parentDialog=vt,this._dialogRefConstructor=P,this._dialogContainerType=ee,this._dialogDataToken=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue.x,this._afterOpenedAtThisLevel=new ue.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=Cn,this.afterAllClosed=(0,ie.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,be.O)(void 0))),this._scrollStrategy=y,this._dialog=Je.get(ye)}open(je,Je){let pt;(Je={...this._defaultOptions||new Cn,...Je}).id=Je.id||`${this._idPrefix}${an++}`,Je.scrollStrategy=Je.scrollStrategy||this._scrollStrategy();const vt=this._dialog.open(je,{...Je,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Je},{provide:He,useValue:Je}]},templateContext:()=>({dialogRef:pt}),providers:(Re,y,P)=>(pt=new this._dialogRefConstructor(Re,Je,P),pt.updatePosition(Je?.position),[{provide:this._dialogContainerType,useValue:P},{provide:this._dialogDataToken,useValue:y.data},{provide:this._dialogRefConstructor,useValue:pt}])});return pt.componentRef=vt.componentRef,pt.componentInstance=vt.componentInstance,this.openDialogs.push(pt),this.afterOpened.next(pt),pt.afterClosed().subscribe(()=>{const Re=this.openDialogs.indexOf(pt);Re>-1&&(this.openDialogs.splice(Re,1),this.openDialogs.length||this._getAfterAllClosed().next())}),pt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(je){return this.openDialogs.find(Je=>Je.id===je)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(je){let Je=je.length;for(;Je--;)je[Je].close()}}return(Te=Ke).\u0275fac=function(je){R.$Z()},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac}),Ke})(),zt=(()=>{var Te;class Ke extends Sn{constructor(je,Je,pt,vt,Re,y,P,ee){super(je,Je,vt,y,P,Re,ke,Fe,Nt,ee),this._idPrefix="mat-mdc-dialog-"}}return(Te=Ke).\u0275fac=function(je){return new(je||Te)(R.LFG(o.aV),R.LFG(R.zs3),R.LFG(l.Ye,8),R.LFG(jt,8),R.LFG(Kt),R.LFG(Te,12),R.LFG(o.Xj),R.LFG(R.QbO,8))},Te.\u0275prov=R.Yz7({token:Te,factory:Te.\u0275fac}),Ke})(),Ie=(()=>{var Te;class Ke{}return(Te=Ke).\u0275fac=function(je){return new(je||Te)},Te.\u0275mod=R.oAB({type:Te}),Te.\u0275inj=R.cJS({providers:[zt,rn],imports:[Qe,o.U8,W.eL,Qt.BQ,Qt.BQ]}),Ke})()},6593:(wt,Pe,C)=>{C.d(Pe,{Dx:()=>xn,H7:()=>P,b2:()=>Xt,q6:()=>jt,se:()=>Qe});var o=C(5879),l=C(6814);class R extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class K extends R{static makeCurrent(){(0,l.HT)(new K)}onAndCancel(U,B,S){return U.addEventListener(B,S),()=>{U.removeEventListener(B,S)}}dispatchEvent(U,B){U.dispatchEvent(B)}remove(U){U.parentNode&&U.parentNode.removeChild(U)}createElement(U,B){return(B=B||this.getDefaultDocument()).createElement(U)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(U){return U.nodeType===Node.ELEMENT_NODE}isShadowRoot(U){return U instanceof DocumentFragment}getGlobalEventTarget(U,B){return"window"===B?window:"document"===B?U:"body"===B?U.body:null}getBaseHref(U){const B=function W(){return Y=Y||document.querySelector("base"),Y?Y.getAttribute("href"):null}();return null==B?null:function ue(z){re=re||document.createElement("a"),re.setAttribute("href",z);const U=re.pathname;return"/"===U.charAt(0)?U:`/${U}`}(B)}resetBaseElement(){Y=null}getUserAgent(){return window.navigator.userAgent}getCookie(U){return(0,l.Mx)(document.cookie,U)}}let re,Y=null,V=(()=>{var z;class U{build(){return new XMLHttpRequest}}return(z=U).\u0275fac=function(S){return new(S||z)},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const Q=new o.OlP("EventManagerPlugins");let be=(()=>{var z;class U{constructor(S,H){this._zone=H,this._eventNameToPlugin=new Map,S.forEach(j=>{j.manager=this}),this._plugins=S.slice().reverse()}addEventListener(S,H,j){return this._findPluginFor(H).addEventListener(S,H,j)}getZone(){return this._zone}_findPluginFor(S){let H=this._eventNameToPlugin.get(S);if(H)return H;if(H=this._plugins.find(L=>L.supports(S)),!H)throw new o.vHH(5101,!1);return this._eventNameToPlugin.set(S,H),H}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(Q),o.LFG(o.R0b))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();class Ve{constructor(U){this._doc=U}}const He="ng-app-id";let tt=(()=>{var z;class U{constructor(S,H,j,L={}){this.doc=S,this.appId=H,this.nonce=j,this.platformId=L,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.PM)(L),this.resetHostNodes()}addStyles(S){for(const H of S)1===this.changeUsageCount(H,1)&&this.onStyleAdded(H)}removeStyles(S){for(const H of S)this.changeUsageCount(H,-1)<=0&&this.onStyleRemoved(H)}ngOnDestroy(){const S=this.styleNodesInDOM;S&&(S.forEach(H=>H.remove()),S.clear());for(const H of this.getAllStyles())this.onStyleRemoved(H);this.resetHostNodes()}addHost(S){this.hostNodes.add(S);for(const H of this.getAllStyles())this.addStyleToHost(S,H)}removeHost(S){this.hostNodes.delete(S)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(S){for(const H of this.hostNodes)this.addStyleToHost(H,S)}onStyleRemoved(S){const H=this.styleRef;H.get(S)?.elements?.forEach(j=>j.remove()),H.delete(S)}collectServerRenderedStyles(){const S=this.doc.head?.querySelectorAll(`style[${He}="${this.appId}"]`);if(S?.length){const H=new Map;return S.forEach(j=>{null!=j.textContent&&H.set(j.textContent,j)}),H}return null}changeUsageCount(S,H){const j=this.styleRef;if(j.has(S)){const L=j.get(S);return L.usage+=H,L.usage}return j.set(S,{usage:H,elements:[]}),H}getStyleElement(S,H){const j=this.styleNodesInDOM,L=j?.get(H);if(L?.parentNode===S)return j.delete(H),L.removeAttribute(He),L;{const J=this.doc.createElement("style");return this.nonce&&J.setAttribute("nonce",this.nonce),J.textContent=H,this.platformIsServer&&J.setAttribute(He,this.appId),J}}addStyleToHost(S,H){const j=this.getStyleElement(S,H);S.appendChild(j);const L=this.styleRef,J=L.get(H)?.elements;J?J.push(j):L.set(H,{elements:[j],usage:1})}resetHostNodes(){const S=this.hostNodes;S.clear(),S.add(this.doc.head)}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0),o.LFG(o.AFp),o.LFG(o.Ojb,8),o.LFG(o.Lbi))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const $e={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/"},X=/%COMP%/g,me=new o.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function rt(z,U){return U.map(B=>B.replace(X,z))}let Qe=(()=>{var z;class U{constructor(S,H,j,L,J,xe,ce,Se=null){this.eventManager=S,this.sharedStylesHost=H,this.appId=j,this.removeStylesOnCompDestroy=L,this.doc=J,this.platformId=xe,this.ngZone=ce,this.nonce=Se,this.rendererByCompId=new Map,this.platformIsServer=(0,l.PM)(xe),this.defaultRenderer=new ft(S,J,ce,this.platformIsServer)}createRenderer(S,H){if(!S||!H)return this.defaultRenderer;this.platformIsServer&&H.encapsulation===o.ifc.ShadowDom&&(H={...H,encapsulation:o.ifc.Emulated});const j=this.getOrCreateRenderer(S,H);return j instanceof sn?j.applyToHost(S):j instanceof qt&&j.applyStyles(),j}getOrCreateRenderer(S,H){const j=this.rendererByCompId;let L=j.get(H.id);if(!L){const J=this.doc,xe=this.ngZone,ce=this.eventManager,Se=this.sharedStylesHost,at=this.removeStylesOnCompDestroy,de=this.platformIsServer;switch(H.encapsulation){case o.ifc.Emulated:L=new sn(ce,Se,H,this.appId,at,J,xe,de);break;case o.ifc.ShadowDom:return new Qt(ce,Se,S,H,J,xe,this.nonce,de);default:L=new qt(ce,Se,H,at,J,xe,de)}j.set(H.id,L)}return L}ngOnDestroy(){this.rendererByCompId.clear()}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(be),o.LFG(tt),o.LFG(o.AFp),o.LFG(me),o.LFG(l.K0),o.LFG(o.Lbi),o.LFG(o.R0b),o.LFG(o.Ojb))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();class ft{constructor(U,B,S,H){this.eventManager=U,this.doc=B,this.ngZone=S,this.platformIsServer=H,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(U,B){return B?this.doc.createElementNS($e[B]||B,U):this.doc.createElement(U)}createComment(U){return this.doc.createComment(U)}createText(U){return this.doc.createTextNode(U)}appendChild(U,B){(Rt(U)?U.content:U).appendChild(B)}insertBefore(U,B,S){U&&(Rt(U)?U.content:U).insertBefore(B,S)}removeChild(U,B){U&&U.removeChild(B)}selectRootElement(U,B){let S="string"==typeof U?this.doc.querySelector(U):U;if(!S)throw new o.vHH(-5104,!1);return B||(S.textContent=""),S}parentNode(U){return U.parentNode}nextSibling(U){return U.nextSibling}setAttribute(U,B,S,H){if(H){B=H+":"+B;const j=$e[H];j?U.setAttributeNS(j,B,S):U.setAttribute(B,S)}else U.setAttribute(B,S)}removeAttribute(U,B,S){if(S){const H=$e[S];H?U.removeAttributeNS(H,B):U.removeAttribute(`${S}:${B}`)}else U.removeAttribute(B)}addClass(U,B){U.classList.add(B)}removeClass(U,B){U.classList.remove(B)}setStyle(U,B,S,H){H&(o.JOm.DashCase|o.JOm.Important)?U.style.setProperty(B,S,H&o.JOm.Important?"important":""):U.style[B]=S}removeStyle(U,B,S){S&o.JOm.DashCase?U.style.removeProperty(B):U.style[B]=""}setProperty(U,B,S){U[B]=S}setValue(U,B){U.nodeValue=B}listen(U,B,S){if("string"==typeof U&&!(U=(0,l.q)().getGlobalEventTarget(this.doc,U)))throw new Error(`Unsupported event target ${U} for event ${B}`);return this.eventManager.addEventListener(U,B,this.decoratePreventDefault(S))}decoratePreventDefault(U){return B=>{if("__ngUnwrap__"===B)return U;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>U(B)):U(B))&&B.preventDefault()}}}function Rt(z){return"TEMPLATE"===z.tagName&&void 0!==z.content}class Qt extends ft{constructor(U,B,S,H,j,L,J,xe){super(U,j,L,xe),this.sharedStylesHost=B,this.hostEl=S,this.shadowRoot=S.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ce=rt(H.id,H.styles);for(const Se of ce){const at=document.createElement("style");J&&at.setAttribute("nonce",J),at.textContent=Se,this.shadowRoot.appendChild(at)}}nodeOrShadowRoot(U){return U===this.hostEl?this.shadowRoot:U}appendChild(U,B){return super.appendChild(this.nodeOrShadowRoot(U),B)}insertBefore(U,B,S){return super.insertBefore(this.nodeOrShadowRoot(U),B,S)}removeChild(U,B){return super.removeChild(this.nodeOrShadowRoot(U),B)}parentNode(U){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(U)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class qt extends ft{constructor(U,B,S,H,j,L,J,xe){super(U,j,L,J),this.sharedStylesHost=B,this.removeStylesOnCompDestroy=H,this.styles=xe?rt(xe,S.styles):S.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class sn extends qt{constructor(U,B,S,H,j,L,J,xe){const ce=H+"-"+S.id;super(U,B,S,j,L,J,xe,ce),this.contentAttr=function ve(z){return"_ngcontent-%COMP%".replace(X,z)}(ce),this.hostAttr=function ye(z){return"_nghost-%COMP%".replace(X,z)}(ce)}applyToHost(U){this.applyStyles(),this.setAttribute(U,this.hostAttr,"")}createElement(U,B){const S=super.createElement(U,B);return super.setAttribute(S,this.contentAttr,""),S}}let Cn=(()=>{var z;class U extends Ve{constructor(S){super(S)}supports(S){return!0}addEventListener(S,H,j){return S.addEventListener(H,j,!1),()=>this.removeEventListener(S,H,j)}removeEventListener(S,H,j){return S.removeEventListener(H,j)}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const wn=["alt","control","meta","shift"],Ge={"\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"},Xe={alt:z=>z.altKey,control:z=>z.ctrlKey,meta:z=>z.metaKey,shift:z=>z.shiftKey};let Ze=(()=>{var z;class U extends Ve{constructor(S){super(S)}supports(S){return null!=U.parseEventName(S)}addEventListener(S,H,j){const L=U.parseEventName(H),J=U.eventCallback(L.fullKey,j,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(S,L.domEventName,J))}static parseEventName(S){const H=S.toLowerCase().split("."),j=H.shift();if(0===H.length||"keydown"!==j&&"keyup"!==j)return null;const L=U._normalizeKey(H.pop());let J="",xe=H.indexOf("code");if(xe>-1&&(H.splice(xe,1),J="code."),wn.forEach(Se=>{const at=H.indexOf(Se);at>-1&&(H.splice(at,1),J+=Se+".")}),J+=L,0!=H.length||0===L.length)return null;const ce={};return ce.domEventName=j,ce.fullKey=J,ce}static matchEventFullKeyCode(S,H){let j=Ge[S.key]||S.key,L="";return H.indexOf("code.")>-1&&(j=S.code,L="code."),!(null==j||!j)&&(j=j.toLowerCase()," "===j?j="space":"."===j&&(j="dot"),wn.forEach(J=>{J!==j&&(0,Xe[J])(S)&&(L+=J+".")}),L+=j,L===H)}static eventCallback(S,H,j){return L=>{U.matchEventFullKeyCode(L,S)&&j.runGuarded(()=>H(L))}}static _normalizeKey(S){return"esc"===S?"escape":S}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:z.\u0275fac}),U})();const jt=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:l.bD},{provide:o.g9A,useValue:function Fe(){K.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function Ct(){return(0,o.RDi)(document),document},deps:[]}]),Kt=new o.OlP(""),nn=[{provide:o.rWj,useClass:class ie{addToWindow(U){o.dqk.getAngularTestability=(S,H=!0)=>{const j=U.findTestabilityInTree(S,H);if(null==j)throw new o.vHH(5103,!1);return j},o.dqk.getAllAngularTestabilities=()=>U.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>U.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(S=>{const H=o.dqk.getAllAngularTestabilities();let j=H.length,L=!1;const J=function(xe){L=L||xe,j--,0==j&&S(L)};H.forEach(xe=>{xe.whenStable(J)})})}findTestabilityInTree(U,B,S){return null==B?null:U.getTestability(B)??(S?(0,l.q)().isShadowRoot(B)?this.findTestabilityInTree(U,B.host,!0):this.findTestabilityInTree(U,B.parentElement,!0):null)}},deps:[]},{provide:o.lri,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]}],rn=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function ke(){return new o.qLn},deps:[]},{provide:Q,useClass:Cn,multi:!0,deps:[l.K0,o.R0b,o.Lbi]},{provide:Q,useClass:Ze,multi:!0,deps:[l.K0]},Qe,tt,be,{provide:o.FYo,useExisting:Qe},{provide:l.JF,useClass:V,deps:[]},[]];let Xt=(()=>{var z;class U{constructor(S){}static withServerTransition(S){return{ngModule:U,providers:[{provide:o.AFp,useValue:S.appId}]}}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(Kt,12))},z.\u0275mod=o.oAB({type:z}),z.\u0275inj=o.cJS({providers:[...rn,...nn],imports:[l.ez,o.hGG]}),U})(),xn=(()=>{var z;class U{constructor(S){this._doc=S}getTitle(){return this._doc.title}setTitle(S){this._doc.title=S||""}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:function(S){let H=null;return H=S?new S:function Vn(){return new xn((0,o.LFG)(l.K0))}(),H},providedIn:"root"}),U})();typeof window<"u"&&window;let P=(()=>{var z;class U{}return(z=U).\u0275fac=function(S){return new(S||z)},z.\u0275prov=o.Yz7({token:z,factory:function(S){let H=null;return H=S?new(S||z):o.LFG(Ae),H},providedIn:"root"}),U})(),Ae=(()=>{var z;class U extends P{constructor(S){super(),this._doc=S}sanitize(S,H){if(null==H)return null;switch(S){case o.q3G.NONE:return H;case o.q3G.HTML:return(0,o.qzn)(H,"HTML")?(0,o.z3N)(H):(0,o.EiD)(this._doc,String(H)).toString();case o.q3G.STYLE:return(0,o.qzn)(H,"Style")?(0,o.z3N)(H):H;case o.q3G.SCRIPT:if((0,o.qzn)(H,"Script"))return(0,o.z3N)(H);throw new o.vHH(5200,!1);case o.q3G.URL:return(0,o.qzn)(H,"URL")?(0,o.z3N)(H):(0,o.mCW)(String(H));case o.q3G.RESOURCE_URL:if((0,o.qzn)(H,"ResourceURL"))return(0,o.z3N)(H);throw new o.vHH(5201,!1);default:throw new o.vHH(5202,!1)}}bypassSecurityTrustHtml(S){return(0,o.JVY)(S)}bypassSecurityTrustStyle(S){return(0,o.L6k)(S)}bypassSecurityTrustScript(S){return(0,o.eBb)(S)}bypassSecurityTrustUrl(S){return(0,o.LAX)(S)}bypassSecurityTrustResourceUrl(S){return(0,o.pB0)(S)}}return(z=U).\u0275fac=function(S){return new(S||z)(o.LFG(l.K0))},z.\u0275prov=o.Yz7({token:z,factory:function(S){let H=null;return H=S?new S:function ee(z){return new Ae(z.get(l.K0))}(o.LFG(o.zs3)),H},providedIn:"root"}),U})()},8184:(wt,Pe,C)=>{C.d(Pe,{F0:()=>nr,rH:()=>no,Od:()=>Kr,Bz:()=>La,lC:()=>Ai});var o=C(5879),l=C(5592),R=C(4674),Y=C(2459),W=C(2096),re=C(5619),ue=C(2572),ie=C(6973),V=C(5211),Q=C(4911),be=C(8407),Ve=C(8504),He=C(6232),tt=C(7394),$e=C(9360),X=C(8251);function Ye(){return(0,$e.e)((f,v)=>{let w=null;f._refCount++;const _=(0,X.x)(v,void 0,void 0,void 0,()=>{if(!f||f._refCount<=0||0<--f._refCount)return void(w=null);const I=f._connection,Z=w;w=null,I&&(!Z||I===Z)&&I.unsubscribe(),v.unsubscribe()});f.subscribe(_),_.closed||(w=f.connect())})}class ut extends l.y{constructor(v,w){super(),this.source=v,this.subjectFactory=w,this._subject=null,this._refCount=0,this._connection=null,(0,$e.A)(v)&&(this.lift=v.lift)}_subscribe(v){return this.getSubject().subscribe(v)}getSubject(){const v=this._subject;return(!v||v.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:v}=this;this._subject=this._connection=null,v?.unsubscribe()}connect(){let v=this._connection;if(!v){v=this._connection=new tt.w0;const w=this.getSubject();v.add(this.source.subscribe((0,X.x)(w,void 0,()=>{this._teardown(),w.complete()},_=>{this._teardown(),w.error(_)},()=>this._teardown()))),v.closed&&(this._connection=null,v=tt.w0.EMPTY)}return v}refCount(){return Ye()(this)}}var Ne=C(8645),q=C(6814),me=C(7398),ve=C(4664),ye=C(8180),rt=C(7921),Qe=C(2181),ft=C(1631),xt=C(1374),Bt=C(6328),Rt=C(9397),Qt=C(6306);var Cn=C(3572);function wn(f){return f<=0?()=>He.E:(0,$e.e)((v,w)=>{let _=[];v.subscribe((0,X.x)(w,I=>{_.push(I),f<_.length&&_.shift()},()=>{for(const I of _)w.next(I);w.complete()},void 0,()=>{_=null}))})}var Ge=C(3026),Xe=C(2737),De=C(975),Me=C(4716),Ce=C(9773),Be=C(7537),Fe=C(6593);const ke="primary",Ct=Symbol("RouteTitle");class Nt{constructor(v){this.params=v||{}}has(v){return Object.prototype.hasOwnProperty.call(this.params,v)}get(v){if(this.has(v)){const w=this.params[v];return Array.isArray(w)?w[0]:w}return null}getAll(v){if(this.has(v)){const w=this.params[v];return Array.isArray(w)?w:[w]}return[]}get keys(){return Object.keys(this.params)}}function jt(f){return new Nt(f)}function Kt(f,v,w){const _=w.path.split("/");if(_.length>f.length||"full"===w.pathMatch&&(v.hasChildren()||_.length<f.length))return null;const I={};for(let Z=0;Z<_.length;Z++){const oe=_[Z],lt=f[Z];if(oe.startsWith(":"))I[oe.substring(1)]=lt;else if(oe!==lt.path)return null}return{consumed:f.slice(0,_.length),posParams:I}}function rn(f,v){const w=f?Object.keys(f):void 0,_=v?Object.keys(v):void 0;if(!w||!_||w.length!=_.length)return!1;let I;for(let Z=0;Z<w.length;Z++)if(I=w[Z],!Xt(f[I],v[I]))return!1;return!0}function Xt(f,v){if(Array.isArray(f)&&Array.isArray(v)){if(f.length!==v.length)return!1;const w=[...f].sort(),_=[...v].sort();return w.every((I,Z)=>_[Z]===I)}return f===v}function an(f){return f.length>0?f[f.length-1]:null}function Sn(f){return function K(f){return!!f&&(f instanceof l.y||(0,R.m)(f.lift)&&(0,R.m)(f.subscribe))}(f)?f:(0,o.QGY)(f)?(0,Y.D)(Promise.resolve(f)):(0,W.of)(f)}const zt={exact:function Un(f,v,w){if(!je(f.segments,v.segments)||!pe(f.segments,v.segments,w)||f.numberOfChildren!==v.numberOfChildren)return!1;for(const _ in v.children)if(!f.children[_]||!Un(f.children[_],v.children[_],w))return!1;return!0},subset:G},Vn={exact:function Hn(f,v){return rn(f,v)},subset:function ze(f,v){return Object.keys(v).length<=Object.keys(f).length&&Object.keys(v).every(w=>Xt(f[w],v[w]))},ignored:()=>!0};function xn(f,v,w){return zt[w.paths](f.root,v.root,w.matrixParams)&&Vn[w.queryParams](f.queryParams,v.queryParams)&&!("exact"===w.fragment&&f.fragment!==v.fragment)}function G(f,v,w){return Ie(f,v,v.segments,w)}function Ie(f,v,w,_){if(f.segments.length>w.length){const I=f.segments.slice(0,w.length);return!(!je(I,w)||v.hasChildren()||!pe(I,w,_))}if(f.segments.length===w.length){if(!je(f.segments,w)||!pe(f.segments,w,_))return!1;for(const I in v.children)if(!f.children[I]||!G(f.children[I],v.children[I],_))return!1;return!0}{const I=w.slice(0,f.segments.length),Z=w.slice(f.segments.length);return!!(je(f.segments,I)&&pe(f.segments,I,_)&&f.children[ke])&&Ie(f.children[ke],v,Z,_)}}function pe(f,v,w){return v.every((_,I)=>Vn[w](f[I].parameters,_.parameters))}class nt{constructor(v=new Te([],{}),w={},_=null){this.root=v,this.queryParams=w,this.fragment=_}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return Re.serialize(this)}}class Te{constructor(v,w){this.segments=v,this.children=w,this.parent=null,Object.values(w).forEach(_=>_.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return y(this)}}class Ke{constructor(v,w){this.path=v,this.parameters=w}get parameterMap(){return this._parameterMap||(this._parameterMap=jt(this.parameters)),this._parameterMap}toString(){return Ht(this)}}function je(f,v){return f.length===v.length&&f.every((w,_)=>w.path===v[_].path)}let pt=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return new vt},providedIn:"root"}),v})();class vt{parse(v){const w=new J(v);return new nt(w.parseRootSegment(),w.parseQueryParams(),w.parseFragment())}serialize(v){const w=`/${P(v.root,!0)}`,_=function cn(f){const v=Object.keys(f).map(w=>{const _=f[w];return Array.isArray(_)?_.map(I=>`${Ae(w)}=${Ae(I)}`).join("&"):`${Ae(w)}=${Ae(_)}`}).filter(w=>!!w);return v.length?`?${v.join("&")}`:""}(v.queryParams);return`${w}${_}${"string"==typeof v.fragment?`#${function it(f){return encodeURI(f)}(v.fragment)}`:""}`}}const Re=new vt;function y(f){return f.segments.map(v=>Ht(v)).join("/")}function P(f,v){if(!f.hasChildren())return y(f);if(v){const w=f.children[ke]?P(f.children[ke],!1):"",_=[];return Object.entries(f.children).forEach(([I,Z])=>{I!==ke&&_.push(`${I}:${P(Z,!1)}`)}),_.length>0?`${w}(${_.join("//")})`:w}{const w=function Je(f,v){let w=[];return Object.entries(f.children).forEach(([_,I])=>{_===ke&&(w=w.concat(v(I,_)))}),Object.entries(f.children).forEach(([_,I])=>{_!==ke&&(w=w.concat(v(I,_)))}),w}(f,(_,I)=>I===ke?[P(f.children[ke],!1)]:[`${I}:${P(_,!1)}`]);return 1===Object.keys(f.children).length&&null!=f.children[ke]?`${y(f)}/${w[0]}`:`${y(f)}/(${w.join("//")})`}}function ee(f){return encodeURIComponent(f).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ae(f){return ee(f).replace(/%3B/gi,";")}function St(f){return ee(f).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(f){return decodeURIComponent(f)}function Pt(f){return Et(f.replace(/\+/g,"%20"))}function Ht(f){return`${St(f.path)}${function Yt(f){return Object.keys(f).map(v=>`;${St(v)}=${St(f[v])}`).join("")}(f.parameters)}`}const Oe=/^[^\/()?;#]+/;function z(f){const v=f.match(Oe);return v?v[0]:""}const U=/^[^\/()?;=#]+/,S=/^[^=?&#]+/,j=/^[^&#]+/;class J{constructor(v){this.url=v,this.remaining=v}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Te([],{}):new Te([],this.parseChildren())}parseQueryParams(){const v={};if(this.consumeOptional("?"))do{this.parseQueryParam(v)}while(this.consumeOptional("&"));return v}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const v=[];for(this.peekStartsWith("(")||v.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),v.push(this.parseSegment());let w={};this.peekStartsWith("/(")&&(this.capture("/"),w=this.parseParens(!0));let _={};return this.peekStartsWith("(")&&(_=this.parseParens(!1)),(v.length>0||Object.keys(w).length>0)&&(_[ke]=new Te(v,w)),_}parseSegment(){const v=z(this.remaining);if(""===v&&this.peekStartsWith(";"))throw new o.vHH(4009,!1);return this.capture(v),new Ke(Et(v),this.parseMatrixParams())}parseMatrixParams(){const v={};for(;this.consumeOptional(";");)this.parseParam(v);return v}parseParam(v){const w=function B(f){const v=f.match(U);return v?v[0]:""}(this.remaining);if(!w)return;this.capture(w);let _="";if(this.consumeOptional("=")){const I=z(this.remaining);I&&(_=I,this.capture(_))}v[Et(w)]=Et(_)}parseQueryParam(v){const w=function H(f){const v=f.match(S);return v?v[0]:""}(this.remaining);if(!w)return;this.capture(w);let _="";if(this.consumeOptional("=")){const oe=function L(f){const v=f.match(j);return v?v[0]:""}(this.remaining);oe&&(_=oe,this.capture(_))}const I=Pt(w),Z=Pt(_);if(v.hasOwnProperty(I)){let oe=v[I];Array.isArray(oe)||(oe=[oe],v[I]=oe),oe.push(Z)}else v[I]=Z}parseParens(v){const w={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const _=z(this.remaining),I=this.remaining[_.length];if("/"!==I&&")"!==I&&";"!==I)throw new o.vHH(4010,!1);let Z;_.indexOf(":")>-1?(Z=_.slice(0,_.indexOf(":")),this.capture(Z),this.capture(":")):v&&(Z=ke);const oe=this.parseChildren();w[Z]=1===Object.keys(oe).length?oe[ke]:new Te([],oe),this.consumeOptional("//")}return w}peekStartsWith(v){return this.remaining.startsWith(v)}consumeOptional(v){return!!this.peekStartsWith(v)&&(this.remaining=this.remaining.substring(v.length),!0)}capture(v){if(!this.consumeOptional(v))throw new o.vHH(4011,!1)}}function xe(f){return f.segments.length>0?new Te([],{[ke]:f}):f}function ce(f){const v={};for(const _ of Object.keys(f.children)){const Z=ce(f.children[_]);if(_===ke&&0===Z.segments.length&&Z.hasChildren())for(const[oe,lt]of Object.entries(Z.children))v[oe]=lt;else(Z.segments.length>0||Z.hasChildren())&&(v[_]=Z)}return function Se(f){if(1===f.numberOfChildren&&f.children[ke]){const v=f.children[ke];return new Te(f.segments.concat(v.segments),v.children)}return f}(new Te(f.segments,v))}function at(f){return f instanceof nt}function se(f){let v;const I=xe(function w(Z){const oe={};for(const It of Z.children){const mt=w(It);oe[It.outlet]=mt}const lt=new Te(Z.url,oe);return Z===f&&(v=lt),lt}(f.root));return v??I}function ot(f,v,w,_){let I=f;for(;I.parent;)I=I.parent;if(0===v.length)return We(I,I,I,w,_);const Z=function Ut(f){if("string"==typeof f[0]&&1===f.length&&"/"===f[0])return new ht(!0,0,f);let v=0,w=!1;const _=f.reduce((I,Z,oe)=>{if("object"==typeof Z&&null!=Z){if(Z.outlets){const lt={};return Object.entries(Z.outlets).forEach(([It,mt])=>{lt[It]="string"==typeof mt?mt.split("/"):mt}),[...I,{outlets:lt}]}if(Z.segmentPath)return[...I,Z.segmentPath]}return"string"!=typeof Z?[...I,Z]:0===oe?(Z.split("/").forEach((lt,It)=>{0==It&&"."===lt||(0==It&&""===lt?w=!0:".."===lt?v++:""!=lt&&I.push(lt))}),I):[...I,Z]},[]);return new ht(w,v,_)}(v);if(Z.toRoot())return We(I,I,new Te([],{}),w,_);const oe=function Pn(f,v,w){if(f.isAbsolute)return new Gt(v,!0,0);if(!w)return new Gt(v,!1,NaN);if(null===w.parent)return new Gt(w,!0,0);const _=le(f.commands[0])?0:1;return function $n(f,v,w){let _=f,I=v,Z=w;for(;Z>I;){if(Z-=I,_=_.parent,!_)throw new o.vHH(4005,!1);I=_.segments.length}return new Gt(_,!1,I-Z)}(w,w.segments.length-1+_,f.numberOfDoubleDots)}(Z,I,f),lt=oe.processChildren?yr(oe.segmentGroup,oe.index,Z.commands):ir(oe.segmentGroup,oe.index,Z.commands);return We(I,oe.segmentGroup,lt,w,_)}function le(f){return"object"==typeof f&&null!=f&&!f.outlets&&!f.segmentPath}function Ee(f){return"object"==typeof f&&null!=f&&f.outlets}function We(f,v,w,_,I){let oe,Z={};_&&Object.entries(_).forEach(([It,mt])=>{Z[It]=Array.isArray(mt)?mt.map(Jt=>`${Jt}`):`${mt}`}),oe=f===v?w:bt(f,v,w);const lt=xe(ce(oe));return new nt(lt,Z,I)}function bt(f,v,w){const _={};return Object.entries(f.children).forEach(([I,Z])=>{_[I]=Z===v?w:bt(Z,v,w)}),new Te(f.segments,_)}class ht{constructor(v,w,_){if(this.isAbsolute=v,this.numberOfDoubleDots=w,this.commands=_,v&&_.length>0&&le(_[0]))throw new o.vHH(4003,!1);const I=_.find(Ee);if(I&&I!==an(_))throw new o.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gt{constructor(v,w,_){this.segmentGroup=v,this.processChildren=w,this.index=_}}function ir(f,v,w){if(f||(f=new Te([],{})),0===f.segments.length&&f.hasChildren())return yr(f,v,w);const _=function zr(f,v,w){let _=0,I=v;const Z={match:!1,pathIndex:0,commandIndex:0};for(;I<f.segments.length;){if(_>=w.length)return Z;const oe=f.segments[I],lt=w[_];if(Ee(lt))break;const It=`${lt}`,mt=_<w.length-1?w[_+1]:null;if(I>0&&void 0===It)break;if(It&&mt&&"object"==typeof mt&&void 0===mt.outlets){if(!ti(It,mt,oe))return Z;_+=2}else{if(!ti(It,{},oe))return Z;_++}I++}return{match:!0,pathIndex:I,commandIndex:_}}(f,v,w),I=w.slice(_.commandIndex);if(_.match&&_.pathIndex<f.segments.length){const Z=new Te(f.segments.slice(0,_.pathIndex),{});return Z.children[ke]=new Te(f.segments.slice(_.pathIndex),f.children),yr(Z,0,I)}return _.match&&0===I.length?new Te(f.segments,{}):_.match&&!f.hasChildren()?Mn(f,v,w):_.match?yr(f,0,I):Mn(f,v,w)}function yr(f,v,w){if(0===w.length)return new Te(f.segments,{});{const _=function Nn(f){return Ee(f[0])?f[0].outlets:{[ke]:f}}(w),I={};if(Object.keys(_).some(Z=>Z!==ke)&&f.children[ke]&&1===f.numberOfChildren&&0===f.children[ke].segments.length){const Z=yr(f.children[ke],v,w);return new Te(f.segments,Z.children)}return Object.entries(_).forEach(([Z,oe])=>{"string"==typeof oe&&(oe=[oe]),null!==oe&&(I[Z]=ir(f.children[Z],v,oe))}),Object.entries(f.children).forEach(([Z,oe])=>{void 0===_[Z]&&(I[Z]=oe)}),new Te(f.segments,I)}}function Mn(f,v,w){const _=f.segments.slice(0,v);let I=0;for(;I<w.length;){const Z=w[I];if(Ee(Z)){const It=Zn(Z.outlets);return new Te(_,It)}if(0===I&&le(w[0])){_.push(new Ke(f.segments[v].path,Or(w[0]))),I++;continue}const oe=Ee(Z)?Z.outlets[ke]:`${Z}`,lt=I<w.length-1?w[I+1]:null;oe&<&&le(lt)?(_.push(new Ke(oe,Or(lt))),I+=2):(_.push(new Ke(oe,{})),I++)}return new Te(_,{})}function Zn(f){const v={};return Object.entries(f).forEach(([w,_])=>{"string"==typeof _&&(_=[_]),null!==_&&(v[w]=Mn(new Te([],{}),0,_))}),v}function Or(f){const v={};return Object.entries(f).forEach(([w,_])=>v[w]=`${_}`),v}function ti(f,v,w){return f==w.path&&rn(v,w.parameters)}const Ln="imperative";class qn{constructor(v,w){this.id=v,this.url=w}}class Ii extends qn{constructor(v,w,_="imperative",I=null){super(v,w),this.type=0,this.navigationTrigger=_,this.restoredState=I}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dr extends qn{constructor(v,w,_){super(v,w),this.urlAfterRedirects=_,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ui extends qn{constructor(v,w,_,I){super(v,w),this.reason=_,this.code=I,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Gr extends qn{constructor(v,w,_,I){super(v,w),this.reason=_,this.code=I,this.type=16}}class hr extends qn{constructor(v,w,_,I){super(v,w),this.error=_,this.target=I,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class di extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $o extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ts extends qn{constructor(v,w,_,I,Z){super(v,w),this.urlAfterRedirects=_,this.state=I,this.shouldActivate=Z,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class la extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Is extends qn{constructor(v,w,_,I){super(v,w),this.urlAfterRedirects=_,this.state=I,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Eo{constructor(v){this.route=v,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ki{constructor(v){this.route=v,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Do{constructor(v){this.snapshot=v,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zo{constructor(v){this.snapshot=v,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Br{constructor(v){this.snapshot=v,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Go{constructor(v){this.snapshot=v,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xr{constructor(v,w,_){this.routerEvent=v,this.position=w,this.anchor=_,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ki{}class wo{constructor(v){this.url=v}}class So{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ni,this.attachRef=null}}let Ni=(()=>{var f;class v{constructor(){this.contexts=new Map}onChildOutletCreated(_,I){const Z=this.getOrCreateContext(_);Z.outlet=I,this.contexts.set(_,Z)}onChildOutletDestroyed(_){const I=this.getContext(_);I&&(I.outlet=null,I.attachRef=null)}onOutletDeactivated(){const _=this.contexts;return this.contexts=new Map,_}onOutletReAttached(_){this.contexts=_}getOrCreateContext(_){let I=this.getContext(_);return I||(I=new So,this.contexts.set(_,I)),I}getContext(_){return this.contexts.get(_)||null}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();class lo{constructor(v){this._root=v}get root(){return this._root.value}parent(v){const w=this.pathFromRoot(v);return w.length>1?w[w.length-2]:null}children(v){const w=Zo(v,this._root);return w?w.children.map(_=>_.value):[]}firstChild(v){const w=Zo(v,this._root);return w&&w.children.length>0?w.children[0].value:null}siblings(v){const w=An(v,this._root);return w.length<2?[]:w[w.length-2].children.map(I=>I.value).filter(I=>I!==v)}pathFromRoot(v){return An(v,this._root).map(w=>w.value)}}function Zo(f,v){if(f===v.value)return v;for(const w of v.children){const _=Zo(f,w);if(_)return _}return null}function An(f,v){if(f===v.value)return[v];for(const w of v.children){const _=An(f,w);if(_.length)return _.unshift(v),_}return[]}class Kn{constructor(v,w){this.value=v,this.children=w}toString(){return`TreeNode(${this.value})`}}function or(f){const v={};return f&&f.children.forEach(w=>v[w.value.outlet]=w),v}class bi extends lo{constructor(v,w){super(v),this.snapshot=w,Vt(this,v)}toString(){return this.snapshot.toString()}}function Pr(f,v){const w=function Mo(f,v){const oe=new ni([],{},{},"",{},ke,v,null,{});return new Xn("",new Kn(oe,[]))}(0,v),_=new re.X([new Ke("",{})]),I=new re.X({}),Z=new re.X({}),oe=new re.X({}),lt=new re.X(""),It=new Fi(_,I,oe,lt,Z,ke,v,w.root);return It.snapshot=w.root,new bi(new Kn(It,[]),w)}class Fi{constructor(v,w,_,I,Z,oe,lt,It){this.urlSubject=v,this.paramsSubject=w,this.queryParamsSubject=_,this.fragmentSubject=I,this.dataSubject=Z,this.outlet=oe,this.component=lt,this._futureSnapshot=It,this.title=this.dataSubject?.pipe((0,me.U)(mt=>mt[Ct]))??(0,W.of)(void 0),this.url=v,this.params=w,this.queryParams=_,this.fragment=I,this.data=Z}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,me.U)(v=>jt(v)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,me.U)(v=>jt(v)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yi(f,v="emptyOnly"){const w=f.pathFromRoot;let _=0;if("always"!==v)for(_=w.length-1;_>=1;){const I=w[_],Z=w[_-1];if(I.routeConfig&&""===I.routeConfig.path)_--;else{if(Z.component)break;_--}}return function As(f){return f.reduce((v,w)=>({params:{...v.params,...w.params},data:{...v.data,...w.data},resolve:{...w.data,...v.resolve,...w.routeConfig?.data,...w._resolvedData}}),{params:{},data:{},resolve:{}})}(w.slice(_))}class ni{get title(){return this.data?.[Ct]}constructor(v,w,_,I,Z,oe,lt,It,mt){this.url=v,this.params=w,this.queryParams=_,this.fragment=I,this.data=Z,this.outlet=oe,this.component=lt,this.routeConfig=It,this._resolve=mt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=jt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(_=>_.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xn extends lo{constructor(v,w){super(w),this.url=v,Vt(this,w)}toString(){return un(this._root)}}function Vt(f,v){v.value._routerState=f,v.children.forEach(w=>Vt(f,w))}function un(f){const v=f.children.length>0?` { ${f.children.map(un).join(", ")} } `:"";return`${f.value}${v}`}function Jn(f){if(f.snapshot){const v=f.snapshot,w=f._futureSnapshot;f.snapshot=w,rn(v.queryParams,w.queryParams)||f.queryParamsSubject.next(w.queryParams),v.fragment!==w.fragment&&f.fragmentSubject.next(w.fragment),rn(v.params,w.params)||f.paramsSubject.next(w.params),function nn(f,v){if(f.length!==v.length)return!1;for(let w=0;w<f.length;++w)if(!rn(f[w],v[w]))return!1;return!0}(v.url,w.url)||f.urlSubject.next(w.url),rn(v.data,w.data)||f.dataSubject.next(w.data)}else f.snapshot=f._futureSnapshot,f.dataSubject.next(f._futureSnapshot.data)}function br(f,v){const w=rn(f.params,v.params)&&function dt(f,v){return je(f,v)&&f.every((w,_)=>rn(w.parameters,v[_].parameters))}(f.url,v.url);return w&&!(!f.parent!=!v.parent)&&(!f.parent||br(f.parent,v.parent))}let Ai=(()=>{var f;class v{constructor(){this.activated=null,this._activatedRoute=null,this.name=ke,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.attachEvents=new o.vpe,this.detachEvents=new o.vpe,this.parentContexts=(0,o.f3M)(Ni),this.location=(0,o.f3M)(o.s_b),this.changeDetector=(0,o.f3M)(o.sBO),this.environmentInjector=(0,o.f3M)(o.lqb),this.inputBinder=(0,o.f3M)(Ci,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(_){if(_.name){const{firstChange:I,previousValue:Z}=_.name;if(I)return;this.isTrackedInParentContexts(Z)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Z)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(_){return this.parentContexts.getContext(_)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const _=this.parentContexts.getContext(this.name);_?.route&&(_.attachRef?this.attach(_.attachRef,_.route):this.activateWith(_.route,_.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.vHH(4012,!1);this.location.detach();const _=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_.instance),_}attach(_,I){this.activated=_,this._activatedRoute=I,this.location.insert(_.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(_.instance)}deactivate(){if(this.activated){const _=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,I){if(this.isActivated)throw new o.vHH(4013,!1);this._activatedRoute=_;const Z=this.location,lt=_.snapshot.component,It=this.parentContexts.getOrCreateContext(this.name).children,mt=new ur(_,It,Z.injector);this.activated=Z.createComponent(lt,{index:Z.length,injector:mt,environmentInjector:I??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275dir=o.lG2({type:f,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[o.TTD]}),v})();class ur{constructor(v,w,_){this.route=v,this.childContexts=w,this.parent=_}get(v,w){return v===Fi?this.route:v===Ni?this.childContexts:this.parent.get(v,w)}}const Ci=new o.OlP("");let ar=(()=>{var f;class v{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(_){this.unsubscribeFromRouteData(_),this.subscribeToRouteData(_)}unsubscribeFromRouteData(_){this.outletDataSubscriptions.get(_)?.unsubscribe(),this.outletDataSubscriptions.delete(_)}subscribeToRouteData(_){const{activatedRoute:I}=_,Z=(0,ue.a)([I.queryParams,I.params,I.data]).pipe((0,ve.w)(([oe,lt,It],mt)=>(It={...oe,...lt,...It},0===mt?(0,W.of)(It):Promise.resolve(It)))).subscribe(oe=>{if(!_.isActivated||!_.activatedComponentRef||_.activatedRoute!==I||null===I.component)return void this.unsubscribeFromRouteData(_);const lt=(0,o.qFp)(I.component);if(lt)for(const{templateName:It}of lt.inputs)_.activatedComponentRef.setInput(It,oe[It]);else this.unsubscribeFromRouteData(_)});this.outletDataSubscriptions.set(_,Z)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac}),v})();function hi(f,v,w){if(w&&f.shouldReuseRoute(v.value,w.value.snapshot)){const _=w.value;_._futureSnapshot=v.value;const I=function hn(f,v,w){return v.children.map(_=>{for(const I of w.children)if(f.shouldReuseRoute(_.value,I.value.snapshot))return hi(f,_,I);return hi(f,_)})}(f,v,w);return new Kn(_,I)}{if(f.shouldAttach(v.value)){const Z=f.retrieve(v.value);if(null!==Z){const oe=Z.route;return oe.value._futureSnapshot=v.value,oe.children=v.children.map(lt=>hi(f,lt)),oe}}const _=function Qr(f){return new Fi(new re.X(f.url),new re.X(f.params),new re.X(f.queryParams),new re.X(f.fragment),new re.X(f.data),f.outlet,f.component,f)}(v.value),I=v.children.map(Z=>hi(f,Z));return new Kn(_,I)}}const To="ngNavigationCancelingError";function Li(f,v){const{redirectTo:w,navigationBehaviorOptions:_}=at(v)?{redirectTo:v,navigationBehaviorOptions:void 0}:v,I=lr(!1,0,v);return I.url=w,I.navigationBehaviorOptions=_,I}function lr(f,v,w){const _=new Error("NavigationCancelingError: "+(f||""));return _[To]=!0,_.cancellationCode=v,w&&(_.url=w),_}function qi(f){return f&&f[To]}let Wr=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["ng-component"]],standalone:!0,features:[o.jDz],decls:1,vars:0,template:function(_,I){1&_&&o._UZ(0,"router-outlet")},dependencies:[Ai],encapsulation:2}),v})();function Cr(f){const v=f.children&&f.children.map(Cr),w=v?{...f,children:v}:{...f};return!w.component&&!w.loadComponent&&(v||w.loadChildren)&&w.outlet&&w.outlet!==ke&&(w.component=Wr),w}function er(f){return f.outlet||ke}function ri(f){if(!f)return null;if(f.routeConfig?._injector)return f.routeConfig._injector;for(let v=f.parent;v;v=v.parent){const w=v.routeConfig;if(w?._loadedInjector)return w._loadedInjector;if(w?._injector)return w._injector}return null}class xa{constructor(v,w,_,I,Z){this.routeReuseStrategy=v,this.futureState=w,this.currState=_,this.forwardEvent=I,this.inputBindingEnabled=Z}activate(v){const w=this.futureState._root,_=this.currState?this.currState._root:null;this.deactivateChildRoutes(w,_,v),Jn(this.futureState.root),this.activateChildRoutes(w,_,v)}deactivateChildRoutes(v,w,_){const I=or(w);v.children.forEach(Z=>{const oe=Z.value.outlet;this.deactivateRoutes(Z,I[oe],_),delete I[oe]}),Object.values(I).forEach(Z=>{this.deactivateRouteAndItsChildren(Z,_)})}deactivateRoutes(v,w,_){const I=v.value,Z=w?w.value:null;if(I===Z)if(I.component){const oe=_.getContext(I.outlet);oe&&this.deactivateChildRoutes(v,w,oe.children)}else this.deactivateChildRoutes(v,w,_);else Z&&this.deactivateRouteAndItsChildren(w,_)}deactivateRouteAndItsChildren(v,w){v.value.component&&this.routeReuseStrategy.shouldDetach(v.value.snapshot)?this.detachAndStoreRouteSubtree(v,w):this.deactivateRouteAndOutlet(v,w)}detachAndStoreRouteSubtree(v,w){const _=w.getContext(v.value.outlet),I=_&&v.value.component?_.children:w,Z=or(v);for(const oe of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[oe],I);if(_&&_.outlet){const oe=_.outlet.detach(),lt=_.children.onOutletDeactivated();this.routeReuseStrategy.store(v.value.snapshot,{componentRef:oe,route:v,contexts:lt})}}deactivateRouteAndOutlet(v,w){const _=w.getContext(v.value.outlet),I=_&&v.value.component?_.children:w,Z=or(v);for(const oe of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[oe],I);_&&(_.outlet&&(_.outlet.deactivate(),_.children.onOutletDeactivated()),_.attachRef=null,_.route=null)}activateChildRoutes(v,w,_){const I=or(w);v.children.forEach(Z=>{this.activateRoutes(Z,I[Z.value.outlet],_),this.forwardEvent(new Go(Z.value.snapshot))}),v.children.length&&this.forwardEvent(new zo(v.value.snapshot))}activateRoutes(v,w,_){const I=v.value,Z=w?w.value:null;if(Jn(I),I===Z)if(I.component){const oe=_.getOrCreateContext(I.outlet);this.activateChildRoutes(v,w,oe.children)}else this.activateChildRoutes(v,w,_);else if(I.component){const oe=_.getOrCreateContext(I.outlet);if(this.routeReuseStrategy.shouldAttach(I.snapshot)){const lt=this.routeReuseStrategy.retrieve(I.snapshot);this.routeReuseStrategy.store(I.snapshot,null),oe.children.onOutletReAttached(lt.contexts),oe.attachRef=lt.componentRef,oe.route=lt.route.value,oe.outlet&&oe.outlet.attach(lt.componentRef,lt.route.value),Jn(lt.route.value),this.activateChildRoutes(v,null,oe.children)}else{const lt=ri(I.snapshot);oe.attachRef=null,oe.route=I,oe.injector=lt,oe.outlet&&oe.outlet.activateWith(I,oe.injector),this.activateChildRoutes(v,null,oe.children)}}else this.activateChildRoutes(v,null,_)}}class Rr{constructor(v){this.path=v,this.route=this.path[this.path.length-1]}}class fr{constructor(v,w){this.component=v,this.route=w}}function Yo(f,v,w){const _=f._root;return kr(_,v?v._root:null,w,[_.value])}function Vr(f,v){const w=Symbol(),_=v.get(f,w);return _===w?"function"!=typeof f||(0,o.Z0I)(f)?v.get(f):f:_}function kr(f,v,w,_,I={canDeactivateChecks:[],canActivateChecks:[]}){const Z=or(v);return f.children.forEach(oe=>{(function qo(f,v,w,_,I={canDeactivateChecks:[],canActivateChecks:[]}){const Z=f.value,oe=v?v.value:null,lt=w?w.getContext(f.value.outlet):null;if(oe&&Z.routeConfig===oe.routeConfig){const It=function Qo(f,v,w){if("function"==typeof w)return w(f,v);switch(w){case"pathParamsChange":return!je(f.url,v.url);case"pathParamsOrQueryParamsChange":return!je(f.url,v.url)||!rn(f.queryParams,v.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!br(f,v)||!rn(f.queryParams,v.queryParams);default:return!br(f,v)}}(oe,Z,Z.routeConfig.runGuardsAndResolvers);It?I.canActivateChecks.push(new Rr(_)):(Z.data=oe.data,Z._resolvedData=oe._resolvedData),kr(f,v,Z.component?lt?lt.children:null:w,_,I),It&<&<.outlet&<.outlet.isActivated&&I.canDeactivateChecks.push(new fr(lt.outlet.component,oe))}else oe&&Oo(v,lt,I),I.canActivateChecks.push(new Rr(_)),kr(f,null,Z.component?lt?lt.children:null:w,_,I)})(oe,Z[oe.value.outlet],w,_.concat([oe.value]),I),delete Z[oe.value.outlet]}),Object.entries(Z).forEach(([oe,lt])=>Oo(lt,w.getContext(oe),I)),I}function Oo(f,v,w){const _=or(f),I=f.value;Object.entries(_).forEach(([Z,oe])=>{Oo(oe,I.component?v?v.children.getContext(Z):null:v,w)}),w.canDeactivateChecks.push(new fr(I.component&&v&&v.outlet&&v.outlet.isActivated?v.outlet.component:null,I))}function xo(f){return"function"==typeof f}function _n(f){return f instanceof ie.K||"EmptyError"===f?.name}const Nr=Symbol("INITIAL_VALUE");function Xr(){return(0,ve.w)(f=>(0,ue.a)(f.map(v=>v.pipe((0,ye.q)(1),(0,rt.O)(Nr)))).pipe((0,me.U)(v=>{for(const w of v)if(!0!==w){if(w===Nr)return Nr;if(!1===w||w instanceof nt)return w}return!0}),(0,Qe.h)(v=>v!==Nr),(0,ye.q)(1)))}function jr(f){return(0,be.z)((0,Rt.b)(v=>{if(at(v))throw Li(0,v)}),(0,me.U)(v=>!0===v))}class Hr{constructor(v){this.segmentGroup=v||null}}class gr{constructor(v){this.urlTree=v}}function wi(f){return(0,Ve._)(new Hr(f))}function Ur(f){return(0,Ve._)(new gr(f))}class fs{constructor(v,w){this.urlSerializer=v,this.urlTree=w}noMatchError(v){return new o.vHH(4002,!1)}lineralizeSegments(v,w){let _=[],I=w.root;for(;;){if(_=_.concat(I.segments),0===I.numberOfChildren)return(0,W.of)(_);if(I.numberOfChildren>1||!I.children[ke])return(0,Ve._)(new o.vHH(4e3,!1));I=I.children[ke]}}applyRedirectCommands(v,w,_){return this.applyRedirectCreateUrlTree(w,this.urlSerializer.parse(w),v,_)}applyRedirectCreateUrlTree(v,w,_,I){const Z=this.createSegmentGroup(v,w.root,_,I);return new nt(Z,this.createQueryParams(w.queryParams,this.urlTree.queryParams),w.fragment)}createQueryParams(v,w){const _={};return Object.entries(v).forEach(([I,Z])=>{if("string"==typeof Z&&Z.startsWith(":")){const lt=Z.substring(1);_[I]=w[lt]}else _[I]=Z}),_}createSegmentGroup(v,w,_,I){const Z=this.createSegments(v,w.segments,_,I);let oe={};return Object.entries(w.children).forEach(([lt,It])=>{oe[lt]=this.createSegmentGroup(v,It,_,I)}),new Te(Z,oe)}createSegments(v,w,_,I){return w.map(Z=>Z.path.startsWith(":")?this.findPosParam(v,Z,I):this.findOrReturn(Z,_))}findPosParam(v,w,_){const I=_[w.path.substring(1)];if(!I)throw new o.vHH(4001,!1);return I}findOrReturn(v,w){let _=0;for(const I of w){if(I.path===v.path)return w.splice(_),I;_++}return v}}const Jo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function es(f,v,w,_,I){const Z=ho(f,v,w);return Z.matched?(_=function Io(f,v){return f.providers&&!f._injector&&(f._injector=(0,o.MMx)(f.providers,v,`Route: ${f.path}`)),f._injector??v}(v,_),function Ps(f,v,w,_){const I=v.canMatch;if(!I||0===I.length)return(0,W.of)(!0);const Z=I.map(oe=>{const lt=Vr(oe,f);return Sn(function k(f){return f&&xo(f.canMatch)}(lt)?lt.canMatch(v,w):f.runInContext(()=>lt(v,w)))});return(0,W.of)(Z).pipe(Xr(),jr())}(_,v,w).pipe((0,me.U)(oe=>!0===oe?Z:{...Jo}))):(0,W.of)(Z)}function ho(f,v,w){if(""===v.path)return"full"===v.pathMatch&&(f.hasChildren()||w.length>0)?{...Jo}:{matched:!0,consumedSegments:[],remainingSegments:w,parameters:{},positionalParamSegments:{}};const I=(v.matcher||Kt)(w,f,v);if(!I)return{...Jo};const Z={};Object.entries(I.posParams??{}).forEach(([lt,It])=>{Z[lt]=It.path});const oe=I.consumed.length>0?{...Z,...I.consumed[I.consumed.length-1].parameters}:Z;return{matched:!0,consumedSegments:I.consumed,remainingSegments:w.slice(I.consumed.length),parameters:oe,positionalParamSegments:I.posParams??{}}}function ps(f,v,w,_){return w.length>0&&function Rs(f,v,w){return w.some(_=>fn(f,v,_)&&er(_)!==ke)}(f,w,_)?{segmentGroup:new Te(v,ua(_,new Te(w,f.children))),slicedSegments:[]}:0===w.length&&function da(f,v,w){return w.some(_=>fn(f,v,_))}(f,w,_)?{segmentGroup:new Te(f.segments,mr(f,0,w,_,f.children)),slicedSegments:w}:{segmentGroup:new Te(f.segments,f.children),slicedSegments:w}}function mr(f,v,w,_,I){const Z={};for(const oe of _)if(fn(f,w,oe)&&!I[er(oe)]){const lt=new Te([],{});Z[er(oe)]=lt}return{...I,...Z}}function ua(f,v){const w={};w[ke]=v;for(const _ of f)if(""===_.path&&er(_)!==ke){const I=new Te([],{});w[er(_)]=I}return w}function fn(f,v,w){return(!(f.hasChildren()||v.length>0)||"full"!==w.pathMatch)&&""===w.path}class Ns{constructor(v,w,_,I,Z,oe,lt){this.injector=v,this.configLoader=w,this.rootComponentType=_,this.config=I,this.urlTree=Z,this.paramsInheritanceStrategy=oe,this.urlSerializer=lt,this.allowRedirects=!0,this.applyRedirects=new fs(this.urlSerializer,this.urlTree)}noMatchError(v){return new o.vHH(4002,!1)}recognize(){const v=ps(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,v,ke).pipe((0,Qt.K)(w=>{if(w instanceof gr)return this.allowRedirects=!1,this.urlTree=w.urlTree,this.match(w.urlTree);throw w instanceof Hr?this.noMatchError(w):w}),(0,me.U)(w=>{const _=new ni([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ke,this.rootComponentType,null,{}),I=new Kn(_,w),Z=new Xn("",I),oe=function de(f,v,w=null,_=null){return ot(se(f),v,w,_)}(_,[],this.urlTree.queryParams,this.urlTree.fragment);return oe.queryParams=this.urlTree.queryParams,Z.url=this.urlSerializer.serialize(oe),this.inheritParamsAndData(Z._root),{state:Z,tree:oe}}))}match(v){return this.processSegmentGroup(this.injector,this.config,v.root,ke).pipe((0,Qt.K)(_=>{throw _ instanceof Hr?this.noMatchError(_):_}))}inheritParamsAndData(v){const w=v.value,_=Yi(w,this.paramsInheritanceStrategy);w.params=Object.freeze(_.params),w.data=Object.freeze(_.data),v.children.forEach(I=>this.inheritParamsAndData(I))}processSegmentGroup(v,w,_,I){return 0===_.segments.length&&_.hasChildren()?this.processChildren(v,w,_):this.processSegment(v,w,_,_.segments,I,!0)}processChildren(v,w,_){const I=[];for(const Z of Object.keys(_.children))"primary"===Z?I.unshift(Z):I.push(Z);return(0,Y.D)(I).pipe((0,Bt.b)(Z=>{const oe=_.children[Z],lt=function Bi(f,v){const w=f.filter(_=>er(_)===v);return w.push(...f.filter(_=>er(_)!==v)),w}(w,Z);return this.processSegmentGroup(v,lt,oe,Z)}),function sn(f,v){return(0,$e.e)(function qt(f,v,w,_,I){return(Z,oe)=>{let lt=w,It=v,mt=0;Z.subscribe((0,X.x)(oe,Jt=>{const vn=mt++;It=lt?f(It,Jt,vn):(lt=!0,Jt),_&&oe.next(It)},I&&(()=>{lt&&oe.next(It),oe.complete()})))}}(f,v,arguments.length>=2,!0))}((Z,oe)=>(Z.push(...oe),Z)),(0,Cn.d)(null),function Ze(f,v){const w=arguments.length>=2;return _=>_.pipe(f?(0,Qe.h)((I,Z)=>f(I,Z,_)):Xe.y,wn(1),w?(0,Cn.d)(v):(0,Ge.T)(()=>new ie.K))}(),(0,ft.z)(Z=>{if(null===Z)return wi(_);const oe=ms(Z);return function ts(f){f.sort((v,w)=>v.value.outlet===ke?-1:w.value.outlet===ke?1:v.value.outlet.localeCompare(w.value.outlet))}(oe),(0,W.of)(oe)}))}processSegment(v,w,_,I,Z,oe){return(0,Y.D)(w).pipe((0,Bt.b)(lt=>this.processSegmentAgainstRoute(lt._injector??v,w,lt,_,I,Z,oe).pipe((0,Qt.K)(It=>{if(It instanceof Hr)return(0,W.of)(null);throw It}))),(0,xt.P)(lt=>!!lt),(0,Qt.K)(lt=>{if(_n(lt))return function ji(f,v,w){return 0===v.length&&!f.children[w]}(_,I,Z)?(0,W.of)([]):wi(_);throw lt}))}processSegmentAgainstRoute(v,w,_,I,Z,oe,lt){return function gs(f,v,w,_){return!!(er(f)===_||_!==ke&&fn(v,w,f))&&("**"===f.path||ho(v,f,w).matched)}(_,I,Z,oe)?void 0===_.redirectTo?this.matchSegmentAgainstRoute(v,I,_,Z,oe,lt):lt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(v,I,w,_,Z,oe):wi(I):wi(I)}expandSegmentAgainstRouteUsingRedirect(v,w,_,I,Z,oe){return"**"===I.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(v,_,I,oe):this.expandRegularSegmentAgainstRouteUsingRedirect(v,w,_,I,Z,oe)}expandWildCardWithParamsAgainstRouteUsingRedirect(v,w,_,I){const Z=this.applyRedirects.applyRedirectCommands([],_.redirectTo,{});return _.redirectTo.startsWith("/")?Ur(Z):this.applyRedirects.lineralizeSegments(_,Z).pipe((0,ft.z)(oe=>{const lt=new Te(oe,{});return this.processSegment(v,w,lt,oe,I,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(v,w,_,I,Z,oe){const{matched:lt,consumedSegments:It,remainingSegments:mt,positionalParamSegments:Jt}=ho(w,I,Z);if(!lt)return wi(w);const vn=this.applyRedirects.applyRedirectCommands(It,I.redirectTo,Jt);return I.redirectTo.startsWith("/")?Ur(vn):this.applyRedirects.lineralizeSegments(I,vn).pipe((0,ft.z)(Mr=>this.processSegment(v,_,w,Mr.concat(mt),oe,!1)))}matchSegmentAgainstRoute(v,w,_,I,Z,oe){let lt;if("**"===_.path){const It=I.length>0?an(I).parameters:{},mt=new ni(I,It,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ls(_),er(_),_.component??_._loadedComponent??null,_,Bs(_));lt=(0,W.of)({snapshot:mt,consumedSegments:[],remainingSegments:[]}),w.children={}}else lt=es(w,_,I,v).pipe((0,me.U)(({matched:It,consumedSegments:mt,remainingSegments:Jt,parameters:vn})=>It?{snapshot:new ni(mt,vn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ls(_),er(_),_.component??_._loadedComponent??null,_,Bs(_)),consumedSegments:mt,remainingSegments:Jt}:null));return lt.pipe((0,ve.w)(It=>null===It?wi(w):this.getChildConfig(v=_._injector??v,_,I).pipe((0,ve.w)(({routes:mt})=>{const Jt=_._loadedInjector??v,{snapshot:vn,consumedSegments:Mr,remainingSegments:Gn}=It,{segmentGroup:ii,slicedSegments:$i}=ps(w,Mr,Gn,mt);if(0===$i.length&&ii.hasChildren())return this.processChildren(Jt,mt,ii).pipe((0,me.U)(ko=>null===ko?null:[new Kn(vn,ko)]));if(0===mt.length&&0===$i.length)return(0,W.of)([new Kn(vn,[])]);const Ro=er(_)===Z;return this.processSegment(Jt,mt,ii,$i,Ro?ke:Z,!0).pipe((0,me.U)(ko=>[new Kn(vn,ko)]))}))))}getChildConfig(v,w,_){return w.children?(0,W.of)({routes:w.children,injector:v}):w.loadChildren?void 0!==w._loadedRoutes?(0,W.of)({routes:w._loadedRoutes,injector:w._loadedInjector}):function uo(f,v,w,_){const I=v.canLoad;if(void 0===I||0===I.length)return(0,W.of)(!0);const Z=I.map(oe=>{const lt=Vr(oe,f);return Sn(function Xo(f){return f&&xo(f.canLoad)}(lt)?lt.canLoad(v,w):f.runInContext(()=>lt(v,w)))});return(0,W.of)(Z).pipe(Xr(),jr())}(v,w,_).pipe((0,ft.z)(I=>I?this.configLoader.loadChildren(v,w).pipe((0,Rt.b)(Z=>{w._loadedRoutes=Z.routes,w._loadedInjector=Z.injector})):function hs(f){return(0,Ve._)(lr(!1,3))}())):(0,W.of)({routes:[],injector:v})}}function Fs(f){const v=f.value.routeConfig;return v&&""===v.path}function ms(f){const v=[],w=new Set;for(const _ of f){if(!Fs(_)){v.push(_);continue}const I=v.find(Z=>_.value.routeConfig===Z.value.routeConfig);void 0!==I?(I.children.push(..._.children),w.add(I)):v.push(_)}for(const _ of w){const I=ms(_.children);v.push(new Kn(_.value,I))}return v.filter(_=>!w.has(_))}function Ls(f){return f.data||{}}function Bs(f){return f.resolve||{}}function ys(f){return"string"==typeof f.title||null===f.title}function g(f){return(0,ve.w)(v=>{const w=f(v);return w?(0,Y.D)(w).pipe((0,me.U)(()=>v)):(0,W.of)(v)})}const A=new o.OlP("ROUTES");let fe=(()=>{var f;class v{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,o.f3M)(o.Sil)}loadComponent(_){if(this.componentLoaders.get(_))return this.componentLoaders.get(_);if(_._loadedComponent)return(0,W.of)(_._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(_);const I=Sn(_.loadComponent()).pipe((0,me.U)(ne),(0,Rt.b)(oe=>{this.onLoadEndListener&&this.onLoadEndListener(_),_._loadedComponent=oe}),(0,Me.x)(()=>{this.componentLoaders.delete(_)})),Z=new ut(I,()=>new Ne.x).pipe(Ye());return this.componentLoaders.set(_,Z),Z}loadChildren(_,I){if(this.childrenLoaders.get(I))return this.childrenLoaders.get(I);if(I._loadedRoutes)return(0,W.of)({routes:I._loadedRoutes,injector:I._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(I);const oe=this.loadModuleFactoryOrRoutes(I.loadChildren).pipe((0,me.U)(It=>{this.onLoadEndListener&&this.onLoadEndListener(I);let mt,Jt;return Array.isArray(It)?Jt=It:(mt=It.create(_).injector,Jt=mt.get(A,[],o.XFs.Self|o.XFs.Optional).flat()),{routes:Jt.map(Cr),injector:mt}}),(0,Me.x)(()=>{this.childrenLoaders.delete(I)})),lt=new ut(oe,()=>new Ne.x).pipe(Ye());return this.childrenLoaders.set(I,lt),lt}loadModuleFactoryOrRoutes(_){return Sn(_()).pipe((0,me.U)(ne),(0,ft.z)(I=>I instanceof o.YKP||Array.isArray(I)?(0,W.of)(I):(0,Y.D)(this.compiler.compileModuleAsync(I))))}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function ne(f){return function M(f){return f&&"object"==typeof f&&"default"in f}(f)?f.default:f}let Le=(()=>{var f;class v{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ne.x,this.transitionAbortSubject=new Ne.x,this.configLoader=(0,o.f3M)(fe),this.environmentInjector=(0,o.f3M)(o.lqb),this.urlSerializer=(0,o.f3M)(pt),this.rootContexts=(0,o.f3M)(Ni),this.inputBindingEnabled=null!==(0,o.f3M)(Ci,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,W.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Z=>this.events.next(new ki(Z)),this.configLoader.onLoadStartListener=Z=>this.events.next(new Eo(Z))}complete(){this.transitions?.complete()}handleNavigationRequest(_){const I=++this.navigationId;this.transitions?.next({...this.transitions.value,..._,id:I})}setupNavigations(_,I,Z){return this.transitions=new re.X({id:0,currentUrlTree:I,currentRawUrl:I,currentBrowserUrl:I,extractedUrl:_.urlHandlingStrategy.extract(I),urlAfterRedirects:_.urlHandlingStrategy.extract(I),rawUrl:I,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ln,restoredState:null,currentSnapshot:Z.snapshot,targetSnapshot:null,currentRouterState:Z,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Qe.h)(oe=>0!==oe.id),(0,me.U)(oe=>({...oe,extractedUrl:_.urlHandlingStrategy.extract(oe.rawUrl)})),(0,ve.w)(oe=>{this.currentTransition=oe;let lt=!1,It=!1;return(0,W.of)(oe).pipe((0,Rt.b)(mt=>{this.currentNavigation={id:mt.id,initialUrl:mt.rawUrl,extractedUrl:mt.extractedUrl,trigger:mt.source,extras:mt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(mt=>{const Jt=mt.currentBrowserUrl.toString(),vn=!_.navigated||mt.extractedUrl.toString()!==Jt||Jt!==mt.currentUrlTree.toString();if(!vn&&"reload"!==(mt.extras.onSameUrlNavigation??_.onSameUrlNavigation)){const Gn="";return this.events.next(new Gr(mt.id,this.urlSerializer.serialize(mt.rawUrl),Gn,0)),mt.resolve(null),He.E}if(_.urlHandlingStrategy.shouldProcessUrl(mt.rawUrl))return(0,W.of)(mt).pipe((0,ve.w)(Gn=>{const ii=this.transitions?.getValue();return this.events.next(new Ii(Gn.id,this.urlSerializer.serialize(Gn.extractedUrl),Gn.source,Gn.restoredState)),ii!==this.transitions?.getValue()?He.E:Promise.resolve(Gn)}),function _s(f,v,w,_,I,Z){return(0,ft.z)(oe=>function ks(f,v,w,_,I,Z,oe="emptyOnly"){return new Ns(f,v,w,_,I,oe,Z).recognize()}(f,v,w,_,oe.extractedUrl,I,Z).pipe((0,me.U)(({state:lt,tree:It})=>({...oe,targetSnapshot:lt,urlAfterRedirects:It}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,_.config,this.urlSerializer,_.paramsInheritanceStrategy),(0,Rt.b)(Gn=>{oe.targetSnapshot=Gn.targetSnapshot,oe.urlAfterRedirects=Gn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Gn.urlAfterRedirects};const ii=new di(Gn.id,this.urlSerializer.serialize(Gn.extractedUrl),this.urlSerializer.serialize(Gn.urlAfterRedirects),Gn.targetSnapshot);this.events.next(ii)}));if(vn&&_.urlHandlingStrategy.shouldProcessUrl(mt.currentRawUrl)){const{id:Gn,extractedUrl:ii,source:$i,restoredState:Ro,extras:ko}=mt,Ba=new Ii(Gn,this.urlSerializer.serialize(ii),$i,Ro);this.events.next(Ba);const qr=Pr(0,this.rootComponentType).snapshot;return this.currentTransition=oe={...mt,targetSnapshot:qr,urlAfterRedirects:ii,extras:{...ko,skipLocationChange:!1,replaceUrl:!1}},(0,W.of)(oe)}{const Gn="";return this.events.next(new Gr(mt.id,this.urlSerializer.serialize(mt.extractedUrl),Gn,1)),mt.resolve(null),He.E}}),(0,Rt.b)(mt=>{const Jt=new $o(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects),mt.targetSnapshot);this.events.next(Jt)}),(0,me.U)(mt=>(this.currentTransition=oe={...mt,guards:Yo(mt.targetSnapshot,mt.currentSnapshot,this.rootContexts)},oe)),function co(f,v){return(0,ft.z)(w=>{const{targetSnapshot:_,currentSnapshot:I,guards:{canActivateChecks:Z,canDeactivateChecks:oe}}=w;return 0===oe.length&&0===Z.length?(0,W.of)({...w,guardsResult:!0}):function Di(f,v,w,_){return(0,Y.D)(f).pipe((0,ft.z)(I=>function xs(f,v,w,_,I){const Z=v&&v.routeConfig?v.routeConfig.canDeactivate:null;if(!Z||0===Z.length)return(0,W.of)(!0);const oe=Z.map(lt=>{const It=ri(v)??I,mt=Vr(lt,It);return Sn(function te(f){return f&&xo(f.canDeactivate)}(mt)?mt.canDeactivate(f,v,w,_):It.runInContext(()=>mt(f,v,w,_))).pipe((0,xt.P)())});return(0,W.of)(oe).pipe(Xr())}(I.component,I.route,w,v,_)),(0,xt.P)(I=>!0!==I,!0))}(oe,_,I,f).pipe((0,ft.z)(lt=>lt&&function us(f){return"boolean"==typeof f}(lt)?function nl(f,v,w,_){return(0,Y.D)(v).pipe((0,Bt.b)(I=>(0,V.z)(function ca(f,v){return null!==f&&v&&v(new Do(f)),(0,W.of)(!0)}(I.route.parent,_),function ds(f,v){return null!==f&&v&&v(new Br(f)),(0,W.of)(!0)}(I.route,_),function rl(f,v,w){const _=v[v.length-1],Z=v.slice(0,v.length-1).reverse().map(oe=>function Ji(f){const v=f.routeConfig?f.routeConfig.canActivateChild:null;return v&&0!==v.length?{node:f,guards:v}:null}(oe)).filter(oe=>null!==oe).map(oe=>(0,Q.P)(()=>{const lt=oe.guards.map(It=>{const mt=ri(oe.node)??w,Jt=Vr(It,mt);return Sn(function T(f){return f&&xo(f.canActivateChild)}(Jt)?Jt.canActivateChild(_,f):mt.runInContext(()=>Jt(_,f))).pipe((0,xt.P)())});return(0,W.of)(lt).pipe(Xr())}));return(0,W.of)(Z).pipe(Xr())}(f,I.path,w),function Pa(f,v,w){const _=v.routeConfig?v.routeConfig.canActivate:null;if(!_||0===_.length)return(0,W.of)(!0);const I=_.map(Z=>(0,Q.P)(()=>{const oe=ri(v)??w,lt=Vr(Z,oe);return Sn(function x(f){return f&&xo(f.canActivate)}(lt)?lt.canActivate(v,f):oe.runInContext(()=>lt(v,f))).pipe((0,xt.P)())}));return(0,W.of)(I).pipe(Xr())}(f,I.route,w))),(0,xt.P)(I=>!0!==I,!0))}(_,Z,f,v):(0,W.of)(lt)),(0,me.U)(lt=>({...w,guardsResult:lt})))})}(this.environmentInjector,mt=>this.events.next(mt)),(0,Rt.b)(mt=>{if(oe.guardsResult=mt.guardsResult,at(mt.guardsResult))throw Li(0,mt.guardsResult);const Jt=new Ts(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects),mt.targetSnapshot,!!mt.guardsResult);this.events.next(Jt)}),(0,Qe.h)(mt=>!!mt.guardsResult||(this.cancelNavigationTransition(mt,"",3),!1)),g(mt=>{if(mt.guards.canActivateChecks.length)return(0,W.of)(mt).pipe((0,Rt.b)(Jt=>{const vn=new la(Jt.id,this.urlSerializer.serialize(Jt.extractedUrl),this.urlSerializer.serialize(Jt.urlAfterRedirects),Jt.targetSnapshot);this.events.next(vn)}),(0,ve.w)(Jt=>{let vn=!1;return(0,W.of)(Jt).pipe(function Ra(f,v){return(0,ft.z)(w=>{const{targetSnapshot:_,guards:{canActivateChecks:I}}=w;if(!I.length)return(0,W.of)(w);let Z=0;return(0,Y.D)(I).pipe((0,Bt.b)(oe=>function Vs(f,v,w,_){const I=f.routeConfig,Z=f._resolve;return void 0!==I?.title&&!ys(I)&&(Z[Ct]=I.title),function ha(f,v,w,_){const I=function fa(f){return[...Object.keys(f),...Object.getOwnPropertySymbols(f)]}(f);if(0===I.length)return(0,W.of)({});const Z={};return(0,Y.D)(I).pipe((0,ft.z)(oe=>function vs(f,v,w,_){const I=ri(v)??_,Z=Vr(f,I);return Sn(Z.resolve?Z.resolve(v,w):I.runInContext(()=>Z(v,w)))}(f[oe],v,w,_).pipe((0,xt.P)(),(0,Rt.b)(lt=>{Z[oe]=lt}))),wn(1),(0,De.h)(Z),(0,Qt.K)(oe=>_n(oe)?He.E:(0,Ve._)(oe)))}(Z,f,v,_).pipe((0,me.U)(oe=>(f._resolvedData=oe,f.data=Yi(f,w).resolve,I&&ys(I)&&(f.data[Ct]=I.title),null)))}(oe.route,_,f,v)),(0,Rt.b)(()=>Z++),wn(1),(0,ft.z)(oe=>Z===I.length?(0,W.of)(w):He.E))})}(_.paramsInheritanceStrategy,this.environmentInjector),(0,Rt.b)({next:()=>vn=!0,complete:()=>{vn||this.cancelNavigationTransition(Jt,"",2)}}))}),(0,Rt.b)(Jt=>{const vn=new Is(Jt.id,this.urlSerializer.serialize(Jt.extractedUrl),this.urlSerializer.serialize(Jt.urlAfterRedirects),Jt.targetSnapshot);this.events.next(vn)}))}),g(mt=>{const Jt=vn=>{const Mr=[];vn.routeConfig?.loadComponent&&!vn.routeConfig._loadedComponent&&Mr.push(this.configLoader.loadComponent(vn.routeConfig).pipe((0,Rt.b)(Gn=>{vn.component=Gn}),(0,me.U)(()=>{})));for(const Gn of vn.children)Mr.push(...Jt(Gn));return Mr};return(0,ue.a)(Jt(mt.targetSnapshot.root)).pipe((0,Cn.d)(),(0,ye.q)(1))}),g(()=>this.afterPreactivation()),(0,me.U)(mt=>{const Jt=function Ei(f,v,w){const _=hi(f,v._root,w?w._root:void 0);return new bi(_,v)}(_.routeReuseStrategy,mt.targetSnapshot,mt.currentRouterState);return this.currentTransition=oe={...mt,targetRouterState:Jt},oe}),(0,Rt.b)(()=>{this.events.next(new Ki)}),((f,v,w,_)=>(0,me.U)(I=>(new xa(v,I.targetRouterState,I.currentRouterState,w,_).activate(f),I)))(this.rootContexts,_.routeReuseStrategy,mt=>this.events.next(mt),this.inputBindingEnabled),(0,ye.q)(1),(0,Rt.b)({next:mt=>{lt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dr(mt.id,this.urlSerializer.serialize(mt.extractedUrl),this.urlSerializer.serialize(mt.urlAfterRedirects))),_.titleStrategy?.updateTitle(mt.targetRouterState.snapshot),mt.resolve(!0)},complete:()=>{lt=!0}}),(0,Ce.R)(this.transitionAbortSubject.pipe((0,Rt.b)(mt=>{throw mt}))),(0,Me.x)(()=>{lt||It||this.cancelNavigationTransition(oe,"",1),this.currentNavigation?.id===oe.id&&(this.currentNavigation=null)}),(0,Qt.K)(mt=>{if(It=!0,qi(mt))this.events.next(new ui(oe.id,this.urlSerializer.serialize(oe.extractedUrl),mt.message,mt.cancellationCode)),function fi(f){return qi(f)&&at(f.url)}(mt)?this.events.next(new wo(mt.url)):oe.resolve(!1);else{this.events.next(new hr(oe.id,this.urlSerializer.serialize(oe.extractedUrl),mt,oe.targetSnapshot??void 0));try{oe.resolve(_.errorHandler(mt))}catch(Jt){oe.reject(Jt)}}return He.E}))}))}cancelNavigationTransition(_,I,Z){const oe=new ui(_.id,this.urlSerializer.serialize(_.extractedUrl),I,Z);this.events.next(oe),_.resolve(!1)}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function yt(f){return f!==Ln}let kt=(()=>{var f;class v{buildTitle(_){let I,Z=_.root;for(;void 0!==Z;)I=this.getResolvedTitleForRoute(Z)??I,Z=Z.children.find(oe=>oe.outlet===ke);return I}getResolvedTitleForRoute(_){return _.data[Ct]}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return(0,o.f3M)(Tn)},providedIn:"root"}),v})(),Tn=(()=>{var f;class v extends kt{constructor(_){super(),this.title=_}updateTitle(_){const I=this.buildTitle(_);void 0!==I&&this.title.setTitle(I)}}return(f=v).\u0275fac=function(_){return new(_||f)(o.LFG(Fe.Dx))},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})(),zn=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return(0,o.f3M)(bn)},providedIn:"root"}),v})();class Bn{shouldDetach(v){return!1}store(v,w){}shouldAttach(v){return!1}retrieve(v){return null}shouldReuseRoute(v,w){return v.routeConfig===w.routeConfig}}let bn=(()=>{var f;class v extends Bn{}return(f=v).\u0275fac=function(){let w;return function(I){return(w||(w=o.n5z(f)))(I||f)}}(),f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();const sr=new o.OlP("",{providedIn:"root",factory:()=>({})});let Qn=(()=>{var f;class v{}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:function(){return(0,o.f3M)(_r)},providedIn:"root"}),v})(),_r=(()=>{var f;class v{shouldProcessUrl(_){return!0}extract(_){return _}merge(_,I){return _}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();var Zr=function(f){return f[f.COMPLETE=0]="COMPLETE",f[f.FAILED=1]="FAILED",f[f.REDIRECTING=2]="REDIRECTING",f}(Zr||{});function Si(f,v){f.events.pipe((0,Qe.h)(w=>w instanceof dr||w instanceof ui||w instanceof hr||w instanceof Gr),(0,me.U)(w=>w instanceof dr||w instanceof Gr?Zr.COMPLETE:w instanceof ui&&(0===w.code||1===w.code)?Zr.REDIRECTING:Zr.FAILED),(0,Qe.h)(w=>w!==Zr.REDIRECTING),(0,ye.q)(1)).subscribe(()=>{v()})}function Oi(f){throw f}function xi(f,v,w){return v.parse("/")}const Dr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},to={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nr=(()=>{var f;class v{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,o.f3M)(o.c2e),this.isNgZoneEnabled=!1,this._events=new Ne.x,this.options=(0,o.f3M)(sr,{optional:!0})||{},this.pendingTasks=(0,o.f3M)(o.HDt),this.errorHandler=this.options.errorHandler||Oi,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||xi,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,o.f3M)(Qn),this.routeReuseStrategy=(0,o.f3M)(zn),this.titleStrategy=(0,o.f3M)(kt),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,o.f3M)(A,{optional:!0})?.flat()??[],this.navigationTransitions=(0,o.f3M)(Le),this.urlSerializer=(0,o.f3M)(pt),this.location=(0,o.f3M)(q.Ye),this.componentInputBindingEnabled=!!(0,o.f3M)(Ci,{optional:!0}),this.eventsSubscription=new tt.w0,this.isNgZoneEnabled=(0,o.f3M)(o.R0b)instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new nt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Pr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(_=>{this.lastSuccessfulId=_.id,this.currentPageId=this.browserPageId},_=>{this.console.warn(`Unhandled Navigation Error: ${_}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const _=this.navigationTransitions.events.subscribe(I=>{try{const{currentTransition:Z}=this.navigationTransitions;if(null===Z)return void(ns(I)&&this._events.next(I));if(I instanceof Ii)yt(Z.source)&&(this.browserUrlTree=Z.extractedUrl);else if(I instanceof Gr)this.rawUrlTree=Z.rawUrl;else if(I instanceof di){if("eager"===this.urlUpdateStrategy){if(!Z.extras.skipLocationChange){const oe=this.urlHandlingStrategy.merge(Z.urlAfterRedirects,Z.rawUrl);this.setBrowserUrl(oe,Z)}this.browserUrlTree=Z.urlAfterRedirects}}else if(I instanceof Ki)this.currentUrlTree=Z.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Z.urlAfterRedirects,Z.rawUrl),this.routerState=Z.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Z.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Z),this.browserUrlTree=Z.urlAfterRedirects);else if(I instanceof ui)0!==I.code&&1!==I.code&&(this.navigated=!0),(3===I.code||2===I.code)&&this.restoreHistory(Z);else if(I instanceof wo){const oe=this.urlHandlingStrategy.merge(I.url,Z.currentRawUrl),lt={skipLocationChange:Z.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yt(Z.source)};this.scheduleNavigation(oe,Ln,null,lt,{resolve:Z.resolve,reject:Z.reject,promise:Z.promise})}I instanceof hr&&this.restoreHistory(Z,!0),I instanceof dr&&(this.navigated=!0),ns(I)&&this._events.next(I)}catch(Z){this.navigationTransitions.transitionAbortSubject.next(Z)}});this.eventsSubscription.add(_)}resetRootComponentType(_){this.routerState.root.component=_,this.navigationTransitions.rootComponentType=_}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const _=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ln,_)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(_=>{const I="popstate"===_.type?"popstate":"hashchange";"popstate"===I&&setTimeout(()=>{this.navigateToSyncWithBrowser(_.url,I,_.state)},0)}))}navigateToSyncWithBrowser(_,I,Z){const oe={replaceUrl:!0},lt=Z?.navigationId?Z:null;if(Z){const mt={...Z};delete mt.navigationId,delete mt.\u0275routerPageId,0!==Object.keys(mt).length&&(oe.state=mt)}const It=this.parseUrl(_);this.scheduleNavigation(It,I,lt,oe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(_){this.config=_.map(Cr),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,this.eventsSubscription.unsubscribe()}createUrlTree(_,I={}){const{relativeTo:Z,queryParams:oe,fragment:lt,queryParamsHandling:It,preserveFragment:mt}=I,Jt=mt?this.currentUrlTree.fragment:lt;let Mr,vn=null;switch(It){case"merge":vn={...this.currentUrlTree.queryParams,...oe};break;case"preserve":vn=this.currentUrlTree.queryParams;break;default:vn=oe||null}null!==vn&&(vn=this.removeEmptyProps(vn));try{Mr=se(Z?Z.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof _[0]||!_[0].startsWith("/"))&&(_=[]),Mr=this.currentUrlTree.root}return ot(Mr,_,vn,Jt??null)}navigateByUrl(_,I={skipLocationChange:!1}){const Z=at(_)?_:this.parseUrl(_),oe=this.urlHandlingStrategy.merge(Z,this.rawUrlTree);return this.scheduleNavigation(oe,Ln,null,I)}navigate(_,I={skipLocationChange:!1}){return function tr(f){for(let v=0;v<f.length;v++)if(null==f[v])throw new o.vHH(4008,!1)}(_),this.navigateByUrl(this.createUrlTree(_,I),I)}serializeUrl(_){return this.urlSerializer.serialize(_)}parseUrl(_){let I;try{I=this.urlSerializer.parse(_)}catch(Z){I=this.malformedUriErrorHandler(Z,this.urlSerializer,_)}return I}isActive(_,I){let Z;if(Z=!0===I?{...Dr}:!1===I?{...to}:I,at(_))return xn(this.currentUrlTree,_,Z);const oe=this.parseUrl(_);return xn(this.currentUrlTree,oe,Z)}removeEmptyProps(_){return Object.keys(_).reduce((I,Z)=>{const oe=_[Z];return null!=oe&&(I[Z]=oe),I},{})}scheduleNavigation(_,I,Z,oe,lt){if(this.disposed)return Promise.resolve(!1);let It,mt,Jt;lt?(It=lt.resolve,mt=lt.reject,Jt=lt.promise):Jt=new Promise((Mr,Gn)=>{It=Mr,mt=Gn});const vn=this.pendingTasks.add();return Si(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(vn))}),this.navigationTransitions.handleNavigationRequest({source:I,restoredState:Z,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:_,extras:oe,resolve:It,reject:mt,promise:Jt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Jt.catch(Mr=>Promise.reject(Mr))}setBrowserUrl(_,I){const Z=this.urlSerializer.serialize(_);if(this.location.isCurrentPathEqualTo(Z)||I.extras.replaceUrl){const lt={...I.extras.state,...this.generateNgRouterState(I.id,this.browserPageId)};this.location.replaceState(Z,"",lt)}else{const oe={...I.extras.state,...this.generateNgRouterState(I.id,this.browserPageId+1)};this.location.go(Z,"",oe)}}restoreHistory(_,I=!1){if("computed"===this.canceledNavigationResolution){const oe=this.currentPageId-this.browserPageId;0!==oe?this.location.historyGo(oe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===oe&&(this.resetState(_),this.browserUrlTree=_.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(I&&this.resetState(_),this.resetUrlToCurrentUrlTree())}resetState(_){this.routerState=_.currentRouterState,this.currentUrlTree=_.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(_,I){return"computed"===this.canceledNavigationResolution?{navigationId:_,\u0275routerPageId:I}:{navigationId:_}}}return(f=v).\u0275fac=function(_){return new(_||f)},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();function ns(f){return!(f instanceof Ki||f instanceof wo)}let no=(()=>{var f;class v{constructor(_,I,Z,oe,lt,It){this.router=_,this.route=I,this.tabIndexAttribute=Z,this.renderer=oe,this.el=lt,this.locationStrategy=It,this.href=null,this.commands=null,this.onChanges=new Ne.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const mt=lt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===mt||"area"===mt,this.isAnchorElement?this.subscription=_.events.subscribe(Jt=>{Jt instanceof dr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(_){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",_)}ngOnChanges(_){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(_){null!=_?(this.commands=Array.isArray(_)?_:[_],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(_,I,Z,oe,lt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==_||I||Z||oe||lt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const _=null===this.href?null:(0,o.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",_)}applyAttributeValue(_,I){const Z=this.renderer,oe=this.el.nativeElement;null!==I?Z.setAttribute(oe,_,I):Z.removeAttribute(oe,_)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(f=v).\u0275fac=function(_){return new(_||f)(o.Y36(nr),o.Y36(Fi),o.$8M("tabindex"),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(q.S$))},f.\u0275dir=o.lG2({type:f,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(_,I){1&_&&o.NdJ("click",function(oe){return I.onClick(oe.button,oe.ctrlKey,oe.shiftKey,oe.altKey,oe.metaKey)}),2&_&&o.uIk("target",I.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",o.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",o.VuI],replaceUrl:["replaceUrl","replaceUrl",o.VuI],routerLink:"routerLink"},standalone:!0,features:[o.Xq5,o.TTD]}),v})(),Kr=(()=>{var f;class v{get isActive(){return this._isActive}constructor(_,I,Z,oe,lt){this.router=_,this.element=I,this.renderer=Z,this.cdr=oe,this.link=lt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new o.vpe,this.routerEventsSubscription=_.events.subscribe(It=>{It instanceof dr&&this.update()})}ngAfterContentInit(){(0,W.of)(this.links.changes,(0,W.of)(null)).pipe((0,Be.J)()).subscribe(_=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const _=[...this.links.toArray(),this.link].filter(I=>!!I).map(I=>I.onChanges);this.linkInputChangesSubscription=(0,Y.D)(_).pipe((0,Be.J)()).subscribe(I=>{this._isActive!==this.isLinkActive(this.router)(I)&&this.update()})}set routerLinkActive(_){const I=Array.isArray(_)?_:_.split(" ");this.classes=I.filter(Z=>!!Z)}ngOnChanges(_){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const _=this.hasActiveLinks();this._isActive!==_&&(this._isActive=_,this.cdr.markForCheck(),this.classes.forEach(I=>{_?this.renderer.addClass(this.element.nativeElement,I):this.renderer.removeClass(this.element.nativeElement,I)}),_&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(_))})}isLinkActive(_){const I=function Mi(f){return!!f.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Z=>!!Z.urlTree&&_.isActive(Z.urlTree,I)}hasActiveLinks(){const _=this.isLinkActive(this.router);return this.link&&_(this.link)||this.links.some(_)}}return(f=v).\u0275fac=function(_){return new(_||f)(o.Y36(nr),o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(no,8))},f.\u0275dir=o.lG2({type:f,selectors:[["","routerLinkActive",""]],contentQueries:function(_,I,Z){if(1&_&&o.Suo(Z,no,5),2&_){let oe;o.iGM(oe=o.CRH())&&(I.links=oe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[o.TTD]}),v})();class Ys{}let ol=(()=>{var f;class v{constructor(_,I,Z,oe,lt){this.router=_,this.injector=Z,this.preloadingStrategy=oe,this.loader=lt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Qe.h)(_=>_ instanceof dr),(0,Bt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_,I){const Z=[];for(const oe of I){oe.providers&&!oe._injector&&(oe._injector=(0,o.MMx)(oe.providers,_,`Route: ${oe.path}`));const lt=oe._injector??_,It=oe._loadedInjector??lt;(oe.loadChildren&&!oe._loadedRoutes&&void 0===oe.canLoad||oe.loadComponent&&!oe._loadedComponent)&&Z.push(this.preloadConfig(lt,oe)),(oe.children||oe._loadedRoutes)&&Z.push(this.processRoutes(It,oe.children??oe._loadedRoutes))}return(0,Y.D)(Z).pipe((0,Be.J)())}preloadConfig(_,I){return this.preloadingStrategy.preload(I,()=>{let Z;Z=I.loadChildren&&void 0===I.canLoad?this.loader.loadChildren(_,I):(0,W.of)(null);const oe=Z.pipe((0,ft.z)(lt=>null===lt?(0,W.of)(void 0):(I._loadedRoutes=lt.routes,I._loadedInjector=lt.injector,this.processRoutes(lt.injector??_,lt.routes))));if(I.loadComponent&&!I._loadedComponent){const lt=this.loader.loadComponent(I);return(0,Y.D)([oe,lt]).pipe((0,Be.J)())}return oe})}}return(f=v).\u0275fac=function(_){return new(_||f)(o.LFG(nr),o.LFG(o.Sil),o.LFG(o.lqb),o.LFG(Ys),o.LFG(fe))},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),v})();const Hi=new o.OlP("");let pa=(()=>{var f;class v{constructor(_,I,Z,oe,lt={}){this.urlSerializer=_,this.transitions=I,this.viewportScroller=Z,this.zone=oe,this.options=lt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},lt.scrollPositionRestoration=lt.scrollPositionRestoration||"disabled",lt.anchorScrolling=lt.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(_=>{_ instanceof Ii?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_.navigationTrigger,this.restoredId=_.restoredState?_.restoredState.navigationId:0):_ instanceof dr?(this.lastId=_.id,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.urlAfterRedirects).fragment)):_ instanceof Gr&&0===_.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(_,this.urlSerializer.parse(_.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(_=>{_ instanceof xr&&(_.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_.position):_.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_,I){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xr(_,"popstate"===this.lastSource?this.store[this.restoredId]:null,I))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return(f=v).\u0275fac=function(_){o.$Z()},f.\u0275prov=o.Yz7({token:f,factory:f.\u0275fac}),v})();function Ui(f,v){return{\u0275kind:f,\u0275providers:v}}function dn(){const f=(0,o.f3M)(o.zs3);return v=>{const w=f.get(o.z2F);if(v!==w.components[0])return;const _=f.get(nr),I=f.get(ma);1===f.get(_a)&&_.initialNavigation(),f.get(Sr,null,o.XFs.Optional)?.setUpPreloading(),f.get(Hi,null,o.XFs.Optional)?.init(),_.resetRootComponentType(w.componentTypes[0]),I.closed||(I.next(),I.complete(),I.unsubscribe())}}const ma=new o.OlP("",{factory:()=>new Ne.x}),_a=new o.OlP("",{providedIn:"root",factory:()=>1}),Sr=new o.OlP("");function fo(f){return Ui(0,[{provide:Sr,useExisting:ol},{provide:Ys,useExisting:f}])}const Mt=new o.OlP("ROUTER_FORROOT_GUARD"),Rn=[q.Ye,{provide:pt,useClass:vt},nr,Ni,{provide:Fi,useFactory:function sl(f){return f.routerState.root},deps:[nr]},fe,[]];function js(){return new o.PXZ("Router",nr)}let La=(()=>{var f;class v{constructor(_){}static forRoot(_,I){return{ngModule:v,providers:[Rn,[],{provide:A,multi:!0,useValue:_},{provide:Mt,useFactory:ei,deps:[[nr,new o.FiY,new o.tp0]]},{provide:sr,useValue:I||{}},I?.useHash?{provide:q.S$,useClass:q.Do}:{provide:q.S$,useClass:q.b0},{provide:Hi,useFactory:()=>{const f=(0,o.f3M)(q.EM),v=(0,o.f3M)(o.R0b),w=(0,o.f3M)(sr),_=(0,o.f3M)(Le),I=(0,o.f3M)(pt);return w.scrollOffset&&f.setOffset(w.scrollOffset),new pa(I,_,f,v,w)}},I?.preloadingStrategy?fo(I.preloadingStrategy).\u0275providers:[],{provide:o.PXZ,multi:!0,useFactory:js},I?.initialNavigation?rs(I):[],I?.bindToComponentInputs?Ui(8,[ar,{provide:Ci,useExisting:ar}]).\u0275providers:[],[{provide:Hs,useFactory:dn},{provide:o.tb,multi:!0,useExisting:Hs}]]}}static forChild(_){return{ngModule:v,providers:[{provide:A,multi:!0,useValue:_}]}}}return(f=v).\u0275fac=function(_){return new(_||f)(o.LFG(Mt,8))},f.\u0275mod=o.oAB({type:f}),f.\u0275inj=o.cJS({}),v})();function ei(f){return"guarded"}function rs(f){return["disabled"===f.initialNavigation?Ui(3,[{provide:o.ip1,multi:!0,useFactory:()=>{const v=(0,o.f3M)(nr);return()=>{v.setUpLocationChangeListener()}}},{provide:_a,useValue:2}]).\u0275providers:[],"enabledBlocking"===f.initialNavigation?Ui(2,[{provide:_a,useValue:0},{provide:o.ip1,multi:!0,deps:[o.zs3],useFactory:v=>{const w=v.get(q.V_,Promise.resolve());return()=>w.then(()=>new Promise(_=>{const I=v.get(nr),Z=v.get(ma);Si(I,()=>{_(!0)}),v.get(Le).afterPreactivation=()=>(_(!0),Z.closed?(0,W.of)(void 0):Z),I.initialNavigation()}))}}]).\u0275providers:[]]}const Hs=new o.OlP("")},3106:(wt,Pe,C)=>{C.d(Pe,{Z:()=>tt});var o=C(9058),l=C(4537),R=C(534),K=C(7879);class Y{constructor(X,Ye){this._delegate=X,this.firebase=Ye,(0,R._addComponent)(X,new l.wA("app-compat",()=>this,"PUBLIC")),this.container=X.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(X){this._delegate.automaticDataCollectionEnabled=X}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(X=>{this._delegate.checkDestroyed(),X()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,R.deleteApp)(this._delegate)))}_getService(X,Ye=R._DEFAULT_ENTRY_NAME){var ut;this._delegate.checkDestroyed();const Ne=this._delegate.container.getProvider(X);return!Ne.isInitialized()&&"EXPLICIT"===(null===(ut=Ne.getComponent())||void 0===ut?void 0:ut.instantiationMode)&&Ne.initialize(),Ne.getImmediate({identifier:Ye})}_removeServiceInstance(X,Ye=R._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(X).clearInstance(Ye)}_addComponent(X){(0,R._addComponent)(this._delegate,X)}_addOrOverwriteComponent(X){(0,R._addOrOverwriteComponent)(this._delegate,X)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const re=new o.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."}),V=function ie(){const $e=function ue($e){const X={},Ye={__esModule:!0,initializeApp:function q(rt,Qe={}){const ft=R.initializeApp(rt,Qe);if((0,o.r3)(X,ft.name))return X[ft.name];const xt=new $e(ft,Ye);return X[ft.name]=xt,xt},app:Ne,registerVersion:R.registerVersion,setLogLevel:R.setLogLevel,onLog:R.onLog,apps:null,SDK_VERSION:R.SDK_VERSION,INTERNAL:{registerComponent:function ve(rt){const Qe=rt.name,ft=Qe.replace("-compat","");if(R._registerComponent(rt)&&"PUBLIC"===rt.type){const xt=(Bt=Ne())=>{if("function"!=typeof Bt[ft])throw re.create("invalid-app-argument",{appName:Qe});return Bt[ft]()};void 0!==rt.serviceProps&&(0,o.ZB)(xt,rt.serviceProps),Ye[ft]=xt,$e.prototype[ft]=function(...Bt){return this._getService.bind(this,Qe).apply(this,rt.multipleInstances?Bt:[])}}return"PUBLIC"===rt.type?Ye[ft]:null},removeApp:function ut(rt){delete X[rt]},useAsService:function ye(rt,Qe){return"serverAuth"===Qe?null:Qe},modularAPIs:R}};function Ne(rt){if(!(0,o.r3)(X,rt=rt||R._DEFAULT_ENTRY_NAME))throw re.create("no-app",{appName:rt});return X[rt]}return Ye.default=Ye,Object.defineProperty(Ye,"apps",{get:function me(){return Object.keys(X).map(rt=>X[rt])}}),Ne.App=$e,Ye}(Y);return $e.INTERNAL=Object.assign(Object.assign({},$e.INTERNAL),{createFirebaseNamespace:ie,extendNamespace:function X(Ye){(0,o.ZB)($e,Ye)},createSubscribe:o.ne,ErrorFactory:o.LL,deepExtend:o.ZB}),$e}(),Q=new K.Yd("@firebase/app-compat");if((0,o.jU)()&&void 0!==self.firebase){Q.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const $e=self.firebase.SDK_VERSION;$e&&$e.indexOf("LITE")>=0&&Q.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 tt=V;!function He($e){(0,R.registerVersion)("@firebase/app-compat","0.2.13",$e)}()},534:(wt,Pe,C)=>{C.r(Pe),C.d(Pe,{FirebaseError:()=>K.ZR,SDK_VERSION:()=>y,_DEFAULT_ENTRY_NAME:()=>ze,_addComponent:()=>nt,_addOrOverwriteComponent:()=>Te,_apps:()=>Ie,_clearComponents:()=>Je,_components:()=>pe,_getProvider:()=>dt,_registerComponent:()=>Ke,_removeServiceInstance:()=>je,deleteApp:()=>it,getApp:()=>ee,getApps:()=>Ae,initializeApp:()=>P,onLog:()=>Pt,registerVersion:()=>Et,setLogLevel:()=>Ht});var o=C(5861),l=C(4537),R=C(7879),K=C(9058);const Y=(le,Ee)=>Ee.some(We=>le instanceof We);let W,re;const V=new WeakMap,Q=new WeakMap,be=new WeakMap,Ve=new WeakMap,He=new WeakMap;let X={get(le,Ee,We){if(le instanceof IDBTransaction){if("done"===Ee)return Q.get(le);if("objectStoreNames"===Ee)return le.objectStoreNames||be.get(le);if("store"===Ee)return We.objectStoreNames[1]?void 0:We.objectStore(We.objectStoreNames[0])}return q(le[Ee])},set:(le,Ee,We)=>(le[Ee]=We,!0),has:(le,Ee)=>le instanceof IDBTransaction&&("done"===Ee||"store"===Ee)||Ee in le};function Ne(le){return"function"==typeof le?function ut(le){return le!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function ie(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(le)?function(...Ee){return le.apply(me(this),Ee),q(V.get(this))}:function(...Ee){return q(le.apply(me(this),Ee))}:function(Ee,...We){const bt=le.call(me(this),Ee,...We);return be.set(bt,Ee.sort?Ee.sort():[Ee]),q(bt)}}(le):(le instanceof IDBTransaction&&function $e(le){if(Q.has(le))return;const Ee=new Promise((We,bt)=>{const ht=()=>{le.removeEventListener("complete",Ut),le.removeEventListener("error",Gt),le.removeEventListener("abort",Gt)},Ut=()=>{We(),ht()},Gt=()=>{bt(le.error||new DOMException("AbortError","AbortError")),ht()};le.addEventListener("complete",Ut),le.addEventListener("error",Gt),le.addEventListener("abort",Gt)});Q.set(le,Ee)}(le),Y(le,function ue(){return W||(W=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(le,X):le)}function q(le){if(le instanceof IDBRequest)return function tt(le){const Ee=new Promise((We,bt)=>{const ht=()=>{le.removeEventListener("success",Ut),le.removeEventListener("error",Gt)},Ut=()=>{We(q(le.result)),ht()},Gt=()=>{bt(le.error),ht()};le.addEventListener("success",Ut),le.addEventListener("error",Gt)});return Ee.then(We=>{We instanceof IDBCursor&&V.set(We,le)}).catch(()=>{}),He.set(Ee,le),Ee}(le);if(Ve.has(le))return Ve.get(le);const Ee=Ne(le);return Ee!==le&&(Ve.set(le,Ee),He.set(Ee,le)),Ee}const me=le=>He.get(le),rt=["get","getKey","getAll","getAllKeys","count"],Qe=["put","add","delete","clear"],ft=new Map;function xt(le,Ee){if(!(le instanceof IDBDatabase)||Ee in le||"string"!=typeof Ee)return;if(ft.get(Ee))return ft.get(Ee);const We=Ee.replace(/FromIndex$/,""),bt=Ee!==We,ht=Qe.includes(We);if(!(We in(bt?IDBIndex:IDBObjectStore).prototype)||!ht&&!rt.includes(We))return;const Ut=function(){var Gt=(0,o.Z)(function*(Pn,...$n){const Nn=this.transaction(Pn,ht?"readwrite":"readonly");let ir=Nn.store;return bt&&(ir=ir.index($n.shift())),(yield Promise.all([ir[We](...$n),ht&&Nn.done]))[0]});return function($n){return Gt.apply(this,arguments)}}();return ft.set(Ee,Ut),Ut}!function Ye(le){X=le(X)}(le=>({...le,get:(Ee,We,bt)=>xt(Ee,We)||le.get(Ee,We,bt),has:(Ee,We)=>!!xt(Ee,We)||le.has(Ee,We)}));class Bt{constructor(Ee){this.container=Ee}getPlatformInfoString(){return this.container.getProviders().map(We=>{if(function Rt(le){const Ee=le.getComponent();return"VERSION"===Ee?.type}(We)){const bt=We.getImmediate();return`${bt.library}/${bt.version}`}return null}).filter(We=>We).join(" ")}}const Qt="@firebase/app",sn=new R.Yd("@firebase/app"),ze="[DEFAULT]",G={[Qt]:"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"},Ie=new Map,pe=new Map;function nt(le,Ee){try{le.container.addComponent(Ee)}catch(We){sn.debug(`Component ${Ee.name} failed to register with FirebaseApp ${le.name}`,We)}}function Te(le,Ee){le.container.addOrOverwriteComponent(Ee)}function Ke(le){const Ee=le.name;if(pe.has(Ee))return sn.debug(`There were multiple attempts to register component ${Ee}.`),!1;pe.set(Ee,le);for(const We of Ie.values())nt(We,le);return!0}function dt(le,Ee){const We=le.container.getProvider("heartbeat").getImmediate({optional:!0});return We&&We.triggerHeartbeat(),le.container.getProvider(Ee)}function je(le,Ee,We=ze){dt(le,Ee).clearInstance(We)}function Je(){pe.clear()}const vt=new K.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","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 Re{constructor(Ee,We,bt){this._isDeleted=!1,this._options=Object.assign({},Ee),this._config=Object.assign({},We),this._name=We.name,this._automaticDataCollectionEnabled=We.automaticDataCollectionEnabled,this._container=bt,this.container.addComponent(new l.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(Ee){this.checkDestroyed(),this._automaticDataCollectionEnabled=Ee}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(Ee){this._isDeleted=Ee}checkDestroyed(){if(this.isDeleted)throw vt.create("app-deleted",{appName:this._name})}}const y="9.23.0";function P(le,Ee={}){let We=le;"object"!=typeof Ee&&(Ee={name:Ee});const bt=Object.assign({name:ze,automaticDataCollectionEnabled:!1},Ee),ht=bt.name;if("string"!=typeof ht||!ht)throw vt.create("bad-app-name",{appName:String(ht)});if(We||(We=(0,K.aH)()),!We)throw vt.create("no-options");const Ut=Ie.get(ht);if(Ut){if((0,K.vZ)(We,Ut.options)&&(0,K.vZ)(bt,Ut.config))return Ut;throw vt.create("duplicate-app",{appName:ht})}const Gt=new l.H0(ht);for(const $n of pe.values())Gt.addComponent($n);const Pn=new Re(We,bt,Gt);return Ie.set(ht,Pn),Pn}function ee(le=ze){const Ee=Ie.get(le);if(!Ee&&le===ze&&(0,K.aH)())return P();if(!Ee)throw vt.create("no-app",{appName:le});return Ee}function Ae(){return Array.from(Ie.values())}function it(le){return St.apply(this,arguments)}function St(){return(St=(0,o.Z)(function*(le){const Ee=le.name;Ie.has(Ee)&&(Ie.delete(Ee),yield Promise.all(le.container.getProviders().map(We=>We.delete())),le.isDeleted=!0)})).apply(this,arguments)}function Et(le,Ee,We){var bt;let ht=null!==(bt=G[le])&&void 0!==bt?bt:le;We&&(ht+=`-${We}`);const Ut=ht.match(/\s|\//),Gt=Ee.match(/\s|\//);if(Ut||Gt){const Pn=[`Unable to register library "${ht}" with version "${Ee}":`];return Ut&&Pn.push(`library name "${ht}" contains illegal characters (whitespace or "/")`),Ut&&Gt&&Pn.push("and"),Gt&&Pn.push(`version name "${Ee}" contains illegal characters (whitespace or "/")`),void sn.warn(Pn.join(" "))}Ke(new l.wA(`${ht}-version`,()=>({library:ht,version:Ee}),"VERSION"))}function Pt(le,Ee){if(null!==le&&"function"!=typeof le)throw vt.create("invalid-log-argument");(0,R.Am)(le,Ee)}function Ht(le){(0,R.Ub)(le)}const Yt="firebase-heartbeat-database",cn=1,Oe="firebase-heartbeat-store";let z=null;function U(){return z||(z=function ve(le,Ee,{blocked:We,upgrade:bt,blocking:ht,terminated:Ut}={}){const Gt=indexedDB.open(le,Ee),Pn=q(Gt);return bt&&Gt.addEventListener("upgradeneeded",$n=>{bt(q(Gt.result),$n.oldVersion,$n.newVersion,q(Gt.transaction),$n)}),We&&Gt.addEventListener("blocked",$n=>We($n.oldVersion,$n.newVersion,$n)),Pn.then($n=>{Ut&&$n.addEventListener("close",()=>Ut()),ht&&$n.addEventListener("versionchange",Nn=>ht(Nn.oldVersion,Nn.newVersion,Nn))}).catch(()=>{}),Pn}(Yt,cn,{upgrade:(le,Ee)=>{0===Ee&&le.createObjectStore(Oe)}}).catch(le=>{throw vt.create("idb-open",{originalErrorMessage:le.message})})),z}function S(){return(S=(0,o.Z)(function*(le){try{return yield(yield U()).transaction(Oe).objectStore(Oe).get(L(le))}catch(Ee){if(Ee instanceof K.ZR)sn.warn(Ee.message);else{const We=vt.create("idb-get",{originalErrorMessage:Ee?.message});sn.warn(We.message)}}})).apply(this,arguments)}function H(le,Ee){return j.apply(this,arguments)}function j(){return(j=(0,o.Z)(function*(le,Ee){try{const bt=(yield U()).transaction(Oe,"readwrite");yield bt.objectStore(Oe).put(Ee,L(le)),yield bt.done}catch(We){if(We instanceof K.ZR)sn.warn(We.message);else{const bt=vt.create("idb-set",{originalErrorMessage:We?.message});sn.warn(bt.message)}}})).apply(this,arguments)}function L(le){return`${le.name}!${le.options.appId}`}class ce{constructor(Ee){this.container=Ee,this._heartbeatsCache=null;const We=this.container.getProvider("app").getImmediate();this._storage=new de(We),this._heartbeatsCachePromise=this._storage.read().then(bt=>(this._heartbeatsCache=bt,bt))}triggerHeartbeat(){var Ee=this;return(0,o.Z)(function*(){const bt=Ee.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ht=Se();if(null===Ee._heartbeatsCache&&(Ee._heartbeatsCache=yield Ee._heartbeatsCachePromise),Ee._heartbeatsCache.lastSentHeartbeatDate!==ht&&!Ee._heartbeatsCache.heartbeats.some(Ut=>Ut.date===ht))return Ee._heartbeatsCache.heartbeats.push({date:ht,agent:bt}),Ee._heartbeatsCache.heartbeats=Ee._heartbeatsCache.heartbeats.filter(Ut=>{const Gt=new Date(Ut.date).valueOf();return Date.now()-Gt<=2592e6}),Ee._storage.overwrite(Ee._heartbeatsCache)})()}getHeartbeatsHeader(){var Ee=this;return(0,o.Z)(function*(){if(null===Ee._heartbeatsCache&&(yield Ee._heartbeatsCachePromise),null===Ee._heartbeatsCache||0===Ee._heartbeatsCache.heartbeats.length)return"";const We=Se(),{heartbeatsToSend:bt,unsentEntries:ht}=function at(le,Ee=1024){const We=[];let bt=le.slice();for(const ht of le){const Ut=We.find(Gt=>Gt.agent===ht.agent);if(Ut){if(Ut.dates.push(ht.date),se(We)>Ee){Ut.dates.pop();break}}else if(We.push({agent:ht.agent,dates:[ht.date]}),se(We)>Ee){We.pop();break}bt=bt.slice(1)}return{heartbeatsToSend:We,unsentEntries:bt}}(Ee._heartbeatsCache.heartbeats),Ut=(0,K.L)(JSON.stringify({version:2,heartbeats:bt}));return Ee._heartbeatsCache.lastSentHeartbeatDate=We,ht.length>0?(Ee._heartbeatsCache.heartbeats=ht,yield Ee._storage.overwrite(Ee._heartbeatsCache)):(Ee._heartbeatsCache.heartbeats=[],Ee._storage.overwrite(Ee._heartbeatsCache)),Ut})()}}function Se(){return(new Date).toISOString().substring(0,10)}class de{constructor(Ee){this.app=Ee,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,o.Z)(function*(){return!!(0,K.hl)()&&(0,K.eu)().then(()=>!0).catch(()=>!1)})()}read(){var Ee=this;return(0,o.Z)(function*(){return(yield Ee._canUseIndexedDBPromise)&&(yield function B(le){return S.apply(this,arguments)}(Ee.app))||{heartbeats:[]}})()}overwrite(Ee){var We=this;return(0,o.Z)(function*(){var bt;if(yield We._canUseIndexedDBPromise){const Ut=yield We.read();return H(We.app,{lastSentHeartbeatDate:null!==(bt=Ee.lastSentHeartbeatDate)&&void 0!==bt?bt:Ut.lastSentHeartbeatDate,heartbeats:Ee.heartbeats})}})()}add(Ee){var We=this;return(0,o.Z)(function*(){var bt;if(yield We._canUseIndexedDBPromise){const Ut=yield We.read();return H(We.app,{lastSentHeartbeatDate:null!==(bt=Ee.lastSentHeartbeatDate)&&void 0!==bt?bt:Ut.lastSentHeartbeatDate,heartbeats:[...Ut.heartbeats,...Ee.heartbeats]})}})()}}function se(le){return(0,K.L)(JSON.stringify({version:2,heartbeats:le})).length}!function ot(le){Ke(new l.wA("platform-logger",Ee=>new Bt(Ee),"PRIVATE")),Ke(new l.wA("heartbeat",Ee=>new ce(Ee),"PRIVATE")),Et(Qt,"0.9.13",le),Et(Qt,"0.9.13","esm2017"),Et("fire-js","")}("")},4537:(wt,Pe,C)=>{C.d(Pe,{H0:()=>ue,wA:()=>R});var o=C(5861),l=C(9058);class R{constructor(V,Q,be){this.name=V,this.instanceFactory=Q,this.type=be,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(V){return this.instantiationMode=V,this}setMultipleInstances(V){return this.multipleInstances=V,this}setServiceProps(V){return this.serviceProps=V,this}setInstanceCreatedCallback(V){return this.onInstanceCreated=V,this}}const K="[DEFAULT]";class Y{constructor(V,Q){this.name=V,this.container=Q,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(V){const Q=this.normalizeInstanceIdentifier(V);if(!this.instancesDeferred.has(Q)){const be=new l.BH;if(this.instancesDeferred.set(Q,be),this.isInitialized(Q)||this.shouldAutoInitialize())try{const Ve=this.getOrInitializeService({instanceIdentifier:Q});Ve&&be.resolve(Ve)}catch{}}return this.instancesDeferred.get(Q).promise}getImmediate(V){var Q;const be=this.normalizeInstanceIdentifier(V?.identifier),Ve=null!==(Q=V?.optional)&&void 0!==Q&&Q;if(!this.isInitialized(be)&&!this.shouldAutoInitialize()){if(Ve)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:be})}catch(He){if(Ve)return null;throw He}}getComponent(){return this.component}setComponent(V){if(V.name!==this.name)throw Error(`Mismatching Component ${V.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=V,this.shouldAutoInitialize()){if(function re(ie){return"EAGER"===ie.instantiationMode}(V))try{this.getOrInitializeService({instanceIdentifier:K})}catch{}for(const[Q,be]of this.instancesDeferred.entries()){const Ve=this.normalizeInstanceIdentifier(Q);try{const He=this.getOrInitializeService({instanceIdentifier:Ve});be.resolve(He)}catch{}}}}clearInstance(V=K){this.instancesDeferred.delete(V),this.instancesOptions.delete(V),this.instances.delete(V)}delete(){var V=this;return(0,o.Z)(function*(){const Q=Array.from(V.instances.values());yield Promise.all([...Q.filter(be=>"INTERNAL"in be).map(be=>be.INTERNAL.delete()),...Q.filter(be=>"_delete"in be).map(be=>be._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(V=K){return this.instances.has(V)}getOptions(V=K){return this.instancesOptions.get(V)||{}}initialize(V={}){const{options:Q={}}=V,be=this.normalizeInstanceIdentifier(V.instanceIdentifier);if(this.isInitialized(be))throw Error(`${this.name}(${be}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ve=this.getOrInitializeService({instanceIdentifier:be,options:Q});for(const[He,tt]of this.instancesDeferred.entries())be===this.normalizeInstanceIdentifier(He)&&tt.resolve(Ve);return Ve}onInit(V,Q){var be;const Ve=this.normalizeInstanceIdentifier(Q),He=null!==(be=this.onInitCallbacks.get(Ve))&&void 0!==be?be:new Set;He.add(V),this.onInitCallbacks.set(Ve,He);const tt=this.instances.get(Ve);return tt&&V(tt,Ve),()=>{He.delete(V)}}invokeOnInitCallbacks(V,Q){const be=this.onInitCallbacks.get(Q);if(be)for(const Ve of be)try{Ve(V,Q)}catch{}}getOrInitializeService({instanceIdentifier:V,options:Q={}}){let be=this.instances.get(V);if(!be&&this.component&&(be=this.component.instanceFactory(this.container,{instanceIdentifier:(ie=V,ie===K?void 0:ie),options:Q}),this.instances.set(V,be),this.instancesOptions.set(V,Q),this.invokeOnInitCallbacks(be,V),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,V,be)}catch{}var ie;return be||null}normalizeInstanceIdentifier(V=K){return this.component?this.component.multipleInstances?V:K:V}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class ue{constructor(V){this.name=V,this.providers=new Map}addComponent(V){const Q=this.getProvider(V.name);if(Q.isComponentSet())throw new Error(`Component ${V.name} has already been registered with ${this.name}`);Q.setComponent(V)}addOrOverwriteComponent(V){this.getProvider(V.name).isComponentSet()&&this.providers.delete(V.name),this.addComponent(V)}getProvider(V){if(this.providers.has(V))return this.providers.get(V);const Q=new Y(V,this);return this.providers.set(V,Q),Q}getProviders(){return Array.from(this.providers.values())}}},7879:(wt,Pe,C)=>{C.d(Pe,{Am:()=>ie,Ub:()=>ue,Yd:()=>re,in:()=>l});const o=[];var l=function(V){return V[V.DEBUG=0]="DEBUG",V[V.VERBOSE=1]="VERBOSE",V[V.INFO=2]="INFO",V[V.WARN=3]="WARN",V[V.ERROR=4]="ERROR",V[V.SILENT=5]="SILENT",V}(l||{});const R={debug:l.DEBUG,verbose:l.VERBOSE,info:l.INFO,warn:l.WARN,error:l.ERROR,silent:l.SILENT},K=l.INFO,Y={[l.DEBUG]:"log",[l.VERBOSE]:"log",[l.INFO]:"info",[l.WARN]:"warn",[l.ERROR]:"error"},W=(V,Q,...be)=>{if(Q<V.logLevel)return;const Ve=(new Date).toISOString(),He=Y[Q];if(!He)throw new Error(`Attempted to log a message with an invalid logType (value: ${Q})`);console[He](`[${Ve}] ${V.name}:`,...be)};class re{constructor(Q){this.name=Q,this._logLevel=K,this._logHandler=W,this._userLogHandler=null,o.push(this)}get logLevel(){return this._logLevel}set logLevel(Q){if(!(Q in l))throw new TypeError(`Invalid value "${Q}" assigned to \`logLevel\``);this._logLevel=Q}setLogLevel(Q){this._logLevel="string"==typeof Q?R[Q]:Q}get logHandler(){return this._logHandler}set logHandler(Q){if("function"!=typeof Q)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=Q}get userLogHandler(){return this._userLogHandler}set userLogHandler(Q){this._userLogHandler=Q}debug(...Q){this._userLogHandler&&this._userLogHandler(this,l.DEBUG,...Q),this._logHandler(this,l.DEBUG,...Q)}log(...Q){this._userLogHandler&&this._userLogHandler(this,l.VERBOSE,...Q),this._logHandler(this,l.VERBOSE,...Q)}info(...Q){this._userLogHandler&&this._userLogHandler(this,l.INFO,...Q),this._logHandler(this,l.INFO,...Q)}warn(...Q){this._userLogHandler&&this._userLogHandler(this,l.WARN,...Q),this._logHandler(this,l.WARN,...Q)}error(...Q){this._userLogHandler&&this._userLogHandler(this,l.ERROR,...Q),this._logHandler(this,l.ERROR,...Q)}}function ue(V){o.forEach(Q=>{Q.setLogLevel(V)})}function ie(V,Q){for(const be of o){let Ve=null;Q&&Q.level&&(Ve=R[Q.level]),be.userLogHandler=null===V?null:(He,tt,...$e)=>{const X=$e.map(Ye=>{if(null==Ye)return null;if("string"==typeof Ye)return Ye;if("number"==typeof Ye||"boolean"==typeof Ye)return Ye.toString();if(Ye instanceof Error)return Ye.message;try{return JSON.stringify(Ye)}catch{return null}}).filter(Ye=>Ye).join(" ");tt>=(Ve??He.logLevel)&&V({level:l[tt].toLowerCase(),message:X,args:$e,type:He.name})}}}},3182:(wt,Pe,C)=>{C.d(Pe,{C6:()=>o.getApps,Mq:()=>o.getApp});var o=C(534);(0,o.registerVersion)("firebase","9.23.0","app")},7142:(wt,Pe,C)=>{C.d(Pe,{Z:()=>o.Z});var o=C(3106);o.Z.registerVersion("firebase","9.23.0","app-compat")},2425:(wt,Pe,C)=>{C.d(Pe,{FN:()=>qt,PR:()=>ye,Rh:()=>wn,_W:()=>Qt});var o=C(1180),l=C(5879),R=C(6825),K=C(6814),Y=C(8645),W=C(6593);const re=["toast-component",""];function ue(Me,Ce){if(1&Me){const Be=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",function(){l.CHM(Be);const ke=l.oxw();return l.KtG(ke.remove())}),l.TgZ(1,"span",6),l._uU(2,"\xd7"),l.qZA()()}}function ie(Me,Ce){if(1&Me&&(l.ynx(0),l._uU(1),l.BQk()),2&Me){const Be=l.oxw(2);l.xp6(1),l.hij("[",Be.duplicatesCount+1,"]")}}function V(Me,Ce){if(1&Me&&(l.TgZ(0,"div"),l._uU(1),l.YNc(2,ie,2,1,"ng-container",4),l.qZA()),2&Me){const Be=l.oxw();l.Tol(Be.options.titleClass),l.uIk("aria-label",Be.title),l.xp6(1),l.hij(" ",Be.title," "),l.xp6(1),l.Q6J("ngIf",Be.duplicatesCount)}}function Q(Me,Ce){if(1&Me&&l._UZ(0,"div",7),2&Me){const Be=l.oxw();l.Tol(Be.options.messageClass),l.Q6J("innerHTML",Be.message,l.oJD)}}function be(Me,Ce){if(1&Me&&(l.TgZ(0,"div",8),l._uU(1),l.qZA()),2&Me){const Be=l.oxw();l.Tol(Be.options.messageClass),l.uIk("aria-label",Be.message),l.xp6(1),l.hij(" ",Be.message," ")}}function Ve(Me,Ce){if(1&Me&&(l.TgZ(0,"div"),l._UZ(1,"div",9),l.qZA()),2&Me){const Be=l.oxw();l.xp6(1),l.Udp("width",Be.width+"%")}}class q{constructor(Ce,Be){(0,o.Z)(this,"_attachedHost",void 0),(0,o.Z)(this,"component",void 0),(0,o.Z)(this,"viewContainerRef",void 0),(0,o.Z)(this,"injector",void 0),this.component=Ce,this.injector=Be}attach(Ce,Be){return this._attachedHost=Ce,Ce.attach(this,Be)}detach(){const Ce=this._attachedHost;if(Ce)return this._attachedHost=void 0,Ce.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ce){this._attachedHost=Ce}}class me{constructor(){(0,o.Z)(this,"_attachedPortal",void 0),(0,o.Z)(this,"_disposeFn",void 0)}attach(Ce,Be){return this._attachedPortal=Ce,this.attachComponentPortal(Ce,Be)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Ce){this._disposeFn=Ce}}class ve{constructor(Ce){(0,o.Z)(this,"_overlayRef",void 0),(0,o.Z)(this,"componentInstance",void 0),(0,o.Z)(this,"duplicatesCount",0),(0,o.Z)(this,"_afterClosed",new Y.x),(0,o.Z)(this,"_activate",new Y.x),(0,o.Z)(this,"_manualClose",new Y.x),(0,o.Z)(this,"_resetTimeout",new Y.x),(0,o.Z)(this,"_countDuplicate",new Y.x),this._overlayRef=Ce}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(Ce,Be){Ce&&this._resetTimeout.next(),Be&&this._countDuplicate.next(++this.duplicatesCount)}}class ye{constructor(Ce,Be,Fe,ke,Ct,Nt){(0,o.Z)(this,"toastId",void 0),(0,o.Z)(this,"config",void 0),(0,o.Z)(this,"message",void 0),(0,o.Z)(this,"title",void 0),(0,o.Z)(this,"toastType",void 0),(0,o.Z)(this,"toastRef",void 0),(0,o.Z)(this,"_onTap",new Y.x),(0,o.Z)(this,"_onAction",new Y.x),this.toastId=Ce,this.config=Be,this.message=Fe,this.title=ke,this.toastType=Ct,this.toastRef=Nt,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(Ce){this._onAction.next(Ce)}onAction(){return this._onAction.asObservable()}}const Qe=new l.OlP("ToastConfig");class ft extends me{constructor(Ce,Be,Fe){super(),(0,o.Z)(this,"_hostDomElement",void 0),(0,o.Z)(this,"_componentFactoryResolver",void 0),(0,o.Z)(this,"_appRef",void 0),this._hostDomElement=Ce,this._componentFactoryResolver=Be,this._appRef=Fe}attachComponentPortal(Ce,Be){const Fe=this._componentFactoryResolver.resolveComponentFactory(Ce.component);let ke;return ke=Fe.create(Ce.injector),this._appRef.attachView(ke.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ke.hostView),ke.destroy()}),Be?this._hostDomElement.insertBefore(this._getComponentRootNode(ke),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ke)),ke}_getComponentRootNode(Ce){return Ce.hostView.rootNodes[0]}}let xt=(()=>{var Me;class Ce{constructor(){(0,o.Z)(this,"_document",(0,l.f3M)(K.K0)),(0,o.Z)(this,"_containerElement",void 0)}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Fe=this._document.createElement("div");Fe.classList.add("overlay-container"),Fe.setAttribute("aria-live","polite"),this._document.body.appendChild(Fe),this._containerElement=Fe}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)}),(0,o.Z)(Ce,"\u0275prov",l.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})),Ce})();class Bt{constructor(Ce){(0,o.Z)(this,"_portalHost",void 0),this._portalHost=Ce}attach(Ce,Be=!0){return this._portalHost.attach(Ce,Be)}detach(){return this._portalHost.detach()}}let Rt=(()=>{var Me;class Ce{constructor(){(0,o.Z)(this,"_overlayContainer",(0,l.f3M)(xt)),(0,o.Z)(this,"_componentFactoryResolver",(0,l.f3M)(l._Vd)),(0,o.Z)(this,"_appRef",(0,l.f3M)(l.z2F)),(0,o.Z)(this,"_document",(0,l.f3M)(K.K0)),(0,o.Z)(this,"_paneElements",new Map)}create(Fe,ke){return this._createOverlayRef(this.getPaneElement(Fe,ke))}getPaneElement(Fe="",ke){return this._paneElements.get(ke)||this._paneElements.set(ke,{}),this._paneElements.get(ke)[Fe]||(this._paneElements.get(ke)[Fe]=this._createPaneElement(Fe,ke)),this._paneElements.get(ke)[Fe]}_createPaneElement(Fe,ke){const Ct=this._document.createElement("div");return Ct.id="toast-container",Ct.classList.add(Fe),Ct.classList.add("toast-container"),ke?ke.getContainerElement().appendChild(Ct):this._overlayContainer.getContainerElement().appendChild(Ct),Ct}_createPortalHost(Fe){return new ft(Fe,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Fe){return new Bt(this._createPortalHost(Fe))}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)}),(0,o.Z)(Ce,"\u0275prov",l.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})),Ce})(),Qt=(()=>{var Me;class Ce{constructor(Fe,ke,Ct,Nt,jt){(0,o.Z)(this,"overlay",void 0),(0,o.Z)(this,"_injector",void 0),(0,o.Z)(this,"sanitizer",void 0),(0,o.Z)(this,"ngZone",void 0),(0,o.Z)(this,"toastrConfig",void 0),(0,o.Z)(this,"currentlyActive",0),(0,o.Z)(this,"toasts",[]),(0,o.Z)(this,"overlayContainer",void 0),(0,o.Z)(this,"previousToastMessage",void 0),(0,o.Z)(this,"index",0),this.overlay=ke,this._injector=Ct,this.sanitizer=Nt,this.ngZone=jt,this.toastrConfig={...Fe.default,...Fe.config},Fe.config.iconClasses&&(this.toastrConfig.iconClasses={...Fe.default.iconClasses,...Fe.config.iconClasses})}show(Fe,ke,Ct={},Nt=""){return this._preBuildNotification(Nt,Fe,ke,this.applyConfig(Ct))}success(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Fe,ke,this.applyConfig(Ct))}error(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Fe,ke,this.applyConfig(Ct))}info(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Fe,ke,this.applyConfig(Ct))}warning(Fe,ke,Ct={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Fe,ke,this.applyConfig(Ct))}clear(Fe){for(const ke of this.toasts)if(void 0!==Fe){if(ke.toastId===Fe)return void ke.toastRef.manualClose()}else ke.toastRef.manualClose()}remove(Fe){const ke=this._findToast(Fe);if(!ke||(ke.activeToast.toastRef.close(),this.toasts.splice(ke.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ct=this.toasts[this.currentlyActive].toastRef;Ct.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ct.activate())}return!0}findDuplicate(Fe="",ke="",Ct,Nt){const{includeTitleDuplicates:jt}=this.toastrConfig;for(const Kt of this.toasts)if((!jt||jt&&Kt.title===Fe)&&Kt.message===ke)return Kt.toastRef.onDuplicate(Ct,Nt),Kt;return null}applyConfig(Fe={}){return{...this.toastrConfig,...Fe}}_findToast(Fe){for(let ke=0;ke<this.toasts.length;ke++)if(this.toasts[ke].toastId===Fe)return{index:ke,activeToast:this.toasts[ke]};return null}_preBuildNotification(Fe,ke,Ct,Nt){return Nt.onActivateTick?this.ngZone.run(()=>this._buildNotification(Fe,ke,Ct,Nt)):this._buildNotification(Fe,ke,Ct,Nt)}_buildNotification(Fe,ke,Ct,Nt){if(!Nt.toastComponent)throw new Error("toastComponent required");const jt=this.findDuplicate(Ct,ke,this.toastrConfig.resetTimeoutOnDuplicate&&Nt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ct||ke)&&this.toastrConfig.preventDuplicates&&null!==jt)return jt;this.previousToastMessage=ke;let Kt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Kt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const nn=this.overlay.create(Nt.positionClass,this.overlayContainer);this.index=this.index+1;let rn=ke;ke&&Nt.enableHtml&&(rn=this.sanitizer.sanitize(l.q3G.HTML,ke));const Xt=new ve(nn),an=new ye(this.index,Nt,rn,Ct,Fe,Xt),zt=l.zs3.create({providers:[{provide:ye,useValue:an}],parent:this._injector}),Vn=new q(Nt.toastComponent,zt),xn=nn.attach(Vn,Nt.newestOnTop);Xt.componentInstance=xn.instance;const Hn={toastId:this.index,title:Ct||"",message:ke||"",toastRef:Xt,onShown:Xt.afterActivate(),onHidden:Xt.afterClosed(),onTap:an.onTap(),onAction:an.onAction(),portal:xn};return Kt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Hn.toastRef.activate()})),this.toasts.push(Hn),Hn}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)(l.LFG(Qe),l.LFG(Rt),l.LFG(l.zs3),l.LFG(W.H7),l.LFG(l.R0b))}),(0,o.Z)(Ce,"\u0275prov",l.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})),Ce})(),qt=(()=>{var Me;class Ce{get displayStyle(){if("inactive"===this.state.value)return"none"}constructor(Fe,ke,Ct){(0,o.Z)(this,"toastrService",void 0),(0,o.Z)(this,"toastPackage",void 0),(0,o.Z)(this,"ngZone",void 0),(0,o.Z)(this,"message",void 0),(0,o.Z)(this,"title",void 0),(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"duplicatesCount",void 0),(0,o.Z)(this,"originalTimeout",void 0),(0,o.Z)(this,"width",-1),(0,o.Z)(this,"toastClasses",""),(0,o.Z)(this,"state",void 0),(0,o.Z)(this,"timeout",void 0),(0,o.Z)(this,"intervalId",void 0),(0,o.Z)(this,"hideTime",void 0),(0,o.Z)(this,"sub",void 0),(0,o.Z)(this,"sub1",void 0),(0,o.Z)(this,"sub2",void 0),(0,o.Z)(this,"sub3",void 0),this.toastrService=Fe,this.toastPackage=ke,this.ngZone=Ct,this.message=ke.message,this.title=ke.title,this.options=ke.config,this.originalTimeout=ke.config.timeOut,this.toastClasses=`${ke.toastType} ${ke.config.toastClass}`,this.sub=ke.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ke.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ke.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ke.toastRef.countDuplicate().subscribe(Nt=>{this.duplicatesCount=Nt}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}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 Fe=(new Date).getTime();this.width=(this.hideTime-Fe)/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(Fe,ke){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Fe),ke)):this.timeout=setTimeout(()=>Fe(),ke)}outsideInterval(Fe,ke){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Fe),ke)):this.intervalId=setInterval(()=>Fe(),ke)}runInsideAngular(Fe){this.ngZone?this.ngZone.run(()=>Fe()):Fe()}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)(l.Y36(Qt),l.Y36(ye),l.Y36(l.R0b))}),(0,o.Z)(Ce,"\u0275cmp",l.Xpm({type:Me,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Fe,ke){1&Fe&&l.NdJ("click",function(){return ke.tapToast()})("mouseenter",function(){return ke.stickAround()})("mouseleave",function(){return ke.delayedHideToast()}),2&Fe&&(l.d8E("@flyInOut",ke.state),l.Tol(ke.toastClasses),l.Udp("display",ke.displayStyle))},standalone:!0,features:[l.jDz],attrs:re,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(Fe,ke){1&Fe&&(l.YNc(0,ue,3,0,"button",0),l.YNc(1,V,3,5,"div",1),l.YNc(2,Q,1,3,"div",2),l.YNc(3,be,2,4,"div",3),l.YNc(4,Ve,2,2,"div",4)),2&Fe&&(l.Q6J("ngIf",ke.options.closeButton),l.xp6(1),l.Q6J("ngIf",ke.title),l.xp6(1),l.Q6J("ngIf",ke.message&&ke.options.enableHtml),l.xp6(1),l.Q6J("ngIf",ke.message&&!ke.options.enableHtml),l.xp6(1),l.Q6J("ngIf",ke.options.progressBar))},dependencies:[K.O5],encapsulation:2,data:{animation:[(0,R.X$)("flyInOut",[(0,R.SB)("inactive",(0,R.oB)({opacity:0})),(0,R.SB)("active",(0,R.oB)({opacity:1})),(0,R.SB)("removed",(0,R.oB)({opacity:0})),(0,R.eR)("inactive => active",(0,R.jt)("{{ easeTime }}ms {{ easing }}")),(0,R.eR)("active => removed",(0,R.jt)("{{ easeTime }}ms {{ easing }}"))])]}})),Ce})();const sn={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",toastComponent:qt},Cn=(Me={})=>(0,l.MR2)([{provide:Qe,useValue:{default:sn,config:Me}}]);let wn=(()=>{var Me;class Ce{static forRoot(Fe={}){return{ngModule:Ce,providers:[Cn(Fe)]}}}return Me=Ce,(0,o.Z)(Ce,"\u0275fac",function(Fe){return new(Fe||Me)}),(0,o.Z)(Ce,"\u0275mod",l.oAB({type:Me})),(0,o.Z)(Ce,"\u0275inj",l.cJS({})),Ce})()},5861:(wt,Pe,C)=>{function o(R,K,Y,W,re,ue,ie){try{var V=R[ue](ie),Q=V.value}catch(be){return void Y(be)}V.done?K(Q):Promise.resolve(Q).then(W,re)}function l(R){return function(){var K=this,Y=arguments;return new Promise(function(W,re){var ue=R.apply(K,Y);function ie(Q){o(ue,W,re,ie,V,"next",Q)}function V(Q){o(ue,W,re,ie,V,"throw",Q)}ie(void 0)})}}C.d(Pe,{Z:()=>l})},1180:(wt,Pe,C)=>{function o(Y){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(Y)}function K(Y,W,re){return(W=function R(Y){var W=function l(Y,W){if("object"!==o(Y)||null===Y)return Y;var re=Y[Symbol.toPrimitive];if(void 0!==re){var ue=re.call(Y,W||"default");if("object"!==o(ue))return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(Y)}(Y,"string");return"symbol"===o(W)?W:String(W)}(W))in Y?Object.defineProperty(Y,W,{value:re,enumerable:!0,configurable:!0,writable:!0}):Y[W]=re,Y}C.d(Pe,{Z:()=>K})},7582:(wt,Pe,C)=>{function K(Ge,Xe){var Ze={};for(var De in Ge)Object.prototype.hasOwnProperty.call(Ge,De)&&Xe.indexOf(De)<0&&(Ze[De]=Ge[De]);if(null!=Ge&&"function"==typeof Object.getOwnPropertySymbols){var Me=0;for(De=Object.getOwnPropertySymbols(Ge);Me<De.length;Me++)Xe.indexOf(De[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ge,De[Me])&&(Ze[De[Me]]=Ge[De[Me]])}return Ze}function be(Ge,Xe,Ze,De){return new(Ze||(Ze=Promise))(function(Ce,Be){function Fe(Nt){try{Ct(De.next(Nt))}catch(jt){Be(jt)}}function ke(Nt){try{Ct(De.throw(Nt))}catch(jt){Be(jt)}}function Ct(Nt){Nt.done?Ce(Nt.value):function Me(Ce){return Ce instanceof Ze?Ce:new Ze(function(Be){Be(Ce)})}(Nt.value).then(Fe,ke)}Ct((De=De.apply(Ge,Xe||[])).next())})}function q(Ge){return this instanceof q?(this.v=Ge,this):new q(Ge)}function me(Ge,Xe,Ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me,De=Ze.apply(Ge,Xe||[]),Ce=[];return Me={},Be("next"),Be("throw"),Be("return"),Me[Symbol.asyncIterator]=function(){return this},Me;function Be(Kt){De[Kt]&&(Me[Kt]=function(nn){return new Promise(function(rn,Xt){Ce.push([Kt,nn,rn,Xt])>1||Fe(Kt,nn)})})}function Fe(Kt,nn){try{!function ke(Kt){Kt.value instanceof q?Promise.resolve(Kt.value.v).then(Ct,Nt):jt(Ce[0][2],Kt)}(De[Kt](nn))}catch(rn){jt(Ce[0][3],rn)}}function Ct(Kt){Fe("next",Kt)}function Nt(Kt){Fe("throw",Kt)}function jt(Kt,nn){Kt(nn),Ce.shift(),Ce.length&&Fe(Ce[0][0],Ce[0][1])}}function ye(Ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,Xe=Ge[Symbol.asyncIterator];return Xe?Xe.call(Ge):(Ge=function $e(Ge){var Xe="function"==typeof Symbol&&Symbol.iterator,Ze=Xe&&Ge[Xe],De=0;if(Ze)return Ze.call(Ge);if(Ge&&"number"==typeof Ge.length)return{next:function(){return Ge&&De>=Ge.length&&(Ge=void 0),{value:Ge&&Ge[De++],done:!Ge}}};throw new TypeError(Xe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ge),Ze={},De("next"),De("throw"),De("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze);function De(Ce){Ze[Ce]=Ge[Ce]&&function(Be){return new Promise(function(Fe,ke){!function Me(Ce,Be,Fe,ke){Promise.resolve(ke).then(function(Ct){Ce({value:Ct,done:Fe})},Be)}(Fe,ke,(Be=Ge[Ce](Be)).done,Be.value)})}}}C.d(Pe,{FC:()=>me,KL:()=>ye,_T:()=>K,mG:()=>be,qq:()=>q}),"function"==typeof SuppressedError&&SuppressedError}},wt=>{wt(wt.s=9735)}]);
|