From 992f9068e4e8d8e72d766716e90ee8c7a4f288fe Mon Sep 17 00:00:00 2001 From: alexander-kuruvilla Date: Tue, 16 Jan 2024 17:00:53 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/alexander-kuruvilla/angular-app//commit/d5d57b4e91c7895e5c32ae635a4095228ae4de9e --- 404.html | 2 +- index.html | 2 +- main.90a6abca0482cbfe.js | 1 + main.bfdf2f3372582447.js | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 main.90a6abca0482cbfe.js delete mode 100644 main.bfdf2f3372582447.js diff --git a/404.html b/404.html index e5f2e77..ae17692 100644 --- a/404.html +++ b/404.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index e5f2e77..ae17692 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/main.90a6abca0482cbfe.js b/main.90a6abca0482cbfe.js new file mode 100644 index 0000000..a0666a3 --- /dev/null +++ b/main.90a6abca0482cbfe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkyour_angular_app=self.webpackChunkyour_angular_app||[]).push([[179],{32:()=>{function oe(e){return"function"==typeof e}function go(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const na=go(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ei(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class lt{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:r}=this;if(oe(r))try{r()}catch(o){n=o instanceof na?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{lm(o)}catch(s){n=n??[],s instanceof na?n=[...n,...s.errors]:n.push(s)}}if(n)throw new na(n)}}add(n){var t;if(n&&n!==this)if(this.closed)lm(n);else{if(n instanceof lt){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)&&ei(t,n)}remove(n){const{_finalizers:t}=this;t&&ei(t,n),n instanceof lt&&n._removeParent(this)}}lt.EMPTY=(()=>{const e=new lt;return e.closed=!0,e})();const am=lt.EMPTY;function cm(e){return e instanceof lt||e&&"closed"in e&&oe(e.remove)&&oe(e.add)&&oe(e.unsubscribe)}function lm(e){oe(e)?e():e.unsubscribe()}const yr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ra={setTimeout(e,n,...t){const{delegate:r}=ra;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ra;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function um(e){ra.setTimeout(()=>{const{onUnhandledError:n}=yr;if(!n)throw e;n(e)})}function Kl(){}const hI=Ql("C",void 0,void 0);function Ql(e,n,t){return{kind:e,value:n,error:t}}let vr=null;function ia(e){if(yr.useDeprecatedSynchronousErrorHandling){const n=!vr;if(n&&(vr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=vr;if(vr=null,t)throw r}}else e()}class Yl extends lt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,cm(n)&&n.add(this)):this.destination=vI}static create(n,t,r){return new _o(n,t,r)}next(n){this.isStopped?Jl(function mI(e){return Ql("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Jl(function pI(e){return Ql("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Jl(hI,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 _I=Function.prototype.bind;function Xl(e,n){return _I.call(e,n)}class bI{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){oa(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){oa(r)}else oa(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){oa(t)}}}class _o extends Yl{constructor(n,t,r){let i;if(super(),oe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&yr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Xl(n.next,o),error:n.error&&Xl(n.error,o),complete:n.complete&&Xl(n.complete,o)}):i=n}this.destination=new bI(i)}}function oa(e){yr.useDeprecatedSynchronousErrorHandling?function gI(e){yr.useDeprecatedSynchronousErrorHandling&&vr&&(vr.errorThrown=!0,vr.error=e)}(e):um(e)}function Jl(e,n){const{onStoppedNotification:t}=yr;t&&ra.setTimeout(()=>t(e,n))}const vI={closed:!0,next:Kl,error:function yI(e){throw e},complete:Kl},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Wn(e){return e}function dm(e){return 0===e.length?Wn:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}let Ce=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function EI(e){return e&&e instanceof Yl||function DI(e){return e&&oe(e.next)&&oe(e.error)&&oe(e.complete)}(e)&&cm(e)}(t)?t:new _o(t,r,i);return ia(()=>{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(r){t.error(r)}}forEach(t,r){return new(r=fm(r))((i,o)=>{const s=new _o({next:a=>{try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[eu](){return this}pipe(...t){return dm(t)(this)}toPromise(t){return new(t=fm(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function fm(e){var n;return null!==(n=e??yr.Promise)&&void 0!==n?n:Promise}const CI=go(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ut=(()=>{class e extends Ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new hm(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new CI}next(t){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){ia(()=>{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:r,isStopped:i,observers:o}=this;return r||i?am:(this.currentObservers=null,o.push(t),new lt(()=>{this.currentObservers=null,ei(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Ce;return t.source=this,t}}return e.create=(n,t)=>new hm(n,t),e})();class hm extends ut{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:am}}function pm(e){return oe(e?.lift)}function Te(e){return n=>{if(pm(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Me(e,n,t,r,i){return new MI(e,n,t,r,i)}class MI extends Yl{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}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 Te((t,r)=>{let i=0;t.subscribe(Me(r,o=>{r.next(e.call(n,o,i++))}))})}function Zn(e){return this instanceof Zn?(this.v=e,this):new Zn(e)}function bm(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 iu(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,c){!function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ym=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function vm(e){return oe(e?.then)}function wm(e){return oe(e[eu])}function Dm(e){return Symbol.asyncIterator&&oe(e?.[Symbol.asyncIterator])}function Em(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 Cm=function WI(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Mm(e){return oe(e?.[Cm])}function Im(e){return function _m(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(h){return new Promise(function(p,m){o.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function c(f){f.value instanceof Zn?Promise.resolve(f.value.v).then(l,u):d(o[0][2],f)}(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Zn(t.read());if(i)return yield Zn(void 0);yield yield Zn(r)}}finally{t.releaseLock()}})}function Sm(e){return oe(e?.getReader)}function wt(e){if(e instanceof Ce)return e;if(null!=e){if(wm(e))return function ZI(e){return new Ce(n=>{const t=e[eu]();if(oe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(ym(e))return function KI(e){return new Ce(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,um)})}(e);if(Dm(e))return xm(e);if(Mm(e))return function YI(e){return new Ce(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Sm(e))return function XI(e){return xm(Im(e))}(e)}throw Em(e)}function xm(e){return new Ce(n=>{(function JI(e,n){var t,r,i,o;return function mm(e,n,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=bm(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function xn(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Be(e,n,t=1/0){return oe(n)?Be((r,i)=>z((o,s)=>n(r,o,i,s))(wt(e(r,i))),t):("number"==typeof n&&(t=n),Te((r,i)=>function eS(e,n,t,r,i,o,s,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&n.complete()},h=m=>l{o&&n.next(m),l++;let _=!1;wt(t(m,u++)).subscribe(Me(n,y=>{i?.(y),o?h(y):n.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(l--;c.length&&lp(y)):p(y)}f()}catch(y){n.error(y)}}))};return e.subscribe(Me(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function ti(e=1/0){return Be(Wn,e)}const cn=new Ce(e=>e.complete());function ou(e){return e[e.length-1]}function bo(e){return function nS(e){return e&&oe(e.schedule)}(ou(e))?e.pop():void 0}function Am(e,n=0){return Te((t,r)=>{t.subscribe(Me(r,i=>xn(r,e,()=>r.next(i),n),()=>xn(r,e,()=>r.complete(),n),i=>xn(r,e,()=>r.error(i),n)))})}function Nm(e,n=0){return Te((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Rm(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ce(t=>{xn(t,n,()=>{const r=e[Symbol.asyncIterator]();xn(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Le(e,n){return n?function lS(e,n){if(null!=e){if(wm(e))return function iS(e,n){return wt(e).pipe(Nm(n),Am(n))}(e,n);if(ym(e))return function sS(e,n){return new Ce(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(vm(e))return function oS(e,n){return wt(e).pipe(Nm(n),Am(n))}(e,n);if(Dm(e))return Rm(e,n);if(Mm(e))return function aS(e,n){return new Ce(t=>{let r;return xn(t,n,()=>{r=e[Cm](),xn(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>oe(r?.return)&&r.return()})}(e,n);if(Sm(e))return function cS(e,n){return Rm(Im(e),n)}(e,n)}throw Em(e)}(e,n):wt(e)}class dt extends ut{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:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function N(...e){return Le(e,bo(e))}function su(e={}){const{connector:n=(()=>new ut),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,l=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return Te((m,_)=>{l++,!d&&!u&&f();const y=c=c??n();_.add(()=>{l--,0===l&&!d&&!u&&(a=au(p,i))}),y.subscribe(_),!s&&l>0&&(s=new _o({next:g=>y.next(g),error:g=>{d=!0,f(),a=au(h,t,g),y.error(g)},complete:()=>{u=!0,f(),a=au(h,r),y.complete()}}),wt(m).subscribe(s))})(o)}}function au(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new _o({next:()=>{r.unsubscribe(),e()}});return wt(n(...t)).subscribe(r)}function ln(e,n){return Te((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(Me(r,c=>{i?.unsubscribe();let l=0;const u=o++;wt(e(c,u)).subscribe(i=Me(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function cu(e,n=Wn){return e=e??dS,Te((t,r)=>{let i,o=!0;t.subscribe(Me(r,s=>{const a=n(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function dS(e,n){return e===n}function re(e){for(let n in e)if(e[n]===re)return n;throw Error("Could not find renamed property on target object.")}function Re(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Re).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 lu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const fS=re({__forward_ref__:re});function se(e){return e.__forward_ref__=se,e.toString=function(){return Re(this())},e}function L(e){return uu(e)?e():e}function uu(e){return"function"==typeof e&&e.hasOwnProperty(fS)&&e.__forward_ref__===se}function du(e){return e&&!!e.\u0275providers}const Om="https://g.co/ng/security#xss";class b extends Error{constructor(n,t){super(function aa(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function V(e){return"string"==typeof e?e:null==e?"":String(e)}function fu(e,n){throw new b(-201,!1)}function kt(e,n){null==e&&function F(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ae(e){return{providers:e.providers||[],imports:e.imports||[]}}function ca(e){return km(e,ua)||km(e,Fm)}function km(e,n){return e.hasOwnProperty(n)?e[n]:null}function la(e){return e&&(e.hasOwnProperty(hu)||e.hasOwnProperty(vS))?e[hu]:null}const ua=re({\u0275prov:re}),hu=re({\u0275inj:re}),Fm=re({ngInjectableDef:re}),vS=re({ngInjectorDef:re});var q=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}(q||{});let pu;function ft(e){const n=pu;return pu=e,n}function Lm(e,n,t){const r=ca(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&q.Optional?null:void 0!==n?n:void fu(Re(e))}const le=globalThis;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=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const yo={},yu="__NG_DI_FLAG__",da="ngTempTokenPath",ES=/\n/gm,jm="__source";let ni;function Kn(e){const n=ni;return ni=e,n}function IS(e,n=q.Default){if(void 0===ni)throw new b(-203,!1);return null===ni?Lm(e,void 0,n):ni.get(e,n&q.Optional?null:void 0,n)}function D(e,n=q.Default){return(function Pm(){return pu}()||IS)(L(e),n)}function I(e,n=q.Default){return D(e,fa(n))}function fa(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function vu(e){const n=[];for(let t=0;tn){s=o-1;break}}}for(;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==$m(h,l,0)||2&r&&l!==f){if(Zt(r))return!1;s=!0}}}}else{if(!s&&!Zt(r)&&!Zt(c))return!1;if(s&&Zt(c))continue;s=!1,r=c|1&r}}return Zt(r)||s}function Zt(e){return 0==(1&e)}function OS(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Zt(s)&&(n+=Qm(o,i),i=""),r=s,o=o||!Zt(r);t++}return""!==i&&(n+=Qm(o,i)),n}function Pt(e){return Tn(()=>{const n=Xm(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ha.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ft.Emulated,styles:e.styles||Y,_:null,schemas:e.schemas||null,tView:null,id:""};Jm(t);const r=e.dependencies;return t.directiveDefs=ma(r,!1),t.pipeDefs=ma(r,!0),t.id=function GS(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 i of t)n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function US(e){return W(e)||He(e)}function $S(e){return null!==e}function Oe(e){return Tn(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ym(e,n){if(null==e)return un;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}function O(e){return Tn(()=>{const n=Xm(e);return Jm(n),n})}function ht(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 W(e){return e[pa]||null}function He(e){return e[wu]||null}function Je(e){return e[Du]||null}function Et(e,n){const t=e[Hm]||null;if(!t&&!0===n)throw new Error(`Type ${Re(e)} does not have '\u0275mod' property.`);return t}function Xm(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||un,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ym(e.inputs,n),outputs:Ym(e.outputs)}}function Jm(e){e.features?.forEach(n=>n(e))}function ma(e,n){if(!e)return null;const t=n?Je:US;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter($S)}const De=0,C=1,U=2,_e=3,Kt=4,Eo=5,Ze=6,ii=7,Ie=8,Qn=9,oi=10,j=11,Co=12,eg=13,si=14,Se=15,Mo=16,ai=17,dn=18,Io=19,tg=20,Yn=21,Nn=22,So=23,xo=24,G=25,Cu=1,ng=2,fn=7,ci=9,Ue=11;function pt(e){return Array.isArray(e)&&"object"==typeof e[Cu]}function et(e){return Array.isArray(e)&&!0===e[Cu]}function Mu(e){return 0!=(4&e.flags)}function Dr(e){return e.componentOffset>-1}function _a(e){return 1==(1&e.flags)}function Qt(e){return!!e.template}function Iu(e){return 0!=(512&e[U])}function Er(e,n){return e.hasOwnProperty(An)?e[An]:null}let $e=null,ba=!1;function Lt(e){const n=$e;return $e=e,n}const og={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function ag(e){if(!Ao(e)||e.dirty){if(!e.producerMustRecompute(e)&&!ug(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function lg(e){e.dirty=!0,function cg(e){if(void 0===e.liveConsumerNode)return;const n=ba;ba=!0;try{for(const t of e.liveConsumerNode)t.dirty||lg(t)}finally{ba=n}}(e),e.consumerMarkedDirty?.(e)}function xu(e){return e&&(e.nextProducerIndex=0),Lt(e)}function Tu(e,n){if(Lt(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ao(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ug(e){li(e);for(let n=0;n0}function li(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let pg=null;function _g(e){const n=Lt(null);try{return e()}finally{Lt(n)}}const bg=()=>{},ox=(()=>({...og,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:bg}))();class sx{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Vt(){return yg}function yg(e){return e.type.prototype.ngOnChanges&&(e.setInput=cx),ax}function ax(){const e=wg(this),n=e?.current;if(n){const t=e.previous;if(t===un)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function cx(e,n,t,r){const i=this.declaredInputs[t],o=wg(e)||function lx(e,n){return e[vg]=n}(e,{previous:un,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new sx(c&&c.currentValue,n,a===un),e[r]=n}Vt.ngInherit=!0;const vg="__ngSimpleChanges__";function wg(e){return e[vg]||null}const hn=function(e,n,t){};function ue(e){for(;Array.isArray(e);)e=e[De];return e}function mt(e,n){return ue(n[e.index])}function Cg(e,n){return e.data[n]}function Ct(e,n){const t=n[e];return pt(t)?t:t[De]}function Jn(e,n){return null==n?null:e[n]}function Mg(e){e[ai]=0}function mx(e){1024&e[U]||(e[U]|=1024,Sg(e,1))}function Ig(e){1024&e[U]&&(e[U]&=-1025,Sg(e,-1))}function Sg(e,n){let t=e[_e];if(null===t)return;t[Eo]+=n;let r=t;for(t=t[_e];null!==t&&(1===n&&1===r[Eo]||-1===n&&0===r[Eo]);)t[Eo]+=n,r=t,t=t[_e]}const P={lFrame:Vg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ag(){return P.bindingsEnabled}function v(){return P.lFrame.lView}function K(){return P.lFrame.tView}function ze(){let e=Ng();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ng(){return P.lFrame.currentTNode}function pn(e,n){const t=P.lFrame;t.currentTNode=e,t.isParent=n}function ku(){return P.lFrame.isParent}function tt(){const e=P.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function fi(){return P.lFrame.bindingIndex++}function Tx(e,n){const t=P.lFrame;t.bindingIndex=t.bindingRootIndex=e,Pu(n)}function Pu(e){P.lFrame.currentDirectiveIndex=e}function Vu(e){P.lFrame.currentQueryIndex=e}function Nx(e){const n=e[C];return 2===n.type?n.declTNode:1===n.type?e[Ze]:null}function Pg(e,n,t){if(t&q.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&q.Host||(i=Nx(o),null===i||(o=o[si],10&i.type))););if(null===i)return!1;n=i,e=o}const r=P.lFrame=Lg();return r.currentTNode=n,r.lView=e,!0}function ju(e){const n=Lg(),t=e[C];P.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Lg(){const e=P.lFrame,n=null===e?null:e.child;return null===n?Vg(e):n}function Vg(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 jg(){const e=P.lFrame;return P.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bg=jg;function Bu(){const e=jg();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 nt(){return P.lFrame.selectedIndex}function Cr(e){P.lFrame.selectedIndex=e}function ve(){const e=P.lFrame;return Cg(e.tView,e.selectedIndex)}let $g=!0;function wa(){return $g}function er(e){$g=e}function Da(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[c]<0&&(e[ai]+=65536),(a>13>16&&(3&e[U])===n&&(e[U]+=8192,qg(a,o)):qg(a,o)}const hi=-1;class Ro{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function $u(e){return e!==hi}function Oo(e){return 32767&e}function ko(e,n){let t=function Ux(e){return e>>16}(e),r=n;for(;t>0;)r=r[si],t--;return r}let zu=!0;function Ma(e){const n=zu;return zu=e,n}const Gg=255,Wg=5;let $x=0;const mn={};function Ia(e,n){const t=Zg(e,n);if(-1!==t)return t;const r=n[C];r.firstCreatePass&&(e.injectorIndex=n.length,qu(r.data,e),qu(n,null),qu(r.blueprint,null));const i=Sa(e,n),o=e.injectorIndex;if($u(i)){const s=Oo(i),a=ko(i,n),c=a[C].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=i,o}function qu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Zg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Sa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=t_(i),null===r)return hi;if(t++,i=i[si],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return hi}function Gu(e,n,t){!function zx(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(wo)&&(r=t[wo]),null==r&&(r=t[wo]=$x++);const i=r⋙n.data[e+(i>>Wg)]|=1<=0?n&Gg:Kx:n}(t);if("function"==typeof o){if(!Pg(n,e,r))return r&q.Host?Kg(i,0,r):Qg(n,t,r,i);try{let s;if(s=o(r),null!=s||r&q.Optional)return s;fu()}finally{Bg()}}else if("number"==typeof o){let s=null,a=Zg(e,n),c=hi,l=r&q.Host?n[Se][Ze]:null;for((-1===a||r&q.SkipSelf)&&(c=-1===a?Sa(e,n):n[a+8],c!==hi&&e_(r,!1)?(s=n[C],a=Oo(c),n=ko(c,n)):a=-1);-1!==a;){const u=n[C];if(Jg(o,a,u.data)){const d=Gx(a,n,t,s,r,l);if(d!==mn)return d}c=n[a+8],c!==hi&&e_(r,n[C].data[a+8]===l)&&Jg(o,a,n)?(s=u,a=Oo(c),n=ko(c,n)):a=-1}}return i}function Gx(e,n,t,r,i,o){const s=n[C],a=s.data[e+8],u=function xa(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,c=e.directiveStart,u=o>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h=c&&p.type===t)return h}if(i){const h=s[c];if(h&&Qt(h)&&h.type===t)return c}return null}(a,s,t,null==r?Dr(a)&&zu:r!=s&&0!=(3&a.type),i&q.Host&&o===a);return null!==u?Mr(n,s,u,a):mn}function Mr(e,n,t,r){let i=e[t];const o=n.data;if(function jx(e){return e instanceof Ro}(i)){const s=i;s.resolving&&function hS(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new b(-200,`Circular dependency in DI detected for ${e}${t}`)}(function ne(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():V(e)}(o[t]));const a=Ma(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ft(s.injectImpl):null;Pg(e,r,q.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Lx(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=yg(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==l&&ft(l),Ma(a),s.resolving=!1,Bg()}}return i}function Jg(e,n,t){return!!(t[n+(e>>Wg)]&1<{const n=Wu(L(e));return n&&n()}:Er(e)}function t_(e){const n=e[C],t=n.type;return 2===t?n.declTNode:1===t?e[Ze]:null}const mi="__parameters__";function _i(e,n,t){return Tn(()=>{const r=function Zu(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(mi)?c[mi]:Object.defineProperty(c,mi,{value:[]})[mi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function yi(e,n){e.forEach(t=>Array.isArray(t)?yi(t,n):n(t))}function r_(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ta(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}const Ir=vo(_i("Optional"),8),jo=vo(_i("SkipSelf"),4);function Fa(e){return 128==(128&e.flags)}var tr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(tr||{});const ed=new Map;let ST=0;const nd="__ngContext__";function Ke(e,n){pt(n)?(e[nd]=n[Io],function TT(e){ed.set(e[Io],e)}(n)):e[nd]=n}let rd;function id(e,n){return rd(e,n)}function Uo(e){const n=e[_e];return et(n)?n[_e]:n}function C_(e){return I_(e[Co])}function M_(e){return I_(e[Kt])}function I_(e){for(;null!==e&&!et(e);)e=e[Kt];return e}function Ei(e,n,t,r,i){if(null!=r){let o,s=!1;et(r)?o=r:pt(r)&&(s=!0,r=r[De]);const a=ue(r);0===e&&null!==t?null==i?A_(n,t,a):Sr(n,t,a,i||null,!0):1===e&&null!==t?Sr(n,t,a,i||null,!0):2===e?function Ua(e,n,t){const r=Ba(e,n);r&&function ZT(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function YT(e,n,t,r,i){const o=t[fn];o!==ue(t)&&Ei(n,e,r,o,i);for(let a=Ue;a0&&(e[t-1][Kt]=r[Kt]);const o=Ta(e,Ue+n);!function BT(e,n){zo(e,n,n[j],2,null,null),n[De]=null,n[Ze]=null}(r[C],r);const s=o[dn];null!==s&&s.detachView(o[C]),r[_e]=null,r[Kt]=null,r[U]&=-129}return r}function sd(e,n){if(!(256&n[U])){const t=n[j];n[So]&&dg(n[So]),n[xo]&&dg(n[xo]),t.destroyNode&&zo(e,n,t,3,null,null),function $T(e){let n=e[Co];if(!n)return ad(e[C],e);for(;n;){let t=null;if(pt(n))t=n[Co];else{const r=n[Ue];r&&(t=r)}if(!t){for(;n&&!n[Kt]&&n!==e;)pt(n)&&ad(n[C],n),n=n[_e];null===n&&(n=e),pt(n)&&ad(n[C],n),t=n&&n[Kt]}n=t}}(n)}}function ad(e,n){if(!(256&n[U])){n[U]&=-129,n[U]|=256,function WT(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[ii]=null);const i=n[Yn];if(null!==i){n[Yn]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Ft.None||o===Ft.Emulated)return null}return mt(r,t)}}(e,n.parent,t)}function Sr(e,n,t,r,i){e.insertBefore(n,t,r,i)}function A_(e,n,t){e.appendChild(n,t)}function N_(e,n,t,r,i){null!==r?Sr(e,n,t,r,i):A_(e,n,t)}function Ba(e,n){return e.parentNode(n)}let ld,hd,za,k_=function O_(e,n,t){return 40&e.type?mt(e,t):null};function Ha(e,n,t,r){const i=cd(e,r,n),o=n[j],a=function R_(e,n,t){return k_(e,n,t)}(r.parent||n[Ze],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;ce,createScript:e=>e,createScriptURL:e=>e})}catch{}return za}()?.createScriptURL(e)||e}class xr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Om})`}}function It(e){return e instanceof xr?e.changingThisBreaksApplicationSecurity:e}function gn(e,n){const t=function lA(e){return e instanceof xr&&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 ${Om})`)}return t===n}const bA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var qe=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}(qe||{});function Y_(e){const n=Go();return n?n.sanitize(qe.URL,e)||"":gn(e,"URL")?It(e):function qa(e){return(e=String(e)).match(bA)?e:"unsafe:"+e}(V(e))}function X_(e){const n=Go();if(n)return $_(n.sanitize(qe.RESOURCE_URL,e)||"");if(gn(e,"ResourceURL"))return $_(It(e));throw new b(904,!1)}function Go(){const e=v();return e&&e[oi].sanitizer}const Wo=new E("ENVIRONMENT_INITIALIZER"),eb=new E("INJECTOR",-1),tb=new E("INJECTOR_DEF_TYPES");class bd{get(n,t=yo){if(t===yo){const r=new Error(`NullInjectorError: No provider for ${Re(n)}!`);throw r.name="NullInjectorError",r}return t}}function AA(...e){return{\u0275providers:rb(0,e),\u0275fromNgModule:!0}}function rb(e,...n){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return yi(n,s=>{const a=s;Wa(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&ib(i,o),t}function ib(e,n){for(let t=0;t{n(o,r)})}}function Wa(e,n,t,r){if(!(e=L(e)))return!1;let i=null,o=la(e);const s=!o&&W(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=la(c),!o)return!1;i=c}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Wa(l,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;r.add(i);try{yi(o.imports,u=>{Wa(u,n,t,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&ib(l,n)}if(!a){const l=Er(i)||(()=>new i);n({provide:i,useFactory:l,deps:Y},i),n({provide:tb,useValue:i,multi:!0},i),n({provide:Wo,useValue:()=>D(i),multi:!0},i)}const c=o.providers;if(null!=c&&!a){const l=e;yd(c,u=>{n(u,l)})}}}return i!==e&&void 0!==e.providers}function yd(e,n){for(let t of e)du(t)&&(t=t.\u0275providers),Array.isArray(t)?yd(t,n):n(t)}const NA=re({provide:String,useValue:re});function vd(e){return null!==e&&"object"==typeof e&&NA in e}function Tr(e){return"function"==typeof e}const wd=new E("Set Injector scope."),Za={},OA={};let Dd;function Ka(){return void 0===Dd&&(Dd=new bd),Dd}class Bt{}class Ii extends Bt{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cd(n,s=>this.processProvider(s)),this.records.set(eb,Si(void 0,this)),i.has("environment")&&this.records.set(Bt,Si(void 0,this));const o=this.records.get(wd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(tb.multi,Y,q.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Kn(this),r=ft(void 0);try{return n()}finally{Kn(t),ft(r)}}get(n,t=yo,r=q.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Um))return n[Um](this);r=fa(r);const o=Kn(this),s=ft(void 0);try{if(!(r&q.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function VA(e){return"function"==typeof e||"object"==typeof e&&e instanceof E}(n)&&ca(n);c=l&&this.injectableDefInScope(l)?Si(Ed(n),Za):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&q.Self?Ka():this.parent).get(n,t=r&q.Optional&&t===yo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[da]=a[da]||[]).unshift(Re(n)),o)throw a;return function xS(e,n,t,r){const i=e[da];throw n[jm]&&i.unshift(n[jm]),e.message=function TS(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Re(n);if(Array.isArray(n))i=n.map(Re).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):Re(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(ES,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[da]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{ft(s),Kn(o)}}resolveInjectorInitializers(){const n=Kn(this),t=ft(void 0);try{const i=this.get(Wo.multi,Y,q.Self);for(const o of i)o()}finally{Kn(n),ft(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Re(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(n){let t=Tr(n=L(n))?n:L(n&&n.provide);const r=function FA(e){return vd(e)?Si(void 0,e.useValue):Si(function ab(e,n,t){let r;if(Tr(e)){const i=L(e);return Er(i)||Ed(i)}if(vd(e))r=()=>L(e.useValue);else if(function sb(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...vu(e.deps||[]));else if(function ob(e){return!(!e||!e.useExisting)}(e))r=()=>D(L(e.useExisting));else{const i=L(e&&(e.useClass||e.provide));if(!function PA(e){return!!e.deps}(e))return Er(i)||Ed(i);r=()=>new i(...vu(e.deps))}return r}(e),Za)}(n);if(Tr(n)||!0!==n.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=Si(void 0,Za,!0),i.factory=()=>vu(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===Za&&(t.value=OA,t.value=t.factory()),"object"==typeof t.value&&t.value&&function LA(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=L(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 Ed(e){const n=ca(e),t=null!==n?n.factory:Er(e);if(null!==t)return t;if(e instanceof E)throw new b(204,!1);if(e instanceof Function)return function kA(e){const n=e.length;if(n>0)throw function Vo(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new b(204,!1)}function Si(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Cd(e,n){for(const t of e)Array.isArray(t)?Cd(t,n):t&&du(t)?Cd(t.\u0275providers,n):n(t)}const Qa=new E("AppId",{providedIn:"root",factory:()=>jA}),jA="ng",cb=new E("Platform Initializer"),Ar=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ya=new E("AnimationModuleType"),Md=new E("CSP nonce",{providedIn:"root",factory:()=>function Mi(){if(void 0!==hd)return hd;if(typeof document<"u")return document;throw new b(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let lb=(e,n,t)=>null;function Od(e,n,t=!1){return lb(e,n,t)}class KA{}class fb{}class YA{resolveComponentFactory(n){throw function QA(e){const n=Error(`No component factory found for ${Re(e)}.`);return n.ngComponent=e,n}(n)}}let rc=(()=>{class e{static#e=this.NULL=new YA}return e})();function XA(){return Ai(ze(),v())}function Ai(e,n){return new Qe(mt(e,n))}let Qe=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=XA}return e})();class Ni{}let Fn=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function eN(){const e=v(),t=Ct(ze().index,e);return(pt(t)?t:e)[j]}()}return e})(),tN=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();class Nr{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const nN=new Nr("16.2.12"),Pd={};function _b(e,n=null,t=null,r){const i=bb(e,n,t,r);return i.resolveInjectorInitializers(),i}function bb(e,n=null,t=null,r,i=new Set){const o=[t||Y,AA(e)];return r=r||("object"==typeof e?void 0:Re(e)),new Ii(o,n||Ka(),r||null,i)}let _t=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=yo;static#t=this.NULL=new bd;static create(t,r){if(Array.isArray(t))return _b({name:""},r,t,"");{const i=t.name??"";return _b({name:i},t.parent,t.providers,i)}}static#n=this.\u0275prov=x({token:e,providedIn:"any",factory:()=>D(eb)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Vd(e){return e.ngOriginalError}class Yt{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&&Vd(n);for(;t&&Vd(t);)t=Vd(t);return t||null}}function Bd(e){return n=>{setTimeout(e,void 0,n)}}const be=class lN extends ut{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=Bd(o),i&&(i=Bd(i)),s&&(s=Bd(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof lt&&n.add(a),a}};function vb(...e){}class X{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new be(!1),this.onMicrotaskEmpty=new be(!1),this.onStable=new be(!1),this.onError=new be(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function uN(){const e="function"==typeof le.requestAnimationFrame;let n=le[e?"requestAnimationFrame":"setTimeout"],t=le[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function hN(e){const n=()=>{!function fN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(le,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ud(e),e.isCheckStableRunning=!0,Hd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ud(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{if(function mN(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(i,o,s,a);try{return wb(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),Db(e)}},onInvoke:(t,r,i,o,s,a,c)=>{try{return wb(e),t.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),Db(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Ud(e),Hd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!X.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(X.isInAngularZone())throw new b(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,dN,vb,vb);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const dN={};function Hd(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 Ud(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function wb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Db(e){e._nesting--,Hd(e)}class pN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new be,this.onMicrotaskEmpty=new be,this.onStable=new be,this.onError=new be}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}const Eb=new E("",{providedIn:"root",factory:Cb});function Cb(){const e=I(X);let n=!0;return function uS(...e){const n=bo(e),t=function rS(e,n){return"number"==typeof ou(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?wt(r[0]):ti(t)(Le(r,n)):cn}(new Ce(i=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(n),i.complete()})}),new Ce(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{X.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(su()))}function Pn(e){return e instanceof Function?e():e}let $d=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function Qo(e){for(;e;){e[U]|=64;const n=Uo(e);if(Iu(e)&&!n)return e;e=n}return null}const Tb=new E("",{providedIn:"root",factory:()=>!1});let oc=null;function Ob(e,n){return e[n]??Pb()}function kb(e,n){const t=Pb();t.producerNode?.length&&(e[n]=oc,t.lView=e,oc=Fb())}const MN={...og,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Qo(e.lView)},lView:null};function Fb(){return Object.create(MN)}function Pb(){return oc??=Fb(),oc}const H={};function Lb(e,n,t,r){if(!r)if(3==(3&n[U])){const o=e.preOrderCheckHooks;null!==o&&Ea(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Ca(n,o,0,t)}Cr(t)}function w(e,n=q.Default){const t=v();return null===t?D(e,n):Yg(ze(),t,L(e),n)}function sc(e,n,t,r,i,o,s,a,c,l,u){const d=n.blueprint.slice();return d[De]=i,d[U]=140|r,(null!==l||e&&2048&e[U])&&(d[U]|=2048),Mg(d),d[_e]=d[si]=e,d[Ie]=t,d[oi]=s||e&&e[oi],d[j]=a||e&&e[j],d[Qn]=c||e&&e[Qn]||null,d[Ze]=o,d[Io]=function xT(){return ST++}(),d[Nn]=u,d[tg]=l,d[Se]=2==n.type?e[Se]:d,d}function Fi(e,n,t,r,i){let o=e.data[n];if(null===o)o=function qd(e,n,t,r,i){const o=Ng(),s=ku(),c=e.data[n]=function ON(e,n,t,r,i,o){let s=n?n.injectorIndex:-1,a=0;return function di(){return null!==P.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,r,i),function xx(){return P.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function No(){const e=P.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return pn(o,!0),o}function Yo(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;oG&&Lb(e,n,G,!1),hn(a?2:0,i);const l=a?o:null,u=xu(l);try{null!==l&&(l.dirty=!1),t(r,i)}finally{Tu(l,u)}}finally{a&&null===n[So]&&kb(n,So),Cr(s),hn(a?3:1,i)}}function Gd(e,n,t){if(Mu(n)){const r=Lt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function Hb(e,n,t,r){for(let i in e)if(e.hasOwnProperty(i)){t=null===t?{}:t;const o=e[i];null===r?Ub(t,n,i,o):r.hasOwnProperty(i)&&Ub(t,n,r[i],o)}return t}function Ub(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function $b(e,n,t,r,i,o){for(let l=0;l0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,o)}}(e,n,r,Yo(e,t,i.hostVars,H),i)}function _n(e,n,t,r,i,o){const s=mt(e,n);!function Xd(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const a=null==s?V(o):s(o,r||"",i);e.setAttribute(n,i,a,t)}}(n[j],s,o,e.value,t,r,i)}function ZN(e,n,t,r,i,o){const s=o[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,i){const o=typeof Zone>"u"?null:Zone.current,s=function ix(e,n,t){const r=Object.create(ox);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>lg(r),run:()=>{if(r.dirty=!1,r.hasRun&&!ug(r))return;r.hasRun=!0;const s=xu(r);try{r.cleanupFn(),r.cleanupFn=bg,r.fn(i)}finally{Tu(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,l=>{this.all.has(l)&&this.queue.set(l,o)},i);let a;this.all.add(s),s.notify();const c=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function cc(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0){ty(e,1);const i=t.components;null!==i&&ry(e,i,1)}}function ry(e,n,t){for(let r=0;r-1&&(ja(n,r),Ta(t,r))}this._attachedToViewContainer=!1}sd(this._lView[C],this._lView)}onDestroy(n){!function xg(e,n){if(256==(256&e[U]))throw new b(911,!1);null===e[Yn]&&(e[Yn]=[]),e[Yn].push(n)}(this._lView,n)}markForCheck(){Qo(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){this._lView[U]|=128}detectChanges(){lc(this._lView[C],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function UT(e,n){zo(e,n,n[j],2,null,null)}(this._lView[C],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n}}class rR extends Jo{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;lc(n[C],n,n[Ie],!1)}checkNoChanges(){}get context(){return null}}class iy extends rc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=W(n);return new es(t,this.ngModule)}}function oy(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class oR{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=fa(r);const i=this.injector.get(n,Pd,r);return i!==Pd||t===Pd?i:this.parentInjector.get(n,t,r)}}class es extends fb{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=oy(n.inputs);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return oy(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function jS(e){return e.map(VS).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){let o=(i=i||this.ngModule)instanceof Bt?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new oR(n,o):n,a=s.get(Ni,null);if(null===a)throw new b(407,!1);const d={rendererFactory:a,sanitizer:s.get(tN,null),effectManager:s.get(Xb,null),afterRenderEventManager:s.get($d,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function xN(e,n,t,r){const o=r.get(Tb,!1)||t===Ft.ShadowDom,s=e.selectRootElement(n,o);return function TN(e){Bb(e)}(s),s}(f,r,this.componentDef.encapsulation,s):Va(f,h,function iR(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h)),y=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let g=null;null!==p&&(g=Od(p,s,!0));const M=Kd(0,null,null,1,0,null,null,null,null,null,null),S=sc(null,M,null,y,null,null,d,f,s,null,g);let B,ae;ju(S);try{const pe=this.componentDef;let We,Rt=null;pe.findHostDirectiveDefs?(We=[],Rt=new Map,pe.findHostDirectiveDefs(pe,We,Rt),We.push(pe)):We=[pe];const an=function aR(e,n){const t=e[C],r=G;return e[r]=n,Fi(t,r,2,"#host",null)}(S,p),Wl=function cR(e,n,t,r,i,o,s){const a=i[C];!function lR(e,n,t,r){for(const i of e)n.mergedAttrs=Do(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(cc(n,n.mergedAttrs,!0),null!==t&&B_(r,t,n))}(r,e,n,s);let c=null;null!==n&&(c=Od(n,i[Qn]));const l=o.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=sc(i,jb(t),null,u,i[e.index],e,o,l,null,null,c);return a.firstCreatePass&&Yd(a,e,r.length-1),ac(i,d),i[e.index]=d}(an,p,pe,We,S,d,f);ae=Cg(M,G),p&&function dR(e,n,t,r){if(r)Eu(e,t,["ng-version",nN.full]);else{const{attrs:i,classes:o}=function BS(e){const n=[],t=[];let r=1,i=2;for(;r0&&j_(e,t,o.join(" "))}}(f,pe,p,r),void 0!==t&&function fR(e,n,t){const r=e.projection=[];for(let i=0;i(er(!0),Va(r,i,function Ug(){return P.lFrame.currentNamespace}()));function os(e){return!!e&&"function"==typeof e.then}function Ay(e){return!!e&&"function"==typeof e.subscribe}function it(e,n,t,r){const i=v(),o=K(),s=ze();return function Ry(e,n,t,r,i,o,s){const a=_a(r),l=e.firstCreatePass&&function Kb(e){return e.cleanup||(e.cleanup=[])}(e),u=n[Ie],d=function Zb(e){return e[ii]||(e[ii]=[])}(n);let f=!0;if(3&r.type||s){const m=mt(r,n),_=s?s(m):m,y=d.length,g=s?S=>s(ue(S[r.index])):r.index;let M=null;if(!s&&a&&(M=function JR(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=o,M.__ngLastListenerFn__=o,f=!1;else{o=ky(r,n,u,o,!1);const S=t.listen(_,i,o);d.push(o,S),l&&l.push(i,g,y,y+1)}}else o=ky(r,n,u,o,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let _=0;_-1?Ct(e.index,n):n);let c=Oy(n,t,r,s),l=o.__ngNextListenerFn__;for(;l;)c=Oy(n,t,l,s)&&c,l=l.__ngNextListenerFn__;return i&&!1===c&&s.preventDefault(),c}}function bt(e,n=""){const t=v(),r=K(),i=e+G,o=r.firstCreatePass?Fi(r,i,1,n,null):r.data[i],s=sv(r,t,o,n,e);t[i]=s,wa()&&Ha(r,t,s,o),pn(o,!1)}let sv=(e,n,t,r,i)=>(er(!0),function La(e,n){return e.createText(n)}(n[j],r));const Wi="en-US";let xv=Wi;class Fr{}class ew{}class If extends Fr{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new iy(this);const i=Et(n);this._bootstrapComponents=Pn(i.bootstrap),this._r3Injector=bb(n,t,[{provide:Fr,useValue:this},{provide:rc,useValue:this.componentFactoryResolver},...r],Re(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}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 Sf extends ew{constructor(n){super(),this.moduleType=n}create(n){return new If(this.moduleType,n,[])}}class tw extends Fr{constructor(n){super(),this.componentFactoryResolver=new iy(this),this.instance=null;const t=new Ii([...n.providers,{provide:Fr,useValue:this},{provide:rc,useValue:this.componentFactoryResolver}],n.parent||Ka(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function xf(e,n,t=null){return new tw({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let ZO=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=rb(0,t.type),i=r.length>0?xf([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}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=x({token:e,providedIn:"environment",factory:()=>new e(D(Bt))})}return e})();function nw(e){e.getStandaloneInjector=n=>n.get(ZO).getOrCreateStandaloneInjector(e)}function lw(e,n,t,r,i){return function dw(e,n,t,r,i,o,s){const a=n+t;return function Rr(e,n,t,r){const i=Ye(e,n,t);return Ye(e,n+1,r)||i}(e,a,i,o)?bn(e,a+2,s?r.call(s,i,o):r(i,o)):fs(e,a+2)}(v(),tt(),e,n,t,r,i)}function fs(e,n){const t=e[n];return t===H?void 0:t}function gw(e,n,t){const r=e+G,i=v(),o=function ui(e,n){return e[n]}(i,r);return function hs(e,n){return e[C].data[n].pure}(i,r)?function uw(e,n,t,r,i,o){const s=n+t;return Ye(e,s,i)?bn(e,s+1,o?r.call(o,i):r(i)):fs(e,s+1)}(i,tt(),n,o.transform,t,o):o.transform(t)}function yk(e,n,t,r=!0){const i=n[C];if(function zT(e,n,t,r){const i=Ue+r,o=t.length;r>0&&(t[i-1][Kt]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=xk}return e})();function xk(){return function Ew(e,n){let t;const r=n[e.index];return et(r)?t=r:(t=function Gb(e,n,t,r){return[e,!0,!1,n,null,0,r,t,null,null,null]}(r,n,null,e),n[e.index]=t,ac(n,t)),Cw(t,n,e,r),new ww(t,e,n)}(ze(),v())}const Tk=en,ww=class extends Tk{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Ai(this._hostTNode,this._hostLView)}get injector(){return new rt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Sa(this._hostTNode,this._hostLView);if($u(n)){const t=ko(n,this._hostLView),r=Oo(n);return new rt(t[C].data[r+8],t)}return new rt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=Dw(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,i,false),a}createComponent(n,t,r,i,o){const s=n&&!function Lo(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const m=t||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const c=s?n:new es(W(n)),l=r||this.parentInjector;if(!o&&null==c.ngModule){const _=(s?l:this.parentInjector).get(Bt,null);_&&(o=_)}W(c.componentType??{});const h=c.create(l,i,null,o);return this.insertImpl(h.hostView,a,false),h}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const i=n._lView;if(function px(e){return et(e[_e])}(i)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const l=i[_e],u=new ww(l,l[Ze],l[_e]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return yk(a,i,s,!r),n.attachToViewContainerRef(),r_(Nf(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=Dw(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=ja(this._lContainer,t);r&&(Ta(Nf(this._lContainer),t),sd(r[C],r))}detach(n){const t=this._adjustIndex(n,-1),r=ja(this._lContainer,t);return r&&null!=Ta(Nf(this._lContainer),t)?new Jo(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function Dw(e){return e[8]}function Nf(e){return e[8]||(e[8]=[])}let Cw=function Mw(e,n,t,r){if(e[fn])return;let i;i=8&t.type?ue(r):function Ak(e,n){const t=e[j],r=t.createComment(""),i=mt(n,e);return Sr(t,Ba(t,i),r,function KT(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[fn]=i};const zf=new E("Application Initializer");let qf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=I(zf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(os(o))t.push(o);else if(Ay(o)){const s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Kw=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const wn=new E("LocaleId",{providedIn:"root",factory:()=>I(wn,q.Optional|q.SkipSelf)||function sF(){return typeof $localize<"u"&&$localize.locale||Wi}()});let Qw=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dt(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class lF{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let Yw=(()=>{class e{compileModuleSync(t){return new Sf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=Pn(Et(t).declarations).reduce((s,a)=>{const c=W(a);return c&&s.push(new es(c)),s},[]);return new lF(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const t0=new E(""),Ic=new E("");let Qf,Zf=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Qf||(function NF(e){Qf=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(D(X),D(Kf),D(Ic))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Kf=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return Qf?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),or=null;const n0=new E("AllowMultipleToken"),Yf=new E("PlatformDestroyListeners"),Xf=new E("appBootstrapListener");class o0{constructor(n,t){this.name=n,this.token=t}}function a0(e,n,t=[]){const r=`Platform: ${n}`,i=new E(r);return(o=[])=>{let s=Jf();if(!s||s.injector.get(n0,!1)){const a=[...t,...o,{provide:i,useValue:!0}];e?e(a):function kF(e){if(or&&!or.get(n0,!1))throw new b(400,!1);(function r0(){!function JS(e){pg=e}(()=>{throw new b(600,!1)})})(),or=e;const n=e.get(l0);(function s0(e){e.get(cb,null)?.forEach(t=>t())})(e)}(function c0(e=[],n){return _t.create({name:n,providers:[{provide:wd,useValue:"platform"},{provide:Yf,useValue:new Set([()=>or=null])},...e]})}(a,r))}return function PF(e){const n=Jf();if(!n)throw new b(401,!1);return n}()}}function Jf(){return or?.get(l0)??null}let l0=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function LF(e="zone.js",n){return"noop"===e?new pN:"zone.js"===e?new X(n):e}(r?.ngZone,function u0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function WO(e,n,t){return new If(e,n,t)}(t.moduleType,this.injector,function m0(e){return[{provide:X,useFactory:e},{provide:Wo,multi:!0,useFactory:()=>{const n=I(jF,{optional:!0});return()=>n.initialize()}},{provide:p0,useFactory:VF},{provide:Eb,useFactory:Cb}]}(()=>i)),s=o.injector.get(Yt,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{Sc(this._modules,o),a.unsubscribe()})}),function d0(e,n,t){try{const r=t();return os(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(qf);return a.runInitializers(),a.donePromise.then(()=>(function Tv(e){kt(e,"Expected localeId to be defined"),"string"==typeof e&&(xv=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(wn,Wi)||Wi),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const i=f0({},r);return function RF(e,n,t){const r=new Sf(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(Pr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new b(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Yf,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(D(_t))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function f0(e,n){return Array.isArray(n)?n.reduce(f0,e):{...e,...n}}let Pr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(p0),this.zoneIsStable=I(Eb),this.componentTypes=[],this.components=[],this.isStable=I(Qw).hasPendingTasks.pipe(ln(t=>t?N(!1):this.zoneIsStable),cu(),su()),this._injector=I(Bt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof fb;if(!this._injector.get(qf).done)throw!i&&function ri(e){const n=W(e)||He(e)||Je(e);return null!==n&&n.standalone}(t),new b(405,!1);let s;s=i?t:this._injector.get(rc).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function OF(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Fr),l=s.create(_t.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(t0,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Sc(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Sc(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Xf,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(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),()=>Sc(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(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sc(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const p0=new E("",{providedIn:"root",factory:()=>I(Yt).handleError.bind(void 0)});function VF(){const e=I(X),n=I(Yt);return t=>e.runOutsideAngular(()=>n.handleError(t))}let jF=(()=>{class e{constructor(){this.zone=I(X),this.applicationRef=I(Pr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let gs=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HF}return e})();function HF(e){return function UF(e,n,t){if(Dr(e)&&!t){const r=Ct(e.index,n);return new Jo(r,r)}return 47&e.type?new Jo(n[Se],n):null}(ze(),v(),16==(16&e))}class y0{constructor(){}supports(n){return dc(n)}create(n){return new ZF(n)}}const WF=(e,n)=>n;class ZF{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||WF}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;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,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new KF(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new v0),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._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 v0),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 KF{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 QF{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class v0{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new QF,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.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 w0(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._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 i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new XF(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_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(r=>t(n[r],r))}}class XF{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 E0(){return new Ac([new y0])}let Ac=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:E0});constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||E0()),deps:[[e,new jo,new Ir]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new b(901,!1)}}return e})();function C0(){return new _s([new D0])}let _s=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:C0});constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||C0()),deps:[[e,new jo,new Ir]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new b(901,!1)}}return e})();const tP=a0(null,"core",[]);let nP=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(D(Pr))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();function Qi(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let oh=null;function sr(){return oh}class gP{}const ye=new E("DocumentToken");let sh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(bP)},providedIn:"platform"})}return e})();const _P=new E("Location Initialized");let bP=(()=>{class e extends sh{constructor(){super(),this._doc=I(ye),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sr().getBaseHref(this._doc)}onPopState(t){const r=sr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=sr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}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(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function ah(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 O0(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 jn(e){return e&&"?"!==e[0]?"?"+e:e}let Vr=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(F0)},providedIn:"root"})}return e})();const k0=new E("appBaseHref");let F0=(()=>{class e extends Vr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(ye).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 ah(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+jn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+jn(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+jn(o));this._platformLocation.replaceState(t,r,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(r){return new(r||e)(D(sh),D(k0,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yP=(()=>{class e extends Vr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=ah(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+jn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+jn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,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(r){return new(r||e)(D(sh),D(k0,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ch=(()=>{class e{constructor(t){this._subject=new be,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function DP(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(O0(P0(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+jn(r))}normalize(t){return e.stripTrailingSlash(function wP(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,P0(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+jn(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+jn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static#e=this.normalizeQueryParams=jn;static#t=this.joinWithSlash=ah;static#n=this.stripTrailingSlash=O0;static#r=this.\u0275fac=function(r){return new(r||e)(D(Vr))};static#i=this.\u0275prov=x({token:e,factory:function(){return function vP(){return new ch(D(Vr))}()},providedIn:"root"})}return e})();function P0(e){return e.replace(/\/index.html$/,"")}const bh=/\s+/,q0=[];let G0=(()=>{class e{constructor(t,r,i,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=q0,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(bh):q0}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(bh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(bh).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(w(Ac),w(_s),w(Qe),w(Fn))};static#t=this.\u0275dir=O({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class hL{createSubscription(n,t){return _g(()=>n.subscribe({next:t,error:r=>{throw r}}))}dispose(n){_g(()=>n.unsubscribe())}}class pL{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const mL=new pL,gL=new hL;let X0=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(os(t))return mL;if(Ay(t))return gL;throw function nn(e,n){return new b(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}static#e=this.\u0275fac=function(r){return new(r||e)(w(gs,16))};static#t=this.\u0275pipe=ht({name:"async",type:e,pure:!1,standalone:!0})}return e})(),eD=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();const tD="browser";function nD(e){return"server"===e}let VL=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new jL(D(ye),window)})}return e})();class jL{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function BL(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 r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class u2 extends gP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Mh extends u2{static makeCurrent(){!function mP(e){oh||(oh=e)}(new Mh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}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 d2(){return ws=ws||document.querySelector("base"),ws?ws.getAttribute("href"):null}();return null==t?null:function f2(e){zc=zc||document.createElement("a"),zc.setAttribute("href",e);const n=zc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){ws=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function sL(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}(document.cookie,n)}}let zc,ws=null,p2=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Ih=new E("EventManagerPlugins");let aD=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ih),D(X))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class cD{constructor(n){this._doc=n}}const Sh="ng-app-id";let lD=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=nD(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Sh}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(Sh),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Sh,this.appId),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r);t.appendChild(i);const o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye),D(Qa),D(Md,8),D(Ar))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const xh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Th=/%COMP%/g,b2=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function dD(e,n){return n.map(t=>t.replace(Th,e))}let Ah=(()=>{class e{constructor(t,r,i,o,s,a,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=nD(a),this.defaultRenderer=new Nh(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ft.ShadowDom&&(r={...r,encapsulation:Ft.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof hD?i.applyToHost(t):i instanceof Rh&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ft.Emulated:o=new hD(c,l,r,this.appId,u,s,a,d);break;case Ft.ShadowDom:return new D2(c,l,t,r,s,a,this.nonce,d);default:o=new Rh(c,l,r,u,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(D(aD),D(lD),D(Qa),D(b2),D(ye),D(Ar),D(X),D(Md))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class Nh{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(xh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(fD(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(fD(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new b(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=xh[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=xh[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(tr.DashCase|tr.Important)?n.style.setProperty(t,r,i&tr.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&tr.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=sr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function fD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class D2 extends Nh{constructor(n,t,r,i,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=dD(i.id,i.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Rh extends Nh{constructor(n,t,r,i,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?dD(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class hD extends Rh{constructor(n,t,r,i,o,s,a,c){const l=i+"-"+r.id;super(n,t,r,o,s,a,c,l),this.contentAttr=function y2(e){return"_ngcontent-%COMP%".replace(Th,e)}(l),this.hostAttr=function v2(e){return"_nghost-%COMP%".replace(Th,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let E2=(()=>{class e extends cD{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const pD=["alt","control","meta","shift"],C2={"\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"},M2={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let I2=(()=>{class e extends cD{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),pD.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let i=C2[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),pD.forEach(s=>{s!==i&&(0,M2[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const A2=a0(tP,"browser",[{provide:Ar,useValue:tD},{provide:cb,useValue:function S2(){Mh.makeCurrent()},multi:!0},{provide:ye,useFactory:function T2(){return function rA(e){hd=e}(document),document},deps:[]}]),N2=new E(""),_D=[{provide:Ic,useClass:class h2{addToWindow(n){le.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new b(5103,!1);return o},le.getAllAngularTestabilities=()=>n.getAllTestabilities(),le.getAllAngularRootElements=()=>n.getAllRootElements(),le.frameworkStabilizers||(le.frameworkStabilizers=[]),le.frameworkStabilizers.push(r=>{const i=le.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(c){s=s||c,o--,0==o&&r(s)};i.forEach(c=>{c.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?sr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:t0,useClass:Zf,deps:[X,Kf,Ic]},{provide:Zf,useClass:Zf,deps:[X,Kf,Ic]}],bD=[{provide:wd,useValue:"root"},{provide:Yt,useFactory:function x2(){return new Yt},deps:[]},{provide:Ih,useClass:E2,multi:!0,deps:[ye,X,Ar]},{provide:Ih,useClass:I2,multi:!0,deps:[ye]},Ah,lD,aD,{provide:Ni,useExisting:Ah},{provide:class HL{},useClass:p2,deps:[]},[]];let yD=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Qa,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(D(N2,12))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({providers:[...bD,..._D],imports:[eD,nP]})}return e})(),vD=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye))};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new r:function O2(){return new vD(D(ye))}(),i},providedIn:"root"})}return e})();typeof window<"u"&&window;const{isArray:j2}=Array,{getPrototypeOf:B2,prototype:H2,keys:U2}=Object;const{isArray:z2}=Array;function qc(...e){const n=bo(e),t=function Tm(e){return oe(ou(e))?e.pop():void 0}(e),{args:r,keys:i}=function MD(e){if(1===e.length){const n=e[0];if(j2(n))return{args:n,keys:null};if(function $2(e){return e&&"object"==typeof e&&B2(e)===H2}(n)){const t=U2(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e);if(0===r.length)return Le([],n);const o=new Ce(function G2(e,n,t=Wn){return r=>{xD(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let c=0;c{const l=Le(e[c],n);let u=!1;l.subscribe(Me(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>function SD(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}(i,s):Wn));return t?o.pipe(function ID(e){return z(n=>function q2(e,n){return z2(n)?e(...n):e(n)}(e,n))}(t)):o}function xD(e,n,t){e?xn(t,e,n):n()}const Gc=go(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Wc(...e){return function W2(){return ti(1)}()(Le(e,bo(e)))}function TD(e){return new Ce(n=>{wt(e()).subscribe(n)})}function Xi(e,n){const t=oe(e)?e:()=>e,r=i=>i.error(t());return new Ce(n?i=>n.schedule(r,0,i):r)}function Fh(){return Te((e,n)=>{let t=null;e._refCount++;const r=Me(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class AD extends Ce{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,pm(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 lt;const t=this.getSubject();n.add(this.source.subscribe(Me(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=lt.EMPTY)}return n}refCount(){return Fh()(this)}}function jr(e){return e<=0?()=>cn:Te((n,t)=>{let r=0;n.subscribe(Me(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function ND(...e){const n=bo(e);return Te((t,r)=>{(n?Wc(e,t,n):Wc(e,t)).subscribe(r)})}function Dn(e,n){return Te((t,r)=>{let i=0;t.subscribe(Me(r,o=>e.call(n,o,i++)&&r.next(o)))})}function Zc(e){return Te((n,t)=>{let r=!1;n.subscribe(Me(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function RD(e=Z2){return Te((n,t)=>{let r=!1;n.subscribe(Me(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function Z2(){return new Gc}function Br(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Dn((i,o)=>e(i,o,r)):Wn,jr(1),t?Zc(n):RD(()=>new Gc))}function Ji(e,n){return oe(n)?Be(e,n,1):Be(e,1)}function Pe(e,n,t){const r=oe(e)||n||t?{next:e,error:n,complete:t}:e;return r?Te((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Me(o,c=>{var l;null===(l=r.next)||void 0===l||l.call(r,c),o.next(c)},()=>{var c;a=!1,null===(c=r.complete)||void 0===c||c.call(r),o.complete()},c=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,c),o.error(c)},()=>{var c,l;a&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Wn}function cr(e){return Te((n,t)=>{let o,r=null,i=!1;r=n.subscribe(Me(t,void 0,void 0,s=>{o=wt(e(s,cr(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Ph(e){return e<=0?()=>cn:Te((n,t)=>{let r=[];n.subscribe(Me(t,i=>{r.push(i),e{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function Kc(e){return Te((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function Lh(e){return Te((n,t)=>{wt(e).subscribe(Me(t,()=>t.complete(),Kl)),!t.closed&&n.subscribe(t)})}const $="primary",Ds=Symbol("RouteTitle");class J2{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 eo(e){return new J2(e)}function eV(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[o]===i)}return e===n}function kD(e){return e.length>0?e[e.length-1]:null}function lr(e){return function V2(e){return!!e&&(e instanceof Ce||oe(e.lift)&&oe(e.subscribe))}(e)?e:os(e)?Le(Promise.resolve(e)):N(e)}const nV={exact:function LD(e,n,t){if(!Hr(e.segments,n.segments)||!Qc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!LD(e.children[r],n.children[r],t))return!1;return!0},subset:VD},FD={exact:function rV(e,n){return En(e,n)},subset:function iV(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>OD(e[t],n[t]))},ignored:()=>!0};function PD(e,n,t){return nV[t.paths](e.root,n.root,t.matrixParams)&&FD[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function VD(e,n,t){return jD(e,n,n.segments,t)}function jD(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!Hr(i,t)||n.hasChildren()||!Qc(i,t,r))}if(e.segments.length===t.length){if(!Hr(e.segments,t)||!Qc(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!VD(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(Hr(e.segments,i)&&Qc(e.segments,i,r)&&e.children[$])&&jD(e.children[$],n,o,r)}}function Qc(e,n,t){return n.every((r,i)=>FD[t](e[i].parameters,r.parameters))}class to{constructor(n=new ie([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=eo(this.queryParams)),this._queryParamMap}toString(){return aV.serialize(this)}}class ie{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yc(this)}}class Es{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=eo(this.parameters)),this._parameterMap}toString(){return UD(this)}}function Hr(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Cs=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new Vh},providedIn:"root"})}return e})();class Vh{parse(n){const t=new bV(n);return new to(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Ms(n.root,!0)}`,r=function uV(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${Xc(t)}=${Xc(i)}`).join("&"):`${Xc(t)}=${Xc(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function cV(e){return encodeURI(e)}(n.fragment)}`:""}`}}const aV=new Vh;function Yc(e){return e.segments.map(n=>UD(n)).join("/")}function Ms(e,n){if(!e.hasChildren())return Yc(e);if(n){const t=e.children[$]?Ms(e.children[$],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==$&&r.push(`${i}:${Ms(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function sV(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===$&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==$&&(t=t.concat(n(i,r)))}),t}(e,(r,i)=>i===$?[Ms(e.children[$],!1)]:[`${i}:${Ms(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[$]?`${Yc(e)}/${t[0]}`:`${Yc(e)}/(${t.join("//")})`}}function BD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xc(e){return BD(e).replace(/%3B/gi,";")}function jh(e){return BD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jc(e){return decodeURIComponent(e)}function HD(e){return Jc(e.replace(/\+/g,"%20"))}function UD(e){return`${jh(e.path)}${function lV(e){return Object.keys(e).map(n=>`;${jh(n)}=${jh(e[n])}`).join("")}(e.parameters)}`}const dV=/^[^\/()?;#]+/;function Bh(e){const n=e.match(dV);return n?n[0]:""}const fV=/^[^\/()?;=#]+/,pV=/^[^=?&#]+/,gV=/^[^&#]+/;class bV{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ie([],{}):new ie([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[$]=new ie(n,t)),r}parseSegment(){const n=Bh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Es(Jc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function hV(e){const n=e.match(fV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=Bh(this.remaining);i&&(r=i,this.capture(r))}n[Jc(t)]=Jc(r)}parseQueryParam(n){const t=function mV(e){const n=e.match(pV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function _V(e){const n=e.match(gV);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=HD(t),o=HD(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Bh(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=$);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[$]:new ie([],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 $D(e){return e.segments.length>0?new ie([],{[$]:e}):e}function zD(e){const n={};for(const r of Object.keys(e.children)){const o=zD(e.children[r]);if(r===$&&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[r]=o)}return function yV(e){if(1===e.numberOfChildren&&e.children[$]){const n=e.children[$];return new ie(e.segments.concat(n.segments),n.children)}return e}(new ie(e.segments,n))}function Ur(e){return e instanceof to}function qD(e){let n;const i=$D(function t(o){const s={};for(const c of o.children){const l=t(c);s[c.outlet]=l}const a=new ie(o.url,s);return o===e&&(n=a),a}(e.root));return n??i}function GD(e,n,t,r){let i=e;for(;i.parent;)i=i.parent;if(0===n.length)return Hh(i,i,i,t,r);const o=function wV(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ZD(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new ZD(t,n,r)}(n);if(o.toRoot())return Hh(i,i,new ie([],{}),t,r);const s=function DV(e,n,t){if(e.isAbsolute)return new tl(n,!0,0);if(!t)return new tl(n,!1,NaN);if(null===t.parent)return new tl(t,!0,0);const r=el(e.commands[0])?0:1;return function EV(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new tl(r,!1,i-o)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Ss(s.segmentGroup,s.index,o.commands):KD(s.segmentGroup,s.index,o.commands);return Hh(i,s.segmentGroup,a,t,r)}function el(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Is(e){return"object"==typeof e&&null!=e&&e.outlets}function Hh(e,n,t,r,i){let s,o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===n?t:WD(e,n,t);const a=$D(zD(s));return new to(a,o,i)}function WD(e,n,t){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===n?t:WD(o,n,t)}),new ie(e.segments,r)}class ZD{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&el(r[0]))throw new b(4003,!1);const i=r.find(Is);if(i&&i!==kD(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tl{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function KD(e,n,t){if(e||(e=new ie([],{})),0===e.segments.length&&e.hasChildren())return Ss(e,n,t);const r=function MV(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=e.segments[i],a=t[r];if(Is(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!YD(c,l,s))return o;r+=2}else{if(!YD(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndexo!==$)&&e.children[$]&&1===e.numberOfChildren&&0===e.children[$].segments.length){const o=Ss(e.children[$],n,t);return new ie(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=KD(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new ie(e.segments,i)}}function Uh(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Uh(new ie([],{}),0,r))}),n}function QD(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function YD(e,n,t){return e==t.path&&En(n,t.parameters)}const xs="imperative";class Cn{constructor(n,t){this.id=n,this.url=t}}class nl extends Cn{constructor(n,t,r="imperative",i=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ur extends Cn{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ts extends Cn{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class no extends Cn{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=16}}class rl extends Cn{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XD extends Cn{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SV extends Cn{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xV extends Cn{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class TV extends Cn{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AV extends Cn{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NV{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class RV{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class OV{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kV{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FV{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PV{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JD{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $h{}class zh{constructor(n){this.url=n}}class LV{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new As,this.attachRef=null}}let As=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new LV,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class eE{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=qh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=qh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Gh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Gh(n,this._root).map(t=>t.value)}}function qh(e,n){if(e===n.value)return n;for(const t of n.children){const r=qh(e,t);if(r)return r}return null}function Gh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=Gh(e,t);if(r.length)return r.unshift(n),r}return[]}class Un{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function ro(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class tE extends eE{constructor(n,t){super(n),this.snapshot=t,Wh(this,n)}toString(){return this.snapshot.toString()}}function nE(e,n){const t=function VV(e,n){const s=new il([],{},{},"",{},$,n,null,{});return new iE("",new Un(s,[]))}(0,n),r=new dt([new Es("",{})]),i=new dt({}),o=new dt({}),s=new dt({}),a=new dt(""),c=new io(r,i,s,a,o,$,n,t.root);return c.snapshot=t.root,new tE(new Un(c,[]),t)}class io{constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(z(l=>l[Ds]))??N(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,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._paramMap=this.params.pipe(z(n=>eo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(n=>eo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rE(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function jV(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class il{get title(){return this.data?.[Ds]}constructor(n,t,r,i,o,s,a,c,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=eo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=eo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class iE extends eE{constructor(n,t){super(t),this.url=n,Wh(this,t)}toString(){return oE(this._root)}}function Wh(e,n){n.value._routerState=e,n.children.forEach(t=>Wh(e,t))}function oE(e){const n=e.children.length>0?` { ${e.children.map(oE).join(", ")} } `:"";return`${e.value}${n}`}function Zh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,En(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),En(n.params,t.params)||e.paramsSubject.next(t.params),function tV(e,n){if(e.length!==n.length)return!1;for(let t=0;tEn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Kh(e.parent,n.parent))}let Qh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=$,this.activateEvents=new be,this.deactivateEvents=new be,this.attachEvents=new be,this.detachEvents=new be,this.parentContexts=I(As),this.location=I(en),this.changeDetector=I(gs),this.environmentInjector=I(Bt),this.inputBinder=I(ol,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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,r){this.activated=t,this._activatedRoute=r,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,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;const i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new BV(t,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Vt]})}return e})();class BV{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===io?this.route:n===As?this.childContexts:this.parent.get(n,t)}}const ol=new E("");let sE=(()=>{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:r}=t,i=qc([r.queryParams,r.params,r.data]).pipe(ln(([o,s,a],c)=>(a={...o,...s,...a},0===c?N(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function pP(e){const n=W(e);if(!n)return null;const t=new es(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}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Ns(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function UV(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ns(e,r,i);return Ns(e,r)})}(e,n,t);return new Un(r,i)}{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=>Ns(e,a)),s}}const r=function $V(e){return new io(new dt(e.url),new dt(e.params),new dt(e.queryParams),new dt(e.fragment),new dt(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>Ns(e,o));return new Un(r,i)}}const Yh="ngNavigationCancelingError";function aE(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Ur(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=cE(!1,0,n);return i.url=t,i.navigationBehaviorOptions=r,i}function cE(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[Yh]=!0,r.cancellationCode=n,t&&(r.url=t),r}function lE(e){return e&&e[Yh]}let uE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["ng-component"]],standalone:!0,features:[nw],decls:1,vars:0,template:function(r,i){1&r&&Ut(0,"router-outlet")},dependencies:[Qh],encapsulation:2})}return e})();function Xh(e){const n=e.children&&e.children.map(Xh),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==$&&(t.component=uE),t}function rn(e){return e.outlet||$}function Rs(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 YV{constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Zh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=ro(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=ro(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=ro(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const i=ro(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new PV(o.value.snapshot))}),n.children.length&&this.forwardEvent(new kV(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(Zh(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Zh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Rs(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class dE{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class sl{constructor(n,t){this.component=n,this.route=t}}function XV(e,n,t){const r=e._root;return Os(r,n?n._root:null,t,[r.value])}function oo(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function bS(e){return null!==ca(e)}(e)?n.get(e):e:r}function Os(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=ro(n);return e.children.forEach(s=>{(function ej(e,n,t,r,i={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 c=function tj(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Hr(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Hr(e.url,n.url)||!En(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kh(e,n)||!En(e.queryParams,n.queryParams);default:return!Kh(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new dE(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Os(e,n,o.component?a?a.children:null:t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new sl(a.outlet.component,s))}else s&&ks(n,a,i),i.canActivateChecks.push(new dE(r)),Os(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ks(a,t.getContext(s),i)),i}function ks(e,n,t){const r=ro(e),i=e.value;Object.entries(r).forEach(([o,s])=>{ks(s,i.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new sl(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function Fs(e){return"function"==typeof e}function fE(e){return e instanceof Gc||"EmptyError"===e?.name}const al=Symbol("INITIAL_VALUE");function so(){return ln(e=>qc(e.map(n=>n.pipe(jr(1),ND(al)))).pipe(z(n=>{for(const t of n)if(!0!==t){if(t===al)return al;if(!1===t||t instanceof to)return t}return!0}),Dn(n=>n!==al),jr(1)))}function hE(e){return function wI(...e){return dm(e)}(Pe(n=>{if(Ur(n))throw aE(0,n)}),z(n=>!0===n))}class cl{constructor(n){this.segmentGroup=n||null}}class pE{constructor(n){this.urlTree=n}}function ao(e){return Xi(new cl(e))}function mE(e){return Xi(new pE(e))}class wj{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new b(4002,!1)}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return N(r);if(i.numberOfChildren>1||!i.children[$])return Xi(new b(4e3,!1));i=i.children[$]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new to(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new ie(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}const Jh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Dj(e,n,t,r,i){const o=ep(e,n,t);return o.matched?(r=function qV(e,n){return e.providers&&!e._injector&&(e._injector=xf(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function bj(e,n,t,r){const i=n.canMatch;return i&&0!==i.length?N(i.map(s=>{const a=oo(s,e);return lr(function aj(e){return e&&Fs(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(so(),hE()):N(!0)}(r,n,t).pipe(z(s=>!0===s?o:{...Jh}))):N(o)}function ep(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Jh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(n.matcher||eV)(t,e,n);if(!i)return{...Jh};const o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function gE(e,n,t,r){return t.length>0&&function Mj(e,n,t){return t.some(r=>ll(e,n,r)&&rn(r)!==$)}(e,t,r)?{segmentGroup:new ie(n,Cj(r,new ie(t,e.children))),slicedSegments:[]}:0===t.length&&function Ij(e,n,t){return t.some(r=>ll(e,n,r))}(e,t,r)?{segmentGroup:new ie(e.segments,Ej(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new ie(e.segments,e.children),slicedSegments:t}}function Ej(e,n,t,r,i){const o={};for(const s of r)if(ll(e,t,s)&&!i[rn(s)]){const a=new ie([],{});o[rn(s)]=a}return{...i,...o}}function Cj(e,n){const t={};t[$]=n;for(const r of e)if(""===r.path&&rn(r)!==$){const i=new ie([],{});t[rn(r)]=i}return t}function ll(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class Aj{constructor(n,t,r,i,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new wj(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,!1)}recognize(){const n=gE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,$).pipe(cr(t=>{if(t instanceof pE)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof cl?this.noMatchError(t):t}),z(t=>{const r=new il([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$,this.rootComponentType,null,{}),i=new Un(r,t),o=new iE("",i),s=function vV(e,n,t=null,r=null){return GD(qD(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,$).pipe(cr(r=>{throw r instanceof cl?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=rE(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,i,!0)}processChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Le(i).pipe(Ji(o=>{const s=r.children[o],a=function KV(e,n){const t=e.filter(r=>rn(r)===n);return t.push(...e.filter(r=>rn(r)!==n)),t}(t,o);return this.processSegmentGroup(n,a,s,o)}),function Q2(e,n){return Te(function K2(e,n,t,r,i){return(o,s)=>{let a=t,c=n,l=0;o.subscribe(Me(s,u=>{const d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}(e,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Zc(null),function Y2(e,n){const t=arguments.length>=2;return r=>r.pipe(e?Dn((i,o)=>e(i,o,r)):Wn,Ph(1),t?Zc(n):RD(()=>new Gc))}(),Be(o=>{if(null===o)return ao(r);const s=_E(o);return function Nj(e){e.sort((n,t)=>n.value.outlet===$?-1:t.value.outlet===$?1:n.value.outlet.localeCompare(t.value.outlet))}(s),N(s)}))}processSegment(n,t,r,i,o,s){return Le(t).pipe(Ji(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,i,o,s).pipe(cr(c=>{if(c instanceof cl)return N(null);throw c}))),Br(a=>!!a),cr(a=>{if(fE(a))return function xj(e,n,t){return 0===n.length&&!e.children[t]}(r,i,o)?N([]):ao(r);throw a}))}processSegmentAgainstRoute(n,t,r,i,o,s,a){return function Sj(e,n,t,r){return!!(rn(e)===r||r!==$&&ll(n,t,e))&&("**"===e.path||ep(n,e,t).matched)}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,i,r,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s):ao(i):ao(i)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?mE(o):this.applyRedirects.lineralizeSegments(r,o).pipe(Be(s=>{const a=new ie(s,{});return this.processSegment(n,t,a,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=ep(t,i,o);if(!a)return ao(t);const d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return i.redirectTo.startsWith("/")?mE(d):this.applyRedirects.lineralizeSegments(i,d).pipe(Be(f=>this.processSegment(n,r,t,f.concat(l),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o,s){let a;if("**"===r.path){const c=i.length>0?kD(i).parameters:{};a=N({snapshot:new il(i,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bE(r),rn(r),r.component??r._loadedComponent??null,r,yE(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=Dj(t,r,i,n).pipe(z(({matched:c,consumedSegments:l,remainingSegments:u,parameters:d})=>c?{snapshot:new il(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bE(r),rn(r),r.component??r._loadedComponent??null,r,yE(r)),consumedSegments:l,remainingSegments:u}:null));return a.pipe(ln(c=>null===c?ao(t):this.getChildConfig(n=r._injector??n,r,i).pipe(ln(({routes:l})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:f,remainingSegments:h}=c,{segmentGroup:p,slicedSegments:m}=gE(t,f,h,l);if(0===m.length&&p.hasChildren())return this.processChildren(u,l,p).pipe(z(y=>null===y?null:[new Un(d,y)]));if(0===l.length&&0===m.length)return N([new Un(d,[])]);const _=rn(r)===o;return this.processSegment(u,l,p,m,_?$:o,!0).pipe(z(y=>[new Un(d,y)]))}))))}getChildConfig(n,t,r){return t.children?N({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?N({routes:t._loadedRoutes,injector:t._loadedInjector}):function _j(e,n,t,r){const i=n.canLoad;return void 0===i||0===i.length?N(!0):N(i.map(s=>{const a=oo(s,e);return lr(function rj(e){return e&&Fs(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(so(),hE())}(n,t,r).pipe(Be(i=>i?this.configLoader.loadChildren(n,t).pipe(Pe(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function vj(e){return Xi(cE(!1,3))}())):N({routes:[],injector:n})}}function Rj(e){const n=e.value.routeConfig;return n&&""===n.path}function _E(e){const n=[],t=new Set;for(const r of e){if(!Rj(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=_E(r.children);n.push(new Un(r.value,i))}return n.filter(r=>!t.has(r))}function bE(e){return e.data||{}}function yE(e){return e.resolve||{}}function vE(e){return"string"==typeof e.title||null===e.title}function tp(e){return ln(n=>{const t=e(n);return t?Le(t).pipe(z(()=>n)):N(n)})}const co=new E("ROUTES");let np=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(Yw)}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 r=lr(t.loadComponent()).pipe(z(wE),Pe(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Kc(()=>{this.componentLoaders.delete(t)})),i=new AD(r,()=>new ut).pipe(Fh());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return N({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function jj(e,n,t,r){return lr(e.loadChildren()).pipe(z(wE),Be(i=>i instanceof ew||Array.isArray(i)?N(i):Le(n.compileModuleAsync(i))),z(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(t).injector,s=o.get(co,[],{optional:!0,self:!0}).flat()),{routes:s.map(Xh),injector:o}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Kc(()=>{this.childrenLoaders.delete(r)})),s=new AD(o,()=>new ut).pipe(Fh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wE(e){return function Bj(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ul=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ut,this.transitionAbortSubject=new ut,this.configLoader=I(np),this.environmentInjector=I(Bt),this.urlSerializer=I(Cs),this.rootContexts=I(As),this.inputBindingEnabled=null!==I(ol,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>N(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new RV(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new NV(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,i){return this.transitions=new dt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xs,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Dn(o=>0!==o.id),z(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),ln(o=>{this.currentTransition=o;let s=!1,a=!1;return N(o).pipe(Pe(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ln(c=>{const l=c.currentBrowserUrl.toString(),u=!t.navigated||c.extractedUrl.toString()!==l||l!==c.currentUrlTree.toString();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new no(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),cn}if(t.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return N(c).pipe(ln(f=>{const h=this.transitions?.getValue();return this.events.next(new nl(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?cn:Promise.resolve(f)}),function Oj(e,n,t,r,i,o){return Be(s=>function Tj(e,n,t,r,i,o,s="emptyOnly"){return new Aj(e,n,t,r,i,s,o).recognize()}(e,n,t,r,s.extractedUrl,i,o).pipe(z(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Pe(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const h=new XD(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&t.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:_}=c,y=new nl(f,this.urlSerializer.serialize(h),p,m);this.events.next(y);const g=nE(0,this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:g,urlAfterRedirects:h,extras:{..._,skipLocationChange:!1,replaceUrl:!1}},N(o)}{const f="";return this.events.next(new no(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),cn}}),Pe(c=>{const l=new SV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),z(c=>(this.currentTransition=o={...c,guards:XV(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function lj(e,n){return Be(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?N({...t,guardsResult:!0}):function uj(e,n,t,r){return Le(e).pipe(Be(i=>function gj(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?N(o.map(a=>{const c=Rs(n)??i,l=oo(a,c);return lr(function sj(e){return e&&Fs(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,r):c.runInContext(()=>l(e,n,t,r))).pipe(Br())})).pipe(so()):N(!0)}(i.component,i.route,t,n,r)),Br(i=>!0!==i,!0))}(s,r,i,e).pipe(Be(a=>a&&function nj(e){return"boolean"==typeof e}(a)?function dj(e,n,t,r){return Le(n).pipe(Ji(i=>Wc(function hj(e,n){return null!==e&&n&&n(new OV(e)),N(!0)}(i.route.parent,r),function fj(e,n){return null!==e&&n&&n(new FV(e)),N(!0)}(i.route,r),function mj(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function JV(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=>TD(()=>N(s.guards.map(c=>{const l=Rs(s.node)??t,u=oo(c,l);return lr(function oj(e){return e&&Fs(e.canActivateChild)}(u)?u.canActivateChild(r,e):l.runInContext(()=>u(r,e))).pipe(Br())})).pipe(so())));return N(o).pipe(so())}(e,i.path,t),function pj(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return N(!0);const i=r.map(o=>TD(()=>{const s=Rs(n)??t,a=oo(o,s);return lr(function ij(e){return e&&Fs(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Br())}));return N(i).pipe(so())}(e,i.route,t))),Br(i=>!0!==i,!0))}(r,o,e,n):N(a)),z(a=>({...t,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Pe(c=>{if(o.guardsResult=c.guardsResult,Ur(c.guardsResult))throw aE(0,c.guardsResult);const l=new xV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Dn(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",3),!1)),tp(c=>{if(c.guards.canActivateChecks.length)return N(c).pipe(Pe(l=>{const u=new TV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),ln(l=>{let u=!1;return N(l).pipe(function kj(e,n){return Be(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return N(t);let o=0;return Le(i).pipe(Ji(s=>function Fj(e,n,t,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!vE(i)&&(o[Ds]=i.title),function Pj(e,n,t,r){const i=function Lj(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return N({});const o={};return Le(i).pipe(Be(s=>function Vj(e,n,t,r){const i=Rs(n)??r,o=oo(e,i);return lr(o.resolve?o.resolve(n,t):i.runInContext(()=>o(n,t)))}(e[s],n,t,r).pipe(Br(),Pe(a=>{o[s]=a}))),Ph(1),function X2(e){return z(()=>e)}(o),cr(s=>fE(s)?cn:Xi(s)))}(o,e,n,r).pipe(z(s=>(e._resolvedData=s,e.data=rE(e,t).resolve,i&&vE(i)&&(e.data[Ds]=i.title),null)))}(s.route,r,e,n)),Pe(()=>o++),Ph(1),Be(s=>o===i.length?N(t):cn))})}(t.paramsInheritanceStrategy,this.environmentInjector),Pe({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",2)}}))}),Pe(l=>{const u=new AV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),tp(c=>{const l=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Pe(f=>{u.component=f}),z(()=>{})));for(const f of u.children)d.push(...l(f));return d};return qc(l(c.targetSnapshot.root)).pipe(Zc(),jr(1))}),tp(()=>this.afterPreactivation()),z(c=>{const l=function HV(e,n,t){const r=Ns(e,n._root,t?t._root:void 0);return new tE(r,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},o}),Pe(()=>{this.events.next(new $h)}),((e,n,t,r)=>z(i=>(new YV(n,i.targetRouterState,i.currentRouterState,t,r).activate(e),i)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),jr(1),Pe({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ur(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),t.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Lh(this.transitionAbortSubject.pipe(Pe(c=>{throw c}))),Kc(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),cr(c=>{if(a=!0,lE(c))this.events.next(new Ts(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function zV(e){return lE(e)&&Ur(e.url)}(c)?this.events.next(new zh(c.url)):o.resolve(!1);else{this.events.next(new rl(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(c))}catch(l){o.reject(l)}}return cn}))}))}cancelNavigationTransition(t,r,i){const o=new Ts(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DE(e){return e!==xs}let EE=(()=>{class e{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===$);return r}getResolvedTitleForRoute(t){return t.data[Ds]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(Hj)},providedIn:"root"})}return e})(),Hj=(()=>{class e extends EE{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(D(vD))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(zj)},providedIn:"root"})}return e})();class $j{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let zj=(()=>{class e extends $j{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=function Ve(e){return Tn(()=>{const n=e.prototype.constructor,t=n[An]||Wu(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[An]||Wu(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(i||e)}}();static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dl=new E("",{providedIn:"root",factory:()=>({})});let qj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(Gj)},providedIn:"root"})}return e})(),Gj=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ps=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ps||{});function CE(e,n){e.events.pipe(Dn(t=>t instanceof ur||t instanceof Ts||t instanceof rl||t instanceof no),z(t=>t instanceof ur||t instanceof no?Ps.COMPLETE:t instanceof Ts&&(0===t.code||1===t.code)?Ps.REDIRECTING:Ps.FAILED),Dn(t=>t!==Ps.REDIRECTING),jr(1)).subscribe(()=>{n()})}function Wj(e){throw e}function Zj(e,n,t){return n.parse("/")}const Kj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let qt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=I(Kw),this.isNgZoneEnabled=!1,this._events=new ut,this.options=I(dl,{optional:!0})||{},this.pendingTasks=I(Qw),this.errorHandler=this.options.errorHandler||Wj,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Zj,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(qj),this.routeReuseStrategy=I(Uj),this.titleStrategy=I(EE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=I(co,{optional:!0})?.flat()??[],this.navigationTransitions=I(ul),this.urlSerializer=I(Cs),this.location=I(ch),this.componentInputBindingEnabled=!!I(ol,{optional:!0}),this.eventsSubscription=new lt,this.isNgZoneEnabled=I(X)instanceof X&&X.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new to,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=nE(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:i}=this.navigationTransitions;if(null===i)return void(ME(r)&&this._events.next(r));if(r instanceof nl)DE(i.source)&&(this.browserUrlTree=i.extractedUrl);else if(r instanceof no)this.rawUrlTree=i.rawUrl;else if(r instanceof XD){if("eager"===this.urlUpdateStrategy){if(!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl);this.setBrowserUrl(o,i)}this.browserUrlTree=i.urlAfterRedirects}}else if(r instanceof $h)this.currentUrlTree=i.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i),this.browserUrlTree=i.urlAfterRedirects);else if(r instanceof Ts)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(i);else if(r instanceof zh){const o=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||DE(i.source)};this.scheduleNavigation(o,xs,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise})}r instanceof rl&&this.restoreHistory(i,!0),r instanceof ur&&(this.navigated=!0),ME(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),xs,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const c={...i};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,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(Xh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{d=qD(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return GD(d,t,u,l??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=Ur(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,xs,null,r)}navigate(t,r={skipLocationChange:!1}){return function Yj(e){for(let n=0;n{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,c=f});const u=this.pendingTasks.add();return CE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ME(e){return!(e instanceof $h||e instanceof zh)}let fl=(()=>{class e{constructor(t,r,i,o,s,a){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new ut,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof ur&&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.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,i,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||i||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function J_(e,n,t){return function TA(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?X_:Y_}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const i=this.renderer,o=this.el.nativeElement;null!==r?i.setAttribute(o,t,r):i.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(w(qt),w(io),function Po(e){return function qx(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i{class e{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Dn(t=>t instanceof ur),Ji(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=xf(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)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(i).pipe(ti())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):N(null);const o=i.pipe(Be(s=>null===s?N(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?Le([o,this.loader.loadComponent(r)]).pipe(ti()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(D(qt),D(Yw),D(Bt),D(IE),D(np))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const rp=new E("");let SE=(()=>{class e{constructor(t,r,i,o,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=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 nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ur?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof no&&0===t.code&&(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 JD&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new JD(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function zd(){throw new Error("invalid")}()};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function $n(e,n){return{\u0275kind:e,\u0275providers:n}}function TE(){const e=I(_t);return n=>{const t=e.get(Pr);if(n!==t.components[0])return;const r=e.get(qt),i=e.get(AE);1===e.get(ip)&&r.initialNavigation(),e.get(NE,null,q.Optional)?.setUpPreloading(),e.get(rp,null,q.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const AE=new E("",{factory:()=>new ut}),ip=new E("",{providedIn:"root",factory:()=>1}),NE=new E("");function iB(e){return $n(0,[{provide:NE,useExisting:eB},{provide:IE,useExisting:e}])}const RE=new E("ROUTER_FORROOT_GUARD"),sB=[ch,{provide:Cs,useClass:Vh},qt,As,{provide:io,useFactory:function xE(e){return e.routerState.root},deps:[qt]},np,[]];function aB(){return new o0("Router",qt)}let OE=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[sB,[],{provide:co,multi:!0,useValue:t},{provide:RE,useFactory:dB,deps:[[qt,new Ir,new jo]]},{provide:dl,useValue:r||{}},r?.useHash?{provide:Vr,useClass:yP}:{provide:Vr,useClass:F0},{provide:rp,useFactory:()=>{const e=I(VL),n=I(X),t=I(dl),r=I(ul),i=I(Cs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new SE(i,r,e,n,t)}},r?.preloadingStrategy?iB(r.preloadingStrategy).\u0275providers:[],{provide:o0,multi:!0,useFactory:aB},r?.initialNavigation?fB(r):[],r?.bindToComponentInputs?$n(8,[sE,{provide:ol,useExisting:sE}]).\u0275providers:[],[{provide:kE,useFactory:TE},{provide:Xf,multi:!0,useExisting:kE}]]}}static forChild(t){return{ngModule:e,providers:[{provide:co,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(D(RE,8))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();function dB(e){return"guarded"}function fB(e){return["disabled"===e.initialNavigation?$n(3,[{provide:zf,multi:!0,useFactory:()=>{const n=I(qt);return()=>{n.setUpLocationChangeListener()}}},{provide:ip,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?$n(2,[{provide:ip,useValue:0},{provide:zf,multi:!0,deps:[_t],useFactory:n=>{const t=n.get(_P,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=n.get(qt),o=n.get(AE);CE(i,()=>{r(!0)}),n.get(ul).afterPreactivation=()=>(r(!0),o.closed?N(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const kE=new E(""),pB=[{path:"home",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-home"]],decls:2,vars:0,template:function(r,i){1&r&&(me(0,"p"),bt(1,"home works!dfsdf ddcc"),ge())}})}return e})()},{path:"about-me",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-about-me"]],decls:2,vars:0,template:function(r,i){1&r&&(me(0,"p"),bt(1,"about-me works!"),ge())}})}return e})()},{path:"tech",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-tech"]],decls:2,vars:0,template:function(r,i){1&r&&(me(0,"p"),bt(1,"tech works!"),ge())}})}return e})()},{path:"projects",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-projects"]],decls:2,vars:0,template:function(r,i){1&r&&(me(0,"p"),bt(1,"projects works!"),ge())}})}return e})()},{path:"resume",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-resume"]],decls:2,vars:0,template:function(r,i){1&r&&(me(0,"p"),bt(1,"resume works!"),ge())}})}return e})()},{path:"contact-me",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-contact-me"]],decls:2,vars:0,template:function(r,i){1&r&&(me(0,"p"),bt(1,"contact-me works!"),ge())}})}return e})()},{path:"",redirectTo:"/home",pathMatch:"full"}];let mB=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[OE.forRoot(pB),OE]})}return e})();const gB=new E("DARK_MODE_OPTIONS"),_B={darkModeClass:"dark-mode",lightModeClass:"light-mode",preloadingClass:"dark-mode-preloading",storageKey:"dark-mode",element:document.body};let vB=(()=>{class e{matchMedia(t){return window.matchMedia(t)}prefersDarkMode(){return this.matchMedia("(prefers-color-scheme: dark)").matches}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),wB=(()=>{class e{constructor(t,r,i){this.rendererFactory=t,this.mediaQueryService=r,this.providedOptions=i,this.options={..._B,...this.providedOptions||{}},this.renderer=this.rendererFactory.createRenderer(null,null),this.darkModeSubject$=new dt(this.getInitialDarkModeValue()),this.darkModeSubject$.getValue()?this.enable():this.disable(),this.removePreloadingClass()}get darkMode$(){return this.darkModeSubject$.asObservable().pipe(cu())}toggle(){this.darkModeSubject$.getValue()?this.disable():this.enable()}enable(){const{element:t,darkModeClass:r,lightModeClass:i}=this.options;this.renderer.removeClass(t,i),this.renderer.addClass(t,r),this.saveDarkModeToStorage(!0),this.darkModeSubject$.next(!0)}disable(){const{element:t,darkModeClass:r,lightModeClass:i}=this.options;this.renderer.removeClass(t,r),this.renderer.addClass(t,i),this.saveDarkModeToStorage(!1),this.darkModeSubject$.next(!1)}getInitialDarkModeValue(){const t=this.getDarkModeFromStorage();return function bB(e){return null==e}(t)?this.mediaQueryService.prefersDarkMode():t}saveDarkModeToStorage(t){localStorage.setItem(this.options.storageKey,JSON.stringify({darkMode:t}))}getDarkModeFromStorage(){const t=localStorage.getItem(this.options.storageKey);if(t)try{return JSON.parse(t)?.darkMode}catch{console.error("Invalid darkMode localStorage item:",t,"falling back to color scheme media query")}return null}removePreloadingClass(){setTimeout(()=>{this.renderer.removeClass(this.options.element,this.options.preloadingClass)})}}return e.\u0275fac=function(t){return new(t||e)(D(Ni),D(vB),D(gB,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const DB=function(e,n){return{"navbar-dark bg-dark":e,"navbar-light bg-light":n}};let EB=(()=>{class e{constructor(t){this.darkModeService=t,this.darkMode$=this.darkModeService.darkMode$}onToggle(){this.darkModeService.toggle()}isDark(){const t=localStorage.getItem("dark-mode");return!!t&&!!JSON.parse(t).darkMode}static#e=this.\u0275fac=function(r){return new(r||e)(w(wB))};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-topbar"]],decls:31,vars:7,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-dark",3,"ngClass"],[1,"container-fluid"],["href","#",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","ms-auto","mb-2","mb-lg-0"],[1,"nav-item"],["aria-current","page","routerLink","/home",1,"nav-link","active","nav-button"],["aria-current","page","routerLink","/about-me",1,"nav-link","active","nav-button"],["aria-current","page","routerLink","/tech",1,"nav-link","active","nav-button"],["aria-current","page","routerLink","/projects",1,"nav-link","active","nav-button"],["aria-current","page","routerLink","/resume",1,"nav-link","active","nav-button"],["aria-current","page","routerLink","/contact-me",1,"nav-link","active","nav-button"],[1,"mx-2"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider","round"]],template:function(r,i){1&r&&(me(0,"nav",0)(1,"div",1)(2,"a",2),bt(3,"Navbar"),ge(),me(4,"button",3),Ut(5,"span",4),ge(),me(6,"div",5)(7,"ul",6)(8,"li",7)(9,"a",8),bt(10,"Home"),ge()(),me(11,"li",7)(12,"a",9),bt(13,"About Me"),ge()(),me(14,"li",7)(15,"a",10),bt(16,"Tech"),ge()(),me(17,"li",7)(18,"a",11),bt(19,"Projects"),ge()(),me(20,"li",7)(21,"a",12),bt(22,"Resume"),ge()(),me(23,"li",7)(24,"a",13),bt(25,"Contact Me"),ge()()(),me(26,"div",14)(27,"label",15)(28,"input",16),it("change",function(){return i.onToggle()}),function mw(e,n){const t=K();let r;const i=e+G;t.firstCreatePass?(r=function fk(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const o=r.factory||(r.factory=Er(r.type)),a=ft(w);try{const c=Ma(!1),l=o();return Ma(c),function qR(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,v(),i,l),l}finally{ft(a)}}(29,"async"),ge(),Ut(30,"span",17),ge()()()()()),2&r&&(nr("ngClass",lw(4,DB,i.isDark(),!i.isDark())),function ki(e){Lb(K(),v(),nt()+e,!1)}(28),nr("checked",!gw(29,2,i.darkMode$)))},dependencies:[G0,fl,X0],styles:['.example-icon[_ngcontent-%COMP%]{padding:0 14px}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:60px;height:34px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;transition:.4s;border:2px solid white}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#74bffd}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(26px);border-radius:50px;height:75%;background-color:#ff0;box-shadow:#0000009a .5px 1px 20px 1px;margin-right:20px}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{width:43%;height:43%;border-top-right-radius:50px;border-top-left-radius:50px;transform:rotate(-135deg)}.nav-button[_ngcontent-%COMP%]{display:inline-block;position:relative;text-decoration:none;color:#333;padding:10px 20px;font-size:16px;transition:color .3s ease-in-out}.nav-button[_ngcontent-%COMP%]:before{content:"";position:absolute;width:100%;height:2px;bottom:0;left:0;background-color:#3498db;transform:scaleX(0);transform-origin:bottom right;transition:transform .3s ease-in-out}.nav-button[_ngcontent-%COMP%]:hover{color:#e74c3c}.nav-button[_ngcontent-%COMP%]:hover:before{transform:scaleX(1);transform-origin:bottom left}']})}return e})(),CB=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-layout"]],decls:2,vars:0,template:function(r,i){1&r&&Ut(0,"app-topbar")(1,"router-outlet")},dependencies:[Qh,EB]})}return e})(),MB=(()=>{class e{constructor(){this.title="your-angular-app"}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Pt({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,i){1&r&&Ut(0,"app-layout")},dependencies:[CB],styles:[".card[_ngcontent-%COMP%]{color:inherit;background-color:inherit}"]})}return e})();class FE{}class IB{}const zn="*";function PE(e,n=null){return{type:2,steps:e,options:n}}function LE(e){return{type:6,styles:e,offset:null}}class Ls{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(r=>r()),t.length=0}}class VE{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,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==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(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r: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(r=>r()),t.length=0}}function jE(e){return new b(3e3,!1)}function dr(e){switch(e.length){case 0:return new Ls;case 1:return e[0];default:return new VE(e)}}function BE(e,n,t=new Map,r=new Map){const i=[],o=[];let s=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),m){case"!":m=t.get(h);break;case zn:m=r.get(h);break;default:m=e.normalizeStyleValue(h,p,m,i)}d.set(p,m)}),u||o.push(d),a=d,s=l}),i.length)throw function KB(e){return new b(3502,!1)}();return o}function sp(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&ap(t,"start",e)));break;case"done":e.onDone(()=>r(t&&ap(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&ap(t,"destroy",e)))}}function ap(e,n,t){const o=cp(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 cp(e,n,t,r,i="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function At(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function HE(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const aH=(()=>typeof document>"u"?null:document.documentElement)();function lp(e){const n=e.parentNode||e.host||null;return n===aH?null:n}let $r=null,UE=!1;function $E(e,n){for(;n;){if(n===e)return!0;n=lp(n)}return!1}function zE(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let qE=(()=>{class e{validateStyleProperty(t){return function lH(e){$r||($r=function uH(){return typeof document<"u"?document.body:null}()||{},UE=!!$r.style&&"WebkitAppearance"in $r.style);let n=!0;return $r.style&&!function cH(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in $r.style,!n&&UE&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in $r.style)),n}(t)}matchesElement(t,r){return!1}containsElement(t,r){return $E(t,r)}getParentElement(t){return lp(t)}query(t,r,i){return zE(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,a=[],c){return new Ls(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),up=(()=>{class e{static#e=this.NOOP=new qE}return e})();const dH=1e3,dp="ng-enter",hl="ng-leave",pl="ng-trigger",ml=".ng-trigger",WE="ng-animating",fp=".ng-animating";function qn(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:hp(parseFloat(n[1]),n[2])}function hp(e,n){return"s"===n?e*dH:e}function gl(e,n,t){return e.hasOwnProperty("duration")?e:function hH(e,n,t){let i,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(jE()),{duration:0,delay:0,easing:""};i=hp(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=hp(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else i=e;if(!t){let a=!1,c=n.length;i<0&&(n.push(function SB(){return new b(3100,!1)}()),a=!0),o<0&&(n.push(function xB(){return new b(3101,!1)}()),a=!0),a&&n.splice(c,0,jE())}return{duration:i,delay:o,easing:s}}(e,n,t)}function Vs(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function ZE(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function fr(e,n=new Map,t){if(t)for(let[r,i]of t)n.set(r,i);for(let[r,i]of e)n.set(r,i);return n}function Mn(e,n,t){n.forEach((r,i)=>{const o=mp(i);t&&!t.has(i)&&t.set(i,e.style[o]),e.style[o]=r})}function zr(e,n){n.forEach((t,r)=>{const i=mp(r);e.style[i]=""})}function js(e){return Array.isArray(e)?1==e.length?e[0]:PE(e):e}const pp=new RegExp("{{\\s*(.+?)\\s*}}","g");function QE(e){let n=[];if("string"==typeof e){let t;for(;t=pp.exec(e);)n.push(t[1]);pp.lastIndex=0}return n}function Bs(e,n,t){const r=e.toString(),i=r.replace(pp,(o,s)=>{let a=n[s];return null==a&&(t.push(function AB(e){return new b(3003,!1)}()),a=""),a.toString()});return i==r?e:i}function _l(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const gH=/-+([a-z0-9])/g;function mp(e){return e.replace(gH,(...n)=>n[1].toUpperCase())}function Nt(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function NB(e){return new b(3004,!1)}()}}function YE(e,n){return window.getComputedStyle(e)[n]}const bl="*";function yH(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function vH(e,n,t){if(":"==e[0]){const c=function wH(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function zB(e){return new b(3015,!1)}()),n;const i=r[1],o=r[2],s=r[3];n.push(XE(i,s));"<"==o[0]&&!(i==bl&&s==bl)&&n.push(XE(s,i))}(r,t,n)):t.push(e),t}const yl=new Set(["true","1"]),vl=new Set(["false","0"]);function XE(e,n){const t=yl.has(e)||vl.has(e),r=yl.has(n)||vl.has(n);return(i,o)=>{let s=e==bl||e==i,a=n==bl||n==o;return!s&&t&&"boolean"==typeof i&&(s=i?yl.has(e):vl.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?yl.has(n):vl.has(n)),s&&a}}const DH=new RegExp("s*:selfs*,?","g");function gp(e,n,t,r){return new EH(e).build(n,t,r)}class EH{constructor(n){this._driver=n}build(n,t,r){const i=new IH(t);return this._resetContextStyleTimingState(i),Nt(this,js(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function OB(){return new b(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,t))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,t);r+=c.queryCount,i+=c.depCount,s.push(c)}else t.errors.push(function kB(){return new b(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{QE(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&(_l(o.values()),t.errors.push(function FB(e,n){return new b(3008,!1)}()))}return{type:0,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Nt(this,js(n.animation),t);return{type:1,matchers:yH(n.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:qr(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(r=>Nt(this,r,t)),options:qr(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const o=n.steps.map(s=>{t.currentTime=r;const a=Nt(this,s,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:o,options:qr(n.options)}}visitAnimate(n,t){const r=function xH(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return _p(gl(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=_p(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=gl(t,n);return _p(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,o=n.styles?n.styles:LE({});if(5==o.type)i=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const l={};r.easing&&(l.easing=r.easing),s=LE(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===zn?r.push(a):t.errors.push(new b(3002,!1)):r.push(ZE(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),u=l.get(c);let d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push(function LB(e,n,t,r,i){return new b(3010,!1)}()),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:i}),t.options&&function mH(e,n,t){const r=n.params||{},i=QE(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function TB(e){return new b(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function VB(){return new b(3011,!1)}()),r;let o=0;const s=[];let a=!1,c=!1,l=0;const u=n.steps.map(y=>{const g=this._makeStyleAst(y,t);let M=null!=g.offset?g.offset:function SH(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 r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(g.styles),S=0;return null!=M&&(o++,S=g.offset=M),c=c||S<0||S>1,a=a||S0&&o{const M=f>0?g==h?1:f*g:s[g],S=M*_;t.currentTime=p+m.delay+S,m.duration=S,this._validateStyleAst(y,t),y.offset=M,r.styles.push(y)}),r}visitReference(n,t){return{type:8,animation:Nt(this,js(n.animation),t),options:qr(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:qr(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:qr(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function CH(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(DH,"")),e=e.replace(/@\*/g,ml).replace(/@\w+/g,t=>ml+"-"+t.slice(1)).replace(/:animating/g,fp),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+o:o,At(t.collectedStyles,t.currentQuerySelector,new Map);const a=Nt(this,js(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:qr(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function UB(){return new b(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:gl(n.timings,t.errors,!0);return{type:12,animation:Nt(this,js(n.animation),t),timings:r,options:null}}}class IH{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 qr(e){return e?(e=Vs(e)).params&&(e.params=function MH(e){return e?Vs(e):null}(e.params)):e={},e}function _p(e,n,t){return{duration:e,delay:n,easing:t}}function bp(e,n,t,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class wl{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const NH=new RegExp(":enter","g"),OH=new RegExp(":leave","g");function yp(e,n,t,r,i,o=new Map,s=new Map,a,c,l=[]){return(new kH).buildKeyframes(e,n,t,r,i,o,s,a,c,l)}class kH{buildKeyframes(n,t,r,i,o,s,a,c,l,u=[]){l=l||new wl;const d=new vp(n,t,l,i,o,u,[]);d.options=c;const f=c.delay?qn(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),Nt(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const _=h[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return h.length?h.map(p=>p.buildKeyframes()):[bp(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const o=i?.delay;if(o){const s="number"==typeof o?o:qn(Bs(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?qn(r.duration):null,a=null!=r.delay?qn(r.delay):null;return 0!==s&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Nt(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const o=n.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Dl);const s=qn(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Nt(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?qn(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Nt(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return gl(t.params?Bs(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+o),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},o=i.delay?qn(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Dl);let s=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,l);o&&d.delayNextStep(o),l===t.element&&(c=d.currentTimeline),Nt(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Nt(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Dl={};class vp{constructor(n,t,r,i,o,s,a,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Dl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new El(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=qn(r.duration)),null!=r.delay&&(i.delay=qn(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Bs(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,o=new vp(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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=Dl,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new FH(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,o,s){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(NH,"."+this._enterClassName)).replace(OH,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!o&&0==a.length&&s.push(function $B(e){return new b(3014,!1)}()),a}}class El{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,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 El(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,r]of this._globalTimelineStyles)this._backFill.set(t,r||zn),this._currentKeyframe.set(t,zn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function PH(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r=r||n.keys();for(let o of r)t.set(o,zn)}else fr(i,t)}),t}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=Bs(c,o,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zn),this._updateStyle(a,l)}}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,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,c)=>{const l=fr(a,new Map,this._backFill);l.forEach((u,d)=>{"!"===u?n.add(d):u===zn&&t.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});const o=n.size?_l(n.values()):[],s=t.size?_l(t.values()):[];if(r){const a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return bp(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class FH extends El{constructor(n,t,r,i,o,s,a=!1){super(n,t,s.delay),this.keyframes=r,this.preStyleProps=i,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:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=r+t,a=t/s,c=fr(n[0]);c.set("offset",0),o.push(c);const l=fr(n[0]);l.set("offset",tC(a)),o.push(l);const u=n.length-1;for(let d=1;d<=u;d++){let f=fr(n[d]);const h=f.get("offset");f.set("offset",tC((t+h*r)/s)),o.push(f)}r=s,t=0,i="",n=o}return bp(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function tC(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class wp{}const LH=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 VH extends wp{normalizePropertyName(n,t){return mp(n)}normalizeStyleValue(n,t,r,i){let o="";const s=r.toString().trim();if(LH.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function RB(e,n){return new b(3005,!1)}())}return s+o}}function nC(e,n,t,r,i,o,s,a,c,l,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:f}}const Dp={};class rC{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function jH(e,n,t,r,i){return e.some(o=>o(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,o,s,a,c,l,u){const d=[],f=this.ast.options&&this.ast.options.params||Dp,p=this.buildStyles(r,a&&a.params||Dp,d),m=c&&c.params||Dp,_=this.buildStyles(i,m,d),y=new Set,g=new Map,M=new Map,S="void"===i,B={params:BH(m,f),delay:this.ast.options?.delay},ae=u?[]:yp(n,t,this.ast.animation,o,s,p,_,B,l,d);let pe=0;if(ae.forEach(Rt=>{pe=Math.max(Rt.duration+Rt.delay,pe)}),d.length)return nC(t,this._triggerName,r,i,S,p,_,[],[],g,M,pe,d);ae.forEach(Rt=>{const an=Rt.element,Wl=At(g,an,new Set);Rt.preStyleProps.forEach(Xr=>Wl.add(Xr));const ta=At(M,an,new Set);Rt.postStyleProps.forEach(Xr=>ta.add(Xr)),an!==t&&y.add(an)});const We=_l(y.values());return nC(t,this._triggerName,r,i,S,p,_,ae,We,g,M,pe)}}function BH(e,n){const t=Vs(n);for(const r in e)e.hasOwnProperty(r)&&null!=e[r]&&(t[r]=e[r]);return t}class HH{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=Vs(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Bs(s,i,t));const c=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,c,s,t),r.set(a,s)})}),r}}class $H{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new HH(i.style,i.options&&i.options.params||{},r))}),iC(this.states,"true","1"),iC(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new rC(n,i,this.states))}),this.fallbackTransition=function zH(e,n,t){return new rC(e,{type:1,animation:{type:2,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,r,i){return this.transitionFactories.find(s=>s.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function iC(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 qH=new wl;class GH{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],o=gp(this._driver,t,r,[]);if(r.length)throw function QB(e){return new b(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,r){const i=n.element,o=BE(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=yp(this._driver,t,o,dp,hl,new Map,new Map,r,qH,i),s.forEach(u=>{const d=At(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function YB(){return new b(3300,!1)}()),s=[]),i.length)throw function XB(e){return new b(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,zn))})});const l=dr(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function JB(e){return new b(3301,!1)}();return t}listen(n,t,r,i){const o=cp(t,"","","");return sp(this._getPlayer(n),r,o,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const o=this._getPlayer(n);switch(r){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(i[0]));break;case"destroy":this.destroy(n)}}}const oC="ng-animate-queued",Ep="ng-animate-disabled",YH=[],sC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},XH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed";class Cp{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function nU(e){return e??null}(r?n.value:n),r){const o=Vs(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const Hs="void",Mp=new Cp(Hs);class JH{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Gt(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function eH(e,n){return new b(3302,!1)}();if(null==r||0==r.length)throw function tH(e){return new b(3303,!1)}();if(!function rU(e){return"start"==e||"done"==e}(r))throw function nH(e,n){return new b(3400,!1)}();const o=At(this._elementListeners,n,[]),s={name:t,phase:r,callback:i};o.push(s);const a=At(this._engine.statesByElement,n,new Map);return a.has(t)||(Gt(n,pl),Gt(n,pl+"-"+t),a.set(t,Mp)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,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 rH(e){return new b(3401,!1)}();return t}trigger(n,t,r,i=!0){const o=this._getTrigger(t),s=new Ip(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(Gt(n,pl),Gt(n,pl+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t);const l=new Cp(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=Mp),l.value!==Hs&&c.value===l.value){if(!function sU(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i{zr(n,_),Mn(n,y)})}return}const f=At(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=o.matchTransition(c.value,l.value,n,l.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:p}),p||(Gt(n,oC),s.onStart(()=>{lo(n,oC)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(n);if(_){let y=_.indexOf(s);y>=0&&_.splice(y,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,ml,!0);r.forEach(i=>{if(i[on])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const u=this.trigger(n,l,Hs,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),r&&dr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const c=this._triggers.get(s).fallbackTransition,l=r.get(s)||Mp,u=new Cp(Hs),d=new Ip(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const o=n[on];(!o||o===sC)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){Gt(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const c=cp(o,r.triggerName,r.fromState.value,r.toState.value);c._data=n,sp(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class eU{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,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=(i,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new JH(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const c=i.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(n,t,r,i){if(Cl(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!Cl(t))return;const o=t[on];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,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Gt(n,Ep)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),lo(n,Ep))}removeNode(n,t,r){if(Cl(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,o){this.collectedLeaveElements.push(t),t[on]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,r,i,o){return Cl(t)?this._fetchNamespace(n).listen(t,r,i,o):()=>{}}_buildInstruction(n,t,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,ml,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,fp,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return dr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[on];if(t&&t.setForRemoval){if(n[on]=sC,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Ep)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?dr(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function iH(e){return new b(3402,!1)}()}_flushAnimations(n,t){const r=new wl,i=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const R=this.driver.query(T,".ng-animate-queued",!0);for(let k=0;k{const k=dp+m++;p.set(R,k),T.forEach(Q=>Gt(Q,k))});const _=[],y=new Set,g=new Set;for(let T=0;Ty.add(Q)):g.add(R))}const M=new Map,S=lC(f,Array.from(y));S.forEach((T,R)=>{const k=hl+m++;M.set(R,k),T.forEach(Q=>Gt(Q,k))}),n.push(()=>{h.forEach((T,R)=>{const k=p.get(R);T.forEach(Q=>lo(Q,k))}),S.forEach((T,R)=>{const k=M.get(R);T.forEach(Q=>lo(Q,k))}),_.forEach(T=>{this.processLeaveNode(T)})});const B=[],ae=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(k=>{const Q=k.player,je=k.element;if(B.push(Q),this.collectedEnterElements.length){const Xe=je[on];if(Xe&&Xe.setForMove){if(Xe.previousTriggersValues&&Xe.previousTriggersValues.has(k.triggerName)){const Jr=Xe.previousTriggersValues.get(k.triggerName),Wt=this.statesByElement.get(k.element);if(Wt&&Wt.has(k.triggerName)){const Zl=Wt.get(k.triggerName);Zl.value=Jr,Wt.set(k.triggerName,Zl)}}return void Q.destroy()}}const Sn=!d||!this.driver.containsElement(d,je),Ot=M.get(je),br=p.get(je),we=this._buildInstruction(k,r,br,Ot,Sn);if(we.errors&&we.errors.length)return void ae.push(we);if(Sn)return Q.onStart(()=>zr(je,we.fromStyles)),Q.onDestroy(()=>Mn(je,we.toStyles)),void i.push(Q);if(k.isFallbackTransition)return Q.onStart(()=>zr(je,we.fromStyles)),Q.onDestroy(()=>Mn(je,we.toStyles)),void i.push(Q);const fI=[];we.timelines.forEach(Xe=>{Xe.stretchStartingKeyframe=!0,this.disabledNodes.has(Xe.element)||fI.push(Xe)}),we.timelines=fI,r.append(je,we.timelines),s.push({instruction:we,player:Q,element:je}),we.queriedElements.forEach(Xe=>At(a,Xe,[]).push(Q)),we.preStyleProps.forEach((Xe,Jr)=>{if(Xe.size){let Wt=c.get(Jr);Wt||c.set(Jr,Wt=new Set),Xe.forEach((Zl,sm)=>Wt.add(sm))}}),we.postStyleProps.forEach((Xe,Jr)=>{let Wt=l.get(Jr);Wt||l.set(Jr,Wt=new Set),Xe.forEach((Zl,sm)=>Wt.add(sm))})});if(ae.length){const T=[];ae.forEach(R=>{T.push(function oH(e,n){return new b(3505,!1)}())}),B.forEach(R=>R.destroy()),this.reportError(T)}const pe=new Map,We=new Map;s.forEach(T=>{const R=T.element;r.has(R)&&(We.set(R,R),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,pe))}),i.forEach(T=>{const R=T.element;this._getPreviousPlayers(R,!1,T.namespaceId,T.triggerName,null).forEach(Q=>{At(pe,R,[]).push(Q),Q.destroy()})});const Rt=_.filter(T=>dC(T,c,l)),an=new Map;cC(an,this.driver,g,l,zn).forEach(T=>{dC(T,c,l)&&Rt.push(T)});const ta=new Map;h.forEach((T,R)=>{cC(ta,this.driver,new Set(T),c,"!")}),Rt.forEach(T=>{const R=an.get(T),k=ta.get(T);an.set(T,new Map([...R?.entries()??[],...k?.entries()??[]]))});const Xr=[],uI=[],dI={};s.forEach(T=>{const{element:R,player:k,instruction:Q}=T;if(r.has(R)){if(u.has(R))return k.onDestroy(()=>Mn(R,Q.toStyles)),k.disabled=!0,k.overrideTotalTime(Q.totalTime),void i.push(k);let je=dI;if(We.size>1){let Ot=R;const br=[];for(;Ot=Ot.parentNode;){const we=We.get(Ot);if(we){je=we;break}br.push(Ot)}br.forEach(we=>We.set(we,je))}const Sn=this._buildAnimation(k.namespaceId,Q,pe,o,ta,an);if(k.setRealPlayer(Sn),je===dI)Xr.push(k);else{const Ot=this.playersByElement.get(je);Ot&&Ot.length&&(k.parentPlayer=dr(Ot)),i.push(k)}}else zr(R,Q.fromStyles),k.onDestroy(()=>Mn(R,Q.toStyles)),uI.push(k),u.has(R)&&i.push(k)}),uI.forEach(T=>{const R=o.get(T.element);if(R&&R.length){const k=dr(R);T.setRealPlayer(k)}}),i.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const R=_[T],k=R[on];if(lo(R,hl),k&&k.hasAnimation)continue;let Q=[];if(a.size){let Sn=a.get(R);Sn&&Sn.length&&Q.push(...Sn);let Ot=this.driver.query(R,fp,!0);for(let br=0;br!Sn.destroyed);je.length?iU(this,R,je):this.processLeaveNode(R)}return _.length=0,Xr.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const R=this.players.indexOf(T);this.players.splice(R,1)}),T.play()}),Xr}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const c=!o||o==Hs;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||s.push(l)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,t,r){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==o,d=At(r,l,[]);this._getPreviousPlayers(l,u,s,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}zr(o,t.fromStyles)}_buildAnimation(n,t,r,i,o,s){const a=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[on];if(_&&_.removedBeforeQueried)return new Ls(p.duration,p.delay);const y=m!==c,g=function oU(e){const n=[];return uC(e,n),n}((r.get(m)||YH).map(pe=>pe.getRealPlayer())).filter(pe=>!!pe.element&&pe.element===m),M=o.get(m),S=s.get(m),B=BE(this._normalizer,p.keyframes,M,S),ae=this._buildPlayer(p,B,g);if(p.subTimeline&&i&&d.add(m),y){const pe=new Ip(n,a,m);pe.setRealPlayer(ae),l.push(pe)}return ae});l.forEach(p=>{At(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function tU(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Gt(p,WE));const h=dr(f);return h.onDestroy(()=>{u.forEach(p=>lo(p,WE)),Mn(c,t.toStyles)}),d.forEach(p=>{At(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new Ls(n.duration,n.delay)}}class Ip{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new Ls,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,r)=>{t.forEach(i=>sp(n,r,void 0,i))}),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){At(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 Cl(e){return e&&1===e.nodeType}function aC(e,n){const t=e.style.display;return e.style.display=n??"none",t}function cC(e,n,t,r,i){const o=[];t.forEach(c=>o.push(aC(c)));const s=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const f=n.computeStyle(l,d,i);u.set(d,f),(!f||0==f.length)&&(l[on]=XH,s.push(l))}),e.set(l,u)});let a=0;return t.forEach(c=>aC(c,o[a++])),s}function lC(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:i.has(l)?1:s(l),o.set(a,c),c}return n.forEach(a=>{const c=s(a);1!==c&&t.get(c).push(a)}),t}function Gt(e,n){e.classList?.add(n)}function lo(e,n){e.classList?.remove(n)}function iU(e,n,t){dr(t).onDone(()=>e.processLeaveNode(n))}function uC(e,n){for(let t=0;ti.add(o)):n.set(e,r),t.delete(e),!0}class Ml{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new eU(n,t,r),this._timelineEngine=new GH(n,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,t,r,i,o){const s=n+"-"+i;let a=this._triggerCache[s];if(!a){const c=[],u=gp(this._driver,o,c,[]);if(c.length)throw function ZB(e,n){return new b(3404,!1)}();a=function UH(e,n,t){return new $H(e,n,t)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[o,s]=HE(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,o){if("@"==r.charAt(0)){const[s,a]=HE(r);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,r,i,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)}}let cU=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Mn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Mn(this._element,this._initialStyles),this._endStyles&&(Mn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zr(this._element,this._endStyles),this._endStyles=null),Mn(this._element,this._initialStyles),this._state=3)}}return e})();function Sp(e){let n=null;return e.forEach((t,r)=>{(function lU(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class fC{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.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(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}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((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:YE(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class uU{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return $E(n,t)}getParentElement(n){return lp(n)}query(n,t,r){return zE(n,t,r)}computeStyle(n,t,r){return window.getComputedStyle(n)[t]}animate(n,t,r,i,o,s=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(c.easing=o);const l=new Map,u=s.filter(h=>h instanceof fC);(function _H(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=function pH(e){return e.length?e[0]instanceof Map?e:e.map(n=>ZE(n)):[]}(t).map(h=>fr(h));d=function bH(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,YE(e,a)))}}return n}(n,d,l);const f=function aU(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=Sp(n[0]),n.length>1&&(r=Sp(n[n.length-1]))):n instanceof Map&&(t=Sp(n)),t||r?new cU(e,t,r):null}(n,d);return new fC(n,d,c,f)}}let dU=(()=>{class e extends FE{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:Ft.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?PE(t):t;return hC(this._renderer,null,r,"register",[i]),new fU(r,this._renderer)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ni),D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class fU extends IB{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new hU(this._id,n,t||{},this._renderer)}}class hU{constructor(n,t,r,i){this.id=n,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return hC(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function hC(e,n,t,r,i){return e.setProperty(n,`@@${t}:${r}`,i)}const pC="@.disabled";let pU=(()=>{class e{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new mC("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(s,a,t,u.name,u)};return r.data.animation.forEach(c),new mU(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&tr(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,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()}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ni),D(Ml),D(X))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class mC{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i}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,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){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,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==pC?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class mU extends mC{constructor(n,t,r,i,o){super(t,r,i,o),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==pC?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function gU(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 _U(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}const gC=[{provide:FE,useClass:dU},{provide:wp,useFactory:function yU(){return new VH}},{provide:Ml,useClass:(()=>{class e extends Ml{constructor(t,r,i,o){super(t.body,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye),D(up),D(wp),D(Pr))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})()},{provide:Ni,useFactory:function vU(e,n,t){return new pU(e,n,t)},deps:[Ah,Ml,X]}],xp=[{provide:up,useFactory:()=>new uU},{provide:Ya,useValue:"BrowserAnimations"},...gC],_C=[{provide:up,useClass:qE},{provide:Ya,useValue:"NoopAnimations"},...gC];let Tp,wU=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?_C:xp}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({providers:xp,imports:[yD]})}return e})();try{Tp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Tp=!1}let $s,Us=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function LL(e){return e===tD}(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&&!Tp)&&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(r){return new(r||e)(D(Ar))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sl(e){return function DU(){if(null==$s&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$s=!0}))}finally{$s=$s||!1}return $s}()?e:!!e.capture}function vC(e){return Array.isArray(e)?e:[e]}class OU extends lt{constructor(n,t){super()}schedule(n,t=0){return this}}const Tl={setInterval(e,n,...t){const{delegate:r}=Tl;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Tl;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},wC={now:()=>(wC.delegate||Date).now(),delegate:void 0};class Gs{constructor(n,t=Gs.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}Gs.now=wC.now;const PU=new class FU extends Gs{constructor(n,t=Gs.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class kU extends OU{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,r=0){return Tl.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Tl.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,ei(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),DC=new Set;let Wr,VU=(()=>{class e{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):BU}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function jU(e,n){if(!DC.has(e))try{Wr||(Wr=document.createElement("style"),n&&(Wr.nonce=n),Wr.setAttribute("type","text/css"),document.head.appendChild(Wr)),Wr.sheet&&(Wr.sheet.insertRule(`@media ${e} {body{ }}`,0),DC.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Us),D(Md,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function BU(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let HU=(()=>{class e{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new ut}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return EC(vC(t)).some(i=>this._registerQuery(i).mql.matches)}observe(t){let o=qc(EC(vC(t)).map(s=>this._registerQuery(s).observable));return o=Wc(o.pipe(jr(1)),o.pipe(function yC(e){return Dn((n,t)=>e<=t)}(1),function LU(e,n=PU){return Te((t,r)=>{let i=null,o=null,s=null;const a=()=>{if(i){i.unsubscribe(),i=null;const l=o;o=null,r.next(l)}};function c(){const l=s+e,u=n.now();if(u{o=l,s=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}(0))),o.pipe(z(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),o={observable:new Ce(s=>{const a=c=>this._zone.run(()=>s.next(c));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(ND(r),z(({matches:s})=>({query:t,matches:s})),Lh(this._destroySubject)),mql:r};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(r){return new(r||e)(D(VU),D(X))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function EC(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}const AC="cdk-high-contrast-black-on-white",NC="cdk-high-contrast-white-on-black",Np="cdk-high-contrast-active";let t$=(()=>{class e{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=I(HU).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,i=r&&r.getComputedStyle?r.getComputedStyle(t):null,o=(i&&i.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Np,AC,NC),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(Np,AC):2===r&&t.add(Np,NC)}}static#e=this.\u0275fac=function(r){return new(r||e)(D(Us),D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();const o$=new E("mat-sanity-checks",{providedIn:"root",factory:function i$(){return!0}});let In=(()=>{class e{constructor(t,r,i){this._sanityChecks=r,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!function MU(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(r){return new(r||e)(D(t$),D(o$,8),D(ye))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[RC,RC]})}return e})();const FC=Sl({passive:!0,capture:!0});class f${constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=function fo(e){return e.composedPath?e.composedPath()[0]:e.target}(n);t&&this._events.get(n.type)?.forEach((r,i)=>{(i===t||i.contains(t))&&r.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,r,i){const o=this._events.get(t);if(o){const s=o.get(r);s?s.add(i):o.set(r,new Set([i]))}else this._events.set(t,new Map([[r,new Set([i])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,FC)})}removeHandler(n,t,r){const i=this._events.get(n);if(!i)return;const o=i.get(t);o&&(o.delete(r),0===o.size&&i.delete(t),0===i.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,FC)))}}class Nl{static#e=this._eventManager=new f$;constructor(n,t,r,i){this._target=n,this._ngZone=t,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=qs(r))}fadeInRipple(n,t,r={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...PC,...r.animation},s=r.radius||function p$(e,n,t){const r=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),i=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(r*r+i*i)}(n,t,i),a=n-i.left,c=t-i.top,l=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=c-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=r.color&&(u.style.backgroundColor=r.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),h=d.transitionDuration,p="none"===d.transitionProperty||"0s"===h||"0s, 0s"===h||0===i.width&&0===i.height,m=new d$(this,u,r,p);u.style.transform="scale3d(1, 1, 1)",m.state=0,r.persistent||(this._mostRecentTransientRipple=m);return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const y=()=>this._finishRippleTransition(m),g=()=>this._destroyRipple(m);u.addEventListener("transitionend",y),u.addEventListener("transitioncancel",g)}),this._activeRipples.set(m,null),(p||!l)&&this._finishRippleTransition(m),m}fadeOutRipple(n){if(2===n.state||3===n.state)return;const t=n.element,r={...PC,...n.config.animation};t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!r.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=qs(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,VC.forEach(r=>{Nl._eventManager.addHandler(this._ngZone,r,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{jC.forEach(t=>{this._triggerElement.addEventListener(t,this,LC)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:r}=n.config;n.state=1,!r&&(!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=3,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel)),n.element.remove()}_onMousedown(n){const t=SC(n),r=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(VC.forEach(t=>Nl._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&jC.forEach(t=>n.removeEventListener(t,this,LC)))}}let BC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[In,In]})}return e})(),_$=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[In,In]})}return e})(),Q$=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[In,In]})}return e})(),J$=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[In,BC,In]})}return e})();const mo=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Ul}),Ul="always";let qM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})(),Qz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[qM]})}return e})(),Xz=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:mo,useValue:t.callSetDisabledState??Ul}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[Qz]})}return e})(),lI=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})(),d3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[lI,In,BC,eD,lI,In]})}return e})(),f3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e,bootstrap:[MB]});static#n=this.\u0275inj=Ae({imports:[yD,mB,wU,_$,Q$,J$,d3,Xz]})}return e})();A2().bootstrapModule(f3).catch(e=>console.error(e))}},oe=>{oe(oe.s=32)}]); \ No newline at end of file diff --git a/main.bfdf2f3372582447.js b/main.bfdf2f3372582447.js deleted file mode 100644 index 18d5eb1..0000000 --- a/main.bfdf2f3372582447.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkyour_angular_app=self.webpackChunkyour_angular_app||[]).push([[179],{859:()=>{function oe(e){return"function"==typeof e}function go(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const na=go(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Jr(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class lt{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:r}=this;if(oe(r))try{r()}catch(o){n=o instanceof na?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{cm(o)}catch(s){n=n??[],s instanceof na?n=[...n,...s.errors]:n.push(s)}}if(n)throw new na(n)}}add(n){var t;if(n&&n!==this)if(this.closed)cm(n);else{if(n instanceof lt){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)&&Jr(t,n)}remove(n){const{_finalizers:t}=this;t&&Jr(t,n),n instanceof lt&&n._removeParent(this)}}lt.EMPTY=(()=>{const e=new lt;return e.closed=!0,e})();const sm=lt.EMPTY;function am(e){return e instanceof lt||e&&"closed"in e&&oe(e.remove)&&oe(e.add)&&oe(e.unsubscribe)}function cm(e){oe(e)?e():e.unsubscribe()}const br={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ra={setTimeout(e,n,...t){const{delegate:r}=ra;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ra;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function lm(e){ra.setTimeout(()=>{const{onUnhandledError:n}=br;if(!n)throw e;n(e)})}function Kl(){}const mI=Ql("C",void 0,void 0);function Ql(e,n,t){return{kind:e,value:n,error:t}}let yr=null;function ia(e){if(br.useDeprecatedSynchronousErrorHandling){const n=!yr;if(n&&(yr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=yr;if(yr=null,t)throw r}}else e()}class Yl extends lt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,am(n)&&n.add(this)):this.destination=DI}static create(n,t,r){return new _o(n,t,r)}next(n){this.isStopped?Jl(function _I(e){return Ql("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Jl(function gI(e){return Ql("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Jl(mI,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 yI=Function.prototype.bind;function Xl(e,n){return yI.call(e,n)}class vI{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){oa(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){oa(r)}else oa(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){oa(t)}}}class _o extends Yl{constructor(n,t,r){let i;if(super(),oe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&br.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Xl(n.next,o),error:n.error&&Xl(n.error,o),complete:n.complete&&Xl(n.complete,o)}):i=n}this.destination=new vI(i)}}function oa(e){br.useDeprecatedSynchronousErrorHandling?function bI(e){br.useDeprecatedSynchronousErrorHandling&&yr&&(yr.errorThrown=!0,yr.error=e)}(e):lm(e)}function Jl(e,n){const{onStoppedNotification:t}=br;t&&ra.setTimeout(()=>t(e,n))}const DI={closed:!0,next:Kl,error:function wI(e){throw e},complete:Kl},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gn(e){return e}function um(e){return 0===e.length?Gn:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}let Ce=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function MI(e){return e&&e instanceof Yl||function CI(e){return e&&oe(e.next)&&oe(e.error)&&oe(e.complete)}(e)&&am(e)}(t)?t:new _o(t,r,i);return ia(()=>{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(r){t.error(r)}}forEach(t,r){return new(r=dm(r))((i,o)=>{const s=new _o({next:a=>{try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[eu](){return this}pipe(...t){return um(t)(this)}toPromise(t){return new(t=dm(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function dm(e){var n;return null!==(n=e??br.Promise)&&void 0!==n?n:Promise}const II=go(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ut=(()=>{class e extends Ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new fm(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new II}next(t){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){ia(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){ia(()=>{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:r,isStopped:i,observers:o}=this;return r||i?sm:(this.currentObservers=null,o.push(t),new lt(()=>{this.currentObservers=null,Jr(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Ce;return t.source=this,t}}return e.create=(n,t)=>new fm(n,t),e})();class fm extends ut{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:sm}}function hm(e){return oe(e?.lift)}function Te(e){return n=>{if(hm(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Me(e,n,t,r,i){return new SI(e,n,t,r,i)}class SI extends Yl{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}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 Te((t,r)=>{let i=0;t.subscribe(Me(r,o=>{r.next(e.call(n,o,i++))}))})}function Wn(e){return this instanceof Wn?(this.v=e,this):new Wn(e)}function _m(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 iu(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,c){!function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const bm=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function ym(e){return oe(e?.then)}function vm(e){return oe(e[eu])}function wm(e){return Symbol.asyncIterator&&oe(e?.[Symbol.asyncIterator])}function Dm(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 Em=function KI(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Cm(e){return oe(e?.[Em])}function Mm(e){return function gm(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(h){return new Promise(function(p,m){o.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function c(f){f.value instanceof Wn?Promise.resolve(f.value.v).then(l,u):d(o[0][2],f)}(r[f](h))}catch(p){d(o[0][3],p)}}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Wn(t.read());if(i)return yield Wn(void 0);yield yield Wn(r)}}finally{t.releaseLock()}})}function Im(e){return oe(e?.getReader)}function wt(e){if(e instanceof Ce)return e;if(null!=e){if(vm(e))return function QI(e){return new Ce(n=>{const t=e[eu]();if(oe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(bm(e))return function YI(e){return new Ce(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,lm)})}(e);if(wm(e))return Sm(e);if(Cm(e))return function JI(e){return new Ce(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Im(e))return function eS(e){return Sm(Mm(e))}(e)}throw Dm(e)}function Sm(e){return new Ce(n=>{(function tS(e,n){var t,r,i,o;return function pm(e,n,t,r){return new(t||(t=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=_m(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Sn(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Be(e,n,t=1/0){return oe(n)?Be((r,i)=>z((o,s)=>n(r,o,i,s))(wt(e(r,i))),t):("number"==typeof n&&(t=n),Te((r,i)=>function nS(e,n,t,r,i,o,s,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&n.complete()},h=m=>l{o&&n.next(m),l++;let _=!1;wt(t(m,u++)).subscribe(Me(n,y=>{i?.(y),o?h(y):n.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(l--;c.length&&lp(y)):p(y)}f()}catch(y){n.error(y)}}))};return e.subscribe(Me(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function ei(e=1/0){return Be(Gn,e)}const an=new Ce(e=>e.complete());function ou(e){return e[e.length-1]}function xm(e){return oe(ou(e))?e.pop():void 0}function bo(e){return function iS(e){return e&&oe(e.schedule)}(ou(e))?e.pop():void 0}function Tm(e,n=0){return Te((t,r)=>{t.subscribe(Me(r,i=>Sn(r,e,()=>r.next(i),n),()=>Sn(r,e,()=>r.complete(),n),i=>Sn(r,e,()=>r.error(i),n)))})}function Am(e,n=0){return Te((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Nm(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ce(t=>{Sn(t,n,()=>{const r=e[Symbol.asyncIterator]();Sn(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Le(e,n){return n?function dS(e,n){if(null!=e){if(vm(e))return function sS(e,n){return wt(e).pipe(Am(n),Tm(n))}(e,n);if(bm(e))return function cS(e,n){return new Ce(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(ym(e))return function aS(e,n){return wt(e).pipe(Am(n),Tm(n))}(e,n);if(wm(e))return Nm(e,n);if(Cm(e))return function lS(e,n){return new Ce(t=>{let r;return Sn(t,n,()=>{r=e[Em](),Sn(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>oe(r?.return)&&r.return()})}(e,n);if(Im(e))return function uS(e,n){return Nm(Mm(e),n)}(e,n)}throw Dm(e)}(e,n):wt(e)}class dt extends ut{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:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function N(...e){return Le(e,bo(e))}function su(e={}){const{connector:n=(()=>new ut),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,l=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return Te((m,_)=>{l++,!d&&!u&&f();const y=c=c??n();_.add(()=>{l--,0===l&&!d&&!u&&(a=au(p,i))}),y.subscribe(_),!s&&l>0&&(s=new _o({next:g=>y.next(g),error:g=>{d=!0,f(),a=au(h,t,g),y.error(g)},complete:()=>{u=!0,f(),a=au(h,r),y.complete()}}),wt(m).subscribe(s))})(o)}}function au(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new _o({next:()=>{r.unsubscribe(),e()}});return wt(n(...t)).subscribe(r)}function cn(e,n){return Te((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(Me(r,c=>{i?.unsubscribe();let l=0;const u=o++;wt(e(c,u)).subscribe(i=Me(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function cu(e,n=Gn){return e=e??hS,Te((t,r)=>{let i,o=!0;t.subscribe(Me(r,s=>{const a=n(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function hS(e,n){return e===n}function re(e){for(let n in e)if(e[n]===re)return n;throw Error("Could not find renamed property on target object.")}function sa(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Re(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Re).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 lu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const pS=re({__forward_ref__:re});function se(e){return e.__forward_ref__=se,e.toString=function(){return Re(this())},e}function L(e){return uu(e)?e():e}function uu(e){return"function"==typeof e&&e.hasOwnProperty(pS)&&e.__forward_ref__===se}function du(e){return e&&!!e.\u0275providers}class b extends Error{constructor(n,t){super(function aa(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function ne(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function V(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function fu(e,n){throw new b(-201,!1)}function kt(e,n){null==e&&function F(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ae(e){return{providers:e.providers||[],imports:e.imports||[]}}function ca(e){return Om(e,ua)||Om(e,km)}function Om(e,n){return e.hasOwnProperty(n)?e[n]:null}function la(e){return e&&(e.hasOwnProperty(hu)||e.hasOwnProperty(DS))?e[hu]:null}const ua=re({\u0275prov:re}),hu=re({\u0275inj:re}),km=re({ngInjectableDef:re}),DS=re({ngInjectorDef:re});var q=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}(q||{});let pu;function ft(e){const n=pu;return pu=e,n}function Pm(e,n,t){const r=ca(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&q.Optional?null:void 0!==n?n:void fu(Re(e))}const le=globalThis;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=x({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const yo={},yu="__NG_DI_FLAG__",da="ngTempTokenPath",MS=/\n/gm,Vm="__source";let ti;function Zn(e){const n=ti;return ti=e,n}function xS(e,n=q.Default){if(void 0===ti)throw new b(-203,!1);return null===ti?Pm(e,void 0,n):ti.get(e,n&q.Optional?null:void 0,n)}function D(e,n=q.Default){return(function Fm(){return pu}()||xS)(L(e),n)}function I(e,n=q.Default){return D(e,fa(n))}function fa(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function vu(e){const n=[];for(let t=0;tn){s=o-1;break}}}for(;oo?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Hm(h,l,0)||2&r&&l!==f){if(Wt(r))return!1;s=!0}}}}else{if(!s&&!Wt(r)&&!Wt(c))return!1;if(s&&Wt(c))continue;s=!1,r=c|1&r}}return Wt(r)||s}function Wt(e){return 0==(1&e)}function FS(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Wt(s)&&(n+=Km(o,i),i=""),r=s,o=o||!Wt(r);t++}return""!==i&&(n+=Km(o,i)),n}function ni(e){return xn(()=>{const n=Ym(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ha.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ft.Emulated,styles:e.styles||Y,_:null,schemas:e.schemas||null,tView:null,id:""};Xm(t);const r=e.dependencies;return t.directiveDefs=ma(r,!1),t.pipeDefs=ma(r,!0),t.id=function ZS(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 i of t)n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function zS(e){return W(e)||Ue(e)}function qS(e){return null!==e}function Oe(e){return xn(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Qm(e,n){if(null==e)return ln;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}function O(e){return xn(()=>{const n=Ym(e);return Xm(n),n})}function ht(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 W(e){return e[pa]||null}function Ue(e){return e[wu]||null}function Je(e){return e[Du]||null}function Et(e,n){const t=e[Bm]||null;if(!t&&!0===n)throw new Error(`Type ${Re(e)} does not have '\u0275mod' property.`);return t}function Ym(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||ln,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qm(e.inputs,n),outputs:Qm(e.outputs)}}function Xm(e){e.features?.forEach(n=>n(e))}function ma(e,n){if(!e)return null;const t=n?Je:zS;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(qS)}const De=0,C=1,H=2,ge=3,Zt=4,Eo=5,Ze=6,ii=7,Ie=8,Kn=9,oi=10,j=11,Co=12,Jm=13,si=14,Se=15,Mo=16,ai=17,un=18,Io=19,eg=20,Qn=21,An=22,So=23,xo=24,G=25,Cu=1,tg=2,dn=7,ci=9,He=11;function pt(e){return Array.isArray(e)&&"object"==typeof e[Cu]}function et(e){return Array.isArray(e)&&!0===e[Cu]}function Mu(e){return 0!=(4&e.flags)}function wr(e){return e.componentOffset>-1}function _a(e){return 1==(1&e.flags)}function Kt(e){return!!e.template}function Iu(e){return 0!=(512&e[H])}function Dr(e,n){return e.hasOwnProperty(Tn)?e[Tn]:null}let $e=null,ba=!1;function Pt(e){const n=$e;return $e=e,n}const ig={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function sg(e){if(!Ao(e)||e.dirty){if(!e.producerMustRecompute(e)&&!lg(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function cg(e){e.dirty=!0,function ag(e){if(void 0===e.liveConsumerNode)return;const n=ba;ba=!0;try{for(const t of e.liveConsumerNode)t.dirty||cg(t)}finally{ba=n}}(e),e.consumerMarkedDirty?.(e)}function xu(e){return e&&(e.nextProducerIndex=0),Pt(e)}function Tu(e,n){if(Pt(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ao(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function lg(e){li(e);for(let n=0;n0}function li(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let hg=null;function gg(e){const n=Pt(null);try{return e()}finally{Pt(n)}}const _g=()=>{},ax=(()=>({...ig,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:_g}))();class cx{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Lt(){return bg}function bg(e){return e.type.prototype.ngOnChanges&&(e.setInput=ux),lx}function lx(){const e=vg(this),n=e?.current;if(n){const t=e.previous;if(t===ln)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function ux(e,n,t,r){const i=this.declaredInputs[t],o=vg(e)||function dx(e,n){return e[yg]=n}(e,{previous:ln,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new cx(c&&c.currentValue,n,a===ln),e[r]=n}Lt.ngInherit=!0;const yg="__ngSimpleChanges__";function vg(e){return e[yg]||null}const fn=function(e,n,t){};function ue(e){for(;Array.isArray(e);)e=e[De];return e}function mt(e,n){return ue(n[e.index])}function Eg(e,n){return e.data[n]}function Ct(e,n){const t=n[e];return pt(t)?t:t[De]}function Xn(e,n){return null==n?null:e[n]}function Cg(e){e[ai]=0}function _x(e){1024&e[H]||(e[H]|=1024,Ig(e,1))}function Mg(e){1024&e[H]&&(e[H]&=-1025,Ig(e,-1))}function Ig(e,n){let t=e[ge];if(null===t)return;t[Eo]+=n;let r=t;for(t=t[ge];null!==t&&(1===n&&1===r[Eo]||-1===n&&0===r[Eo]);)t[Eo]+=n,r=t,t=t[ge]}const P={lFrame:Lg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Tg(){return P.bindingsEnabled}function v(){return P.lFrame.lView}function K(){return P.lFrame.tView}function ze(){let e=Ag();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ag(){return P.lFrame.currentTNode}function hn(e,n){const t=P.lFrame;t.currentTNode=e,t.isParent=n}function ku(){return P.lFrame.isParent}function tt(){const e=P.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Nx(e,n){const t=P.lFrame;t.bindingIndex=t.bindingRootIndex=e,Pu(n)}function Pu(e){P.lFrame.currentDirectiveIndex=e}function Vu(e){P.lFrame.currentQueryIndex=e}function Ox(e){const n=e[C];return 2===n.type?n.declTNode:1===n.type?e[Ze]:null}function Fg(e,n,t){if(t&q.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&q.Host||(i=Ox(o),null===i||(o=o[si],10&i.type))););if(null===i)return!1;n=i,e=o}const r=P.lFrame=Pg();return r.currentTNode=n,r.lView=e,!0}function ju(e){const n=Pg(),t=e[C];P.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Pg(){const e=P.lFrame,n=null===e?null:e.child;return null===n?Lg(e):n}function Lg(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 Vg(){const e=P.lFrame;return P.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const jg=Vg;function Bu(){const e=Vg();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 nt(){return P.lFrame.selectedIndex}function Er(e){P.lFrame.selectedIndex=e}let Hg=!0;function wa(){return Hg}function Jn(e){Hg=e}function Da(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[c]<0&&(e[ai]+=65536),(a>13>16&&(3&e[H])===n&&(e[H]+=8192,zg(a,o)):zg(a,o)}const hi=-1;class Ro{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function $u(e){return e!==hi}function Oo(e){return 32767&e}function ko(e,n){let t=function zx(e){return e>>16}(e),r=n;for(;t>0;)r=r[si],t--;return r}let zu=!0;function Ma(e){const n=zu;return zu=e,n}const qg=255,Gg=5;let qx=0;const pn={};function Ia(e,n){const t=Wg(e,n);if(-1!==t)return t;const r=n[C];r.firstCreatePass&&(e.injectorIndex=n.length,qu(r.data,e),qu(n,null),qu(r.blueprint,null));const i=Sa(e,n),o=e.injectorIndex;if($u(i)){const s=Oo(i),a=ko(i,n),c=a[C].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=i,o}function qu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Wg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Sa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=e_(i),null===r)return hi;if(t++,i=i[si],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return hi}function Gu(e,n,t){!function Gx(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(wo)&&(r=t[wo]),null==r&&(r=t[wo]=qx++);const i=r&qg;n.data[e+(i>>Gg)]|=1<=0?n&qg:Yx:n}(t);if("function"==typeof o){if(!Fg(n,e,r))return r&q.Host?Zg(i,0,r):Kg(n,t,r,i);try{let s;if(s=o(r),null!=s||r&q.Optional)return s;fu()}finally{jg()}}else if("number"==typeof o){let s=null,a=Wg(e,n),c=hi,l=r&q.Host?n[Se][Ze]:null;for((-1===a||r&q.SkipSelf)&&(c=-1===a?Sa(e,n):n[a+8],c!==hi&&Jg(r,!1)?(s=n[C],a=Oo(c),n=ko(c,n)):a=-1);-1!==a;){const u=n[C];if(Xg(o,a,u.data)){const d=Zx(a,n,t,s,r,l);if(d!==pn)return d}c=n[a+8],c!==hi&&Jg(r,n[C].data[a+8]===l)&&Xg(o,a,n)?(s=u,a=Oo(c),n=ko(c,n)):a=-1}}return i}function Zx(e,n,t,r,i,o){const s=n[C],a=s.data[e+8],u=function xa(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,c=e.directiveStart,u=o>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h=c&&p.type===t)return h}if(i){const h=s[c];if(h&&Kt(h)&&h.type===t)return c}return null}(a,s,t,null==r?wr(a)&&zu:r!=s&&0!=(3&a.type),i&q.Host&&o===a);return null!==u?Cr(n,s,u,a):pn}function Cr(e,n,t,r){let i=e[t];const o=n.data;if(function Ux(e){return e instanceof Ro}(i)){const s=i;s.resolving&&function mS(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new b(-200,`Circular dependency in DI detected for ${e}${t}`)}(ne(o[t]));const a=Ma(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ft(s.injectImpl):null;Fg(e,r,q.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function jx(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=bg(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==l&&ft(l),Ma(a),s.resolving=!1,jg()}}return i}function Xg(e,n,t){return!!(t[n+(e>>Gg)]&1<{const n=Wu(L(e));return n&&n()}:Dr(e)}function e_(e){const n=e[C],t=n.type;return 2===t?n.declTNode:1===t?e[Ze]:null}const mi="__parameters__";function _i(e,n,t){return xn(()=>{const r=function Zu(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(mi)?c[mi]:Object.defineProperty(c,mi,{value:[]})[mi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function yi(e,n){e.forEach(t=>Array.isArray(t)?yi(t,n):n(t))}function n_(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ta(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Mt(e,n,t){let r=vi(e,n);return r>=0?e[1|r]=t:(r=~r,function oT(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Ku(e,n){const t=vi(e,n);if(t>=0)return e[1|t]}function vi(e,n){return function r_(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<n?i=o:r=o+1}return~(i<0&&(e[t-1][Zt]=r[Zt]);const o=Ta(e,He+n);!function HT(e,n){zo(e,n,n[j],2,null,null),n[De]=null,n[Ze]=null}(r[C],r);const s=o[un];null!==s&&s.detachView(o[C]),r[ge]=null,r[Zt]=null,r[H]&=-129}return r}function sd(e,n){if(!(256&n[H])){const t=n[j];n[So]&&ug(n[So]),n[xo]&&ug(n[xo]),t.destroyNode&&zo(e,n,t,3,null,null),function qT(e){let n=e[Co];if(!n)return ad(e[C],e);for(;n;){let t=null;if(pt(n))t=n[Co];else{const r=n[He];r&&(t=r)}if(!t){for(;n&&!n[Zt]&&n!==e;)pt(n)&&ad(n[C],n),n=n[ge];null===n&&(n=e),pt(n)&&ad(n[C],n),t=n&&n[Zt]}n=t}}(n)}}function ad(e,n){if(!(256&n[H])){n[H]&=-129,n[H]|=256,function KT(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[ii]=null);const i=n[Qn];if(null!==i){n[Qn]=null;for(let o=0;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===Ft.None||o===Ft.Emulated)return null}return mt(r,t)}}(e,n.parent,t)}function Ir(e,n,t,r,i){e.insertBefore(n,t,r,i)}function T_(e,n,t){e.appendChild(n,t)}function A_(e,n,t,r,i){null!==r?Ir(e,n,t,r,i):T_(e,n,t)}function Ba(e,n){return e.parentNode(n)}let ld,hd,O_=function R_(e,n,t){return 40&e.type?mt(e,t):null};function Ua(e,n,t,r){const i=cd(e,r,n),o=n[j],a=function N_(e,n,t){return O_(e,n,t)}(r.parent||n[Ze],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;c{t.push(s)};return yi(n,s=>{const a=s;Wa(a,o,[],r)&&(i||=[],i.push(a))}),void 0!==i&&rb(i,o),t}function rb(e,n){for(let t=0;t{n(o,r)})}}function Wa(e,n,t,r){if(!(e=L(e)))return!1;let i=null,o=la(e);const s=!o&&W(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=la(c),!o)return!1;i=c}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Wa(l,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;r.add(i);try{yi(o.imports,u=>{Wa(u,n,t,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&rb(l,n)}if(!a){const l=Dr(i)||(()=>new i);n({provide:i,useFactory:l,deps:Y},i),n({provide:eb,useValue:i,multi:!0},i),n({provide:Wo,useValue:()=>D(i),multi:!0},i)}const c=o.providers;if(null!=c&&!a){const l=e;yd(c,u=>{n(u,l)})}}}return i!==e&&void 0!==e.providers}function yd(e,n){for(let t of e)du(t)&&(t=t.\u0275providers),Array.isArray(t)?yd(t,n):n(t)}const OA=re({provide:String,useValue:re});function vd(e){return null!==e&&"object"==typeof e&&OA in e}function xr(e){return"function"==typeof e}const wd=new E("Set Injector scope."),Za={},FA={};let Dd;function Ka(){return void 0===Dd&&(Dd=new bd),Dd}class jt{}class Ii extends jt{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Cd(n,s=>this.processProvider(s)),this.records.set(J_,Si(void 0,this)),i.has("environment")&&this.records.set(jt,Si(void 0,this));const o=this.records.get(wd);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(eb.multi,Y,q.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Zn(this),r=ft(void 0);try{return n()}finally{Zn(t),ft(r)}}get(n,t=yo,r=q.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Um))return n[Um](this);r=fa(r);const o=Zn(this),s=ft(void 0);try{if(!(r&q.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function BA(e){return"function"==typeof e||"object"==typeof e&&e instanceof E}(n)&&ca(n);c=l&&this.injectableDefInScope(l)?Si(Ed(n),Za):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&q.Self?Ka():this.parent).get(n,t=r&q.Optional&&t===yo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[da]=a[da]||[]).unshift(Re(n)),o)throw a;return function AS(e,n,t,r){const i=e[da];throw n[Vm]&&i.unshift(n[Vm]),e.message=function NS(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Re(n);if(Array.isArray(n))i=n.map(Re).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):Re(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(MS,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[da]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{ft(s),Zn(o)}}resolveInjectorInitializers(){const n=Zn(this),t=ft(void 0);try{const i=this.get(Wo.multi,Y,q.Self);for(const o of i)o()}finally{Zn(n),ft(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Re(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(n){let t=xr(n=L(n))?n:L(n&&n.provide);const r=function LA(e){return vd(e)?Si(void 0,e.useValue):Si(sb(e),Za)}(n);if(xr(n)||!0!==n.multi)this.records.get(t);else{let i=this.records.get(t);i||(i=Si(void 0,Za,!0),i.factory=()=>vu(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===Za&&(t.value=FA,t.value=t.factory()),"object"==typeof t.value&&t.value&&function jA(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=L(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 Ed(e){const n=ca(e),t=null!==n?n.factory:Dr(e);if(null!==t)return t;if(e instanceof E)throw new b(204,!1);if(e instanceof Function)return function PA(e){const n=e.length;if(n>0)throw function Vo(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new b(204,!1)}function sb(e,n,t){let r;if(xr(e)){const i=L(e);return Dr(i)||Ed(i)}if(vd(e))r=()=>L(e.useValue);else if(function ob(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...vu(e.deps||[]));else if(function ib(e){return!(!e||!e.useExisting)}(e))r=()=>D(L(e.useExisting));else{const i=L(e&&(e.useClass||e.provide));if(!function VA(e){return!!e.deps}(e))return Dr(i)||Ed(i);r=()=>new i(...vu(e.deps))}return r}function Si(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Cd(e,n){for(const t of e)Array.isArray(t)?Cd(t,n):t&&du(t)?Cd(t.\u0275providers,n):n(t)}const Qa=new E("AppId",{providedIn:"root",factory:()=>UA}),UA="ng",ab=new E("Platform Initializer"),Tr=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ya=new E("AnimationModuleType"),Md=new E("CSP nonce",{providedIn:"root",factory:()=>function Mi(){if(void 0!==hd)return hd;if(typeof document<"u")return document;throw new b(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let cb=(e,n,t)=>null;function Od(e,n,t=!1){return cb(e,n,t)}class YA{}class db{}class JA{resolveComponentFactory(n){throw function XA(e){const n=Error(`No component factory found for ${Re(e)}.`);return n.ngComponent=e,n}(n)}}let rc=(()=>{class e{static#e=this.NULL=new JA}return e})();function eN(){return Ai(ze(),v())}function Ai(e,n){return new Qe(mt(e,n))}let Qe=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=eN}return e})();class Ni{}let kn=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function nN(){const e=v(),t=Ct(ze().index,e);return(pt(t)?t:e)[j]}()}return e})(),rN=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();class Ar{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const iN=new Ar("16.2.12"),Pd={};function gb(e,n=null,t=null,r){const i=_b(e,n,t,r);return i.resolveInjectorInitializers(),i}function _b(e,n=null,t=null,r,i=new Set){const o=[t||Y,RA(e)];return r=r||("object"==typeof e?void 0:Re(e)),new Ii(o,n||Ka(),r||null,i)}let _t=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=yo;static#t=this.NULL=new bd;static create(t,r){if(Array.isArray(t))return gb({name:""},r,t,"");{const i=t.name??"";return gb({name:i},t.parent,t.providers,i)}}static#n=this.\u0275prov=x({token:e,providedIn:"any",factory:()=>D(J_)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Vd(e){return e.ngOriginalError}class Qt{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&&Vd(n);for(;t&&Vd(t);)t=Vd(t);return t||null}}function Bd(e){return n=>{setTimeout(e,void 0,n)}}const _e=class dN extends ut{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=Bd(o),i&&(i=Bd(i)),s&&(s=Bd(s)));const a=super.subscribe({next:i,error:o,complete:s});return n instanceof lt&&n.add(a),a}};function yb(...e){}class X{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function fN(){const e="function"==typeof le.requestAnimationFrame;let n=le[e?"requestAnimationFrame":"setTimeout"],t=le[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function mN(e){const n=()=>{!function pN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(le,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Hd(e),e.isCheckStableRunning=!0,Ud(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Hd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{if(function _N(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(i,o,s,a);try{return vb(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),wb(e)}},onInvoke:(t,r,i,o,s,a,c)=>{try{return vb(e),t.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),wb(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Hd(e),Ud(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!X.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(X.isInAngularZone())throw new b(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,hN,yb,yb);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const hN={};function Ud(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 Hd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wb(e){e._nesting--,Ud(e)}class gN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}const Db=new E("",{providedIn:"root",factory:Eb});function Eb(){const e=I(X);let n=!0;return function fS(...e){const n=bo(e),t=function oS(e,n){return"number"==typeof ou(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?wt(r[0]):ei(t)(Le(r,n)):an}(new Ce(i=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(n),i.complete()})}),new Ce(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,i.next(!0))})})});const s=e.onUnstable.subscribe(()=>{X.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(su()))}function Fn(e){return e instanceof Function?e():e}let $d=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function Qo(e){for(;e;){e[H]|=64;const n=Ho(e);if(Iu(e)&&!n)return e;e=n}return null}const xb=new E("",{providedIn:"root",factory:()=>!1});let oc=null;function Rb(e,n){return e[n]??Fb()}function Ob(e,n){const t=Fb();t.producerNode?.length&&(e[n]=oc,t.lView=e,oc=kb())}const SN={...ig,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Qo(e.lView)},lView:null};function kb(){return Object.create(SN)}function Fb(){return oc??=kb(),oc}const U={};function Pb(e,n,t,r){if(!r)if(3==(3&n[H])){const o=e.preOrderCheckHooks;null!==o&&Ea(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Ca(n,o,0,t)}Er(t)}function w(e,n=q.Default){const t=v();return null===t?D(e,n):Qg(ze(),t,L(e),n)}function sc(e,n,t,r,i,o,s,a,c,l,u){const d=n.blueprint.slice();return d[De]=i,d[H]=140|r,(null!==l||e&&2048&e[H])&&(d[H]|=2048),Cg(d),d[ge]=d[si]=e,d[Ie]=t,d[oi]=s||e&&e[oi],d[j]=a||e&&e[j],d[Kn]=c||e&&e[Kn]||null,d[Ze]=o,d[Io]=function AT(){return TT++}(),d[An]=u,d[eg]=l,d[Se]=2==n.type?e[Se]:d,d}function Fi(e,n,t,r,i){let o=e.data[n];if(null===o)o=function qd(e,n,t,r,i){const o=Ag(),s=ku(),c=e.data[n]=function FN(e,n,t,r,i,o){let s=n?n.injectorIndex:-1,a=0;return function di(){return null!==P.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,r,i),function Ax(){return P.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function No(){const e=P.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return hn(o,!0),o}function Yo(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;oG&&Pb(e,n,G,!1),fn(a?2:0,i);const l=a?o:null,u=xu(l);try{null!==l&&(l.dirty=!1),t(r,i)}finally{Tu(l,u)}}finally{a&&null===n[So]&&Ob(n,So),Er(s),fn(a?3:1,i)}}function Gd(e,n,t){if(Mu(n)){const r=Pt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function Bb(e,n,t,r){for(let i in e)if(e.hasOwnProperty(i)){t=null===t?{}:t;const o=e[i];null===r?Ub(t,n,i,o):r.hasOwnProperty(i)&&Ub(t,n,r[i],o)}return t}function Ub(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function Hb(e,n,t,r,i,o){for(let l=0;l0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,o)}}(e,n,r,Yo(e,t,i.hostVars,U),i)}function QN(e,n,t,r,i,o){const s=o[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,i){const o=typeof Zone>"u"?null:Zone.current,s=function sx(e,n,t){const r=Object.create(ax);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=s=>{r.cleanupFn=s};return r.ref={notify:()=>cg(r),run:()=>{if(r.dirty=!1,r.hasRun&&!lg(r))return;r.hasRun=!0;const s=xu(r);try{r.cleanupFn(),r.cleanupFn=_g,r.fn(i)}finally{Tu(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,l=>{this.all.has(l)&&this.queue.set(l,o)},i);let a;this.all.add(s),s.notify();const c=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function cc(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0){ey(e,1);const i=t.components;null!==i&&ny(e,i,1)}}function ny(e,n,t){for(let r=0;r-1&&(ja(n,r),Ta(t,r))}this._attachedToViewContainer=!1}sd(this._lView[C],this._lView)}onDestroy(n){!function Sg(e,n){if(256==(256&e[H]))throw new b(911,!1);null===e[Qn]&&(e[Qn]=[]),e[Qn].push(n)}(this._lView,n)}markForCheck(){Qo(this._cdRefInjectingView||this._lView)}detach(){this._lView[H]&=-129}reattach(){this._lView[H]|=128}detectChanges(){lc(this._lView[C],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zT(e,n){zo(e,n,n[j],2,null,null)}(this._lView[C],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n}}class oR extends Jo{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;lc(n[C],n,n[Ie],!1)}checkNoChanges(){}get context(){return null}}class ry extends rc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=W(n);return new es(t,this.ngModule)}}function iy(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class aR{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=fa(r);const i=this.injector.get(n,Pd,r);return i!==Pd||t===Pd?i:this.parentInjector.get(n,t,r)}}class es extends db{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=iy(n.inputs);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return iy(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function US(e){return e.map(BS).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){let o=(i=i||this.ngModule)instanceof jt?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new aR(n,o):n,a=s.get(Ni,null);if(null===a)throw new b(407,!1);const d={rendererFactory:a,sanitizer:s.get(rN,null),effectManager:s.get(Yb,null),afterRenderEventManager:s.get($d,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function AN(e,n,t,r){const o=r.get(xb,!1)||t===Ft.ShadowDom,s=e.selectRootElement(n,o);return function NN(e){jb(e)}(s),s}(f,r,this.componentDef.encapsulation,s):Va(f,h,function sR(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h)),y=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let g=null;null!==p&&(g=Od(p,s,!0));const M=Kd(0,null,null,1,0,null,null,null,null,null,null),S=sc(null,M,null,y,null,null,d,f,s,null,g);let B,ae;ju(S);try{const pe=this.componentDef;let We,Rt=null;pe.findHostDirectiveDefs?(We=[],Rt=new Map,pe.findHostDirectiveDefs(pe,We,Rt),We.push(pe)):We=[pe];const sn=function lR(e,n){const t=e[C],r=G;return e[r]=n,Fi(t,r,2,"#host",null)}(S,p),Wl=function uR(e,n,t,r,i,o,s){const a=i[C];!function dR(e,n,t,r){for(const i of e)n.mergedAttrs=Do(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(cc(n,n.mergedAttrs,!0),null!==t&&j_(r,t,n))}(r,e,n,s);let c=null;null!==n&&(c=Od(n,i[Kn]));const l=o.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=sc(i,Vb(t),null,u,i[e.index],e,o,l,null,null,c);return a.firstCreatePass&&Yd(a,e,r.length-1),ac(i,d),i[e.index]=d}(sn,p,pe,We,S,d,f);ae=Eg(M,G),p&&function hR(e,n,t,r){if(r)Eu(e,t,["ng-version",iN.full]);else{const{attrs:i,classes:o}=function HS(e){const n=[],t=[];let r=1,i=2;for(;r0&&V_(e,t,o.join(" "))}}(f,pe,p,r),void 0!==t&&function pR(e,n,t){const r=e.projection=[];for(let i=0;i=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Do(i.hostAttrs,t=Do(t,i.hostAttrs))}}(r)}function uc(e){return e===ln?{}:e===Y?[]:e}function _R(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function bR(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function yR(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}function dc(e){return!!nf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function nf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function _n(e,n,t){return e[n]=t}function Ye(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function tr(e,n,t){const r=v();return Ye(r,function fi(){return P.lFrame.bindingIndex++}(),n)&&function St(e,n,t,r,i,o,s,a){const c=mt(n,t);let u,l=n.inputs;!a&&null!=l&&(u=l[r])?(ef(e,t,u,r,i),wr(n)&&function VN(e,n){const t=Ct(n,e);16&t[H]||(t[H]|=64)}(t,n.index)):3&n.type&&(r=function LN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,n.value||"",r):i,o.setProperty(c,r,i))}(K(),function ve(){const e=P.lFrame;return Eg(e.tView,e.selectedIndex)}(),r,e,n,r[j],t,!1),tr}function uf(e,n,t,r,i){const s=i?"class":"style";ef(e,t,n.inputs[s],s,r)}function me(e,n,t,r){const i=v(),o=K(),s=G+e,a=i[j],c=o.firstCreatePass?function ZR(e,n,t,r,i,o){const s=n.consts,c=Fi(n,e,2,r,Xn(s,i));return function Qd(e,n,t,r){if(Tg()){const i=null===r?null:{"":-1},o=function zN(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o(Jn(!0),Va(r,i,function Ug(){return P.lFrame.currentNamespace}()));function os(e){return!!e&&"function"==typeof e.then}function Ty(e){return!!e&&"function"==typeof e.subscribe}function it(e,n,t,r){const i=v(),o=K(),s=ze();return function Ny(e,n,t,r,i,o,s){const a=_a(r),l=e.firstCreatePass&&function Zb(e){return e.cleanup||(e.cleanup=[])}(e),u=n[Ie],d=function Wb(e){return e[ii]||(e[ii]=[])}(n);let f=!0;if(3&r.type||s){const m=mt(r,n),_=s?s(m):m,y=d.length,g=s?S=>s(ue(S[r.index])):r.index;let M=null;if(!s&&a&&(M=function t1(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=o,M.__ngLastListenerFn__=o,f=!1;else{o=Oy(r,n,u,o,!1);const S=t.listen(_,i,o);d.push(o,S),l&&l.push(i,g,y,y+1)}}else o=Oy(r,n,u,o,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let _=0;_-1?Ct(e.index,n):n);let c=Ry(n,t,r,s),l=o.__ngNextListenerFn__;for(;l;)c=Ry(n,t,l,s)&&c,l=l.__ngNextListenerFn__;return i&&!1===c&&s.preventDefault(),c}}function gc(e,n){return e<<17|n<<2}function nr(e){return e>>17&32767}function pf(e){return 2|e}function Rr(e){return(131068&e)>>2}function mf(e,n){return-131069&e|n<<2}function gf(e){return 1|e}function qy(e,n,t,r,i){const o=e[t+1],s=null===n;let a=r?nr(o):Rr(o),c=!1;for(;0!==a&&(!1===c||s);){const u=e[a+1];u1(e[a],n)&&(c=!0,e[a+1]=r?gf(u):pf(u)),a=r?nr(u):Rr(u)}c&&(e[t+1]=r?pf(o):gf(o))}function u1(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&vi(e,n)>=0}function rr(e,n){return function Yt(e,n,t,r){const i=v(),o=K(),s=function Rn(e){const n=P.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}(2);o.firstUpdatePass&&function ev(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[nt()],s=function Jy(e,n){return n>=e.expandoStartIndex}(e,t);(function iv(e,n){return 0!=(e.flags&(n?8:16))})(o,r)&&null===n&&!s&&(n=!1),n=function y1(e,n,t,r){const i=function Lu(e){const n=P.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=ss(t=_f(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=_f(i,e,n,t,r),null===o){let c=function v1(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Rr(r))return e[nr(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=_f(null,e,n,c[1],r),c=ss(c,n.attrs,r),function w1(e,n,t,r){e[nr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else o=function D1(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(l=!0)):u=t,i)if(0!==c){const f=nr(e[a+1]);e[r+1]=gc(f,a),0!==f&&(e[f+1]=mf(e[f+1],r)),e[a+1]=function s1(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=gc(a,0),0!==a&&(e[a+1]=mf(e[a+1],r)),a=r;else e[r+1]=gc(c,0),0===a?a=r:e[c+1]=mf(e[c+1],r),c=r;l&&(e[r+1]=pf(e[r+1])),qy(e,u,r,!0),qy(e,u,r,!1),function l1(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&vi(o,n)>=0&&(t[r+1]=gf(t[r+1]))}(n,u,e,r,o),s=gc(a,c),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}(o,e,s,r),n!==U&&Ye(i,s,n)&&function nv(e,n,t,r,i,o,s,a){if(!(3&n.type))return;const c=e.data,l=c[a+1],u=function a1(e){return 1==(1&e)}(l)?rv(c,n,t,i,Rr(l),s):void 0;_c(u)||(_c(o)||function o1(e){return 2==(2&e)}(l)&&(o=rv(c,null,t,i,a,s)),function eA(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let o=-1===r.indexOf("-")?void 0:er.DashCase;null==i?e.removeStyle(t,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=er.Important),e.setStyle(t,r,i,o))}}(r,s,function va(e,n){return ue(n[e])}(nt(),t),i,o))}(o,o.data[nt()],i,i[j],e,i[s+1]=function I1(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Re(function It(e){return e instanceof Sr?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(n,t),r,s)}(e,n,null,!0),rr}function _f(e,n,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=t[i+1];f===U&&(f=d?Y:void 0);let h=d?Ku(f,r):u===r?f:void 0;if(l&&!_c(h)&&(h=Ku(c,r)),_c(h)&&(a=h,s))return a;const p=e[i+1];i=s?nr(p):Rr(p)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=Ku(c,r))}return a}function _c(e){return void 0!==e}function Ut(e,n=""){const t=v(),r=K(),i=e+G,o=r.firstCreatePass?Fi(r,i,1,n,null):r.data[i],s=ov(r,t,o,n,e);t[i]=s,wa()&&Ua(r,t,s,o),hn(o,!1)}let ov=(e,n,t,r,i)=>(Jn(!0),function La(e,n){return e.createText(n)}(n[j],r));const Wi="en-US";let Sv=Wi;function Df(e,n,t,r,i){if(e=L(e),Array.isArray(e))for(let o=0;o>20;if(xr(e)||!e.multi){const h=new Ro(l,i,w),p=Cf(c,n,i?u:u+f,d);-1===p?(Gu(Ia(a,s),o,c),Ef(o,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=Cf(c,n,u+f,d),p=Cf(c,n,u,u+f),_=p>=0&&t[p];if(i&&!_||!i&&!(h>=0&&t[h])){Gu(Ia(a,s),o,c);const y=function WO(e,n,t,r,i){const o=new Ro(e,t,w);return o.multi=[],o.index=n,o.componentProviders=0,Xv(o,i,r&&!t),o}(i?GO:qO,t.length,i,r,l);!i&&_&&(t[p].providerFactory=y),Ef(o,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(y),s.push(y)}else Ef(o,e,h>-1?h:p,Xv(t[i?p:h],l,!i&&r));!i&&r&&_&&t[p].componentProviders++}}}function Ef(e,n,t,r){const i=xr(n),o=function kA(e){return!!e.useClass}(n);if(i||o){const c=(o?L(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[r,c]):l[u+1].push(r,c)}else l.push(t,c)}}}function Xv(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Cf(e,n,t,r){for(let i=t;i{t.providersResolver=(r,i)=>function zO(e,n,t){const r=K();if(r.firstCreatePass){const i=Kt(e);Df(t,r.data,r.blueprint,i,!0),Df(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}class kr{}class Jv{}class If extends kr{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ry(this);const i=Et(n);this._bootstrapComponents=Fn(i.bootstrap),this._r3Injector=_b(n,t,[{provide:kr,useValue:this},{provide:rc,useValue:this.componentFactoryResolver},...r],Re(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}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 Sf extends Jv{constructor(n){super(),this.moduleType=n}create(n){return new If(this.moduleType,n,[])}}class ew extends kr{constructor(n){super(),this.componentFactoryResolver=new ry(this),this.instance=null;const t=new Ii([...n.providers,{provide:kr,useValue:this},{provide:rc,useValue:this.componentFactoryResolver}],n.parent||Ka(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function xf(e,n,t=null){return new ew({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let QO=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=nb(0,t.type),i=r.length>0?xf([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}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=x({token:e,providedIn:"environment",factory:()=>new e(D(jt))})}return e})();function tw(e){e.getStandaloneInjector=n=>n.get(QO).getOrCreateStandaloneInjector(e)}function cw(e,n,t,r,i){return function uw(e,n,t,r,i,o,s){const a=n+t;return function Nr(e,n,t,r){const i=Ye(e,n,t);return Ye(e,n+1,r)||i}(e,a,i,o)?_n(e,a+2,s?r.call(s,i,o):r(i,o)):fs(e,a+2)}(v(),tt(),e,n,t,r,i)}function fs(e,n){const t=e[n];return t===U?void 0:t}function mw(e,n,t){const r=e+G,i=v(),o=function ui(e,n){return e[n]}(i,r);return function hs(e,n){return e[C].data[n].pure}(i,r)?function lw(e,n,t,r,i,o){const s=n+t;return Ye(e,s,i)?_n(e,s+1,o?r.call(o,i):r(i)):fs(e,s+1)}(i,tt(),n,o.transform,t,o):o.transform(t)}function wk(e,n,t,r=!0){const i=n[C];if(function GT(e,n,t,r){const i=He+r,o=t.length;r>0&&(t[i-1][Zt]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=Ak}return e})();function Ak(){return function Dw(e,n){let t;const r=n[e.index];return et(r)?t=r:(t=function qb(e,n,t,r){return[e,!0,!1,n,null,0,r,t,null,null,null]}(r,n,null,e),n[e.index]=t,ac(n,t)),Ew(t,n,e,r),new vw(t,e,n)}(ze(),v())}const Nk=Jt,vw=class extends Nk{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Ai(this._hostTNode,this._hostLView)}get injector(){return new rt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Sa(this._hostTNode,this._hostLView);if($u(n)){const t=ko(n,this._hostLView),r=Oo(n);return new rt(t[C].data[r+8],t)}return new rt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=ww(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-He}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,i,false),a}createComponent(n,t,r,i,o){const s=n&&!function Lo(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const m=t||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}const c=s?n:new es(W(n)),l=r||this.parentInjector;if(!o&&null==c.ngModule){const _=(s?l:this.parentInjector).get(jt,null);_&&(o=_)}W(c.componentType??{});const h=c.create(l,i,null,o);return this.insertImpl(h.hostView,a,false),h}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const i=n._lView;if(function gx(e){return et(e[ge])}(i)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const l=i[ge],u=new vw(l,l[Ze],l[ge]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return wk(a,i,s,!r),n.attachToViewContainerRef(),n_(Nf(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=ww(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=ja(this._lContainer,t);r&&(Ta(Nf(this._lContainer),t),sd(r[C],r))}detach(n){const t=this._adjustIndex(n,-1),r=ja(this._lContainer,t);return r&&null!=Ta(Nf(this._lContainer),t)?new Jo(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function ww(e){return e[8]}function Nf(e){return e[8]||(e[8]=[])}let Ew=function Cw(e,n,t,r){if(e[dn])return;let i;i=8&t.type?ue(r):function Rk(e,n){const t=e[j],r=t.createComment(""),i=mt(n,e);return Ir(t,Ba(t,i),r,function YT(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[dn]=i};const zf=new E("Application Initializer");let qf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=I(zf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(os(o))t.push(o);else if(Ty(o)){const s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zw=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const vn=new E("LocaleId",{providedIn:"root",factory:()=>I(vn,q.Optional|q.SkipSelf)||function cF(){return typeof $localize<"u"&&$localize.locale||Wi}()});let Kw=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dt(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class dF{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let Qw=(()=>{class e{compileModuleSync(t){return new Sf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=Fn(Et(t).declarations).reduce((s,a)=>{const c=W(a);return c&&s.push(new es(c)),s},[]);return new dF(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const e0=new E(""),Ic=new E("");let Qf,Zf=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Qf||(function OF(e){Qf=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(D(X),D(Kf),D(Ic))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Kf=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return Qf?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ir=null;const t0=new E("AllowMultipleToken"),Yf=new E("PlatformDestroyListeners"),Xf=new E("appBootstrapListener");class r0{constructor(n,t){this.name=n,this.token=t}}function s0(e,n,t=[]){const r=`Platform: ${n}`,i=new E(r);return(o=[])=>{let s=Jf();if(!s||s.injector.get(t0,!1)){const a=[...t,...o,{provide:i,useValue:!0}];e?e(a):function PF(e){if(ir&&!ir.get(t0,!1))throw new b(400,!1);(function n0(){!function tx(e){hg=e}(()=>{throw new b(600,!1)})})(),ir=e;const n=e.get(c0);(function o0(e){e.get(ab,null)?.forEach(t=>t())})(e)}(function a0(e=[],n){return _t.create({name:n,providers:[{provide:wd,useValue:"platform"},{provide:Yf,useValue:new Set([()=>ir=null])},...e]})}(a,r))}return function VF(e){const n=Jf();if(!n)throw new b(401,!1);return n}()}}function Jf(){return ir?.get(c0)??null}let c0=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=function jF(e="zone.js",n){return"noop"===e?new gN:"zone.js"===e?new X(n):e}(r?.ngZone,function l0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const o=function KO(e,n,t){return new If(e,n,t)}(t.moduleType,this.injector,function p0(e){return[{provide:X,useFactory:e},{provide:Wo,multi:!0,useFactory:()=>{const n=I(UF,{optional:!0});return()=>n.initialize()}},{provide:h0,useFactory:BF},{provide:Db,useFactory:Eb}]}(()=>i)),s=o.injector.get(Qt,null);return i.runOutsideAngular(()=>{const a=i.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{Sc(this._modules,o),a.unsubscribe()})}),function u0(e,n,t){try{const r=t();return os(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,i,()=>{const a=o.injector.get(qf);return a.runInitializers(),a.donePromise.then(()=>(function xv(e){kt(e,"Expected localeId to be defined"),"string"==typeof e&&(Sv=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(vn,Wi)||Wi),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,r=[]){const i=d0({},r);return function kF(e,n,t){const r=new Sf(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(Fr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new b(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Yf,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(D(_t))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function d0(e,n){return Array.isArray(n)?n.reduce(d0,e):{...e,...n}}let Fr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(h0),this.zoneIsStable=I(Db),this.componentTypes=[],this.components=[],this.isStable=I(Kw).hasPendingTasks.pipe(cn(t=>t?N(!1):this.zoneIsStable),cu(),su()),this._injector=I(jt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof db;if(!this._injector.get(qf).done)throw!i&&function ri(e){const n=W(e)||Ue(e)||Je(e);return null!==n&&n.standalone}(t),new b(405,!1);let s;s=i?t:this._injector.get(rc).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function FF(e){return e.isBoundToModule}(s)?void 0:this._injector.get(kr),l=s.create(_t.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(e0,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Sc(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Sc(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Xf,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(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),()=>Sc(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(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sc(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const h0=new E("",{providedIn:"root",factory:()=>I(Qt).handleError.bind(void 0)});function BF(){const e=I(X),n=I(Qt);return t=>e.runOutsideAngular(()=>n.handleError(t))}let UF=(()=>{class e{constructor(){this.zone=I(X),this.applicationRef=I(Fr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let gs=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=$F}return e})();function $F(e){return function zF(e,n,t){if(wr(e)&&!t){const r=Ct(e.index,n);return new Jo(r,r)}return 47&e.type?new Jo(n[Se],n):null}(ze(),v(),16==(16&e))}class b0{constructor(){}supports(n){return dc(n)}create(n){return new QF(n)}}const KF=(e,n)=>n;class QF{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||KF}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;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,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new YF(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new y0),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._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 y0),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 YF{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 XF{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class y0{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new XF,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.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 v0(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._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 i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new eP(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_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(r=>t(n[r],r))}}class eP{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 D0(){return new Ac([new b0])}let Ac=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:D0});constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||D0()),deps:[[e,new jo,new Mr]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new b(901,!1)}}return e})();function E0(){return new _s([new w0])}let _s=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:E0});constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||E0()),deps:[[e,new jo,new Mr]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new b(901,!1)}}return e})();const rP=s0(null,"core",[]);let iP=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(D(Fr))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})(),oh=null;function or(){return oh}class bP{}const ye=new E("DocumentToken");let sh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(vP)},providedIn:"platform"})}return e})();const yP=new E("Location Initialized");let vP=(()=>{class e extends sh{constructor(){super(),this._doc=I(ye),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return or().getBaseHref(this._doc)}onPopState(t){const r=or().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=or().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}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(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function ah(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 R0(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 Vn(e){return e&&"?"!==e[0]?"?"+e:e}let Lr=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(k0)},providedIn:"root"})}return e})();const O0=new E("appBaseHref");let k0=(()=>{class e extends Lr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(ye).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 ah(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Vn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+Vn(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+Vn(o));this._platformLocation.replaceState(t,r,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(r){return new(r||e)(D(sh),D(O0,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wP=(()=>{class e extends Lr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=ah(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+Vn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+Vn(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,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(r){return new(r||e)(D(sh),D(O0,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ch=(()=>{class e{constructor(t){this._subject=new _e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function CP(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(R0(F0(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Vn(r))}normalize(t){return e.stripTrailingSlash(function EP(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,F0(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vn(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Vn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static#e=this.normalizeQueryParams=Vn;static#t=this.joinWithSlash=ah;static#n=this.stripTrailingSlash=R0;static#r=this.\u0275fac=function(r){return new(r||e)(D(Lr))};static#i=this.\u0275prov=x({token:e,factory:function(){return function DP(){return new ch(D(Lr))}()},providedIn:"root"})}return e})();function F0(e){return e.replace(/\/index.html$/,"")}const bh=/\s+/,z0=[];let q0=(()=>{class e{constructor(t,r,i,o){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=i,this._renderer=o,this.initialClasses=z0,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(bh):z0}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(bh):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(bh).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(w(Ac),w(_s),w(Qe),w(kn))};static#t=this.\u0275dir=O({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class mL{createSubscription(n,t){return gg(()=>n.subscribe({next:t,error:r=>{throw r}}))}dispose(n){gg(()=>n.unsubscribe())}}class gL{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const _L=new gL,bL=new mL;let Y0=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(os(t))return _L;if(Ty(t))return bL;throw function tn(e,n){return new b(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}static#e=this.\u0275fac=function(r){return new(r||e)(w(gs,16))};static#t=this.\u0275pipe=ht({name:"async",type:e,pure:!1,standalone:!0})}return e})(),J0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();const eD="browser";function tD(e){return"server"===e}let BL=(()=>{class e{static#e=this.\u0275prov=x({token:e,providedIn:"root",factory:()=>new UL(D(ye),window)})}return e})();class UL{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function HL(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 r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class f2 extends bP{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Mh extends f2{static makeCurrent(){!function _P(e){oh||(oh=e)}(new Mh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}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 h2(){return ws=ws||document.querySelector("base"),ws?ws.getAttribute("href"):null}();return null==t?null:function p2(e){zc=zc||document.createElement("a"),zc.setAttribute("href",e);const n=zc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){ws=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function cL(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}(document.cookie,n)}}let zc,ws=null,g2=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const Ih=new E("EventManagerPlugins");let sD=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ih),D(X))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class aD{constructor(n){this._doc=n}}const Sh="ng-app-id";let cD=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=tD(o),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Sh}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(Sh),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Sh,this.appId),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r);t.appendChild(i);const o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye),D(Qa),D(Md,8),D(Tr))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const xh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Th=/%COMP%/g,v2=new E("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function uD(e,n){return n.map(t=>t.replace(Th,e))}let Ah=(()=>{class e{constructor(t,r,i,o,s,a,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=tD(a),this.defaultRenderer=new Nh(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ft.ShadowDom&&(r={...r,encapsulation:Ft.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof fD?i.applyToHost(t):i instanceof Rh&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ft.Emulated:o=new fD(c,l,r,this.appId,u,s,a,d);break;case Ft.ShadowDom:return new C2(c,l,t,r,s,a,this.nonce,d);default:o=new Rh(c,l,r,u,s,a,d)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(D(sD),D(cD),D(Qa),D(v2),D(ye),D(Tr),D(X),D(Md))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class Nh{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(xh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(dD(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(dD(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new b(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=xh[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=xh[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(er.DashCase|er.Important)?n.style.setProperty(t,r,i&er.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&er.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){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(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function dD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class C2 extends Nh{constructor(n,t,r,i,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=uD(i.id,i.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Rh extends Nh{constructor(n,t,r,i,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?uD(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class fD extends Rh{constructor(n,t,r,i,o,s,a,c){const l=i+"-"+r.id;super(n,t,r,o,s,a,c,l),this.contentAttr=function w2(e){return"_ngcontent-%COMP%".replace(Th,e)}(l),this.hostAttr=function D2(e){return"_nghost-%COMP%".replace(Th,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let M2=(()=>{class e extends aD{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const hD=["alt","control","meta","shift"],I2={"\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"},S2={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let x2=(()=>{class e extends aD{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>or().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),hD.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let i=I2[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),hD.forEach(s=>{s!==i&&(0,S2[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();const R2=s0(rP,"browser",[{provide:Tr,useValue:eD},{provide:ab,useValue:function T2(){Mh.makeCurrent()},multi:!0},{provide:ye,useFactory:function N2(){return function oA(e){hd=e}(document),document},deps:[]}]),O2=new E(""),gD=[{provide:Ic,useClass:class m2{addToWindow(n){le.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new b(5103,!1);return o},le.getAllAngularTestabilities=()=>n.getAllTestabilities(),le.getAllAngularRootElements=()=>n.getAllRootElements(),le.frameworkStabilizers||(le.frameworkStabilizers=[]),le.frameworkStabilizers.push(r=>{const i=le.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(c){s=s||c,o--,0==o&&r(s)};i.forEach(c=>{c.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?or().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:e0,useClass:Zf,deps:[X,Kf,Ic]},{provide:Zf,useClass:Zf,deps:[X,Kf,Ic]}],_D=[{provide:wd,useValue:"root"},{provide:Qt,useFactory:function A2(){return new Qt},deps:[]},{provide:Ih,useClass:M2,multi:!0,deps:[ye,X,Tr]},{provide:Ih,useClass:x2,multi:!0,deps:[ye]},Ah,cD,sD,{provide:Ni,useExisting:Ah},{provide:class $L{},useClass:g2,deps:[]},[]];let bD=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Qa,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(D(O2,12))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({providers:[..._D,...gD],imports:[J0,iP]})}return e})(),yD=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye))};static#t=this.\u0275prov=x({token:e,factory:function(r){let i=null;return i=r?new r:function F2(){return new yD(D(ye))}(),i},providedIn:"root"})}return e})();typeof window<"u"&&window;const{isArray:U2}=Array,{getPrototypeOf:H2,prototype:$2,keys:z2}=Object;function CD(e){if(1===e.length){const n=e[0];if(U2(n))return{args:n,keys:null};if(function q2(e){return e&&"object"==typeof e&&H2(e)===$2}(n)){const t=z2(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:G2}=Array;function MD(e){return z(n=>function W2(e,n){return G2(n)?e(...n):e(n)}(e,n))}function ID(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function qc(...e){const n=bo(e),t=xm(e),{args:r,keys:i}=CD(e);if(0===r.length)return Le([],n);const o=new Ce(function Z2(e,n,t=Gn){return r=>{SD(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let c=0;c{const l=Le(e[c],n);let u=!1;l.subscribe(Me(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>ID(i,s):Gn));return t?o.pipe(MD(t)):o}function SD(e,n,t){e?Sn(t,e,n):n()}const Gc=go(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Wc(...e){return function K2(){return ei(1)}()(Le(e,bo(e)))}function xD(e){return new Ce(n=>{wt(e()).subscribe(n)})}function Xi(e,n){const t=oe(e)?e:()=>e,r=i=>i.error(t());return new Ce(n?i=>n.schedule(r,0,i):r)}function Fh(){return Te((e,n)=>{let t=null;e._refCount++;const r=Me(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class TD extends Ce{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,hm(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 lt;const t=this.getSubject();n.add(this.source.subscribe(Me(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=lt.EMPTY)}return n}refCount(){return Fh()(this)}}function Vr(e){return e<=0?()=>an:Te((n,t)=>{let r=0;n.subscribe(Me(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function AD(...e){const n=bo(e);return Te((t,r)=>{(n?Wc(e,t,n):Wc(e,t)).subscribe(r)})}function wn(e,n){return Te((t,r)=>{let i=0;t.subscribe(Me(r,o=>e.call(n,o,i++)&&r.next(o)))})}function Zc(e){return Te((n,t)=>{let r=!1;n.subscribe(Me(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function ND(e=Q2){return Te((n,t)=>{let r=!1;n.subscribe(Me(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function Q2(){return new Gc}function jr(e,n){const t=arguments.length>=2;return r=>r.pipe(e?wn((i,o)=>e(i,o,r)):Gn,Vr(1),t?Zc(n):ND(()=>new Gc))}function Ji(e,n){return oe(n)?Be(e,n,1):Be(e,1)}function Pe(e,n,t){const r=oe(e)||n||t?{next:e,error:n,complete:t}:e;return r?Te((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(Me(o,c=>{var l;null===(l=r.next)||void 0===l||l.call(r,c),o.next(c)},()=>{var c;a=!1,null===(c=r.complete)||void 0===c||c.call(r),o.complete()},c=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,c),o.error(c)},()=>{var c,l;a&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Gn}function ar(e){return Te((n,t)=>{let o,r=null,i=!1;r=n.subscribe(Me(t,void 0,void 0,s=>{o=wt(e(s,ar(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Ph(e){return e<=0?()=>an:Te((n,t)=>{let r=[];n.subscribe(Me(t,i=>{r.push(i),e{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function Kc(e){return Te((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function Lh(e){return Te((n,t)=>{wt(e).subscribe(Me(t,()=>t.complete(),Kl)),!t.closed&&n.subscribe(t)})}const $="primary",Ds=Symbol("RouteTitle");class tV{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 eo(e){return new tV(e)}function nV(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[o]===i)}return e===n}function OD(e){return e.length>0?e[e.length-1]:null}function cr(e){return function B2(e){return!!e&&(e instanceof Ce||oe(e.lift)&&oe(e.subscribe))}(e)?e:os(e)?Le(Promise.resolve(e)):N(e)}const iV={exact:function PD(e,n,t){if(!Br(e.segments,n.segments)||!Qc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!PD(e.children[r],n.children[r],t))return!1;return!0},subset:LD},kD={exact:function oV(e,n){return Dn(e,n)},subset:function sV(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>RD(e[t],n[t]))},ignored:()=>!0};function FD(e,n,t){return iV[t.paths](e.root,n.root,t.matrixParams)&&kD[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function LD(e,n,t){return VD(e,n,n.segments,t)}function VD(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!Br(i,t)||n.hasChildren()||!Qc(i,t,r))}if(e.segments.length===t.length){if(!Br(e.segments,t)||!Qc(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!LD(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(Br(e.segments,i)&&Qc(e.segments,i,r)&&e.children[$])&&VD(e.children[$],n,o,r)}}function Qc(e,n,t){return n.every((r,i)=>kD[t](e[i].parameters,r.parameters))}class to{constructor(n=new ie([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=eo(this.queryParams)),this._queryParamMap}toString(){return lV.serialize(this)}}class ie{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yc(this)}}class Es{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=eo(this.parameters)),this._parameterMap}toString(){return UD(this)}}function Br(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Cs=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return new Vh},providedIn:"root"})}return e})();class Vh{parse(n){const t=new vV(n);return new to(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Ms(n.root,!0)}`,r=function fV(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${Xc(t)}=${Xc(i)}`).join("&"):`${Xc(t)}=${Xc(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function uV(e){return encodeURI(e)}(n.fragment)}`:""}`}}const lV=new Vh;function Yc(e){return e.segments.map(n=>UD(n)).join("/")}function Ms(e,n){if(!e.hasChildren())return Yc(e);if(n){const t=e.children[$]?Ms(e.children[$],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==$&&r.push(`${i}:${Ms(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function cV(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===$&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==$&&(t=t.concat(n(i,r)))}),t}(e,(r,i)=>i===$?[Ms(e.children[$],!1)]:[`${i}:${Ms(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[$]?`${Yc(e)}/${t[0]}`:`${Yc(e)}/(${t.join("//")})`}}function jD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xc(e){return jD(e).replace(/%3B/gi,";")}function jh(e){return jD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jc(e){return decodeURIComponent(e)}function BD(e){return Jc(e.replace(/\+/g,"%20"))}function UD(e){return`${jh(e.path)}${function dV(e){return Object.keys(e).map(n=>`;${jh(n)}=${jh(e[n])}`).join("")}(e.parameters)}`}const hV=/^[^\/()?;#]+/;function Bh(e){const n=e.match(hV);return n?n[0]:""}const pV=/^[^\/()?;=#]+/,gV=/^[^=?&#]+/,bV=/^[^&#]+/;class vV{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ie([],{}):new ie([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[$]=new ie(n,t)),r}parseSegment(){const n=Bh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Es(Jc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function mV(e){const n=e.match(pV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=Bh(this.remaining);i&&(r=i,this.capture(r))}n[Jc(t)]=Jc(r)}parseQueryParam(n){const t=function _V(e){const n=e.match(gV);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function yV(e){const n=e.match(bV);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=BD(t),o=BD(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Bh(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=$);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[$]:new ie([],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 HD(e){return e.segments.length>0?new ie([],{[$]:e}):e}function $D(e){const n={};for(const r of Object.keys(e.children)){const o=$D(e.children[r]);if(r===$&&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[r]=o)}return function wV(e){if(1===e.numberOfChildren&&e.children[$]){const n=e.children[$];return new ie(e.segments.concat(n.segments),n.children)}return e}(new ie(e.segments,n))}function Ur(e){return e instanceof to}function zD(e){let n;const i=HD(function t(o){const s={};for(const c of o.children){const l=t(c);s[c.outlet]=l}const a=new ie(o.url,s);return o===e&&(n=a),a}(e.root));return n??i}function qD(e,n,t,r){let i=e;for(;i.parent;)i=i.parent;if(0===n.length)return Uh(i,i,i,t,r);const o=function EV(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new WD(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new WD(t,n,r)}(n);if(o.toRoot())return Uh(i,i,new ie([],{}),t,r);const s=function CV(e,n,t){if(e.isAbsolute)return new tl(n,!0,0);if(!t)return new tl(n,!1,NaN);if(null===t.parent)return new tl(t,!0,0);const r=el(e.commands[0])?0:1;return function MV(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new tl(r,!1,i-o)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Ss(s.segmentGroup,s.index,o.commands):ZD(s.segmentGroup,s.index,o.commands);return Uh(i,s.segmentGroup,a,t,r)}function el(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Is(e){return"object"==typeof e&&null!=e&&e.outlets}function Uh(e,n,t,r,i){let s,o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===n?t:GD(e,n,t);const a=HD($D(s));return new to(a,o,i)}function GD(e,n,t){const r={};return Object.entries(e.children).forEach(([i,o])=>{r[i]=o===n?t:GD(o,n,t)}),new ie(e.segments,r)}class WD{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&el(r[0]))throw new b(4003,!1);const i=r.find(Is);if(i&&i!==OD(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tl{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function ZD(e,n,t){if(e||(e=new ie([],{})),0===e.segments.length&&e.hasChildren())return Ss(e,n,t);const r=function SV(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=t.length)return o;const s=e.segments[i],a=t[r];if(Is(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!QD(c,l,s))return o;r+=2}else{if(!QD(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndexo!==$)&&e.children[$]&&1===e.numberOfChildren&&0===e.children[$].segments.length){const o=Ss(e.children[$],n,t);return new ie(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=ZD(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===r[o]&&(i[o]=s)}),new ie(e.segments,i)}}function Hh(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Hh(new ie([],{}),0,r))}),n}function KD(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function QD(e,n,t){return e==t.path&&Dn(n,t.parameters)}const xs="imperative";class En{constructor(n,t){this.id=n,this.url=t}}class nl extends En{constructor(n,t,r="imperative",i=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class lr extends En{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ts extends En{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class no extends En{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=16}}class rl extends En{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class YD extends En{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class TV extends En{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AV extends En{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class NV extends En{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RV extends En{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class OV{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class kV{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class FV{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PV{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LV{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class VV{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XD{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class $h{}class zh{constructor(n){this.url=n}}class jV{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new As,this.attachRef=null}}let As=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new jV,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class JD{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=qh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=qh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Gh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Gh(n,this._root).map(t=>t.value)}}function qh(e,n){if(e===n.value)return n;for(const t of n.children){const r=qh(e,t);if(r)return r}return null}function Gh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=Gh(e,t);if(r.length)return r.unshift(n),r}return[]}class Un{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function ro(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class eE extends JD{constructor(n,t){super(n),this.snapshot=t,Wh(this,n)}toString(){return this.snapshot.toString()}}function tE(e,n){const t=function BV(e,n){const s=new il([],{},{},"",{},$,n,null,{});return new rE("",new Un(s,[]))}(0,n),r=new dt([new Es("",{})]),i=new dt({}),o=new dt({}),s=new dt({}),a=new dt(""),c=new io(r,i,s,a,o,$,n,t.root);return c.snapshot=t.root,new eE(new Un(c,[]),t)}class io{constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(z(l=>l[Ds]))??N(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=i,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._paramMap=this.params.pipe(z(n=>eo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(n=>eo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function nE(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function UV(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class il{get title(){return this.data?.[Ds]}constructor(n,t,r,i,o,s,a,c,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=eo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=eo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class rE extends JD{constructor(n,t){super(t),this.url=n,Wh(this,t)}toString(){return iE(this._root)}}function Wh(e,n){n.value._routerState=e,n.children.forEach(t=>Wh(e,t))}function iE(e){const n=e.children.length>0?` { ${e.children.map(iE).join(", ")} } `:"";return`${e.value}${n}`}function Zh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Dn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Dn(n.params,t.params)||e.paramsSubject.next(t.params),function rV(e,n){if(e.length!==n.length)return!1;for(let t=0;tDn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Kh(e.parent,n.parent))}let oE=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=$,this.activateEvents=new _e,this.deactivateEvents=new _e,this.attachEvents=new _e,this.detachEvents=new _e,this.parentContexts=I(As),this.location=I(Jt),this.changeDetector=I(gs),this.environmentInjector=I(jt),this.inputBinder=I(ol,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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,r){this.activated=t,this._activatedRoute=r,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,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;const i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new HV(t,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Lt]})}return e})();class HV{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===io?this.route:n===As?this.childContexts:this.parent.get(n,t)}}const ol=new E("");let sE=(()=>{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:r}=t,i=qc([r.queryParams,r.params,r.data]).pipe(cn(([o,s,a],c)=>(a={...o,...s,...a},0===c?N(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function gP(e){const n=W(e);if(!n)return null;const t=new es(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}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Ns(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function zV(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ns(e,r,i);return Ns(e,r)})}(e,n,t);return new Un(r,i)}{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=>Ns(e,a)),s}}const r=function qV(e){return new io(new dt(e.url),new dt(e.params),new dt(e.queryParams),new dt(e.fragment),new dt(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>Ns(e,o));return new Un(r,i)}}const Qh="ngNavigationCancelingError";function aE(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Ur(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=cE(!1,0,n);return i.url=t,i.navigationBehaviorOptions=r,i}function cE(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[Qh]=!0,r.cancellationCode=n,t&&(r.url=t),r}function lE(e){return e&&e[Qh]}let uE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ni({type:e,selectors:[["ng-component"]],standalone:!0,features:[tw],decls:1,vars:0,template:function(r,i){1&r&&bt(0,"router-outlet")},dependencies:[oE],encapsulation:2})}return e})();function Yh(e){const n=e.children&&e.children.map(Yh),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==$&&(t.component=uE),t}function nn(e){return e.outlet||$}function Rs(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 JV{constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Zh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=ro(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=ro(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=ro(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const i=ro(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new VV(o.value.snapshot))}),n.children.length&&this.forwardEvent(new PV(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(Zh(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Zh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Rs(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class dE{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class sl{constructor(n,t){this.component=n,this.route=t}}function ej(e,n,t){const r=e._root;return Os(r,n?n._root:null,t,[r.value])}function oo(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function vS(e){return null!==ca(e)}(e)?n.get(e):e:r}function Os(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=ro(n);return e.children.forEach(s=>{(function nj(e,n,t,r,i={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 c=function rj(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Br(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Br(e.url,n.url)||!Dn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kh(e,n)||!Dn(e.queryParams,n.queryParams);default:return!Kh(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new dE(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Os(e,n,o.component?a?a.children:null:t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new sl(a.outlet.component,s))}else s&&ks(n,a,i),i.canActivateChecks.push(new dE(r)),Os(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ks(a,t.getContext(s),i)),i}function ks(e,n,t){const r=ro(e),i=e.value;Object.entries(r).forEach(([o,s])=>{ks(s,i.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new sl(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}function Fs(e){return"function"==typeof e}function fE(e){return e instanceof Gc||"EmptyError"===e?.name}const al=Symbol("INITIAL_VALUE");function so(){return cn(e=>qc(e.map(n=>n.pipe(Vr(1),AD(al)))).pipe(z(n=>{for(const t of n)if(!0!==t){if(t===al)return al;if(!1===t||t instanceof to)return t}return!0}),wn(n=>n!==al),Vr(1)))}function hE(e){return function EI(...e){return um(e)}(Pe(n=>{if(Ur(n))throw aE(0,n)}),z(n=>!0===n))}class cl{constructor(n){this.segmentGroup=n||null}}class pE{constructor(n){this.urlTree=n}}function ao(e){return Xi(new cl(e))}function mE(e){return Xi(new pE(e))}class Ej{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new b(4002,!1)}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return N(r);if(i.numberOfChildren>1||!i.children[$])return Xi(new b(4e3,!1));i=i.children[$]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new to(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([i,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new ie(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}const Xh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cj(e,n,t,r,i){const o=Jh(e,n,t);return o.matched?(r=function WV(e,n){return e.providers&&!e._injector&&(e._injector=xf(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function vj(e,n,t,r){const i=n.canMatch;return i&&0!==i.length?N(i.map(s=>{const a=oo(s,e);return cr(function lj(e){return e&&Fs(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(so(),hE()):N(!0)}(r,n,t).pipe(z(s=>!0===s?o:{...Xh}))):N(o)}function Jh(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Xh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const i=(n.matcher||nV)(t,e,n);if(!i)return{...Xh};const o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=i.consumed.length>0?{...o,...i.consumed[i.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function gE(e,n,t,r){return t.length>0&&function Sj(e,n,t){return t.some(r=>ll(e,n,r)&&nn(r)!==$)}(e,t,r)?{segmentGroup:new ie(n,Ij(r,new ie(t,e.children))),slicedSegments:[]}:0===t.length&&function xj(e,n,t){return t.some(r=>ll(e,n,r))}(e,t,r)?{segmentGroup:new ie(e.segments,Mj(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new ie(e.segments,e.children),slicedSegments:t}}function Mj(e,n,t,r,i){const o={};for(const s of r)if(ll(e,t,s)&&!i[nn(s)]){const a=new ie([],{});o[nn(s)]=a}return{...i,...o}}function Ij(e,n){const t={};t[$]=n;for(const r of e)if(""===r.path&&nn(r)!==$){const i=new ie([],{});t[nn(r)]=i}return t}function ll(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class Rj{constructor(n,t,r,i,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new Ej(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,!1)}recognize(){const n=gE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,$).pipe(ar(t=>{if(t instanceof pE)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof cl?this.noMatchError(t):t}),z(t=>{const r=new il([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$,this.rootComponentType,null,{}),i=new Un(r,t),o=new rE("",i),s=function DV(e,n,t=null,r=null){return qD(zD(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,$).pipe(ar(r=>{throw r instanceof cl?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=nE(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,i,!0)}processChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return Le(i).pipe(Ji(o=>{const s=r.children[o],a=function YV(e,n){const t=e.filter(r=>nn(r)===n);return t.push(...e.filter(r=>nn(r)!==n)),t}(t,o);return this.processSegmentGroup(n,a,s,o)}),function X2(e,n){return Te(function Y2(e,n,t,r,i){return(o,s)=>{let a=t,c=n,l=0;o.subscribe(Me(s,u=>{const d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}(e,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),Zc(null),function J2(e,n){const t=arguments.length>=2;return r=>r.pipe(e?wn((i,o)=>e(i,o,r)):Gn,Ph(1),t?Zc(n):ND(()=>new Gc))}(),Be(o=>{if(null===o)return ao(r);const s=_E(o);return function Oj(e){e.sort((n,t)=>n.value.outlet===$?-1:t.value.outlet===$?1:n.value.outlet.localeCompare(t.value.outlet))}(s),N(s)}))}processSegment(n,t,r,i,o,s){return Le(t).pipe(Ji(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,i,o,s).pipe(ar(c=>{if(c instanceof cl)return N(null);throw c}))),jr(a=>!!a),ar(a=>{if(fE(a))return function Aj(e,n,t){return 0===n.length&&!e.children[t]}(r,i,o)?N([]):ao(r);throw a}))}processSegmentAgainstRoute(n,t,r,i,o,s,a){return function Tj(e,n,t,r){return!!(nn(e)===r||r!==$&&ll(n,t,e))&&("**"===e.path||Jh(n,e,t).matched)}(r,i,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,i,r,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s):ao(i):ao(i)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?mE(o):this.applyRedirects.lineralizeSegments(r,o).pipe(Be(s=>{const a=new ie(s,{});return this.processSegment(n,t,a,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:c,remainingSegments:l,positionalParamSegments:u}=Jh(t,i,o);if(!a)return ao(t);const d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return i.redirectTo.startsWith("/")?mE(d):this.applyRedirects.lineralizeSegments(i,d).pipe(Be(f=>this.processSegment(n,r,t,f.concat(l),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o,s){let a;if("**"===r.path){const c=i.length>0?OD(i).parameters:{};a=N({snapshot:new il(i,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bE(r),nn(r),r.component??r._loadedComponent??null,r,yE(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=Cj(t,r,i,n).pipe(z(({matched:c,consumedSegments:l,remainingSegments:u,parameters:d})=>c?{snapshot:new il(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bE(r),nn(r),r.component??r._loadedComponent??null,r,yE(r)),consumedSegments:l,remainingSegments:u}:null));return a.pipe(cn(c=>null===c?ao(t):this.getChildConfig(n=r._injector??n,r,i).pipe(cn(({routes:l})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:f,remainingSegments:h}=c,{segmentGroup:p,slicedSegments:m}=gE(t,f,h,l);if(0===m.length&&p.hasChildren())return this.processChildren(u,l,p).pipe(z(y=>null===y?null:[new Un(d,y)]));if(0===l.length&&0===m.length)return N([new Un(d,[])]);const _=nn(r)===o;return this.processSegment(u,l,p,m,_?$:o,!0).pipe(z(y=>[new Un(d,y)]))}))))}getChildConfig(n,t,r){return t.children?N({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?N({routes:t._loadedRoutes,injector:t._loadedInjector}):function yj(e,n,t,r){const i=n.canLoad;return void 0===i||0===i.length?N(!0):N(i.map(s=>{const a=oo(s,e);return cr(function oj(e){return e&&Fs(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(so(),hE())}(n,t,r).pipe(Be(i=>i?this.configLoader.loadChildren(n,t).pipe(Pe(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function Dj(e){return Xi(cE(!1,3))}())):N({routes:[],injector:n})}}function kj(e){const n=e.value.routeConfig;return n&&""===n.path}function _E(e){const n=[],t=new Set;for(const r of e){if(!kj(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=_E(r.children);n.push(new Un(r.value,i))}return n.filter(r=>!t.has(r))}function bE(e){return e.data||{}}function yE(e){return e.resolve||{}}function vE(e){return"string"==typeof e.title||null===e.title}function ep(e){return cn(n=>{const t=e(n);return t?Le(t).pipe(z(()=>n)):N(n)})}const co=new E("ROUTES");let tp=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(Qw)}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 r=cr(t.loadComponent()).pipe(z(wE),Pe(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Kc(()=>{this.componentLoaders.delete(t)})),i=new TD(r,()=>new ut).pipe(Fh());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return N({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const o=function Uj(e,n,t,r){return cr(e.loadChildren()).pipe(z(wE),Be(i=>i instanceof Jv||Array.isArray(i)?N(i):Le(n.compileModuleAsync(i))),z(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,!0):(o=i.create(t).injector,s=o.get(co,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yh),injector:o}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Kc(()=>{this.childrenLoaders.delete(r)})),s=new TD(o,()=>new ut).pipe(Fh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wE(e){return function Hj(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ul=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ut,this.transitionAbortSubject=new ut,this.configLoader=I(tp),this.environmentInjector=I(jt),this.urlSerializer=I(Cs),this.rootContexts=I(As),this.inputBindingEnabled=null!==I(ol,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>N(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=i=>this.events.next(new kV(i)),this.configLoader.onLoadStartListener=i=>this.events.next(new OV(i))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,i){return this.transitions=new dt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xs,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(wn(o=>0!==o.id),z(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),cn(o=>{this.currentTransition=o;let s=!1,a=!1;return N(o).pipe(Pe(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),cn(c=>{const l=c.currentBrowserUrl.toString(),u=!t.navigated||c.extractedUrl.toString()!==l||l!==c.currentUrlTree.toString();if(!u&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new no(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),an}if(t.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return N(c).pipe(cn(f=>{const h=this.transitions?.getValue();return this.events.next(new nl(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?an:Promise.resolve(f)}),function Fj(e,n,t,r,i,o){return Be(s=>function Nj(e,n,t,r,i,o,s="emptyOnly"){return new Rj(e,n,t,r,i,s,o).recognize()}(e,n,t,r,s.extractedUrl,i,o).pipe(z(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Pe(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const h=new YD(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&t.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:_}=c,y=new nl(f,this.urlSerializer.serialize(h),p,m);this.events.next(y);const g=tE(0,this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:g,urlAfterRedirects:h,extras:{..._,skipLocationChange:!1,replaceUrl:!1}},N(o)}{const f="";return this.events.next(new no(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),an}}),Pe(c=>{const l=new TV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),z(c=>(this.currentTransition=o={...c,guards:ej(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function dj(e,n){return Be(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?N({...t,guardsResult:!0}):function fj(e,n,t,r){return Le(e).pipe(Be(i=>function bj(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?N(o.map(a=>{const c=Rs(n)??i,l=oo(a,c);return cr(function cj(e){return e&&Fs(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,r):c.runInContext(()=>l(e,n,t,r))).pipe(jr())})).pipe(so()):N(!0)}(i.component,i.route,t,n,r)),jr(i=>!0!==i,!0))}(s,r,i,e).pipe(Be(a=>a&&function ij(e){return"boolean"==typeof e}(a)?function hj(e,n,t,r){return Le(n).pipe(Ji(i=>Wc(function mj(e,n){return null!==e&&n&&n(new FV(e)),N(!0)}(i.route.parent,r),function pj(e,n){return null!==e&&n&&n(new LV(e)),N(!0)}(i.route,r),function _j(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function tj(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=>xD(()=>N(s.guards.map(c=>{const l=Rs(s.node)??t,u=oo(c,l);return cr(function aj(e){return e&&Fs(e.canActivateChild)}(u)?u.canActivateChild(r,e):l.runInContext(()=>u(r,e))).pipe(jr())})).pipe(so())));return N(o).pipe(so())}(e,i.path,t),function gj(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return N(!0);const i=r.map(o=>xD(()=>{const s=Rs(n)??t,a=oo(o,s);return cr(function sj(e){return e&&Fs(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(jr())}));return N(i).pipe(so())}(e,i.route,t))),jr(i=>!0!==i,!0))}(r,o,e,n):N(a)),z(a=>({...t,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Pe(c=>{if(o.guardsResult=c.guardsResult,Ur(c.guardsResult))throw aE(0,c.guardsResult);const l=new AV(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),wn(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",3),!1)),ep(c=>{if(c.guards.canActivateChecks.length)return N(c).pipe(Pe(l=>{const u=new NV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),cn(l=>{let u=!1;return N(l).pipe(function Pj(e,n){return Be(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return N(t);let o=0;return Le(i).pipe(Ji(s=>function Lj(e,n,t,r){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!vE(i)&&(o[Ds]=i.title),function Vj(e,n,t,r){const i=function jj(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return N({});const o={};return Le(i).pipe(Be(s=>function Bj(e,n,t,r){const i=Rs(n)??r,o=oo(e,i);return cr(o.resolve?o.resolve(n,t):i.runInContext(()=>o(n,t)))}(e[s],n,t,r).pipe(jr(),Pe(a=>{o[s]=a}))),Ph(1),function eV(e){return z(()=>e)}(o),ar(s=>fE(s)?an:Xi(s)))}(o,e,n,r).pipe(z(s=>(e._resolvedData=s,e.data=nE(e,t).resolve,i&&vE(i)&&(e.data[Ds]=i.title),null)))}(s.route,r,e,n)),Pe(()=>o++),Ph(1),Be(s=>o===i.length?N(t):an))})}(t.paramsInheritanceStrategy,this.environmentInjector),Pe({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",2)}}))}),Pe(l=>{const u=new RV(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),ep(c=>{const l=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Pe(f=>{u.component=f}),z(()=>{})));for(const f of u.children)d.push(...l(f));return d};return qc(l(c.targetSnapshot.root)).pipe(Zc(),Vr(1))}),ep(()=>this.afterPreactivation()),z(c=>{const l=function $V(e,n,t){const r=Ns(e,n._root,t?t._root:void 0);return new eE(r,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},o}),Pe(()=>{this.events.next(new $h)}),((e,n,t,r)=>z(i=>(new JV(n,i.targetRouterState,i.currentRouterState,t,r).activate(e),i)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Vr(1),Pe({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),t.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Lh(this.transitionAbortSubject.pipe(Pe(c=>{throw c}))),Kc(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),ar(c=>{if(a=!0,lE(c))this.events.next(new Ts(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function GV(e){return lE(e)&&Ur(e.url)}(c)?this.events.next(new zh(c.url)):o.resolve(!1);else{this.events.next(new rl(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(c))}catch(l){o.reject(l)}}return an}))}))}cancelNavigationTransition(t,r,i){const o=new Ts(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DE(e){return e!==xs}let EE=(()=>{class e{buildTitle(t){let r,i=t.root;for(;void 0!==i;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===$);return r}getResolvedTitleForRoute(t){return t.data[Ds]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I($j)},providedIn:"root"})}return e})(),$j=(()=>{class e extends EE{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(D(yD))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(Gj)},providedIn:"root"})}return e})();class qj{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let Gj=(()=>{class e extends qj{static#e=this.\u0275fac=function(){let t;return function(i){return(t||(t=function Ve(e){return xn(()=>{const n=e.prototype.constructor,t=n[Tn]||Wu(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[Tn]||Wu(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}(e)))(i||e)}}();static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dl=new E("",{providedIn:"root",factory:()=>({})});let Wj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:function(){return I(Zj)},providedIn:"root"})}return e})(),Zj=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ps=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ps||{});function CE(e,n){e.events.pipe(wn(t=>t instanceof lr||t instanceof Ts||t instanceof rl||t instanceof no),z(t=>t instanceof lr||t instanceof no?Ps.COMPLETE:t instanceof Ts&&(0===t.code||1===t.code)?Ps.REDIRECTING:Ps.FAILED),wn(t=>t!==Ps.REDIRECTING),Vr(1)).subscribe(()=>{n()})}function Kj(e){throw e}function Qj(e,n,t){return n.parse("/")}const Yj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Xj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=I(Zw),this.isNgZoneEnabled=!1,this._events=new ut,this.options=I(dl,{optional:!0})||{},this.pendingTasks=I(Kw),this.errorHandler=this.options.errorHandler||Kj,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Qj,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(Wj),this.routeReuseStrategy=I(zj),this.titleStrategy=I(EE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=I(co,{optional:!0})?.flat()??[],this.navigationTransitions=I(ul),this.urlSerializer=I(Cs),this.location=I(ch),this.componentInputBindingEnabled=!!I(ol,{optional:!0}),this.eventsSubscription=new lt,this.isNgZoneEnabled=I(X)instanceof X&&X.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new to,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=tE(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:i}=this.navigationTransitions;if(null===i)return void(ME(r)&&this._events.next(r));if(r instanceof nl)DE(i.source)&&(this.browserUrlTree=i.extractedUrl);else if(r instanceof no)this.rawUrlTree=i.rawUrl;else if(r instanceof YD){if("eager"===this.urlUpdateStrategy){if(!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl);this.setBrowserUrl(o,i)}this.browserUrlTree=i.urlAfterRedirects}}else if(r instanceof $h)this.currentUrlTree=i.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(i.urlAfterRedirects,i.rawUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i),this.browserUrlTree=i.urlAfterRedirects);else if(r instanceof Ts)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(i);else if(r instanceof zh){const o=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||DE(i.source)};this.scheduleNavigation(o,xs,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise})}r instanceof rl&&this.restoreHistory(i,!0),r instanceof lr&&(this.navigated=!0),ME(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),xs,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,i){const o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){const c={...i};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,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(Yh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{d=zD(i?i.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return qD(d,t,u,l??null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=Ur(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,xs,null,r)}navigate(t,r={skipLocationChange:!1}){return function Jj(e){for(let n=0;n{const o=t[i];return null!=o&&(r[i]=o),r},{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,c=f});const u=this.pendingTasks.add();return CE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(i,"",s)}else{const o={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(i,"",o)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ME(e){return!(e instanceof $h||e instanceof zh)}class IE{}let nB=(()=>{class e{constructor(t,r,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(wn(t=>t instanceof lr),Ji(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r){o.providers&&!o._injector&&(o._injector=xf(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)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Le(i).pipe(ei())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;i=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):N(null);const o=i.pipe(Be(s=>null===s?N(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?Le([o,this.loader.loadComponent(r)]).pipe(ei()):o})}static#e=this.\u0275fac=function(r){return new(r||e)(D(zt),D(Qw),D(jt),D(IE),D(tp))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const rp=new E("");let SE=(()=>{class e{constructor(t,r,i,o,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=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 nl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof lr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof no&&0===t.code&&(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 XD&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new XD(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function zd(){throw new Error("invalid")}()};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Hn(e,n){return{\u0275kind:e,\u0275providers:n}}function TE(){const e=I(_t);return n=>{const t=e.get(Fr);if(n!==t.components[0])return;const r=e.get(zt),i=e.get(AE);1===e.get(ip)&&r.initialNavigation(),e.get(NE,null,q.Optional)?.setUpPreloading(),e.get(rp,null,q.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const AE=new E("",{factory:()=>new ut}),ip=new E("",{providedIn:"root",factory:()=>1}),NE=new E("");function sB(e){return Hn(0,[{provide:NE,useExisting:nB},{provide:IE,useExisting:e}])}const RE=new E("ROUTER_FORROOT_GUARD"),cB=[ch,{provide:Cs,useClass:Vh},zt,As,{provide:io,useFactory:function xE(e){return e.routerState.root},deps:[zt]},tp,[]];function lB(){return new r0("Router",zt)}let OE=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[cB,[],{provide:co,multi:!0,useValue:t},{provide:RE,useFactory:hB,deps:[[zt,new Mr,new jo]]},{provide:dl,useValue:r||{}},r?.useHash?{provide:Lr,useClass:wP}:{provide:Lr,useClass:k0},{provide:rp,useFactory:()=>{const e=I(BL),n=I(X),t=I(dl),r=I(ul),i=I(Cs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new SE(i,r,e,n,t)}},r?.preloadingStrategy?sB(r.preloadingStrategy).\u0275providers:[],{provide:r0,multi:!0,useFactory:lB},r?.initialNavigation?pB(r):[],r?.bindToComponentInputs?Hn(8,[sE,{provide:ol,useExisting:sE}]).\u0275providers:[],[{provide:kE,useFactory:TE},{provide:Xf,multi:!0,useExisting:kE}]]}}static forChild(t){return{ngModule:e,providers:[{provide:co,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(D(RE,8))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();function hB(e){return"guarded"}function pB(e){return["disabled"===e.initialNavigation?Hn(3,[{provide:zf,multi:!0,useFactory:()=>{const n=I(zt);return()=>{n.setUpLocationChangeListener()}}},{provide:ip,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Hn(2,[{provide:ip,useValue:0},{provide:zf,multi:!0,deps:[_t],useFactory:n=>{const t=n.get(yP,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const i=n.get(zt),o=n.get(AE);CE(i,()=>{r(!0)}),n.get(ul).afterPreactivation=()=>(r(!0),o.closed?N(void 0):o),i.initialNavigation()}))}}]).\u0275providers:[]]}const kE=new E(""),gB=[];let _B=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[OE.forRoot(gB),OE]})}return e})();const bB=new E("DARK_MODE_OPTIONS"),yB={darkModeClass:"dark-mode",lightModeClass:"light-mode",preloadingClass:"dark-mode-preloading",storageKey:"dark-mode",element:document.body};let DB=(()=>{class e{matchMedia(t){return window.matchMedia(t)}prefersDarkMode(){return this.matchMedia("(prefers-color-scheme: dark)").matches}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),EB=(()=>{class e{constructor(t,r,i){this.rendererFactory=t,this.mediaQueryService=r,this.providedOptions=i,this.options={...yB,...this.providedOptions||{}},this.renderer=this.rendererFactory.createRenderer(null,null),this.darkModeSubject$=new dt(this.getInitialDarkModeValue()),this.darkModeSubject$.getValue()?this.enable():this.disable(),this.removePreloadingClass()}get darkMode$(){return this.darkModeSubject$.asObservable().pipe(cu())}toggle(){this.darkModeSubject$.getValue()?this.disable():this.enable()}enable(){const{element:t,darkModeClass:r,lightModeClass:i}=this.options;this.renderer.removeClass(t,i),this.renderer.addClass(t,r),this.saveDarkModeToStorage(!0),this.darkModeSubject$.next(!0)}disable(){const{element:t,darkModeClass:r,lightModeClass:i}=this.options;this.renderer.removeClass(t,r),this.renderer.addClass(t,i),this.saveDarkModeToStorage(!1),this.darkModeSubject$.next(!1)}getInitialDarkModeValue(){const t=this.getDarkModeFromStorage();return function vB(e){return null==e}(t)?this.mediaQueryService.prefersDarkMode():t}saveDarkModeToStorage(t){localStorage.setItem(this.options.storageKey,JSON.stringify({darkMode:t}))}getDarkModeFromStorage(){const t=localStorage.getItem(this.options.storageKey);if(t)try{return JSON.parse(t)?.darkMode}catch{console.error("Invalid darkMode localStorage item:",t,"falling back to color scheme media query")}return null}removePreloadingClass(){setTimeout(()=>{this.renderer.removeClass(this.options.element,this.options.preloadingClass)})}}return e.\u0275fac=function(t){return new(t||e)(D(Ni),D(DB),D(bB,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ge=new E("NgValidators"),dr=new E("NgAsyncValidators");function WE(e){return null!=e}function ZE(e){return os(e)?Le(e):e}function KE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function QE(e,n){return n.map(t=>t(e))}function YE(e){return e.map(n=>function TB(e){return!e.validate}(n)?n:t=>n.validate(t))}function sp(e){return null!=e?function XE(e){if(!e)return null;const n=e.filter(WE);return 0==n.length?null:function(t){return KE(QE(t,n))}}(YE(e)):null}function JE(e){if(!e)return null;const n=e.filter(WE);return 0==n.length?null:function(t){return function FE(...e){const n=xm(e),{args:t,keys:r}=CD(e),i=new Ce(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?ID(r,a):a),o.complete())}))}});return n?i.pipe(MD(n)):i}(QE(t,n).map(ZE)).pipe(z(KE))}}function ap(e){return null!=e?JE(YE(e)):null}function eC(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function cp(e){return e?Array.isArray(e)?e:[e]:[]}function hl(e,n){return Array.isArray(e)?e.includes(n):e===n}function rC(e,n){const t=cp(n);return cp(e).forEach(i=>{hl(t,i)||t.push(i)}),t}function iC(e,n){return cp(n).filter(t=>!hl(e,t))}class oC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=sp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ap(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class ct extends oC{get formDirective(){return null}get path(){return null}}class sC{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let aC=(()=>{class e extends sC{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(w(ct,10))};static#t=this.\u0275dir=O({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&rr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[J]})}return e})();const Ls="VALID",ml="INVALID",lo="PENDING",Vs="DISABLED";function gl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class dC{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Ls}get invalid(){return this.status===ml}get pending(){return this.status==lo}get disabled(){return this.status===Vs}get enabled(){return this.status!==Vs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(rC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(rC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(iC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(iC(n,this._rawAsyncValidators))}hasValidator(n){return hl(this._rawValidators,n)}hasAsyncValidator(n){return hl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=lo,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Vs,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ls,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ls||this.status===lo)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vs:Ls}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=lo,this._hasOwnPendingAsyncValidator=!0;const t=ZE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?Vs:this.errors?ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lo)?lo:this._anyControlsHaveStatus(ml)?ml:Ls}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){gl(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function kB(e){return Array.isArray(e)?sp(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function FB(e){return Array.isArray(e)?ap(e):e||null}(this._rawAsyncValidators)}}class hp extends dC{constructor(n,t,r){super(function dp(e){return(gl(e)?e.validators:e)||null}(t),function fp(e,n){return(gl(n)?n.asyncValidators:e)||null}(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function uC(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new b(1002,"")})})(this,0,n),Object.keys(n).forEach(r=>{(function lC(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new b(1e3,"");if(!r[t])throw new b(1001,"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,o)=>{r=t(r,i,o)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const uo=new E("CallSetDisabledState",{providedIn:"root",factory:()=>_l}),_l="always";function vl(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function pp(e,n){const t=function tC(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(eC(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=function nC(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(eC(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();vl(n._rawValidators,i),vl(n._rawAsyncValidators,i)}function fC(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const qB={provide:ct,useExisting:se(()=>Dl)},Bs=(()=>Promise.resolve())();let Dl=(()=>{class e extends ct{constructor(t,r,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new _e,this.form=new hp({},sp(t),ap(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Bs.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),function js(e,n,t=_l){pp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function VB(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&fC(e,n)})}(e,n),function BB(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function jB(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&fC(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function LB(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Bs.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Bs.then(()=>{const r=this._findContainer(t.path),i=new hp({});(function hC(e,n){pp(e,n)})(i,t),r.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Bs.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Bs.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,function pC(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#e=this.\u0275fac=function(r){return new(r||e)(w(Ge,10),w(dr,10),w(uo,8))};static#t=this.\u0275dir=O({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){1&r&&it("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[fe([qB]),J]})}return e})(),DC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=O({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})(),CC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})(),bU=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[CC]})}return e})(),vU=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:uo,useValue:t.callSetDisabledState??_l}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[bU]})}return e})();const wU=function(e,n){return{"navbar-dark bg-dark":e,"navbar-light bg-light":n}};let DU=(()=>{class e{constructor(t){this.darkModeService=t,this.darkMode$=this.darkModeService.darkMode$}onToggle(){this.darkModeService.toggle()}isDark(){const t=localStorage.getItem("dark-mode");return!!t&&!!JSON.parse(t).darkMode}static#e=this.\u0275fac=function(r){return new(r||e)(w(EB))};static#t=this.\u0275cmp=ni({type:e,selectors:[["app-topbar"]],decls:41,vars:7,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-dark",3,"ngClass"],[1,"container-fluid"],["href","#",1,"navbar-brand"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","me-auto","mb-2","mb-lg-0"],[1,"nav-item"],["aria-current","page","href","#",1,"nav-link","active"],["href","#",1,"nav-link"],[1,"nav-item","dropdown"],["href","#","id","navbarDropdown","role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","navbarDropdown",1,"dropdown-menu"],["href","#",1,"dropdown-item"],[1,"dropdown-divider"],["href","#","tabindex","-1","aria-disabled","true",1,"nav-link","disabled"],[1,"mx-2"],[1,"switch"],["type","checkbox",3,"checked","change"],[1,"slider","round"],[1,"d-flex"],["type","search","placeholder","Search","aria-label","Search",1,"form-control","me-2"],["type","submit",1,"btn","btn-outline-success"]],template:function(r,i){1&r&&(me(0,"nav",0)(1,"div",1)(2,"a",2),Ut(3,"Navbar"),be(),me(4,"button",3),bt(5,"span",4),be(),me(6,"div",5)(7,"ul",6)(8,"li",7)(9,"a",8),Ut(10,"Home"),be()(),me(11,"li",7)(12,"a",9),Ut(13,"Link"),be()(),me(14,"li",10)(15,"a",11),Ut(16," Dropdown "),be(),me(17,"ul",12)(18,"li")(19,"a",13),Ut(20,"Action"),be()(),me(21,"li")(22,"a",13),Ut(23,"Another action"),be()(),me(24,"li"),bt(25,"hr",14),be(),me(26,"li")(27,"a",13),Ut(28,"Something else here"),be()()()(),me(29,"li",7)(30,"a",15),Ut(31,"Disabled"),be()()(),me(32,"div",16)(33,"label",17)(34,"input",18),it("change",function(){return i.onToggle()}),function pw(e,n){const t=K();let r;const i=e+G;t.firstCreatePass?(r=function pk(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const o=r.factory||(r.factory=Dr(r.type)),a=ft(w);try{const c=Ma(!1),l=o();return Ma(c),function WR(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,v(),i,l),l}finally{ft(a)}}(35,"async"),be(),bt(36,"span",19),be()(),me(37,"form",20),bt(38,"input",21),me(39,"button",22),Ut(40,"Search"),be()()()()()),2&r&&(tr("ngClass",cw(4,wU,i.isDark(),!i.isDark())),function ki(e){Pb(K(),v(),nt()+e,!1)}(34),tr("checked",!mw(35,2,i.darkMode$)))},dependencies:[q0,DC,aC,Dl,Y0],styles:['.example-icon[_ngcontent-%COMP%]{padding:0 14px}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:60px;height:34px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;transition:.4s;border:2px solid white}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#74bffd}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(26px);border-radius:50px;height:75%;background-color:#ff0;box-shadow:#0000009a .5px 1px 20px 1px;margin-right:20px}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{width:43%;height:43%;border-top-right-radius:50px;border-top-left-radius:50px;transform:rotate(-135deg)}']})}return e})(),EU=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ni({type:e,selectors:[["app-layout"]],decls:1,vars:0,template:function(r,i){1&r&&bt(0,"app-topbar")},dependencies:[DU]})}return e})(),CU=(()=>{class e{constructor(){this.title="your-angular-app"}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=ni({type:e,selectors:[["app-root"]],decls:5,vars:0,consts:[[1,""],[1,"card"]],template:function(r,i){1&r&&(bt(0,"app-layout"),me(1,"div",0),Ut(2,"This is the dummy text for testing "),be(),me(3,"div",1),Ut(4," dfsfsdf"),be())},dependencies:[EU],styles:[".card[_ngcontent-%COMP%]{color:inherit;background-color:inherit}"]})}return e})();class UC{}class MU{}const $n="*";function HC(e,n=null){return{type:2,steps:e,options:n}}function $C(e){return{type:6,styles:e,offset:null}}class Us{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(r=>r()),t.length=0}}class zC{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,r=0,i=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==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(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r: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(r=>r()),t.length=0}}function qC(e){return new b(3e3,!1)}function hr(e){switch(e.length){case 0:return new Us;case 1:return e[0];default:return new zC(e)}}function GC(e,n,t=new Map,r=new Map){const i=[],o=[];let s=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),m){case"!":m=t.get(h);break;case $n:m=r.get(h);break;default:m=e.normalizeStyleValue(h,p,m,i)}d.set(p,m)}),u||o.push(d),a=d,s=l}),i.length)throw function ZU(e){return new b(3502,!1)}();return o}function Ip(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&Sp(t,"start",e)));break;case"done":e.onDone(()=>r(t&&Sp(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&Sp(t,"destroy",e)))}}function Sp(e,n,t){const o=xp(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 xp(e,n,t,r,i="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function At(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function WC(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const sH=(()=>typeof document>"u"?null:document.documentElement)();function Tp(e){const n=e.parentNode||e.host||null;return n===sH?null:n}let zr=null,ZC=!1;function KC(e,n){for(;n;){if(n===e)return!0;n=Tp(n)}return!1}function QC(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let YC=(()=>{class e{validateStyleProperty(t){return function cH(e){zr||(zr=function lH(){return typeof document<"u"?document.body:null}()||{},ZC=!!zr.style&&"WebkitAppearance"in zr.style);let n=!0;return zr.style&&!function aH(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in zr.style,!n&&ZC&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in zr.style)),n}(t)}matchesElement(t,r){return!1}containsElement(t,r){return KC(t,r)}getParentElement(t){return Tp(t)}query(t,r,i){return QC(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,a=[],c){return new Us(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ap=(()=>{class e{static#e=this.NOOP=new YC}return e})();const uH=1e3,Np="ng-enter",El="ng-leave",Cl="ng-trigger",Ml=".ng-trigger",JC="ng-animating",Rp=".ng-animating";function zn(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Op(parseFloat(n[1]),n[2])}function Op(e,n){return"s"===n?e*uH:e}function Il(e,n,t){return e.hasOwnProperty("duration")?e:function fH(e,n,t){let i,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(qC()),{duration:0,delay:0,easing:""};i=Op(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=Op(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else i=e;if(!t){let a=!1,c=n.length;i<0&&(n.push(function IU(){return new b(3100,!1)}()),a=!0),o<0&&(n.push(function SU(){return new b(3101,!1)}()),a=!0),a&&n.splice(c,0,qC())}return{duration:i,delay:o,easing:s}}(e,n,t)}function Hs(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function eM(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function pr(e,n=new Map,t){if(t)for(let[r,i]of t)n.set(r,i);for(let[r,i]of e)n.set(r,i);return n}function Cn(e,n,t){n.forEach((r,i)=>{const o=Fp(i);t&&!t.has(i)&&t.set(i,e.style[o]),e.style[o]=r})}function qr(e,n){n.forEach((t,r)=>{const i=Fp(r);e.style[i]=""})}function $s(e){return Array.isArray(e)?1==e.length?e[0]:HC(e):e}const kp=new RegExp("{{\\s*(.+?)\\s*}}","g");function nM(e){let n=[];if("string"==typeof e){let t;for(;t=kp.exec(e);)n.push(t[1]);kp.lastIndex=0}return n}function zs(e,n,t){const r=e.toString(),i=r.replace(kp,(o,s)=>{let a=n[s];return null==a&&(t.push(function TU(e){return new b(3003,!1)}()),a=""),a.toString()});return i==r?e:i}function Sl(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const mH=/-+([a-z0-9])/g;function Fp(e){return e.replace(mH,(...n)=>n[1].toUpperCase())}function Nt(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function AU(e){return new b(3004,!1)}()}}function rM(e,n){return window.getComputedStyle(e)[n]}const xl="*";function bH(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function yH(e,n,t){if(":"==e[0]){const c=function vH(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function $U(e){return new b(3015,!1)}()),n;const i=r[1],o=r[2],s=r[3];n.push(iM(i,s));"<"==o[0]&&!(i==xl&&s==xl)&&n.push(iM(s,i))}(r,t,n)):t.push(e),t}const Tl=new Set(["true","1"]),Al=new Set(["false","0"]);function iM(e,n){const t=Tl.has(e)||Al.has(e),r=Tl.has(n)||Al.has(n);return(i,o)=>{let s=e==xl||e==i,a=n==xl||n==o;return!s&&t&&"boolean"==typeof i&&(s=i?Tl.has(e):Al.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?Tl.has(n):Al.has(n)),s&&a}}const wH=new RegExp("s*:selfs*,?","g");function Pp(e,n,t,r){return new DH(e).build(n,t,r)}class DH{constructor(n){this._driver=n}build(n,t,r){const i=new MH(t);return this._resetContextStyleTimingState(i),Nt(this,$s(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function RU(){return new b(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,t))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,t);r+=c.queryCount,i+=c.depCount,s.push(c)}else t.errors.push(function OU(){return new b(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{nM(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&(Sl(o.values()),t.errors.push(function kU(e,n){return new b(3008,!1)}()))}return{type:0,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Nt(this,$s(n.animation),t);return{type:1,matchers:bH(n.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Gr(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(r=>Nt(this,r,t)),options:Gr(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const o=n.steps.map(s=>{t.currentTime=r;const a=Nt(this,s,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:o,options:Gr(n.options)}}visitAnimate(n,t){const r=function SH(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Lp(Il(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Lp(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=Il(t,n);return Lp(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,o=n.styles?n.styles:$C({});if(5==o.type)i=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const l={};r.easing&&(l.easing=r.easing),s=$C(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===$n?r.push(a):t.errors.push(new b(3002,!1)):r.push(eM(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),u=l.get(c);let d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(t.errors.push(function PU(e,n,t,r,i){return new b(3010,!1)}()),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:i}),t.options&&function pH(e,n,t){const r=n.params||{},i=nM(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function xU(e){return new b(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function LU(){return new b(3011,!1)}()),r;let o=0;const s=[];let a=!1,c=!1,l=0;const u=n.steps.map(y=>{const g=this._makeStyleAst(y,t);let M=null!=g.offset?g.offset:function IH(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 r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(g.styles),S=0;return null!=M&&(o++,S=g.offset=M),c=c||S<0||S>1,a=a||S0&&o{const M=f>0?g==h?1:f*g:s[g],S=M*_;t.currentTime=p+m.delay+S,m.duration=S,this._validateStyleAst(y,t),y.offset=M,r.styles.push(y)}),r}visitReference(n,t){return{type:8,animation:Nt(this,$s(n.animation),t),options:Gr(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:Gr(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:Gr(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function EH(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(wH,"")),e=e.replace(/@\*/g,Ml).replace(/@\w+/g,t=>Ml+"-"+t.slice(1)).replace(/:animating/g,Rp),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+o:o,At(t.collectedStyles,t.currentQuerySelector,new Map);const a=Nt(this,$s(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Gr(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function UU(){return new b(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Il(n.timings,t.errors,!0);return{type:12,animation:Nt(this,$s(n.animation),t),timings:r,options:null}}}class MH{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 Gr(e){return e?(e=Hs(e)).params&&(e.params=function CH(e){return e?Hs(e):null}(e.params)):e={},e}function Lp(e,n,t){return{duration:e,delay:n,easing:t}}function Vp(e,n,t,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Nl{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const AH=new RegExp(":enter","g"),RH=new RegExp(":leave","g");function jp(e,n,t,r,i,o=new Map,s=new Map,a,c,l=[]){return(new OH).buildKeyframes(e,n,t,r,i,o,s,a,c,l)}class OH{buildKeyframes(n,t,r,i,o,s,a,c,l,u=[]){l=l||new Nl;const d=new Bp(n,t,l,i,o,u,[]);d.options=c;const f=c.delay?zn(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),Nt(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const _=h[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return h.length?h.map(p=>p.buildKeyframes()):[Vp(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const o=i?.delay;if(o){const s="number"==typeof o?o:zn(zs(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?zn(r.duration):null,a=null!=r.delay?zn(r.delay):null;return 0!==s&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Nt(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const o=n.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Rl);const s=zn(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Nt(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?zn(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Nt(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return Il(t.params?zs(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+o),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},o=i.delay?zn(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Rl);let s=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,l);o&&d.delayNextStep(o),l===t.element&&(c=d.currentTimeline),Nt(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Nt(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Rl={};class Bp{constructor(n,t,r,i,o,s,a,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Ol(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=zn(r.duration)),null!=r.delay&&(i.delay=zn(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=zs(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,o=new Bp(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||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=Rl,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},o=new kH(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,o,s){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(AH,"."+this._enterClassName)).replace(RH,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!o&&0==a.length&&s.push(function HU(e){return new b(3014,!1)}()),a}}class Ol{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,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 Ol(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,r]of this._globalTimelineStyles)this._backFill.set(t,r||$n),this._currentKeyframe.set(t,$n);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function FH(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r=r||n.keys();for(let o of r)t.set(o,$n)}else pr(i,t)}),t}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=zs(c,o,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??$n),this._updateStyle(a,l)}}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,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,c)=>{const l=pr(a,new Map,this._backFill);l.forEach((u,d)=>{"!"===u?n.add(d):u===$n&&t.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});const o=n.size?Sl(n.values()):[],s=t.size?Sl(t.values()):[];if(r){const a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return Vp(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class kH extends Ol{constructor(n,t,r,i,o,s,a=!1){super(n,t,s.delay),this.keyframes=r,this.preStyleProps=i,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:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=r+t,a=t/s,c=pr(n[0]);c.set("offset",0),o.push(c);const l=pr(n[0]);l.set("offset",aM(a)),o.push(l);const u=n.length-1;for(let d=1;d<=u;d++){let f=pr(n[d]);const h=f.get("offset");f.set("offset",aM((t+h*r)/s)),o.push(f)}r=s,t=0,i="",n=o}return Vp(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function aM(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class Up{}const PH=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 LH extends Up{normalizePropertyName(n,t){return Fp(n)}normalizeStyleValue(n,t,r,i){let o="";const s=r.toString().trim();if(PH.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function NU(e,n){return new b(3005,!1)}())}return s+o}}function cM(e,n,t,r,i,o,s,a,c,l,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:f}}const Hp={};class lM{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function VH(e,n,t,r,i){return e.some(o=>o(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,o,s,a,c,l,u){const d=[],f=this.ast.options&&this.ast.options.params||Hp,p=this.buildStyles(r,a&&a.params||Hp,d),m=c&&c.params||Hp,_=this.buildStyles(i,m,d),y=new Set,g=new Map,M=new Map,S="void"===i,B={params:jH(m,f),delay:this.ast.options?.delay},ae=u?[]:jp(n,t,this.ast.animation,o,s,p,_,B,l,d);let pe=0;if(ae.forEach(Rt=>{pe=Math.max(Rt.duration+Rt.delay,pe)}),d.length)return cM(t,this._triggerName,r,i,S,p,_,[],[],g,M,pe,d);ae.forEach(Rt=>{const sn=Rt.element,Wl=At(g,sn,new Set);Rt.preStyleProps.forEach(Yr=>Wl.add(Yr));const ta=At(M,sn,new Set);Rt.postStyleProps.forEach(Yr=>ta.add(Yr)),sn!==t&&y.add(sn)});const We=Sl(y.values());return cM(t,this._triggerName,r,i,S,p,_,ae,We,g,M,pe)}}function jH(e,n){const t=Hs(n);for(const r in e)e.hasOwnProperty(r)&&null!=e[r]&&(t[r]=e[r]);return t}class BH{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=Hs(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(i[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=zs(s,i,t));const c=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,c,s,t),r.set(a,s)})}),r}}class HH{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new BH(i.style,i.options&&i.options.params||{},r))}),uM(this.states,"true","1"),uM(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new lM(n,i,this.states))}),this.fallbackTransition=function $H(e,n,t){return new lM(e,{type:1,animation:{type:2,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,r,i){return this.transitionFactories.find(s=>s.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function uM(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 zH=new Nl;class qH{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],o=Pp(this._driver,t,r,[]);if(r.length)throw function KU(e){return new b(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,r){const i=n.element,o=GC(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=jp(this._driver,t,o,Np,El,new Map,new Map,r,zH,i),s.forEach(u=>{const d=At(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function QU(){return new b(3300,!1)}()),s=[]),i.length)throw function YU(e){return new b(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,$n))})});const l=hr(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function XU(e){return new b(3301,!1)}();return t}listen(n,t,r,i){const o=xp(t,"","","");return Ip(this._getPlayer(n),r,o,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const o=this._getPlayer(n);switch(r){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(i[0]));break;case"destroy":this.destroy(n)}}}const dM="ng-animate-queued",$p="ng-animate-disabled",QH=[],fM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},YH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},on="__ng_removed";class zp{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function t$(e){return e??null}(r?n.value:n),r){const o=Hs(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const qs="void",qp=new zp(qs);class XH{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,qt(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function JU(e,n){return new b(3302,!1)}();if(null==r||0==r.length)throw function eH(e){return new b(3303,!1)}();if(!function n$(e){return"start"==e||"done"==e}(r))throw function tH(e,n){return new b(3400,!1)}();const o=At(this._elementListeners,n,[]),s={name:t,phase:r,callback:i};o.push(s);const a=At(this._engine.statesByElement,n,new Map);return a.has(t)||(qt(n,Cl),qt(n,Cl+"-"+t),a.set(t,qp)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,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 nH(e){return new b(3401,!1)}();return t}trigger(n,t,r,i=!0){const o=this._getTrigger(t),s=new Gp(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(qt(n,Cl),qt(n,Cl+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t);const l=new zp(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=qp),l.value!==qs&&c.value===l.value){if(!function o$(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i{qr(n,_),Cn(n,y)})}return}const f=At(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=o.matchTransition(c.value,l.value,n,l.params),p=!1;if(!h){if(!i)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:p}),p||(qt(n,dM),s.onStart(()=>{fo(n,dM)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(n);if(_){let y=_.indexOf(s);y>=0&&_.splice(y,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,Ml,!0);r.forEach(i=>{if(i[on])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const u=this.trigger(n,l,qs,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),r&&hr(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(o=>{const s=o.name;if(i.has(s))return;i.add(s);const c=this._triggers.get(s).fallbackTransition,l=r.get(s)||qp,u=new zp(qs),d=new Gp(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const o=n[on];(!o||o===fM)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){qt(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){const c=xp(o,r.triggerName,r.fromState.value,r.toState.value);c._data=n,Ip(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class JH{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,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=(i,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new XH(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const c=i.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(n,t,r,i){if(kl(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!kl(t))return;const o=t[on];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,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),qt(n,$p)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),fo(n,$p))}removeNode(n,t,r){if(kl(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,o){this.collectedLeaveElements.push(t),t[on]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,r,i,o){return kl(t)?this._fetchNamespace(n).listen(t,r,i,o):()=>{}}_buildInstruction(n,t,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Ml,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Rp,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return hr(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[on];if(t&&t.setForRemoval){if(n[on]=fM,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains($p)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?hr(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function rH(e){return new b(3402,!1)}()}_flushAnimations(n,t){const r=new Nl,i=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);const R=this.driver.query(T,".ng-animate-queued",!0);for(let k=0;k{const k=Np+m++;p.set(R,k),T.forEach(Q=>qt(Q,k))});const _=[],y=new Set,g=new Set;for(let T=0;Ty.add(Q)):g.add(R))}const M=new Map,S=mM(f,Array.from(y));S.forEach((T,R)=>{const k=El+m++;M.set(R,k),T.forEach(Q=>qt(Q,k))}),n.push(()=>{h.forEach((T,R)=>{const k=p.get(R);T.forEach(Q=>fo(Q,k))}),S.forEach((T,R)=>{const k=M.get(R);T.forEach(Q=>fo(Q,k))}),_.forEach(T=>{this.processLeaveNode(T)})});const B=[],ae=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(k=>{const Q=k.player,je=k.element;if(B.push(Q),this.collectedEnterElements.length){const Xe=je[on];if(Xe&&Xe.setForMove){if(Xe.previousTriggersValues&&Xe.previousTriggersValues.has(k.triggerName)){const Xr=Xe.previousTriggersValues.get(k.triggerName),Gt=this.statesByElement.get(k.element);if(Gt&&Gt.has(k.triggerName)){const Zl=Gt.get(k.triggerName);Zl.value=Xr,Gt.set(k.triggerName,Zl)}}return void Q.destroy()}}const In=!d||!this.driver.containsElement(d,je),Ot=M.get(je),_r=p.get(je),we=this._buildInstruction(k,r,_r,Ot,In);if(we.errors&&we.errors.length)return void ae.push(we);if(In)return Q.onStart(()=>qr(je,we.fromStyles)),Q.onDestroy(()=>Cn(je,we.toStyles)),void i.push(Q);if(k.isFallbackTransition)return Q.onStart(()=>qr(je,we.fromStyles)),Q.onDestroy(()=>Cn(je,we.toStyles)),void i.push(Q);const pI=[];we.timelines.forEach(Xe=>{Xe.stretchStartingKeyframe=!0,this.disabledNodes.has(Xe.element)||pI.push(Xe)}),we.timelines=pI,r.append(je,we.timelines),s.push({instruction:we,player:Q,element:je}),we.queriedElements.forEach(Xe=>At(a,Xe,[]).push(Q)),we.preStyleProps.forEach((Xe,Xr)=>{if(Xe.size){let Gt=c.get(Xr);Gt||c.set(Xr,Gt=new Set),Xe.forEach((Zl,om)=>Gt.add(om))}}),we.postStyleProps.forEach((Xe,Xr)=>{let Gt=l.get(Xr);Gt||l.set(Xr,Gt=new Set),Xe.forEach((Zl,om)=>Gt.add(om))})});if(ae.length){const T=[];ae.forEach(R=>{T.push(function iH(e,n){return new b(3505,!1)}())}),B.forEach(R=>R.destroy()),this.reportError(T)}const pe=new Map,We=new Map;s.forEach(T=>{const R=T.element;r.has(R)&&(We.set(R,R),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,pe))}),i.forEach(T=>{const R=T.element;this._getPreviousPlayers(R,!1,T.namespaceId,T.triggerName,null).forEach(Q=>{At(pe,R,[]).push(Q),Q.destroy()})});const Rt=_.filter(T=>_M(T,c,l)),sn=new Map;pM(sn,this.driver,g,l,$n).forEach(T=>{_M(T,c,l)&&Rt.push(T)});const ta=new Map;h.forEach((T,R)=>{pM(ta,this.driver,new Set(T),c,"!")}),Rt.forEach(T=>{const R=sn.get(T),k=ta.get(T);sn.set(T,new Map([...R?.entries()??[],...k?.entries()??[]]))});const Yr=[],fI=[],hI={};s.forEach(T=>{const{element:R,player:k,instruction:Q}=T;if(r.has(R)){if(u.has(R))return k.onDestroy(()=>Cn(R,Q.toStyles)),k.disabled=!0,k.overrideTotalTime(Q.totalTime),void i.push(k);let je=hI;if(We.size>1){let Ot=R;const _r=[];for(;Ot=Ot.parentNode;){const we=We.get(Ot);if(we){je=we;break}_r.push(Ot)}_r.forEach(we=>We.set(we,je))}const In=this._buildAnimation(k.namespaceId,Q,pe,o,ta,sn);if(k.setRealPlayer(In),je===hI)Yr.push(k);else{const Ot=this.playersByElement.get(je);Ot&&Ot.length&&(k.parentPlayer=hr(Ot)),i.push(k)}}else qr(R,Q.fromStyles),k.onDestroy(()=>Cn(R,Q.toStyles)),fI.push(k),u.has(R)&&i.push(k)}),fI.forEach(T=>{const R=o.get(T.element);if(R&&R.length){const k=hr(R);T.setRealPlayer(k)}}),i.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T<_.length;T++){const R=_[T],k=R[on];if(fo(R,El),k&&k.hasAnimation)continue;let Q=[];if(a.size){let In=a.get(R);In&&In.length&&Q.push(...In);let Ot=this.driver.query(R,Rp,!0);for(let _r=0;_r!In.destroyed);je.length?r$(this,R,je):this.processLeaveNode(R)}return _.length=0,Yr.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();const R=this.players.indexOf(T);this.players.splice(R,1)}),T.play()}),Yr}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const c=!o||o==qs;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||s.push(l)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(n,t,r){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==o,d=At(r,l,[]);this._getPreviousPlayers(l,u,s,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}qr(o,t.fromStyles)}_buildAnimation(n,t,r,i,o,s){const a=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const _=m[on];if(_&&_.removedBeforeQueried)return new Us(p.duration,p.delay);const y=m!==c,g=function i$(e){const n=[];return gM(e,n),n}((r.get(m)||QH).map(pe=>pe.getRealPlayer())).filter(pe=>!!pe.element&&pe.element===m),M=o.get(m),S=s.get(m),B=GC(this._normalizer,p.keyframes,M,S),ae=this._buildPlayer(p,B,g);if(p.subTimeline&&i&&d.add(m),y){const pe=new Gp(n,a,m);pe.setRealPlayer(ae),l.push(pe)}return ae});l.forEach(p=>{At(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function e$(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>qt(p,JC));const h=hr(f);return h.onDestroy(()=>{u.forEach(p=>fo(p,JC)),Cn(c,t.toStyles)}),d.forEach(p=>{At(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new Us(n.duration,n.delay)}}class Gp{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new Us,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,r)=>{t.forEach(i=>Ip(n,r,void 0,i))}),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){At(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 kl(e){return e&&1===e.nodeType}function hM(e,n){const t=e.style.display;return e.style.display=n??"none",t}function pM(e,n,t,r,i){const o=[];t.forEach(c=>o.push(hM(c)));const s=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const f=n.computeStyle(l,d,i);u.set(d,f),(!f||0==f.length)&&(l[on]=YH,s.push(l))}),e.set(l,u)});let a=0;return t.forEach(c=>hM(c,o[a++])),s}function mM(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:i.has(l)?1:s(l),o.set(a,c),c}return n.forEach(a=>{const c=s(a);1!==c&&t.get(c).push(a)}),t}function qt(e,n){e.classList?.add(n)}function fo(e,n){e.classList?.remove(n)}function r$(e,n,t){hr(t).onDone(()=>e.processLeaveNode(n))}function gM(e,n){for(let t=0;ti.add(o)):n.set(e,r),t.delete(e),!0}class Fl{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new JH(n,t,r),this._timelineEngine=new qH(n,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,t,r,i,o){const s=n+"-"+i;let a=this._triggerCache[s];if(!a){const c=[],u=Pp(this._driver,o,c,[]);if(c.length)throw function WU(e,n){return new b(3404,!1)}();a=function UH(e,n,t){return new HH(e,n,t)}(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[o,s]=WC(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,o){if("@"==r.charAt(0)){const[s,a]=WC(r);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,r,i,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)}}let a$=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(t,r,i){this._element=t,this._startStyles=r,this._endStyles=i,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Cn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Cn(this._element,this._initialStyles),this._endStyles&&(Cn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(qr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qr(this._element,this._endStyles),this._endStyles=null),Cn(this._element,this._initialStyles),this._state=3)}}return e})();function Wp(e){let n=null;return e.forEach((t,r)=>{(function c$(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class bM{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.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(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}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((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:rM(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class l${validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return KC(n,t)}getParentElement(n){return Tp(n)}query(n,t,r){return QC(n,t,r)}computeStyle(n,t,r){return window.getComputedStyle(n)[t]}animate(n,t,r,i,o,s=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(c.easing=o);const l=new Map,u=s.filter(h=>h instanceof bM);(function gH(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=function hH(e){return e.length?e[0]instanceof Map?e:e.map(n=>eM(n)):[]}(t).map(h=>pr(h));d=function _H(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,rM(e,a)))}}return n}(n,d,l);const f=function s$(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=Wp(n[0]),n.length>1&&(r=Wp(n[n.length-1]))):n instanceof Map&&(t=Wp(n)),t||r?new a$(e,t,r):null}(n,d);return new bM(n,d,c,f)}}let u$=(()=>{class e extends UC{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:Ft.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?HC(t):t;return yM(this._renderer,null,r,"register",[i]),new d$(r,this._renderer)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ni),D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class d$ extends MU{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new f$(this._id,n,t||{},this._renderer)}}class f${constructor(n,t,r,i){this.id=n,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return yM(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function yM(e,n,t,r,i){return e.setProperty(n,`@@${t}:${r}`,i)}const vM="@.disabled";let h$=(()=>{class e{constructor(t,r,i){this.delegate=t,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,r.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,r){const o=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(o);return u||(u=new wM("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(s,a,t,u.name,u)};return r.data.animation.forEach(c),new p$(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,i){t>=0&&tr(i)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,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()}static#e=this.\u0275fac=function(r){return new(r||e)(D(Ni),D(Fl),D(X))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})();class wM{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i}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,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){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,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==vM?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class p$ extends wM{constructor(n,t,r,i,o){super(t,r,i,o),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==vM?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function m$(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 g$(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}const DM=[{provide:UC,useClass:u$},{provide:Up,useFactory:function b$(){return new LH}},{provide:Fl,useClass:(()=>{class e extends Fl{constructor(t,r,i,o){super(t.body,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(D(ye),D(Ap),D(Up),D(Fr))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac})}return e})()},{provide:Ni,useFactory:function y$(e,n,t){return new h$(e,n,t)},deps:[Ah,Fl,X]}],Zp=[{provide:Ap,useFactory:()=>new l$},{provide:Ya,useValue:"BrowserAnimations"},...DM],EM=[{provide:Ap,useClass:YC},{provide:Ya,useValue:"NoopAnimations"},...DM];let Kp,v$=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?EM:Zp}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({providers:Zp,imports:[bD]})}return e})();try{Kp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Kp=!1}let Ws,Gs=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function jL(e){return e===eD}(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&&!Kp)&&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(r){return new(r||e)(D(Tr))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ll(e){return function w$(){if(null==Ws&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ws=!0}))}finally{Ws=Ws||!1}return Ws}()?e:!!e.capture}function IM(e){return Array.isArray(e)?e:[e]}class R$ extends lt{constructor(n,t){super()}schedule(n,t=0){return this}}const jl={setInterval(e,n,...t){const{delegate:r}=jl;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=jl;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},SM={now:()=>(SM.delegate||Date).now(),delegate:void 0};class Qs{constructor(n,t=Qs.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}Qs.now=SM.now;const F$=new class k$ extends Qs{constructor(n,t=Qs.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class O$ extends R${constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,r=0){return jl.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&jl.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Jr(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),xM=new Set;let Zr,L$=(()=>{class e{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):j$}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function V$(e,n){if(!xM.has(e))try{Zr||(Zr=document.createElement("style"),n&&(Zr.nonce=n),Zr.setAttribute("type","text/css"),document.head.appendChild(Zr)),Zr.sheet&&(Zr.sheet.insertRule(`@media ${e} {body{ }}`,0),xM.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static#e=this.\u0275fac=function(r){return new(r||e)(D(Gs),D(Md,8))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function j$(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let B$=(()=>{class e{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new ut}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return TM(IM(t)).some(i=>this._registerQuery(i).mql.matches)}observe(t){let o=qc(TM(IM(t)).map(s=>this._registerQuery(s).observable));return o=Wc(o.pipe(Vr(1)),o.pipe(function MM(e){return wn((n,t)=>e<=t)}(1),function P$(e,n=F$){return Te((t,r)=>{let i=null,o=null,s=null;const a=()=>{if(i){i.unsubscribe(),i=null;const l=o;o=null,r.next(l)}};function c(){const l=s+e,u=n.now();if(u{o=l,s=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}(0))),o.pipe(z(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),o={observable:new Ce(s=>{const a=c=>this._zone.run(()=>s.next(c));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(AD(r),z(({matches:s})=>({query:t,matches:s})),Lh(this._destroySubject)),mql:r};return this._queries.set(t,o),o}static#e=this.\u0275fac=function(r){return new(r||e)(D(L$),D(X))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TM(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}const PM="cdk-high-contrast-black-on-white",LM="cdk-high-contrast-white-on-black",Yp="cdk-high-contrast-active";let ez=(()=>{class e{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=I(B$).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,i=r&&r.getComputedStyle?r.getComputedStyle(t):null,o=(i&&i.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Yp,PM,LM),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(Yp,PM):2===r&&t.add(Yp,LM)}}static#e=this.\u0275fac=function(r){return new(r||e)(D(Gs),D(ye))};static#t=this.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),VM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})();const iz=new E("mat-sanity-checks",{providedIn:"root",factory:function rz(){return!0}});let Mn=(()=>{class e{constructor(t,r,i){this._sanityChecks=r,this._document=i,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!function C$(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static#e=this.\u0275fac=function(r){return new(r||e)(D(ez),D(iz,8),D(ye))};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[VM,VM]})}return e})();const UM=Ll({passive:!0,capture:!0});class dz{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=function po(e){return e.composedPath?e.composedPath()[0]:e.target}(n);t&&this._events.get(n.type)?.forEach((r,i)=>{(i===t||i.contains(t))&&r.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,r,i){const o=this._events.get(t);if(o){const s=o.get(r);s?s.add(i):o.set(r,new Set([i]))}else this._events.set(t,new Map([[r,new Set([i])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,UM)})}removeHandler(n,t,r){const i=this._events.get(n);if(!i)return;const o=i.get(t);o&&(o.delete(r),0===o.size&&i.delete(t),0===i.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,UM)))}}class Ul{static#e=this._eventManager=new dz;constructor(n,t,r,i){this._target=n,this._ngZone=t,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Ks(r))}fadeInRipple(n,t,r={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...HM,...r.animation},s=r.radius||function hz(e,n,t){const r=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),i=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(r*r+i*i)}(n,t,i),a=n-i.left,c=t-i.top,l=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=c-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=r.color&&(u.style.backgroundColor=r.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),h=d.transitionDuration,p="none"===d.transitionProperty||"0s"===h||"0s, 0s"===h||0===i.width&&0===i.height,m=new uz(this,u,r,p);u.style.transform="scale3d(1, 1, 1)",m.state=0,r.persistent||(this._mostRecentTransientRipple=m);return!p&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const y=()=>this._finishRippleTransition(m),g=()=>this._destroyRipple(m);u.addEventListener("transitionend",y),u.addEventListener("transitioncancel",g)}),this._activeRipples.set(m,null),(p||!l)&&this._finishRippleTransition(m),m}fadeOutRipple(n){if(2===n.state||3===n.state)return;const t=n.element,r={...HM,...n.config.animation};t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!r.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=Ks(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,zM.forEach(r=>{Ul._eventManager.addHandler(this._ngZone,r,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{qM.forEach(t=>{this._triggerElement.addEventListener(t,this,$M)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:r}=n.config;n.state=1,!r&&(!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=3,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel)),n.element.remove()}_onMousedown(n){const t=OM(n),r=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(zM.forEach(t=>Ul._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&qM.forEach(t=>n.removeEventListener(t,this,$M)))}}let GM=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[Mn,Mn]})}return e})(),gz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[Mn,Mn]})}return e})(),Kz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[Mn,Mn]})}return e})(),Xz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[Mn,GM,Mn]})}return e})(),dI=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({})}return e})(),d3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e});static#n=this.\u0275inj=Ae({imports:[dI,Mn,GM,J0,dI,Mn]})}return e})(),f3=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Oe({type:e,bootstrap:[CU]});static#n=this.\u0275inj=Ae({imports:[bD,_B,v$,gz,Kz,Xz,d3,vU]})}return e})();R2().bootstrapModule(f3).catch(e=>console.error(e))}},oe=>{oe(oe.s=859)}]); \ No newline at end of file