From d36e46d0330cc3e3ae917a319e075b68cf3b447d Mon Sep 17 00:00:00 2001 From: d10sfan Date: Mon, 28 Oct 2024 19:54:08 +0000 Subject: [PATCH] deploy: luxtorpeda-dev/packages@bf1190a7a15d9cda3874719894bd7eea4ee980b1 --- main.js | 2 +- .../express-serve-static-core/README.md | 2 +- .../node_modules/@types/http-proxy/README.md | 2 +- .../http-proxy-middleware/README.md | 37 ++---- .../node_modules/is-plain-object/README.md | 125 ++++++++++++++++++ 5 files changed, 137 insertions(+), 31 deletions(-) create mode 100644 webui/node_modules/http-proxy-middleware/node_modules/is-plain-object/README.md diff --git a/main.js b/main.js index 505b7b68..65d97b58 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebui=self.webpackChunkwebui||[]).push([[792],{345:()=>{let We=null,Do=!1,Eo=1;const An=Symbol("SIGNAL");function X(e){const n=We;return We=e,n}const ta={version:0,lastCleanEpoch: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:()=>{},consumerOnSignalRead:()=>{}};function $y(e){if((!na(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Eo)){if(!e.producerMustRecompute(e)&&!wf(e))return e.dirty=!1,void(e.lastCleanEpoch=Eo);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Eo}}function Wy(e){e.dirty=!0,function Gy(e){if(void 0===e.liveConsumerNode)return;const n=Do;Do=!0;try{for(const t of e.liveConsumerNode)t.dirty||Wy(t)}finally{Do=n}}(e),e.consumerMarkedDirty?.(e)}function vc(e){return e&&(e.nextProducerIndex=0),X(e)}function bf(e,n){if(X(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(na(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function wf(e){bc(e);for(let n=0;n0}function bc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ky=function LF(){throw new Error};const xf=()=>{},$F={...ta,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:xf};function fe(e){return"function"==typeof e}function If(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Mf=If(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Dc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class ze{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(fe(i))try{i()}catch(o){n=o instanceof Mf?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{nb(o)}catch(s){n=n??[],s instanceof Mf?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Mf(n)}}add(n){var t;if(n&&n!==this)if(this.closed)nb(n);else{if(n instanceof ze){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Dc(t,n)}remove(n){const{_finalizers:t}=this;t&&Dc(t,n),n instanceof ze&&n._removeParent(this)}}ze.EMPTY=(()=>{const e=new ze;return e.closed=!0,e})();const eb=ze.EMPTY;function tb(e){return e instanceof ze||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function nb(e){fe(e)?e():e.unsubscribe()}const _r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ec={setTimeout(e,n,...t){const{delegate:i}=Ec;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Ec;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ib(e){Ec.setTimeout(()=>{const{onUnhandledError:n}=_r;if(!n)throw e;n(e)})}function Sf(){}const GF=Tf("C",void 0,void 0);function Tf(e,n,t){return{kind:e,value:n,error:t}}let vr=null;function xc(e){if(_r.useDeprecatedSynchronousErrorHandling){const n=!vr;if(n&&(vr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=vr;if(vr=null,t)throw i}}else e()}class Af extends ze{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,tb(n)&&n.add(this)):this.destination=XF}static create(n,t,i){return new ia(n,t,i)}next(n){this.isStopped?Rf(function WF(e){return Tf("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Rf(function qF(e){return Tf("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Rf(GF,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const YF=Function.prototype.bind;function kf(e,n){return YF.call(e,n)}class QF{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Ic(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Ic(i)}else Ic(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Ic(t)}}}class ia extends Af{constructor(n,t,i){let r;if(super(),fe(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&_r.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&kf(n.next,o),error:n.error&&kf(n.error,o),complete:n.complete&&kf(n.complete,o)}):r=n}this.destination=new QF(r)}}function Ic(e){_r.useDeprecatedSynchronousErrorHandling?function ZF(e){_r.useDeprecatedSynchronousErrorHandling&&vr&&(vr.errorThrown=!0,vr.error=e)}(e):ib(e)}function Rf(e,n){const{onStoppedNotification:t}=_r;t&&Ec.setTimeout(()=>t(e,n))}const XF={closed:!0,next:Sf,error:function KF(e){throw e},complete:Sf},Ff="function"==typeof Symbol&&Symbol.observable||"@@observable";function qi(e){return e}function rb(e){return 0===e.length?qi:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let Ne=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function tN(e){return e&&e instanceof Af||function eN(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(e)&&tb(e)}(t)?t:new ia(t,i,r);return xc(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=ob(i))((r,o)=>{const s=new ia({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[Ff](){return this}pipe(...t){return rb(t)(this)}toPromise(t){return new(t=ob(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function ob(e){var n;return null!==(n=e??_r.Promise)&&void 0!==n?n:Promise}const nN=If(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Q=(()=>{class e extends Ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new sb(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new nN}next(t){xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?eb:(this.currentObservers=null,o.push(t),new ze(()=>{this.currentObservers=null,Dc(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new Ne;return t.source=this,t}}return e.create=(n,t)=>new sb(n,t),e})();class sb extends Q{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:eb}}class Jt extends Q{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function ab(e){return fe(e?.lift)}function Ze(e){return n=>{if(ab(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function je(e,n,t,i,r){return new iN(e,n,t,i,r)}class iN extends Af{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Z(e,n){return Ze((t,i)=>{let r=0;t.subscribe(je(i,o=>{i.next(e.call(n,o,r++))}))})}const lb="https://g.co/ng/security#xss";class b extends Error{constructor(n,t){super(function xo(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Ci(e){return{toString:e}.toString()}const Mo="__parameters__";function To(e,n,t){return Ci(()=>{const i=function Nf(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(Mo)?l[Mo]:Object.defineProperty(l,Mo,{value:[]})[Mo];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Fe=globalThis;function ye(e){for(let n in e)if(e[n]===ye)return n;throw Error("Could not find renamed property on target object.")}function rN(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function at(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(at).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Of(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const oN=ye({__forward_ref__:ye});function De(e){return e.__forward_ref__=De,e.toString=function(){return at(this())},e}function j(e){return Sc(e)?e():e}function Sc(e){return"function"==typeof e&&e.hasOwnProperty(oN)&&e.__forward_ref__===De}function M(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ee(e){return{providers:e.providers||[],imports:e.imports||[]}}function Tc(e){return hb(e,kc)||hb(e,fb)}function hb(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ac(e){return e&&(e.hasOwnProperty(Pf)||e.hasOwnProperty(uN))?e[Pf]:null}const kc=ye({\u0275prov:ye}),Pf=ye({\u0275inj:ye}),fb=ye({ngInjectableDef:ye}),uN=ye({ngInjectorDef:ye});class E{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=M({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Uf(e){return e&&!!e.\u0275providers}const ra=ye({\u0275cmp:ye}),Hf=ye({\u0275dir:ye}),zf=ye({\u0275pipe:ye}),mb=ye({\u0275mod:ye}),Di=ye({\u0275fac:ye}),oa=ye({__NG_ELEMENT_ID__:ye}),gb=ye({__NG_ENV_ID__:ye});function q(e){return"string"==typeof e?e:null==e?"":String(e)}function $f(e,n){throw new b(-201,!1)}var ne=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}(ne||{});let Gf;function _b(){return Gf}function Gt(e){const n=Gf;return Gf=e,n}function vb(e,n,t){const i=Tc(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ne.Optional?null:void 0!==n?n:void $f()}const sa={},qf="__NG_DI_FLAG__",Rc="ngTempTokenPath",_N=/\n/gm,yb="__source";let Ao;function Zi(e){const n=Ao;return Ao=e,n}function bN(e,n=ne.Default){if(void 0===Ao)throw new b(-203,!1);return null===Ao?vb(e,void 0,n):Ao.get(e,n&ne.Optional?null:void 0,n)}function D(e,n=ne.Default){return(_b()||bN)(j(e),n)}function w(e,n=ne.Default){return D(e,Fc(n))}function Fc(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wf(e){const n=[];for(let t=0;tArray.isArray(t)?ko(t,n):n(t))}function wb(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Nc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function nn(e,n,t){let i=Ro(e,n);return i>=0?e[1|i]=t:(i=~i,function Cb(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Yf(e,n){const t=Ro(e,n);if(t>=0)return e[1|t]}function Ro(e,n){return function Db(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<n?r=o:i=o+1}return~(r<n){s=o-1;break}}}for(;o-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&i&&c!==u){if(Rn(i))return!1;s=!0}}}}else{if(!s&&!Rn(i)&&!Rn(l))return!1;if(s&&Rn(l))continue;s=!1,i=l|1&i}}return Rn(i)||s}function Rn(e){return!(1&e)}function RN(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Rn(s)&&(n+=Ab(o,r),r=""),i=s,o=o||!Rn(i);t++}return""!==r&&(n+=Ab(o,r)),n}function vt(e){return Ci(()=>{const n=Rb(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Lc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kn.Emulated,styles:e.styles||ce,_:null,schemas:e.schemas||null,tView:null,id:""};Fb(t);const i=e.dependencies;return t.directiveDefs=Vc(i,!1),t.pipeDefs=Vc(i,!0),t.id=function zN(e){let n=0;const t=[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 r of t)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function jN(e){return ee(e)||lt(e)}function UN(e){return null!==e}function Se(e){return Ci(()=>({type:e.type,bootstrap:e.bootstrap||ce,declarations:e.declarations||ce,imports:e.imports||ce,exports:e.exports||ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kb(e,n){if(null==e)return Kn;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,s,a=Yi.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(t[o]=a!==Yi.None?[i,a]:i,n[o]=s):t[o]=i}return t}function R(e){return Ci(()=>{const n=Rb(e);return Fb(n),n})}function Dt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ee(e){return e[ra]||null}function lt(e){return e[Hf]||null}function yt(e){return e[zf]||null}function Et(e,n){const t=e[mb]||null;if(!t&&!0===n)throw new Error(`Type ${at(e)} does not have '\u0275mod' property.`);return t}function Rb(e){const n={};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:n,inputTransforms:null,inputConfig:e.inputs||Kn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ce,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:kb(e.inputs,n),outputs:kb(e.outputs),debugInfo:null}}function Fb(e){e.features?.forEach(n=>n(e))}function Vc(e,n){if(!e)return null;const t=n?yt:jN;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(UN)}function $N(...e){return{\u0275providers:Jf(0,e),\u0275fromNgModule:!0}}function Jf(e,...n){const t=[],i=new Set;let r;const o=s=>{t.push(s)};return ko(n,s=>{const a=s;Bc(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Nb(r,o),t}function Nb(e,n){for(let t=0;t{n(o,i)})}}function Bc(e,n,t,i){if(!(e=j(e)))return!1;let r=null,o=Ac(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=Ac(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Bc(c,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{ko(o.imports,d=>{Bc(d,n,t,i)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Nb(c,n)}if(!a){const c=br(r)||(()=>new r);n({provide:r,useFactory:c,deps:ce},r),n({provide:Qf,useValue:r,multi:!0},r),n({provide:Xn,useValue:()=>D(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=e;ep(l,d=>{n(d,c)})}}}return r!==e&&void 0!==e.providers}function ep(e,n){for(let t of e)Uf(t)&&(t=t.\u0275providers),Array.isArray(t)?ep(t,n):n(t)}const GN=ye({provide:String,useValue:ye});function tp(e){return null!==e&&"object"==typeof e&&GN in e}function wr(e){return"function"==typeof e}const np=new E(""),jc={},WN={};let ip;function Uc(){return void 0===ip&&(ip=new Pc),ip}class xt{}class Fo extends xt{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,op(n,s=>this.processProvider(s)),this.records.set(Eb,No(void 0,this)),r.has("environment")&&this.records.set(xt,No(void 0,this));const o=this.records.get(np);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Qf,ce,ne.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=X(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),X(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Zi(this),i=Gt(void 0);try{return n()}finally{Zi(t),Gt(i)}}get(n,t=sa,i=ne.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(gb))return n[gb](this);i=Fc(i);const o=Zi(this),s=Gt(void 0);try{if(!(i&ne.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function XN(e){return"function"==typeof e||"object"==typeof e&&e instanceof E}(n)&&Tc(n);l=c&&this.injectableDefInScope(c)?No(rp(n),jc):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&ne.Self?Uc():this.parent).get(n,t=i&ne.Optional&&t===sa?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Rc]=a[Rc]||[]).unshift(at(n)),o)throw a;return function CN(e,n,t,i){const r=e[Rc];throw n[yb]&&r.unshift(n[yb]),e.message=function DN(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=at(n);if(Array.isArray(n))r=n.map(at).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):at(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(_N,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Rc]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Gt(s),Zi(o)}}resolveInjectorInitializers(){const n=X(null),t=Zi(this),i=Gt(void 0);try{const o=this.get(Xn,ce,ne.Self);for(const s of o)s()}finally{Zi(t),Gt(i),X(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(at(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(n){let t=wr(n=j(n))?n:j(n&&n.provide);const i=function YN(e){return tp(e)?No(void 0,e.useValue):No(Lb(e),jc)}(n);if(!wr(n)&&!0===n.multi){let r=this.records.get(t);r||(r=No(void 0,jc,!0),r.factory=()=>Wf(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=X(null);try{return t.value===jc&&(t.value=WN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function KN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{X(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=j(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function rp(e){const n=Tc(e),t=null!==n?n.factory:br(e);if(null!==t)return t;if(e instanceof E)throw new b(204,!1);if(e instanceof Function)return function ZN(e){if(e.length>0)throw new b(204,!1);const t=function dN(e){return e&&(e[kc]||e[fb])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new b(204,!1)}function Lb(e,n,t){let i;if(wr(e)){const r=j(e);return br(r)||rp(r)}if(tp(e))i=()=>j(e.useValue);else if(function Pb(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Wf(e.deps||[]));else if(function Ob(e){return!(!e||!e.useExisting)}(e))i=()=>D(j(e.useExisting));else{const r=j(e&&(e.useClass||e.provide));if(!function QN(e){return!!e.deps}(e))return br(r)||rp(r);i=()=>new r(...Wf(e.deps))}return i}function No(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function op(e,n){for(const t of e)Array.isArray(t)?op(t,n):t&&Uf(t)?op(t.\u0275providers,n):n(t)}function Jn(e,n){e instanceof Fo&&e.assertNotDestroyed();const i=Zi(e),r=Gt(void 0);try{return n()}finally{Zi(i),Gt(r)}}function Vb(){return void 0!==_b()||null!=function yN(){return Ao}()}function sp(e){if(!Vb())throw new b(-203,!1)}const Oe=0,I=1,O=2,tt=3,Fn=4,bt=5,Ft=6,Po=7,Te=8,nt=9,ei=10,H=11,ha=12,jb=13,Lo=14,Pe=15,Cr=16,Vo=17,Ei=18,Bo=19,Ub=20,Ki=21,zc=22,yn=23,k=25,lp=1,ti=7,jo=9,Ye=10;var Gc=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Gc||{});function dt(e){return Array.isArray(e)&&"object"==typeof e[lp]}function It(e){return Array.isArray(e)&&!0===e[lp]}function cp(e){return!!(4&e.flags)}function Dr(e){return e.componentOffset>-1}function qc(e){return!(1&~e.flags)}function Nn(e){return!!e.template}function pa(e){return!!(512&e[O])}class dO{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function qb(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}function Wt(){return Wb}function Wb(e){return e.type.prototype.ngOnChanges&&(e.setInput=hO),uO}function uO(){const e=Yb(this),n=e?.current;if(n){const t=e.previous;if(t===Kn)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function hO(e,n,t,i,r){const o=this.declaredInputs[i],s=Yb(e)||function fO(e,n){return e[Zb]=n}(e,{previous:Kn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new dO(c&&c.currentValue,t,l===Kn),qb(e,n,r,t)}Wt.ngInherit=!0;const Zb="__ngSimpleChanges__";function Yb(e){return e[Zb]||null}const ni=function(e,n,t){},Qb="svg";function de(e){for(;Array.isArray(e);)e=e[Oe];return e}function ma(e,n){return de(n[e])}function Nt(e,n){return de(n[e.index])}function ga(e,n){return e.data[n]}function rn(e,n){const t=n[e];return dt(t)?t:t[Oe]}function pp(e){return!(128&~e[O])}function bn(e,n){return null==n?null:e[n]}function Xb(e){e[Vo]=0}function Jb(e){1024&e[O]||(e[O]|=1024,pp(e)&&Zc(e))}function Wc(e){return!!(9216&e[O]||e[yn]?.dirty)}function mp(e){e[ei].changeDetectionScheduler?.notify(8),64&e[O]&&(e[O]|=1024),Wc(e)&&Zc(e)}function Zc(e){e[ei].changeDetectionScheduler?.notify(0);let n=xi(e);for(;null!==n&&!(8192&n[O])&&(n[O]|=8192,pp(n));)n=xi(n)}function Yc(e,n){if(!(256&~e[O]))throw new b(911,!1);null===e[Ki]&&(e[Ki]=[]),e[Ki].push(n)}function xi(e){const n=e[tt];return It(n)?n[tt]:n}const z={lFrame:hw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let tw=!1;function nw(){return z.bindingsEnabled}function xr(){return null!==z.skipHydrationRootTNode}function C(){return z.lFrame.lView}function J(){return z.lFrame.tView}function Kc(e){return z.lFrame.contextLView=e,e[Te]}function Xc(e){return z.lFrame.contextLView=null,e}function be(){let e=iw();for(;null!==e&&64===e.type;)e=e.parent;return e}function iw(){return z.lFrame.currentTNode}function On(e,n){const t=z.lFrame;t.currentTNode=e,t.isParent=n}function vp(){return z.lFrame.isParent}function yp(){z.lFrame.isParent=!1}function sw(){return tw}function aw(e){tw=e}function Pn(){return z.lFrame.bindingIndex++}function Mi(e){const n=z.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function MO(e,n){const t=z.lFrame;t.bindingIndex=t.bindingRootIndex=e,bp(n)}function bp(e){z.lFrame.currentDirectiveIndex=e}function Cp(){return z.lFrame.currentQueryIndex}function Jc(e){z.lFrame.currentQueryIndex=e}function TO(e){const n=e[I];return 2===n.type?n.declTNode:1===n.type?e[bt]:null}function dw(e,n,t){if(t&ne.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&ne.Host||(r=TO(o),null===r||(o=o[Lo],10&r.type))););if(null===r)return!1;n=r,e=o}const i=z.lFrame=uw();return i.currentTNode=n,i.lView=e,!0}function Dp(e){const n=uw(),t=e[I];z.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function uw(){const e=z.lFrame,n=null===e?null:e.child;return null===n?hw(e):n}function hw(e){const n={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=n),n}function fw(){const e=z.lFrame;return z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pw=fw;function Ep(){const e=fw();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 wt(){return z.lFrame.selectedIndex}function Ir(e){z.lFrame.selectedIndex=e}function Ae(){const e=z.lFrame;return ga(e.tView,e.selectedIndex)}let _w=!0;function va(){return _w}function ii(e){_w=e}function ed(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[Vo]+=65536),(a>14>16&&(3&e[O])===n&&(e[O]+=16384,yw(a,o)):yw(a,o)}const Uo=-1;class ya{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}const Mp={};class Mr{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=Fc(i);const r=this.injector.get(n,Mp,i);return r!==Mp||t===Mp?r:this.parentInjector.get(n,t,i)}}function Sp(e){return e!==Uo}function ba(e){return 32767&e}function wa(e,n){let t=function jO(e){return e>>16}(e),i=n;for(;t>0;)i=i[Lo],t--;return i}let Tp=!0;function id(e){const n=Tp;return Tp=e,n}const ww=255,Cw=5;let HO=0;const ri={};function rd(e,n){const t=Dw(e,n);if(-1!==t)return t;const i=n[I];i.firstCreatePass&&(e.injectorIndex=n.length,Ap(i.data,e),Ap(n,null),Ap(i.blueprint,null));const r=od(e,n),o=e.injectorIndex;if(Sp(r)){const s=ba(r),a=wa(r,n),l=a[I].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function Ap(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Dw(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function od(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=Aw(r),null===i)return Uo;if(t++,r=r[Lo],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return Uo}function kp(e,n,t){!function zO(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(oa)&&(i=t[oa]),null==i&&(i=t[oa]=HO++);const r=i&ww;n.data[e+(r>>Cw)]|=1<=0?n&ww:WO:n}(t);if("function"==typeof o){if(!dw(n,e,i))return i&ne.Host?Ew(r,0,i):xw(n,t,i,r);try{let s;if(s=o(i),null!=s||i&ne.Optional)return s;$f()}finally{pw()}}else if("number"==typeof o){let s=null,a=Dw(e,n),l=Uo,c=i&ne.Host?n[Pe][bt]:null;for((-1===a||i&ne.SkipSelf)&&(l=-1===a?od(e,n):n[a+8],l!==Uo&&Tw(i,!1)?(s=n[I],a=ba(l),n=wa(l,n)):a=-1);-1!==a;){const d=n[I];if(Sw(o,a,d.data)){const u=GO(a,n,t,s,i,c);if(u!==ri)return u}l=n[a+8],l!==Uo&&Tw(i,n[I].data[a+8]===c)&&Sw(o,a,n)?(s=d,a=ba(l),n=wa(l,n)):a=-1}}return r}function GO(e,n,t,i,r,o){const s=n[I],a=s.data[e+8],d=sd(a,s,t,null==i?Dr(a)&&Tp:i!=s&&!!(3&a.type),r&ne.Host&&o===a);return null!==d?Sr(n,s,d,a):ri}function sd(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,d=o>>20,h=r?a+d:e.directiveEnd;for(let f=i?a:a+d;f=l&&p.type===t)return f}if(r){const f=s[l];if(f&&Nn(f)&&f.type===t)return l}return null}function Sr(e,n,t,i){let r=e[t];const o=n.data;if(function PO(e){return e instanceof ya}(r)){const s=r;s.resolving&&function pN(e,n){throw n&&n.join(" > "),new b(-200,e)}(function ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():q(e)}(o[t]));const a=id(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Gt(s.injectImpl):null;dw(e,i,ne.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function NO(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Wb(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Gt(c),id(a),s.resolving=!1,pw()}}return r}function Sw(e,n,t){return!!(t[n+(e>>Cw)]&1<{const n=e.prototype.constructor,t=n[Di]||Rp(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Di]||Rp(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Rp(e){return Sc(e)?()=>{const n=Rp(j(e));return n&&n()}:br(e)}function Aw(e){const n=e[I],t=n.type;return 2===t?n.declTNode:1===t?e[bt]:null}function Tr(e){return function $O(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;rD(Eb)});static#i=this.__NG_ELEMENT_ID__=-1}new E("").__NG_ELEMENT_ID__=e=>{const n=be();if(null===n)throw new b(204,!1);if(2&n.type)return n.value;if(e&ne.Optional)return null;throw new b(204,!1)};function Np(e){return e.ngOriginalError}const Vw=!0;let Ca=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=rP;static#t=this.__NG_ENV_ID__=t=>t}return e})();class iP extends Ca{constructor(n){super(),this._lView=n}onDestroy(n){return Yc(this._lView,n),()=>function gp(e,n){if(null===e[Ki])return;const t=e[Ki].indexOf(n);-1!==t&&e[Ki].splice(t,1)}(this._lView,n)}}function rP(){return new iP(C())}let Si=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Jt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();const le=class oP extends Q{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Vb()&&(this.destroyRef=w(Ca,{optional:!0})??void 0,this.pendingTasks=w(Si,{optional:!0})??void 0)}emit(n){const t=X(null);try{super.next(n)}finally{X(t)}}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ze&&n.add(a),a}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function ld(...e){}function Bw(e){let n,t;function i(){e=ld;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),i()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),i()})),()=>i()}function jw(e){return queueMicrotask(()=>e()),()=>{e=ld}}const Op="isAngularZone",cd=Op+"_ID";let sP=0;class ${constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=Vw}=n;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,function cP(e){const n=()=>{!function lP(e){function n(){Bw(()=>{e.callbackScheduled=!1,Lp(e),e.isCheckStableRunning=!0,Pp(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),Lp(e))}(e)},t=sP++;e._inner=e._inner.fork({name:"angular",properties:{[Op]:!0,[cd]:t,[cd+t]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(function dP(e){return zw(e,"__ignore_ng_zone__")}(l))return i.invokeTask(o,s,a,l);try{return Uw(e),i.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),Hw(e)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return Uw(e),i.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function uP(e){return zw(e,"__scheduler_tick__")}(l)&&n(),Hw(e)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Lp(e),Pp(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Op)}static assertInAngularZone(){if(!$.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if($.isInAngularZone())throw new b(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,aP,ld,ld);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const aP={};function Pp(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 Lp(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Uw(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hw(e){e._nesting--,Pp(e)}class Vp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}function zw(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class on{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Np(n);for(;t&&Np(t);)t=Np(t);return t||null}}const fP=new E("",{providedIn:"root",factory:()=>{const e=w($),n=w(on);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function pP(){return $o(be(),C())}function $o(e,n){return new ue(Nt(e,n))}let ue=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=pP}return e})();function Gw(e){return e instanceof ue?e.nativeElement:e}function mP(){return this._results[Symbol.iterator]()}class Ar{static#e=Symbol.iterator;get changes(){return this._changes??=new le}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=Ar.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=mP)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const i=function qt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function MN(e,n,t){if(e.length!==n.length)return!1;for(let i=0;iPP}),PP="ng",uC=new E(""),Ln=new E("",{providedIn:"platform",factory:()=>"unknown"}),Ti=new E(""),$p=new E("",{providedIn:"root",factory:()=>function Xi(){if(void 0!==zp)return zp;if(typeof document<"u")return document;throw new b(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let hC=()=>null;function Kp(e,n,t=!1){return hC(e,n,t)}const bC=new E("",{providedIn:"root",factory:()=>!1});let vd,yd;function Zo(e){return function nm(){if(void 0===vd&&(vd=null,Fe.trustedTypes))try{vd=Fe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vd}()?.createHTML(e)||e}function xC(e){return function im(){if(void 0===yd&&(yd=null,Fe.trustedTypes))try{yd=Fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return yd}()?.createScriptURL(e)||e}class Fr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${lb})`}}class QP extends Fr{getTypeName(){return"HTML"}}class KP extends Fr{getTypeName(){return"Style"}}class XP extends Fr{getTypeName(){return"Script"}}class JP extends Fr{getTypeName(){return"URL"}}class e1 extends Fr{getTypeName(){return"ResourceURL"}}function sn(e){return e instanceof Fr?e.changingThisBreaksApplicationSecurity:e}function oi(e,n){const t=function t1(e){return e instanceof Fr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${lb})`)}return t===n}class l1{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Zo(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class c1{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Zo(n),t}}const u1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bd(e){return(e=String(e)).match(u1)?e:"unsafe:"+e}function Ai(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ka(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const MC=Ai("area,br,col,hr,img,wbr"),SC=Ai("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),TC=Ai("rp,rt"),rm=ka(MC,ka(SC,Ai("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")),ka(TC,Ai("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")),ka(TC,SC)),om=Ai("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),AC=ka(om,Ai("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"),Ai("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")),h1=Ai("script,style,template");class f1{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)r.push(t),t=g1(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=m1(t);if(o){t=o;break}t=r.pop()}return this.buf.join("")}startElement(n){const t=kC(n).toLowerCase();if(!rm.hasOwnProperty(t))return this.sanitizedSomething=!0,!h1.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const t=kC(n).toLowerCase();rm.hasOwnProperty(t)&&!MC.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(FC(n))}}function m1(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw RC(n);return n}function g1(e){const n=e.firstChild;if(n&&function p1(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw RC(n);return n}function kC(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function RC(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const _1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v1=/([^\#-~ |!])/g;function FC(e){return e.replace(/&/g,"&").replace(_1,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(v1,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let wd;function NC(e,n){let t=null;try{wd=wd||function IC(e){const n=new c1(e);return function d1(){try{return!!(new window.DOMParser).parseFromString(Zo(""),"text/html")}catch{return!1}}()?new l1(n):n}(e);let i=n?String(n):"";t=wd.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=wd.getInertBodyElement(i)}while(i!==o);return Zo((new f1).sanitizeChildren(sm(t)||t))}finally{if(t){const i=sm(t)||t;for(;i.firstChild;)i.firstChild.remove()}}}function sm(e){return"content"in e&&function y1(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mt=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}(mt||{});function Yo(e){const n=Ra();return n?n.sanitize(mt.URL,e)||"":oi(e,"URL")?sn(e):bd(q(e))}function OC(e){const n=Ra();if(n)return xC(n.sanitize(mt.RESOURCE_URL,e)||"");if(oi(e,"ResourceURL"))return xC(sn(e));throw new b(904,!1)}function Ra(){const e=C();return e&&e[ei].sanitizer}const I1=/^>|^->||--!>|)/g,S1="\u200b$1\u200b";function an(e){return e instanceof Function?e():e}function ln(e){return"browser"===(e??w(Ge)).get(Ln)}var Ji=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ji||{});let cm;function dm(e,n){return cm(e,n)}function Ko(e,n,t,i,r){if(null!=i){let o,s=!1;It(i)?o=i:dt(i)&&(s=!0,i=i[Oe]);const a=de(i);0===e&&null!==t?null==r?YC(n,t,a):Nr(n,t,a,r||null,!0):1===e&&null!==t?Nr(n,t,a,r||null,!0):2===e?function Na(e,n,t){e.removeChild(null,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function Z1(e,n,t,i,r){const o=t[ti];o!==de(t)&&Ko(n,e,i,o,r);for(let a=Ye;an.replace(M1,S1))}(n))}function Ed(e,n,t){return e.createElement(n,t)}function qC(e,n){n[ei].changeDetectionScheduler?.notify(9),Md(e,n,n[H],2,null,null)}function WC(e,n){const t=e[jo],i=n[tt];(dt(i)||n[Pe]!==i[tt][Pe])&&(e[O]|=Gc.HasTransplantedViews),null===t?e[jo]=[n]:t.push(n)}function fm(e,n){const t=e[jo],i=t.indexOf(n);t.splice(i,1)}function Fa(e,n){if(e.length<=Ye)return;const t=Ye+n,i=e[t];if(i){const r=i[Cr];null!==r&&r!==e&&fm(r,i),n>0&&(e[t-1][Fn]=i[Fn]);const o=Nc(e,Ye+n);!function j1(e,n){qC(e,n),n[Oe]=null,n[bt]=null}(i[I],i);const s=o[Ei];null!==s&&s.detachView(o[I]),i[tt]=null,i[Fn]=null,i[O]&=-129}return i}function xd(e,n){if(!(256&n[O])){const t=n[H];t.destroyNode&&Md(e,n,t,3,null,null),function H1(e){let n=e[ha];if(!n)return pm(e[I],e);for(;n;){let t=null;if(dt(n))t=n[ha];else{const i=n[Ye];i&&(t=i)}if(!t){for(;n&&!n[Fn]&&n!==e;)dt(n)&&pm(n[I],n),n=n[tt];null===n&&(n=e),dt(n)&&pm(n[I],n),t=n&&n[Fn]}n=t}}(n)}}function pm(e,n){if(256&n[O])return;const t=X(null);try{n[O]&=-129,n[O]|=256,n[yn]&&Cf(n[yn]),function G1(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[s]():i[-s].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[Po]=null);const r=n[Ki];if(null!==r){n[Ki]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===kn.None||o===kn.Emulated)return null}return Nt(i,t)}}(e,n.parent,t)}function Nr(e,n,t,i,r){e.insertBefore(n,t,i,r)}function YC(e,n,t){e.appendChild(n,t)}function QC(e,n,t,i,r){null!==i?Nr(e,n,t,i,r):YC(e,n,t)}function gm(e,n){return e.parentNode(n)}function KC(e,n,t){return JC(e,n,t)}let _m,JC=function XC(e,n,t){return 40&e.type?Nt(e,t):null};function Id(e,n,t,i){const r=mm(e,i,n),o=n[H],a=KC(i.parent||n[bt],i,n);if(null!=r)if(Array.isArray(t))for(let l=0;lk&&sD(e,n,k,!1),ni(s?2:0,r),t(i,r)}finally{Ir(o),ni(s?3:1,r)}}function Cm(e,n,t){if(cp(n)){const i=X(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function uD(e,n,t,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,l=Yi.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(null!==r){if(!r.hasOwnProperty(o))continue;c=r[o]}0===e?hD(i,t,c,a,l):hD(i,t,c,a)}return i}function hD(e,n,t,i,r){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,i):o=e[t]=[n,i],void 0!==r&&o.push(r)}function Yt(e,n,t,i,r,o,s,a){const l=Nt(n,t);let d,c=n.inputs;!a&&null!=c&&(d=c[i])?(Am(e,t,d,i,r),Dr(n)&&function aL(e,n){const t=rn(n,e);16&t[O]||(t[O]|=64)}(t,n.index)):3&n.type&&(i=function sL(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function Im(e,n,t,i){if(nw()){const r=null===i?null:{"":-1},o=function fL(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,o)}}(e,n,i,Oa(e,t,r.hostVars,W),r)}function si(e,n,t,i,r,o){const s=Nt(e,n);!function Sm(e,n,t,i,r,o,s){if(null==o)e.removeAttribute(n,r,t);else{const a=null==s?q(o):s(o,i||"",r);e.setAttribute(n,r,a,t)}}(n[H],s,o,e.value,t,i,r)}function yL(e,n,t,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(t[r-1][Fn]=n),i{Zc(e.lView)},consumerOnSignalRead(){this.lView[yn]=this}},TL={...ta,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=xi(e.lView);for(;n&&!DD(n[I]);)n=xi(n);n&&Jb(n)},consumerOnSignalRead(){this.lView[yn]=this}};function DD(e){return 2!==e.type}const AL=100;function kd(e,n=!0,t=0){const i=e[ei],r=i.rendererFactory;r.begin?.();try{!function kL(e,n){const t=sw();try{aw(!0),Fm(e,n);let i=0;for(;Wc(e);){if(i===AL)throw new b(103,!1);i++,Fm(e,1)}}finally{aw(t)}}(e,t)}catch(s){throw n&&Ad(e,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function RL(e,n,t,i){const r=n[O];if(!(256&~r))return;n[ei].inlineEffectRunner?.flush(),Dp(n);let a=!0,l=null,c=null;DD(e)?(c=function EL(e){return e[yn]??function xL(e){const n=CD.pop()??Object.create(ML);return n.lView=e,n}(e)}(n),l=vc(c)):null===function vf(){return We}()?(a=!1,c=function SL(e){const n=e[yn]??Object.create(TL);return n.lView=e,n}(n),l=vc(c)):n[yn]&&(Cf(n[yn]),n[yn]=null);try{Xb(n),function lw(e){return z.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&lD(e,n,t,2,i);const d=!(3&~r);if(d){const f=e.preOrderCheckHooks;null!==f&&td(n,f,null)}else{const f=e.preOrderHooks;null!==f&&nd(n,f,0,null),xp(n,0)}if(function FL(e){for(let n=tC(e);null!==n;n=nC(n)){if(!(n[O]&Gc.HasTransplantedViews))continue;const t=n[jo];for(let i=0;i-1&&(Fa(n,i),Nc(t,i))}this._attachedToViewContainer=!1}xd(this._lView[I],this._lView)}onDestroy(n){Yc(this._lView,n)}markForCheck(){La(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){mp(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,kd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=pa(this._lView),t=this._lView[Cr];null!==t&&!n&&fm(t,this._lView),qC(this._lView[I],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n;const t=pa(this._lView),i=this._lView[Cr];null!==i&&!t&&WC(i,this._lView),mp(this._lView)}}let Ri=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=LL}return e})();const OL=Ri,PL=class extends OL{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=Xo(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new Va(r)}};function LL(){return Rd(be(),C())}function Rd(e,n){return 4&e.type?new PL(n,e,$o(e,n)):null}let ZD=()=>null;function Br(e,n){return ZD(e,n)}class ts{}const qa=new E("",{providedIn:"root",factory:()=>!1}),YD=new E(""),$m=new E("");class A2{}class QD{}class R2{resolveComponentFactory(n){throw function k2(e){const n=Error(`No component factory found for ${at(e)}.`);return n.ngComponent=e,n}(n)}}class Wa{static#e=this.NULL=new R2}class Vd{}let Fi=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function F2(){const e=C(),t=rn(be().index,e);return(dt(t)?t:e)[H]}()}return e})(),N2=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>null})}return e})();function jd(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0&&rD(e,t,o.join(" "))}}(h,Y,p,i),void 0!==t&&function $2(e,n,t){const i=e.projection=[];for(let r=0;r{class e{static#e=this.__NG_ELEMENT_ID__=q2}return e})();function q2(){return rE(be(),C())}const W2=Qt,nE=class extends W2{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new ut(this._hostTNode,this._hostLView)}get parentInjector(){const n=od(this._hostTNode,this._hostLView);if(Sp(n)){const t=wa(n,this._hostLView),i=ba(n);return new ut(t[I].data[i+8],t)}return new ut(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=iE(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Ye}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=Br(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(a,r,Lr(this._hostTNode,s)),a}createComponent(n,t,i,r,o){const s=n&&!function ua(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new Qa(ee(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?c:this.parentInjector).get(xt,null);m&&(o=m)}const d=ee(l.componentType??{}),u=Br(this._lContainer,d?.id??null),f=l.create(c,r,u?.firstChild??null,o);return this.insertImpl(f.hostView,a,Lr(this._hostTNode,u)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function _O(e){return It(e[tt])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=r[tt],c=new nE(l,l[bt],l[tt]);c.detach(c.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;return Jo(s,r,o,i),n.attachToViewContainerRef(),wb(Wm(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=iE(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=Fa(this._lContainer,t);i&&(Nc(Wm(this._lContainer),t),xd(i[I],i))}detach(n){const t=this._adjustIndex(n,-1),i=Fa(this._lContainer,t);return i&&null!=Nc(Wm(this._lContainer),t)?new Va(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function iE(e){return e[8]}function Wm(e){return e[8]||(e[8]=[])}function rE(e,n){let t;const i=n[e.index];return It(i)?t=i:(t=mD(i,n,null,e),n[e.index]=t,Td(n,t)),oE(t,n,e,i),new nE(t,e,n)}let oE=function aE(e,n,t,i){if(e[ti])return;let r;r=8&t.type?de(i):function Z2(e,n){const t=e[H],i=t.createComment(""),r=Nt(n,e);return Nr(t,gm(t,r),i,function q1(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[ti]=r},Zm=()=>!1;class Ym{constructor(n){this.queryList=n,this.matches=null}clone(){return new Ym(this.queryList)}setDirty(){this.queryList.setDirty()}}class Qm{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;on.trim())}(n):n}}class Km{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i0)i.push(s[a/2]);else{const c=o[a+1],d=n[-l];for(let u=Ye;u=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=ca(r.hostAttrs,t=ca(t,r.hostAttrs))}}(i)}function fV(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];if(void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=n.inputTransforms[r]}}}function zd(e){return e===Kn?{}:e===ce?[]:e}function mV(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function gV(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function _V(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function Vn(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(t[i]=r[3])}e.inputTransforms=t}class jr{}class RE{}class ig extends jr{constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new eE(this);const o=Et(n);this._bootstrapComponents=an(o.bootstrap),this._r3Injector=Pw(n,t,[{provide:jr,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver},...i],at(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class rg extends RE{constructor(n){super(),this.moduleType=n}create(n){return new ig(this.moduleType,n,[])}}class FE extends jr{constructor(n){super(),this.componentFactoryResolver=new eE(this),this.instance=null;const t=new Fo([...n.providers,{provide:jr,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver}],n.parent||Uc(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function $d(e,n,t=null){return new FE({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}function Gd(e){return!!og(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function og(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Qe(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ja(e,n,t,i,r,o,s,a,l,c){const d=t+k,u=n.firstCreatePass?function TV(e,n,t,i,r,o,s,a,l){const c=n.consts,d=Pr(n,e,4,s||null,a||null);Im(n,t,d,bn(c,l)),ed(n,d);const u=d.tView=xm(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,n,e,i,r,o,s,a,l):n.data[d];On(u,!1);const h=NE(n,e,u,t);va()&&Id(n,e,h,u),Mt(h,e);const f=mD(h,e,h,u);return e[d]=f,Td(e,f),function sE(e,n,t){return Zm(e,n,t)}(f,u,e),qc(u)&&Dm(n,e,u),null!=l&&Em(e,u,c),u}function Ke(e,n,t,i,r,o,s,a){const l=C(),c=J();return Ja(l,c,e,n,t,i,r,bn(c.consts,o),s,a),Ke}let NE=function OE(e,n,t,i){return ii(!0),n[H].createComment("")};var ss=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ss||{});let UE=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();class nl{constructor(){this.ngZone=w($),this.scheduler=w(ts),this.errorHandler=w(on,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[ss.EarlyRead,ss.Write,ss.MixedReadWrite,ss.Read];execute(){this.executing=!0;for(const n of nl.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(i){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static#t=this.\u0275prov=M({token:nl,providedIn:"root",factory:()=>new nl})}class FV{constructor(n,t,i,r){this.impl=n,this.hooks=t,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function Ni(e,n){!n?.injector&&sp();const t=n?.injector??w(Ge);return ln(t)?(Pt("NgAfterNextRender"),zE(e,t,n,!0)):$E}function zE(e,n,t,i){const r=n.get(UE);r.impl??=n.get(nl);const o=t?.phase??ss.MixedReadWrite,s=!0!==t?.manualCleanup?n.get(Ca):null,a=new FV(r.impl,function NV(e,n){if(e instanceof Function){const t=[void 0,void 0,void 0,void 0];return t[n]=e,t}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,o),i,s);return r.impl.register(a),a}const $E={destroy(){}};function Ue(e,n,t,i){const r=C();return Qe(r,Pn(),n)&&(J(),si(Ae(),r,e,n,t,i)),Ue}function fs(e,n,t,i){return Qe(e,Pn(),t)?n+q(t)+i:W}function Xd(e,n){return e<<17|n<<2}function ir(e){return e>>17&32767}function gg(e){return 2|e}function zr(e){return(131068&e)>>2}function _g(e,n){return-131069&e|n<<2}function vg(e){return 1|e}function gx(e,n,t,i){const r=e[t+1],o=null===n;let s=i?ir(r):zr(r),a=!1;for(;0!==s&&(!1===a||o);){const c=e[s+1];gB(e[s],n)&&(a=!0,e[s+1]=i?vg(c):gg(c)),s=i?ir(c):zr(c)}a&&(e[t+1]=i?gg(r):vg(r))}function gB(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ro(e,n)>=0}const ht={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _x(e){return e.substring(ht.key,ht.keyEnd)}function vx(e,n){const t=ht.textEnd;return t===n?-1:(n=ht.keyEnd=function bB(e,n,t){for(;n32;)n++;return n}(e,ht.key=n,t),ws(e,n,t))}function ws(e,n,t){for(;n=0;t=vx(n,t))nn(e,_x(n),!0)}function Bn(e,n,t,i){const r=C(),o=J(),s=Mi(2);o.firstUpdatePass&&Ex(o,e,s,i),n!==W&&Qe(r,s,n)&&Ix(o,o.data[wt()],r,r[H],e,r[s+1]=function kB(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=at(sn(e)))),e}(n,t),i,s)}function Dx(e,n){return n>=e.expandoStartIndex}function Ex(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[wt()],s=Dx(e,t);Sx(o,i)&&null===n&&!s&&(n=!1),n=function EB(e,n,t,i){const r=function wp(e){const n=z.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=ol(t=bg(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=bg(r,e,n,t,i),null===o){let l=function xB(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==zr(i))return e[ir(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=bg(null,e,n,l[1],i),l=ol(l,n.attrs,i),function IB(e,n,t,i){e[ir(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function MB(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):d=t,r)if(0!==l){const h=ir(e[a+1]);e[i+1]=Xd(h,a),0!==h&&(e[h+1]=_g(e[h+1],i)),e[a+1]=function hB(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=Xd(a,0),0!==a&&(e[a+1]=_g(e[a+1],i)),a=i;else e[i+1]=Xd(l,0),0===a?a=i:e[l+1]=_g(e[l+1],i),l=i;c&&(e[i+1]=gg(e[i+1])),gx(e,d,i,!0),gx(e,d,i,!1),function mB(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Ro(o,n)>=0&&(t[i+1]=vg(t[i+1]))}(n,d,e,i,o),s=Xd(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function bg(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=t[r+1];h===W&&(h=u?ce:void 0);let f=u?Yf(h,i):d===i?h:void 0;if(c&&!Jd(f)&&(f=Yf(l,i)),Jd(f)&&(a=f,s))return a;const p=e[r+1];r=s?ir(p):zr(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Yf(l,i))}return a}function Jd(e){return void 0!==e}function Sx(e,n){return!!(e.flags&(n?8:16))}function di(e,n){Pt("NgControlFlow");const t=C(),i=Pn(),r=t[i]!==W?t[i]:-1,o=-1!==r?eu(t,k+r):void 0;if(Qe(t,i,e)){const a=X(null);try{if(void 0!==o&&function Rm(e,n){const t=Fa(e,n);return void 0!==t&&xd(t[I],t),t}(o,0),-1!==e){const l=k+e,c=eu(t,l),d=function Dg(e,n){return ga(e,n)}(t[I],l),u=Br(c,d.tView.ssrId);Jo(c,Xo(t,d,n,{dehydratedView:u}),0,Lr(d,u))}}finally{X(a)}}else if(void 0!==o){const a=function bD(e,n){const t=Ye+n;if(t(ii(!0),Ed(i,r,function gw(){return z.lFrame.currentNamespace}()));function Cs(e,n,t){const i=C(),r=J(),o=e+k,s=r.firstCreatePass?function nj(e,n,t,i,r){const o=n.consts,s=bn(o,i),a=Pr(n,e,8,"ng-container",s);return null!==s&&jd(a,s,!0),Im(n,t,a,bn(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,t):r.data[o];On(s,!0);const a=Nx(r,i,s,e);return i[o]=a,va()&&Id(r,i,a,s),Mt(a,i),qc(s)&&(Dm(r,i,s),Cm(r,s,i)),null!=t&&Em(i,s),Cs}function Ds(){let e=be();const n=J();return vp()?yp():(e=e.parent,On(e,!1)),n.firstCreatePass&&(ed(n,e),cp(e)&&n.queries.elementEnd(e)),Ds}let Nx=(e,n,t,i)=>(ii(!0),hm(n[H],""));function tu(){return C()}function $r(e,n,t){const i=C();return Qe(i,Pn(),n)&&Yt(J(),Ae(),i,e,n,i[H],t,!0),$r}const nu="en-US";let Vx=nu,n0=(e,n,t)=>{};function Le(e,n,t,i){const r=C(),o=J(),s=be();return function Ig(e,n,t,i,r,o,s){const a=qc(i),c=e.firstCreatePass&&vD(e),d=n[Te],u=_D(n);let h=!0;if(3&i.type||s){const m=Nt(i,n),g=s?s(m):m,y=u.length,_=s?S=>s(de(S[i.index])):i.index;let x=null;if(!s&&a&&(x=function Yj(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,h=!1;else{o=a0(i,n,d,o),n0(m,r,o);const S=t.listen(g,r,o);u.push(o,S),c&&c.push(r,_,y,y+1)}}else o=a0(i,n,d,o);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?rn(e.index,n):n,5);let a=s0(n,t,i,o),l=r.__ngNextListenerFn__;for(;l;)a=s0(n,t,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Ve(e=1){return function AO(e){return(z.lFrame.contextLView=function ew(e,n){for(;e>0;)n=n[Lo],e--;return n}(e,z.lFrame.contextLView))[Te]}(e)}function Qj(e,n){let t=null;const i=function FN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r(ii(!0),function um(e,n){return e.createText(n)}(n[H],i));function qr(e){return Cn("",e,""),qr}function Cn(e,n,t){const i=C(),r=fs(i,e,n,t);return r!==W&&function ki(e,n,t){const i=ma(n,e);!function GC(e,n,t){e.setValue(n,t)}(e[H],i,t)}(i,wt(),r),Cn}function Ag(e,n,t,i,r){if(e=j(e),Array.isArray(e))for(let o=0;o>20;if(wr(e)||!e.multi){const f=new ya(c,r,v),p=Rg(l,n,r?d:d+h,u);-1===p?(kp(rd(a,s),o,l),kg(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[p]=f,s[p]=f)}else{const f=Rg(l,n,d+h,u),p=Rg(l,n,d,d+h),g=p>=0&&t[p];if(r&&!g||!r&&!(f>=0&&t[f])){kp(rd(a,s),o,l);const y=function yU(e,n,t,i,r){const o=new ya(e,t,v);return o.multi=[],o.index=n,o.componentProviders=0,V0(o,r,i&&!t),o}(r?vU:_U,t.length,r,i,c);!r&&g&&(t[p].providerFactory=y),kg(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(y),s.push(y)}else kg(o,e,f>-1?f:p,V0(t[r?p:f],c,!r&&i));!r&&i&&g&&t[p].componentProviders++}}}function kg(e,n,t,i){const r=wr(n),o=function qN(e){return!!e.useClass}(n);if(r||o){const l=(o?j(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=c.indexOf(t);-1===d?c.push(t,[i,l]):c[d+1].push(i,l)}else c.push(t,l)}}}function V0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Rg(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=>function gU(e,n,t){const i=J();if(i.firstCreatePass){const r=Nn(e);Ag(t,i.data,i.blueprint,r,!0),Ag(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}let bU=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Jf(0,t.type),r=i.length>0?$d([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=M({token:e,providedIn:"environment",factory:()=>new e(D(xt))})}return e})();function Xt(e){Pt("NgStandalone"),e.getStandaloneInjector=n=>n.get(bU).getOrCreateStandaloneInjector(e)}function U0(e,n,t,i,r,o){const s=n+t;return Qe(e,s,r)?function ai(e,n,t){return e[n]=t}(e,s+1,o?i.call(o,r):i(r)):function ul(e,n){const t=e[n];return t===W?void 0:t}(e,s+1)}function cu(e,n){const t=J();let i;const r=e+k;t.firstCreatePass?(i=function NU(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=br(i.type)),a=Gt(v);try{const l=id(!1),c=o();return id(l),function Tg(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,C(),r,c),c}finally{Gt(a)}}function du(e,n,t){const i=e+k,r=C(),o=function Er(e,n){return e[n]}(r,i);return function hl(e,n){return e[I].data[n].pure}(r,i)?U0(r,function Ot(){const e=z.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,o.transform,t,o):o.transform(t)}let aI=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const hI=new E(""),fu=new E("");let Ug,Bg=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Ug||(function RH(e){Ug=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!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(t,i,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(D($),D(jg),D(fu))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),jg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Ug?.findTestabilityInTree(this,t,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ml(e){return!!e&&"function"==typeof e.then}function fI(e){return!!e&&"function"==typeof e.subscribe}const Hg=new E("");let pI=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=w(Hg,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(ml(o))t.push(o);else if(fI(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pu=new E("");function gI(e,n){return Array.isArray(n)?n.reduce(gI,e):{...e,...n}}let Hn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(fP),this.afterRenderManager=w(UE),this.zonelessEnabled=w(qa),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Q,this.afterTick=new Q,this.componentTypes=[],this.components=[],this.isStable=w(Si).hasPendingTasks.pipe(Z(t=>!t)),this._injector=w(xt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof QD;if(!this._injector.get(pI).done)throw!r&&function Qi(e){const n=ee(e)||lt(e)||yt(e);return null!==n&&n.standalone}(t),new b(405,!1);let s;s=r?t:this._injector.get(Wa).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function FH(e){return e.isBoundToModule}(s)?void 0:this._injector.get(jr),c=s.create(Ge.NULL,[],i||s.selector,a),d=c.location.nativeElement,u=c.injector.get(hI,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),mu(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new b(101,!1);const t=X(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,X(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(Vd,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;0!==this.dirtyFlags&&i++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const i=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:r,notifyErrorHandler:o}of this._views)PH(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Wc(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;mu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(pu,[]);[...this._bootstrapListeners,...i].forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>mu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new b(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function PH(e,n,t,i){(t||Wc(e))&&kd(e,n,t&&!i?0:1)}class LH{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let vI=(()=>{class e{compileModuleSync(t){return new rg(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=an(Et(t).declarations).reduce((s,a)=>{const l=ee(a);return l&&s.push(new Qa(l)),s},[]);return new LH(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jH=(()=>{class e{constructor(){this.zone=w($),this.changeDetectionScheduler=w(ts),this.applicationRef=w(Hn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zg({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new $({...$g(),scheduleInRootZone:t}),[{provide:$,useFactory:e},{provide:Xn,multi:!0,useFactory:()=>{const i=w(jH,{optional:!0});return()=>i.initialize()}},{provide:Xn,multi:!0,useFactory:()=>{const i=w(HH);return()=>{i.initialize()}}},!0===n?{provide:YD,useValue:!0}:[],{provide:$m,useValue:t??Vw}]}function $g(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let HH=(()=>{class e{constructor(){this.subscription=new ze,this.initialized=!1,this.zone=w($),this.pendingTasks=w(Si)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gl=(()=>{class e{constructor(){this.appRef=w(Hn),this.taskService=w(Si),this.ngZone=w($),this.zonelessEnabled=w(qa),this.disableScheduling=w(YD,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ze,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(cd):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w($m,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Vp||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const i=this.useMicrotaskScheduler?jw:Bw;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>i(()=>this.tick())):this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(cd+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,jw(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Oi=new E("",{providedIn:"root",factory:()=>w(Oi,ne.Optional|ne.SkipSelf)||function zH(){return typeof $localize<"u"&&$localize.locale||nu}()}),_u=new E("");function vu(e){return!e.moduleRef}let EI=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=i?.scheduleInRootZone,s=i?.ignoreChangesOutsideZone,a=[zg({ngZoneFactory:()=>function hP(e="zone.js",n){return"noop"===e?new Vp:"zone.js"===e?new $(n):e}(i?.ngZone,{...$g({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}),scheduleInRootZone:r}),ignoreChangesOutsideZone:s}),{provide:ts,useExisting:gl}],l=function EV(e,n,t){return new ig(e,n,t,!1)}(t.moduleType,this.injector,a);return function DI(e){const n=vu(e)?e.r3Injector:e.moduleRef.injector,t=n.get($);return t.run(()=>{vu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(on,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),vu(e)){const o=()=>n.destroy(),s=e.platformInjector.get(_u);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{const o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_u);s.add(o),e.moduleRef.onDestroy(()=>{mu(e.allPlatformModules,e.moduleRef),r.unsubscribe(),s.delete(o)})}return function OH(e,n,t){try{const i=t();return ml(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(i,t,()=>{const o=n.get(pI);return o.runInitializers(),o.donePromise.then(()=>{if(function uj(e){"string"==typeof e&&(Vx=e.toLowerCase().replace(/_/g,"-"))}(n.get(Oi,nu)||nu),vu(e)){const a=n.get(Hn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function YH(e,n){const t=e.injector.get(Hn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new b(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:l,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,i=[]){const r=gI({},i);return function BH(e,n,t){const i=new rg(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(_u,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ge))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),rr=null;const xI=new E("");function II(e,n,t=[]){const i=`Platform: ${n}`,r=new E(i);return(o=[])=>{let s=qg();if(!s||s.injector.get(xI,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function QH(e){if(rr&&!rr.get(xI,!1))throw new b(400,!1);(function mI(){!function VF(e){Ky=e}(()=>{throw new b(600,!1)})})(),rr=e;const n=e.get(EI);(function SI(e){e.get(uC,null)?.forEach(t=>t())})(e)}(function MI(e=[],n){return Ge.create({name:n,providers:[{provide:np,useValue:"platform"},{provide:_u,useValue:new Set([()=>rr=null])},...e]})}(a,i))}return function KH(){const n=qg();if(!n)throw new b(401,!1);return n}()}}function qg(){return rr?.get(EI)??null}let ui=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=JH}return e})();function JH(e){return function ez(e,n,t){if(Dr(e)&&!t){const i=rn(e.index,n);return new Va(i,i)}return 175&e.type?new Va(n[Pe],n):null}(be(),C(),!(16&~e))}class FI{constructor(){}supports(n){return Gd(n)}create(n){return new oz(n)}}const rz=(e,n)=>n;class oz{constructor(n){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=n||rz}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new sz(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}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(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new NI),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NI),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class sz{constructor(n,t){this.item=n,this.trackById=t,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 az{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class NI{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new az,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function OI(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new cz(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class cz{constructor(n){this.key=n,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 LI(){return new Kg([new FI])}let Kg=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:LI});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||LI()),deps:[[e,new la,new yr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new b(901,!1)}}return e})();function VI(){return new wu([new PI])}let wu=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:VI});constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||VI()),deps:[[e,new la,new yr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new b(901,!1)}}return e})();const hz=II(null,"core",[]);let fz=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(i){return new(i||e)(D(Hn))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();function xe(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function aM(e,n=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function zn(e){const n=X(null);try{return e()}finally{X(n)}}const Gz=new E("",{providedIn:"root",factory:()=>w(qz)});let qz=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>new Wz})}return e})();class Wz{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=w(Si),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(n){const t=n.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const i=this.queues.get(t);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}class Zz{constructor(n,t,i,r,o,s){this.scheduler=n,this.effectFn=t,this.creationZone=i,this.injector=o,this.watcher=function zF(e,n,t){const i=Object.create($F);t&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const r=l=>{i.cleanupFn=l};return i.ref={notify:()=>Wy(i),run:()=>{if(null===i.fn)return;if(function FF(){return Do}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!wf(i))return;i.hasRun=!0;const l=vc(i);try{i.cleanupFn(),i.cleanupFn=xf,i.fn(r)}finally{bf(i,l)}},cleanup:()=>i.cleanupFn(),destroy:()=>function s(l){(function o(l){return null===l.fn&&null===l.schedule})(l)||(Cf(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=xf)}(i),[An]:i},i.ref}(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(on,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let cM=null;function or(){return cM}class Kz{}const te=new E("");let e_=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(Jz),providedIn:"platform"})}return e})();const Xz=new E("");let Jz=(()=>{class e extends e_{constructor(){super(),this._doc=w(te),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return or().getBaseHref(this._doc)}onPopState(t){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function t_(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function dM(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Pi(e){return e&&"?"!==e[0]?"?"+e:e}let Yr=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(hM),providedIn:"root"})}return e})();const uM=new E("");let hM=(()=>{class e extends Yr{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(te).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return t_(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Pi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Pi(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Pi(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(e_),D(uM,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),e$=(()=>{class e extends Yr{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=t_(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+Pi(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+Pi(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(e_),D(uM,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Ms=(()=>{class e{constructor(t){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function i$(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(dM(fM(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Pi(i))}normalize(t){return e.stripTrailingSlash(function n$(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,fM(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Pi(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Pi(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static#e=this.normalizeQueryParams=Pi;static#t=this.joinWithSlash=t_;static#n=this.stripTrailingSlash=dM;static#i=this.\u0275fac=function(i){return new(i||e)(D(Yr))};static#r=this.\u0275prov=M({token:e,factory:()=>function t$(){return new Ms(D(Yr))}(),providedIn:"root"})}return e})();function fM(e){return e.replace(/\/index.html$/,"")}function CM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const u_=/\s+/,DM=[];let EM=(()=>{class e{constructor(t,i){this._ngEl=t,this._renderer=i,this.initialClasses=DM,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(u_):DM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(u_):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],r=t[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(u_).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Fi))};static#t=this.\u0275dir=R({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class H${constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}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 IM=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new H$(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),MM(a,r)}});for(let r=0,o=i.length;r{MM(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(v(Qt),v(Ri),v(Kg))};static#t=this.\u0275dir=R({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function MM(e,n){e.context.$implicit=n.item}let SM=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new z$,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){TM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){TM("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(v(Qt),v(Ri))};static#t=this.\u0275dir=R({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class z${constructor(){this.$implicit=null,this.ngIf=null}}function TM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${at(n)}'.`)}class q${createSubscription(n,t){return zn(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){zn(()=>n.unsubscribe())}}class W${createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const Z$=new W$,Y$=new q$;let kM=(()=>{class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(ml(t))return Z$;if(fI(t))return Y$;throw function Gn(e,n){return new b(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(v(ui,16))};static#t=this.\u0275pipe=Dt({name:"async",type:e,pure:!1,standalone:!0})}return e})(),RM=(()=>{class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=FM}transform(t,i=FM){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ??=this.differs.find(t).create();const r=this.differ.diff(t),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(s=>{this.keyValues.push(function c3(e,n){return{key:e,value:n}}(s.key,s.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static#e=this.\u0275fac=function(i){return new(i||e)(v(wu,16))};static#t=this.\u0275pipe=Dt({name:"keyvalue",type:e,pure:!1,standalone:!0})}return e})();function FM(e,n){const t=e.key,i=n.key;if(t===i)return 0;if(void 0===t)return 1;if(void 0===i)return-1;if(null===t)return 1;if(null===i)return-1;if("string"==typeof t&&"string"==typeof i)return t{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();const NM="browser";function sr(e){return e===NM}function OM(e){return"server"===e}let p3=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>sr(w(Ln))?new m3(w(te),window):new _3})}return e})();class m3{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function g3(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class _3{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class PM{}class G3 extends Kz{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class b_ extends G3{static makeCurrent(){!function Qz(e){cM??=e}(new b_)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function q3(){return El=El||document.querySelector("base"),El?El.getAttribute("href"):null}();return null==t?null:function W3(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){El=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return CM(document.cookie,n)}}let El=null,Y3=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const w_=new E("");let WM=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(t,i),i}static#e=this.\u0275fac=function(i){return new(i||e)(D(w_),D($))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class ZM{constructor(n){this._doc=n}}const C_="ng-app-id";let YM=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=OM(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${C_}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(C_),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(C_,this.appId),t.appendChild(s),s}}addStyleToHost(t,i){const r=this.getStyleElement(t,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(kr),D($p,8),D(Ln))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const D_={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/Math/MathML"},E_=/%COMP%/g,J3=new E("",{providedIn:"root",factory:()=>!0});function KM(e,n){return n.map(t=>t.replace(E_,e))}let x_=(()=>{class e{constructor(t,i,r,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=OM(a),this.defaultRenderer=new I_(t,s,l,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===kn.ShadowDom&&(i={...i,encapsulation:kn.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof JM?r.applyToHost(t):r instanceof M_&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case kn.Emulated:o=new JM(l,c,i,this.appId,d,s,a,u);break;case kn.ShadowDom:return new i8(l,c,t,i,s,a,this.nonce,u);default:o=new M_(l,c,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||e)(D(WM),D(YM),D(kr),D(J3),D(te),D(Ln),D($),D($p))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class I_{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(D_[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(XM(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(XM(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){t.remove()}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new b(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=D_[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=D_[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(Ji.DashCase|Ji.Important)?n.style.setProperty(t,i,r&Ji.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&Ji.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){null!=n&&(n[t]=i)}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=or().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function XM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class i8 extends I_{constructor(n,t,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=KM(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class M_ extends I_{constructor(n,t,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?KM(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class JM extends M_{constructor(n,t,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,t,i,o,s,a,l,c),this.contentAttr=function e8(e){return"_ngcontent-%COMP%".replace(E_,e)}(c),this.hostAttr=function t8(e){return"_nghost-%COMP%".replace(E_,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let r8=(()=>{class e extends ZM{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const eS=["alt","control","meta","shift"],o8={"\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"},s8={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let a8=(()=>{class e extends ZM{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>or().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),eS.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=o8[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),eS.forEach(s=>{s!==r&&(0,s8[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const u8=II(hz,"browser",[{provide:Ln,useValue:NM},{provide:uC,useValue:function l8(){b_.makeCurrent()},multi:!0},{provide:te,useFactory:function d8(){return function OP(e){zp=e}(document),document},deps:[]}]),h8=new E(""),iS=[{provide:fu,useClass:class Z3{addToWindow(n){Fe.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new b(5103,!1);return o},Fe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fe.getAllAngularRootElements=()=>n.getAllRootElements(),Fe.frameworkStabilizers||(Fe.frameworkStabilizers=[]),Fe.frameworkStabilizers.push(i=>{const r=Fe.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?or().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:hI,useClass:Bg,deps:[$,jg,fu]},{provide:Bg,useClass:Bg,deps:[$,jg,fu]}],rS=[{provide:np,useValue:"root"},{provide:on,useFactory:function c8(){return new on},deps:[]},{provide:w_,useClass:r8,multi:!0,deps:[te,$,Ln]},{provide:w_,useClass:a8,multi:!0,deps:[te]},x_,YM,WM,{provide:Vd,useExisting:x_},{provide:PM,useClass:Y3,deps:[]},[]];let oS=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:kr,useValue:t.appId}]}}static#e=this.\u0275fac=function(i){return new(i||e)(D(h8,12))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[...rS,...iS],imports:[g_,fz]})}return e})(),f8=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xl=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:function(i){let r=null;return r=i?new(i||e):D(_8),r},providedIn:"root"})}return e})(),_8=(()=>{class e extends xl{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case mt.NONE:return i;case mt.HTML:return oi(i,"HTML")?sn(i):NC(this._doc,String(i)).toString();case mt.STYLE:return oi(i,"Style")?sn(i):i;case mt.SCRIPT:if(oi(i,"Script"))return sn(i);throw new b(5200,!1);case mt.URL:return oi(i,"URL")?sn(i):bd(String(i));case mt.RESOURCE_URL:if(oi(i,"ResourceURL"))return sn(i);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(t){return function n1(e){return new QP(e)}(t)}bypassSecurityTrustStyle(t){return function r1(e){return new KP(e)}(t)}bypassSecurityTrustScript(t){return function o1(e){return new XP(e)}(t)}bypassSecurityTrustUrl(t){return function s1(e){return new JP(e)}(t)}bypassSecurityTrustResourceUrl(t){return function a1(e){return new e1(e)}(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ar(e){return this instanceof ar?(this.v=e,this):new ar(e)}function uS(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function R_(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const F_=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function hS(e){return fe(e?.then)}function fS(e){return fe(e[Ff])}function pS(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}function mS(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const gS=function $8(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function _S(e){return fe(e?.[gS])}function vS(e){return function dS(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(f,p){i[f]&&(r[f]=function(m){return new Promise(function(g,y){o.push([f,m,g,y])>1||l(f,m)})},p&&(r[f]=p(r[f])))}function l(f,p){try{!function c(f){f.value instanceof ar?Promise.resolve(f.value.v).then(d,u):h(o[0][2],f)}(i[f](p))}catch(m){h(o[0][3],m)}}function d(f){l("next",f)}function u(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield ar(t.read());if(r)return yield ar(void 0);yield yield ar(i)}}finally{t.releaseLock()}})}function yS(e){return fe(e?.getReader)}function Ut(e){if(e instanceof Ne)return e;if(null!=e){if(fS(e))return function G8(e){return new Ne(n=>{const t=e[Ff]();if(fe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(F_(e))return function q8(e){return new Ne(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,ib)})}(e);if(pS(e))return bS(e);if(_S(e))return function Z8(e){return new Ne(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(yS(e))return function Y8(e){return bS(vS(e))}(e)}throw mS(e)}function bS(e){return new Ne(n=>{(function Q8(e,n){var t,i,r,o;return function lS(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(a,l)}c((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=uS(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Bi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function wS(e,n=0){return Ze((t,i)=>{t.subscribe(je(i,r=>Bi(i,e,()=>i.next(r),n),()=>Bi(i,e,()=>i.complete(),n),r=>Bi(i,e,()=>i.error(r),n)))})}function CS(e,n=0){return Ze((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function DS(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ne(t=>{Bi(t,n,()=>{const i=e[Symbol.asyncIterator]();Bi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function ot(e,n){return n?function n4(e,n){if(null!=e){if(fS(e))return function K8(e,n){return Ut(e).pipe(CS(n),wS(n))}(e,n);if(F_(e))return function J8(e,n){return new Ne(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(hS(e))return function X8(e,n){return Ut(e).pipe(CS(n),wS(n))}(e,n);if(pS(e))return DS(e,n);if(_S(e))return function e4(e,n){return new Ne(t=>{let i;return Bi(t,n,()=>{i=e[gS](),Bi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>fe(i?.return)&&i.return()})}(e,n);if(yS(e))return function t4(e,n){return DS(vS(e),n)}(e,n)}throw mS(e)}(e,n):Ut(e)}function ES(e){return e&&fe(e.schedule)}function N_(e){return e[e.length-1]}function xS(e){return fe(N_(e))?e.pop():void 0}function Il(e){return ES(N_(e))?e.pop():void 0}function N(...e){return ot(e,Il(e))}const{isArray:o4}=Array,{getPrototypeOf:s4,prototype:a4,keys:l4}=Object;function IS(e){if(1===e.length){const n=e[0];if(o4(n))return{args:n,keys:null};if(function c4(e){return e&&"object"==typeof e&&s4(e)===a4}(n)){const t=l4(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:d4}=Array;function O_(e){return Z(n=>function u4(e,n){return d4(n)?e(...n):e(n)}(e,n))}function MS(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function zu(...e){const n=Il(e),t=xS(e),{args:i,keys:r}=IS(e);if(0===i.length)return ot([],n);const o=new Ne(function h4(e,n,t=qi){return i=>{SS(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=ot(e[l],n);let d=!1;c.subscribe(je(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>MS(r,s):qi));return t?o.pipe(O_(t)):o}function SS(e,n,t){e?Bi(t,e,n):n()}const $u=If(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ct(e,n,t=1/0){return fe(n)?Ct((i,r)=>Z((o,s)=>n(i,o,r,s))(Ut(e(i,r))),t):("number"==typeof n&&(t=n),Ze((i,r)=>function f4(e,n,t,i,r,o,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&n.complete()},f=m=>c{o&&n.next(m),c++;let g=!1;Ut(t(m,d++)).subscribe(je(n,y=>{r?.(y),o?f(y):n.next(y)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&cp(y)):p(y)}h()}catch(y){n.error(y)}}))};return e.subscribe(je(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,e,t)))}function As(e=1/0){return Ct(qi,e)}function Gu(...e){return function p4(){return As(1)}()(ot(e,Il(e)))}function TS(e){return new Ne(n=>{Ut(e()).subscribe(n)})}function Ml(e,n){const t=fe(e)?e:()=>e,i=r=>r.error(t());return new Ne(n?r=>n.schedule(i,0,r):i)}const qn=new Ne(e=>e.complete());function P_(){return Ze((e,n)=>{let t=null;e._refCount++;const i=je(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class AS extends Ne{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,ab(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ze;const t=this.getSubject();n.add(this.source.subscribe(je(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ze.EMPTY)}return n}refCount(){return P_()(this)}}function hn(e,n){return Ze((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(je(i,l=>{r?.unsubscribe();let c=0;const d=o++;Ut(e(l,d)).subscribe(r=je(i,u=>i.next(n?n(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function hi(e){return e<=0?()=>qn:Ze((n,t)=>{let i=0;n.subscribe(je(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function Kr(...e){const n=Il(e);return Ze((t,i)=>{(n?Gu(e,t,n):Gu(e,t)).subscribe(i)})}function fn(e,n){return Ze((t,i)=>{let r=0;t.subscribe(je(i,o=>e.call(n,o,r++)&&i.next(o)))})}function qu(e){return Ze((n,t)=>{let i=!1;n.subscribe(je(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function kS(e=g4){return Ze((n,t)=>{let i=!1;n.subscribe(je(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function g4(){return new $u}function lr(e,n){const t=arguments.length>=2;return i=>i.pipe(e?fn((r,o)=>e(r,o,i)):qi,hi(1),t?qu(n):kS(()=>new $u))}function ks(e,n){return fe(n)?Ct(e,n,1):Ct(e,1)}function pt(e,n,t){const i=fe(e)||n||t?{next:e,error:n,complete:t}:e;return i?Ze((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(je(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):qi}function Xr(e){return Ze((n,t)=>{let o,i=null,r=!1;i=n.subscribe(je(t,void 0,void 0,s=>{o=Ut(e(s,Xr(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function L_(e){return e<=0?()=>qn:Ze((n,t)=>{let i=[];n.subscribe(je(t,r=>{i.push(r),e{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function RS(e){return Z(()=>e)}function Rs(e){return Ze((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function qe(e){return Ze((n,t)=>{Ut(e).subscribe(je(t,()=>t.complete(),Sf)),!t.closed&&n.subscribe(t)})}const K="primary",Sl=Symbol("RouteTitle");class b4{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Fs(e){return new b4(e)}function w4(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return e===n}function NS(e){return e.length>0?e[e.length-1]:null}function cr(e){return function S_(e){return!!e&&(e instanceof Ne||fe(e.lift)&&fe(e.subscribe))}(e)?e:ml(e)?ot(Promise.resolve(e)):N(e)}const D4={exact:function LS(e,n,t){if(!eo(e.segments,n.segments)||!Wu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!LS(e.children[i],n.children[i],t))return!1;return!0},subset:VS},OS={exact:function E4(e,n){return fi(e,n)},subset:function x4(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>FS(e[t],n[t]))},ignored:()=>!0};function PS(e,n,t){return D4[t.paths](e.root,n.root,t.matrixParams)&&OS[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function VS(e,n,t){return BS(e,n,n.segments,t)}function BS(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!eo(r,t)||n.hasChildren()||!Wu(r,t,i))}if(e.segments.length===t.length){if(!eo(e.segments,t)||!Wu(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!VS(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(eo(e.segments,r)&&Wu(e.segments,r,i)&&e.children[K])&&BS(e.children[K],n,o,i)}}function Wu(e,n,t){return n.every((i,r)=>OS[t](e[r].parameters,i.parameters))}class Jr{constructor(n=new we([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Fs(this.queryParams),this._queryParamMap}toString(){return S4.serialize(this)}}class we{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yu(this)}}class Tl{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Fs(this.parameters),this._parameterMap}toString(){return HS(this)}}function eo(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Ns=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>new Zu,providedIn:"root"})}return e})();class Zu{parse(n){const t=new B4(n);return new Jr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Al(n.root,!0)}`,i=function k4(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${Qu(t)}=${Qu(r)}`).join("&"):`${Qu(t)}=${Qu(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function T4(e){return encodeURI(e)}(n.fragment)}`:""}`}}const S4=new Zu;function Yu(e){return e.segments.map(n=>HS(n)).join("/")}function Al(e,n){if(!e.hasChildren())return Yu(e);if(n){const t=e.children[K]?Al(e.children[K],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==K&&i.push(`${r}:${Al(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function M4(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===K&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==K&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===K?[Al(e.children[K],!1)]:[`${r}:${Al(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[K]?`${Yu(e)}/${t[0]}`:`${Yu(e)}/(${t.join("//")})`}}function jS(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qu(e){return jS(e).replace(/%3B/gi,";")}function B_(e){return jS(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ku(e){return decodeURIComponent(e)}function US(e){return Ku(e.replace(/\+/g,"%20"))}function HS(e){return`${B_(e.path)}${function A4(e){return Object.entries(e).map(([n,t])=>`;${B_(n)}=${B_(t)}`).join("")}(e.parameters)}`}const R4=/^[^\/()?;#]+/;function j_(e){const n=e.match(R4);return n?n[0]:""}const F4=/^[^\/()?;=#]+/,O4=/^[^=?&#]+/,L4=/^[^&#]+/;class B4{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[K]=new we(n,t)),i}parseSegment(){const n=j_(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Tl(Ku(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function N4(e){const n=e.match(F4);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=j_(this.remaining);r&&(i=r,this.capture(i))}n[Ku(t)]=Ku(i)}parseQueryParam(n){const t=function P4(e){const n=e.match(O4);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function V4(e){const n=e.match(L4);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=US(t),o=US(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=j_(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new b(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=K);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[K]:new we([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}}function zS(e){return e.segments.length>0?new we([],{[K]:e}):e}function $S(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=$S(r);if(i===K&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function j4(e){if(1===e.numberOfChildren&&e.children[K]){const n=e.children[K];return new we(e.segments.concat(n.segments),n.children)}return e}(new we(e.segments,n))}function to(e){return e instanceof Jr}function GS(e){let n;const r=zS(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new we(o.url,s);return o===e&&(n=a),a}(e.root));return n??r}function qS(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return U_(r,r,r,t,i);const o=function H4(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ZS(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new ZS(t,n,i)}(n);if(o.toRoot())return U_(r,r,new we([],{}),t,i);const s=function z4(e,n,t){if(e.isAbsolute)return new Ju(n,!0,0);if(!t)return new Ju(n,!1,NaN);if(null===t.parent)return new Ju(t,!0,0);const i=Xu(e.commands[0])?0:1;return function $4(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new b(4005,!1);r=i.segments.length}return new Ju(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?Rl(s.segmentGroup,s.index,o.commands):YS(s.segmentGroup,s.index,o.commands);return U_(r,s.segmentGroup,a,t,i)}function Xu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function kl(e){return"object"==typeof e&&null!=e&&e.outlets}function U_(e,n,t,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),s=e===n?t:WS(e,n,t);const a=zS($S(s));return new Jr(a,o,r)}function WS(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:WS(o,n,t)}),new we(e.segments,i)}class ZS{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Xu(i[0]))throw new b(4003,!1);const r=i.find(kl);if(r&&r!==NS(i))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ju{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function YS(e,n,t){if(e??=new we([],{}),0===e.segments.length&&e.hasChildren())return Rl(e,n,t);const i=function q4(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=e.segments[r],a=t[i];if(kl(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!KS(l,c,s))return o;i+=2}else{if(!KS(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndexo!==K)&&e.children[K]&&1===e.numberOfChildren&&0===e.children[K].segments.length){const o=Rl(e.children[K],n,t);return new we(e.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=YS(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new we(e.segments,r)}}function H_(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=H_(new we([],{}),0,i))}),n}function QS(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function KS(e,n,t){return e==t.path&&fi(n,t.parameters)}const Fl="imperative";var ae=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ae||{});class pi{constructor(n,t){this.id=n,this.url=t}}class eh extends pi{constructor(n,t,i="imperative",r=null){super(n,t),this.type=ae.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ji extends pi{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=ae.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var pn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pn||{}),th=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(th||{});class no extends pi{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=ae.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Os extends pi{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=ae.NavigationSkipped}}class z_ extends pi{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=ae.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XS extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z4 extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Y4 extends pi{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=ae.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Q4 extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K4 extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X4{constructor(n){this.route=n,this.type=ae.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class J4{constructor(n){this.route=n,this.type=ae.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class eG{constructor(n){this.snapshot=n,this.type=ae.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tG{constructor(n){this.snapshot=n,this.type=ae.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nG{constructor(n){this.snapshot=n,this.type=ae.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iG{constructor(n){this.snapshot=n,this.type=ae.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JS{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=ae.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $_{}class nh{constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Wn(e){return e.outlet||K}function Nl(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class cG{get injector(){return Nl(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Ol(this.rootInjector),this.attachRef=null}}let Ol=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new cG(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(i){return new(i||e)(D(xt))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class eT{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=G_(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=G_(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=q_(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return q_(n,this._root).map(t=>t.value)}}function G_(e,n){if(e===n.value)return n;for(const t of n.children){const i=G_(e,t);if(i)return i}return null}function q_(e,n){if(e===n.value)return[n];for(const t of n.children){const i=q_(e,t);if(i.length)return i.unshift(n),i}return[]}class Zn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ps(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class tT extends eT{constructor(n,t){super(n),this.snapshot=t,W_(this,n)}toString(){return this.snapshot.toString()}}function nT(e){const n=function dG(e){const o=new rh([],{},{},"",{},K,e,null,{});return new iT("",new Zn(o,[]))}(e),t=new Jt([new Tl("",{})]),i=new Jt({}),r=new Jt({}),o=new Jt({}),s=new Jt(""),a=new Ls(t,i,o,s,r,K,e,n.root);return a.snapshot=n.root,new tT(new Zn(a,[]),n)}class Ls{constructor(n,t,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Z(c=>c[Sl]))??N(void 0),this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o}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.params.pipe(Z(n=>Fs(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Z(n=>Fs(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ih(e,n,t="emptyOnly"){let i;const{routeConfig:r}=e;return i=null===n||"always"!==t&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...r?.data,...e._resolvedData}},r&&oT(r)&&(i.resolve[Sl]=r.title),i}class rh{get title(){return this.data?.[Sl]}constructor(n,t,i,r,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Fs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Fs(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class iT extends eT{constructor(n,t){super(t),this.url=n,W_(this,t)}toString(){return rT(this._root)}}function W_(e,n){n.value._routerState=e,n.children.forEach(t=>W_(e,t))}function rT(e){const n=e.children.length>0?` { ${e.children.map(rT).join(", ")} } `:"";return`${e.value}${n}`}function Z_(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,fi(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),fi(n.params,t.params)||e.paramsSubject.next(t.params),function C4(e,n){if(e.length!==n.length)return!1;for(let t=0;tfi(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Y_(e.parent,n.parent))}function oT(e){return"string"==typeof e.title||null===e.title}let Q_=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=K,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=w(Ol),this.location=w(Qt),this.changeDetector=w(ui),this.inputBinder=w(oh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;const r=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new K_(t,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=R({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Wt]})}return e})();class K_{__ngOutletInjector(n){return new K_(this.route,this.childContexts,n)}constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===Ls?this.route:n===Ol?this.childContexts:this.parent.get(n,t)}}const oh=new E("");let sT=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=zu([i.queryParams,i.params,i.data]).pipe(hn(([o,s,a],l)=>(a={...o,...s,...a},0===l?N(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const s=function Yz(e){const n=ee(e);if(!n)return null;const t=new Qa(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function Pl(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function hG(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Pl(e,i,r);return Pl(e,i)})}(e,n,t);return new Zn(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Pl(e,a)),s}}const i=function fG(e){return new Ls(new Jt(e.url),new Jt(e.params),new Jt(e.queryParams),new Jt(e.fragment),new Jt(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>Pl(e,o));return new Zn(i,r)}}class X_{constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const aT="ngNavigationCancelingError";function sh(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=to(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=lT(!1,pn.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function lT(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[aT]=!0,t.cancellationCode=n,t}function cT(e){return!!e&&e[aT]}class gG{constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),Z_(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=Ps(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=Ps(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=Ps(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,t,i){const r=Ps(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new iG(o.value.snapshot))}),n.children.length&&this.forwardEvent(new tG(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(Z_(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Z_(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}}class dT{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class ah{constructor(n,t){this.component=n,this.route=t}}function _G(e,n,t){const i=e._root;return Ll(i,n?n._root:null,t,[i.value])}function Vs(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function cN(e){return null!==Tc(e)}(e)?n.get(e):e:i}function Ll(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ps(n);return e.children.forEach(s=>{(function yG(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function bG(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!eo(e.url,n.url);case"pathParamsOrQueryParamsChange":return!eo(e.url,n.url)||!fi(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Y_(e,n)||!fi(e.queryParams,n.queryParams);default:return!Y_(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new dT(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ll(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ah(a.outlet.component,s))}else s&&Vl(n,a,r),r.canActivateChecks.push(new dT(i)),Ll(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Vl(a,t.getContext(s),r)),r}function Vl(e,n,t){const i=Ps(e),r=e.value;Object.entries(i).forEach(([o,s])=>{Vl(s,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new ah(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Bl(e){return"function"==typeof e}function uT(e){return e instanceof $u||"EmptyError"===e?.name}const lh=Symbol("INITIAL_VALUE");function Bs(){return hn(e=>zu(e.map(n=>n.pipe(hi(1),Kr(lh)))).pipe(Z(n=>{for(const t of n)if(!0!==t){if(t===lh)return lh;if(!1===t||MG(t))return t}return!0}),fn(n=>n!==lh),hi(1)))}function MG(e){return to(e)||e instanceof X_}function hT(e){return function JF(...e){return rb(e)}(pt(n=>{if("boolean"!=typeof n)throw sh(0,n)}),Z(n=>!0===n))}class J_{constructor(n){this.segmentGroup=n||null}}class ch extends Error{constructor(n){super(),this.urlTree=n}}function js(e){return Ml(new J_(e))}class jG{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return N(i);if(r.numberOfChildren>1||!r.children[K])return Ml(new b(4e3,!1));r=r.children[K]}}applyRedirectCommands(n,t,i,r,o){if("string"!=typeof t){const a=t,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:h,params:f,data:p,title:m}=r,g=Jn(o,()=>a({params:f,data:p,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:h,title:m}));if(g instanceof Jr)throw new ch(g);t=g}const s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new ch(s);return s}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new Jr(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&":"===o[0]){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new we(o,s)}createSegments(n,t,i,r){return t.map(o=>":"===o.path[0]?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const ev={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function UG(e,n,t,i,r){const o=fT(e,n,t);return o.matched?(i=function rG(e,n){return e.providers&&!e._injector&&(e._injector=$d(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function LG(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?N(r.map(s=>{const a=Vs(s,e);return cr(function IG(e){return e&&Bl(e.canMatch)}(a)?a.canMatch(n,t):Jn(e,()=>a(n,t)))})).pipe(Bs(),hT()):N(!0)}(i,n,t).pipe(Z(s=>!0===s?o:{...ev}))):N(o)}function fT(e,n,t){if("**"===n.path)return function HG(e){return{matched:!0,parameters:e.length>0?NS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...ev}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||w4)(t,e,n);if(!r)return{...ev};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function pT(e,n,t,i){return t.length>0&&function GG(e,n,t){return t.some(i=>dh(e,n,i)&&Wn(i)!==K)}(e,t,i)?{segmentGroup:new we(n,$G(i,new we(t,e.children))),slicedSegments:[]}:0===t.length&&function qG(e,n,t){return t.some(i=>dh(e,n,i))}(e,t,i)?{segmentGroup:new we(e.segments,zG(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new we(e.segments,e.children),slicedSegments:t}}function zG(e,n,t,i){const r={};for(const o of t)if(dh(e,n,o)&&!i[Wn(o)]){const s=new we([],{});r[Wn(o)]=s}return{...i,...r}}function $G(e,n){const t={};t[K]=n;for(const i of e)if(""===i.path&&Wn(i)!==K){const r=new we([],{});t[Wn(i)]=r}return t}function dh(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class ZG{}class KG{constructor(n,t,i,r,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new jG(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){const n=pT(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Z(({children:t,rootSnapshot:i})=>{const r=new Zn(i,t),o=new iT("",r),s=function U4(e,n,t=null,i=null){return qS(GS(e),n,t,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){const t=new rh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),K,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,K,t).pipe(Z(i=>({children:i,rootSnapshot:t})),Xr(i=>{if(i instanceof ch)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof J_?this.noMatchError(i):i}))}processSegmentGroup(n,t,i,r,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i,o):this.processSegment(n,t,i,i.segments,r,!0,o).pipe(Z(s=>s instanceof Zn?[s]:[]))}processChildren(n,t,i,r){const o=[];for(const s of Object.keys(i.children))"primary"===s?o.unshift(s):o.push(s);return ot(o).pipe(ks(s=>{const a=i.children[s],l=function lG(e,n){const t=e.filter(i=>Wn(i)===n);return t.push(...e.filter(i=>Wn(i)!==n)),t}(t,s);return this.processSegmentGroup(n,l,a,s,r)}),function v4(e,n){return Ze(function _4(e,n,t,i,r){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(je(s,d=>{const u=c++;l=a?e(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((s,a)=>(s.push(...a),s)),qu(null),function y4(e,n){const t=arguments.length>=2;return i=>i.pipe(e?fn((r,o)=>e(r,o,i)):qi,L_(1),t?qu(n):kS(()=>new $u))}(),Ct(s=>{if(null===s)return js(i);const a=mT(s);return function XG(e){e.sort((n,t)=>n.value.outlet===K?-1:t.value.outlet===K?1:n.value.outlet.localeCompare(t.value.outlet))}(a),N(a)}))}processSegment(n,t,i,r,o,s,a){return ot(t).pipe(ks(l=>this.processSegmentAgainstRoute(l._injector??n,t,l,i,r,o,s,a).pipe(Xr(c=>{if(c instanceof J_)return N(null);throw c}))),lr(l=>!!l),Xr(l=>{if(uT(l))return function WG(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?N(new ZG):js(i);throw l}))}processSegmentAgainstRoute(n,t,i,r,o,s,a,l){return Wn(i)===s||s!==K&&dh(r,o,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,s,l):js(r):js(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s,a){const{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:h}=fT(t,r,o);if(!l)return js(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=new rh(o,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,gT(r),Wn(r),r.component??r._loadedComponent??null,r,_T(r)),p=ih(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);const m=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,f,n);return this.applyRedirects.lineralizeSegments(r,m).pipe(Ct(g=>this.processSegment(n,i,t,g.concat(h),s,!1,a)))}matchSegmentAgainstRoute(n,t,i,r,o,s){const a=UG(t,i,r,n);return"**"===i.path&&(t.children={}),a.pipe(hn(l=>l.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(hn(({routes:c})=>{const d=i._loadedInjector??n,{parameters:u,consumedSegments:h,remainingSegments:f}=l,p=new rh(h,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,gT(i),Wn(i),i.component??i._loadedComponent??null,i,_T(i)),m=ih(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);const{segmentGroup:g,slicedSegments:y}=pT(t,h,f,c);if(0===y.length&&g.hasChildren())return this.processChildren(d,c,g,p).pipe(Z(x=>new Zn(p,x)));if(0===c.length&&0===y.length)return N(new Zn(p,[]));const _=Wn(i)===o;return this.processSegment(d,c,g,y,_?K:o,!0,p).pipe(Z(x=>new Zn(p,x instanceof Zn?[x]:[])))})):js(t)))}getChildConfig(n,t,i){return t.children?N({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?N({routes:t._loadedRoutes,injector:t._loadedInjector}):function PG(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?N(!0):N(r.map(s=>{const a=Vs(s,e);return cr(function CG(e){return e&&Bl(e.canLoad)}(a)?a.canLoad(n,t):Jn(e,()=>a(n,t)))})).pipe(Bs(),hT())}(n,t,i).pipe(Ct(r=>r?this.configLoader.loadChildren(n,t).pipe(pt(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function BG(){return Ml(lT(!1,pn.GuardRejected))}())):N({routes:[],injector:n})}}function JG(e){const n=e.value.routeConfig;return n&&""===n.path}function mT(e){const n=[],t=new Set;for(const i of e){if(!JG(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=mT(i.children);n.push(new Zn(i.value,r))}return n.filter(i=>!t.has(i))}function gT(e){return e.data||{}}function _T(e){return e.resolve||{}}function vT(e){const n=e.children.map(t=>vT(t)).flat();return[e,...n]}function tv(e){return hn(n=>{const t=e(n);return t?ot(t).pipe(Z(()=>n)):N(n)})}let yT=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===K);return i}getResolvedTitleForRoute(t){return t.data[Sl]}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(s5),providedIn:"root"})}return e})(),s5=(()=>{class e extends yT{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||e)(D(f8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Us=new E("",{providedIn:"root",factory:()=>({})});let bT=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xt],decls:1,vars:0,template:function(i,r){1&i&&St(0,"router-outlet")},dependencies:[Q_],encapsulation:2})}return e})();function nv(e){const n=e.children&&e.children.map(nv),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==K&&(t.component=bT),t}const Hs=new E("");let iv=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(vI)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return N(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=cr(t.loadComponent()).pipe(Z(wT),pt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Rs(()=>{this.componentLoaders.delete(t)})),r=new AS(i,()=>new Q).pipe(P_());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return N({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function a5(e,n,t,i){return cr(e.loadChildren()).pipe(Z(wT),Ct(r=>r instanceof RE||Array.isArray(r)?N(r):ot(n.compileModuleAsync(r))),Z(r=>{i&&i(e);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(t).injector,s=o.get(Hs,[],{optional:!0,self:!0}).flat()),{routes:s.map(nv),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(Rs(()=>{this.childrenLoaders.delete(i)})),s=new AS(o,()=>new Q).pipe(P_());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wT(e){return function l5(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let rv=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(c5),providedIn:"root"})}return e})(),c5=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const CT=new E(""),DT=new E("");function d5(e,n,t){const i=e.get(DT),r=e.get(te);return e.get($).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o;const s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),function u5(e){return new Promise(n=>{Ni({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:l}=i;return l&&Jn(e,()=>l({transition:a,from:n,to:t})),s})}const ET=new E("");let uh=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Q,this.transitionAbortSubject=new Q,this.configLoader=w(iv),this.environmentInjector=w(xt),this.urlSerializer=w(Ns),this.rootContexts=w(Ol),this.location=w(Ms),this.inputBindingEnabled=null!==w(oh,{optional:!0}),this.titleStrategy=w(yT),this.options=w(Us,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(rv),this.createViewTransition=w(CT,{optional:!0}),this.navigationErrorHandler=w(ET,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>N(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new J4(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new X4(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new Jt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Fl,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fn(o=>0!==o.id),Z(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),hn(o=>{let s=!1,a=!1;return N(o).pipe(hn(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pn.SupersededByNewNavigation),qn;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:"string"==typeof l.extras.browserUrl?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new Os(l.id,this.urlSerializer.serialize(l.rawUrl),u,th.IgnoredSameUrlNavigation)),l.resolve(!1),qn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return N(l).pipe(hn(u=>{const h=this.transitions?.getValue();return this.events.next(new eh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?qn:Promise.resolve(u)}),function e5(e,n,t,i,r,o){return Ct(s=>function YG(e,n,t,i,r,o,s="emptyOnly"){return new KG(e,n,t,i,r,s,o).recognize()}(e,n,t,i,s.extractedUrl,r,o).pipe(Z(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),pt(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const h=new XS(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:u,extractedUrl:h,source:f,restoredState:p,extras:m}=l,g=new eh(u,this.urlSerializer.serialize(h),f,p);this.events.next(g);const y=nT(this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:y,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,N(o)}{const u="";return this.events.next(new Os(l.id,this.urlSerializer.serialize(l.extractedUrl),u,th.IgnoredByUrlHandlingStrategy)),l.resolve(!1),qn}}),pt(l=>{const c=new Z4(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Z(l=>(this.currentTransition=o={...l,guards:_G(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function SG(e,n){return Ct(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?N({...t,guardsResult:!0}):function TG(e,n,t,i){return ot(e).pipe(Ct(r=>function OG(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?N(o.map(a=>{const l=Nl(n)??r,c=Vs(a,l);return cr(function xG(e){return e&&Bl(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,i):Jn(l,()=>c(e,n,t,i))).pipe(lr())})).pipe(Bs()):N(!0)}(r.component,r.route,t,n,i)),lr(r=>!0!==r,!0))}(s,i,r,e).pipe(Ct(a=>a&&function wG(e){return"boolean"==typeof e}(a)?function AG(e,n,t,i){return ot(n).pipe(ks(r=>Gu(function RG(e,n){return null!==e&&n&&n(new eG(e)),N(!0)}(r.route.parent,i),function kG(e,n){return null!==e&&n&&n(new nG(e)),N(!0)}(r.route,i),function NG(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function vG(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>TS(()=>N(s.guards.map(l=>{const c=Nl(s.node)??t,d=Vs(l,c);return cr(function EG(e){return e&&Bl(e.canActivateChild)}(d)?d.canActivateChild(i,e):Jn(c,()=>d(i,e))).pipe(lr())})).pipe(Bs())));return N(o).pipe(Bs())}(e,r.path,t),function FG(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return N(!0);const r=i.map(o=>TS(()=>{const s=Nl(n)??t,a=Vs(o,s);return cr(function DG(e){return e&&Bl(e.canActivate)}(a)?a.canActivate(n,e):Jn(s,()=>a(n,e))).pipe(lr())}));return N(r).pipe(Bs())}(e,r.route,t))),lr(r=>!0!==r,!0))}(i,o,e,n):N(a)),Z(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),pt(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&"boolean"!=typeof l.guardsResult)throw sh(0,l.guardsResult);const c=new Y4(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),fn(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",pn.GuardRejected),!1)),tv(l=>{if(l.guards.canActivateChecks.length)return N(l).pipe(pt(c=>{const d=new Q4(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),hn(c=>{let d=!1;return N(c).pipe(function t5(e,n){return Ct(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return N(t);const o=new Set(r.map(l=>l.route)),s=new Set;for(const l of o)if(!s.has(l))for(const c of vT(l))s.add(c);let a=0;return ot(s).pipe(ks(l=>o.has(l)?function n5(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!oT(r)&&(o[Sl]=r.title),function r5(e,n,t,i){const r=V_(e);if(0===r.length)return N({});const o={};return ot(r).pipe(Ct(s=>function o5(e,n,t,i){const r=Nl(n)??i,o=Vs(e,r);return cr(o.resolve?o.resolve(n,t):Jn(r,()=>o(n,t)))}(e[s],n,t,i).pipe(lr(),pt(a=>{if(a instanceof X_)throw sh(new Zu,a);o[s]=a}))),L_(1),RS(o),Xr(s=>uT(s)?qn:Ml(s)))}(o,e,n,i).pipe(Z(s=>(e._resolvedData=s,e.data=ih(e,e.parent,t).resolve,null)))}(l,i,e,n):(l.data=ih(l,l.parent,e).resolve,N(void 0))),pt(()=>a++),L_(1),Ct(l=>a===s.size?N(t):qn))})}(this.paramsInheritanceStrategy,this.environmentInjector),pt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",pn.NoDataFromResolver)}}))}),pt(c=>{const d=new K4(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),tv(l=>{const c=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(pt(h=>{d.component=h}),Z(()=>{})));for(const h of d.children)u.push(...c(h));return u};return zu(c(l.targetSnapshot.root)).pipe(qu(null),hi(1))}),tv(()=>this.afterPreactivation()),hn(()=>{const{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?ot(d).pipe(Z(()=>o)):N(o)}),Z(l=>{const c=function uG(e,n,t){const i=Pl(e,n._root,t?t._root:void 0);return new tT(i,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,o}),pt(()=>{this.events.next(new $_)}),((e,n,t,i)=>Z(r=>(new gG(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),hi(1),pt({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ji(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),qe(this.transitionAbortSubject.pipe(pt(l=>{throw l}))),Rs(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Xr(l=>{if(a=!0,cT(l))this.events.next(new no(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function pG(e){return cT(e)&&to(e.url)}(l)?this.events.next(new nh(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{const c=new z_(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{const d=Jn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof X_){const{message:u,cancellationCode:h}=sh(0,d);this.events.next(new no(o.id,this.urlSerializer.serialize(o.extractedUrl),u,h)),this.events.next(new nh(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);const u=t.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return qn}))}))}cancelNavigationTransition(t,i,r){const o=new no(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function h5(e){return e!==Fl}let f5=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(m5),providedIn:"root"})}return e})();class p5{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let m5=(()=>{class e extends p5{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xT=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(g5),providedIn:"root"})}return e})(),g5=(()=>{class e extends xT{constructor(){super(...arguments),this.location=w(Ms),this.urlSerializer=w(Ns),this.options=w(Us,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(rv),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Jr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=nT(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof eh)this.stateMemento=this.createStateMemento();else if(t instanceof Os)this.rawUrlTree=i.initialUrl;else if(t instanceof XS){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else t instanceof $_?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):t instanceof no&&(t.code===pn.GuardRejected||t.code===pn.NoDataFromResolver)?this.restoreHistory(i):t instanceof z_?this.restoreHistory(i,!0):t instanceof ji&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){const r=t instanceof Jr?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&0===o&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var jl=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(jl||{});function IT(e,n){e.events.pipe(fn(t=>t instanceof ji||t instanceof no||t instanceof z_||t instanceof Os),Z(t=>t instanceof ji||t instanceof Os?jl.COMPLETE:t instanceof no&&(t.code===pn.Redirect||t.code===pn.SupersededByNewNavigation)?jl.REDIRECTING:jl.FAILED),fn(t=>t!==jl.REDIRECTING),hi(1)).subscribe(()=>{n()})}function _5(e){throw e}const v5={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},y5={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mi=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=w(aI),this.stateManager=w(xT),this.options=w(Us,{optional:!0})||{},this.pendingTasks=w(Si),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(uh),this.urlSerializer=w(Ns),this.location=w(Ms),this.urlHandlingStrategy=w(rv),this._events=new Q,this.errorHandler=this.options.errorHandler||_5,this.navigated=!1,this.routeReuseStrategy=w(f5),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(Hs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(oh,{optional:!0}),this.eventsSubscription=new ze,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof no&&i.code!==pn.Redirect&&i.code!==pn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ji)this.navigated=!0;else if(i instanceof nh){const s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l={browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||"eager"===this.urlUpdateStrategy||h5(r.source),...s};this.scheduleNavigation(a,Fl,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function w5(e){return!(e instanceof $_||e instanceof nh)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Fl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(nv),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=GS(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),u=this.currentUrlTree.root}return qS(u,t,d,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=to(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Fl,null,i)}navigate(t,i={skipLocationChange:!1}){return function b5(e){for(let n=0;n(null!=o&&(i[r]=o),i),{})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,h)=>{a=u,l=h});const d=this.pendingTasks.add();return IT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hh=(()=>{class e{constructor(t,i,r,o,s,a){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new Q,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof ji&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=to(t)||Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,i,r,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==t||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const i=null===this.href?null:function PC(e,n,t){return function x1(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?OC:Yo}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.routerLinkInput?null:to(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||e)(v(mi),v(Ls),Tr("tabindex"),v(Fi),v(ue),v(Yr))};static#t=this.\u0275dir=R({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&Le("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&Ue("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",xe],skipLocationChange:[2,"skipLocationChange","skipLocationChange",xe],replaceUrl:[2,"replaceUrl","replaceUrl",xe],routerLink:"routerLink"},standalone:!0,features:[Vn,Wt]})}return e})();class MT{}let E5=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(fn(t=>t instanceof ji),ks(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=$d(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ot(r).pipe(As())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):N(null);const o=r.pipe(Ct(s=>null===s?N(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?ot([o,this.loader.loadComponent(i)]).pipe(As()):o})}static#e=this.\u0275fac=function(i){return new(i||e)(D(mi),D(vI),D(xt),D(MT),D(iv))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ov=new E("");let ST=(()=>{class e{constructor(t,i,r,o,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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(t=>{t instanceof eh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ji?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Os&&t.code===th.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof JS&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new JS(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){bm()};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function gi(e,n){return{\u0275kind:e,\u0275providers:n}}function AT(){const e=w(Ge);return n=>{const t=e.get(Hn);if(n!==t.components[0])return;const i=e.get(mi),r=e.get(kT);1===e.get(sv)&&i.initialNavigation(),e.get(RT,null,ne.Optional)?.setUpPreloading(),e.get(ov,null,ne.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const kT=new E("",{factory:()=>new Q}),sv=new E("",{providedIn:"root",factory:()=>1}),RT=new E("");function S5(e){return gi(0,[{provide:RT,useExisting:E5},{provide:MT,useExisting:e}])}function A5(e){return gi(9,[{provide:CT,useValue:d5},{provide:DT,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const FT=new E("ROUTER_FORROOT_GUARD"),k5=[Ms,{provide:Ns,useClass:Zu},mi,Ol,{provide:Ls,useFactory:function TT(e){return e.routerState.root},deps:[mi]},iv,[]];let NT=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[k5,[],{provide:Hs,multi:!0,useValue:t},{provide:FT,useFactory:O5,deps:[[mi,new yr,new la]]},{provide:Us,useValue:i||{}},i?.useHash?{provide:Yr,useClass:e$}:{provide:Yr,useClass:hM},{provide:ov,useFactory:()=>{const e=w(p3),n=w($),t=w(Us),i=w(uh),r=w(Ns);return t.scrollOffset&&e.setOffset(t.scrollOffset),new ST(r,i,e,n,t)}},i?.preloadingStrategy?S5(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?P5(i):[],i?.bindToComponentInputs?gi(8,[sT,{provide:oh,useExisting:sT}]).\u0275providers:[],i?.enableViewTransitions?A5().\u0275providers:[],[{provide:OT,useFactory:AT},{provide:pu,multi:!0,useExisting:OT}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Hs,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(i){return new(i||e)(D(FT,8))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();function O5(e){return"guarded"}function P5(e){return["disabled"===e.initialNavigation?gi(3,[{provide:Hg,multi:!0,useFactory:()=>{const n=w(mi);return()=>{n.setUpLocationChangeListener()}}},{provide:sv,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?gi(2,[{provide:sv,useValue:0},{provide:Hg,multi:!0,deps:[Ge],useFactory:n=>{const t=n.get(Xz,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(mi),o=n.get(kT);IT(r,()=>{i(!0)}),n.get(uh).afterPreactivation=()=>(i(!0),o.closed?N(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const OT=new E("");function PT(e,n,t,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Ul(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(l){PT(o,i,r,s,a,"next",l)}function a(l){PT(o,i,r,s,a,"throw",l)}s(void 0)})}}let av;try{av=typeof Intl<"u"&&Intl.v8BreakIterator}catch{av=!1}let Hl,io,lv,Ht=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?sr(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&&!av)&&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}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ln))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zl(e){return function V5(){if(null==Hl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hl=!0}))}finally{Hl=Hl||!1}return Hl}()?e:!!e.capture}function B5(){if(null==io){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return io=!1,io;if("scrollBehavior"in document.documentElement.style)io=!0;else{const e=Element.prototype.scrollTo;io=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return io}function Ui(e){return e.composedPath?e.composedPath()[0]:e.target}function cv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ph(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class oq extends ze{constructor(n,t){super()}schedule(n,t=0){return this}}const mh={setInterval(e,n,...t){const{delegate:i}=mh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=mh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class hv extends oq{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return mh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&mh.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Dc(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const fv={now:()=>(fv.delegate||Date).now(),delegate:void 0};class ql{constructor(n,t=ql.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}ql.now=fv.now;class pv extends ql{constructor(n,t=ql.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const mv=new pv(hv),sq=mv;function UT(e,n=mv){return Ze((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+e,d=n.now();if(d{o=c,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function HT(e){return fn((n,t)=>e<=t)}function zT(e,n=qi){return e=e??aq,Ze((t,i)=>{let r,o=!0;t.subscribe(je(i,s=>{const a=n(s);(o||!e(r,a))&&(o=!1,r=a,i.next(s))}))})}function aq(e,n){return e===n}let lq=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cq=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[lq]})}return e})();function GT(e){return null!=e&&"false"!=`${e}`}function qT(e,n=0){return function dq(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):2===arguments.length?n:0}function gh(e){return Array.isArray(e)?e:[e]}function st(e){return null==e?"":"string"==typeof e?e:`${e}px`}function $s(e){return e instanceof ue?e.nativeElement:e}const WT=new Set;let ro,uq=(()=>{class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):fq}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function hq(e,n){if(!WT.has(e))try{ro||(ro=document.createElement("style"),n&&ro.setAttribute("nonce",n),ro.setAttribute("type","text/css"),document.head.appendChild(ro)),ro.sheet&&(ro.sheet.insertRule(`@media ${e} {body{ }}`,0),WT.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D($p,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fq(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let pq=(()=>{class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ZT(gh(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=zu(ZT(gh(t)).map(s=>this._registerQuery(s).observable));return o=Gu(o.pipe(hi(1)),o.pipe(HT(1),UT(0))),o.pipe(Z(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new Ne(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Kr(i),Z(({matches:s})=>({query:t,matches:s})),qe(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(i){return new(i||e)(D(uq),D($))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZT(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}function _h(e,n){return e.getAttribute(n)?.match(/\S+/g)??[]}const QT="cdk-describedby-message",vh="cdk-describedby-host";let gv=0,_q=(()=>{class e{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+gv++,this._document=t,this._id=w(kr)+"-"+gv++}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const o=_v(i,r);"string"!=typeof i?(KT(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const o=_v(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${vh}="${this._id}"]`);for(let i=0;i0!=r.indexOf(QT));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function mq(e,n,t){const i=_h(e,n);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),e.setAttribute(n,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(vh,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function gq(e,n,t){const i=_h(e,n);t=t.trim();const r=i.filter(o=>o!==t);r.length?e.setAttribute(n,r.join(" ")):e.removeAttribute(n)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(vh)}_isElementDescribedByMessage(t,i){const r=_h(t,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Ht))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _v(e,n){return"string"==typeof e?`${n||""}/${e}`:e}function KT(e,n){e.id||(e.id=`${QT}-${n}-${gv++}`)}class XT{constructor(n,t){this._letterKeyStream=new Q,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new Q,this.selectedItem=this._selectedItem;const i="number"==typeof t?.debounceInterval?t.debounceInterval:200;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){const t=n.keyCode;n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(pt(t=>this._pressedLetters.push(t)),UT(n),fn(()=>this._pressedLetters.length>0),Z(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let i=1;ii.disabled,this.tabOut=new Q,this.change=new Q,n instanceof Ar?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Ud(n)&&(this._effectRef=function lM(e,n){Pt("NgSignals"),!n?.injector&&sp();const t=n?.injector??w(Ge),i=!0!==n?.manualCleanup?t.get(Ca):null,r=new Zz(t.get(Gz),e,typeof Zone>"u"?null:Zone.current,i,t,n?.allowSignalWrites??!1),o=t.get(ui,null,{optional:!0});return o&&8&o._lView[O]?(o._lView[zc]??=[]).push(r.watcher.notify):r.watcher.notify(),r}(()=>this._itemsChanged(n()),{injector:t}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();const t=this._getItemsArray();return this._typeahead=new XT(t,{debounceInterval:"number"==typeof n?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,t=10){return this._pageUpAndDown={enabled:n,delta:t},this}setActiveItem(n){const t=this._activeItem;this.updateActiveItem(n),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(n){const t=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}}}class bq extends yq{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}function nA(e){return 0===e.buttons||0===e.detail}function iA(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const Aq=new E("cdk-input-modality-detector-options"),kq={ignoreKeys:[18,17,224,91,16]},Gs=zl({passive:!0,capture:!0});let Rq=(()=>{class e{get mostRecentModality(){return this._modality.value}constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Jt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ui(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(nA(s)?"keyboard":"mouse"),this._mostRecentTarget=Ui(s))},this._onTouchstart=s=>{iA(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ui(s))},this._options={...kq,...o},this.modalityDetected=this._modality.pipe(HT(1)),this.modalityChanged=this.modalityDetected.pipe(zT()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Gs),r.addEventListener("mousedown",this._onMousedown,Gs),r.addEventListener("touchstart",this._onTouchstart,Gs)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Gs),document.removeEventListener("mousedown",this._onMousedown,Gs),document.removeEventListener("touchstart",this._onTouchstart,Gs))}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D($),D(te),D(Aq,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var yh=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(yh||{});const Nq=new E("cdk-focus-monitor-default-options"),bh=zl({passive:!0,capture:!0});let wh=(()=>{class e{constructor(t,i,r,o,s){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,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 Q,this._rootNodeFocusAndBlurListener=a=>{for(let c=Ui(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||yh.IMMEDIATE}monitor(t,i=!1){const r=$s(t);if(!this._platform.isBrowser||1!==r.nodeType)return N();const o=function U5(e){if(function j5(){if(null==lv){const e=typeof document<"u"?document.head:null;lv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return lv}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Q,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=$s(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=$s(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===yh.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,this._detectionMode===yh.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Ui(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(qe(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=w(pq).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oo.NONE;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oo.BLACK_ON_WHITE}return oo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(vv,oA,sA),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===oo.BLACK_ON_WHITE?t.add(vv,oA):i===oo.WHITE_ON_BLACK&&t.add(vv,sA)}}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oq=(()=>{class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||e)(D(aA))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[cq]})}return e})();const Pq=new E("cdk-dir-doc",{providedIn:"root",factory:function Lq(){return w(te)}}),Vq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ch=(()=>{class e{constructor(t){this.value="ltr",this.change=new le,t&&(this.value=function Bq(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?Vq.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||e)(D(Pq,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wl=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();const Uq=new E("mat-sanity-checks",{providedIn:"root",factory:function jq(){return!0}});let zt=(()=>{class e{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!cv()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(i){return new(i||e)(D(aA),D(Uq,8),D(te))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[Wl,Wl]})}return e})(),uA=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var xn=function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e}(xn||{});class Wq{constructor(n,t,i,r=!1){this._renderer=n,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=xn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const hA=zl({passive:!0,capture:!0});class Zq{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=Ui(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,i,r){const o=this._events.get(t);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,hA)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,hA)))}}const fA={enterDuration:225,exitDuration:150},pA=zl({passive:!0,capture:!0}),mA=["mousedown","touchstart"],gA=["mouseup","mouseleave","touchend","touchcancel"];class Dh{static#e=this._eventManager=new Zq;constructor(n,t,i,r){this._target=n,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=$s(i))}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...fA,...i.animation};i.centered&&(n=r.left+r.width/2,t=r.top+r.height/2);const s=i.radius||function Qq(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),a=n-r.left,l=t-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,m=new Wq(this,d,i,p);d.style.transform="scale3d(1, 1, 1)",m.state=xn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=m);let g=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const y=()=>{g&&(g.fallbackTimer=null),clearTimeout(x),this._finishRippleTransition(m)},_=()=>this._destroyRipple(m),x=setTimeout(_,c+100);d.addEventListener("transitionend",y),d.addEventListener("transitioncancel",_),g={onTransitionEnd:y,onTransitionCancel:_,fallbackTimer:x}}),this._activeRipples.set(m,g),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(n){if(n.state===xn.FADING_OUT||n.state===xn.HIDDEN)return;const t=n.element,i={...fA,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=xn.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const t=$s(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,mA.forEach(i=>{Dh._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{gA.forEach(t=>{this._triggerElement.addEventListener(t,this,pA)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===xn.FADING_IN?this._startFadeOutTransition(n):n.state===xn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=xn.VISIBLE,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=xn.HIDDEN,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel),null!==t.fallbackTimer&&clearTimeout(t.fallbackTimer)),n.element.remove()}_onMousedown(n){const t=nA(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===xn.VISIBLE||n.config.terminateOnPointerUp&&n.state===xn.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(mA.forEach(t=>Dh._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&(gA.forEach(t=>n.removeEventListener(t,this,pA)),this._pointerUpEventsRegistered=!1))}}const Eh=new E("mat-ripple-global-options");let Kq=(()=>{class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,r,o,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Dh(this,i,t,r)}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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v($),v(Ht),v(Eh,8),v(Ti,8))};static#t=this.\u0275dir=R({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&>("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return e})(),_A=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,zt]})}return e})();const vA={capture:!0},yA=["focus","mousedown","mouseenter","touchstart"],yv="mat-ripple-loader-uninitialized",bv="mat-ripple-loader-class-name",bA="mat-ripple-loader-centered",xh="mat-ripple-loader-disabled";let wA=(()=>{class e{constructor(){this._document=w(te,{optional:!0}),this._animationMode=w(Ti,{optional:!0}),this._globalRippleOptions=w(Eh,{optional:!0}),this._platform=w(Ht),this._ngZone=w($),this._hosts=new Map,this._onInteraction=t=>{const i=Ui(t);if(i instanceof HTMLElement){const r=i.closest(`[${yv}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(const t of yA)this._document?.addEventListener(t,this._onInteraction,vA)})}ngOnDestroy(){const t=this._hosts.keys();for(const i of t)this.destroyRipple(i);for(const i of yA)this._document?.removeEventListener(i,this._onInteraction,vA)}configureRipple(t,i){t.setAttribute(yv,this._globalRippleOptions?.namespace??""),(i.className||!t.hasAttribute(bv))&&t.setAttribute(bv,i.className||""),i.centered&&t.setAttribute(bA,""),i.disabled&&t.setAttribute(xh,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,i){const r=this._hosts.get(t);r?r.disabled=i:i?t.setAttribute(xh,""):t.removeAttribute(xh)}_createRipple(t){if(!this._document)return;const i=this._hosts.get(t);if(i)return i;t.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(bv)),t.append(r);const o=new Kq(new ue(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(bA),o.disabled=t.hasAttribute(xh),this.attachRipple(t,o),o}attachRipple(t,i){t.removeAttribute(yv),this._hosts.set(t,i)}destroyRipple(t){const i=this._hosts.get(t);i&&(i.ngOnDestroy(),this._hosts.delete(t))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DA(e={}){const{connector:n=()=>new Q,resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,d=u=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Ze((m,g)=>{c++,!u&&!d&&h();const y=l=l??n();g.add(()=>{c--,0===c&&!u&&!d&&(a=wv(p,r))}),y.subscribe(g),!s&&c>0&&(s=new ia({next:_=>y.next(_),error:_=>{u=!0,h(),a=wv(f,t,_),y.error(_)},complete:()=>{d=!0,h(),a=wv(f,i),y.complete()}}),Ut(m).subscribe(s))})(o)}}function wv(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new ia({next:()=>{i.unsubscribe(),e()}});return Ut(n(...t)).subscribe(i)}class Ih{}class Mh{}class In{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,i)=>{this.setHeaderEntries(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,i])=>{this.setHeaderEntries(t,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof In?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new In;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof In?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const i=(Array.isArray(t)?t:[t]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class Xq{encodeKey(n){return EA(n)}encodeValue(n){return EA(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EA(e){return encodeURIComponent(e).replace(eW,(n,t)=>tW[t]??n)}function Sh(e){return`${e}`}class dr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Xq,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Jq(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(Sh):[Sh(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new dr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Sh(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Sh(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class nW{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function xA(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function IA(e){return typeof Blob<"u"&&e instanceof Blob}function MA(e){return typeof FormData<"u"&&e instanceof FormData}class Yl{constructor(n,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function iW(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new In,this.context??=new nW,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ah.set(f,n.setHeaders[f]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),d)),new Yl(t,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}}var ur=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(ur||{});class Cv{constructor(n,t=200,i="OK"){this.headers=n.headers||new In,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Th extends Cv{constructor(n={}){super(n),this.type=ur.ResponseHeader}clone(n={}){return new Th({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class so extends Cv{constructor(n={}){super(n),this.type=ur.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new so({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qs extends Cv{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Dv(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Ql=(()=>{class e{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof Yl)o=t;else{let l,c;l=r.headers instanceof In?r.headers:new In(r.headers),r.params&&(c=r.params instanceof dr?r.params:new dr({fromObject:r.params})),o=new Yl(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=N(o).pipe(ks(l=>this.handler.handle(l)));if(t instanceof Yl||"events"===r.observe)return s;const a=s.pipe(fn(l=>l instanceof so));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Z(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Z(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new dr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Dv(r,i))}post(t,i,r={}){return this.request("POST",t,Dv(r,i))}put(t,i,r={}){return this.request("PUT",t,Dv(r,i))}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ih))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const aW=/^\)\]\}',?\n/;function TA(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let Ev=(()=>{class e{constructor(){this.fetchImpl=w(cW,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=w($)}handle(t){return new Ne(i=>{const r=new AbortController;return this.doRequest(t,r.signal,i).then(xv,o=>i.error(new qs({error:o}))),()=>r.abort()})}doRequest(t,i,r){var o=this;return Ul(function*(){const s=o.createRequestInit(t);let a;try{const p=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:i,...s}));(function dW(e){e.then(xv,xv)})(p),r.next({type:ur.Sent}),a=yield p}catch(p){return void r.error(new qs({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const l=new In(a.headers),c=a.statusText,d=TA(a)??t.urlWithParams;let u=a.status,h=null;if(t.reportProgress&&r.next(new Th({headers:l,status:u,statusText:c,url:d})),a.body){const p=a.headers.get("content-length"),m=[],g=a.body.getReader();let _,x,y=0;const S=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(Ul(function*(){for(;;){const{done:Y,value:re}=yield g.read();if(Y)break;if(m.push(re),y+=re.length,t.reportProgress){x="text"===t.responseType?(x??"")+(_??=new TextDecoder).decode(re,{stream:!0}):void 0;const Be=()=>r.next({type:ur.DownloadProgress,total:p?+p:void 0,loaded:y,partialText:x});S?S.run(Be):Be()}}}));const B=o.concatChunks(m,y);try{const Y=a.headers.get("Content-Type")??"";h=o.parseBody(t,B,Y)}catch(Y){return void r.error(new qs({error:Y,headers:new In(a.headers),status:a.status,statusText:a.statusText,url:TA(a)??t.urlWithParams}))}}0===u&&(u=h?200:0),u>=200&&u<300?(r.next(new so({body:h,headers:l,status:u,statusText:c,url:d})),r.complete()):r.error(new qs({error:h,headers:l,status:u,statusText:c,url:d}))})()}parseBody(t,i,r){switch(t.responseType){case"json":const o=(new TextDecoder).decode(i).replace(aW,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(t){const i={},r=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>i[o]=s.join(",")),t.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(i["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:i,credentials:r}}concatChunks(t,i){const r=new Uint8Array(i);let o=0;for(const s of t)r.set(s,o),o+=s.length;return r}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class cW{}function xv(){}function AA(e,n){return n(e)}function uW(e,n){return(t,i)=>n.intercept(t,{handle:r=>e(r,i)})}const fW=new E(""),Kl=new E(""),kA=new E(""),RA=new E("",{providedIn:"root",factory:()=>!0});function pW(){let e=null;return(n,t)=>{null===e&&(e=(w(fW,{optional:!0})??[]).reduceRight(uW,AA));const i=w(Si);if(w(RA)){const o=i.add();return e(n,t).pipe(Rs(()=>i.remove(o)))}return e(n,t)}}let FA=(()=>{class e extends Ih{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null,this.pendingTasks=w(Si),this.contributeToStability=w(RA)}handle(t){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(Kl),...this.injector.get(kA,[])]));this.chain=i.reduceRight((r,o)=>function hW(e,n,t){return(i,r)=>Jn(t,()=>n(i,o=>e(o,r)))}(r,o,this.injector),AA)}if(this.contributeToStability){const i=this.pendingTasks.add();return this.chain(t,r=>this.backend.handle(r)).pipe(Rs(()=>this.pendingTasks.remove(i)))}return this.chain(t,i=>this.backend.handle(i))}static#e=this.\u0275fac=function(i){return new(i||e)(D(Mh),D(xt))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const yW=/^\)\]\}',?\n/;let OA=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new b(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?ot(i.\u0275loadImpl()):N(null)).pipe(hn(()=>new Ne(o=>{const s=i.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((m,g)=>s.setRequestHeader(m,g.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&s.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();s.responseType="json"!==m?m:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const m=s.statusText||"OK",g=new In(s.getAllResponseHeaders()),y=function bW(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new Th({headers:g,status:s.status,statusText:m,url:y}),l},d=()=>{let{headers:m,status:g,statusText:y,url:_}=c(),x=null;204!==g&&(x=typeof s.response>"u"?s.responseText:s.response),0===g&&(g=x?200:0);let S=g>=200&&g<300;if("json"===t.responseType&&"string"==typeof x){const B=x;x=x.replace(yW,"");try{x=""!==x?JSON.parse(x):null}catch(Y){x=B,S&&(S=!1,x={error:Y,text:x})}}S?(o.next(new so({body:x,headers:m,status:g,statusText:y,url:_||void 0})),o.complete()):o.error(new qs({error:x,headers:m,status:g,statusText:y,url:_||void 0}))},u=m=>{const{url:g}=c(),y=new qs({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:g||void 0});o.error(y)};let h=!1;const f=m=>{h||(o.next(c()),h=!0);let g={type:ur.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),"text"===t.responseType&&s.responseText&&(g.partialText=s.responseText),o.next(g)},p=m=>{let g={type:ur.UploadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),o.next(g)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),t.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:ur.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),t.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||e)(D(PM))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const Iv=new E(""),PA=new E("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),LA=new E("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class VA{}let DW=(()=>{class e{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=CM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Ln),D(PA))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function EW(e,n){const t=e.url.toLowerCase();if(!w(Iv)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const i=w(VA).getToken(),r=w(LA);return null!=i&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,i)})),n(e)}var hr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(hr||{});function xW(...e){const n=[Ql,OA,FA,{provide:Ih,useExisting:FA},{provide:Mh,useFactory:()=>w(Ev,{optional:!0})??w(OA)},{provide:Kl,useValue:EW,multi:!0},{provide:Iv,useValue:!0},{provide:VA,useClass:DW}];for(const t of e)n.push(...t.\u0275providers);return function da(e){return{\u0275providers:e}}(n)}const BA=new E("");function IW(){return function ao(e,n){return{\u0275kind:e,\u0275providers:n}}(hr.LegacyInterceptors,[{provide:BA,useFactory:pW},{provide:Kl,useExisting:BA,multi:!0}])}const OW=["*"];let kh;function Xl(e){return function PW(){if(void 0===kh&&(kh=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(kh=e.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kh}()?.createHTML(e)||e}function WA(e){return Error(`Unable to find icon with the name "${e}"`)}function ZA(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function YA(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class lo{constructor(n,t,i){this.url=n,this.svgText=t,this.options=i}}let Rh=(()=>{class e{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new lo(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(mt.HTML,r);if(!s)throw YA(r);const a=Xl(s);return this._addSvgIconConfig(t,i,new lo("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new lo(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(mt.HTML,i);if(!o)throw YA(i);const s=Xl(o);return this._addSvgIconSetConfig(t,new lo("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(mt.RESOURCE_URL,t);if(!i)throw ZA(t);const r=this._cachedIconsByUrl.get(i);return r?N(Fh(r)):this._loadSvgIconFromConfig(new lo(t,null)).pipe(pt(o=>this._cachedIconsByUrl.set(i,o)),Z(o=>Fh(o)))}getNamedSvgIcon(t,i=""){const r=QA(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):Ml(WA(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?N(Fh(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Z(i=>Fh(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?N(r):function CA(...e){const n=xS(e),{args:t,keys:i}=IS(e),r=new Ne(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?MS(i,a):a),o.complete())}))}});return n?r.pipe(O_(n)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Xr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(mt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),N(null)})))).pipe(Z(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw WA(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(pt(i=>t.svgText=i),Z(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?N(null):this._fetchIcon(t).pipe(pt(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Xl(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Xl("")),r=t.attributes;for(let o=0;oXl(c)),Rs(()=>this._inProgressUrlFetches.delete(s)),DA());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(QA(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;rn?n.pathname+n.search:""}}}),KA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],zW=KA.map(e=>`[${e}]`).join(", "),$W=/^url\(['"]?#(.*?)['"]?\)$/;let GW=(()=>{class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(t,i,r,o,s,a){this._elementRef=t,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ze.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(zW),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match($W):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(hi(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Rh),Tr("aria-hidden"),v(UW),v(on),v(jW,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){2&i&&(Ue("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),rl(r.color?"mat-"+r.color:""),gt("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[2,"inline","inline",xe],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Vn,Xt],ngContentSelectors:OW,decls:1,vars:0,template:function(i,r){1&i&&(Un(),et(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return e})(),qW=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,zt]})}return e})();function Jl(...e){const n=Il(e),t=function r4(e,n){return"number"==typeof N_(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?Ut(i[0]):As(t)(ot(i,n)):qn}const Yn=new E("");Promise.resolve(),Promise.resolve();var G=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(G||{});const zi="*";function Mn(e){return{type:G.Style,styles:e,offset:null}}class sc{constructor(n=0,t=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=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class tR{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const nR=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],iR=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function a9(e,n){1&e&&(T(0,"span",3),et(1,1),F())}function l9(e,n){1&e&&(T(0,"span",6),et(1,2),F())}function c9(e,n){1&e&&(T(0,"span",3),et(1,1),T(2,"span",8),function mw(){z.lFrame.currentNamespace=Qb}(),T(3,"svg",9),St(4,"path",10),F()()())}function d9(e,n){1&e&&(T(0,"span",6),et(1,2),F())}const Qv=["*"],qh=new E("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),Kv=new E("MatChipAvatar"),Xv=new E("MatChipTrailingIcon"),Jv=new E("MatChipRemove"),Wh=new E("MatChip");let Ys=(()=>{class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,i){this._elementRef=t,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,"BUTTON"===t.nativeElement.nodeName&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Wh))};static#t=this.\u0275dir=R({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,r){1&i&&Le("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(Ue("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),gt("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",xe],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?-1:aM(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[Vn]})}return e})(),D9=0,Qs=(()=>{class e{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,i,r,o,s,a,l){this._changeDetectorRef=t,this._elementRef=i,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=l,this._onFocus=new Q,this._onBlur=new Q,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+D9++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._chipListDisabled=!1,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this._disabled=!1,this.removed=new le,this.destroyed=new le,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=w(wA),this._injector=w(Ge),this._document=s,this._animationsDisabled="NoopAnimations"===a,this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Jl(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(t){(8===t.keyCode&&!t.repeat||46===t.keyCode)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===t||r.contains(t)})}_getActions(){const t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const i=null!==t;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):Ni(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}static#e=this.\u0275fac=function(i){return new(i||e)(v(ui),v(ue),v($),v(wh),v(te),v(Ti,8),v(Eh,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(1&i&&(dn(o,Kv,5),dn(o,Xv,5),dn(o,Jv,5),dn(o,Kv,5),dn(o,Xv,5),dn(o,Jv,5)),2&i){let s;Tt(s=At())&&(r.leadingIcon=s.first),Tt(s=At())&&(r.trailingIcon=s.first),Tt(s=At())&&(r.removeIcon=s.first),Tt(s=At())&&(r._allLeadingIcons=s),Tt(s=At())&&(r._allTrailingIcons=s),Tt(s=At())&&(r._allRemoveIcons=s)}},viewQuery:function(i,r){if(1&i&&su(Ys,5),2&i){let o;Tt(o=At())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){1&i&&Le("keydown",function(s){return r._handleKeydown(s)}),2&i&&($r("id",r.id),Ue("role",r.role)("aria-label",r.ariaLabel),rl("mat-"+(r.color||"primary")),gt("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",xe],highlighted:[2,"highlighted","highlighted",xe],disableRipple:[2,"disableRipple","disableRipple",xe],disabled:[2,"disabled","disabled",xe]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[pe([{provide:Wh,useExisting:e}]),Vn,Xt],ngContentSelectors:iR,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){1&i&&(Un(nR),St(0,"span",0),T(1,"span",1)(2,"span",2),Ke(3,a9,2,0,"span",3),T(4,"span",4),et(5),St(6,"span",5),F()()(),Ke(7,l9,2,0,"span",6)),2&i&&(P(2),ie("isInteractive",!1),P(),di(r.leadingIcon?3:-1),P(4),di(r._hasTrailingIcon()?7:-1))},dependencies:[Ys],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),ey=(()=>{class e extends Qs{constructor(){super(...arguments),this._defaultOptions=w(qh,{optional:!0}),this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._selectable=!0,this._selected=!1,this.basicChipAttrName="mat-basic-chip-option",this.selectionChange=new le}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=t,this._changeDetectorRef.markForCheck()}get selected(){return this._selected}set selected(t){this._setSelectedState(t,!1,!0)}get ariaSelected(){return this.selectable?this.selected.toString():null}ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(t=!1){return this._setSelectedState(!this.selected,t,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(t,i,r){t!==this.selected&&(this._selected=t,r&&this.selectionChange.emit({source:this,isUserInput:i,selected:this.selected}),this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(i,r){2&i&&($r("id",r.id),Ue("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),gt("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",xe],selected:[2,"selected","selected",xe]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[pe([{provide:Qs,useExisting:e},{provide:Wh,useExisting:e}]),Vn,oe,Xt],ngContentSelectors:iR,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(i,r){1&i&&(Un(nR),St(0,"span",0),T(1,"span",1)(2,"button",2),Ke(3,c9,5,0,"span",3),T(4,"span",4),et(5),St(6,"span",5),F()()(),Ke(7,d9,2,0,"span",6),T(8,"span",7),se(9),F()),2&i&&(P(2),ie("_allowFocusWhenDisabled",!0),Ue("aria-selected",r.ariaSelected)("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),P(),di(r._hasLeadingGraphic()?3:-1),P(4),di(r._hasTrailingIcon()?7:-1),P(),ie("id",r._ariaDescriptionId),P(),qr(r.ariaDescription))},dependencies:[Ys],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),ty=(()=>{class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,i,r){this._elementRef=t,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Q,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Ar}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(Kr(null),hn(()=>Jl(...this._chips.map(t))))}_originatesFromChip(t){let i=t.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Kr(this._chips)).subscribe(t=>{const i=[];t.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bq(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(qe(this._destroyed)).subscribe(({chip:t})=>{const i=t._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(qe(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Kr(null),qe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(qe(this._destroyed)).subscribe(t=>{const r=this._chips.toArray().indexOf(t.chip);this._isValidIndex(r)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[t];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(ui),v(Ch,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(1&i&&dn(o,Qs,5),2&i){let s;Tt(s=At())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){1&i&&Le("keydown",function(s){return r._handleKeydown(s)}),2&i&&Ue("role",r.role)},inputs:{disabled:[2,"disabled","disabled",xe],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:aM(t)]},standalone:!0,features:[Vn,Xt],ngContentSelectors:Qv,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Un(),T(0,"div",0),et(1),F())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})();class E9{constructor(n,t){this.source=n,this.value=t}}const x9={provide:Yn,useExisting:De(()=>ny),multi:!0};let ny=(()=>{class e extends ty{constructor(){super(...arguments),this._onTouched=()=>{},this._onChange=()=>{},this._defaultRole="listbox",this._defaultOptions=w(qh,{optional:!0}),this._multiple=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.compareWith=(t,i)=>t===i,this.required=!1,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.change=new le,this._chips=void 0}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._syncListboxProperties()}get selected(){const t=this._chips.toArray().filter(i=>i.selected);return this.multiple?t:t[0]}get selectable(){return this._selectable}set selectable(t){this._selectable=t,this._syncListboxProperties()}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncListboxProperties()}get chipSelectionChanges(){return this._getChipStream(t=>t.selectionChange)}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(Kr(null),qe(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(qe(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(qe(this._destroyed)).subscribe(t=>{this.multiple||this._chips.forEach(i=>{i!==t.source&&i._setSelectedState(!1,!1,!1)}),t.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const t=this._getFirstSelectedChip();t&&!t.disabled?t.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(t){this._chips?this._setSelectionByValue(t,!1):null!=t&&(this._pendingInitialValue=t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_setSelectionByValue(t,i=!0){this._clearSelection(),Array.isArray(t)?t.forEach(r=>this._selectValue(r,i)):this._selectValue(t,i)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(t){9===t.keyCode&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let t=null;t=Array.isArray(this.selected)?this.selected.map(i=>i.value):this.selected?this.selected.value:void 0,this._value=t,this.change.emit(new E9(this,t)),this._onChange(t),this._changeDetectorRef.markForCheck()}_clearSelection(t){this._chips.forEach(i=>{i!==t&&i.deselect()})}_selectValue(t,i){const r=this._chips.find(o=>null!=o.value&&this.compareWith(o.value,t));return r&&(i?r.selectViaInteraction():r.select()),r}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(t=>{t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable,t._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,t._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(t){return!t.isInteractive}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-chip-listbox"]],contentQueries:function(i,r,o){if(1&i&&dn(o,ey,5),2&i){let s;Tt(s=At())&&(r._chips=s)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(i,r){1&i&&Le("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(s){return r._keydown(s)}),2&i&&($r("tabIndex",r.disabled||r.empty?-1:r.tabIndex),Ue("role",r.role)("aria-describedby",r._ariaDescribedby||null)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),gt("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{multiple:[2,"multiple","multiple",xe],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",xe],compareWith:"compareWith",required:[2,"required","required",xe],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",xe],value:"value"},outputs:{change:"change"},standalone:!0,features:[pe([x9]),Vn,oe,Xt],ngContentSelectors:Qv,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Un(),T(0,"div",0),et(1),F())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})(),T9=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[uA,{provide:qh,useValue:{separatorKeyCodes:[13]}}],imports:[zt,_A,zt]})}return e})();const A9=["addListener","removeListener"],k9=["addEventListener","removeEventListener"],R9=["on","off"];function iy(e,n,t,i){if(fe(t)&&(i=t,t=void 0),i)return iy(e,n,t).pipe(O_(i));const[r,o]=function O9(e){return fe(e.addEventListener)&&fe(e.removeEventListener)}(e)?k9.map(s=>a=>e[s](n,a,t)):function F9(e){return fe(e.addListener)&&fe(e.removeListener)}(e)?A9.map(aR(e,n)):function N9(e){return fe(e.on)&&fe(e.off)}(e)?R9.map(aR(e,n)):[];if(!r&&F_(e))return Ct(s=>iy(s,n,t))(Ut(e));if(!r)throw new TypeError("Invalid event target");return new Ne(s=>{const a=(...l)=>s.next(1o(a)})}function aR(e,n){return t=>i=>e[t](n,i)}const ac={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=ac;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new ze(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=ac;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=ac;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class L9 extends pv{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class P9 extends hv{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=ac.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(ac.cancelAnimationFrame(t),n._scheduled=void 0)}});let ry,B9=1;const Yh={};function lR(e){return e in Yh&&(delete Yh[e],!0)}const j9={setImmediate(e){const n=B9++;return Yh[n]=!0,ry||(ry=Promise.resolve()),ry.then(()=>lR(n)&&e()),n},clearImmediate(e){lR(e)}},{setImmediate:U9,clearImmediate:H9}=j9,Qh={setImmediate(...e){const{delegate:n}=Qh;return(n?.setImmediate||U9)(...e)},clearImmediate(e){const{delegate:n}=Qh;return(n?.clearImmediate||H9)(e)},delegate:void 0};new class $9 extends pv{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class z9 extends hv{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Qh.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Qh.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function cR(e=0,n,t=sq){let i=-1;return null!=n&&(ES(n)?t=n:i=n),new Ne(r=>{let o=function W9(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function dR(e,n=mv){return function q9(e){return Ze((n,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};n.subscribe(je(t,c=>{i=!0,r=c,o||Ut(e(c)).subscribe(o=je(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>cR(e,n))}let uR=(()=>{class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Q,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Ne(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(dR(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):N()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(fn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=$s(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>iy(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||e)(D($),D(Ht),D(te,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hR=(()=>{class e{constructor(t,i,r){this._platform=t,this._change=new Q,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(dR(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D($),D(te,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lc=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})(),fR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[Wl,lc,Wl,lc]})}return e})();class oy{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class pR extends oy{constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Q9 extends oy{constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class K9 extends oy{constructor(n){super(),this.element=n instanceof ue?n.nativeElement:n}}class X9{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof pR?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof Q9?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof K9?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class J9 extends X9{constructor(n,t,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ge.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let mR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();const gR=B5();class eZ{constructor(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=st(-this._previousScrollPosition.left),n.style.top=st(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),gR&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gR&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class tZ{constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(fn(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _R{enable(){}disable(){}attach(){}}function sy(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function vR(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class nZ{constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();sy(t,[{width:i,height:r,bottom:r,right:i,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 iZ=(()=>{class e{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new _R,this.close=s=>new tZ(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new eZ(this._viewportRuler,this._document),this.reposition=s=>new nZ(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||e)(D(uR),D(hR),D($),D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class rZ{constructor(n){if(this.scrollStrategy=new _R,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class oZ{constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let yR=(()=>{class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sZ=(()=>{class e extends yR{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),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)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D($,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),aZ=(()=>{class e extends yR{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ui(o)},this._clickListener=o=>{const s=Ui(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(bR(d.overlayElement,s)||bR(d.overlayElement,a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Ht),D($,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bR(e,n){const t=typeof ShadowRoot<"u"&&ShadowRoot;let i=n;for(;i;){if(i===e)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let wR=(()=>{class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||cv()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Q,this._outsidePointerEvents=new Q,this._renders=new Q,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=zn(()=>function HE(e,n){!n?.injector&&sp();const t=n?.injector??w(Ge);return ln(t)?(Pt("NgAfterRender"),zE(e,t,n,!1)):$E}(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ni(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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 t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=st(this._config.width),n.height=st(this._config.height),n.minWidth=st(this._config.minWidth),n.minHeight=st(this._config.minHeight),n.maxWidth=st(this._config.maxWidth),n.maxHeight=st(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,t,i){const r=gh(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const n=this._renders.pipe(qe(Jl(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const CR="cdk-overlay-connected-position-bounding-box",cZ=/([A-Za-z%]+)$/;class dZ{get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 Q,this._resizeSubscription=ze.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(CR),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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 n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&po(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(CR),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=ER(t);let{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,h,f),g=p*m;return{visibleArea:g,isCompletelyWithinViewport:o.width*o.height===g,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=DR(this._overlayRef.getConfig().minHeight),a=DR(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=ER(t),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:n.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-n.x+2*this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=st(i.height),r.top=st(i.top),r.bottom=st(i.bottom),r.width=st(i.width),r.left=st(i.left),r.right=st(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=st(o)),s&&(r.maxWidth=st(s))}this._lastBoundingBoxSize=i,po(this._boundingBox.style,r)}_resetBoundingBoxStyles(){po(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){po(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();po(i,this._getExactOverlayY(t,n,d)),po(i,this._getExactOverlayX(t,n,d))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=st(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=st(s.maxWidth):o&&(i.maxWidth="")),po(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=st(o.y),r}_getExactOverlayX(n,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=st(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vR(n,i),isOriginOutsideView:sy(n,i),isOverlayClipped:vR(t,i),isOverlayOutsideView:sy(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&gh(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof ue)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function po(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function DR(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(cZ);return t&&"px"!==t?null:parseFloat(n)}return e||null}function ER(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const xR="cdk-global-overlay-wrapper";class hZ{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(xR),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===d?(m="center",h?p=u:f=u):h?"left"===d||"end"===d?(m="flex-end",f=u):("right"===d||"start"===d)&&(m="flex-start",p=u):"left"===d||"start"===d?(m="flex-start",f=u):("right"===d||"end"===d)&&(m="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=l?"0":f,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(xR),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let fZ=(()=>{class e{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new hZ}flexibleConnectedTo(t){return new dZ(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||e)(D(hR),D(te),D(Ht),D(wR))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pZ=0,Ks=(()=>{class e{constructor(t,i,r,o,s,a,l,c,d,u,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new rZ(t);return s.direction=s.direction||this._directionality.value,new lZ(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+pZ++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Hn)),new J9(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||e)(D(iZ),D(wR),D(Wa),D(fZ),D(sZ),D(Ge),D($),D(te),D(Ch),D(Ms),D(aZ),D(Ti,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const _Z={provide:new E("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const e=w(Ks);return()=>e.scrollStrategies.reposition()}}),deps:[Ks],useFactory:function gZ(e){return()=>e.scrollStrategies.reposition()}};let vZ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[Ks,_Z],imports:[Wl,mR,fR,fR]})}return e})();const yZ=["tooltip"],MR=new E("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const e=w(Ks);return()=>e.scrollStrategies.reposition({scrollThrottle:20})}}),wZ={provide:MR,deps:[Ks],useFactory:function bZ(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},DZ=new E("mat-tooltip-default-options",{providedIn:"root",factory:function CZ(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),SR="tooltip-panel",TR=zl({passive:!0});let SZ=(()=>{class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=GT(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){const i=GT(t);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=qT(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=qT(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){const i=this._message;this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,r,o,s,a,l,c,d,u,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=TZ,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new Q,this._injector=w(Ge),this._scrollStrategy=d,this._document=f,h&&(this._showDelay=h.showDelay,this._hideDelay=h.hideDelay,h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures),h.tooltipClass&&(this.tooltipClass=h.tooltipClass)),u.change.pipe(qe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(qe(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,TR)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new pR(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(qe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof ue)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(qe(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${SR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(qe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(qe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(qe(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!ph(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(t){const r=!this._dir||"ltr"==this._dir.value;return"top"===t.originY?t.offsetY=-8:"bottom"===t.originY?t.offsetY=8:"start"===t.originX?t.offsetX=r?-8:8:"end"===t.originX&&(t.offsetX=r?8:-8),t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ni(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:o}=t;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${SR}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(i=t),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const i=t.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,TR)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static#e=this.\u0275fac=function(i){return new(i||e)(v(Ks),v(ue),v(uR),v(Qt),v($),v(Ht),v(_q),v(wh),v(MR),v(Ch),v(DZ,8),v(te))};static#t=this.\u0275dir=R({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&>("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return e})(),TZ=(()=>{class e{constructor(t,i,r){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Q,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===r}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>24&&t.width>=200}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:r),i.classList.add(t?r:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static#e=this.\u0275fac=function(i){return new(i||e)(v(ui),v(ue),v(Ti,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&su(yZ,7),2&i){let o;Tt(o=At())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){1&i&&Le("mouseleave",function(s){return r._handleMouseLeave(s)})},standalone:!0,features:[Xt],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(1&i){const o=tu();T(0,"div",1,0),Le("animationend",function(a){return Kc(o),Xc(r._handleAnimationEnd(a))}),T(2,"div",2),se(3),F()()}2&i&&(gt("mdc-tooltip--multiline",r._isMultiline),ie("ngClass",r.tooltipClass),P(3),qr(r.message))},dependencies:[EM],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return e})(),AZ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[wZ],imports:[Oq,g_,vZ,zt,zt,lc]})}return e})();function kZ(e,n){if(1&e){const t=tu();T(0,"a",10),Le("click",function(r){return Kc(t),Xc(r.stopPropagation())}),se(1),F()}if(2&e){const t=Ve().$implicit;Mg("href","https://store.steampowered.com/app/"+t.titleId,Yo),P(),Cn(" ",t.game_name," ")}}function RZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit;P(),Cn(" ",t.game_name," ")}}function FZ(e,n){if(1&e){const t=tu();T(0,"mat-chip-option",11),Le("click",function(r){const o=Kc(t).$implicit,s=Ve().$implicit;return Xc(Ve().onEngineClicked(r,s,o.key))}),se(1),F()}if(2&e){const t=n.$implicit,i=Ve().$implicit;ie("selected",Ve().titleEnginePicked[i.titleId]==t.key)("value",t.key),P(),Cn(" ",t.key," ")}}function NZ(e,n){1&e&&(T(0,"mat-icon",29),se(1," sports_esports "),F()),2&e&&Lt("color","darkgray")}function OZ(e,n){1&e&&(T(0,"mat-icon",30),se(1," sports_esports "),F()),2&e&&Lt("color","red")}function PZ(e,n){1&e&&(T(0,"mat-icon",31),se(1," sports_esports "),F()),2&e&&Lt("color","green")}function LZ(e,n){1&e&&(T(0,"mat-icon",32),se(1," sports_esports "),F()),2&e&&Lt("color","yellow")}function VZ(e,n){1&e&&(T(0,"mat-icon",33),se(1," sports_esports "),F()),2&e&&Lt("color","yellow")}function BZ(e,n){1&e&&(T(0,"mat-icon",34),se(1," sports_esports "),F()),2&e&&Lt("color","yellow")}function jZ(e,n){1&e&&(T(0,"mat-icon",35),se(1," cloud_off "),F()),2&e&&Lt("color","darkgray")}function UZ(e,n){if(1&e&&(T(0,"mat-icon",14),se(1," cloud "),F()),2&e){const t=Ve(2).$implicit,i=Ve();Lt("color","red"),ie("matTooltip","Game Has Cloud Saves But Not Supported Due to "+i.translate_key(t.cloudIssueReason))}}function HZ(e,n){1&e&&(T(0,"mat-icon",36),se(1," cloud "),F()),2&e&&Lt("color","darkgray")}function zZ(e,n){1&e&&(T(0,"mat-icon",37),se(1," cloud "),F()),2&e&&Lt("color","green")}function $Z(e,n){if(1&e&&(T(0,"div",9)(1,"div",25),se(2,"Version"),F(),T(3,"div",26),se(4),F()()),2&e){const t=Ve(2).$implicit,i=Ve();P(4),Cn(" ",t.engines[i.titleEnginePicked[t.titleId]].version," ")}}function GZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit;P(),Cn(" ",t.label," ")}}function qZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit,i=Ve(5);P(),Cn(" ",i.NOTICE_MAP[t.value]," ")}}function WZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit,i=Ve(5);P(),Cn(" ",i.NOTICE_MAP[t.key]," ")}}function ZZ(e,n){if(1&e&&(T(0,"li"),Ke(1,GZ,2,1,"div",6)(2,qZ,2,1,"div",6)(3,WZ,2,1,"div",6),F()),2&e){const t=n.$implicit;P(),ie("ngIf",t.label),P(),ie("ngIf",t.value),P(),ie("ngIf",t.key&&!t.value&&!t.label)}}function YZ(e,n){if(1&e&&(Cs(0),Ke(1,ZZ,4,3,"li",38),Ds()),2&e){const t=Ve(3).$implicit,i=Ve();P(),ie("ngForOf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function QZ(e,n){if(1&e&&(Cs(0),T(1,"div",12)(2,"ul"),Ke(3,YZ,2,1,"ng-container",6),F()(),Ds()),2&e){const t=Ve(2).$implicit,i=Ve();P(3),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function KZ(e,n){if(1&e&&(Cs(0),T(1,"div",12)(2,"div",9)(3,"div",13)(4,"mat-icon",14),se(5," install_desktop "),F(),T(6,"mat-icon",14),se(7," desktop_windows "),F(),T(8,"mat-icon",14),se(9," construction "),F(),Ke(10,NZ,2,2,"mat-icon",15)(11,OZ,2,2,"mat-icon",16)(12,PZ,2,2,"mat-icon",17)(13,LZ,2,2,"mat-icon",18)(14,VZ,2,2,"mat-icon",19)(15,BZ,2,2,"mat-icon",20)(16,jZ,2,2,"mat-icon",21)(17,UZ,2,3,"mat-icon",22)(18,HZ,2,2,"mat-icon",23)(19,zZ,2,2,"mat-icon",24),F()(),T(20,"div",9)(21,"div",25),se(22,"Engine"),F(),T(23,"div",26)(24,"a",27),se(25),F()()(),T(26,"div",9)(27,"div",25),se(28,"License"),F(),T(29,"div",26)(30,"a",27),se(31),F()()(),Ke(32,$Z,5,1,"div",28),T(33,"div",9)(34,"div",25),se(35,"Contributor"),F(),T(36,"div",26)(37,"a",27),se(38),F()()()(),Ke(39,QZ,4,1,"ng-container",6),Ds()),2&e){const t=Ve().$implicit,i=Ve();P(4),Lt("color",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"Manual Steps Required":"Automatic Installation"),P(2),Lt("color",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"red":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"Steam Overlay Disabled":"Steam Overlay Enabled"),P(2),Lt("color",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"Engine May Have Missing Features":"Engine Considered Feature Complete"),P(2),ie("ngIf",!(t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedSteamChanges||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGameAndSteam)),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&!t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&!t.controllerSteamDefault),P(),ie("ngIf",t.cloudNotAvailable),P(),ie("ngIf",t.cloudAvailable&&t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&t.cloudSupported),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].engine_link,Yo),P(),qr(i.titleEnginePicked[t.titleId]),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].license_link,Yo),P(),Cn(" ",t.engines[i.titleEnginePicked[t.titleId]].license," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].version),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].author_link,Yo),P(),Cn(" ",t.engines[i.titleEnginePicked[t.titleId]].author," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices||t.notices)}}function XZ(e,n){if(1&e&&(T(0,"div",2)(1,"div",3)(2,"div",4),Ke(3,kZ,2,2,"a",5)(4,RZ,2,1,"div",6),F(),T(5,"div",7)(6,"mat-chip-listbox"),Ke(7,FZ,2,3,"mat-chip-option",8),cu(8,"keyvalue"),F()()(),T(9,"div",9),Ke(10,KZ,40,27,"ng-container",6),F()()),2&e){const t=n.$implicit,i=Ve();P(3),ie("ngIf",!t.isDefault),P(),ie("ngIf",t.isDefault),P(3),ie("ngForOf",du(8,4,t.engines)),P(3),ie("ngIf",i.titleEnginePicked[t.titleId])}}let JZ=(()=>{class e{constructor(){this.titles=[],this.titleEnginePicked={},this.NOTICE_MAP={},this.runControllerCheck=!0}ngOnInit(){var t=this;return Ul(function*(){const i=yield fetch("/packagessniper_v2.json");t.titles=yield i.json(),t.enginesToMap(),t.noticeTranslationToMap(),t.sortTitles()})()}noticeTranslationToMap(){for(let t of this.titles.notice_translation)this.NOTICE_MAP[t.key]=t.value}enginesToMap(){const t={};for(let i of this.titles.engines)t[i.engine_name]=i;this.titles.engines=t}translate_key(t){return this.NOTICE_MAP[t]}processTitle(t){const i=t.app_id;if(t.engines={},t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue&&console.error(`title of ${t.game_name} has unknown cloud save feature state`),t.engine_name){const o=t.engine_name;this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`)}else if(t.engine_names)for(let o of t.engine_names)this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`);else if(t.choices)for(let o of t.choices){const s=o.name;this.titles.engines[s]?t.engines[s]=this.titles.engines[s]:o.engine_name&&this.titles.engines[o.engine_name]?t.engines[o.engine_name]=this.titles.engines[o.engine_name]:console.error(`engineName of ${s} not found from title of ${i}`)}else console.error(`missing information for ${i}`);const r=Object.keys(t.engines);r.sort(),this.titleEnginePicked[i]=r[0];for(let o in t.engines){const s=JSON.parse(JSON.stringify(t.engines[o]));if(t.notices){s.notices||(s.notices=[]);for(let a of t.notices)s.notices.push(a)}if(t.removeNotices){const a=[];for(let l of s.notices){let c=!0;for(let d of t.removeNotices)if(l.key===d){c=!1;break}c&&a.push(l)}s.notices=a}if(s.notices)for(let a of s.notices)"manual_steps"===a.key&&(s.manualSteps=!0),"steam_overlay_disabled"===a.key&&(s.steamOverlayDisabled=!0),"in_progress"===a.key&&(s.inProgress=!0);t.engines[o]=s}return t}sortTitles(){const t=[];let i=this.titles.default_engine;if(this.runControllerCheck)for(const r in this.titles.engines){const o=this.titles.engines[r];let s=!1;for(let a of Object.keys(o))if(-1!==a.indexOf("controller")){s=!0;break}s||console.error(`missing controller data for ${o.engine_name}`)}for(let r of this.titles.games)r.titleId=r.app_id,r=this.processTitle(r),t.push(r);t.sort(function(r,o){return r.game_nameo.game_name?1:0}),i&&(i.isDefault=!0,i.titleId="default",i.app_id="default",i=this.processTitle(i),t.unshift(i)),this.titles=t}onEngineClicked(t,i,r){this.titleEnginePicked[i.titleId]=r}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["app-packages"]],decls:2,vars:1,consts:[[1,"container-fluid","page-wrapper"],["class","row game-row",4,"ngFor","ngForOf"],[1,"row","game-row"],[1,"row","header-wrapper"],[1,"col-sm-6","game-title"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],[1,"col-sm-6","game-choices"],[3,"selected","value","click",4,"ngFor","ngForOf"],[1,"row"],["target","_blank",3,"click","href"],[3,"click","selected","value"],[1,"col-12","col-md-6"],[1,"col-12","status-icons"],[3,"matTooltip"],["matTooltip","Unknown Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Does Not Have Native Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings",3,"color",4,"ngIf"],["matTooltip","Game Does Not Have Cloud Saves",3,"color",4,"ngIf"],[3,"matTooltip","color",4,"ngIf"],["matTooltip","Game Has Cloud Saves But Unknown Status",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Supported",3,"color",4,"ngIf"],[1,"col-5","col-md-4","col-lg-3"],[1,"col-7","col-md-8"],["target","_blank",3,"href"],["class","row",4,"ngIf"],["matTooltip","Unknown Controller Support"],["matTooltip","Engine Does Not Have Native Controller Support"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings"],["matTooltip","Game Does Not Have Cloud Saves"],["matTooltip","Game Has Cloud Saves But Unknown Status"],["matTooltip","Cloud Saves Supported"],[4,"ngFor","ngForOf"]],template:function(i,r){1&i&&(T(0,"div",0),Ke(1,XZ,11,6,"div",1),F()),2&i&&(P(),ie("ngForOf",r.titles))},dependencies:[IM,SM,GW,ny,ey,SZ,RM],styles:[".packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.packages-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}.mat-chip[_ngcontent-%COMP%]{cursor:pointer!important}.page-wrapper[_ngcontent-%COMP%]{padding-top:1rem;color:#fff;max-width:1200px}.header-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:.5rem;padding-top:.5rem}.game-row[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 24px;margin-bottom:1rem;margin-left:15px;margin-right:15px;padding-bottom:.5rem}.game-title[_ngcontent-%COMP%], .engine-choices[_ngcontent-%COMP%]{align-self:center;margin-bottom:.5rem}div[_ngcontent-%COMP%]{word-break:break-word}.status-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.625rem}"]})}return e})();class eY extends Q{constructor(n=1/0,t=1/0,i=fv){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s"']/,nY=new RegExp(kR.source,"g"),RR=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,iY=new RegExp(RR.source,"g"),rY={"&":"&","<":"<",">":">",'"':""","'":"'"},FR=e=>rY[e];function mn(e,n){if(n){if(kR.test(e))return e.replace(nY,FR)}else if(RR.test(e))return e.replace(iY,FR);return e}const oY=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,aY=/(^|[^\[])\^/g;function Ce(e,n){let t="string"==typeof e?e:e.source;n=n||"";const i={replace:(r,o)=>{let s="string"==typeof o?o:o.source;return s=s.replace(aY,"$1"),t=t.replace(r,s),i},getRegex:()=>new RegExp(t,n)};return i}function NR(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const cc={exec:()=>null};function OR(e,n){const i=e.replace(/\|/g,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length0)return{type:"space",raw:t[0]}}code(n){const t=this.rules.block.code.exec(n);if(t){const i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Kh(i,"\n")}}}fences(n){const t=this.rules.block.fences.exec(n);if(t){const i=t[0],r=function cY(e,n){const t=e.match(/^(\s+)(?:```)/);if(null===t)return n;const i=t[1];return n.split("\n").map(r=>{const o=r.match(/^\s+/);if(null===o)return r;const[s]=o;return s.length>=i.length?r.slice(i.length):r}).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(n){const t=this.rules.block.heading.exec(n);if(t){let i=t[2].trim();if(/#$/.test(i)){const r=Kh(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(n){const t=this.rules.block.hr.exec(n);if(t)return{type:"hr",raw:t[0]}}blockquote(n){const t=this.rules.block.blockquote.exec(n);if(t){let i=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");i=Kh(i.replace(/^ *>[ \t]?/gm,""),"\n");const r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:o,text:i}}}list(n){let t=this.rules.block.list.exec(n);if(t){let i=t[1].trim();const r=i.length>1,o={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");const s=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let a="",l="",c=!1;for(;n;){let d=!1;if(!(t=s.exec(n))||this.rules.block.hr.test(n))break;a=t[0],n=n.substring(a.length);let u=t[2].split("\n",1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),h=n.split("\n",1)[0],f=0;this.options.pedantic?(f=2,l=u.trimStart()):(f=t[2].search(/[^ ]/),f=f>4?1:f,l=u.slice(f),f+=t[1].length);let p=!1;if(!u&&/^ *$/.test(h)&&(a+=h+"\n",n=n.substring(h.length+1),d=!0),!d){const y=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),_=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),x=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;n;){const B=n.split("\n",1)[0];if(h=B,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),x.test(h)||S.test(h)||y.test(h)||_.test(n))break;if(h.search(/[^ ]/)>=f||!h.trim())l+="\n"+h.slice(f);else{if(p||u.search(/[^ ]/)>=4||x.test(u)||S.test(u)||_.test(u))break;l+="\n"+h}!p&&!h.trim()&&(p=!0),a+=B+"\n",n=n.substring(B.length+1),u=h.slice(f)}}o.loose||(c?o.loose=!0:/\n *\n *$/.test(a)&&(c=!0));let g,m=null;this.options.gfm&&(m=/^\[[ xX]\] /.exec(l),m&&(g="[ ] "!==m[0],l=l.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:a,task:!!m,checked:g,loose:!1,text:l,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=l.trimEnd(),o.raw=o.raw.trimEnd();for(let d=0;d"space"===f.type),h=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));o.loose=h}if(o.loose)for(let d=0;d$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:r,title:o}}}table(n){const t=this.rules.block.table.exec(n);if(!t||!/[:|]/.test(t[2]))return;const i=OR(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),o=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===r.length){for(const a of r)/^ *-+: *$/.test(a)?s.align.push("right"):/^ *:-+: *$/.test(a)?s.align.push("center"):/^ *:-+ *$/.test(a)?s.align.push("left"):s.align.push(null);for(const a of i)s.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of o)s.rows.push(OR(a,s.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return s}}lheading(n){const t=this.rules.block.lheading.exec(n);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(n){const t=this.rules.block.paragraph.exec(n);if(t){const i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(n){const t=this.rules.block.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(n){const t=this.rules.inline.escape.exec(n);if(t)return{type:"escape",raw:t[0],text:mn(t[1])}}tag(n){const t=this.rules.inline.tag.exec(n);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(n){const t=this.rules.inline.link.exec(n);if(t){const i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const s=Kh(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function lY(e,n){if(-1===e.indexOf(n[1]))return-1;let t=0;for(let i=0;i-1){const l=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),PR(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(n,t){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){const o=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!o){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return PR(i,o,i[0],this.lexer)}}emStrong(n,t,i=""){let r=this.rules.inline.emStrongLDelim.exec(n);if(!(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))&&(!r[1]&&!r[2]||!i||this.rules.inline.punctuation.exec(i))){const s=[...r[0]].length-1;let a,l,c=s,d=0;const u="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*n.length+s);null!=(r=u.exec(t));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&s%3&&!((s+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const h=[...r[0]][0].length,f=n.slice(0,s+r.index+h+l);if(Math.min(s,l)%2){const m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){const t=this.rules.inline.code.exec(n);if(t){let i=t[2].replace(/\n/g," ");const r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=mn(i,!0),{type:"codespan",raw:t[0],text:i}}}br(n){const t=this.rules.inline.br.exec(n);if(t)return{type:"br",raw:t[0]}}del(n){const t=this.rules.inline.del.exec(n);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(n){const t=this.rules.inline.autolink.exec(n);if(t){let i,r;return"@"===t[2]?(i=mn(t[1]),r="mailto:"+i):(i=mn(t[1]),r=i),{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(n){let t;if(t=this.rules.inline.url.exec(n)){let i,r;if("@"===t[2])i=mn(t[0]),r="mailto:"+i;else{let o;do{o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(o!==t[0]);i=mn(t[0]),r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(n){const t=this.rules.inline.text.exec(n);if(t){let i;return i=this.lexer.state.inRawBlock?t[0]:mn(t[0]),{type:"text",raw:t[0],text:i}}}}const dc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,LR=/(?:[*+-]|\d{1,9}[.)])/,VR=Ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,LR).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ly=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cy=/(?!\s*\])(?:\\.|[^\[\]\\])+/,mY=Ce(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",cy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gY=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,LR).getRegex(),Jh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",dy=/|$))/,_Y=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",dy).replace("tag",Jh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),BR=Ce(ly).replace("hr",dc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Jh).getRegex(),uy={blockquote:Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",BR).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:mY,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:dc,html:_Y,lheading:VR,list:gY,newline:/^(?: *(?:\n|$))+/,paragraph:BR,table:cc,text:/^[^\n]+/},jR=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Jh).getRegex(),vY={...uy,table:jR,paragraph:Ce(ly).replace("hr",dc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jR).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Jh).getRegex()},yY={...uy,html:Ce("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",dy).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(ly).replace("hr",dc).replace("heading"," *#{1,6} *[^\n]").replace("lheading",VR).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},UR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,HR=/^( {2,}|\\)\n(?!\s*$)/,uc="\\p{P}\\p{S}",CY=Ce(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,uc).getRegex(),EY=Ce(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,uc).getRegex(),xY=Ce("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,uc).getRegex(),IY=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,uc).getRegex(),MY=Ce(/\\([punct])/,"gu").replace(/punct/g,uc).getRegex(),SY=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),TY=Ce(dy).replace("(?:--\x3e|$)","--\x3e").getRegex(),AY=Ce("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",TY).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ef=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,kY=Ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ef).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),zR=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",ef).replace("ref",cy).getRegex(),$R=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",cy).getRegex(),hy={_backpedal:cc,anyPunctuation:MY,autolink:SY,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:HR,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:cc,emStrongLDelim:EY,emStrongRDelimAst:xY,emStrongRDelimUnd:IY,escape:UR,link:kY,nolink:$R,punctuation:CY,reflink:zR,reflinkSearch:Ce("reflink|nolink(?!\\()","g").replace("reflink",zR).replace("nolink",$R).getRegex(),tag:AY,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},n,t))&&(n=n.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.space(n)){n=n.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(n)){n=n.substring(i.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(n)){n=n.substring(i.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(n)){n=n.substring(i.raw.length),t.push(i);continue}if(o=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=n.slice(1);let c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(o=n.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=t[t.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=o.length!==n.length,n=n.substring(i.raw.length);continue}if(i=this.tokenizer.text(n)){n=n.substring(i.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,t}inline(n,t=[]){return this.inlineQueue.push({src:n,tokens:t}),t}inlineTokens(n,t=[]){let i,r,o,a,l,c,s=n;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;n;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>!!(i=d.call({lexer:this},n,t))&&(n=n.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.escape(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(n)){n=n.substring(i.raw.length),r=t[t.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(i.raw.length),r=t[t.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(n,s,c)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(n)){n=n.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(n))){n=n.substring(i.raw.length),t.push(i);continue}if(o=n,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const u=n.slice(1);let h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},u),"number"==typeof h&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(o=n.substring(0,d+1))}if(i=this.tokenizer.inlineText(o)){n=n.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(c=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(n){const d="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}return t}}class go{options;constructor(n){this.options=n||mo}code(n,t,i){const r=(t||"").match(/^\S*/)?.[0];return n=n.replace(/\n$/,"")+"\n",r?'
'+(i?n:mn(n,!0))+"
\n":"
"+(i?n:mn(n,!0))+"
\n"}blockquote(n){return`
\n${n}
\n`}html(n,t){return n}heading(n,t,i){return`${n}\n`}hr(){return"
\n"}list(n,t,i){const r=t?"ol":"ul";return"<"+r+(t&&1!==i?' start="'+i+'"':"")+">\n"+n+"\n"}listitem(n,t,i){return`
  • ${n}
  • \n`}checkbox(n){return"'}paragraph(n){return`

    ${n}

    \n`}table(n,t){return t&&(t=`${t}`),"\n\n"+n+"\n"+t+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,t){const i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return"
    "}del(n){return`${n}`}link(n,t,i){const r=NR(n);if(null===r)return i;let o='",o}image(n,t,i){const r=NR(n);if(null===r)return i;let o=`${i}"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue}case"code":i+=this.renderer.code(o.text,o.lang,!!o.escaped);continue;case"table":{const s=o;let a="",l="";for(let d=0;d0&&"paragraph"===h.tokens[0].type?(h.tokens[0].text=g+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&"text"===h.tokens[0].tokens[0].type&&(h.tokens[0].tokens[0].text=g+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:g+" "}):m+=g+" "}m+=this.parse(h.tokens,c),d+=this.renderer.listitem(m,p,!!f)}i+=this.renderer.list(d,a,l);continue}case"html":i+=this.renderer.html(o.text,o.block);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(o.tokens));continue;case"text":{let s=o,a=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1{const a=o[s].flat(1/0);i=i.concat(this.walkTokens(a,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...n){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=t.renderers[o.name];t.renderers[o.name]=s?function(...a){let l=o.renderer.apply(this,a);return!1===l&&(l=s.apply(this,a)),l}:o.renderer}if("tokenizer"in o){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");const s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&("block"===o.level?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:"inline"===o.level&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),i.renderer){const o=this.defaults.renderer||new go(this.defaults);for(const s in i.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if("options"===s)continue;const l=i.renderer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u||""}}r.renderer=o}if(i.tokenizer){const o=this.defaults.tokenizer||new Xh(this.defaults);for(const s in i.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=i.tokenizer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.tokenizer=o}if(i.hooks){const o=this.defaults.hooks||new nf;for(const s in i.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if("options"===s)continue;const l=i.hooks[s],c=o[s];o[s]=nf.passThroughHooks.has(s)?d=>{if(this.defaults.async)return Promise.resolve(l.call(o,d)).then(h=>c.call(o,h));const u=l.call(o,d);return c.call(o,u)}:(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.hooks=o}if(i.walkTokens){const o=this.defaults.walkTokens,s=i.walkTokens;r.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,t){return _i.lex(n,t??this.defaults)}parser(n,t){return vi.parse(n,t??this.defaults)}#e(n,t){return(i,r)=>{const o={...r},s={...this.defaults,...o};!0===this.defaults.async&&!1===o.async&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const a=this.#t(!!s.silent,!!s.async);if(typeof i>"u"||null===i)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(l=>n(l,s)).then(l=>s.hooks?s.hooks.processAllTokens(l):l).then(l=>s.walkTokens?Promise.all(this.walkTokens(l,s.walkTokens)).then(()=>l):l).then(l=>t(l,s)).then(l=>s.hooks?s.hooks.postprocess(l):l).catch(a);try{s.hooks&&(i=s.hooks.preprocess(i));let l=n(i,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let c=t(l,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(l){return a(l)}}}#t(n,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const r="

    An error occurred:

    "+mn(i.message+"",!0)+"
    ";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}}};function me(e,n){return _o.parse(e,n)}me.options=me.setOptions=function(e){return _o.setOptions(e),AR(me.defaults=_o.defaults),me},me.getDefaults=function ay(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},me.defaults=mo,me.use=function(...e){return _o.use(...e),AR(me.defaults=_o.defaults),me},me.walkTokens=function(e,n){return _o.walkTokens(e,n)},me.parseInline=_o.parseInline,me.Parser=vi,me.parser=vi.parse,me.Renderer=go,me.TextRenderer=py,me.Lexer=_i,me.lexer=_i.lex,me.Tokenizer=Xh,me.Hooks=nf,me.parse=me;const PY=["*"];let GR=(()=>{class e{constructor(){this._buttonClick$=new Q,this.copied$=this._buttonClick$.pipe(hn(()=>Jl(N(!0),cR(3e3).pipe(RS(!1)))),zT(),function tY(e,n,t){let i,r=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:t}=e):i=e??1/0,DA({connector:()=>new eY(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(Kr(!1),Z(t=>t?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["markdown-clipboard"]],standalone:!0,features:[Xt],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,r){1&i&&(T(0,"button",0),cu(1,"async"),Le("click",function(){return r.onCopyToClipboardClick()}),se(2),cu(3,"async"),F()),2&i&&(gt("copied",du(1,3,r.copied$)),P(2),qr(du(3,5,r.copiedText$)))},dependencies:[kM],encapsulation:2,changeDetection:0})}return e})();const BY=new E("CLIPBOARD_OPTIONS");var my=function(e){return e.CommandLine="command-line",e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}(my||{});const qR=new E("MARKED_EXTENSIONS"),UY=new E("MARKED_OPTIONS"),WR=new E("SECURITY_CONTEXT");let gy=(()=>{class e{get options(){return this._options}set options(t){this._options={...this.DEFAULT_MARKED_OPTIONS,...t}}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}constructor(t,i,r,o,s,a,l){this.clipboardOptions=t,this.extensions=i,this.platform=o,this.securityContext=s,this.http=a,this.sanitizer=l,this.DEFAULT_MARKED_OPTIONS={renderer:new go},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Q,this.reload$=this._reload$.asObservable(),this.options=r}parse(t,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,disableSanitizer:l}=i,c={...this.options,...i.markedOptions},d=c.renderer||this.renderer||new go;this.extensions&&(this.renderer=this.extendsRendererForExtensions(d)),a&&(this.renderer=this.extendsRendererForMermaid(d));const u=this.trimIndentation(t),h=r?this.decodeHtml(u):u,f=s?this.parseEmoji(h):h,p=this.parseMarked(f,c,o);return(l?p:this.sanitizer.sanitize(this.securityContext,p))||""}render(t,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:d}=i;a&&this.renderKatex(t,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(t,{...this.DEFAULT_MERMAID_OPTIONS,...d}),o&&this.renderClipboard(t,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),this.highlight(t)}reload(){this._reload$.next()}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(Z(i=>this.handleExtension(t,i)))}highlight(t){if(!sr(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;t||(t=document);const i=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(t)}decodeHtml(t){if(!sr(this.platform))return t;const i=document.createElement("textarea");return i.innerHTML=t,i.value}extendsRendererForExtensions(t){const i=t;return!0===i.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&me.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),t}extendsRendererForMermaid(t){const i=t;if(!0===i.\u0275NgxMarkdownRendererExtendedForMermaid)return t;const r=t.code;return t.code=function(o,s,a){return"mermaid"===s?`
    ${o}
    `:r.call(this,o,s,a)},i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,t}handleExtension(t,i){const r=t.lastIndexOf("://"),o=r>-1?t.substring(r+4):t,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+i+"\n```":i}parseMarked(t,i,r=!1){if(i.renderer){const o={...i.renderer};delete o.\u0275NgxMarkdownRendererExtendedForExtensions,delete o.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,me.use({renderer:o})}return r?me.parseInline(t,i):me.parse(t,i)}parseEmoji(t){if(!sr(this.platform))return t;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}renderKatex(t,i){if(sr(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(t,i)}}renderClipboard(t,i,r){if(!sr(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=t.querySelectorAll("pre");for(let l=0;lu.classList.add("hover"),d.onmouseleave=()=>u.classList.remove("hover"),o){const p=i.createComponent(o);h=p.hostView,p.changeDetectorRef.markForCheck()}else if(s)h=i.createEmbeddedView(s);else{const p=i.createComponent(GR);h=p.hostView,p.changeDetectorRef.markForCheck()}h.rootNodes.forEach(p=>{u.appendChild(p),f=new ClipboardJS(p,{text:()=>c.innerText})}),h.onDestroy(()=>f.destroy())}}renderMermaid(t,i=this.DEFAULT_MERMAID_OPTIONS){if(!sr(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=t.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.run({nodes:r}))}trimIndentation(t){if(!t)return"";let i;return t.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}static#e=this.\u0275fac=function(i){return new(i||e)(D(BY,8),D(qR,8),D(UY,8),D(Ln),D(WR),D(Ql,8),D(xl))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),ZR=(()=>{class e{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(t){this._disableSanitizer=this.coerceBooleanProperty(t)}get inline(){return this._inline}set inline(t){this._inline=this.coerceBooleanProperty(t)}get clipboard(){return this._clipboard}set clipboard(t){this._clipboard=this.coerceBooleanProperty(t)}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get mermaid(){return this._mermaid}set mermaid(t){this._mermaid=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}get commandLine(){return this._commandLine}set commandLine(t){this._commandLine=this.coerceBooleanProperty(t)}constructor(t,i,r){this.element=t,this.markdownService=i,this.viewContainerRef=r,this.error=new le,this.load=new le,this.ready=new le,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Q}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(qe(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(t,i=!1){var r=this;return Ul(function*(){const o={decodeHtml:i,inline:r.inline,emoji:r.emoji,mermaid:r.mermaid,disableSanitizer:r.disableSanitizer},s={clipboard:r.clipboard,clipboardOptions:r.getClipboardOptions(),katex:r.katex,katexOptions:r.katexOptions,mermaid:r.mermaid,mermaidOptions:r.mermaidOptions},a=yield r.markdownService.parse(t,o);r.element.nativeElement.innerHTML=a,r.handlePlugins(),r.markdownService.render(r.element.nativeElement,s,r.viewContainerRef),r.ready.emit()})()}coerceBooleanProperty(t){return null!=t&&"false"!=`${String(t)}`}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:t=>{this.render(t).then(()=>{this.load.emit(t)})},error:t=>this.error.emit(t)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,my.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,my.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,i){const r=t.querySelectorAll("pre");for(let o=0;o{const a=i[s];if(a){const l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(t){const i=t.match(/([A-Z])/g);if(!i)return t;let r=t.toString();for(let o=0,s=i.length;o{class e{static forRoot(t){return{ngModule:e,providers:[YY(t)]}}static forChild(){return{ngModule:e}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[g_]})}return e})();var YR;!function(e){let n;var r;let t,i;(r=n=e.SecurityLevel||(e.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(t=e.Theme||(e.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=e.LogLevel||(e.LogLevel={}))}(YR||(YR={}));const KY=[{path:"packages",component:JZ},{path:"**",component:(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["app-home"]],decls:3,vars:0,consts:[[1,"container-fluid","page-wrapper"],[1,"content"],["src","README.md"]],template:function(i,r){1&i&&(T(0,"div",0)(1,"div",1),St(2,"markdown",2),F()())},dependencies:[ZR],styles:[".content[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 16px;margin-top:1rem;margin-bottom:1rem;padding-bottom:.5rem;color:#fff}"]})}return e})()}];let XY=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[NT.forRoot(KY),NT]})}return e})();const JY=["*",[["mat-toolbar-row"]]],eQ=["*","mat-toolbar-row"];let tQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=R({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return e})(),nQ=(()=>{class e{constructor(t,i,r){this._elementRef=t,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Ht),v(te))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&dn(o,tQ,5),2&i){let s;Tt(s=At())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){2&i&&(rl(r.color?"mat-"+r.color:""),gt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Xt],ngContentSelectors:eQ,decls:2,vars:0,template:function(i,r){1&i&&(Un(JY),et(0),et(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return e})(),iQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,zt]})}return e})();const rQ=["mat-button",""],oQ=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],sQ=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],aQ=new E("MAT_BUTTON_CONFIG"),lQ=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let cQ=(()=>{class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,i,r,o){this._elementRef=t,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=w(wh),this._rippleLoader=w(wA),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=w(aQ,{optional:!0}),a=t.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(const{attribute:c,mdcClasses:d}of lQ)a.hasAttribute(c)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",i){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){bm()};static#t=this.\u0275dir=R({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",xe],disabled:[2,"disabled","disabled",xe],ariaDisabled:[2,"aria-disabled","ariaDisabled",xe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",xe]},features:[Vn]})}return e})(),dQ=(()=>{class e extends cQ{constructor(t,i,r,o){super(t,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Ht),v($),v(Ti,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(Ue("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),rl(r.color?"mat-"+r.color:""),gt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[oe,Xt],attrs:rQ,ngContentSelectors:sQ,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(Un(oQ),St(0,"span",0),et(1),T(2,"span",1),et(3,1),F(),et(4,2),St(5,"span",2)(6,"span",3)),2&i&>("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),hQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,_A,zt]})}return e})(),fQ=(()=>{class e{constructor(){this.title="webui"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["app-root"]],decls:9,vars:0,consts:[[1,"example-spacer"],["color","primary","routerLink","/","mat-raised-button","","aria-label","Client",1,"client-button"],["color","primary","routerLink","/packages","mat-raised-button","","aria-label","Packages"]],template:function(i,r){1&i&&(T(0,"mat-toolbar")(1,"span"),se(2,"Luxtorpeda"),F(),St(3,"span",0),T(4,"button",1),se(5," Client "),F(),T(6,"button",2),se(7," Packages "),F()(),St(8,"router-outlet"))},dependencies:[Q_,hh,nQ,dQ],styles:[".example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{background:#303030!important;border-bottom:1px solid gray}.client-button[_ngcontent-%COMP%]{margin-right:.625rem}"]})}return e})();function QR(e){return new b(3e3,!1)}function mr(e){switch(e.length){case 0:return new sc;case 1:return e[0];default:return new tR(e)}}function KR(e,n,t=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let p=f,m=h;if("offset"!==f)switch(p=e.normalizePropertyName(p,r),m){case"!":m=t.get(f);break;case zi:m=i.get(f);break;default:m=e.normalizeStyleValue(f,p,m,r)}u.set(p,m)}),d||o.push(u),a=u,s=c}),r.length)throw function PQ(){return new b(3502,!1)}();return o}function _y(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&vy(t,"start",e)));break;case"done":e.onDone(()=>i(t&&vy(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&vy(t,"destroy",e)))}}function vy(e,n,t){const o=yy(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function yy(e,n,t,i,r="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function gn(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function XR(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const ZQ=typeof document>"u"?null:document.documentElement;function by(e){const n=e.parentNode||e.host||null;return n===ZQ?null:n}let vo=null,JR=!1;function eF(e,n){for(;n;){if(n===e)return!0;n=by(n)}return!1}function tF(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let wy=(()=>{class e{validateStyleProperty(t){return function QQ(e){vo||(vo=function KQ(){return typeof document<"u"?document.body:null}()||{},JR=!!vo.style&&"WebkitAppearance"in vo.style);let n=!0;return vo.style&&!function YQ(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in vo.style,!n&&JR&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in vo.style)),n}(t)}containsElement(t,i){return eF(t,i)}getParentElement(t){return by(t)}query(t,i,r){return tF(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new sc(r,o)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class Cy{static#e=this.NOOP=new wy}class Dy{}const JQ=1e3,Ey="ng-enter",rf="ng-leave",sf="ng-trigger",af=".ng-trigger",iF="ng-animating",xy=".ng-animating";function Gi(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Iy(parseFloat(n[1]),n[2])}function Iy(e,n){return"s"===n?e*JQ:e}function lf(e,n,t){return e.hasOwnProperty("duration")?e:function t7(e,n,t){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(QR()),{duration:0,delay:0,easing:""};r=Iy(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Iy(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=e;if(!t){let a=!1,l=n.length;r<0&&(n.push(function pQ(){return new b(3100,!1)}()),a=!0),o<0&&(n.push(function mQ(){return new b(3101,!1)}()),a=!0),a&&n.splice(l,0,QR())}return{duration:r,delay:o,easing:s}}(e,n,t)}function yi(e,n,t){n.forEach((i,r)=>{const o=Sy(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function yo(e,n){n.forEach((t,i)=>{const r=Sy(i);e.style[r]=""})}function fc(e){return Array.isArray(e)?1==e.length?e[0]:function Z6(e,n=null){return{type:G.Sequence,steps:e,options:n}}(e):e}const My=new RegExp("{{\\s*(.+?)\\s*}}","g");function oF(e){let n=[];if("string"==typeof e){let t;for(;t=My.exec(e);)n.push(t[1]);My.lastIndex=0}return n}function pc(e,n,t){const i=`${e}`,r=i.replace(My,(o,s)=>{let a=n[s];return null==a&&(t.push(function _Q(){return new b(3003,!1)}()),a=""),a.toString()});return r==i?e:r}const r7=/-+([a-z0-9])/g;function Sy(e){return e.replace(r7,(...n)=>n[1].toUpperCase())}function _n(e,n,t){switch(n.type){case G.Trigger:return e.visitTrigger(n,t);case G.State:return e.visitState(n,t);case G.Transition:return e.visitTransition(n,t);case G.Sequence:return e.visitSequence(n,t);case G.Group:return e.visitGroup(n,t);case G.Animate:return e.visitAnimate(n,t);case G.Keyframes:return e.visitKeyframes(n,t);case G.Style:return e.visitStyle(n,t);case G.Reference:return e.visitReference(n,t);case G.AnimateChild:return e.visitAnimateChild(n,t);case G.AnimateRef:return e.visitAnimateRef(n,t);case G.Query:return e.visitQuery(n,t);case G.Stagger:return e.visitStagger(n,t);default:throw function vQ(){return new b(3004,!1)}()}}function Ty(e,n){return window.getComputedStyle(e)[n]}const a7=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 sF extends Dy{normalizePropertyName(n,t){return Sy(n)}normalizeStyleValue(n,t,i,r){let o="";const s=i.toString().trim();if(a7.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function yQ(){return new b(3005,!1)}())}return s+o}}const cf="*";const df=new Set(["true","1"]),uf=new Set(["false","0"]);function aF(e,n){const t=df.has(e)||uf.has(e),i=df.has(n)||uf.has(n);return(r,o)=>{let s=e==cf||e==r,a=n==cf||n==o;return!s&&t&&"boolean"==typeof r&&(s=r?df.has(e):uf.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?df.has(n):uf.has(n)),s&&a}}const u7=new RegExp("s*:selfs*,?","g");function Ay(e,n,t,i){return new h7(e).build(n,t,i)}class h7{constructor(n){this._driver=n}build(n,t,i){const r=new m7(t);return this._resetContextStyleTimingState(r),_n(this,fc(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function bQ(){return new b(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==G.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,t))}),l.name=c}else if(a.type==G.Transition){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function wQ(){return new b(3007,!1)}())}),{type:G.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{oF(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(function CQ(){return new b(3008,!1)}(0,o.values()))}return{type:G.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=_n(this,fc(n.animation),t),r=function l7(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function c7(e,n,t){if(":"==e[0]){const l=function d7(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function kQ(){return new b(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(aF(r,s)),"<"==o[0]&&(r!=cf||s!=cf)&&n.push(aF(s,r))}(i,t,n)):t.push(e),t}(n.expr,t.errors);return{type:G.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:bo(n.options)}}visitSequence(n,t){return{type:G.Sequence,steps:n.steps.map(i=>_n(this,i,t)),options:bo(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(s=>{t.currentTime=i;const a=_n(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:o,options:bo(n.options)}}visitAnimate(n,t){const i=function _7(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return ky(lf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=ky(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=lf(t,n);return ky(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:Mn({});if(o.type==G.Keyframes)r=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Mn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===zi?i.push(a):t.errors.push(new b(3002,!1)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:G.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function EQ(){return new b(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),t.options&&function i7(e,n,t){const i=n.params||{},r=oF(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function gQ(){return new b(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function xQ(){return new b(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const d=n.steps.map(y=>{const _=this._makeStyleAst(y,t);let x=null!=_.offset?_.offset:function g7(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(_.styles),S=0;return null!=x&&(o++,S=_.offset=x),l=l||S<0||S>1,a=a||S0&&o{const x=h>0?_==f?1:h*_:s[_],S=x*g;t.currentTime=p+m.delay+S,m.duration=S,this._validateStyleAst(y,t),y.offset=x,i.styles.push(y)}),i}visitReference(n,t){return{type:G.Reference,animation:_n(this,fc(n.animation),t),options:bo(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:G.AnimateChild,options:bo(n.options)}}visitAnimateRef(n,t){return{type:G.AnimateRef,animation:this.visitReference(n.animation,t),options:bo(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function f7(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(u7,"")),e=e.replace(/@\*/g,af).replace(/@\w+/g,t=>af+"-"+t.slice(1)).replace(/:animating/g,xy),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,gn(t.collectedStyles,t.currentQuerySelector,new Map);const a=_n(this,fc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:G.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:bo(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function TQ(){return new b(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:lf(n.timings,t.errors,!0);return{type:G.Stagger,animation:_n(this,fc(n.animation),t),timings:i,options:null}}}class m7{constructor(n){this.errors=n,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 bo(e){return e?(e={...e}).params&&(e.params=function p7(e){return e?{...e}:null}(e.params)):e={},e}function ky(e,n,t){return{duration:e,delay:n,easing:t}}function Ry(e,n,t,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class hf{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const b7=new RegExp(":enter","g"),C7=new RegExp(":leave","g");function Fy(e,n,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new D7).buildKeyframes(e,n,t,i,r,o,s,a,l,c)}class D7{buildKeyframes(n,t,i,r,o,s,a,l,c,d=[]){c=c||new hf;const u=new Ny(n,t,c,r,o,d,[]);u.options=l;const h=l.delay?Gi(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),_n(this,i,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===t){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Ry(t,[],[],[],0,h,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Gi(pc(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?Gi(i.duration):null,a=null!=i.delay?Gi(i.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),_n(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==G.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ff);const s=Gi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_n(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Gi(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),_n(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return lf(t.params?pc(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==G.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Gi(r.delay):0;o&&(t.previousNode.type===G.Style||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ff);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,c);o&&u.delayNextStep(o),c===t.element&&(l=u.currentTimeline),_n(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=t.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;_n(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const ff={};class Ny{constructor(n,t,i,r,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ff,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pf(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Gi(i.duration)),null!=i.delay&&(r.delay=Gi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=pc(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new Ny(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=ff,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new E7(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(b7,"."+this._enterClassName)).replace(C7,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function AQ(){return new b(3014,!1)}()),a}}class pf{constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new pf(this._driver,n,t||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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||zi),this._currentKeyframe.set(t,zi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function x7(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)t.set(o,zi)}else for(let[o,s]of r)t.set(o,s)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=pc(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zi),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{"!"===d?n.add(u):d===zi&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});const o=[...n.values()],s=[...t.values()];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Ry(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class E7 extends pf{constructor(n,t,i,r,o,s,a=!1){super(n,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=new Map(n[0]);l.set("offset",0),o.push(l);const c=new Map(n[0]);c.set("offset",dF(a)),o.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let h=new Map(n[u]);const f=h.get("offset");h.set("offset",dF((t+f*i)/s)),o.push(h)}i=s,t=0,r="",n=o}return Ry(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function dF(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function uF(e,n,t,i,r,o,s,a,l,c,d,u,h){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Oy={};class hF{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function I7(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Oy,p=this.buildStyles(i,a&&a.params||Oy,u),m=l&&l.params||Oy,g=this.buildStyles(r,m,u),y=new Set,_=new Map,x=new Map,S="void"===r,B={params:fF(m,h),delay:this.ast.options?.delay},Y=d?[]:Fy(n,t,this.ast.animation,o,s,p,g,B,c,u);let re=0;return Y.forEach(Be=>{re=Math.max(Be.duration+Be.delay,re)}),u.length?uF(t,this._triggerName,i,r,S,p,g,[],[],_,x,re,u):(Y.forEach(Be=>{const bi=Be.element,Js=gn(_,bi,new Set);Be.preStyleProps.forEach(wo=>Js.add(wo));const TF=gn(x,bi,new Set);Be.postStyleProps.forEach(wo=>TF.add(wo)),bi!==t&&y.add(bi)}),uF(t,this._triggerName,i,r,S,p,g,Y,[...y.values()],_,x,re))}}function fF(e,n){const t={...n};return Object.entries(e).forEach(([i,r])=>{null!=r&&(t[i]=r)}),t}class M7{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=fF(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=pc(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class T7{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new M7(r.style,r.options&&r.options.params||{},i))}),pF(this.states,"true","1"),pF(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new hF(n,r,this.states))}),this.fallbackTransition=function A7(e,n){return new hF(e,{type:G.Transition,animation:{type:G.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(s=>s.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function pF(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const k7=new hf;class R7{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],o=Ay(this._driver,t,i,[]);if(i.length)throw function LQ(){return new b(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=KR(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Fy(this._driver,t,o,Ey,rf,new Map,new Map,i,k7,r),s.forEach(d=>{const u=gn(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function VQ(){return new b(3300,!1)}()),s=[]),r.length)throw function BQ(){return new b(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,zi))})});const c=mr(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function jQ(){return new b(3301,!1)}();return t}listen(n,t,i,r){const o=yy(t,"","","");return _y(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const mF="ng-animate-queued",Py="ng-animate-disabled",L7=[],gF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},V7={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qn="__ng_removed";class Ly{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function H7(e){return e??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const mc="void",Vy=new Ly(mc);class B7{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Sn(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function UQ(){return new b(3302,!1)}();if(null==i||0==i.length)throw function HQ(){return new b(3303,!1)}();if(!function z7(e){return"start"==e||"done"==e}(i))throw function zQ(){return new b(3400,!1)}();const o=gn(this._elementListeners,n,[]),s={name:t,phase:i,callback:r};o.push(s);const a=gn(this._engine.statesByElement,n,new Map);return a.has(t)||(Sn(n,sf),Sn(n,sf+"-"+t),a.set(t,Vy)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function $Q(){return new b(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),s=new By(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(Sn(n,sf),Sn(n,sf+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new Ly(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Vy),c.value!==mc&&l.value===c.value){if(!function q7(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r{yo(n,g),yi(n,y)})}return}const h=gn(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Sn(n,mF),s.onStart(()=>{Xs(n,mF)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let y=g.indexOf(s);y>=0&&g.splice(y,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,af,!0);i.forEach(r=>{if(r[Qn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(n,c,mc,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&mr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Vy,d=new Ly(mc),u=new By(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,t);else{const o=n[Qn];(!o||o===gF)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){Sn(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=yy(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,_y(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class j7{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,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=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new B7(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(mf(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!mf(t))return;const o=t[Qn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Sn(n,Py)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Xs(n,Py))}removeNode(n,t,i){if(mf(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[Qn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return mf(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,af,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,xy,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return mr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[Qn];if(t&&t.setForRemoval){if(n[Qn]=gF,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Py)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?mr(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function GQ(){return new b(3402,!1)}()}_flushAnimations(n,t){const i=new hf,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(A=>{d.add(A);const L=this.driver.query(A,".ng-animate-queued",!0);for(let U=0;U{const U=Ey+m++;p.set(L,U),A.forEach(he=>Sn(he,U))});const g=[],y=new Set,_=new Set;for(let A=0;Ay.add(he)):_.add(L))}const x=new Map,S=yF(h,Array.from(y));S.forEach((A,L)=>{const U=rf+m++;x.set(L,U),A.forEach(he=>Sn(he,U))}),n.push(()=>{f.forEach((A,L)=>{const U=p.get(L);A.forEach(he=>Xs(he,U))}),S.forEach((A,L)=>{const U=x.get(L);A.forEach(he=>Xs(he,U))}),g.forEach(A=>{this.processLeaveNode(A)})});const B=[],Y=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(U=>{const he=U.player,_t=U.element;if(B.push(he),this.collectedEnterElements.length){const Rt=_t[Qn];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(U.triggerName)){const Co=Rt.previousTriggersValues.get(U.triggerName),Tn=this.statesByElement.get(U.element);if(Tn&&Tn.has(U.triggerName)){const _f=Tn.get(U.triggerName);_f.value=Co,Tn.set(U.triggerName,_f)}}return void he.destroy()}}const wi=!u||!this.driver.containsElement(u,_t),vn=x.get(_t),gr=p.get(_t),He=this._buildInstruction(U,i,gr,vn,wi);if(He.errors&&He.errors.length)return void Y.push(He);if(wi)return he.onStart(()=>yo(_t,He.fromStyles)),he.onDestroy(()=>yi(_t,He.toStyles)),void r.push(he);if(U.isFallbackTransition)return he.onStart(()=>yo(_t,He.fromStyles)),he.onDestroy(()=>yi(_t,He.toStyles)),void r.push(he);const RF=[];He.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||RF.push(Rt)}),He.timelines=RF,i.append(_t,He.timelines),s.push({instruction:He,player:he,element:_t}),He.queriedElements.forEach(Rt=>gn(a,Rt,[]).push(he)),He.preStyleProps.forEach((Rt,Co)=>{if(Rt.size){let Tn=l.get(Co);Tn||l.set(Co,Tn=new Set),Rt.forEach((_f,zy)=>Tn.add(zy))}}),He.postStyleProps.forEach((Rt,Co)=>{let Tn=c.get(Co);Tn||c.set(Co,Tn=new Set),Rt.forEach((_f,zy)=>Tn.add(zy))})});if(Y.length){const A=[];Y.forEach(L=>{A.push(function qQ(){return new b(3505,!1)}())}),B.forEach(L=>L.destroy()),this.reportError(A)}const re=new Map,Be=new Map;s.forEach(A=>{const L=A.element;i.has(L)&&(Be.set(L,L),this._beforeAnimationBuild(A.player.namespaceId,A.instruction,re))}),r.forEach(A=>{const L=A.element;this._getPreviousPlayers(L,!1,A.namespaceId,A.triggerName,null).forEach(he=>{gn(re,L,[]).push(he),he.destroy()})});const bi=g.filter(A=>wF(A,l,c)),Js=new Map;vF(Js,this.driver,_,c,zi).forEach(A=>{wF(A,l,c)&&bi.push(A)});const wo=new Map;f.forEach((A,L)=>{vF(wo,this.driver,new Set(A),l,"!")}),bi.forEach(A=>{const L=Js.get(A),U=wo.get(A);Js.set(A,new Map([...L?.entries()??[],...U?.entries()??[]]))});const Hy=[],AF=[],kF={};s.forEach(A=>{const{element:L,player:U,instruction:he}=A;if(i.has(L)){if(d.has(L))return U.onDestroy(()=>yi(L,he.toStyles)),U.disabled=!0,U.overrideTotalTime(he.totalTime),void r.push(U);let _t=kF;if(Be.size>1){let vn=L;const gr=[];for(;vn=vn.parentNode;){const He=Be.get(vn);if(He){_t=He;break}gr.push(vn)}gr.forEach(He=>Be.set(He,_t))}const wi=this._buildAnimation(U.namespaceId,he,re,o,wo,Js);if(U.setRealPlayer(wi),_t===kF)Hy.push(U);else{const vn=this.playersByElement.get(_t);vn&&vn.length&&(U.parentPlayer=mr(vn)),r.push(U)}}else yo(L,he.fromStyles),U.onDestroy(()=>yi(L,he.toStyles)),AF.push(U),d.has(L)&&r.push(U)}),AF.forEach(A=>{const L=o.get(A.element);if(L&&L.length){const U=mr(L);A.setRealPlayer(U)}}),r.forEach(A=>{A.parentPlayer?A.syncPlayerEvents(A.parentPlayer):A.destroy()});for(let A=0;A!wi.destroyed);_t.length?$7(this,L,_t):this.processLeaveNode(L)}return g.length=0,Hy.forEach(A=>{this.players.push(A),A.onDone(()=>{A.destroy();const L=this.players.indexOf(A);this.players.splice(L,1)}),A.play()}),Hy}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==mc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,d=c!==o,u=gn(i,c,[]);this._getPreviousPlayers(c,d,s,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}yo(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,h=t.timelines.map(p=>{const m=p.element;d.add(m);const g=m[Qn];if(g&&g.removedBeforeQueried)return new sc(p.duration,p.delay);const y=m!==l,_=function G7(e){const n=[];return bF(e,n),n}((i.get(m)||L7).map(re=>re.getRealPlayer())).filter(re=>!!re.element&&re.element===m),x=o.get(m),S=s.get(m),B=KR(this._normalizer,p.keyframes,x,S),Y=this._buildPlayer(p,B,_);if(p.subTimeline&&r&&u.add(m),y){const re=new By(n,a,m);re.setRealPlayer(Y),c.push(re)}return Y});c.forEach(p=>{gn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function U7(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>Sn(p,iF));const f=mr(h);return f.onDestroy(()=>{d.forEach(p=>Xs(p,iF)),yi(l,t.toStyles)}),u.forEach(p=>{gn(r,p,[]).push(f)}),f}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new sc(n.duration,n.delay)}}class By{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new sc,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(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>_y(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){gn(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function mf(e){return e&&1===e.nodeType}function _F(e,n){const t=e.style.display;return e.style.display=n??"none",t}function vF(e,n,t,i,r){const o=[];t.forEach(l=>o.push(_F(l)));const s=[];i.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=n.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[Qn]=V7,s.push(c))}),e.set(c,d)});let a=0;return t.forEach(l=>_F(l,o[a++])),s}function yF(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Sn(e,n){e.classList?.add(n)}function Xs(e,n){e.classList?.remove(n)}function $7(e,n,t){mr(t).onDone(()=>e.processLeaveNode(n))}function bF(e,n){for(let t=0;tr.add(o)):n.set(e,i),t.delete(e),!0}class gc{constructor(n,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new j7(n.body,t,i),this._timelineEngine=new R7(n.body,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=Ay(this._driver,o,l,[]);if(l.length)throw function OQ(){return new b(3404,!1)}();a=function S7(e,n,t){return new T7(e,n,t)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,s]=XR(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=XR(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class _c{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,i){this._element=n,this._startStyles=t,this._endStyles=i,this._state=0;let r=_c.initialStylesByElement.get(n);r||_c.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&yi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(yi(this._element,this._initialStyles),this._endStyles&&(yi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_c.initialStylesByElement.delete(this._element),this._startStyles&&(yo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yo(this._element,this._endStyles),this._endStyles=null),yi(this._element,this._initialStyles),this._state=3)}}function jy(e){let n=null;return e.forEach((t,i)=>{(function Z7(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class CF{constructor(n,t,i,r){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:Ty(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class DF{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return eF(n,t)}getParentElement(n){return by(n)}query(n,t,i){return tF(n,t,i)}computeStyle(n,t,i){return Ty(n,t)}animate(n,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(f=>f instanceof CF);(function o7(e,n){return 0===e||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let u=function n7(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(f=>new Map(f));u=function s7(e,n,t){if(t.size&&n.length){let i=n[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,Ty(e,a)))}}return n}(n,u,c);const h=function W7(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=jy(n[0]),n.length>1&&(i=jy(n[n.length-1]))):n instanceof Map&&(t=jy(n)),t||i?new _c(e,t,i):null}(n,u);return new CF(n,u,l,h)}}const EF="@.disabled";class xF{constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==EF?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class Y7 extends xF{constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==EF?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function Q7(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function K7(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}class X7{constructor(n,t,i){this.delegate=n,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,t){const r=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const c=this._rendererCache;let d=c.get(r);return d||(d=new xF("",r,this.engine,()=>c.delete(r)),c.set(r,d)),d}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return t.data.animation.forEach(a),new Y7(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,i){if(n>=0&&nt(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}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()}}const IF=[{provide:Dy,useFactory:function eK(){return new sF}},{provide:gc,useClass:(()=>{class e extends gc{constructor(t,i,r){super(t,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Cy),D(Dy))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})()},{provide:Vd,useFactory:function tK(e,n,t){return new X7(e,n,t)},deps:[x_,gc,$]}],Uy=[{provide:Cy,useFactory:()=>new DF},{provide:Ti,useValue:"BrowserAnimations"},...IF],MF=[{provide:Cy,useClass:wy},{provide:Ti,useValue:"NoopAnimations"},...IF];let nK=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?MF:Uy}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:Uy,imports:[oS]})}return e})(),iK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})(),rK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,iK,mR]})}return e})(),sK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,lc,lc,zt]})}return e})(),aK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e,bootstrap:[fQ]});static#n=this.\u0275inj=Ee({providers:[xW(IW())],imports:[oS,XY,nK,rK,qW,T9,sK,AZ,QY.forRoot({loader:Ql}),iQ,hQ]})}return e})();u8().bootstrapModule(aK).catch(e=>console.error(e))}},ea=>{ea(ea.s=345)}]); \ No newline at end of file +"use strict";(self.webpackChunkwebui=self.webpackChunkwebui||[]).push([[792],{345:()=>{let We=null,Do=!1,Eo=1;const An=Symbol("SIGNAL");function X(e){const n=We;return We=e,n}const ta={version:0,lastCleanEpoch: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:()=>{},consumerOnSignalRead:()=>{}};function $y(e){if((!na(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Eo)){if(!e.producerMustRecompute(e)&&!wf(e))return e.dirty=!1,void(e.lastCleanEpoch=Eo);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Eo}}function Wy(e){e.dirty=!0,function Gy(e){if(void 0===e.liveConsumerNode)return;const n=Do;Do=!0;try{for(const t of e.liveConsumerNode)t.dirty||Wy(t)}finally{Do=n}}(e),e.consumerMarkedDirty?.(e)}function vc(e){return e&&(e.nextProducerIndex=0),X(e)}function bf(e,n){if(X(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(na(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function wf(e){bc(e);for(let n=0;n0}function bc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ky=function LF(){throw new Error};const xf=()=>{},$F={...ta,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:xf};function fe(e){return"function"==typeof e}function If(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Mf=If(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Dc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class ze{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(fe(i))try{i()}catch(o){n=o instanceof Mf?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{nb(o)}catch(s){n=n??[],s instanceof Mf?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Mf(n)}}add(n){var t;if(n&&n!==this)if(this.closed)nb(n);else{if(n instanceof ze){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Dc(t,n)}remove(n){const{_finalizers:t}=this;t&&Dc(t,n),n instanceof ze&&n._removeParent(this)}}ze.EMPTY=(()=>{const e=new ze;return e.closed=!0,e})();const eb=ze.EMPTY;function tb(e){return e instanceof ze||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function nb(e){fe(e)?e():e.unsubscribe()}const _r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ec={setTimeout(e,n,...t){const{delegate:i}=Ec;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Ec;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ib(e){Ec.setTimeout(()=>{const{onUnhandledError:n}=_r;if(!n)throw e;n(e)})}function Sf(){}const GF=Tf("C",void 0,void 0);function Tf(e,n,t){return{kind:e,value:n,error:t}}let vr=null;function xc(e){if(_r.useDeprecatedSynchronousErrorHandling){const n=!vr;if(n&&(vr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=vr;if(vr=null,t)throw i}}else e()}class Af extends ze{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,tb(n)&&n.add(this)):this.destination=XF}static create(n,t,i){return new ia(n,t,i)}next(n){this.isStopped?Rf(function WF(e){return Tf("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Rf(function qF(e){return Tf("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Rf(GF,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const YF=Function.prototype.bind;function kf(e,n){return YF.call(e,n)}class QF{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Ic(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Ic(i)}else Ic(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Ic(t)}}}class ia extends Af{constructor(n,t,i){let r;if(super(),fe(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&_r.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&kf(n.next,o),error:n.error&&kf(n.error,o),complete:n.complete&&kf(n.complete,o)}):r=n}this.destination=new QF(r)}}function Ic(e){_r.useDeprecatedSynchronousErrorHandling?function ZF(e){_r.useDeprecatedSynchronousErrorHandling&&vr&&(vr.errorThrown=!0,vr.error=e)}(e):ib(e)}function Rf(e,n){const{onStoppedNotification:t}=_r;t&&Ec.setTimeout(()=>t(e,n))}const XF={closed:!0,next:Sf,error:function KF(e){throw e},complete:Sf},Ff="function"==typeof Symbol&&Symbol.observable||"@@observable";function qi(e){return e}function rb(e){return 0===e.length?qi:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let Ne=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function tN(e){return e&&e instanceof Af||function eN(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(e)&&tb(e)}(t)?t:new ia(t,i,r);return xc(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=ob(i))((r,o)=>{const s=new ia({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[Ff](){return this}pipe(...t){return rb(t)(this)}toPromise(t){return new(t=ob(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function ob(e){var n;return null!==(n=e??_r.Promise)&&void 0!==n?n:Promise}const nN=If(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Q=(()=>{class e extends Ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new sb(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new nN}next(t){xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?eb:(this.currentObservers=null,o.push(t),new ze(()=>{this.currentObservers=null,Dc(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new Ne;return t.source=this,t}}return e.create=(n,t)=>new sb(n,t),e})();class sb extends Q{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:eb}}class Jt extends Q{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function ab(e){return fe(e?.lift)}function Ze(e){return n=>{if(ab(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function je(e,n,t,i,r){return new iN(e,n,t,i,r)}class iN extends Af{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Z(e,n){return Ze((t,i)=>{let r=0;t.subscribe(je(i,o=>{i.next(e.call(n,o,r++))}))})}const lb="https://g.co/ng/security#xss";class b extends Error{constructor(n,t){super(function xo(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Ci(e){return{toString:e}.toString()}const Mo="__parameters__";function To(e,n,t){return Ci(()=>{const i=function Nf(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(Mo)?l[Mo]:Object.defineProperty(l,Mo,{value:[]})[Mo];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Fe=globalThis;function ye(e){for(let n in e)if(e[n]===ye)return n;throw Error("Could not find renamed property on target object.")}function rN(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function at(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(at).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Of(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const oN=ye({__forward_ref__:ye});function De(e){return e.__forward_ref__=De,e.toString=function(){return at(this())},e}function j(e){return Sc(e)?e():e}function Sc(e){return"function"==typeof e&&e.hasOwnProperty(oN)&&e.__forward_ref__===De}function M(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ee(e){return{providers:e.providers||[],imports:e.imports||[]}}function Tc(e){return hb(e,kc)||hb(e,fb)}function hb(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ac(e){return e&&(e.hasOwnProperty(Pf)||e.hasOwnProperty(uN))?e[Pf]:null}const kc=ye({\u0275prov:ye}),Pf=ye({\u0275inj:ye}),fb=ye({ngInjectableDef:ye}),uN=ye({ngInjectorDef:ye});class E{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=M({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Uf(e){return e&&!!e.\u0275providers}const ra=ye({\u0275cmp:ye}),Hf=ye({\u0275dir:ye}),zf=ye({\u0275pipe:ye}),mb=ye({\u0275mod:ye}),Di=ye({\u0275fac:ye}),oa=ye({__NG_ELEMENT_ID__:ye}),gb=ye({__NG_ENV_ID__:ye});function q(e){return"string"==typeof e?e:null==e?"":String(e)}function $f(e,n){throw new b(-201,!1)}var ne=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}(ne||{});let Gf;function _b(){return Gf}function Gt(e){const n=Gf;return Gf=e,n}function vb(e,n,t){const i=Tc(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ne.Optional?null:void 0!==n?n:void $f()}const sa={},qf="__NG_DI_FLAG__",Rc="ngTempTokenPath",_N=/\n/gm,yb="__source";let Ao;function Zi(e){const n=Ao;return Ao=e,n}function bN(e,n=ne.Default){if(void 0===Ao)throw new b(-203,!1);return null===Ao?vb(e,void 0,n):Ao.get(e,n&ne.Optional?null:void 0,n)}function D(e,n=ne.Default){return(_b()||bN)(j(e),n)}function w(e,n=ne.Default){return D(e,Fc(n))}function Fc(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wf(e){const n=[];for(let t=0;tArray.isArray(t)?ko(t,n):n(t))}function wb(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Nc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function nn(e,n,t){let i=Ro(e,n);return i>=0?e[1|i]=t:(i=~i,function Cb(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Yf(e,n){const t=Ro(e,n);if(t>=0)return e[1|t]}function Ro(e,n){return function Db(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<n?r=o:i=o+1}return~(r<n){s=o-1;break}}}for(;o-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&i&&c!==u){if(Rn(i))return!1;s=!0}}}}else{if(!s&&!Rn(i)&&!Rn(l))return!1;if(s&&Rn(l))continue;s=!1,i=l|1&i}}return Rn(i)||s}function Rn(e){return!(1&e)}function RN(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Rn(s)&&(n+=Ab(o,r),r=""),i=s,o=o||!Rn(i);t++}return""!==r&&(n+=Ab(o,r)),n}function vt(e){return Ci(()=>{const n=Rb(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Lc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kn.Emulated,styles:e.styles||ce,_:null,schemas:e.schemas||null,tView:null,id:""};Fb(t);const i=e.dependencies;return t.directiveDefs=Vc(i,!1),t.pipeDefs=Vc(i,!0),t.id=function zN(e){let n=0;const t=[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 r of t)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function jN(e){return ee(e)||lt(e)}function UN(e){return null!==e}function Se(e){return Ci(()=>({type:e.type,bootstrap:e.bootstrap||ce,declarations:e.declarations||ce,imports:e.imports||ce,exports:e.exports||ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kb(e,n){if(null==e)return Kn;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,s,a=Yi.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(t[o]=a!==Yi.None?[i,a]:i,n[o]=s):t[o]=i}return t}function R(e){return Ci(()=>{const n=Rb(e);return Fb(n),n})}function Dt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ee(e){return e[ra]||null}function lt(e){return e[Hf]||null}function yt(e){return e[zf]||null}function Et(e,n){const t=e[mb]||null;if(!t&&!0===n)throw new Error(`Type ${at(e)} does not have '\u0275mod' property.`);return t}function Rb(e){const n={};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:n,inputTransforms:null,inputConfig:e.inputs||Kn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ce,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:kb(e.inputs,n),outputs:kb(e.outputs),debugInfo:null}}function Fb(e){e.features?.forEach(n=>n(e))}function Vc(e,n){if(!e)return null;const t=n?yt:jN;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(UN)}function $N(...e){return{\u0275providers:Jf(0,e),\u0275fromNgModule:!0}}function Jf(e,...n){const t=[],i=new Set;let r;const o=s=>{t.push(s)};return ko(n,s=>{const a=s;Bc(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Nb(r,o),t}function Nb(e,n){for(let t=0;t{n(o,i)})}}function Bc(e,n,t,i){if(!(e=j(e)))return!1;let r=null,o=Ac(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=Ac(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Bc(c,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{ko(o.imports,d=>{Bc(d,n,t,i)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Nb(c,n)}if(!a){const c=br(r)||(()=>new r);n({provide:r,useFactory:c,deps:ce},r),n({provide:Qf,useValue:r,multi:!0},r),n({provide:Xn,useValue:()=>D(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=e;ep(l,d=>{n(d,c)})}}}return r!==e&&void 0!==e.providers}function ep(e,n){for(let t of e)Uf(t)&&(t=t.\u0275providers),Array.isArray(t)?ep(t,n):n(t)}const GN=ye({provide:String,useValue:ye});function tp(e){return null!==e&&"object"==typeof e&&GN in e}function wr(e){return"function"==typeof e}const np=new E(""),jc={},WN={};let ip;function Uc(){return void 0===ip&&(ip=new Pc),ip}class xt{}class Fo extends xt{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,op(n,s=>this.processProvider(s)),this.records.set(Eb,No(void 0,this)),r.has("environment")&&this.records.set(xt,No(void 0,this));const o=this.records.get(np);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Qf,ce,ne.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=X(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),X(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Zi(this),i=Gt(void 0);try{return n()}finally{Zi(t),Gt(i)}}get(n,t=sa,i=ne.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(gb))return n[gb](this);i=Fc(i);const o=Zi(this),s=Gt(void 0);try{if(!(i&ne.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function XN(e){return"function"==typeof e||"object"==typeof e&&e instanceof E}(n)&&Tc(n);l=c&&this.injectableDefInScope(c)?No(rp(n),jc):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&ne.Self?Uc():this.parent).get(n,t=i&ne.Optional&&t===sa?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Rc]=a[Rc]||[]).unshift(at(n)),o)throw a;return function CN(e,n,t,i){const r=e[Rc];throw n[yb]&&r.unshift(n[yb]),e.message=function DN(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=at(n);if(Array.isArray(n))r=n.map(at).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):at(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(_N,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[Rc]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Gt(s),Zi(o)}}resolveInjectorInitializers(){const n=X(null),t=Zi(this),i=Gt(void 0);try{const o=this.get(Xn,ce,ne.Self);for(const s of o)s()}finally{Zi(t),Gt(i),X(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(at(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(n){let t=wr(n=j(n))?n:j(n&&n.provide);const i=function YN(e){return tp(e)?No(void 0,e.useValue):No(Lb(e),jc)}(n);if(!wr(n)&&!0===n.multi){let r=this.records.get(t);r||(r=No(void 0,jc,!0),r.factory=()=>Wf(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=X(null);try{return t.value===jc&&(t.value=WN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function KN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{X(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=j(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function rp(e){const n=Tc(e),t=null!==n?n.factory:br(e);if(null!==t)return t;if(e instanceof E)throw new b(204,!1);if(e instanceof Function)return function ZN(e){if(e.length>0)throw new b(204,!1);const t=function dN(e){return e&&(e[kc]||e[fb])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new b(204,!1)}function Lb(e,n,t){let i;if(wr(e)){const r=j(e);return br(r)||rp(r)}if(tp(e))i=()=>j(e.useValue);else if(function Pb(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Wf(e.deps||[]));else if(function Ob(e){return!(!e||!e.useExisting)}(e))i=()=>D(j(e.useExisting));else{const r=j(e&&(e.useClass||e.provide));if(!function QN(e){return!!e.deps}(e))return br(r)||rp(r);i=()=>new r(...Wf(e.deps))}return i}function No(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function op(e,n){for(const t of e)Array.isArray(t)?op(t,n):t&&Uf(t)?op(t.\u0275providers,n):n(t)}function Jn(e,n){e instanceof Fo&&e.assertNotDestroyed();const i=Zi(e),r=Gt(void 0);try{return n()}finally{Zi(i),Gt(r)}}function Vb(){return void 0!==_b()||null!=function yN(){return Ao}()}function sp(e){if(!Vb())throw new b(-203,!1)}const Oe=0,I=1,O=2,tt=3,Fn=4,bt=5,Ft=6,Po=7,Te=8,nt=9,ei=10,H=11,ha=12,jb=13,Lo=14,Pe=15,Cr=16,Vo=17,Ei=18,Bo=19,Ub=20,Ki=21,zc=22,yn=23,k=25,lp=1,ti=7,jo=9,Ye=10;var Gc=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Gc||{});function dt(e){return Array.isArray(e)&&"object"==typeof e[lp]}function It(e){return Array.isArray(e)&&!0===e[lp]}function cp(e){return!!(4&e.flags)}function Dr(e){return e.componentOffset>-1}function qc(e){return!(1&~e.flags)}function Nn(e){return!!e.template}function pa(e){return!!(512&e[O])}class dO{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function qb(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}function Wt(){return Wb}function Wb(e){return e.type.prototype.ngOnChanges&&(e.setInput=hO),uO}function uO(){const e=Yb(this),n=e?.current;if(n){const t=e.previous;if(t===Kn)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function hO(e,n,t,i,r){const o=this.declaredInputs[i],s=Yb(e)||function fO(e,n){return e[Zb]=n}(e,{previous:Kn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new dO(c&&c.currentValue,t,l===Kn),qb(e,n,r,t)}Wt.ngInherit=!0;const Zb="__ngSimpleChanges__";function Yb(e){return e[Zb]||null}const ni=function(e,n,t){},Qb="svg";function de(e){for(;Array.isArray(e);)e=e[Oe];return e}function ma(e,n){return de(n[e])}function Nt(e,n){return de(n[e.index])}function ga(e,n){return e.data[n]}function rn(e,n){const t=n[e];return dt(t)?t:t[Oe]}function pp(e){return!(128&~e[O])}function bn(e,n){return null==n?null:e[n]}function Xb(e){e[Vo]=0}function Jb(e){1024&e[O]||(e[O]|=1024,pp(e)&&Zc(e))}function Wc(e){return!!(9216&e[O]||e[yn]?.dirty)}function mp(e){e[ei].changeDetectionScheduler?.notify(8),64&e[O]&&(e[O]|=1024),Wc(e)&&Zc(e)}function Zc(e){e[ei].changeDetectionScheduler?.notify(0);let n=xi(e);for(;null!==n&&!(8192&n[O])&&(n[O]|=8192,pp(n));)n=xi(n)}function Yc(e,n){if(!(256&~e[O]))throw new b(911,!1);null===e[Ki]&&(e[Ki]=[]),e[Ki].push(n)}function xi(e){const n=e[tt];return It(n)?n[tt]:n}const z={lFrame:hw(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let tw=!1;function nw(){return z.bindingsEnabled}function xr(){return null!==z.skipHydrationRootTNode}function C(){return z.lFrame.lView}function J(){return z.lFrame.tView}function Kc(e){return z.lFrame.contextLView=e,e[Te]}function Xc(e){return z.lFrame.contextLView=null,e}function be(){let e=iw();for(;null!==e&&64===e.type;)e=e.parent;return e}function iw(){return z.lFrame.currentTNode}function On(e,n){const t=z.lFrame;t.currentTNode=e,t.isParent=n}function vp(){return z.lFrame.isParent}function yp(){z.lFrame.isParent=!1}function sw(){return tw}function aw(e){tw=e}function Pn(){return z.lFrame.bindingIndex++}function Mi(e){const n=z.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function MO(e,n){const t=z.lFrame;t.bindingIndex=t.bindingRootIndex=e,bp(n)}function bp(e){z.lFrame.currentDirectiveIndex=e}function Cp(){return z.lFrame.currentQueryIndex}function Jc(e){z.lFrame.currentQueryIndex=e}function TO(e){const n=e[I];return 2===n.type?n.declTNode:1===n.type?e[bt]:null}function dw(e,n,t){if(t&ne.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&ne.Host||(r=TO(o),null===r||(o=o[Lo],10&r.type))););if(null===r)return!1;n=r,e=o}const i=z.lFrame=uw();return i.currentTNode=n,i.lView=e,!0}function Dp(e){const n=uw(),t=e[I];z.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function uw(){const e=z.lFrame,n=null===e?null:e.child;return null===n?hw(e):n}function hw(e){const n={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=n),n}function fw(){const e=z.lFrame;return z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pw=fw;function Ep(){const e=fw();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 wt(){return z.lFrame.selectedIndex}function Ir(e){z.lFrame.selectedIndex=e}function Ae(){const e=z.lFrame;return ga(e.tView,e.selectedIndex)}let _w=!0;function va(){return _w}function ii(e){_w=e}function ed(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[Vo]+=65536),(a>14>16&&(3&e[O])===n&&(e[O]+=16384,yw(a,o)):yw(a,o)}const Uo=-1;class ya{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}const Mp={};class Mr{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=Fc(i);const r=this.injector.get(n,Mp,i);return r!==Mp||t===Mp?r:this.parentInjector.get(n,t,i)}}function Sp(e){return e!==Uo}function ba(e){return 32767&e}function wa(e,n){let t=function jO(e){return e>>16}(e),i=n;for(;t>0;)i=i[Lo],t--;return i}let Tp=!0;function id(e){const n=Tp;return Tp=e,n}const ww=255,Cw=5;let HO=0;const ri={};function rd(e,n){const t=Dw(e,n);if(-1!==t)return t;const i=n[I];i.firstCreatePass&&(e.injectorIndex=n.length,Ap(i.data,e),Ap(n,null),Ap(i.blueprint,null));const r=od(e,n),o=e.injectorIndex;if(Sp(r)){const s=ba(r),a=wa(r,n),l=a[I].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function Ap(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Dw(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function od(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=Aw(r),null===i)return Uo;if(t++,r=r[Lo],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return Uo}function kp(e,n,t){!function zO(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(oa)&&(i=t[oa]),null==i&&(i=t[oa]=HO++);const r=i&ww;n.data[e+(r>>Cw)]|=1<=0?n&ww:WO:n}(t);if("function"==typeof o){if(!dw(n,e,i))return i&ne.Host?Ew(r,0,i):xw(n,t,i,r);try{let s;if(s=o(i),null!=s||i&ne.Optional)return s;$f()}finally{pw()}}else if("number"==typeof o){let s=null,a=Dw(e,n),l=Uo,c=i&ne.Host?n[Pe][bt]:null;for((-1===a||i&ne.SkipSelf)&&(l=-1===a?od(e,n):n[a+8],l!==Uo&&Tw(i,!1)?(s=n[I],a=ba(l),n=wa(l,n)):a=-1);-1!==a;){const d=n[I];if(Sw(o,a,d.data)){const u=GO(a,n,t,s,i,c);if(u!==ri)return u}l=n[a+8],l!==Uo&&Tw(i,n[I].data[a+8]===c)&&Sw(o,a,n)?(s=d,a=ba(l),n=wa(l,n)):a=-1}}return r}function GO(e,n,t,i,r,o){const s=n[I],a=s.data[e+8],d=sd(a,s,t,null==i?Dr(a)&&Tp:i!=s&&!!(3&a.type),r&ne.Host&&o===a);return null!==d?Sr(n,s,d,a):ri}function sd(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,d=o>>20,h=r?a+d:e.directiveEnd;for(let f=i?a:a+d;f=l&&p.type===t)return f}if(r){const f=s[l];if(f&&Nn(f)&&f.type===t)return l}return null}function Sr(e,n,t,i){let r=e[t];const o=n.data;if(function PO(e){return e instanceof ya}(r)){const s=r;s.resolving&&function pN(e,n){throw n&&n.join(" > "),new b(-200,e)}(function ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():q(e)}(o[t]));const a=id(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Gt(s.injectImpl):null;dw(e,i,ne.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function NO(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Wb(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Gt(c),id(a),s.resolving=!1,pw()}}return r}function Sw(e,n,t){return!!(t[n+(e>>Cw)]&1<{const n=e.prototype.constructor,t=n[Di]||Rp(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Di]||Rp(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Rp(e){return Sc(e)?()=>{const n=Rp(j(e));return n&&n()}:br(e)}function Aw(e){const n=e[I],t=n.type;return 2===t?n.declTNode:1===t?e[bt]:null}function Tr(e){return function $O(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;rD(Eb)});static#i=this.__NG_ELEMENT_ID__=-1}new E("").__NG_ELEMENT_ID__=e=>{const n=be();if(null===n)throw new b(204,!1);if(2&n.type)return n.value;if(e&ne.Optional)return null;throw new b(204,!1)};function Np(e){return e.ngOriginalError}const Vw=!0;let Ca=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=rP;static#t=this.__NG_ENV_ID__=t=>t}return e})();class iP extends Ca{constructor(n){super(),this._lView=n}onDestroy(n){return Yc(this._lView,n),()=>function gp(e,n){if(null===e[Ki])return;const t=e[Ki].indexOf(n);-1!==t&&e[Ki].splice(t,1)}(this._lView,n)}}function rP(){return new iP(C())}let Si=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Jt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();const le=class oP extends Q{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Vb()&&(this.destroyRef=w(Ca,{optional:!0})??void 0,this.pendingTasks=w(Si,{optional:!0})??void 0)}emit(n){const t=X(null);try{super.next(n)}finally{X(t)}}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof ze&&n.add(a),a}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function ld(...e){}function Bw(e){let n,t;function i(){e=ld;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),i()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),i()})),()=>i()}function jw(e){return queueMicrotask(()=>e()),()=>{e=ld}}const Op="isAngularZone",cd=Op+"_ID";let sP=0;class ${constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=Vw}=n;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,function cP(e){const n=()=>{!function lP(e){function n(){Bw(()=>{e.callbackScheduled=!1,Lp(e),e.isCheckStableRunning=!0,Pp(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),Lp(e))}(e)},t=sP++;e._inner=e._inner.fork({name:"angular",properties:{[Op]:!0,[cd]:t,[cd+t]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(function dP(e){return zw(e,"__ignore_ng_zone__")}(l))return i.invokeTask(o,s,a,l);try{return Uw(e),i.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),Hw(e)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return Uw(e),i.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function uP(e){return zw(e,"__scheduler_tick__")}(l)&&n(),Hw(e)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Lp(e),Pp(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Op)}static assertInAngularZone(){if(!$.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if($.isInAngularZone())throw new b(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,aP,ld,ld);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const aP={};function Pp(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 Lp(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Uw(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hw(e){e._nesting--,Pp(e)}class Vp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}function zw(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class on{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Np(n);for(;t&&Np(t);)t=Np(t);return t||null}}const fP=new E("",{providedIn:"root",factory:()=>{const e=w($),n=w(on);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function pP(){return $o(be(),C())}function $o(e,n){return new ue(Nt(e,n))}let ue=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=pP}return e})();function Gw(e){return e instanceof ue?e.nativeElement:e}function mP(){return this._results[Symbol.iterator]()}class Ar{static#e=Symbol.iterator;get changes(){return this._changes??=new le}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=Ar.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=mP)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const i=function qt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function MN(e,n,t){if(e.length!==n.length)return!1;for(let i=0;iPP}),PP="ng",uC=new E(""),Ln=new E("",{providedIn:"platform",factory:()=>"unknown"}),Ti=new E(""),$p=new E("",{providedIn:"root",factory:()=>function Xi(){if(void 0!==zp)return zp;if(typeof document<"u")return document;throw new b(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let hC=()=>null;function Kp(e,n,t=!1){return hC(e,n,t)}const bC=new E("",{providedIn:"root",factory:()=>!1});let vd,yd;function Zo(e){return function nm(){if(void 0===vd&&(vd=null,Fe.trustedTypes))try{vd=Fe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vd}()?.createHTML(e)||e}function xC(e){return function im(){if(void 0===yd&&(yd=null,Fe.trustedTypes))try{yd=Fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return yd}()?.createScriptURL(e)||e}class Fr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${lb})`}}class QP extends Fr{getTypeName(){return"HTML"}}class KP extends Fr{getTypeName(){return"Style"}}class XP extends Fr{getTypeName(){return"Script"}}class JP extends Fr{getTypeName(){return"URL"}}class e1 extends Fr{getTypeName(){return"ResourceURL"}}function sn(e){return e instanceof Fr?e.changingThisBreaksApplicationSecurity:e}function oi(e,n){const t=function t1(e){return e instanceof Fr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${lb})`)}return t===n}class l1{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Zo(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class c1{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Zo(n),t}}const u1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bd(e){return(e=String(e)).match(u1)?e:"unsafe:"+e}function Ai(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ka(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const MC=Ai("area,br,col,hr,img,wbr"),SC=Ai("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),TC=Ai("rp,rt"),rm=ka(MC,ka(SC,Ai("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")),ka(TC,Ai("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")),ka(TC,SC)),om=Ai("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),AC=ka(om,Ai("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"),Ai("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")),h1=Ai("script,style,template");class f1{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)r.push(t),t=g1(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=m1(t);if(o){t=o;break}t=r.pop()}return this.buf.join("")}startElement(n){const t=kC(n).toLowerCase();if(!rm.hasOwnProperty(t))return this.sanitizedSomething=!0,!h1.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const t=kC(n).toLowerCase();rm.hasOwnProperty(t)&&!MC.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(FC(n))}}function m1(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw RC(n);return n}function g1(e){const n=e.firstChild;if(n&&function p1(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw RC(n);return n}function kC(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function RC(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const _1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v1=/([^\#-~ |!])/g;function FC(e){return e.replace(/&/g,"&").replace(_1,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(v1,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let wd;function NC(e,n){let t=null;try{wd=wd||function IC(e){const n=new c1(e);return function d1(){try{return!!(new window.DOMParser).parseFromString(Zo(""),"text/html")}catch{return!1}}()?new l1(n):n}(e);let i=n?String(n):"";t=wd.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=wd.getInertBodyElement(i)}while(i!==o);return Zo((new f1).sanitizeChildren(sm(t)||t))}finally{if(t){const i=sm(t)||t;for(;i.firstChild;)i.firstChild.remove()}}}function sm(e){return"content"in e&&function y1(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mt=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}(mt||{});function Yo(e){const n=Ra();return n?n.sanitize(mt.URL,e)||"":oi(e,"URL")?sn(e):bd(q(e))}function OC(e){const n=Ra();if(n)return xC(n.sanitize(mt.RESOURCE_URL,e)||"");if(oi(e,"ResourceURL"))return xC(sn(e));throw new b(904,!1)}function Ra(){const e=C();return e&&e[ei].sanitizer}const I1=/^>|^->||--!>|)/g,S1="\u200b$1\u200b";function an(e){return e instanceof Function?e():e}function ln(e){return"browser"===(e??w(Ge)).get(Ln)}var Ji=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ji||{});let cm;function dm(e,n){return cm(e,n)}function Ko(e,n,t,i,r){if(null!=i){let o,s=!1;It(i)?o=i:dt(i)&&(s=!0,i=i[Oe]);const a=de(i);0===e&&null!==t?null==r?YC(n,t,a):Nr(n,t,a,r||null,!0):1===e&&null!==t?Nr(n,t,a,r||null,!0):2===e?function Na(e,n,t){e.removeChild(null,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function Z1(e,n,t,i,r){const o=t[ti];o!==de(t)&&Ko(n,e,i,o,r);for(let a=Ye;an.replace(M1,S1))}(n))}function Ed(e,n,t){return e.createElement(n,t)}function qC(e,n){n[ei].changeDetectionScheduler?.notify(9),Md(e,n,n[H],2,null,null)}function WC(e,n){const t=e[jo],i=n[tt];(dt(i)||n[Pe]!==i[tt][Pe])&&(e[O]|=Gc.HasTransplantedViews),null===t?e[jo]=[n]:t.push(n)}function fm(e,n){const t=e[jo],i=t.indexOf(n);t.splice(i,1)}function Fa(e,n){if(e.length<=Ye)return;const t=Ye+n,i=e[t];if(i){const r=i[Cr];null!==r&&r!==e&&fm(r,i),n>0&&(e[t-1][Fn]=i[Fn]);const o=Nc(e,Ye+n);!function j1(e,n){qC(e,n),n[Oe]=null,n[bt]=null}(i[I],i);const s=o[Ei];null!==s&&s.detachView(o[I]),i[tt]=null,i[Fn]=null,i[O]&=-129}return i}function xd(e,n){if(!(256&n[O])){const t=n[H];t.destroyNode&&Md(e,n,t,3,null,null),function H1(e){let n=e[ha];if(!n)return pm(e[I],e);for(;n;){let t=null;if(dt(n))t=n[ha];else{const i=n[Ye];i&&(t=i)}if(!t){for(;n&&!n[Fn]&&n!==e;)dt(n)&&pm(n[I],n),n=n[tt];null===n&&(n=e),dt(n)&&pm(n[I],n),t=n&&n[Fn]}n=t}}(n)}}function pm(e,n){if(256&n[O])return;const t=X(null);try{n[O]&=-129,n[O]|=256,n[yn]&&Cf(n[yn]),function G1(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[s]():i[-s].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[Po]=null);const r=n[Ki];if(null!==r){n[Ki]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===kn.None||o===kn.Emulated)return null}return Nt(i,t)}}(e,n.parent,t)}function Nr(e,n,t,i,r){e.insertBefore(n,t,i,r)}function YC(e,n,t){e.appendChild(n,t)}function QC(e,n,t,i,r){null!==i?Nr(e,n,t,i,r):YC(e,n,t)}function gm(e,n){return e.parentNode(n)}function KC(e,n,t){return JC(e,n,t)}let _m,JC=function XC(e,n,t){return 40&e.type?Nt(e,t):null};function Id(e,n,t,i){const r=mm(e,i,n),o=n[H],a=KC(i.parent||n[bt],i,n);if(null!=r)if(Array.isArray(t))for(let l=0;lk&&sD(e,n,k,!1),ni(s?2:0,r),t(i,r)}finally{Ir(o),ni(s?3:1,r)}}function Cm(e,n,t){if(cp(n)){const i=X(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function uD(e,n,t,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,l=Yi.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(null!==r){if(!r.hasOwnProperty(o))continue;c=r[o]}0===e?hD(i,t,c,a,l):hD(i,t,c,a)}return i}function hD(e,n,t,i,r){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,i):o=e[t]=[n,i],void 0!==r&&o.push(r)}function Yt(e,n,t,i,r,o,s,a){const l=Nt(n,t);let d,c=n.inputs;!a&&null!=c&&(d=c[i])?(Am(e,t,d,i,r),Dr(n)&&function aL(e,n){const t=rn(n,e);16&t[O]||(t[O]|=64)}(t,n.index)):3&n.type&&(i=function sL(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function Im(e,n,t,i){if(nw()){const r=null===i?null:{"":-1},o=function fL(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,o)}}(e,n,i,Oa(e,t,r.hostVars,W),r)}function si(e,n,t,i,r,o){const s=Nt(e,n);!function Sm(e,n,t,i,r,o,s){if(null==o)e.removeAttribute(n,r,t);else{const a=null==s?q(o):s(o,i||"",r);e.setAttribute(n,r,a,t)}}(n[H],s,o,e.value,t,i,r)}function yL(e,n,t,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(t[r-1][Fn]=n),i{Zc(e.lView)},consumerOnSignalRead(){this.lView[yn]=this}},TL={...ta,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=xi(e.lView);for(;n&&!DD(n[I]);)n=xi(n);n&&Jb(n)},consumerOnSignalRead(){this.lView[yn]=this}};function DD(e){return 2!==e.type}const AL=100;function kd(e,n=!0,t=0){const i=e[ei],r=i.rendererFactory;r.begin?.();try{!function kL(e,n){const t=sw();try{aw(!0),Fm(e,n);let i=0;for(;Wc(e);){if(i===AL)throw new b(103,!1);i++,Fm(e,1)}}finally{aw(t)}}(e,t)}catch(s){throw n&&Ad(e,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function RL(e,n,t,i){const r=n[O];if(!(256&~r))return;n[ei].inlineEffectRunner?.flush(),Dp(n);let a=!0,l=null,c=null;DD(e)?(c=function EL(e){return e[yn]??function xL(e){const n=CD.pop()??Object.create(ML);return n.lView=e,n}(e)}(n),l=vc(c)):null===function vf(){return We}()?(a=!1,c=function SL(e){const n=e[yn]??Object.create(TL);return n.lView=e,n}(n),l=vc(c)):n[yn]&&(Cf(n[yn]),n[yn]=null);try{Xb(n),function lw(e){return z.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&lD(e,n,t,2,i);const d=!(3&~r);if(d){const f=e.preOrderCheckHooks;null!==f&&td(n,f,null)}else{const f=e.preOrderHooks;null!==f&&nd(n,f,0,null),xp(n,0)}if(function FL(e){for(let n=tC(e);null!==n;n=nC(n)){if(!(n[O]&Gc.HasTransplantedViews))continue;const t=n[jo];for(let i=0;i-1&&(Fa(n,i),Nc(t,i))}this._attachedToViewContainer=!1}xd(this._lView[I],this._lView)}onDestroy(n){Yc(this._lView,n)}markForCheck(){La(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){mp(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,kd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=pa(this._lView),t=this._lView[Cr];null!==t&&!n&&fm(t,this._lView),qC(this._lView[I],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n;const t=pa(this._lView),i=this._lView[Cr];null!==i&&!t&&WC(i,this._lView),mp(this._lView)}}let Ri=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=LL}return e})();const OL=Ri,PL=class extends OL{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=Xo(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new Va(r)}};function LL(){return Rd(be(),C())}function Rd(e,n){return 4&e.type?new PL(n,e,$o(e,n)):null}let ZD=()=>null;function Br(e,n){return ZD(e,n)}class ts{}const qa=new E("",{providedIn:"root",factory:()=>!1}),YD=new E(""),$m=new E("");class A2{}class QD{}class R2{resolveComponentFactory(n){throw function k2(e){const n=Error(`No component factory found for ${at(e)}.`);return n.ngComponent=e,n}(n)}}class Wa{static#e=this.NULL=new R2}class Vd{}let Fi=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function F2(){const e=C(),t=rn(be().index,e);return(dt(t)?t:e)[H]}()}return e})(),N2=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>null})}return e})();function jd(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0&&rD(e,t,o.join(" "))}}(h,Y,p,i),void 0!==t&&function $2(e,n,t){const i=e.projection=[];for(let r=0;r{class e{static#e=this.__NG_ELEMENT_ID__=q2}return e})();function q2(){return rE(be(),C())}const W2=Qt,nE=class extends W2{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new ut(this._hostTNode,this._hostLView)}get parentInjector(){const n=od(this._hostTNode,this._hostLView);if(Sp(n)){const t=wa(n,this._hostLView),i=ba(n);return new ut(t[I].data[i+8],t)}return new ut(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=iE(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Ye}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=Br(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(a,r,Lr(this._hostTNode,s)),a}createComponent(n,t,i,r,o){const s=n&&!function ua(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new Qa(ee(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?c:this.parentInjector).get(xt,null);m&&(o=m)}const d=ee(l.componentType??{}),u=Br(this._lContainer,d?.id??null),f=l.create(c,r,u?.firstChild??null,o);return this.insertImpl(f.hostView,a,Lr(this._hostTNode,u)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function _O(e){return It(e[tt])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=r[tt],c=new nE(l,l[bt],l[tt]);c.detach(c.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;return Jo(s,r,o,i),n.attachToViewContainerRef(),wb(Wm(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=iE(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=Fa(this._lContainer,t);i&&(Nc(Wm(this._lContainer),t),xd(i[I],i))}detach(n){const t=this._adjustIndex(n,-1),i=Fa(this._lContainer,t);return i&&null!=Nc(Wm(this._lContainer),t)?new Va(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function iE(e){return e[8]}function Wm(e){return e[8]||(e[8]=[])}function rE(e,n){let t;const i=n[e.index];return It(i)?t=i:(t=mD(i,n,null,e),n[e.index]=t,Td(n,t)),oE(t,n,e,i),new nE(t,e,n)}let oE=function aE(e,n,t,i){if(e[ti])return;let r;r=8&t.type?de(i):function Z2(e,n){const t=e[H],i=t.createComment(""),r=Nt(n,e);return Nr(t,gm(t,r),i,function q1(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[ti]=r},Zm=()=>!1;class Ym{constructor(n){this.queryList=n,this.matches=null}clone(){return new Ym(this.queryList)}setDirty(){this.queryList.setDirty()}}class Qm{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;on.trim())}(n):n}}class Km{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i0)i.push(s[a/2]);else{const c=o[a+1],d=n[-l];for(let u=Ye;u=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=ca(r.hostAttrs,t=ca(t,r.hostAttrs))}}(i)}function fV(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];if(void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=n.inputTransforms[r]}}}function zd(e){return e===Kn?{}:e===ce?[]:e}function mV(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function gV(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function _V(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function Vn(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(t[i]=r[3])}e.inputTransforms=t}class jr{}class RE{}class ig extends jr{constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new eE(this);const o=Et(n);this._bootstrapComponents=an(o.bootstrap),this._r3Injector=Pw(n,t,[{provide:jr,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver},...i],at(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class rg extends RE{constructor(n){super(),this.moduleType=n}create(n){return new ig(this.moduleType,n,[])}}class FE extends jr{constructor(n){super(),this.componentFactoryResolver=new eE(this),this.instance=null;const t=new Fo([...n.providers,{provide:jr,useValue:this},{provide:Wa,useValue:this.componentFactoryResolver}],n.parent||Uc(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function $d(e,n,t=null){return new FE({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}function Gd(e){return!!og(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function og(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Qe(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ja(e,n,t,i,r,o,s,a,l,c){const d=t+k,u=n.firstCreatePass?function TV(e,n,t,i,r,o,s,a,l){const c=n.consts,d=Pr(n,e,4,s||null,a||null);Im(n,t,d,bn(c,l)),ed(n,d);const u=d.tView=xm(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,n,e,i,r,o,s,a,l):n.data[d];On(u,!1);const h=NE(n,e,u,t);va()&&Id(n,e,h,u),Mt(h,e);const f=mD(h,e,h,u);return e[d]=f,Td(e,f),function sE(e,n,t){return Zm(e,n,t)}(f,u,e),qc(u)&&Dm(n,e,u),null!=l&&Em(e,u,c),u}function Ke(e,n,t,i,r,o,s,a){const l=C(),c=J();return Ja(l,c,e,n,t,i,r,bn(c.consts,o),s,a),Ke}let NE=function OE(e,n,t,i){return ii(!0),n[H].createComment("")};var ss=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ss||{});let UE=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})();class nl{constructor(){this.ngZone=w($),this.scheduler=w(ts),this.errorHandler=w(on,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[ss.EarlyRead,ss.Write,ss.MixedReadWrite,ss.Read];execute(){this.executing=!0;for(const n of nl.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(i){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static#t=this.\u0275prov=M({token:nl,providedIn:"root",factory:()=>new nl})}class FV{constructor(n,t,i,r){this.impl=n,this.hooks=t,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function Ni(e,n){!n?.injector&&sp();const t=n?.injector??w(Ge);return ln(t)?(Pt("NgAfterNextRender"),zE(e,t,n,!0)):$E}function zE(e,n,t,i){const r=n.get(UE);r.impl??=n.get(nl);const o=t?.phase??ss.MixedReadWrite,s=!0!==t?.manualCleanup?n.get(Ca):null,a=new FV(r.impl,function NV(e,n){if(e instanceof Function){const t=[void 0,void 0,void 0,void 0];return t[n]=e,t}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,o),i,s);return r.impl.register(a),a}const $E={destroy(){}};function Ue(e,n,t,i){const r=C();return Qe(r,Pn(),n)&&(J(),si(Ae(),r,e,n,t,i)),Ue}function fs(e,n,t,i){return Qe(e,Pn(),t)?n+q(t)+i:W}function Xd(e,n){return e<<17|n<<2}function ir(e){return e>>17&32767}function gg(e){return 2|e}function zr(e){return(131068&e)>>2}function _g(e,n){return-131069&e|n<<2}function vg(e){return 1|e}function gx(e,n,t,i){const r=e[t+1],o=null===n;let s=i?ir(r):zr(r),a=!1;for(;0!==s&&(!1===a||o);){const c=e[s+1];gB(e[s],n)&&(a=!0,e[s+1]=i?vg(c):gg(c)),s=i?ir(c):zr(c)}a&&(e[t+1]=i?gg(r):vg(r))}function gB(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ro(e,n)>=0}const ht={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _x(e){return e.substring(ht.key,ht.keyEnd)}function vx(e,n){const t=ht.textEnd;return t===n?-1:(n=ht.keyEnd=function bB(e,n,t){for(;n32;)n++;return n}(e,ht.key=n,t),ws(e,n,t))}function ws(e,n,t){for(;n=0;t=vx(n,t))nn(e,_x(n),!0)}function Bn(e,n,t,i){const r=C(),o=J(),s=Mi(2);o.firstUpdatePass&&Ex(o,e,s,i),n!==W&&Qe(r,s,n)&&Ix(o,o.data[wt()],r,r[H],e,r[s+1]=function kB(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=at(sn(e)))),e}(n,t),i,s)}function Dx(e,n){return n>=e.expandoStartIndex}function Ex(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[wt()],s=Dx(e,t);Sx(o,i)&&null===n&&!s&&(n=!1),n=function EB(e,n,t,i){const r=function wp(e){const n=z.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=ol(t=bg(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=bg(r,e,n,t,i),null===o){let l=function xB(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==zr(i))return e[ir(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=bg(null,e,n,l[1],i),l=ol(l,n.attrs,i),function IB(e,n,t,i){e[ir(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function MB(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):d=t,r)if(0!==l){const h=ir(e[a+1]);e[i+1]=Xd(h,a),0!==h&&(e[h+1]=_g(e[h+1],i)),e[a+1]=function hB(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=Xd(a,0),0!==a&&(e[a+1]=_g(e[a+1],i)),a=i;else e[i+1]=Xd(l,0),0===a?a=i:e[l+1]=_g(e[l+1],i),l=i;c&&(e[i+1]=gg(e[i+1])),gx(e,d,i,!0),gx(e,d,i,!1),function mB(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Ro(o,n)>=0&&(t[i+1]=vg(t[i+1]))}(n,d,e,i,o),s=Xd(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function bg(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=t[r+1];h===W&&(h=u?ce:void 0);let f=u?Yf(h,i):d===i?h:void 0;if(c&&!Jd(f)&&(f=Yf(l,i)),Jd(f)&&(a=f,s))return a;const p=e[r+1];r=s?ir(p):zr(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Yf(l,i))}return a}function Jd(e){return void 0!==e}function Sx(e,n){return!!(e.flags&(n?8:16))}function di(e,n){Pt("NgControlFlow");const t=C(),i=Pn(),r=t[i]!==W?t[i]:-1,o=-1!==r?eu(t,k+r):void 0;if(Qe(t,i,e)){const a=X(null);try{if(void 0!==o&&function Rm(e,n){const t=Fa(e,n);return void 0!==t&&xd(t[I],t),t}(o,0),-1!==e){const l=k+e,c=eu(t,l),d=function Dg(e,n){return ga(e,n)}(t[I],l),u=Br(c,d.tView.ssrId);Jo(c,Xo(t,d,n,{dehydratedView:u}),0,Lr(d,u))}}finally{X(a)}}else if(void 0!==o){const a=function bD(e,n){const t=Ye+n;if(t(ii(!0),Ed(i,r,function gw(){return z.lFrame.currentNamespace}()));function Cs(e,n,t){const i=C(),r=J(),o=e+k,s=r.firstCreatePass?function nj(e,n,t,i,r){const o=n.consts,s=bn(o,i),a=Pr(n,e,8,"ng-container",s);return null!==s&&jd(a,s,!0),Im(n,t,a,bn(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,t):r.data[o];On(s,!0);const a=Nx(r,i,s,e);return i[o]=a,va()&&Id(r,i,a,s),Mt(a,i),qc(s)&&(Dm(r,i,s),Cm(r,s,i)),null!=t&&Em(i,s),Cs}function Ds(){let e=be();const n=J();return vp()?yp():(e=e.parent,On(e,!1)),n.firstCreatePass&&(ed(n,e),cp(e)&&n.queries.elementEnd(e)),Ds}let Nx=(e,n,t,i)=>(ii(!0),hm(n[H],""));function tu(){return C()}function $r(e,n,t){const i=C();return Qe(i,Pn(),n)&&Yt(J(),Ae(),i,e,n,i[H],t,!0),$r}const nu="en-US";let Vx=nu,n0=(e,n,t)=>{};function Le(e,n,t,i){const r=C(),o=J(),s=be();return function Ig(e,n,t,i,r,o,s){const a=qc(i),c=e.firstCreatePass&&vD(e),d=n[Te],u=_D(n);let h=!0;if(3&i.type||s){const m=Nt(i,n),g=s?s(m):m,y=u.length,_=s?S=>s(de(S[i.index])):i.index;let x=null;if(!s&&a&&(x=function Yj(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,h=!1;else{o=a0(i,n,d,o),n0(m,r,o);const S=t.listen(g,r,o);u.push(o,S),c&&c.push(r,_,y,y+1)}}else o=a0(i,n,d,o);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const m=p.length;if(m)for(let g=0;g-1?rn(e.index,n):n,5);let a=s0(n,t,i,o),l=r.__ngNextListenerFn__;for(;l;)a=s0(n,t,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Ve(e=1){return function AO(e){return(z.lFrame.contextLView=function ew(e,n){for(;e>0;)n=n[Lo],e--;return n}(e,z.lFrame.contextLView))[Te]}(e)}function Qj(e,n){let t=null;const i=function FN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r(ii(!0),function um(e,n){return e.createText(n)}(n[H],i));function qr(e){return Cn("",e,""),qr}function Cn(e,n,t){const i=C(),r=fs(i,e,n,t);return r!==W&&function ki(e,n,t){const i=ma(n,e);!function GC(e,n,t){e.setValue(n,t)}(e[H],i,t)}(i,wt(),r),Cn}function Ag(e,n,t,i,r){if(e=j(e),Array.isArray(e))for(let o=0;o>20;if(wr(e)||!e.multi){const f=new ya(c,r,v),p=Rg(l,n,r?d:d+h,u);-1===p?(kp(rd(a,s),o,l),kg(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[p]=f,s[p]=f)}else{const f=Rg(l,n,d+h,u),p=Rg(l,n,d,d+h),g=p>=0&&t[p];if(r&&!g||!r&&!(f>=0&&t[f])){kp(rd(a,s),o,l);const y=function yU(e,n,t,i,r){const o=new ya(e,t,v);return o.multi=[],o.index=n,o.componentProviders=0,V0(o,r,i&&!t),o}(r?vU:_U,t.length,r,i,c);!r&&g&&(t[p].providerFactory=y),kg(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(y),s.push(y)}else kg(o,e,f>-1?f:p,V0(t[r?p:f],c,!r&&i));!r&&i&&g&&t[p].componentProviders++}}}function kg(e,n,t,i){const r=wr(n),o=function qN(e){return!!e.useClass}(n);if(r||o){const l=(o?j(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=c.indexOf(t);-1===d?c.push(t,[i,l]):c[d+1].push(i,l)}else c.push(t,l)}}}function V0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Rg(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=>function gU(e,n,t){const i=J();if(i.firstCreatePass){const r=Nn(e);Ag(t,i.data,i.blueprint,r,!0),Ag(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}let bU=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Jf(0,t.type),r=i.length>0?$d([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=M({token:e,providedIn:"environment",factory:()=>new e(D(xt))})}return e})();function Xt(e){Pt("NgStandalone"),e.getStandaloneInjector=n=>n.get(bU).getOrCreateStandaloneInjector(e)}function U0(e,n,t,i,r,o){const s=n+t;return Qe(e,s,r)?function ai(e,n,t){return e[n]=t}(e,s+1,o?i.call(o,r):i(r)):function ul(e,n){const t=e[n];return t===W?void 0:t}(e,s+1)}function cu(e,n){const t=J();let i;const r=e+k;t.firstCreatePass?(i=function NU(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=br(i.type)),a=Gt(v);try{const l=id(!1),c=o();return id(l),function Tg(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,C(),r,c),c}finally{Gt(a)}}function du(e,n,t){const i=e+k,r=C(),o=function Er(e,n){return e[n]}(r,i);return function hl(e,n){return e[I].data[n].pure}(r,i)?U0(r,function Ot(){const e=z.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,o.transform,t,o):o.transform(t)}let aI=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const hI=new E(""),fu=new E("");let Ug,Bg=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Ug||(function RH(e){Ug=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!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(t,i,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(D($),D(jg),D(fu))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),jg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Ug?.findTestabilityInTree(this,t,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ml(e){return!!e&&"function"==typeof e.then}function fI(e){return!!e&&"function"==typeof e.subscribe}const Hg=new E("");let pI=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=w(Hg,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(ml(o))t.push(o);else if(fI(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pu=new E("");function gI(e,n){return Array.isArray(n)?n.reduce(gI,e):{...e,...n}}let Hn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(fP),this.afterRenderManager=w(UE),this.zonelessEnabled=w(qa),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Q,this.afterTick=new Q,this.componentTypes=[],this.components=[],this.isStable=w(Si).hasPendingTasks.pipe(Z(t=>!t)),this._injector=w(xt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof QD;if(!this._injector.get(pI).done)throw!r&&function Qi(e){const n=ee(e)||lt(e)||yt(e);return null!==n&&n.standalone}(t),new b(405,!1);let s;s=r?t:this._injector.get(Wa).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function FH(e){return e.isBoundToModule}(s)?void 0:this._injector.get(jr),c=s.create(Ge.NULL,[],i||s.selector,a),d=c.location.nativeElement,u=c.injector.get(hI,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),mu(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new b(101,!1);const t=X(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,X(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(Vd,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;0!==this.dirtyFlags&&i++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const i=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:r,notifyErrorHandler:o}of this._views)PH(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>Wc(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;mu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(pu,[]);[...this._bootstrapListeners,...i].forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>mu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new b(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function PH(e,n,t,i){(t||Wc(e))&&kd(e,n,t&&!i?0:1)}class LH{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let vI=(()=>{class e{compileModuleSync(t){return new rg(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=an(Et(t).declarations).reduce((s,a)=>{const l=ee(a);return l&&s.push(new Qa(l)),s},[]);return new LH(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jH=(()=>{class e{constructor(){this.zone=w($),this.changeDetectionScheduler=w(ts),this.applicationRef=w(Hn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zg({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new $({...$g(),scheduleInRootZone:t}),[{provide:$,useFactory:e},{provide:Xn,multi:!0,useFactory:()=>{const i=w(jH,{optional:!0});return()=>i.initialize()}},{provide:Xn,multi:!0,useFactory:()=>{const i=w(HH);return()=>{i.initialize()}}},!0===n?{provide:YD,useValue:!0}:[],{provide:$m,useValue:t??Vw}]}function $g(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let HH=(()=>{class e{constructor(){this.subscription=new ze,this.initialized=!1,this.zone=w($),this.pendingTasks=w(Si)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gl=(()=>{class e{constructor(){this.appRef=w(Hn),this.taskService=w(Si),this.ngZone=w($),this.zonelessEnabled=w(qa),this.disableScheduling=w(YD,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ze,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(cd):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w($m,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Vp||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const i=this.useMicrotaskScheduler?jw:Bw;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>i(()=>this.tick())):this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(cd+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,jw(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Oi=new E("",{providedIn:"root",factory:()=>w(Oi,ne.Optional|ne.SkipSelf)||function zH(){return typeof $localize<"u"&&$localize.locale||nu}()}),_u=new E("");function vu(e){return!e.moduleRef}let EI=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=i?.scheduleInRootZone,s=i?.ignoreChangesOutsideZone,a=[zg({ngZoneFactory:()=>function hP(e="zone.js",n){return"noop"===e?new Vp:"zone.js"===e?new $(n):e}(i?.ngZone,{...$g({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}),scheduleInRootZone:r}),ignoreChangesOutsideZone:s}),{provide:ts,useExisting:gl}],l=function EV(e,n,t){return new ig(e,n,t,!1)}(t.moduleType,this.injector,a);return function DI(e){const n=vu(e)?e.r3Injector:e.moduleRef.injector,t=n.get($);return t.run(()=>{vu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(on,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),vu(e)){const o=()=>n.destroy(),s=e.platformInjector.get(_u);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{const o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_u);s.add(o),e.moduleRef.onDestroy(()=>{mu(e.allPlatformModules,e.moduleRef),r.unsubscribe(),s.delete(o)})}return function OH(e,n,t){try{const i=t();return ml(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(i,t,()=>{const o=n.get(pI);return o.runInitializers(),o.donePromise.then(()=>{if(function uj(e){"string"==typeof e&&(Vx=e.toLowerCase().replace(/_/g,"-"))}(n.get(Oi,nu)||nu),vu(e)){const a=n.get(Hn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function YH(e,n){const t=e.injector.get(Hn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new b(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:l,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,i=[]){const r=gI({},i);return function BH(e,n,t){const i=new rg(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(_u,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ge))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),rr=null;const xI=new E("");function II(e,n,t=[]){const i=`Platform: ${n}`,r=new E(i);return(o=[])=>{let s=qg();if(!s||s.injector.get(xI,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function QH(e){if(rr&&!rr.get(xI,!1))throw new b(400,!1);(function mI(){!function VF(e){Ky=e}(()=>{throw new b(600,!1)})})(),rr=e;const n=e.get(EI);(function SI(e){e.get(uC,null)?.forEach(t=>t())})(e)}(function MI(e=[],n){return Ge.create({name:n,providers:[{provide:np,useValue:"platform"},{provide:_u,useValue:new Set([()=>rr=null])},...e]})}(a,i))}return function KH(){const n=qg();if(!n)throw new b(401,!1);return n}()}}function qg(){return rr?.get(EI)??null}let ui=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=JH}return e})();function JH(e){return function ez(e,n,t){if(Dr(e)&&!t){const i=rn(e.index,n);return new Va(i,i)}return 175&e.type?new Va(n[Pe],n):null}(be(),C(),!(16&~e))}class FI{constructor(){}supports(n){return Gd(n)}create(n){return new oz(n)}}const rz=(e,n)=>n;class oz{constructor(n){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=n||rz}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new sz(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}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(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new NI),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new NI),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class sz{constructor(n,t){this.item=n,this.trackById=t,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 az{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class NI{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new az,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function OI(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new cz(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class cz{constructor(n){this.key=n,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 LI(){return new Kg([new FI])}let Kg=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:LI});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||LI()),deps:[[e,new la,new yr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new b(901,!1)}}return e})();function VI(){return new wu([new PI])}let wu=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:VI});constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||VI()),deps:[[e,new la,new yr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new b(901,!1)}}return e})();const hz=II(null,"core",[]);let fz=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(i){return new(i||e)(D(Hn))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();function xe(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function aM(e,n=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function zn(e){const n=X(null);try{return e()}finally{X(n)}}const Gz=new E("",{providedIn:"root",factory:()=>w(qz)});let qz=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>new Wz})}return e})();class Wz{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=w(Si),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(n){const t=n.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const i=this.queues.get(t);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}class Zz{constructor(n,t,i,r,o,s){this.scheduler=n,this.effectFn=t,this.creationZone=i,this.injector=o,this.watcher=function zF(e,n,t){const i=Object.create($F);t&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const r=l=>{i.cleanupFn=l};return i.ref={notify:()=>Wy(i),run:()=>{if(null===i.fn)return;if(function FF(){return Do}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!wf(i))return;i.hasRun=!0;const l=vc(i);try{i.cleanupFn(),i.cleanupFn=xf,i.fn(r)}finally{bf(i,l)}},cleanup:()=>i.cleanupFn(),destroy:()=>function s(l){(function o(l){return null===l.fn&&null===l.schedule})(l)||(Cf(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=xf)}(i),[An]:i},i.ref}(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(on,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let cM=null;function or(){return cM}class Kz{}const te=new E("");let e_=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(Jz),providedIn:"platform"})}return e})();const Xz=new E("");let Jz=(()=>{class e extends e_{constructor(){super(),this._doc=w(te),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return or().getBaseHref(this._doc)}onPopState(t){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function t_(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function dM(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Pi(e){return e&&"?"!==e[0]?"?"+e:e}let Yr=(()=>{class e{historyGo(t){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(hM),providedIn:"root"})}return e})();const uM=new E("");let hM=(()=>{class e extends Yr{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??w(te).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return t_(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Pi(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Pi(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Pi(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(e_),D(uM,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),e$=(()=>{class e extends Yr{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=t_(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+Pi(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+Pi(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(e_),D(uM,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Ms=(()=>{class e{constructor(t){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function i$(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(dM(fM(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Pi(i))}normalize(t){return e.stripTrailingSlash(function n$(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,fM(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Pi(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Pi(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static#e=this.normalizeQueryParams=Pi;static#t=this.joinWithSlash=t_;static#n=this.stripTrailingSlash=dM;static#i=this.\u0275fac=function(i){return new(i||e)(D(Yr))};static#r=this.\u0275prov=M({token:e,factory:()=>function t$(){return new Ms(D(Yr))}(),providedIn:"root"})}return e})();function fM(e){return e.replace(/\/index.html$/,"")}function CM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const u_=/\s+/,DM=[];let EM=(()=>{class e{constructor(t,i){this._ngEl=t,this._renderer=i,this.initialClasses=DM,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(u_):DM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(u_):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],r=t[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(u_).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Fi))};static#t=this.\u0275dir=R({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class H${constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}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 IM=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new H$(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),MM(a,r)}});for(let r=0,o=i.length;r{MM(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(v(Qt),v(Ri),v(Kg))};static#t=this.\u0275dir=R({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function MM(e,n){e.context.$implicit=n.item}let SM=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new z$,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){TM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){TM("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(v(Qt),v(Ri))};static#t=this.\u0275dir=R({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class z${constructor(){this.$implicit=null,this.ngIf=null}}function TM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${at(n)}'.`)}class q${createSubscription(n,t){return zn(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){zn(()=>n.unsubscribe())}}class W${createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const Z$=new W$,Y$=new q$;let kM=(()=>{class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(ml(t))return Z$;if(fI(t))return Y$;throw function Gn(e,n){return new b(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(v(ui,16))};static#t=this.\u0275pipe=Dt({name:"async",type:e,pure:!1,standalone:!0})}return e})(),RM=(()=>{class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=FM}transform(t,i=FM){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ??=this.differs.find(t).create();const r=this.differ.diff(t),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(s=>{this.keyValues.push(function c3(e,n){return{key:e,value:n}}(s.key,s.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static#e=this.\u0275fac=function(i){return new(i||e)(v(wu,16))};static#t=this.\u0275pipe=Dt({name:"keyvalue",type:e,pure:!1,standalone:!0})}return e})();function FM(e,n){const t=e.key,i=n.key;if(t===i)return 0;if(void 0===t)return 1;if(void 0===i)return-1;if(null===t)return 1;if(null===i)return-1;if("string"==typeof t&&"string"==typeof i)return t{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();const NM="browser";function sr(e){return e===NM}function OM(e){return"server"===e}let p3=(()=>{class e{static#e=this.\u0275prov=M({token:e,providedIn:"root",factory:()=>sr(w(Ln))?new m3(w(te),window):new _3})}return e})();class m3{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function g3(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class _3{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class PM{}class G3 extends Kz{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class b_ extends G3{static makeCurrent(){!function Qz(e){cM??=e}(new b_)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function q3(){return El=El||document.querySelector("base"),El?El.getAttribute("href"):null}();return null==t?null:function W3(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){El=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return CM(document.cookie,n)}}let El=null,Y3=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const w_=new E("");let WM=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(t,i),i}static#e=this.\u0275fac=function(i){return new(i||e)(D(w_),D($))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class ZM{constructor(n){this._doc=n}}const C_="ng-app-id";let YM=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=OM(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${C_}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(C_),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(C_,this.appId),t.appendChild(s),s}}addStyleToHost(t,i){const r=this.getStyleElement(t,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(kr),D($p,8),D(Ln))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const D_={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/Math/MathML"},E_=/%COMP%/g,J3=new E("",{providedIn:"root",factory:()=>!0});function KM(e,n){return n.map(t=>t.replace(E_,e))}let x_=(()=>{class e{constructor(t,i,r,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=OM(a),this.defaultRenderer=new I_(t,s,l,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===kn.ShadowDom&&(i={...i,encapsulation:kn.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof JM?r.applyToHost(t):r instanceof M_&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case kn.Emulated:o=new JM(l,c,i,this.appId,d,s,a,u);break;case kn.ShadowDom:return new i8(l,c,t,i,s,a,this.nonce,u);default:o=new M_(l,c,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||e)(D(WM),D(YM),D(kr),D(J3),D(te),D(Ln),D($),D($p))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class I_{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(D_[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(XM(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(XM(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){t.remove()}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new b(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=D_[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=D_[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(Ji.DashCase|Ji.Important)?n.style.setProperty(t,i,r&Ji.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&Ji.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){null!=n&&(n[t]=i)}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=or().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function XM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class i8 extends I_{constructor(n,t,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=KM(r.id,r.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class M_ extends I_{constructor(n,t,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?KM(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class JM extends M_{constructor(n,t,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,t,i,o,s,a,l,c),this.contentAttr=function e8(e){return"_ngcontent-%COMP%".replace(E_,e)}(c),this.hostAttr=function t8(e){return"_nghost-%COMP%".replace(E_,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let r8=(()=>{class e extends ZM{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const eS=["alt","control","meta","shift"],o8={"\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"},s8={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let a8=(()=>{class e extends ZM{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>or().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),eS.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=o8[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),eS.forEach(s=>{s!==r&&(0,s8[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const u8=II(hz,"browser",[{provide:Ln,useValue:NM},{provide:uC,useValue:function l8(){b_.makeCurrent()},multi:!0},{provide:te,useFactory:function d8(){return function OP(e){zp=e}(document),document},deps:[]}]),h8=new E(""),iS=[{provide:fu,useClass:class Z3{addToWindow(n){Fe.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new b(5103,!1);return o},Fe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fe.getAllAngularRootElements=()=>n.getAllRootElements(),Fe.frameworkStabilizers||(Fe.frameworkStabilizers=[]),Fe.frameworkStabilizers.push(i=>{const r=Fe.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?or().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:hI,useClass:Bg,deps:[$,jg,fu]},{provide:Bg,useClass:Bg,deps:[$,jg,fu]}],rS=[{provide:np,useValue:"root"},{provide:on,useFactory:function c8(){return new on},deps:[]},{provide:w_,useClass:r8,multi:!0,deps:[te,$,Ln]},{provide:w_,useClass:a8,multi:!0,deps:[te]},x_,YM,WM,{provide:Vd,useExisting:x_},{provide:PM,useClass:Y3,deps:[]},[]];let oS=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:kr,useValue:t.appId}]}}static#e=this.\u0275fac=function(i){return new(i||e)(D(h8,12))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[...rS,...iS],imports:[g_,fz]})}return e})(),f8=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xl=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:function(i){let r=null;return r=i?new(i||e):D(_8),r},providedIn:"root"})}return e})(),_8=(()=>{class e extends xl{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case mt.NONE:return i;case mt.HTML:return oi(i,"HTML")?sn(i):NC(this._doc,String(i)).toString();case mt.STYLE:return oi(i,"Style")?sn(i):i;case mt.SCRIPT:if(oi(i,"Script"))return sn(i);throw new b(5200,!1);case mt.URL:return oi(i,"URL")?sn(i):bd(String(i));case mt.RESOURCE_URL:if(oi(i,"ResourceURL"))return sn(i);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(t){return function n1(e){return new QP(e)}(t)}bypassSecurityTrustStyle(t){return function r1(e){return new KP(e)}(t)}bypassSecurityTrustScript(t){return function o1(e){return new XP(e)}(t)}bypassSecurityTrustUrl(t){return function s1(e){return new JP(e)}(t)}bypassSecurityTrustResourceUrl(t){return function a1(e){return new e1(e)}(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ar(e){return this instanceof ar?(this.v=e,this):new ar(e)}function uS(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function R_(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const F_=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function hS(e){return fe(e?.then)}function fS(e){return fe(e[Ff])}function pS(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}function mS(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const gS=function $8(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function _S(e){return fe(e?.[gS])}function vS(e){return function dS(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(p){return Promise.resolve(p).then(f,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(f,p){i[f]&&(r[f]=function(m){return new Promise(function(g,y){o.push([f,m,g,y])>1||l(f,m)})},p&&(r[f]=p(r[f])))}function l(f,p){try{!function c(f){f.value instanceof ar?Promise.resolve(f.value.v).then(d,u):h(o[0][2],f)}(i[f](p))}catch(m){h(o[0][3],m)}}function d(f){l("next",f)}function u(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield ar(t.read());if(r)return yield ar(void 0);yield yield ar(i)}}finally{t.releaseLock()}})}function yS(e){return fe(e?.getReader)}function Ut(e){if(e instanceof Ne)return e;if(null!=e){if(fS(e))return function G8(e){return new Ne(n=>{const t=e[Ff]();if(fe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(F_(e))return function q8(e){return new Ne(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,ib)})}(e);if(pS(e))return bS(e);if(_S(e))return function Z8(e){return new Ne(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(yS(e))return function Y8(e){return bS(vS(e))}(e)}throw mS(e)}function bS(e){return new Ne(n=>{(function Q8(e,n){var t,i,r,o;return function lS(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(a,l)}c((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=uS(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Bi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function wS(e,n=0){return Ze((t,i)=>{t.subscribe(je(i,r=>Bi(i,e,()=>i.next(r),n),()=>Bi(i,e,()=>i.complete(),n),r=>Bi(i,e,()=>i.error(r),n)))})}function CS(e,n=0){return Ze((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function DS(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ne(t=>{Bi(t,n,()=>{const i=e[Symbol.asyncIterator]();Bi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function ot(e,n){return n?function n4(e,n){if(null!=e){if(fS(e))return function K8(e,n){return Ut(e).pipe(CS(n),wS(n))}(e,n);if(F_(e))return function J8(e,n){return new Ne(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(hS(e))return function X8(e,n){return Ut(e).pipe(CS(n),wS(n))}(e,n);if(pS(e))return DS(e,n);if(_S(e))return function e4(e,n){return new Ne(t=>{let i;return Bi(t,n,()=>{i=e[gS](),Bi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>fe(i?.return)&&i.return()})}(e,n);if(yS(e))return function t4(e,n){return DS(vS(e),n)}(e,n)}throw mS(e)}(e,n):Ut(e)}function ES(e){return e&&fe(e.schedule)}function N_(e){return e[e.length-1]}function xS(e){return fe(N_(e))?e.pop():void 0}function Il(e){return ES(N_(e))?e.pop():void 0}function N(...e){return ot(e,Il(e))}const{isArray:o4}=Array,{getPrototypeOf:s4,prototype:a4,keys:l4}=Object;function IS(e){if(1===e.length){const n=e[0];if(o4(n))return{args:n,keys:null};if(function c4(e){return e&&"object"==typeof e&&s4(e)===a4}(n)){const t=l4(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:d4}=Array;function O_(e){return Z(n=>function u4(e,n){return d4(n)?e(...n):e(n)}(e,n))}function MS(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function zu(...e){const n=Il(e),t=xS(e),{args:i,keys:r}=IS(e);if(0===i.length)return ot([],n);const o=new Ne(function h4(e,n,t=qi){return i=>{SS(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=ot(e[l],n);let d=!1;c.subscribe(je(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>MS(r,s):qi));return t?o.pipe(O_(t)):o}function SS(e,n,t){e?Bi(t,e,n):n()}const $u=If(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ct(e,n,t=1/0){return fe(n)?Ct((i,r)=>Z((o,s)=>n(i,o,r,s))(Ut(e(i,r))),t):("number"==typeof n&&(t=n),Ze((i,r)=>function f4(e,n,t,i,r,o,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&n.complete()},f=m=>c{o&&n.next(m),c++;let g=!1;Ut(t(m,d++)).subscribe(je(n,y=>{r?.(y),o?f(y):n.next(y)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&cp(y)):p(y)}h()}catch(y){n.error(y)}}))};return e.subscribe(je(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,e,t)))}function As(e=1/0){return Ct(qi,e)}function Gu(...e){return function p4(){return As(1)}()(ot(e,Il(e)))}function TS(e){return new Ne(n=>{Ut(e()).subscribe(n)})}function Ml(e,n){const t=fe(e)?e:()=>e,i=r=>r.error(t());return new Ne(n?r=>n.schedule(i,0,r):i)}const qn=new Ne(e=>e.complete());function P_(){return Ze((e,n)=>{let t=null;e._refCount++;const i=je(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class AS extends Ne{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,ab(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ze;const t=this.getSubject();n.add(this.source.subscribe(je(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ze.EMPTY)}return n}refCount(){return P_()(this)}}function hn(e,n){return Ze((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(je(i,l=>{r?.unsubscribe();let c=0;const d=o++;Ut(e(l,d)).subscribe(r=je(i,u=>i.next(n?n(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function hi(e){return e<=0?()=>qn:Ze((n,t)=>{let i=0;n.subscribe(je(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function Kr(...e){const n=Il(e);return Ze((t,i)=>{(n?Gu(e,t,n):Gu(e,t)).subscribe(i)})}function fn(e,n){return Ze((t,i)=>{let r=0;t.subscribe(je(i,o=>e.call(n,o,r++)&&i.next(o)))})}function qu(e){return Ze((n,t)=>{let i=!1;n.subscribe(je(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function kS(e=g4){return Ze((n,t)=>{let i=!1;n.subscribe(je(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function g4(){return new $u}function lr(e,n){const t=arguments.length>=2;return i=>i.pipe(e?fn((r,o)=>e(r,o,i)):qi,hi(1),t?qu(n):kS(()=>new $u))}function ks(e,n){return fe(n)?Ct(e,n,1):Ct(e,1)}function pt(e,n,t){const i=fe(e)||n||t?{next:e,error:n,complete:t}:e;return i?Ze((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(je(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):qi}function Xr(e){return Ze((n,t)=>{let o,i=null,r=!1;i=n.subscribe(je(t,void 0,void 0,s=>{o=Ut(e(s,Xr(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function L_(e){return e<=0?()=>qn:Ze((n,t)=>{let i=[];n.subscribe(je(t,r=>{i.push(r),e{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function RS(e){return Z(()=>e)}function Rs(e){return Ze((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function qe(e){return Ze((n,t)=>{Ut(e).subscribe(je(t,()=>t.complete(),Sf)),!t.closed&&n.subscribe(t)})}const K="primary",Sl=Symbol("RouteTitle");class b4{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Fs(e){return new b4(e)}function w4(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return e===n}function NS(e){return e.length>0?e[e.length-1]:null}function cr(e){return function S_(e){return!!e&&(e instanceof Ne||fe(e.lift)&&fe(e.subscribe))}(e)?e:ml(e)?ot(Promise.resolve(e)):N(e)}const D4={exact:function LS(e,n,t){if(!eo(e.segments,n.segments)||!Wu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!LS(e.children[i],n.children[i],t))return!1;return!0},subset:VS},OS={exact:function E4(e,n){return fi(e,n)},subset:function x4(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>FS(e[t],n[t]))},ignored:()=>!0};function PS(e,n,t){return D4[t.paths](e.root,n.root,t.matrixParams)&&OS[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function VS(e,n,t){return BS(e,n,n.segments,t)}function BS(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!eo(r,t)||n.hasChildren()||!Wu(r,t,i))}if(e.segments.length===t.length){if(!eo(e.segments,t)||!Wu(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!VS(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(eo(e.segments,r)&&Wu(e.segments,r,i)&&e.children[K])&&BS(e.children[K],n,o,i)}}function Wu(e,n,t){return n.every((i,r)=>OS[t](e[r].parameters,i.parameters))}class Jr{constructor(n=new we([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Fs(this.queryParams),this._queryParamMap}toString(){return S4.serialize(this)}}class we{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yu(this)}}class Tl{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Fs(this.parameters),this._parameterMap}toString(){return HS(this)}}function eo(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Ns=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>new Zu,providedIn:"root"})}return e})();class Zu{parse(n){const t=new B4(n);return new Jr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Al(n.root,!0)}`,i=function k4(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${Qu(t)}=${Qu(r)}`).join("&"):`${Qu(t)}=${Qu(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function T4(e){return encodeURI(e)}(n.fragment)}`:""}`}}const S4=new Zu;function Yu(e){return e.segments.map(n=>HS(n)).join("/")}function Al(e,n){if(!e.hasChildren())return Yu(e);if(n){const t=e.children[K]?Al(e.children[K],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==K&&i.push(`${r}:${Al(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function M4(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===K&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==K&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===K?[Al(e.children[K],!1)]:[`${r}:${Al(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[K]?`${Yu(e)}/${t[0]}`:`${Yu(e)}/(${t.join("//")})`}}function jS(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qu(e){return jS(e).replace(/%3B/gi,";")}function B_(e){return jS(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ku(e){return decodeURIComponent(e)}function US(e){return Ku(e.replace(/\+/g,"%20"))}function HS(e){return`${B_(e.path)}${function A4(e){return Object.entries(e).map(([n,t])=>`;${B_(n)}=${B_(t)}`).join("")}(e.parameters)}`}const R4=/^[^\/()?;#]+/;function j_(e){const n=e.match(R4);return n?n[0]:""}const F4=/^[^\/()?;=#]+/,O4=/^[^=?&#]+/,L4=/^[^&#]+/;class B4{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[K]=new we(n,t)),i}parseSegment(){const n=j_(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Tl(Ku(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function N4(e){const n=e.match(F4);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=j_(this.remaining);r&&(i=r,this.capture(i))}n[Ku(t)]=Ku(i)}parseQueryParam(n){const t=function P4(e){const n=e.match(O4);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function V4(e){const n=e.match(L4);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=US(t),o=US(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=j_(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new b(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=K);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[K]:new we([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}}function zS(e){return e.segments.length>0?new we([],{[K]:e}):e}function $S(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=$S(r);if(i===K&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function j4(e){if(1===e.numberOfChildren&&e.children[K]){const n=e.children[K];return new we(e.segments.concat(n.segments),n.children)}return e}(new we(e.segments,n))}function to(e){return e instanceof Jr}function GS(e){let n;const r=zS(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new we(o.url,s);return o===e&&(n=a),a}(e.root));return n??r}function qS(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return U_(r,r,r,t,i);const o=function H4(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ZS(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new ZS(t,n,i)}(n);if(o.toRoot())return U_(r,r,new we([],{}),t,i);const s=function z4(e,n,t){if(e.isAbsolute)return new Ju(n,!0,0);if(!t)return new Ju(n,!1,NaN);if(null===t.parent)return new Ju(t,!0,0);const i=Xu(e.commands[0])?0:1;return function $4(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new b(4005,!1);r=i.segments.length}return new Ju(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?Rl(s.segmentGroup,s.index,o.commands):YS(s.segmentGroup,s.index,o.commands);return U_(r,s.segmentGroup,a,t,i)}function Xu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function kl(e){return"object"==typeof e&&null!=e&&e.outlets}function U_(e,n,t,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),s=e===n?t:WS(e,n,t);const a=zS($S(s));return new Jr(a,o,r)}function WS(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:WS(o,n,t)}),new we(e.segments,i)}class ZS{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Xu(i[0]))throw new b(4003,!1);const r=i.find(kl);if(r&&r!==NS(i))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ju{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function YS(e,n,t){if(e??=new we([],{}),0===e.segments.length&&e.hasChildren())return Rl(e,n,t);const i=function q4(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=e.segments[r],a=t[i];if(kl(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!KS(l,c,s))return o;i+=2}else{if(!KS(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndexo!==K)&&e.children[K]&&1===e.numberOfChildren&&0===e.children[K].segments.length){const o=Rl(e.children[K],n,t);return new we(e.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=YS(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new we(e.segments,r)}}function H_(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=H_(new we([],{}),0,i))}),n}function QS(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function KS(e,n,t){return e==t.path&&fi(n,t.parameters)}const Fl="imperative";var ae=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ae||{});class pi{constructor(n,t){this.id=n,this.url=t}}class eh extends pi{constructor(n,t,i="imperative",r=null){super(n,t),this.type=ae.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ji extends pi{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=ae.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var pn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(pn||{}),th=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(th||{});class no extends pi{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=ae.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Os extends pi{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=ae.NavigationSkipped}}class z_ extends pi{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=ae.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XS extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Z4 extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Y4 extends pi{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=ae.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Q4 extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K4 extends pi{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=ae.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X4{constructor(n){this.route=n,this.type=ae.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class J4{constructor(n){this.route=n,this.type=ae.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class eG{constructor(n){this.snapshot=n,this.type=ae.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tG{constructor(n){this.snapshot=n,this.type=ae.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nG{constructor(n){this.snapshot=n,this.type=ae.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iG{constructor(n){this.snapshot=n,this.type=ae.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JS{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=ae.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $_{}class nh{constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Wn(e){return e.outlet||K}function Nl(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class cG{get injector(){return Nl(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Ol(this.rootInjector),this.attachRef=null}}let Ol=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new cG(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(i){return new(i||e)(D(xt))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class eT{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=G_(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=G_(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=q_(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return q_(n,this._root).map(t=>t.value)}}function G_(e,n){if(e===n.value)return n;for(const t of n.children){const i=G_(e,t);if(i)return i}return null}function q_(e,n){if(e===n.value)return[n];for(const t of n.children){const i=q_(e,t);if(i.length)return i.unshift(n),i}return[]}class Zn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ps(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class tT extends eT{constructor(n,t){super(n),this.snapshot=t,W_(this,n)}toString(){return this.snapshot.toString()}}function nT(e){const n=function dG(e){const o=new rh([],{},{},"",{},K,e,null,{});return new iT("",new Zn(o,[]))}(e),t=new Jt([new Tl("",{})]),i=new Jt({}),r=new Jt({}),o=new Jt({}),s=new Jt(""),a=new Ls(t,i,o,s,r,K,e,n.root);return a.snapshot=n.root,new tT(new Zn(a,[]),n)}class Ls{constructor(n,t,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Z(c=>c[Sl]))??N(void 0),this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o}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.params.pipe(Z(n=>Fs(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Z(n=>Fs(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ih(e,n,t="emptyOnly"){let i;const{routeConfig:r}=e;return i=null===n||"always"!==t&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...r?.data,...e._resolvedData}},r&&oT(r)&&(i.resolve[Sl]=r.title),i}class rh{get title(){return this.data?.[Sl]}constructor(n,t,i,r,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Fs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Fs(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class iT extends eT{constructor(n,t){super(t),this.url=n,W_(this,t)}toString(){return rT(this._root)}}function W_(e,n){n.value._routerState=e,n.children.forEach(t=>W_(e,t))}function rT(e){const n=e.children.length>0?` { ${e.children.map(rT).join(", ")} } `:"";return`${e.value}${n}`}function Z_(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,fi(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),fi(n.params,t.params)||e.paramsSubject.next(t.params),function C4(e,n){if(e.length!==n.length)return!1;for(let t=0;tfi(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Y_(e.parent,n.parent))}function oT(e){return"string"==typeof e.title||null===e.title}let Q_=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=K,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=w(Ol),this.location=w(Qt),this.changeDetector=w(ui),this.inputBinder=w(oh,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;const r=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new K_(t,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=R({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Wt]})}return e})();class K_{__ngOutletInjector(n){return new K_(this.route,this.childContexts,n)}constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===Ls?this.route:n===Ol?this.childContexts:this.parent.get(n,t)}}const oh=new E("");let sT=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=zu([i.queryParams,i.params,i.data]).pipe(hn(([o,s,a],l)=>(a={...o,...s,...a},0===l?N(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const s=function Yz(e){const n=ee(e);if(!n)return null;const t=new Qa(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function Pl(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function hG(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Pl(e,i,r);return Pl(e,i)})}(e,n,t);return new Zn(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Pl(e,a)),s}}const i=function fG(e){return new Ls(new Jt(e.url),new Jt(e.params),new Jt(e.queryParams),new Jt(e.fragment),new Jt(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>Pl(e,o));return new Zn(i,r)}}class X_{constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const aT="ngNavigationCancelingError";function sh(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=to(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=lT(!1,pn.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function lT(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[aT]=!0,t.cancellationCode=n,t}function cT(e){return!!e&&e[aT]}class gG{constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),Z_(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=Ps(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=Ps(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=Ps(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,t,i){const r=Ps(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new iG(o.value.snapshot))}),n.children.length&&this.forwardEvent(new tG(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(Z_(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Z_(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}}class dT{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class ah{constructor(n,t){this.component=n,this.route=t}}function _G(e,n,t){const i=e._root;return Ll(i,n?n._root:null,t,[i.value])}function Vs(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function cN(e){return null!==Tc(e)}(e)?n.get(e):e:i}function Ll(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ps(n);return e.children.forEach(s=>{(function yG(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function bG(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!eo(e.url,n.url);case"pathParamsOrQueryParamsChange":return!eo(e.url,n.url)||!fi(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Y_(e,n)||!fi(e.queryParams,n.queryParams);default:return!Y_(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new dT(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ll(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ah(a.outlet.component,s))}else s&&Vl(n,a,r),r.canActivateChecks.push(new dT(i)),Ll(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Vl(a,t.getContext(s),r)),r}function Vl(e,n,t){const i=Ps(e),r=e.value;Object.entries(i).forEach(([o,s])=>{Vl(s,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new ah(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Bl(e){return"function"==typeof e}function uT(e){return e instanceof $u||"EmptyError"===e?.name}const lh=Symbol("INITIAL_VALUE");function Bs(){return hn(e=>zu(e.map(n=>n.pipe(hi(1),Kr(lh)))).pipe(Z(n=>{for(const t of n)if(!0!==t){if(t===lh)return lh;if(!1===t||MG(t))return t}return!0}),fn(n=>n!==lh),hi(1)))}function MG(e){return to(e)||e instanceof X_}function hT(e){return function JF(...e){return rb(e)}(pt(n=>{if("boolean"!=typeof n)throw sh(0,n)}),Z(n=>!0===n))}class J_{constructor(n){this.segmentGroup=n||null}}class ch extends Error{constructor(n){super(),this.urlTree=n}}function js(e){return Ml(new J_(e))}class jG{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return N(i);if(r.numberOfChildren>1||!r.children[K])return Ml(new b(4e3,!1));r=r.children[K]}}applyRedirectCommands(n,t,i,r,o){if("string"!=typeof t){const a=t,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:h,params:f,data:p,title:m}=r,g=Jn(o,()=>a({params:f,data:p,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:h,title:m}));if(g instanceof Jr)throw new ch(g);t=g}const s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new ch(s);return s}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new Jr(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&":"===o[0]){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new we(o,s)}createSegments(n,t,i,r){return t.map(o=>":"===o.path[0]?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const ev={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function UG(e,n,t,i,r){const o=fT(e,n,t);return o.matched?(i=function rG(e,n){return e.providers&&!e._injector&&(e._injector=$d(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function LG(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?N(r.map(s=>{const a=Vs(s,e);return cr(function IG(e){return e&&Bl(e.canMatch)}(a)?a.canMatch(n,t):Jn(e,()=>a(n,t)))})).pipe(Bs(),hT()):N(!0)}(i,n,t).pipe(Z(s=>!0===s?o:{...ev}))):N(o)}function fT(e,n,t){if("**"===n.path)return function HG(e){return{matched:!0,parameters:e.length>0?NS(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...ev}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||w4)(t,e,n);if(!r)return{...ev};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function pT(e,n,t,i){return t.length>0&&function GG(e,n,t){return t.some(i=>dh(e,n,i)&&Wn(i)!==K)}(e,t,i)?{segmentGroup:new we(n,$G(i,new we(t,e.children))),slicedSegments:[]}:0===t.length&&function qG(e,n,t){return t.some(i=>dh(e,n,i))}(e,t,i)?{segmentGroup:new we(e.segments,zG(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new we(e.segments,e.children),slicedSegments:t}}function zG(e,n,t,i){const r={};for(const o of t)if(dh(e,n,o)&&!i[Wn(o)]){const s=new we([],{});r[Wn(o)]=s}return{...i,...r}}function $G(e,n){const t={};t[K]=n;for(const i of e)if(""===i.path&&Wn(i)!==K){const r=new we([],{});t[Wn(i)]=r}return t}function dh(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class ZG{}class KG{constructor(n,t,i,r,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new jG(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){const n=pT(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Z(({children:t,rootSnapshot:i})=>{const r=new Zn(i,t),o=new iT("",r),s=function U4(e,n,t=null,i=null){return qS(GS(e),n,t,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){const t=new rh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),K,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,K,t).pipe(Z(i=>({children:i,rootSnapshot:t})),Xr(i=>{if(i instanceof ch)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof J_?this.noMatchError(i):i}))}processSegmentGroup(n,t,i,r,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i,o):this.processSegment(n,t,i,i.segments,r,!0,o).pipe(Z(s=>s instanceof Zn?[s]:[]))}processChildren(n,t,i,r){const o=[];for(const s of Object.keys(i.children))"primary"===s?o.unshift(s):o.push(s);return ot(o).pipe(ks(s=>{const a=i.children[s],l=function lG(e,n){const t=e.filter(i=>Wn(i)===n);return t.push(...e.filter(i=>Wn(i)!==n)),t}(t,s);return this.processSegmentGroup(n,l,a,s,r)}),function v4(e,n){return Ze(function _4(e,n,t,i,r){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(je(s,d=>{const u=c++;l=a?e(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((s,a)=>(s.push(...a),s)),qu(null),function y4(e,n){const t=arguments.length>=2;return i=>i.pipe(e?fn((r,o)=>e(r,o,i)):qi,L_(1),t?qu(n):kS(()=>new $u))}(),Ct(s=>{if(null===s)return js(i);const a=mT(s);return function XG(e){e.sort((n,t)=>n.value.outlet===K?-1:t.value.outlet===K?1:n.value.outlet.localeCompare(t.value.outlet))}(a),N(a)}))}processSegment(n,t,i,r,o,s,a){return ot(t).pipe(ks(l=>this.processSegmentAgainstRoute(l._injector??n,t,l,i,r,o,s,a).pipe(Xr(c=>{if(c instanceof J_)return N(null);throw c}))),lr(l=>!!l),Xr(l=>{if(uT(l))return function WG(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?N(new ZG):js(i);throw l}))}processSegmentAgainstRoute(n,t,i,r,o,s,a,l){return Wn(i)===s||s!==K&&dh(r,o,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,s,l):js(r):js(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s,a){const{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:h}=fT(t,r,o);if(!l)return js(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const f=new rh(o,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,gT(r),Wn(r),r.component??r._loadedComponent??null,r,_T(r)),p=ih(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);const m=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,f,n);return this.applyRedirects.lineralizeSegments(r,m).pipe(Ct(g=>this.processSegment(n,i,t,g.concat(h),s,!1,a)))}matchSegmentAgainstRoute(n,t,i,r,o,s){const a=UG(t,i,r,n);return"**"===i.path&&(t.children={}),a.pipe(hn(l=>l.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(hn(({routes:c})=>{const d=i._loadedInjector??n,{parameters:u,consumedSegments:h,remainingSegments:f}=l,p=new rh(h,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,gT(i),Wn(i),i.component??i._loadedComponent??null,i,_T(i)),m=ih(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);const{segmentGroup:g,slicedSegments:y}=pT(t,h,f,c);if(0===y.length&&g.hasChildren())return this.processChildren(d,c,g,p).pipe(Z(x=>new Zn(p,x)));if(0===c.length&&0===y.length)return N(new Zn(p,[]));const _=Wn(i)===o;return this.processSegment(d,c,g,y,_?K:o,!0,p).pipe(Z(x=>new Zn(p,x instanceof Zn?[x]:[])))})):js(t)))}getChildConfig(n,t,i){return t.children?N({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?N({routes:t._loadedRoutes,injector:t._loadedInjector}):function PG(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?N(!0):N(r.map(s=>{const a=Vs(s,e);return cr(function CG(e){return e&&Bl(e.canLoad)}(a)?a.canLoad(n,t):Jn(e,()=>a(n,t)))})).pipe(Bs(),hT())}(n,t,i).pipe(Ct(r=>r?this.configLoader.loadChildren(n,t).pipe(pt(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function BG(){return Ml(lT(!1,pn.GuardRejected))}())):N({routes:[],injector:n})}}function JG(e){const n=e.value.routeConfig;return n&&""===n.path}function mT(e){const n=[],t=new Set;for(const i of e){if(!JG(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=mT(i.children);n.push(new Zn(i.value,r))}return n.filter(i=>!t.has(i))}function gT(e){return e.data||{}}function _T(e){return e.resolve||{}}function vT(e){const n=e.children.map(t=>vT(t)).flat();return[e,...n]}function tv(e){return hn(n=>{const t=e(n);return t?ot(t).pipe(Z(()=>n)):N(n)})}let yT=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===K);return i}getResolvedTitleForRoute(t){return t.data[Sl]}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(s5),providedIn:"root"})}return e})(),s5=(()=>{class e extends yT{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||e)(D(f8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Us=new E("",{providedIn:"root",factory:()=>({})});let bT=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xt],decls:1,vars:0,template:function(i,r){1&i&&St(0,"router-outlet")},dependencies:[Q_],encapsulation:2})}return e})();function nv(e){const n=e.children&&e.children.map(nv),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==K&&(t.component=bT),t}const Hs=new E("");let iv=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(vI)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return N(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=cr(t.loadComponent()).pipe(Z(wT),pt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Rs(()=>{this.componentLoaders.delete(t)})),r=new AS(i,()=>new Q).pipe(P_());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return N({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function a5(e,n,t,i){return cr(e.loadChildren()).pipe(Z(wT),Ct(r=>r instanceof RE||Array.isArray(r)?N(r):ot(n.compileModuleAsync(r))),Z(r=>{i&&i(e);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(t).injector,s=o.get(Hs,[],{optional:!0,self:!0}).flat()),{routes:s.map(nv),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(Rs(()=>{this.childrenLoaders.delete(i)})),s=new AS(o,()=>new Q).pipe(P_());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wT(e){return function l5(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let rv=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(c5),providedIn:"root"})}return e})(),c5=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const CT=new E(""),DT=new E("");function d5(e,n,t){const i=e.get(DT),r=e.get(te);return e.get($).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o;const s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),function u5(e){return new Promise(n=>{Ni({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:l}=i;return l&&Jn(e,()=>l({transition:a,from:n,to:t})),s})}const ET=new E("");let uh=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Q,this.transitionAbortSubject=new Q,this.configLoader=w(iv),this.environmentInjector=w(xt),this.urlSerializer=w(Ns),this.rootContexts=w(Ol),this.location=w(Ms),this.inputBindingEnabled=null!==w(oh,{optional:!0}),this.titleStrategy=w(yT),this.options=w(Us,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(rv),this.createViewTransition=w(CT,{optional:!0}),this.navigationErrorHandler=w(ET,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>N(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new J4(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new X4(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new Jt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Fl,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fn(o=>0!==o.id),Z(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),hn(o=>{let s=!1,a=!1;return N(o).pipe(hn(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",pn.SupersededByNewNavigation),qn;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:"string"==typeof l.extras.browserUrl?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new Os(l.id,this.urlSerializer.serialize(l.rawUrl),u,th.IgnoredSameUrlNavigation)),l.resolve(!1),qn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return N(l).pipe(hn(u=>{const h=this.transitions?.getValue();return this.events.next(new eh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?qn:Promise.resolve(u)}),function e5(e,n,t,i,r,o){return Ct(s=>function YG(e,n,t,i,r,o,s="emptyOnly"){return new KG(e,n,t,i,r,s,o).recognize()}(e,n,t,i,s.extractedUrl,r,o).pipe(Z(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),pt(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const h=new XS(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:u,extractedUrl:h,source:f,restoredState:p,extras:m}=l,g=new eh(u,this.urlSerializer.serialize(h),f,p);this.events.next(g);const y=nT(this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:y,urlAfterRedirects:h,extras:{...m,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,N(o)}{const u="";return this.events.next(new Os(l.id,this.urlSerializer.serialize(l.extractedUrl),u,th.IgnoredByUrlHandlingStrategy)),l.resolve(!1),qn}}),pt(l=>{const c=new Z4(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),Z(l=>(this.currentTransition=o={...l,guards:_G(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function SG(e,n){return Ct(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?N({...t,guardsResult:!0}):function TG(e,n,t,i){return ot(e).pipe(Ct(r=>function OG(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?N(o.map(a=>{const l=Nl(n)??r,c=Vs(a,l);return cr(function xG(e){return e&&Bl(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,i):Jn(l,()=>c(e,n,t,i))).pipe(lr())})).pipe(Bs()):N(!0)}(r.component,r.route,t,n,i)),lr(r=>!0!==r,!0))}(s,i,r,e).pipe(Ct(a=>a&&function wG(e){return"boolean"==typeof e}(a)?function AG(e,n,t,i){return ot(n).pipe(ks(r=>Gu(function RG(e,n){return null!==e&&n&&n(new eG(e)),N(!0)}(r.route.parent,i),function kG(e,n){return null!==e&&n&&n(new nG(e)),N(!0)}(r.route,i),function NG(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function vG(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>TS(()=>N(s.guards.map(l=>{const c=Nl(s.node)??t,d=Vs(l,c);return cr(function EG(e){return e&&Bl(e.canActivateChild)}(d)?d.canActivateChild(i,e):Jn(c,()=>d(i,e))).pipe(lr())})).pipe(Bs())));return N(o).pipe(Bs())}(e,r.path,t),function FG(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return N(!0);const r=i.map(o=>TS(()=>{const s=Nl(n)??t,a=Vs(o,s);return cr(function DG(e){return e&&Bl(e.canActivate)}(a)?a.canActivate(n,e):Jn(s,()=>a(n,e))).pipe(lr())}));return N(r).pipe(Bs())}(e,r.route,t))),lr(r=>!0!==r,!0))}(i,o,e,n):N(a)),Z(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),pt(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&"boolean"!=typeof l.guardsResult)throw sh(0,l.guardsResult);const c=new Y4(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),fn(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",pn.GuardRejected),!1)),tv(l=>{if(l.guards.canActivateChecks.length)return N(l).pipe(pt(c=>{const d=new Q4(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),hn(c=>{let d=!1;return N(c).pipe(function t5(e,n){return Ct(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return N(t);const o=new Set(r.map(l=>l.route)),s=new Set;for(const l of o)if(!s.has(l))for(const c of vT(l))s.add(c);let a=0;return ot(s).pipe(ks(l=>o.has(l)?function n5(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!oT(r)&&(o[Sl]=r.title),function r5(e,n,t,i){const r=V_(e);if(0===r.length)return N({});const o={};return ot(r).pipe(Ct(s=>function o5(e,n,t,i){const r=Nl(n)??i,o=Vs(e,r);return cr(o.resolve?o.resolve(n,t):Jn(r,()=>o(n,t)))}(e[s],n,t,i).pipe(lr(),pt(a=>{if(a instanceof X_)throw sh(new Zu,a);o[s]=a}))),L_(1),RS(o),Xr(s=>uT(s)?qn:Ml(s)))}(o,e,n,i).pipe(Z(s=>(e._resolvedData=s,e.data=ih(e,e.parent,t).resolve,null)))}(l,i,e,n):(l.data=ih(l,l.parent,e).resolve,N(void 0))),pt(()=>a++),L_(1),Ct(l=>a===s.size?N(t):qn))})}(this.paramsInheritanceStrategy,this.environmentInjector),pt({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",pn.NoDataFromResolver)}}))}),pt(c=>{const d=new K4(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),tv(l=>{const c=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(pt(h=>{d.component=h}),Z(()=>{})));for(const h of d.children)u.push(...c(h));return u};return zu(c(l.targetSnapshot.root)).pipe(qu(null),hi(1))}),tv(()=>this.afterPreactivation()),hn(()=>{const{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?ot(d).pipe(Z(()=>o)):N(o)}),Z(l=>{const c=function uG(e,n,t){const i=Pl(e,n._root,t?t._root:void 0);return new tT(i,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,o}),pt(()=>{this.events.next(new $_)}),((e,n,t,i)=>Z(r=>(new gG(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),hi(1),pt({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ji(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),qe(this.transitionAbortSubject.pipe(pt(l=>{throw l}))),Rs(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",pn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Xr(l=>{if(a=!0,cT(l))this.events.next(new no(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function pG(e){return cT(e)&&to(e.url)}(l)?this.events.next(new nh(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{const c=new z_(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{const d=Jn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof X_){const{message:u,cancellationCode:h}=sh(0,d);this.events.next(new no(o.id,this.urlSerializer.serialize(o.extractedUrl),u,h)),this.events.next(new nh(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);const u=t.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return qn}))}))}cancelNavigationTransition(t,i,r){const o=new no(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function h5(e){return e!==Fl}let f5=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(m5),providedIn:"root"})}return e})();class p5{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let m5=(()=>{class e extends p5{static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xT=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:()=>w(g5),providedIn:"root"})}return e})(),g5=(()=>{class e extends xT{constructor(){super(...arguments),this.location=w(Ms),this.urlSerializer=w(Ns),this.options=w(Us,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(rv),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Jr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=nT(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof eh)this.stateMemento=this.createStateMemento();else if(t instanceof Os)this.rawUrlTree=i.initialUrl;else if(t instanceof XS){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else t instanceof $_?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):t instanceof no&&(t.code===pn.GuardRejected||t.code===pn.NoDataFromResolver)?this.restoreHistory(i):t instanceof z_?this.restoreHistory(i,!0):t instanceof ji&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){const r=t instanceof Jr?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&0===o&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var jl=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(jl||{});function IT(e,n){e.events.pipe(fn(t=>t instanceof ji||t instanceof no||t instanceof z_||t instanceof Os),Z(t=>t instanceof ji||t instanceof Os?jl.COMPLETE:t instanceof no&&(t.code===pn.Redirect||t.code===pn.SupersededByNewNavigation)?jl.REDIRECTING:jl.FAILED),fn(t=>t!==jl.REDIRECTING),hi(1)).subscribe(()=>{n()})}function _5(e){throw e}const v5={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},y5={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let mi=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=w(aI),this.stateManager=w(xT),this.options=w(Us,{optional:!0})||{},this.pendingTasks=w(Si),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(uh),this.urlSerializer=w(Ns),this.location=w(Ms),this.urlHandlingStrategy=w(rv),this._events=new Q,this.errorHandler=this.options.errorHandler||_5,this.navigated=!1,this.routeReuseStrategy=w(f5),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(Hs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(oh,{optional:!0}),this.eventsSubscription=new ze,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof no&&i.code!==pn.Redirect&&i.code!==pn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ji)this.navigated=!0;else if(i instanceof nh){const s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l={browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||"eager"===this.urlUpdateStrategy||h5(r.source),...s};this.scheduleNavigation(a,Fl,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function w5(e){return!(e instanceof $_||e instanceof nh)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Fl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(nv),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=GS(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),u=this.currentUrlTree.root}return qS(u,t,d,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=to(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Fl,null,i)}navigate(t,i={skipLocationChange:!1}){return function b5(e){for(let n=0;n(null!=o&&(i[r]=o),i),{})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,h)=>{a=u,l=h});const d=this.pendingTasks.add();return IT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hh=(()=>{class e{constructor(t,i,r,o,s,a){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new Q,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof ji&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=to(t)||Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,i,r,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==t||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const i=null===this.href?null:function PC(e,n,t){return function x1(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?OC:Yo}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.routerLinkInput?null:to(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||e)(v(mi),v(Ls),Tr("tabindex"),v(Fi),v(ue),v(Yr))};static#t=this.\u0275dir=R({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&Le("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&Ue("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",xe],skipLocationChange:[2,"skipLocationChange","skipLocationChange",xe],replaceUrl:[2,"replaceUrl","replaceUrl",xe],routerLink:"routerLink"},standalone:!0,features:[Vn,Wt]})}return e})();class MT{}let E5=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(fn(t=>t instanceof ji),ks(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=$d(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ot(r).pipe(As())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):N(null);const o=r.pipe(Ct(s=>null===s?N(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?ot([o,this.loader.loadComponent(i)]).pipe(As()):o})}static#e=this.\u0275fac=function(i){return new(i||e)(D(mi),D(vI),D(xt),D(MT),D(iv))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ov=new E("");let ST=(()=>{class e{constructor(t,i,r,o,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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(t=>{t instanceof eh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ji?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Os&&t.code===th.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof JS&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new JS(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){bm()};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function gi(e,n){return{\u0275kind:e,\u0275providers:n}}function AT(){const e=w(Ge);return n=>{const t=e.get(Hn);if(n!==t.components[0])return;const i=e.get(mi),r=e.get(kT);1===e.get(sv)&&i.initialNavigation(),e.get(RT,null,ne.Optional)?.setUpPreloading(),e.get(ov,null,ne.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const kT=new E("",{factory:()=>new Q}),sv=new E("",{providedIn:"root",factory:()=>1}),RT=new E("");function S5(e){return gi(0,[{provide:RT,useExisting:E5},{provide:MT,useExisting:e}])}function A5(e){return gi(9,[{provide:CT,useValue:d5},{provide:DT,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const FT=new E("ROUTER_FORROOT_GUARD"),k5=[Ms,{provide:Ns,useClass:Zu},mi,Ol,{provide:Ls,useFactory:function TT(e){return e.routerState.root},deps:[mi]},iv,[]];let NT=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[k5,[],{provide:Hs,multi:!0,useValue:t},{provide:FT,useFactory:O5,deps:[[mi,new yr,new la]]},{provide:Us,useValue:i||{}},i?.useHash?{provide:Yr,useClass:e$}:{provide:Yr,useClass:hM},{provide:ov,useFactory:()=>{const e=w(p3),n=w($),t=w(Us),i=w(uh),r=w(Ns);return t.scrollOffset&&e.setOffset(t.scrollOffset),new ST(r,i,e,n,t)}},i?.preloadingStrategy?S5(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?P5(i):[],i?.bindToComponentInputs?gi(8,[sT,{provide:oh,useExisting:sT}]).\u0275providers:[],i?.enableViewTransitions?A5().\u0275providers:[],[{provide:OT,useFactory:AT},{provide:pu,multi:!0,useExisting:OT}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Hs,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(i){return new(i||e)(D(FT,8))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();function O5(e){return"guarded"}function P5(e){return["disabled"===e.initialNavigation?gi(3,[{provide:Hg,multi:!0,useFactory:()=>{const n=w(mi);return()=>{n.setUpLocationChangeListener()}}},{provide:sv,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?gi(2,[{provide:sv,useValue:0},{provide:Hg,multi:!0,deps:[Ge],useFactory:n=>{const t=n.get(Xz,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(mi),o=n.get(kT);IT(r,()=>{i(!0)}),n.get(uh).afterPreactivation=()=>(i(!0),o.closed?N(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const OT=new E("");function PT(e,n,t,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function Ul(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(l){PT(o,i,r,s,a,"next",l)}function a(l){PT(o,i,r,s,a,"throw",l)}s(void 0)})}}let av;try{av=typeof Intl<"u"&&Intl.v8BreakIterator}catch{av=!1}let Hl,io,lv,Ht=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?sr(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&&!av)&&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}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ln))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zl(e){return function V5(){if(null==Hl&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hl=!0}))}finally{Hl=Hl||!1}return Hl}()?e:!!e.capture}function B5(){if(null==io){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return io=!1,io;if("scrollBehavior"in document.documentElement.style)io=!0;else{const e=Element.prototype.scrollTo;io=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return io}function Ui(e){return e.composedPath?e.composedPath()[0]:e.target}function cv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ph(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class oq extends ze{constructor(n,t){super()}schedule(n,t=0){return this}}const mh={setInterval(e,n,...t){const{delegate:i}=mh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=mh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class hv extends oq{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return mh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&mh.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Dc(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const fv={now:()=>(fv.delegate||Date).now(),delegate:void 0};class ql{constructor(n,t=ql.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}ql.now=fv.now;class pv extends ql{constructor(n,t=ql.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const mv=new pv(hv),sq=mv;function UT(e,n=mv){return Ze((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+e,d=n.now();if(d{o=c,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function HT(e){return fn((n,t)=>e<=t)}function zT(e,n=qi){return e=e??aq,Ze((t,i)=>{let r,o=!0;t.subscribe(je(i,s=>{const a=n(s);(o||!e(r,a))&&(o=!1,r=a,i.next(s))}))})}function aq(e,n){return e===n}let lq=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cq=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[lq]})}return e})();function GT(e){return null!=e&&"false"!=`${e}`}function qT(e,n=0){return function dq(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):2===arguments.length?n:0}function gh(e){return Array.isArray(e)?e:[e]}function st(e){return null==e?"":"string"==typeof e?e:`${e}px`}function $s(e){return e instanceof ue?e.nativeElement:e}const WT=new Set;let ro,uq=(()=>{class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):fq}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function hq(e,n){if(!WT.has(e))try{ro||(ro=document.createElement("style"),n&&ro.setAttribute("nonce",n),ro.setAttribute("type","text/css"),document.head.appendChild(ro)),ro.sheet&&(ro.sheet.insertRule(`@media ${e} {body{ }}`,0),WT.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D($p,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fq(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let pq=(()=>{class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ZT(gh(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=zu(ZT(gh(t)).map(s=>this._registerQuery(s).observable));return o=Gu(o.pipe(hi(1)),o.pipe(HT(1),UT(0))),o.pipe(Z(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new Ne(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Kr(i),Z(({matches:s})=>({query:t,matches:s})),qe(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(i){return new(i||e)(D(uq),D($))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZT(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}function _h(e,n){return e.getAttribute(n)?.match(/\S+/g)??[]}const QT="cdk-describedby-message",vh="cdk-describedby-host";let gv=0,_q=(()=>{class e{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+gv++,this._document=t,this._id=w(kr)+"-"+gv++}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const o=_v(i,r);"string"!=typeof i?(KT(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const o=_v(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${vh}="${this._id}"]`);for(let i=0;i0!=r.indexOf(QT));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function mq(e,n,t){const i=_h(e,n);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),e.setAttribute(n,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(vh,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function gq(e,n,t){const i=_h(e,n);t=t.trim();const r=i.filter(o=>o!==t);r.length?e.setAttribute(n,r.join(" ")):e.removeAttribute(n)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(vh)}_isElementDescribedByMessage(t,i){const r=_h(t,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Ht))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _v(e,n){return"string"==typeof e?`${n||""}/${e}`:e}function KT(e,n){e.id||(e.id=`${QT}-${n}-${gv++}`)}class XT{constructor(n,t){this._letterKeyStream=new Q,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new Q,this.selectedItem=this._selectedItem;const i="number"==typeof t?.debounceInterval?t.debounceInterval:200;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){const t=n.keyCode;n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(pt(t=>this._pressedLetters.push(t)),UT(n),fn(()=>this._pressedLetters.length>0),Z(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let i=1;ii.disabled,this.tabOut=new Q,this.change=new Q,n instanceof Ar?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Ud(n)&&(this._effectRef=function lM(e,n){Pt("NgSignals"),!n?.injector&&sp();const t=n?.injector??w(Ge),i=!0!==n?.manualCleanup?t.get(Ca):null,r=new Zz(t.get(Gz),e,typeof Zone>"u"?null:Zone.current,i,t,n?.allowSignalWrites??!1),o=t.get(ui,null,{optional:!0});return o&&8&o._lView[O]?(o._lView[zc]??=[]).push(r.watcher.notify):r.watcher.notify(),r}(()=>this._itemsChanged(n()),{injector:t}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();const t=this._getItemsArray();return this._typeahead=new XT(t,{debounceInterval:"number"==typeof n?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,t=10){return this._pageUpAndDown={enabled:n,delta:t},this}setActiveItem(n){const t=this._activeItem;this.updateActiveItem(n),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(n){const t=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}}}class bq extends yq{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}function nA(e){return 0===e.buttons||0===e.detail}function iA(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const Aq=new E("cdk-input-modality-detector-options"),kq={ignoreKeys:[18,17,224,91,16]},Gs=zl({passive:!0,capture:!0});let Rq=(()=>{class e{get mostRecentModality(){return this._modality.value}constructor(t,i,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Jt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ui(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(nA(s)?"keyboard":"mouse"),this._mostRecentTarget=Ui(s))},this._onTouchstart=s=>{iA(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ui(s))},this._options={...kq,...o},this.modalityDetected=this._modality.pipe(HT(1)),this.modalityChanged=this.modalityDetected.pipe(zT()),t.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Gs),r.addEventListener("mousedown",this._onMousedown,Gs),r.addEventListener("touchstart",this._onTouchstart,Gs)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Gs),document.removeEventListener("mousedown",this._onMousedown,Gs),document.removeEventListener("touchstart",this._onTouchstart,Gs))}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D($),D(te),D(Aq,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var yh=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(yh||{});const Nq=new E("cdk-focus-monitor-default-options"),bh=zl({passive:!0,capture:!0});let wh=(()=>{class e{constructor(t,i,r,o,s){this._ngZone=t,this._platform=i,this._inputModalityDetector=r,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 Q,this._rootNodeFocusAndBlurListener=a=>{for(let c=Ui(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||yh.IMMEDIATE}monitor(t,i=!1){const r=$s(t);if(!this._platform.isBrowser||1!==r.nodeType)return N();const o=function U5(e){if(function j5(){if(null==lv){const e=typeof document<"u"?document.head:null;lv=!(!e||!e.createShadowRoot&&!e.attachShadow)}return lv}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Q,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=$s(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=$s(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===yh.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,this._detectionMode===yh.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Ui(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,bh)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(qe(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,bh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,bh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=w(pq).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return oo.NONE;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return oo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return oo.BLACK_ON_WHITE}return oo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(vv,oA,sA),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===oo.BLACK_ON_WHITE?t.add(vv,oA):i===oo.WHITE_ON_BLACK&&t.add(vv,sA)}}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oq=(()=>{class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||e)(D(aA))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[cq]})}return e})();const Pq=new E("cdk-dir-doc",{providedIn:"root",factory:function Lq(){return w(te)}}),Vq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ch=(()=>{class e{constructor(t){this.value="ltr",this.change=new le,t&&(this.value=function Bq(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?Vq.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||e)(D(Pq,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wl=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();const Uq=new E("mat-sanity-checks",{providedIn:"root",factory:function jq(){return!0}});let zt=(()=>{class e{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!cv()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(i){return new(i||e)(D(aA),D(Uq,8),D(te))};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[Wl,Wl]})}return e})(),uA=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var xn=function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e}(xn||{});class Wq{constructor(n,t,i,r=!1){this._renderer=n,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=xn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const hA=zl({passive:!0,capture:!0});class Zq{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=Ui(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,i,r){const o=this._events.get(t);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,hA)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,hA)))}}const fA={enterDuration:225,exitDuration:150},pA=zl({passive:!0,capture:!0}),mA=["mousedown","touchstart"],gA=["mouseup","mouseleave","touchend","touchcancel"];class Dh{static#e=this._eventManager=new Zq;constructor(n,t,i,r){this._target=n,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=$s(i))}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...fA,...i.animation};i.centered&&(n=r.left+r.width/2,t=r.top+r.height/2);const s=i.radius||function Qq(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),a=n-r.left,l=t-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,p="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===r.width&&0===r.height,m=new Wq(this,d,i,p);d.style.transform="scale3d(1, 1, 1)",m.state=xn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=m);let g=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const y=()=>{g&&(g.fallbackTimer=null),clearTimeout(x),this._finishRippleTransition(m)},_=()=>this._destroyRipple(m),x=setTimeout(_,c+100);d.addEventListener("transitionend",y),d.addEventListener("transitioncancel",_),g={onTransitionEnd:y,onTransitionCancel:_,fallbackTimer:x}}),this._activeRipples.set(m,g),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(n){if(n.state===xn.FADING_OUT||n.state===xn.HIDDEN)return;const t=n.element,i={...fA,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=xn.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const t=$s(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,mA.forEach(i=>{Dh._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{gA.forEach(t=>{this._triggerElement.addEventListener(t,this,pA)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===xn.FADING_IN?this._startFadeOutTransition(n):n.state===xn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=xn.VISIBLE,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=xn.HIDDEN,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel),null!==t.fallbackTimer&&clearTimeout(t.fallbackTimer)),n.element.remove()}_onMousedown(n){const t=nA(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===xn.VISIBLE||n.config.terminateOnPointerUp&&n.state===xn.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(mA.forEach(t=>Dh._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&(gA.forEach(t=>n.removeEventListener(t,this,pA)),this._pointerUpEventsRegistered=!1))}}const Eh=new E("mat-ripple-global-options");let Kq=(()=>{class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,r,o,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Dh(this,i,t,r)}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(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...t})}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v($),v(Ht),v(Eh,8),v(Ti,8))};static#t=this.\u0275dir=R({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&>("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return e})(),_A=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,zt]})}return e})();const vA={capture:!0},yA=["focus","mousedown","mouseenter","touchstart"],yv="mat-ripple-loader-uninitialized",bv="mat-ripple-loader-class-name",bA="mat-ripple-loader-centered",xh="mat-ripple-loader-disabled";let wA=(()=>{class e{constructor(){this._document=w(te,{optional:!0}),this._animationMode=w(Ti,{optional:!0}),this._globalRippleOptions=w(Eh,{optional:!0}),this._platform=w(Ht),this._ngZone=w($),this._hosts=new Map,this._onInteraction=t=>{const i=Ui(t);if(i instanceof HTMLElement){const r=i.closest(`[${yv}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(const t of yA)this._document?.addEventListener(t,this._onInteraction,vA)})}ngOnDestroy(){const t=this._hosts.keys();for(const i of t)this.destroyRipple(i);for(const i of yA)this._document?.removeEventListener(i,this._onInteraction,vA)}configureRipple(t,i){t.setAttribute(yv,this._globalRippleOptions?.namespace??""),(i.className||!t.hasAttribute(bv))&&t.setAttribute(bv,i.className||""),i.centered&&t.setAttribute(bA,""),i.disabled&&t.setAttribute(xh,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,i){const r=this._hosts.get(t);r?r.disabled=i:i?t.setAttribute(xh,""):t.removeAttribute(xh)}_createRipple(t){if(!this._document)return;const i=this._hosts.get(t);if(i)return i;t.querySelector(".mat-ripple")?.remove();const r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(bv)),t.append(r);const o=new Kq(new ue(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(bA),o.disabled=t.hasAttribute(xh),this.attachRipple(t,o),o}attachRipple(t,i){t.removeAttribute(yv),this._hosts.set(t,i)}destroyRipple(t){const i=this._hosts.get(t);i&&(i.ngOnDestroy(),this._hosts.delete(t))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DA(e={}){const{connector:n=()=>new Q,resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,d=u=!1},p=()=>{const m=s;f(),m?.unsubscribe()};return Ze((m,g)=>{c++,!u&&!d&&h();const y=l=l??n();g.add(()=>{c--,0===c&&!u&&!d&&(a=wv(p,r))}),y.subscribe(g),!s&&c>0&&(s=new ia({next:_=>y.next(_),error:_=>{u=!0,h(),a=wv(f,t,_),y.error(_)},complete:()=>{d=!0,h(),a=wv(f,i),y.complete()}}),Ut(m).subscribe(s))})(o)}}function wv(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new ia({next:()=>{i.unsubscribe(),e()}});return Ut(n(...t)).subscribe(i)}class Ih{}class Mh{}class In{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,i)=>{this.setHeaderEntries(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,i])=>{this.setHeaderEntries(t,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof In?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new In;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof In?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const i=(Array.isArray(t)?t:[t]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class Xq{encodeKey(n){return EA(n)}encodeValue(n){return EA(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const eW=/%(\d[a-f0-9])/gi,tW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EA(e){return encodeURIComponent(e).replace(eW,(n,t)=>tW[t]??n)}function Sh(e){return`${e}`}class dr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Xq,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Jq(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(Sh):[Sh(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new dr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Sh(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Sh(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class nW{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function xA(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function IA(e){return typeof Blob<"u"&&e instanceof Blob}function MA(e){return typeof FormData<"u"&&e instanceof FormData}class Yl{constructor(n,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function iW(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new In,this.context??=new nW,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ah.set(f,n.setHeaders[f]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),d)),new Yl(t,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}}var ur=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(ur||{});class Cv{constructor(n,t=200,i="OK"){this.headers=n.headers||new In,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Th extends Cv{constructor(n={}){super(n),this.type=ur.ResponseHeader}clone(n={}){return new Th({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class so extends Cv{constructor(n={}){super(n),this.type=ur.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new so({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class qs extends Cv{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Dv(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Ql=(()=>{class e{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof Yl)o=t;else{let l,c;l=r.headers instanceof In?r.headers:new In(r.headers),r.params&&(c=r.params instanceof dr?r.params:new dr({fromObject:r.params})),o=new Yl(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=N(o).pipe(ks(l=>this.handler.handle(l)));if(t instanceof Yl||"events"===r.observe)return s;const a=s.pipe(fn(l=>l instanceof so));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Z(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Z(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Z(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new dr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Dv(r,i))}post(t,i,r={}){return this.request("POST",t,Dv(r,i))}put(t,i,r={}){return this.request("PUT",t,Dv(r,i))}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ih))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const aW=/^\)\]\}',?\n/;function TA(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let Ev=(()=>{class e{constructor(){this.fetchImpl=w(cW,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=w($)}handle(t){return new Ne(i=>{const r=new AbortController;return this.doRequest(t,r.signal,i).then(xv,o=>i.error(new qs({error:o}))),()=>r.abort()})}doRequest(t,i,r){var o=this;return Ul(function*(){const s=o.createRequestInit(t);let a;try{const p=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:i,...s}));(function dW(e){e.then(xv,xv)})(p),r.next({type:ur.Sent}),a=yield p}catch(p){return void r.error(new qs({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const l=new In(a.headers),c=a.statusText,d=TA(a)??t.urlWithParams;let u=a.status,h=null;if(t.reportProgress&&r.next(new Th({headers:l,status:u,statusText:c,url:d})),a.body){const p=a.headers.get("content-length"),m=[],g=a.body.getReader();let _,x,y=0;const S=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(Ul(function*(){for(;;){const{done:Y,value:re}=yield g.read();if(Y)break;if(m.push(re),y+=re.length,t.reportProgress){x="text"===t.responseType?(x??"")+(_??=new TextDecoder).decode(re,{stream:!0}):void 0;const Be=()=>r.next({type:ur.DownloadProgress,total:p?+p:void 0,loaded:y,partialText:x});S?S.run(Be):Be()}}}));const B=o.concatChunks(m,y);try{const Y=a.headers.get("Content-Type")??"";h=o.parseBody(t,B,Y)}catch(Y){return void r.error(new qs({error:Y,headers:new In(a.headers),status:a.status,statusText:a.statusText,url:TA(a)??t.urlWithParams}))}}0===u&&(u=h?200:0),u>=200&&u<300?(r.next(new so({body:h,headers:l,status:u,statusText:c,url:d})),r.complete()):r.error(new qs({error:h,headers:l,status:u,statusText:c,url:d}))})()}parseBody(t,i,r){switch(t.responseType){case"json":const o=(new TextDecoder).decode(i).replace(aW,"");return""===o?null:JSON.parse(o);case"text":return(new TextDecoder).decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(t){const i={},r=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>i[o]=s.join(",")),t.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(i["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:i,credentials:r}}concatChunks(t,i){const r=new Uint8Array(i);let o=0;for(const s of t)r.set(s,o),o+=s.length;return r}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class cW{}function xv(){}function AA(e,n){return n(e)}function uW(e,n){return(t,i)=>n.intercept(t,{handle:r=>e(r,i)})}const fW=new E(""),Kl=new E(""),kA=new E(""),RA=new E("",{providedIn:"root",factory:()=>!0});function pW(){let e=null;return(n,t)=>{null===e&&(e=(w(fW,{optional:!0})??[]).reduceRight(uW,AA));const i=w(Si);if(w(RA)){const o=i.add();return e(n,t).pipe(Rs(()=>i.remove(o)))}return e(n,t)}}let FA=(()=>{class e extends Ih{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null,this.pendingTasks=w(Si),this.contributeToStability=w(RA)}handle(t){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(Kl),...this.injector.get(kA,[])]));this.chain=i.reduceRight((r,o)=>function hW(e,n,t){return(i,r)=>Jn(t,()=>n(i,o=>e(o,r)))}(r,o,this.injector),AA)}if(this.contributeToStability){const i=this.pendingTasks.add();return this.chain(t,r=>this.backend.handle(r)).pipe(Rs(()=>this.pendingTasks.remove(i)))}return this.chain(t,i=>this.backend.handle(i))}static#e=this.\u0275fac=function(i){return new(i||e)(D(Mh),D(xt))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const yW=/^\)\]\}',?\n/;let OA=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new b(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?ot(i.\u0275loadImpl()):N(null)).pipe(hn(()=>new Ne(o=>{const s=i.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((m,g)=>s.setRequestHeader(m,g.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&s.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();s.responseType="json"!==m?m:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const m=s.statusText||"OK",g=new In(s.getAllResponseHeaders()),y=function bW(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new Th({headers:g,status:s.status,statusText:m,url:y}),l},d=()=>{let{headers:m,status:g,statusText:y,url:_}=c(),x=null;204!==g&&(x=typeof s.response>"u"?s.responseText:s.response),0===g&&(g=x?200:0);let S=g>=200&&g<300;if("json"===t.responseType&&"string"==typeof x){const B=x;x=x.replace(yW,"");try{x=""!==x?JSON.parse(x):null}catch(Y){x=B,S&&(S=!1,x={error:Y,text:x})}}S?(o.next(new so({body:x,headers:m,status:g,statusText:y,url:_||void 0})),o.complete()):o.error(new qs({error:x,headers:m,status:g,statusText:y,url:_||void 0}))},u=m=>{const{url:g}=c(),y=new qs({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:g||void 0});o.error(y)};let h=!1;const f=m=>{h||(o.next(c()),h=!0);let g={type:ur.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),"text"===t.responseType&&s.responseText&&(g.partialText=s.responseText),o.next(g)},p=m=>{let g={type:ur.UploadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),o.next(g)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),t.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:ur.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),t.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||e)(D(PM))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();const Iv=new E(""),PA=new E("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),LA=new E("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class VA{}let DW=(()=>{class e{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=CM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Ln),D(PA))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function EW(e,n){const t=e.url.toLowerCase();if(!w(Iv)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const i=w(VA).getToken(),r=w(LA);return null!=i&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,i)})),n(e)}var hr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(hr||{});function xW(...e){const n=[Ql,OA,FA,{provide:Ih,useExisting:FA},{provide:Mh,useFactory:()=>w(Ev,{optional:!0})??w(OA)},{provide:Kl,useValue:EW,multi:!0},{provide:Iv,useValue:!0},{provide:VA,useClass:DW}];for(const t of e)n.push(...t.\u0275providers);return function da(e){return{\u0275providers:e}}(n)}const BA=new E("");function IW(){return function ao(e,n){return{\u0275kind:e,\u0275providers:n}}(hr.LegacyInterceptors,[{provide:BA,useFactory:pW},{provide:Kl,useExisting:BA,multi:!0}])}const OW=["*"];let kh;function Xl(e){return function PW(){if(void 0===kh&&(kh=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(kh=e.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return kh}()?.createHTML(e)||e}function WA(e){return Error(`Unable to find icon with the name "${e}"`)}function ZA(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function YA(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class lo{constructor(n,t,i){this.url=n,this.svgText=t,this.options=i}}let Rh=(()=>{class e{constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new lo(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(mt.HTML,r);if(!s)throw YA(r);const a=Xl(s);return this._addSvgIconConfig(t,i,new lo("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new lo(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(mt.HTML,i);if(!o)throw YA(i);const s=Xl(o);return this._addSvgIconSetConfig(t,new lo("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(mt.RESOURCE_URL,t);if(!i)throw ZA(t);const r=this._cachedIconsByUrl.get(i);return r?N(Fh(r)):this._loadSvgIconFromConfig(new lo(t,null)).pipe(pt(o=>this._cachedIconsByUrl.set(i,o)),Z(o=>Fh(o)))}getNamedSvgIcon(t,i=""){const r=QA(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):Ml(WA(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?N(Fh(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Z(i=>Fh(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?N(r):function CA(...e){const n=xS(e),{args:t,keys:i}=IS(e),r=new Ne(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?MS(i,a):a),o.complete())}))}});return n?r.pipe(O_(n)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Xr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(mt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),N(null)})))).pipe(Z(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw WA(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(pt(i=>t.svgText=i),Z(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?N(null):this._fetchIcon(t).pipe(pt(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Xl(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Xl("")),r=t.attributes;for(let o=0;oXl(c)),Rs(()=>this._inProgressUrlFetches.delete(s)),DA());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(QA(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;rn?n.pathname+n.search:""}}}),KA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],zW=KA.map(e=>`[${e}]`).join(", "),$W=/^url\(['"]?#(.*?)['"]?\)$/;let GW=(()=>{class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(t,i,r,o,s,a){this._elementRef=t,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ze.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(zW),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match($W):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(hi(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Rh),Tr("aria-hidden"),v(UW),v(on),v(jW,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){2&i&&(Ue("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),rl(r.color?"mat-"+r.color:""),gt("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[2,"inline","inline",xe],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Vn,Xt],ngContentSelectors:OW,decls:1,vars:0,template:function(i,r){1&i&&(Un(),et(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return e})(),qW=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,zt]})}return e})();function Jl(...e){const n=Il(e),t=function r4(e,n){return"number"==typeof N_(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?Ut(i[0]):As(t)(ot(i,n)):qn}const Yn=new E("");Promise.resolve(),Promise.resolve();var G=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(G||{});const zi="*";function Mn(e){return{type:G.Style,styles:e,offset:null}}class sc{constructor(n=0,t=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=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class tR{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const nR=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],iR=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function a9(e,n){1&e&&(T(0,"span",3),et(1,1),F())}function l9(e,n){1&e&&(T(0,"span",6),et(1,2),F())}function c9(e,n){1&e&&(T(0,"span",3),et(1,1),T(2,"span",8),function mw(){z.lFrame.currentNamespace=Qb}(),T(3,"svg",9),St(4,"path",10),F()()())}function d9(e,n){1&e&&(T(0,"span",6),et(1,2),F())}const Qv=["*"],qh=new E("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),Kv=new E("MatChipAvatar"),Xv=new E("MatChipTrailingIcon"),Jv=new E("MatChipRemove"),Wh=new E("MatChip");let Ys=(()=>{class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,i){this._elementRef=t,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,"BUTTON"===t.nativeElement.nodeName&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Wh))};static#t=this.\u0275dir=R({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,r){1&i&&Le("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(Ue("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),gt("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",xe],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?-1:aM(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[Vn]})}return e})(),D9=0,Qs=(()=>{class e{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,i,r,o,s,a,l){this._changeDetectorRef=t,this._elementRef=i,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=l,this._onFocus=new Q,this._onBlur=new Q,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+D9++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._chipListDisabled=!1,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this._disabled=!1,this.removed=new le,this.destroyed=new le,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=w(wA),this._injector=w(Ge),this._document=s,this._animationsDisabled="NoopAnimations"===a,this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Jl(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(t){(8===t.keyCode&&!t.repeat||46===t.keyCode)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===t||r.contains(t)})}_getActions(){const t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const i=null!==t;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):Ni(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}static#e=this.\u0275fac=function(i){return new(i||e)(v(ui),v(ue),v($),v(wh),v(te),v(Ti,8),v(Eh,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(1&i&&(dn(o,Kv,5),dn(o,Xv,5),dn(o,Jv,5),dn(o,Kv,5),dn(o,Xv,5),dn(o,Jv,5)),2&i){let s;Tt(s=At())&&(r.leadingIcon=s.first),Tt(s=At())&&(r.trailingIcon=s.first),Tt(s=At())&&(r.removeIcon=s.first),Tt(s=At())&&(r._allLeadingIcons=s),Tt(s=At())&&(r._allTrailingIcons=s),Tt(s=At())&&(r._allRemoveIcons=s)}},viewQuery:function(i,r){if(1&i&&su(Ys,5),2&i){let o;Tt(o=At())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){1&i&&Le("keydown",function(s){return r._handleKeydown(s)}),2&i&&($r("id",r.id),Ue("role",r.role)("aria-label",r.ariaLabel),rl("mat-"+(r.color||"primary")),gt("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",xe],highlighted:[2,"highlighted","highlighted",xe],disableRipple:[2,"disableRipple","disableRipple",xe],disabled:[2,"disabled","disabled",xe]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[pe([{provide:Wh,useExisting:e}]),Vn,Xt],ngContentSelectors:iR,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){1&i&&(Un(nR),St(0,"span",0),T(1,"span",1)(2,"span",2),Ke(3,a9,2,0,"span",3),T(4,"span",4),et(5),St(6,"span",5),F()()(),Ke(7,l9,2,0,"span",6)),2&i&&(P(2),ie("isInteractive",!1),P(),di(r.leadingIcon?3:-1),P(4),di(r._hasTrailingIcon()?7:-1))},dependencies:[Ys],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),ey=(()=>{class e extends Qs{constructor(){super(...arguments),this._defaultOptions=w(qh,{optional:!0}),this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._selectable=!0,this._selected=!1,this.basicChipAttrName="mat-basic-chip-option",this.selectionChange=new le}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=t,this._changeDetectorRef.markForCheck()}get selected(){return this._selected}set selected(t){this._setSelectedState(t,!1,!0)}get ariaSelected(){return this.selectable?this.selected.toString():null}ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(t=!1){return this._setSelectedState(!this.selected,t,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(t,i,r){t!==this.selected&&(this._selected=t,r&&this.selectionChange.emit({source:this,isUserInput:i,selected:this.selected}),this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(i,r){2&i&&($r("id",r.id),Ue("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),gt("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",xe],selected:[2,"selected","selected",xe]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[pe([{provide:Qs,useExisting:e},{provide:Wh,useExisting:e}]),Vn,oe,Xt],ngContentSelectors:iR,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(i,r){1&i&&(Un(nR),St(0,"span",0),T(1,"span",1)(2,"button",2),Ke(3,c9,5,0,"span",3),T(4,"span",4),et(5),St(6,"span",5),F()()(),Ke(7,d9,2,0,"span",6),T(8,"span",7),se(9),F()),2&i&&(P(2),ie("_allowFocusWhenDisabled",!0),Ue("aria-selected",r.ariaSelected)("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),P(),di(r._hasLeadingGraphic()?3:-1),P(4),di(r._hasTrailingIcon()?7:-1),P(),ie("id",r._ariaDescriptionId),P(),qr(r.ariaDescription))},dependencies:[Ys],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),ty=(()=>{class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,i,r){this._elementRef=t,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Q,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new Ar}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(Kr(null),hn(()=>Jl(...this._chips.map(t))))}_originatesFromChip(t){let i=t.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Kr(this._chips)).subscribe(t=>{const i=[];t.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new bq(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(qe(this._destroyed)).subscribe(({chip:t})=>{const i=t._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(qe(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Kr(null),qe(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(qe(this._destroyed)).subscribe(t=>{const r=this._chips.toArray().indexOf(t.chip);this._isValidIndex(r)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[t];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(ui),v(Ch,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(1&i&&dn(o,Qs,5),2&i){let s;Tt(s=At())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){1&i&&Le("keydown",function(s){return r._handleKeydown(s)}),2&i&&Ue("role",r.role)},inputs:{disabled:[2,"disabled","disabled",xe],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:aM(t)]},standalone:!0,features:[Vn,Xt],ngContentSelectors:Qv,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Un(),T(0,"div",0),et(1),F())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})();class E9{constructor(n,t){this.source=n,this.value=t}}const x9={provide:Yn,useExisting:De(()=>ny),multi:!0};let ny=(()=>{class e extends ty{constructor(){super(...arguments),this._onTouched=()=>{},this._onChange=()=>{},this._defaultRole="listbox",this._defaultOptions=w(qh,{optional:!0}),this._multiple=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.compareWith=(t,i)=>t===i,this.required=!1,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.change=new le,this._chips=void 0}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._syncListboxProperties()}get selected(){const t=this._chips.toArray().filter(i=>i.selected);return this.multiple?t:t[0]}get selectable(){return this._selectable}set selectable(t){this._selectable=t,this._syncListboxProperties()}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncListboxProperties()}get chipSelectionChanges(){return this._getChipStream(t=>t.selectionChange)}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(Kr(null),qe(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(qe(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(qe(this._destroyed)).subscribe(t=>{this.multiple||this._chips.forEach(i=>{i!==t.source&&i._setSelectedState(!1,!1,!1)}),t.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const t=this._getFirstSelectedChip();t&&!t.disabled?t.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(t){this._chips?this._setSelectionByValue(t,!1):null!=t&&(this._pendingInitialValue=t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_setSelectionByValue(t,i=!0){this._clearSelection(),Array.isArray(t)?t.forEach(r=>this._selectValue(r,i)):this._selectValue(t,i)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(t){9===t.keyCode&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let t=null;t=Array.isArray(this.selected)?this.selected.map(i=>i.value):this.selected?this.selected.value:void 0,this._value=t,this.change.emit(new E9(this,t)),this._onChange(t),this._changeDetectorRef.markForCheck()}_clearSelection(t){this._chips.forEach(i=>{i!==t&&i.deselect()})}_selectValue(t,i){const r=this._chips.find(o=>null!=o.value&&this.compareWith(o.value,t));return r&&(i?r.selectViaInteraction():r.select()),r}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(t=>{t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable,t._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,t._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(t){return!t.isInteractive}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=$e(e)))(r||e)}})();static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-chip-listbox"]],contentQueries:function(i,r,o){if(1&i&&dn(o,ey,5),2&i){let s;Tt(s=At())&&(r._chips=s)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(i,r){1&i&&Le("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(s){return r._keydown(s)}),2&i&&($r("tabIndex",r.disabled||r.empty?-1:r.tabIndex),Ue("role",r.role)("aria-describedby",r._ariaDescribedby||null)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),gt("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{multiple:[2,"multiple","multiple",xe],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",xe],compareWith:"compareWith",required:[2,"required","required",xe],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",xe],value:"value"},outputs:{change:"change"},standalone:!0,features:[pe([x9]),Vn,oe,Xt],ngContentSelectors:Qv,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Un(),T(0,"div",0),et(1),F())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})(),T9=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[uA,{provide:qh,useValue:{separatorKeyCodes:[13]}}],imports:[zt,_A,zt]})}return e})();const A9=["addListener","removeListener"],k9=["addEventListener","removeEventListener"],R9=["on","off"];function iy(e,n,t,i){if(fe(t)&&(i=t,t=void 0),i)return iy(e,n,t).pipe(O_(i));const[r,o]=function O9(e){return fe(e.addEventListener)&&fe(e.removeEventListener)}(e)?k9.map(s=>a=>e[s](n,a,t)):function F9(e){return fe(e.addListener)&&fe(e.removeListener)}(e)?A9.map(aR(e,n)):function N9(e){return fe(e.on)&&fe(e.off)}(e)?R9.map(aR(e,n)):[];if(!r&&F_(e))return Ct(s=>iy(s,n,t))(Ut(e));if(!r)throw new TypeError("Invalid event target");return new Ne(s=>{const a=(...l)=>s.next(1o(a)})}function aR(e,n){return t=>i=>e[t](n,i)}const ac={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=ac;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new ze(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=ac;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=ac;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class L9 extends pv{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class P9 extends hv{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=ac.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(ac.cancelAnimationFrame(t),n._scheduled=void 0)}});let ry,B9=1;const Yh={};function lR(e){return e in Yh&&(delete Yh[e],!0)}const j9={setImmediate(e){const n=B9++;return Yh[n]=!0,ry||(ry=Promise.resolve()),ry.then(()=>lR(n)&&e()),n},clearImmediate(e){lR(e)}},{setImmediate:U9,clearImmediate:H9}=j9,Qh={setImmediate(...e){const{delegate:n}=Qh;return(n?.setImmediate||U9)(...e)},clearImmediate(e){const{delegate:n}=Qh;return(n?.clearImmediate||H9)(e)},delegate:void 0};new class $9 extends pv{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class z9 extends hv{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Qh.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Qh.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function cR(e=0,n,t=sq){let i=-1;return null!=n&&(ES(n)?t=n:i=n),new Ne(r=>{let o=function W9(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function dR(e,n=mv){return function q9(e){return Ze((n,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};n.subscribe(je(t,c=>{i=!0,r=c,o||Ut(e(c)).subscribe(o=je(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>cR(e,n))}let uR=(()=>{class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Q,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Ne(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(dR(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):N()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(fn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=$s(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>iy(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||e)(D($),D(Ht),D(te,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hR=(()=>{class e{constructor(t,i,r){this._platform=t,this._change=new Q,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(dR(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||e)(D(Ht),D($),D(te,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lc=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})(),fR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[Wl,lc,Wl,lc]})}return e})();class oy{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class pR extends oy{constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Q9 extends oy{constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class K9 extends oy{constructor(n){super(),this.element=n instanceof ue?n.nativeElement:n}}class X9{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof pR?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof Q9?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof K9?(this._attachedPortal=n,this.attachDomPortal(n)):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(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class J9 extends X9{constructor(n,t,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||Ge.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let mR=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})();const gR=B5();class eZ{constructor(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=st(-this._previousScrollPosition.left),n.style.top=st(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),gR&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gR&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class tZ{constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(fn(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _R{enable(){}disable(){}attach(){}}function sy(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function vR(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class nZ{constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();sy(t,[{width:i,height:r,bottom:r,right:i,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 iZ=(()=>{class e{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new _R,this.close=s=>new tZ(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new eZ(this._viewportRuler,this._document),this.reposition=s=>new nZ(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||e)(D(uR),D(hR),D($),D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class rZ{constructor(n){if(this.scrollStrategy=new _R,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class oZ{constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let yR=(()=>{class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||e)(D(te))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sZ=(()=>{class e extends yR{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),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)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D($,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),aZ=(()=>{class e extends yR{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ui(o)},this._clickListener=o=>{const s=Ui(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(bR(d.overlayElement,s)||bR(d.overlayElement,a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Ht),D($,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function bR(e,n){const t=typeof ShadowRoot<"u"&&ShadowRoot;let i=n;for(;i;){if(i===e)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let wR=(()=>{class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||cv()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new Q,this._outsidePointerEvents=new Q,this._renders=new Q,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=zn(()=>function HE(e,n){!n?.injector&&sp();const t=n?.injector??w(Ge);return ln(t)?(Pt("NgAfterRender"),zE(e,t,n,!1)):$E}(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ni(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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 t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=st(this._config.width),n.height=st(this._config.height),n.minWidth=st(this._config.minWidth),n.minHeight=st(this._config.minHeight),n.maxWidth=st(this._config.maxWidth),n.maxHeight=st(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="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(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,t,i){const r=gh(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const n=this._renders.pipe(qe(Jl(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()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const CR="cdk-overlay-connected-position-bounding-box",cZ=/([A-Za-z%]+)$/;class dZ{get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,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 Q,this._resizeSubscription=ze.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(CR),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.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 n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&po(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(CR),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=ER(t);let{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,h,f),g=p*m;return{visibleArea:g,isCompletelyWithinViewport:o.width*o.height===g,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=DR(this._overlayRef.getConfig().minHeight),a=DR(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=ER(t),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:n.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-n.x+2*this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=n.x,d=i.right-n.x;else{const f=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*f,u=n.x-f,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=st(i.height),r.top=st(i.top),r.bottom=st(i.bottom),r.width=st(i.width),r.left=st(i.left),r.right=st(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=st(o)),s&&(r.maxWidth=st(s))}this._lastBoundingBoxSize=i,po(this._boundingBox.style,r)}_resetBoundingBoxStyles(){po(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){po(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();po(i,this._getExactOverlayY(t,n,d)),po(i,this._getExactOverlayX(t,n,d))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=st(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=st(s.maxWidth):o&&(i.maxWidth="")),po(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=st(o.y),r}_getExactOverlayX(n,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=st(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vR(n,i),isOriginOutsideView:sy(n,i),isOverlayClipped:vR(t,i),isOverlayOutsideView:sy(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&gh(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof ue)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function po(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function DR(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(cZ);return t&&"px"!==t?null:parseFloat(n)}return e||null}function ER(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const xR="cdk-global-overlay-wrapper";class hZ{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(xR),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",m="";l?m="flex-start":"center"===d?(m="center",h?p=u:f=u):h?"left"===d||"end"===d?(m="flex-end",f=u):("right"===d||"start"===d)&&(m="flex-start",p=u):"left"===d||"start"===d?(m="flex-start",f=u):("right"===d||"end"===d)&&(m="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=l?"0":f,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(xR),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let fZ=(()=>{class e{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new hZ}flexibleConnectedTo(t){return new dZ(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||e)(D(hR),D(te),D(Ht),D(wR))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pZ=0,Ks=(()=>{class e{constructor(t,i,r,o,s,a,l,c,d,u,h,f){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new rZ(t);return s.direction=s.direction||this._directionality.value,new lZ(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(xt))}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+pZ++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Hn)),new J9(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||e)(D(iZ),D(wR),D(Wa),D(fZ),D(sZ),D(Ge),D($),D(te),D(Ch),D(Ms),D(aZ),D(Ti,8))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const _Z={provide:new E("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const e=w(Ks);return()=>e.scrollStrategies.reposition()}}),deps:[Ks],useFactory:function gZ(e){return()=>e.scrollStrategies.reposition()}};let vZ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[Ks,_Z],imports:[Wl,mR,fR,fR]})}return e})();const yZ=["tooltip"],MR=new E("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const e=w(Ks);return()=>e.scrollStrategies.reposition({scrollThrottle:20})}}),wZ={provide:MR,deps:[Ks],useFactory:function bZ(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},DZ=new E("mat-tooltip-default-options",{providedIn:"root",factory:function CZ(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),SR="tooltip-panel",TR=zl({passive:!0});let SZ=(()=>{class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=GT(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){const i=GT(t);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=qT(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=qT(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){const i=this._message;this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,r,o,s,a,l,c,d,u,h,f){this._overlay=t,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=TZ,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new Q,this._injector=w(Ge),this._scrollStrategy=d,this._document=f,h&&(this._showDelay=h.showDelay,this._hideDelay=h.hideDelay,h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures),h.tooltipClass&&(this.tooltipClass=h.tooltipClass)),u.change.pipe(qe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(qe(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,TR)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new pR(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(qe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof ue)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(qe(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${SR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(qe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(qe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(qe(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!ph(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(t){const r=!this._dir||"ltr"==this._dir.value;return"top"===t.originY?t.offsetY=-8:"bottom"===t.originY?t.offsetY=8:"start"===t.originX?t.offsetX=r?-8:8:"end"===t.originX&&(t.offsetX=r?8:-8),t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ni(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:o}=t;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${SR}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(i=t),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const i=t.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,TR)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static#e=this.\u0275fac=function(i){return new(i||e)(v(Ks),v(ue),v(uR),v(Qt),v($),v(Ht),v(_q),v(wh),v(MR),v(Ch),v(DZ,8),v(te))};static#t=this.\u0275dir=R({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&>("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}return e})(),TZ=(()=>{class e{constructor(t,i,r){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Q,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===r}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>24&&t.width>=200}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:r),i.classList.add(t?r:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static#e=this.\u0275fac=function(i){return new(i||e)(v(ui),v(ue),v(Ti,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&su(yZ,7),2&i){let o;Tt(o=At())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){1&i&&Le("mouseleave",function(s){return r._handleMouseLeave(s)})},standalone:!0,features:[Xt],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(1&i){const o=tu();T(0,"div",1,0),Le("animationend",function(a){return Kc(o),Xc(r._handleAnimationEnd(a))}),T(2,"div",2),se(3),F()()}2&i&&(gt("mdc-tooltip--multiline",r._isMultiline),ie("ngClass",r.tooltipClass),P(3),qr(r.message))},dependencies:[EM],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return e})(),AZ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:[wZ],imports:[Oq,g_,vZ,zt,zt,lc]})}return e})();function kZ(e,n){if(1&e){const t=tu();T(0,"a",10),Le("click",function(r){return Kc(t),Xc(r.stopPropagation())}),se(1),F()}if(2&e){const t=Ve().$implicit;Mg("href","https://store.steampowered.com/app/"+t.titleId,Yo),P(),Cn(" ",t.game_name," ")}}function RZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit;P(),Cn(" ",t.game_name," ")}}function FZ(e,n){if(1&e){const t=tu();T(0,"mat-chip-option",11),Le("click",function(r){const o=Kc(t).$implicit,s=Ve().$implicit;return Xc(Ve().onEngineClicked(r,s,o.key))}),se(1),F()}if(2&e){const t=n.$implicit,i=Ve().$implicit;ie("selected",Ve().titleEnginePicked[i.titleId]==t.key)("value",t.key),P(),Cn(" ",t.key," ")}}function NZ(e,n){1&e&&(T(0,"mat-icon",29),se(1," sports_esports "),F()),2&e&&Lt("color","darkgray")}function OZ(e,n){1&e&&(T(0,"mat-icon",30),se(1," sports_esports "),F()),2&e&&Lt("color","red")}function PZ(e,n){1&e&&(T(0,"mat-icon",31),se(1," sports_esports "),F()),2&e&&Lt("color","green")}function LZ(e,n){1&e&&(T(0,"mat-icon",32),se(1," sports_esports "),F()),2&e&&Lt("color","yellow")}function VZ(e,n){1&e&&(T(0,"mat-icon",33),se(1," sports_esports "),F()),2&e&&Lt("color","yellow")}function BZ(e,n){1&e&&(T(0,"mat-icon",34),se(1," sports_esports "),F()),2&e&&Lt("color","yellow")}function jZ(e,n){1&e&&(T(0,"mat-icon",35),se(1," cloud_off "),F()),2&e&&Lt("color","darkgray")}function UZ(e,n){if(1&e&&(T(0,"mat-icon",14),se(1," cloud "),F()),2&e){const t=Ve(2).$implicit,i=Ve();Lt("color","red"),ie("matTooltip","Game Has Cloud Saves But Not Supported Due to "+i.translate_key(t.cloudIssueReason))}}function HZ(e,n){1&e&&(T(0,"mat-icon",36),se(1," cloud "),F()),2&e&&Lt("color","darkgray")}function zZ(e,n){1&e&&(T(0,"mat-icon",37),se(1," cloud "),F()),2&e&&Lt("color","green")}function $Z(e,n){if(1&e&&(T(0,"div",9)(1,"div",25),se(2,"Version"),F(),T(3,"div",26),se(4),F()()),2&e){const t=Ve(2).$implicit,i=Ve();P(4),Cn(" ",t.engines[i.titleEnginePicked[t.titleId]].version," ")}}function GZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit;P(),Cn(" ",t.label," ")}}function qZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit,i=Ve(5);P(),Cn(" ",i.NOTICE_MAP[t.value]," ")}}function WZ(e,n){if(1&e&&(T(0,"div"),se(1),F()),2&e){const t=Ve().$implicit,i=Ve(5);P(),Cn(" ",i.NOTICE_MAP[t.key]," ")}}function ZZ(e,n){if(1&e&&(T(0,"li"),Ke(1,GZ,2,1,"div",6)(2,qZ,2,1,"div",6)(3,WZ,2,1,"div",6),F()),2&e){const t=n.$implicit;P(),ie("ngIf",t.label),P(),ie("ngIf",t.value),P(),ie("ngIf",t.key&&!t.value&&!t.label)}}function YZ(e,n){if(1&e&&(Cs(0),Ke(1,ZZ,4,3,"li",38),Ds()),2&e){const t=Ve(3).$implicit,i=Ve();P(),ie("ngForOf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function QZ(e,n){if(1&e&&(Cs(0),T(1,"div",12)(2,"ul"),Ke(3,YZ,2,1,"ng-container",6),F()(),Ds()),2&e){const t=Ve(2).$implicit,i=Ve();P(3),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function KZ(e,n){if(1&e&&(Cs(0),T(1,"div",12)(2,"div",9)(3,"div",13)(4,"mat-icon",14),se(5," install_desktop "),F(),T(6,"mat-icon",14),se(7," desktop_windows "),F(),T(8,"mat-icon",14),se(9," construction "),F(),Ke(10,NZ,2,2,"mat-icon",15)(11,OZ,2,2,"mat-icon",16)(12,PZ,2,2,"mat-icon",17)(13,LZ,2,2,"mat-icon",18)(14,VZ,2,2,"mat-icon",19)(15,BZ,2,2,"mat-icon",20)(16,jZ,2,2,"mat-icon",21)(17,UZ,2,3,"mat-icon",22)(18,HZ,2,2,"mat-icon",23)(19,zZ,2,2,"mat-icon",24),F()(),T(20,"div",9)(21,"div",25),se(22,"Engine"),F(),T(23,"div",26)(24,"a",27),se(25),F()()(),T(26,"div",9)(27,"div",25),se(28,"License"),F(),T(29,"div",26)(30,"a",27),se(31),F()()(),Ke(32,$Z,5,1,"div",28),T(33,"div",9)(34,"div",25),se(35,"Contributor"),F(),T(36,"div",26)(37,"a",27),se(38),F()()()(),Ke(39,QZ,4,1,"ng-container",6),Ds()),2&e){const t=Ve().$implicit,i=Ve();P(4),Lt("color",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"Manual Steps Required":"Automatic Installation"),P(2),Lt("color",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"red":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"Steam Overlay Disabled":"Steam Overlay Enabled"),P(2),Lt("color",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"Engine May Have Missing Features":"Engine Considered Feature Complete"),P(2),ie("ngIf",!(t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedSteamChanges||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGameAndSteam)),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&!t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&!t.controllerSteamDefault),P(),ie("ngIf",t.cloudNotAvailable),P(),ie("ngIf",t.cloudAvailable&&t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&t.cloudSupported),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].engine_link,Yo),P(),qr(i.titleEnginePicked[t.titleId]),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].license_link,Yo),P(),Cn(" ",t.engines[i.titleEnginePicked[t.titleId]].license," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].version),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].author_link,Yo),P(),Cn(" ",t.engines[i.titleEnginePicked[t.titleId]].author," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices||t.notices)}}function XZ(e,n){if(1&e&&(T(0,"div",2)(1,"div",3)(2,"div",4),Ke(3,kZ,2,2,"a",5)(4,RZ,2,1,"div",6),F(),T(5,"div",7)(6,"mat-chip-listbox"),Ke(7,FZ,2,3,"mat-chip-option",8),cu(8,"keyvalue"),F()()(),T(9,"div",9),Ke(10,KZ,40,27,"ng-container",6),F()()),2&e){const t=n.$implicit,i=Ve();P(3),ie("ngIf",!t.isDefault),P(),ie("ngIf",t.isDefault),P(3),ie("ngForOf",du(8,4,t.engines)),P(3),ie("ngIf",i.titleEnginePicked[t.titleId])}}let JZ=(()=>{class e{constructor(){this.titles=[],this.titleEnginePicked={},this.NOTICE_MAP={},this.runControllerCheck=!0}ngOnInit(){var t=this;return Ul(function*(){const i=yield fetch("/packagessniper_v2.json");t.titles=yield i.json(),t.enginesToMap(),t.noticeTranslationToMap(),t.sortTitles()})()}noticeTranslationToMap(){for(let t of this.titles.notice_translation)this.NOTICE_MAP[t.key]=t.value}enginesToMap(){const t={};for(let i of this.titles.engines)t[i.engine_name]=i;this.titles.engines=t}translate_key(t){return this.NOTICE_MAP[t]}processTitle(t){const i=t.app_id;if(t.engines={},t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue&&console.error(`title of ${t.game_name} has unknown cloud save feature state`),t.engine_name){const o=t.engine_name;this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`)}else if(t.engine_names)for(let o of t.engine_names)this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`);else if(t.choices)for(let o of t.choices){const s=o.name;this.titles.engines[s]?t.engines[s]=this.titles.engines[s]:o.engine_name&&this.titles.engines[o.engine_name]?t.engines[o.engine_name]=this.titles.engines[o.engine_name]:console.error(`engineName of ${s} not found from title of ${i}`)}else console.error(`missing information for ${i}`);const r=Object.keys(t.engines);r.sort(),this.titleEnginePicked[i]=r[0];for(let o in t.engines){const s=JSON.parse(JSON.stringify(t.engines[o]));if(t.notices){s.notices||(s.notices=[]);for(let a of t.notices)s.notices.push(a)}if(t.removeNotices){const a=[];for(let l of s.notices){let c=!0;for(let d of t.removeNotices)if(l.key===d){c=!1;break}c&&a.push(l)}s.notices=a}if(s.notices)for(let a of s.notices)"manual_steps"===a.key&&(s.manualSteps=!0),"steam_overlay_disabled"===a.key&&(s.steamOverlayDisabled=!0),"in_progress"===a.key&&(s.inProgress=!0);t.engines[o]=s}return t}sortTitles(){const t=[];let i=this.titles.default_engine;if(this.runControllerCheck)for(const r in this.titles.engines){const o=this.titles.engines[r];let s=!1;for(let a of Object.keys(o))if(-1!==a.indexOf("controller")){s=!0;break}s||console.error(`missing controller data for ${o.engine_name}`)}for(let r of this.titles.games)r.titleId=r.app_id,r=this.processTitle(r),t.push(r);t.sort(function(r,o){return r.game_nameo.game_name?1:0}),i&&(i.isDefault=!0,i.titleId="default",i.app_id="default",i=this.processTitle(i),t.unshift(i)),this.titles=t}onEngineClicked(t,i,r){this.titleEnginePicked[i.titleId]=r}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["app-packages"]],decls:2,vars:1,consts:[[1,"container-fluid","page-wrapper"],["class","row game-row",4,"ngFor","ngForOf"],[1,"row","game-row"],[1,"row","header-wrapper"],[1,"col-sm-6","game-title"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],[1,"col-sm-6","game-choices"],[3,"selected","value","click",4,"ngFor","ngForOf"],[1,"row"],["target","_blank",3,"click","href"],[3,"click","selected","value"],[1,"col-12","col-md-6"],[1,"col-12","status-icons"],[3,"matTooltip"],["matTooltip","Unknown Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Does Not Have Native Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings",3,"color",4,"ngIf"],["matTooltip","Game Does Not Have Cloud Saves",3,"color",4,"ngIf"],[3,"matTooltip","color",4,"ngIf"],["matTooltip","Game Has Cloud Saves But Unknown Status",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Supported",3,"color",4,"ngIf"],[1,"col-5","col-md-4","col-lg-3"],[1,"col-7","col-md-8"],["target","_blank",3,"href"],["class","row",4,"ngIf"],["matTooltip","Unknown Controller Support"],["matTooltip","Engine Does Not Have Native Controller Support"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings"],["matTooltip","Game Does Not Have Cloud Saves"],["matTooltip","Game Has Cloud Saves But Unknown Status"],["matTooltip","Cloud Saves Supported"],[4,"ngFor","ngForOf"]],template:function(i,r){1&i&&(T(0,"div",0),Ke(1,XZ,11,6,"div",1),F()),2&i&&(P(),ie("ngForOf",r.titles))},dependencies:[IM,SM,GW,ny,ey,SZ,RM],styles:[".packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.packages-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}.mat-chip[_ngcontent-%COMP%]{cursor:pointer!important}.page-wrapper[_ngcontent-%COMP%]{padding-top:1rem;color:#fff;max-width:1200px}.header-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:.5rem;padding-top:.5rem}.game-row[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 24px;margin-bottom:1rem;margin-left:15px;margin-right:15px;padding-bottom:.5rem}.game-title[_ngcontent-%COMP%], .engine-choices[_ngcontent-%COMP%]{align-self:center;margin-bottom:.5rem}div[_ngcontent-%COMP%]{word-break:break-word}.status-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.625rem}"]})}return e})();class eY extends Q{constructor(n=1/0,t=1/0,i=fv){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s"']/,nY=new RegExp(kR.source,"g"),RR=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,iY=new RegExp(RR.source,"g"),rY={"&":"&","<":"<",">":">",'"':""","'":"'"},FR=e=>rY[e];function mn(e,n){if(n){if(kR.test(e))return e.replace(nY,FR)}else if(RR.test(e))return e.replace(iY,FR);return e}const oY=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,aY=/(^|[^\[])\^/g;function Ce(e,n){let t="string"==typeof e?e:e.source;n=n||"";const i={replace:(r,o)=>{let s="string"==typeof o?o:o.source;return s=s.replace(aY,"$1"),t=t.replace(r,s),i},getRegex:()=>new RegExp(t,n)};return i}function NR(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const cc={exec:()=>null};function OR(e,n){const i=e.replace(/\|/g,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length0)return{type:"space",raw:t[0]}}code(n){const t=this.rules.block.code.exec(n);if(t){const i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Kh(i,"\n")}}}fences(n){const t=this.rules.block.fences.exec(n);if(t){const i=t[0],r=function cY(e,n){const t=e.match(/^(\s+)(?:```)/);if(null===t)return n;const i=t[1];return n.split("\n").map(r=>{const o=r.match(/^\s+/);if(null===o)return r;const[s]=o;return s.length>=i.length?r.slice(i.length):r}).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(n){const t=this.rules.block.heading.exec(n);if(t){let i=t[2].trim();if(/#$/.test(i)){const r=Kh(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(n){const t=this.rules.block.hr.exec(n);if(t)return{type:"hr",raw:t[0]}}blockquote(n){const t=this.rules.block.blockquote.exec(n);if(t){let i=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");i=Kh(i.replace(/^ *>[ \t]?/gm,""),"\n");const r=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:o,text:i}}}list(n){let t=this.rules.block.list.exec(n);if(t){let i=t[1].trim();const r=i.length>1,o={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");const s=new RegExp(`^( {0,3}${i})((?:[\t ][^\\n]*)?(?:\\n|$))`);let a="",l="",c=!1;for(;n;){let d=!1;if(!(t=s.exec(n))||this.rules.block.hr.test(n))break;a=t[0],n=n.substring(a.length);let u=t[2].split("\n",1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),h=n.split("\n",1)[0],f=0;this.options.pedantic?(f=2,l=u.trimStart()):(f=t[2].search(/[^ ]/),f=f>4?1:f,l=u.slice(f),f+=t[1].length);let p=!1;if(!u&&/^ *$/.test(h)&&(a+=h+"\n",n=n.substring(h.length+1),d=!0),!d){const y=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),_=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),x=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;n;){const B=n.split("\n",1)[0];if(h=B,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),x.test(h)||S.test(h)||y.test(h)||_.test(n))break;if(h.search(/[^ ]/)>=f||!h.trim())l+="\n"+h.slice(f);else{if(p||u.search(/[^ ]/)>=4||x.test(u)||S.test(u)||_.test(u))break;l+="\n"+h}!p&&!h.trim()&&(p=!0),a+=B+"\n",n=n.substring(B.length+1),u=h.slice(f)}}o.loose||(c?o.loose=!0:/\n *\n *$/.test(a)&&(c=!0));let g,m=null;this.options.gfm&&(m=/^\[[ xX]\] /.exec(l),m&&(g="[ ] "!==m[0],l=l.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:a,task:!!m,checked:g,loose:!1,text:l,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=l.trimEnd(),o.raw=o.raw.trimEnd();for(let d=0;d"space"===f.type),h=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));o.loose=h}if(o.loose)for(let d=0;d$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:r,title:o}}}table(n){const t=this.rules.block.table.exec(n);if(!t||!/[:|]/.test(t[2]))return;const i=OR(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),o=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===r.length){for(const a of r)/^ *-+: *$/.test(a)?s.align.push("right"):/^ *:-+: *$/.test(a)?s.align.push("center"):/^ *:-+ *$/.test(a)?s.align.push("left"):s.align.push(null);for(const a of i)s.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of o)s.rows.push(OR(a,s.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return s}}lheading(n){const t=this.rules.block.lheading.exec(n);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(n){const t=this.rules.block.paragraph.exec(n);if(t){const i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(n){const t=this.rules.block.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(n){const t=this.rules.inline.escape.exec(n);if(t)return{type:"escape",raw:t[0],text:mn(t[1])}}tag(n){const t=this.rules.inline.tag.exec(n);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(n){const t=this.rules.inline.link.exec(n);if(t){const i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;const s=Kh(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function lY(e,n){if(-1===e.indexOf(n[1]))return-1;let t=0;for(let i=0;i-1){const l=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),PR(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(n,t){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){const o=t[(i[2]||i[1]).replace(/\s+/g," ").toLowerCase()];if(!o){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return PR(i,o,i[0],this.lexer)}}emStrong(n,t,i=""){let r=this.rules.inline.emStrongLDelim.exec(n);if(!(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))&&(!r[1]&&!r[2]||!i||this.rules.inline.punctuation.exec(i))){const s=[...r[0]].length-1;let a,l,c=s,d=0;const u="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*n.length+s);null!=(r=u.exec(t));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&s%3&&!((s+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const h=[...r[0]][0].length,f=n.slice(0,s+r.index+h+l);if(Math.min(s,l)%2){const m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){const t=this.rules.inline.code.exec(n);if(t){let i=t[2].replace(/\n/g," ");const r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=mn(i,!0),{type:"codespan",raw:t[0],text:i}}}br(n){const t=this.rules.inline.br.exec(n);if(t)return{type:"br",raw:t[0]}}del(n){const t=this.rules.inline.del.exec(n);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(n){const t=this.rules.inline.autolink.exec(n);if(t){let i,r;return"@"===t[2]?(i=mn(t[1]),r="mailto:"+i):(i=mn(t[1]),r=i),{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(n){let t;if(t=this.rules.inline.url.exec(n)){let i,r;if("@"===t[2])i=mn(t[0]),r="mailto:"+i;else{let o;do{o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(o!==t[0]);i=mn(t[0]),r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(n){const t=this.rules.inline.text.exec(n);if(t){let i;return i=this.lexer.state.inRawBlock?t[0]:mn(t[0]),{type:"text",raw:t[0],text:i}}}}const dc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,LR=/(?:[*+-]|\d{1,9}[.)])/,VR=Ce(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,LR).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ly=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,cy=/(?!\s*\])(?:\\.|[^\[\]\\])+/,mY=Ce(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",cy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gY=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,LR).getRegex(),Jh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",dy=/|$))/,_Y=Ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",dy).replace("tag",Jh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),BR=Ce(ly).replace("hr",dc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Jh).getRegex(),uy={blockquote:Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",BR).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:mY,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:dc,html:_Y,lheading:VR,list:gY,newline:/^(?: *(?:\n|$))+/,paragraph:BR,table:cc,text:/^[^\n]+/},jR=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Jh).getRegex(),vY={...uy,table:jR,paragraph:Ce(ly).replace("hr",dc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jR).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Jh).getRegex()},yY={...uy,html:Ce("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",dy).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(ly).replace("hr",dc).replace("heading"," *#{1,6} *[^\n]").replace("lheading",VR).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},UR=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,HR=/^( {2,}|\\)\n(?!\s*$)/,uc="\\p{P}\\p{S}",CY=Ce(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,uc).getRegex(),EY=Ce(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,uc).getRegex(),xY=Ce("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,uc).getRegex(),IY=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,uc).getRegex(),MY=Ce(/\\([punct])/,"gu").replace(/punct/g,uc).getRegex(),SY=Ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),TY=Ce(dy).replace("(?:--\x3e|$)","--\x3e").getRegex(),AY=Ce("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",TY).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ef=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,kY=Ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ef).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),zR=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",ef).replace("ref",cy).getRegex(),$R=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",cy).getRegex(),hy={_backpedal:cc,anyPunctuation:MY,autolink:SY,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:HR,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:cc,emStrongLDelim:EY,emStrongRDelimAst:xY,emStrongRDelimUnd:IY,escape:UR,link:kY,nolink:$R,punctuation:CY,reflink:zR,reflinkSearch:Ce("reflink|nolink(?!\\()","g").replace("reflink",zR).replace("nolink",$R).getRegex(),tag:AY,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(i=a.call({lexer:this},n,t))&&(n=n.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.space(n)){n=n.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(n)){n=n.substring(i.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(i):(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.fences(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(n)){n=n.substring(i.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(i=this.tokenizer.table(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(n)){n=n.substring(i.raw.length),t.push(i);continue}if(o=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=n.slice(1);let c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(o=n.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){r=t[t.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=o.length!==n.length,n=n.substring(i.raw.length);continue}if(i=this.tokenizer.text(n)){n=n.substring(i.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,t}inline(n,t=[]){return this.inlineQueue.push({src:n,tokens:t}),t}inlineTokens(n,t=[]){let i,r,o,a,l,c,s=n;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)d.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;n;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>!!(i=d.call({lexer:this},n,t))&&(n=n.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.escape(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(n)){n=n.substring(i.raw.length),r=t[t.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(i.raw.length),r=t[t.length-1],r&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(n,s,c)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(n)){n=n.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(n)){n=n.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(n))){n=n.substring(i.raw.length),t.push(i);continue}if(o=n,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const u=n.slice(1);let h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},u),"number"==typeof h&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(o=n.substring(0,d+1))}if(i=this.tokenizer.inlineText(o)){n=n.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(c=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(n){const d="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}return t}}class go{options;constructor(n){this.options=n||mo}code(n,t,i){const r=(t||"").match(/^\S*/)?.[0];return n=n.replace(/\n$/,"")+"\n",r?'
    '+(i?n:mn(n,!0))+"
    \n":"
    "+(i?n:mn(n,!0))+"
    \n"}blockquote(n){return`
    \n${n}
    \n`}html(n,t){return n}heading(n,t,i){return`${n}\n`}hr(){return"
    \n"}list(n,t,i){const r=t?"ol":"ul";return"<"+r+(t&&1!==i?' start="'+i+'"':"")+">\n"+n+"\n"}listitem(n,t,i){return`
  • ${n}
  • \n`}checkbox(n){return"'}paragraph(n){return`

    ${n}

    \n`}table(n,t){return t&&(t=`${t}`),"\n\n"+n+"\n"+t+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,t){const i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return"
    "}del(n){return`${n}`}link(n,t,i){const r=NR(n);if(null===r)return i;let o='
    ",o}image(n,t,i){const r=NR(n);if(null===r)return i;let o=`${i}"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue}case"code":i+=this.renderer.code(o.text,o.lang,!!o.escaped);continue;case"table":{const s=o;let a="",l="";for(let d=0;d0&&"paragraph"===h.tokens[0].type?(h.tokens[0].text=g+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&"text"===h.tokens[0].tokens[0].type&&(h.tokens[0].tokens[0].text=g+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:g+" "}):m+=g+" "}m+=this.parse(h.tokens,c),d+=this.renderer.listitem(m,p,!!f)}i+=this.renderer.list(d,a,l);continue}case"html":i+=this.renderer.html(o.text,o.block);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(o.tokens));continue;case"text":{let s=o,a=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1{const a=o[s].flat(1/0);i=i.concat(this.walkTokens(a,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...n){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=t.renderers[o.name];t.renderers[o.name]=s?function(...a){let l=o.renderer.apply(this,a);return!1===l&&(l=s.apply(this,a)),l}:o.renderer}if("tokenizer"in o){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");const s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&("block"===o.level?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:"inline"===o.level&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),i.renderer){const o=this.defaults.renderer||new go(this.defaults);for(const s in i.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if("options"===s)continue;const l=i.renderer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u||""}}r.renderer=o}if(i.tokenizer){const o=this.defaults.tokenizer||new Xh(this.defaults);for(const s in i.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=i.tokenizer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.tokenizer=o}if(i.hooks){const o=this.defaults.hooks||new nf;for(const s in i.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if("options"===s)continue;const l=i.hooks[s],c=o[s];o[s]=nf.passThroughHooks.has(s)?d=>{if(this.defaults.async)return Promise.resolve(l.call(o,d)).then(h=>c.call(o,h));const u=l.call(o,d);return c.call(o,u)}:(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.hooks=o}if(i.walkTokens){const o=this.defaults.walkTokens,s=i.walkTokens;r.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,t){return _i.lex(n,t??this.defaults)}parser(n,t){return vi.parse(n,t??this.defaults)}#e(n,t){return(i,r)=>{const o={...r},s={...this.defaults,...o};!0===this.defaults.async&&!1===o.async&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const a=this.#t(!!s.silent,!!s.async);if(typeof i>"u"||null===i)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(l=>n(l,s)).then(l=>s.hooks?s.hooks.processAllTokens(l):l).then(l=>s.walkTokens?Promise.all(this.walkTokens(l,s.walkTokens)).then(()=>l):l).then(l=>t(l,s)).then(l=>s.hooks?s.hooks.postprocess(l):l).catch(a);try{s.hooks&&(i=s.hooks.preprocess(i));let l=n(i,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let c=t(l,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(l){return a(l)}}}#t(n,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const r="

    An error occurred:

    "+mn(i.message+"",!0)+"
    ";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}}};function me(e,n){return _o.parse(e,n)}me.options=me.setOptions=function(e){return _o.setOptions(e),AR(me.defaults=_o.defaults),me},me.getDefaults=function ay(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},me.defaults=mo,me.use=function(...e){return _o.use(...e),AR(me.defaults=_o.defaults),me},me.walkTokens=function(e,n){return _o.walkTokens(e,n)},me.parseInline=_o.parseInline,me.Parser=vi,me.parser=vi.parse,me.Renderer=go,me.TextRenderer=py,me.Lexer=_i,me.lexer=_i.lex,me.Tokenizer=Xh,me.Hooks=nf,me.parse=me;const PY=["*"];let GR=(()=>{class e{constructor(){this._buttonClick$=new Q,this.copied$=this._buttonClick$.pipe(hn(()=>Jl(N(!0),cR(3e3).pipe(RS(!1)))),zT(),function tY(e,n,t){let i,r=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:t}=e):i=e??1/0,DA({connector:()=>new eY(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(Kr(!1),Z(t=>t?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["markdown-clipboard"]],standalone:!0,features:[Xt],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,r){1&i&&(T(0,"button",0),cu(1,"async"),Le("click",function(){return r.onCopyToClipboardClick()}),se(2),cu(3,"async"),F()),2&i&&(gt("copied",du(1,3,r.copied$)),P(2),qr(du(3,5,r.copiedText$)))},dependencies:[kM],encapsulation:2,changeDetection:0})}return e})();const BY=new E("CLIPBOARD_OPTIONS");var my=function(e){return e.CommandLine="command-line",e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}(my||{});const qR=new E("MARKED_EXTENSIONS"),UY=new E("MARKED_OPTIONS"),WR=new E("SECURITY_CONTEXT");let gy=(()=>{class e{get options(){return this._options}set options(t){this._options={...this.DEFAULT_MARKED_OPTIONS,...t}}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}constructor(t,i,r,o,s,a,l){this.clipboardOptions=t,this.extensions=i,this.platform=o,this.securityContext=s,this.http=a,this.sanitizer=l,this.DEFAULT_MARKED_OPTIONS={renderer:new go},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Q,this.reload$=this._reload$.asObservable(),this.options=r}parse(t,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,disableSanitizer:l}=i,c={...this.options,...i.markedOptions},d=c.renderer||this.renderer||new go;this.extensions&&(this.renderer=this.extendsRendererForExtensions(d)),a&&(this.renderer=this.extendsRendererForMermaid(d));const u=this.trimIndentation(t),h=r?this.decodeHtml(u):u,f=s?this.parseEmoji(h):h,p=this.parseMarked(f,c,o);return(l?p:this.sanitizer.sanitize(this.securityContext,p))||""}render(t,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:d}=i;a&&this.renderKatex(t,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(t,{...this.DEFAULT_MERMAID_OPTIONS,...d}),o&&this.renderClipboard(t,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),this.highlight(t)}reload(){this._reload$.next()}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(Z(i=>this.handleExtension(t,i)))}highlight(t){if(!sr(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;t||(t=document);const i=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(t)}decodeHtml(t){if(!sr(this.platform))return t;const i=document.createElement("textarea");return i.innerHTML=t,i.value}extendsRendererForExtensions(t){const i=t;return!0===i.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&me.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),t}extendsRendererForMermaid(t){const i=t;if(!0===i.\u0275NgxMarkdownRendererExtendedForMermaid)return t;const r=t.code;return t.code=function(o,s,a){return"mermaid"===s?`
    ${o}
    `:r.call(this,o,s,a)},i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,t}handleExtension(t,i){const r=t.lastIndexOf("://"),o=r>-1?t.substring(r+4):t,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+i+"\n```":i}parseMarked(t,i,r=!1){if(i.renderer){const o={...i.renderer};delete o.\u0275NgxMarkdownRendererExtendedForExtensions,delete o.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,me.use({renderer:o})}return r?me.parseInline(t,i):me.parse(t,i)}parseEmoji(t){if(!sr(this.platform))return t;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}renderKatex(t,i){if(sr(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(t,i)}}renderClipboard(t,i,r){if(!sr(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=t.querySelectorAll("pre");for(let l=0;lu.classList.add("hover"),d.onmouseleave=()=>u.classList.remove("hover"),o){const p=i.createComponent(o);h=p.hostView,p.changeDetectorRef.markForCheck()}else if(s)h=i.createEmbeddedView(s);else{const p=i.createComponent(GR);h=p.hostView,p.changeDetectorRef.markForCheck()}h.rootNodes.forEach(p=>{u.appendChild(p),f=new ClipboardJS(p,{text:()=>c.innerText})}),h.onDestroy(()=>f.destroy())}}renderMermaid(t,i=this.DEFAULT_MERMAID_OPTIONS){if(!sr(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=t.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.run({nodes:r}))}trimIndentation(t){if(!t)return"";let i;return t.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}static#e=this.\u0275fac=function(i){return new(i||e)(D(BY,8),D(qR,8),D(UY,8),D(Ln),D(WR),D(Ql,8),D(xl))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),ZR=(()=>{class e{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(t){this._disableSanitizer=this.coerceBooleanProperty(t)}get inline(){return this._inline}set inline(t){this._inline=this.coerceBooleanProperty(t)}get clipboard(){return this._clipboard}set clipboard(t){this._clipboard=this.coerceBooleanProperty(t)}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get mermaid(){return this._mermaid}set mermaid(t){this._mermaid=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}get commandLine(){return this._commandLine}set commandLine(t){this._commandLine=this.coerceBooleanProperty(t)}constructor(t,i,r){this.element=t,this.markdownService=i,this.viewContainerRef=r,this.error=new le,this.load=new le,this.ready=new le,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Q}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(qe(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(t,i=!1){var r=this;return Ul(function*(){const o={decodeHtml:i,inline:r.inline,emoji:r.emoji,mermaid:r.mermaid,disableSanitizer:r.disableSanitizer},s={clipboard:r.clipboard,clipboardOptions:r.getClipboardOptions(),katex:r.katex,katexOptions:r.katexOptions,mermaid:r.mermaid,mermaidOptions:r.mermaidOptions},a=yield r.markdownService.parse(t,o);r.element.nativeElement.innerHTML=a,r.handlePlugins(),r.markdownService.render(r.element.nativeElement,s,r.viewContainerRef),r.ready.emit()})()}coerceBooleanProperty(t){return null!=t&&"false"!=`${String(t)}`}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:t=>{this.render(t).then(()=>{this.load.emit(t)})},error:t=>this.error.emit(t)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,my.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,my.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,i){const r=t.querySelectorAll("pre");for(let o=0;o{const a=i[s];if(a){const l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(t){const i=t.match(/([A-Z])/g);if(!i)return t;let r=t.toString();for(let o=0,s=i.length;o{class e{static forRoot(t){return{ngModule:e,providers:[YY(t)]}}static forChild(){return{ngModule:e}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[g_]})}return e})();var YR;!function(e){let n;var r;let t,i;(r=n=e.SecurityLevel||(e.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(t=e.Theme||(e.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(i=e.LogLevel||(e.LogLevel={}))}(YR||(YR={}));const KY=[{path:"packages",component:JZ},{path:"**",component:(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["app-home"]],decls:3,vars:0,consts:[[1,"container-fluid","page-wrapper"],[1,"content"],["src","README.md"]],template:function(i,r){1&i&&(T(0,"div",0)(1,"div",1),St(2,"markdown",2),F()())},dependencies:[ZR],styles:[".content[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 16px;margin-top:1rem;margin-bottom:1rem;padding-bottom:.5rem;color:#fff}"]})}return e})()}];let XY=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[NT.forRoot(KY),NT]})}return e})();const JY=["*",[["mat-toolbar-row"]]],eQ=["*","mat-toolbar-row"];let tQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=R({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}return e})(),nQ=(()=>{class e{constructor(t,i,r){this._elementRef=t,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Ht),v(te))};static#t=this.\u0275cmp=vt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&dn(o,tQ,5),2&i){let s;Tt(s=At())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){2&i&&(rl(r.color?"mat-"+r.color:""),gt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Xt],ngContentSelectors:eQ,decls:2,vars:0,template:function(i,r){1&i&&(Un(JY),et(0),et(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return e})(),iQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,zt]})}return e})();const rQ=["mat-button",""],oQ=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],sQ=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],aQ=new E("MAT_BUTTON_CONFIG"),lQ=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let cQ=(()=>{class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,i,r,o){this._elementRef=t,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=w(wh),this._rippleLoader=w(wA),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=w(aQ,{optional:!0}),a=t.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(const{attribute:c,mdcClasses:d}of lQ)a.hasAttribute(c)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",i){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){bm()};static#t=this.\u0275dir=R({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",xe],disabled:[2,"disabled","disabled",xe],ariaDisabled:[2,"aria-disabled","ariaDisabled",xe],disabledInteractive:[2,"disabledInteractive","disabledInteractive",xe]},features:[Vn]})}return e})(),dQ=(()=>{class e extends cQ{constructor(t,i,r,o){super(t,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||e)(v(ue),v(Ht),v($),v(Ti,8))};static#t=this.\u0275cmp=vt({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(Ue("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),rl(r.color?"mat-"+r.color:""),gt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[oe,Xt],attrs:rQ,ngContentSelectors:sQ,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(Un(oQ),St(0,"span",0),et(1),T(2,"span",1),et(3,1),F(),et(4,2),St(5,"span",2)(6,"span",3)),2&i&>("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return e})(),hQ=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,_A,zt]})}return e})(),fQ=(()=>{class e{constructor(){this.title="webui"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=vt({type:e,selectors:[["app-root"]],decls:9,vars:0,consts:[[1,"example-spacer"],["color","primary","routerLink","/","mat-raised-button","","aria-label","Client",1,"client-button"],["color","primary","routerLink","/packages","mat-raised-button","","aria-label","Packages"]],template:function(i,r){1&i&&(T(0,"mat-toolbar")(1,"span"),se(2,"Luxtorpeda"),F(),St(3,"span",0),T(4,"button",1),se(5," Client "),F(),T(6,"button",2),se(7," Packages "),F()(),St(8,"router-outlet"))},dependencies:[Q_,hh,nQ,dQ],styles:[".example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{background:#303030!important;border-bottom:1px solid gray}.client-button[_ngcontent-%COMP%]{margin-right:.625rem}"]})}return e})();function QR(e){return new b(3e3,!1)}function mr(e){switch(e.length){case 0:return new sc;case 1:return e[0];default:return new tR(e)}}function KR(e,n,t=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let p=f,m=h;if("offset"!==f)switch(p=e.normalizePropertyName(p,r),m){case"!":m=t.get(f);break;case zi:m=i.get(f);break;default:m=e.normalizeStyleValue(f,p,m,r)}u.set(p,m)}),d||o.push(u),a=u,s=c}),r.length)throw function PQ(){return new b(3502,!1)}();return o}function _y(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&vy(t,"start",e)));break;case"done":e.onDone(()=>i(t&&vy(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&vy(t,"destroy",e)))}}function vy(e,n,t){const o=yy(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function yy(e,n,t,i,r="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function gn(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function XR(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const ZQ=typeof document>"u"?null:document.documentElement;function by(e){const n=e.parentNode||e.host||null;return n===ZQ?null:n}let vo=null,JR=!1;function eF(e,n){for(;n;){if(n===e)return!0;n=by(n)}return!1}function tF(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let wy=(()=>{class e{validateStyleProperty(t){return function QQ(e){vo||(vo=function KQ(){return typeof document<"u"?document.body:null}()||{},JR=!!vo.style&&"WebkitAppearance"in vo.style);let n=!0;return vo.style&&!function YQ(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in vo.style,!n&&JR&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in vo.style)),n}(t)}containsElement(t,i){return eF(t,i)}getParentElement(t){return by(t)}query(t,i,r){return tF(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new sc(r,o)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})();class Cy{static#e=this.NOOP=new wy}class Dy{}const JQ=1e3,Ey="ng-enter",rf="ng-leave",sf="ng-trigger",af=".ng-trigger",iF="ng-animating",xy=".ng-animating";function Gi(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Iy(parseFloat(n[1]),n[2])}function Iy(e,n){return"s"===n?e*JQ:e}function lf(e,n,t){return e.hasOwnProperty("duration")?e:function t7(e,n,t){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(QR()),{duration:0,delay:0,easing:""};r=Iy(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Iy(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=e;if(!t){let a=!1,l=n.length;r<0&&(n.push(function pQ(){return new b(3100,!1)}()),a=!0),o<0&&(n.push(function mQ(){return new b(3101,!1)}()),a=!0),a&&n.splice(l,0,QR())}return{duration:r,delay:o,easing:s}}(e,n,t)}function yi(e,n,t){n.forEach((i,r)=>{const o=Sy(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function yo(e,n){n.forEach((t,i)=>{const r=Sy(i);e.style[r]=""})}function fc(e){return Array.isArray(e)?1==e.length?e[0]:function Z6(e,n=null){return{type:G.Sequence,steps:e,options:n}}(e):e}const My=new RegExp("{{\\s*(.+?)\\s*}}","g");function oF(e){let n=[];if("string"==typeof e){let t;for(;t=My.exec(e);)n.push(t[1]);My.lastIndex=0}return n}function pc(e,n,t){const i=`${e}`,r=i.replace(My,(o,s)=>{let a=n[s];return null==a&&(t.push(function _Q(){return new b(3003,!1)}()),a=""),a.toString()});return r==i?e:r}const r7=/-+([a-z0-9])/g;function Sy(e){return e.replace(r7,(...n)=>n[1].toUpperCase())}function _n(e,n,t){switch(n.type){case G.Trigger:return e.visitTrigger(n,t);case G.State:return e.visitState(n,t);case G.Transition:return e.visitTransition(n,t);case G.Sequence:return e.visitSequence(n,t);case G.Group:return e.visitGroup(n,t);case G.Animate:return e.visitAnimate(n,t);case G.Keyframes:return e.visitKeyframes(n,t);case G.Style:return e.visitStyle(n,t);case G.Reference:return e.visitReference(n,t);case G.AnimateChild:return e.visitAnimateChild(n,t);case G.AnimateRef:return e.visitAnimateRef(n,t);case G.Query:return e.visitQuery(n,t);case G.Stagger:return e.visitStagger(n,t);default:throw function vQ(){return new b(3004,!1)}()}}function Ty(e,n){return window.getComputedStyle(e)[n]}const a7=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 sF extends Dy{normalizePropertyName(n,t){return Sy(n)}normalizeStyleValue(n,t,i,r){let o="";const s=i.toString().trim();if(a7.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function yQ(){return new b(3005,!1)}())}return s+o}}const cf="*";const df=new Set(["true","1"]),uf=new Set(["false","0"]);function aF(e,n){const t=df.has(e)||uf.has(e),i=df.has(n)||uf.has(n);return(r,o)=>{let s=e==cf||e==r,a=n==cf||n==o;return!s&&t&&"boolean"==typeof r&&(s=r?df.has(e):uf.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?df.has(n):uf.has(n)),s&&a}}const u7=new RegExp("s*:selfs*,?","g");function Ay(e,n,t,i){return new h7(e).build(n,t,i)}class h7{constructor(n){this._driver=n}build(n,t,i){const r=new m7(t);return this._resetContextStyleTimingState(r),_n(this,fc(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function bQ(){return new b(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==G.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,t))}),l.name=c}else if(a.type==G.Transition){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function wQ(){return new b(3007,!1)}())}),{type:G.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{oF(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(function CQ(){return new b(3008,!1)}(0,o.values()))}return{type:G.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=_n(this,fc(n.animation),t),r=function l7(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function c7(e,n,t){if(":"==e[0]){const l=function d7(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function kQ(){return new b(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(aF(r,s)),"<"==o[0]&&(r!=cf||s!=cf)&&n.push(aF(s,r))}(i,t,n)):t.push(e),t}(n.expr,t.errors);return{type:G.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:bo(n.options)}}visitSequence(n,t){return{type:G.Sequence,steps:n.steps.map(i=>_n(this,i,t)),options:bo(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(s=>{t.currentTime=i;const a=_n(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:o,options:bo(n.options)}}visitAnimate(n,t){const i=function _7(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return ky(lf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=ky(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=lf(t,n);return ky(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:Mn({});if(o.type==G.Keyframes)r=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Mn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===zi?i.push(a):t.errors.push(new b(3002,!1)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:G.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function EQ(){return new b(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),t.options&&function i7(e,n,t){const i=n.params||{},r=oF(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function gQ(){return new b(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function xQ(){return new b(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const d=n.steps.map(y=>{const _=this._makeStyleAst(y,t);let x=null!=_.offset?_.offset:function g7(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(_.styles),S=0;return null!=x&&(o++,S=_.offset=x),l=l||S<0||S>1,a=a||S0&&o{const x=h>0?_==f?1:h*_:s[_],S=x*g;t.currentTime=p+m.delay+S,m.duration=S,this._validateStyleAst(y,t),y.offset=x,i.styles.push(y)}),i}visitReference(n,t){return{type:G.Reference,animation:_n(this,fc(n.animation),t),options:bo(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:G.AnimateChild,options:bo(n.options)}}visitAnimateRef(n,t){return{type:G.AnimateRef,animation:this.visitReference(n.animation,t),options:bo(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function f7(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(u7,"")),e=e.replace(/@\*/g,af).replace(/@\w+/g,t=>af+"-"+t.slice(1)).replace(/:animating/g,xy),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,gn(t.collectedStyles,t.currentQuerySelector,new Map);const a=_n(this,fc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:G.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:bo(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function TQ(){return new b(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:lf(n.timings,t.errors,!0);return{type:G.Stagger,animation:_n(this,fc(n.animation),t),timings:i,options:null}}}class m7{constructor(n){this.errors=n,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 bo(e){return e?(e={...e}).params&&(e.params=function p7(e){return e?{...e}:null}(e.params)):e={},e}function ky(e,n,t){return{duration:e,delay:n,easing:t}}function Ry(e,n,t,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class hf{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const b7=new RegExp(":enter","g"),C7=new RegExp(":leave","g");function Fy(e,n,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new D7).buildKeyframes(e,n,t,i,r,o,s,a,l,c)}class D7{buildKeyframes(n,t,i,r,o,s,a,l,c,d=[]){c=c||new hf;const u=new Ny(n,t,c,r,o,d,[]);u.options=l;const h=l.delay?Gi(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),_n(this,i,u);const f=u.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let m=f.length-1;m>=0;m--){const g=f[m];if(g.element===t){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Ry(t,[],[],[],0,h,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Gi(pc(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?Gi(i.duration):null,a=null!=i.delay?Gi(i.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),_n(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==G.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ff);const s=Gi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_n(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Gi(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),_n(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return lf(t.params?pc(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==G.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Gi(r.delay):0;o&&(t.previousNode.type===G.Style||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ff);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,c);o&&u.delayNextStep(o),c===t.element&&(l=u.currentTimeline),_n(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=t.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;_n(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const ff={};class Ny{constructor(n,t,i,r,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ff,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pf(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Gi(i.duration)),null!=i.delay&&(r.delay=Gi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=pc(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new Ny(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=ff,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new E7(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(b7,"."+this._enterClassName)).replace(C7,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function AQ(){return new b(3014,!1)}()),a}}class pf{constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new pf(this._driver,n,t||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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||zi),this._currentKeyframe.set(t,zi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function x7(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)t.set(o,zi)}else for(let[o,s]of r)t.set(o,s)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=pc(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zi),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{"!"===d?n.add(u):d===zi&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});const o=[...n.values()],s=[...t.values()];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Ry(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class E7 extends pf{constructor(n,t,i,r,o,s,a=!1){super(n,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=new Map(n[0]);l.set("offset",0),o.push(l);const c=new Map(n[0]);c.set("offset",dF(a)),o.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let h=new Map(n[u]);const f=h.get("offset");h.set("offset",dF((t+f*i)/s)),o.push(h)}i=s,t=0,r="",n=o}return Ry(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function dF(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function uF(e,n,t,i,r,o,s,a,l,c,d,u,h){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Oy={};class hF{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function I7(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Oy,p=this.buildStyles(i,a&&a.params||Oy,u),m=l&&l.params||Oy,g=this.buildStyles(r,m,u),y=new Set,_=new Map,x=new Map,S="void"===r,B={params:fF(m,h),delay:this.ast.options?.delay},Y=d?[]:Fy(n,t,this.ast.animation,o,s,p,g,B,c,u);let re=0;return Y.forEach(Be=>{re=Math.max(Be.duration+Be.delay,re)}),u.length?uF(t,this._triggerName,i,r,S,p,g,[],[],_,x,re,u):(Y.forEach(Be=>{const bi=Be.element,Js=gn(_,bi,new Set);Be.preStyleProps.forEach(wo=>Js.add(wo));const TF=gn(x,bi,new Set);Be.postStyleProps.forEach(wo=>TF.add(wo)),bi!==t&&y.add(bi)}),uF(t,this._triggerName,i,r,S,p,g,Y,[...y.values()],_,x,re))}}function fF(e,n){const t={...n};return Object.entries(e).forEach(([i,r])=>{null!=r&&(t[i]=r)}),t}class M7{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=fF(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=pc(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class T7{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new M7(r.style,r.options&&r.options.params||{},i))}),pF(this.states,"true","1"),pF(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new hF(n,r,this.states))}),this.fallbackTransition=function A7(e,n){return new hF(e,{type:G.Transition,animation:{type:G.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(s=>s.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function pF(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const k7=new hf;class R7{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],o=Ay(this._driver,t,i,[]);if(i.length)throw function LQ(){return new b(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=KR(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Fy(this._driver,t,o,Ey,rf,new Map,new Map,i,k7,r),s.forEach(d=>{const u=gn(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function VQ(){return new b(3300,!1)}()),s=[]),r.length)throw function BQ(){return new b(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,zi))})});const c=mr(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function jQ(){return new b(3301,!1)}();return t}listen(n,t,i,r){const o=yy(t,"","","");return _y(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const mF="ng-animate-queued",Py="ng-animate-disabled",L7=[],gF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},V7={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qn="__ng_removed";class Ly{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function H7(e){return e??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const mc="void",Vy=new Ly(mc);class B7{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Sn(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function UQ(){return new b(3302,!1)}();if(null==i||0==i.length)throw function HQ(){return new b(3303,!1)}();if(!function z7(e){return"start"==e||"done"==e}(i))throw function zQ(){return new b(3400,!1)}();const o=gn(this._elementListeners,n,[]),s={name:t,phase:i,callback:r};o.push(s);const a=gn(this._engine.statesByElement,n,new Map);return a.has(t)||(Sn(n,sf),Sn(n,sf+"-"+t),a.set(t,Vy)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function $Q(){return new b(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),s=new By(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(Sn(n,sf),Sn(n,sf+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new Ly(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Vy),c.value!==mc&&l.value===c.value){if(!function q7(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r{yo(n,g),yi(n,y)})}return}const h=gn(this._engine.playersByElement,n,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Sn(n,mF),s.onStart(()=>{Xs(n,mF)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let y=g.indexOf(s);y>=0&&g.splice(y,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,af,!0);i.forEach(r=>{if(r[Qn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(n,c,mc,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&mr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Vy,d=new Ly(mc),u=new By(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,t);else{const o=n[Qn];(!o||o===gF)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){Sn(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=yy(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,_y(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class j7{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,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=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new B7(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(mf(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!mf(t))return;const o=t[Qn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Sn(n,Py)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Xs(n,Py))}removeNode(n,t,i){if(mf(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[Qn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return mf(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,af,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,xy,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return mr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[Qn];if(t&&t.setForRemoval){if(n[Qn]=gF,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Py)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?mr(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function GQ(){return new b(3402,!1)}()}_flushAnimations(n,t){const i=new hf,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(A=>{d.add(A);const L=this.driver.query(A,".ng-animate-queued",!0);for(let U=0;U{const U=Ey+m++;p.set(L,U),A.forEach(he=>Sn(he,U))});const g=[],y=new Set,_=new Set;for(let A=0;Ay.add(he)):_.add(L))}const x=new Map,S=yF(h,Array.from(y));S.forEach((A,L)=>{const U=rf+m++;x.set(L,U),A.forEach(he=>Sn(he,U))}),n.push(()=>{f.forEach((A,L)=>{const U=p.get(L);A.forEach(he=>Xs(he,U))}),S.forEach((A,L)=>{const U=x.get(L);A.forEach(he=>Xs(he,U))}),g.forEach(A=>{this.processLeaveNode(A)})});const B=[],Y=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(U=>{const he=U.player,_t=U.element;if(B.push(he),this.collectedEnterElements.length){const Rt=_t[Qn];if(Rt&&Rt.setForMove){if(Rt.previousTriggersValues&&Rt.previousTriggersValues.has(U.triggerName)){const Co=Rt.previousTriggersValues.get(U.triggerName),Tn=this.statesByElement.get(U.element);if(Tn&&Tn.has(U.triggerName)){const _f=Tn.get(U.triggerName);_f.value=Co,Tn.set(U.triggerName,_f)}}return void he.destroy()}}const wi=!u||!this.driver.containsElement(u,_t),vn=x.get(_t),gr=p.get(_t),He=this._buildInstruction(U,i,gr,vn,wi);if(He.errors&&He.errors.length)return void Y.push(He);if(wi)return he.onStart(()=>yo(_t,He.fromStyles)),he.onDestroy(()=>yi(_t,He.toStyles)),void r.push(he);if(U.isFallbackTransition)return he.onStart(()=>yo(_t,He.fromStyles)),he.onDestroy(()=>yi(_t,He.toStyles)),void r.push(he);const RF=[];He.timelines.forEach(Rt=>{Rt.stretchStartingKeyframe=!0,this.disabledNodes.has(Rt.element)||RF.push(Rt)}),He.timelines=RF,i.append(_t,He.timelines),s.push({instruction:He,player:he,element:_t}),He.queriedElements.forEach(Rt=>gn(a,Rt,[]).push(he)),He.preStyleProps.forEach((Rt,Co)=>{if(Rt.size){let Tn=l.get(Co);Tn||l.set(Co,Tn=new Set),Rt.forEach((_f,zy)=>Tn.add(zy))}}),He.postStyleProps.forEach((Rt,Co)=>{let Tn=c.get(Co);Tn||c.set(Co,Tn=new Set),Rt.forEach((_f,zy)=>Tn.add(zy))})});if(Y.length){const A=[];Y.forEach(L=>{A.push(function qQ(){return new b(3505,!1)}())}),B.forEach(L=>L.destroy()),this.reportError(A)}const re=new Map,Be=new Map;s.forEach(A=>{const L=A.element;i.has(L)&&(Be.set(L,L),this._beforeAnimationBuild(A.player.namespaceId,A.instruction,re))}),r.forEach(A=>{const L=A.element;this._getPreviousPlayers(L,!1,A.namespaceId,A.triggerName,null).forEach(he=>{gn(re,L,[]).push(he),he.destroy()})});const bi=g.filter(A=>wF(A,l,c)),Js=new Map;vF(Js,this.driver,_,c,zi).forEach(A=>{wF(A,l,c)&&bi.push(A)});const wo=new Map;f.forEach((A,L)=>{vF(wo,this.driver,new Set(A),l,"!")}),bi.forEach(A=>{const L=Js.get(A),U=wo.get(A);Js.set(A,new Map([...L?.entries()??[],...U?.entries()??[]]))});const Hy=[],AF=[],kF={};s.forEach(A=>{const{element:L,player:U,instruction:he}=A;if(i.has(L)){if(d.has(L))return U.onDestroy(()=>yi(L,he.toStyles)),U.disabled=!0,U.overrideTotalTime(he.totalTime),void r.push(U);let _t=kF;if(Be.size>1){let vn=L;const gr=[];for(;vn=vn.parentNode;){const He=Be.get(vn);if(He){_t=He;break}gr.push(vn)}gr.forEach(He=>Be.set(He,_t))}const wi=this._buildAnimation(U.namespaceId,he,re,o,wo,Js);if(U.setRealPlayer(wi),_t===kF)Hy.push(U);else{const vn=this.playersByElement.get(_t);vn&&vn.length&&(U.parentPlayer=mr(vn)),r.push(U)}}else yo(L,he.fromStyles),U.onDestroy(()=>yi(L,he.toStyles)),AF.push(U),d.has(L)&&r.push(U)}),AF.forEach(A=>{const L=o.get(A.element);if(L&&L.length){const U=mr(L);A.setRealPlayer(U)}}),r.forEach(A=>{A.parentPlayer?A.syncPlayerEvents(A.parentPlayer):A.destroy()});for(let A=0;A!wi.destroyed);_t.length?$7(this,L,_t):this.processLeaveNode(L)}return g.length=0,Hy.forEach(A=>{this.players.push(A),A.onDone(()=>{A.destroy();const L=this.players.indexOf(A);this.players.splice(L,1)}),A.play()}),Hy}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==mc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,d=c!==o,u=gn(i,c,[]);this._getPreviousPlayers(c,d,s,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),u.push(f)})}yo(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,h=t.timelines.map(p=>{const m=p.element;d.add(m);const g=m[Qn];if(g&&g.removedBeforeQueried)return new sc(p.duration,p.delay);const y=m!==l,_=function G7(e){const n=[];return bF(e,n),n}((i.get(m)||L7).map(re=>re.getRealPlayer())).filter(re=>!!re.element&&re.element===m),x=o.get(m),S=s.get(m),B=KR(this._normalizer,p.keyframes,x,S),Y=this._buildPlayer(p,B,_);if(p.subTimeline&&r&&u.add(m),y){const re=new By(n,a,m);re.setRealPlayer(Y),c.push(re)}return Y});c.forEach(p=>{gn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function U7(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>Sn(p,iF));const f=mr(h);return f.onDestroy(()=>{d.forEach(p=>Xs(p,iF)),yi(l,t.toStyles)}),u.forEach(p=>{gn(r,p,[]).push(f)}),f}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new sc(n.duration,n.delay)}}class By{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new sc,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(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>_y(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){gn(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function mf(e){return e&&1===e.nodeType}function _F(e,n){const t=e.style.display;return e.style.display=n??"none",t}function vF(e,n,t,i,r){const o=[];t.forEach(l=>o.push(_F(l)));const s=[];i.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=n.computeStyle(c,u,r);d.set(u,h),(!h||0==h.length)&&(c[Qn]=V7,s.push(c))}),e.set(c,d)});let a=0;return t.forEach(l=>_F(l,o[a++])),s}function yF(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Sn(e,n){e.classList?.add(n)}function Xs(e,n){e.classList?.remove(n)}function $7(e,n,t){mr(t).onDone(()=>e.processLeaveNode(n))}function bF(e,n){for(let t=0;tr.add(o)):n.set(e,i),t.delete(e),!0}class gc{constructor(n,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new j7(n.body,t,i),this._timelineEngine=new R7(n.body,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=Ay(this._driver,o,l,[]);if(l.length)throw function OQ(){return new b(3404,!1)}();a=function S7(e,n,t){return new T7(e,n,t)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,s]=XR(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=XR(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class _c{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,i){this._element=n,this._startStyles=t,this._endStyles=i,this._state=0;let r=_c.initialStylesByElement.get(n);r||_c.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&yi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(yi(this._element,this._initialStyles),this._endStyles&&(yi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(_c.initialStylesByElement.delete(this._element),this._startStyles&&(yo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yo(this._element,this._endStyles),this._endStyles=null),yi(this._element,this._initialStyles),this._state=3)}}function jy(e){let n=null;return e.forEach((t,i)=>{(function Z7(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class CF{constructor(n,t,i,r){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:Ty(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class DF{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return eF(n,t)}getParentElement(n){return by(n)}query(n,t,i){return tF(n,t,i)}computeStyle(n,t,i){return Ty(n,t)}animate(n,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(f=>f instanceof CF);(function o7(e,n){return 0===e||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((p,m)=>c.set(m,p))});let u=function n7(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(f=>new Map(f));u=function s7(e,n,t){if(t.size&&n.length){let i=n[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,Ty(e,a)))}}return n}(n,u,c);const h=function W7(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=jy(n[0]),n.length>1&&(i=jy(n[n.length-1]))):n instanceof Map&&(t=jy(n)),t||i?new _c(e,t,i):null}(n,u);return new CF(n,u,l,h)}}const EF="@.disabled";class xF{constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==EF?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class Y7 extends xF{constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==EF?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function Q7(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function K7(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}class X7{constructor(n,t,i){this.delegate=n,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,t){const r=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const c=this._rendererCache;let d=c.get(r);return d||(d=new xF("",r,this.engine,()=>c.delete(r)),c.set(r,d)),d}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return t.data.animation.forEach(a),new Y7(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,i){if(n>=0&&nt(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}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()}}const IF=[{provide:Dy,useFactory:function eK(){return new sF}},{provide:gc,useClass:(()=>{class e extends gc{constructor(t,i,r){super(t,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||e)(D(te),D(Cy),D(Dy))};static#t=this.\u0275prov=M({token:e,factory:e.\u0275fac})}return e})()},{provide:Vd,useFactory:function tK(e,n,t){return new X7(e,n,t)},deps:[x_,gc,$]}],Uy=[{provide:Cy,useFactory:()=>new DF},{provide:Ti,useValue:"BrowserAnimations"},...IF],MF=[{provide:Cy,useClass:wy},{provide:Ti,useValue:"NoopAnimations"},...IF];let nK=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?MF:Uy}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({providers:Uy,imports:[oS]})}return e})(),iK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({})}return e})(),rK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,iK,mR]})}return e})(),sK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e});static#n=this.\u0275inj=Ee({imports:[zt,lc,lc,zt]})}return e})(),aK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Se({type:e,bootstrap:[fQ]});static#n=this.\u0275inj=Ee({providers:[xW(IW())],imports:[oS,XY,nK,rK,qW,T9,sK,AZ,QY.forRoot({loader:Ql}),iQ,hQ]})}return e})();u8().bootstrapModule(aK).catch(e=>console.error(e))}},ea=>{ea(ea.s=345)}]); \ No newline at end of file diff --git a/webui/node_modules/@types/express-serve-static-core/README.md b/webui/node_modules/@types/express-serve-static-core/README.md index cc026693..3c238413 100644 --- a/webui/node_modules/@types/express-serve-static-core/README.md +++ b/webui/node_modules/@types/express-serve-static-core/README.md @@ -8,7 +8,7 @@ This package contains type definitions for express-serve-static-core (http://exp Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core. ### Additional Details - * Last updated: Wed, 25 Sep 2024 19:19:36 GMT + * Last updated: Thu, 24 Oct 2024 14:02:26 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/qs](https://npmjs.com/package/@types/qs), [@types/range-parser](https://npmjs.com/package/@types/range-parser), [@types/send](https://npmjs.com/package/@types/send) # Credits diff --git a/webui/node_modules/@types/http-proxy/README.md b/webui/node_modules/@types/http-proxy/README.md index a8dbabf6..9678333a 100644 --- a/webui/node_modules/@types/http-proxy/README.md +++ b/webui/node_modules/@types/http-proxy/README.md @@ -8,7 +8,7 @@ This package contains type definitions for http-proxy (https://github.com/nodeji Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-proxy. ### Additional Details - * Last updated: Tue, 07 Nov 2023 03:09:37 GMT + * Last updated: Tue, 06 Aug 2024 21:35:50 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits diff --git a/webui/node_modules/http-proxy-middleware/README.md b/webui/node_modules/http-proxy-middleware/README.md index 3e59082b..4051dbd3 100644 --- a/webui/node_modules/http-proxy-middleware/README.md +++ b/webui/node_modules/http-proxy-middleware/README.md @@ -26,48 +26,29 @@ Proxy `/api` requests to `http://www.example.org` :bulb: **Tip:** Set the option `changeOrigin` to `true` for [name-based virtual hosted sites](http://en.wikipedia.org/wiki/Virtual_hosting#Name-based). -```javascript -// javascript - -const express = require('express'); -const { createProxyMiddleware } = require('http-proxy-middleware'); - -const app = express(); - -app.use( - '/api', - createProxyMiddleware({ - target: 'http://www.example.org/secret', - changeOrigin: true, - }), -); - -app.listen(3000); - -// proxy and change the base path from "/api" to "/secret" -// http://127.0.0.1:3000/api/foo/bar -> http://www.example.org/secret/foo/bar -``` - ```typescript // typescript import * as express from 'express'; -import { createProxyMiddleware, Filter, Options, RequestHandler } from 'http-proxy-middleware'; +import type { Request, Response, NextFunction } from 'express'; + +import { createProxyMiddleware } from 'http-proxy-middleware'; +import type { Filter, Options, RequestHandler } from 'http-proxy-middleware'; const app = express(); -app.use( - '/api', - createProxyMiddleware({ +const proxyMiddleware = createProxyMiddleware({ target: 'http://www.example.org/api', changeOrigin: true, }), -); + +app.use('/api', proxyMiddleware); app.listen(3000); // proxy and keep the same base path "/api" // http://127.0.0.1:3000/api/foo/bar -> http://www.example.org/api/foo/bar + ``` _All_ `http-proxy` [options](https://github.com/nodejitsu/node-http-proxy#options) can be used, along with some extra `http-proxy-middleware` [options](#options). @@ -664,4 +645,4 @@ $ yarn spellcheck The MIT License (MIT) -Copyright (c) 2015-2022 Steven Chim +Copyright (c) 2015-2024 Steven Chim diff --git a/webui/node_modules/http-proxy-middleware/node_modules/is-plain-object/README.md b/webui/node_modules/http-proxy-middleware/node_modules/is-plain-object/README.md new file mode 100644 index 00000000..5c074ab0 --- /dev/null +++ b/webui/node_modules/http-proxy-middleware/node_modules/is-plain-object/README.md @@ -0,0 +1,125 @@ +# is-plain-object [![NPM version](https://img.shields.io/npm/v/is-plain-object.svg?style=flat)](https://www.npmjs.com/package/is-plain-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![NPM total downloads](https://img.shields.io/npm/dt/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-plain-object.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-plain-object) + +> Returns true if an object was created by the `Object` constructor, or Object.create(null). + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save is-plain-object +``` + +Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to check if the value is an object and not an array or null. + +## Usage + +with es modules +```js +import { isPlainObject } from 'is-plain-object'; +``` + +or with commonjs +```js +const { isPlainObject } = require('is-plain-object'); +``` + +**true** when created by the `Object` constructor, or Object.create(null). + +```js +isPlainObject(Object.create({})); +//=> true +isPlainObject(Object.create(Object.prototype)); +//=> true +isPlainObject({foo: 'bar'}); +//=> true +isPlainObject({}); +//=> true +isPlainObject(null); +//=> true +``` + +**false** when not created by the `Object` constructor. + +```js +isPlainObject(1); +//=> false +isPlainObject(['foo', 'bar']); +//=> false +isPlainObject([]); +//=> false +isPlainObject(new Foo); +//=> false +isPlainObject(Object.create(null)); +//=> false +``` + +## About + +
    +Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
    + +
    +Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
    + +
    +Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
    + +### Related projects + +You might also be interested in these projects: + +* [is-number](https://www.npmjs.com/package/is-number): Returns true if a number or string value is a finite number. Useful for regex… [more](https://github.com/jonschlinkert/is-number) | [homepage](https://github.com/jonschlinkert/is-number "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.") +* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") +* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") + +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 19 | [jonschlinkert](https://github.com/jonschlinkert) | +| 6 | [TrySound](https://github.com/TrySound) | +| 6 | [stevenvachon](https://github.com/stevenvachon) | +| 3 | [onokumus](https://github.com/onokumus) | +| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | + +### Author + +**Jon Schlinkert** + +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 28, 2019._