EVOLUTION-MANAGER
Edit File: main.4adcdbfee2d42c1f.js
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{820:()=>{function re(e){return"function"==typeof e}function Eo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Qi=Eo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function bo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class yt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(re(r))try{r()}catch(i){t=i instanceof Qi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{lh(i)}catch(s){t=t??[],s instanceof Qi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Qi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)lh(t);else{if(t instanceof yt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&bo(n,t)}remove(t){const{_finalizers:n}=this;n&&bo(n,t),t instanceof yt&&t._removeParent(this)}}yt.EMPTY=(()=>{const e=new yt;return e.closed=!0,e})();const ah=yt.EMPTY;function uh(e){return e instanceof yt||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function lh(e){re(e)?e():e.unsubscribe()}const Wn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Yi={setTimeout(e,t,...n){const{delegate:r}=Yi;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Yi;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ch(e){Yi.setTimeout(()=>{const{onUnhandledError:t}=Wn;if(!t)throw e;t(e)})}function dh(){}const qE=Eu("C",void 0,void 0);function Eu(e,t,n){return{kind:e,value:t,error:n}}let Zn=null;function Ki(e){if(Wn.useDeprecatedSynchronousErrorHandling){const t=!Zn;if(t&&(Zn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Zn;if(Zn=null,n)throw r}}else e()}class bu extends yt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,uh(t)&&t.add(this)):this.destination=XE}static create(t,n,r){return new So(t,n,r)}next(t){this.isStopped?Mu(function ZE(e){return Eu("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Mu(function WE(e){return Eu("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Mu(qE,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const YE=Function.prototype.bind;function Su(e,t){return YE.call(e,t)}class KE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ji(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ji(r)}else Ji(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ji(n)}}}class So extends bu{constructor(t,n,r){let o;if(super(),re(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Wn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Su(t.next,i),error:t.error&&Su(t.error,i),complete:t.complete&&Su(t.complete,i)}):o=t}this.destination=new KE(o)}}function Ji(e){Wn.useDeprecatedSynchronousErrorHandling?function QE(e){Wn.useDeprecatedSynchronousErrorHandling&&Zn&&(Zn.errorThrown=!0,Zn.error=e)}(e):ch(e)}function Mu(e,t){const{onStoppedNotification:n}=Wn;n&&Yi.setTimeout(()=>n(e,t))}const XE={closed:!0,next:dh,error:function JE(e){throw e},complete:dh},Iu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Qn(e){return e}function fh(e){return 0===e.length?Qn:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let Ce=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function nb(e){return e&&e instanceof bu||function tb(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}(e)&&uh(e)}(n)?n:new So(n,r,o);return Ki(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=hh(r))((o,i)=>{const s=new So({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Iu](){return this}pipe(...n){return fh(n)(this)}toPromise(n){return new(n=hh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function hh(e){var t;return null!==(t=e??Wn.Promise)&&void 0!==t?t:Promise}const rb=Eo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let un=(()=>{class e extends Ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new ph(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new rb}next(n){Ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ki(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?ah:(this.currentObservers=null,i.push(n),new yt(()=>{this.currentObservers=null,bo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Ce;return n.source=this,n}}return e.create=(t,n)=>new ph(t,n),e})();class ph extends un{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:ah}}function gh(e){return re(e?.lift)}function Le(e){return t=>{if(gh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Fe(e,t,n,r,o){return new ob(e,t,n,r,o)}class ob extends bu{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ie(e,t){return Le((n,r)=>{let o=0;n.subscribe(Fe(r,i=>{r.next(e.call(t,i,o++))}))})}function Yn(e){return this instanceof Yn?(this.v=e,this):new Yn(e)}function ub(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function vh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(l){i({value:l,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}const Dh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function _h(e){return re(e?.then)}function Ch(e){return re(e[Iu])}function wh(e){return Symbol.asyncIterator&&re(e?.[Symbol.asyncIterator])}function Eh(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 bh=function cb(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Sh(e){return re(e?.[bh])}function Mh(e){return function ab(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Yn?Promise.resolve(f.value.v).then(l,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield Yn(n.read());if(o)return yield Yn(void 0);yield yield Yn(r)}}finally{n.releaseLock()}})}function Ih(e){return re(e?.getReader)}function vt(e){if(e instanceof Ce)return e;if(null!=e){if(Ch(e))return function db(e){return new Ce(t=>{const n=e[Iu]();if(re(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Dh(e))return function fb(e){return new Ce(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(_h(e))return function hb(e){return new Ce(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ch)})}(e);if(wh(e))return Ah(e);if(Sh(e))return function pb(e){return new Ce(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ih(e))return function gb(e){return Ah(Mh(e))}(e)}throw Eh(e)}function Ah(e){return new Ce(t=>{(function mb(e,t){var n,r,o,i;return function ib(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{l(r.next(c))}catch(d){s(d)}}function u(c){try{l(r.throw(c))}catch(d){s(d)}}function l(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=ub(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function ln(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ve(e,t,n=1/0){return re(t)?Ve((r,o)=>ie((i,s)=>t(r,i,o,s))(vt(e(r,o))),n):("number"==typeof t&&(n=t),Le((r,o)=>function yb(e,t,n,r,o,i,s,a){const u=[];let l=0,c=0,d=!1;const f=()=>{d&&!u.length&&!l&&t.complete()},h=g=>l<r?p(g):u.push(g),p=g=>{i&&t.next(g),l++;let y=!1;vt(n(g,c++)).subscribe(Fe(t,_=>{o?.(_),i?h(_):t.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(l--;u.length&&l<r;){const _=u.shift();s?ln(t,s,()=>p(_)):p(_)}f()}catch(_){t.error(_)}}))};return e.subscribe(Fe(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function vr(e=1/0){return Ve(Qn,e)}const Ut=new Ce(e=>e.complete());function Tu(e){return e[e.length-1]}function Th(e){return re(Tu(e))?e.pop():void 0}function Mo(e){return function Db(e){return e&&re(e.schedule)}(Tu(e))?e.pop():void 0}function Nh(e,t=0){return Le((n,r)=>{n.subscribe(Fe(r,o=>ln(r,e,()=>r.next(o),t),()=>ln(r,e,()=>r.complete(),t),o=>ln(r,e,()=>r.error(o),t)))})}function Rh(e,t=0){return Le((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Oh(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ce(n=>{ln(n,t,()=>{const r=e[Symbol.asyncIterator]();ln(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pe(e,t){return t?function Mb(e,t){if(null!=e){if(Ch(e))return function Cb(e,t){return vt(e).pipe(Rh(t),Nh(t))}(e,t);if(Dh(e))return function Eb(e,t){return new Ce(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(_h(e))return function wb(e,t){return vt(e).pipe(Rh(t),Nh(t))}(e,t);if(wh(e))return Oh(e,t);if(Sh(e))return function bb(e,t){return new Ce(n=>{let r;return ln(n,t,()=>{r=e[bh](),ln(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>re(r?.return)&&r.return()})}(e,t);if(Ih(e))return function Sb(e,t){return Oh(Mh(e),t)}(e,t)}throw Eh(e)}(e,t):vt(e)}function Nu(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new So({next:()=>{r.unsubscribe(),e()}});return vt(t(...n)).subscribe(r)}function ee(e){for(let t in e)if(e[t]===ee)return t;throw Error("Could not find renamed property on target object.")}function Ru(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Me(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Me).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ou(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Tb=ee({__forward_ref__:ee});function se(e){return e.__forward_ref__=se,e.toString=function(){return Me(this())},e}function k(e){return xu(e)?e():e}function xu(e){return"function"==typeof e&&e.hasOwnProperty(Tb)&&e.__forward_ref__===se}function Fu(e){return e&&!!e.\u0275providers}const xh="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function Pu(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function L(e){return"string"==typeof e?e:null==e?"":String(e)}function Xi(e,t){throw new C(-201,!1)}function Dt(e,t){null==e&&function X(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function T(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function At(e){return{providers:e.providers||[],imports:e.imports||[]}}function es(e){return Fh(e,ts)||Fh(e,kh)}function Fh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ph(e){return e&&(e.hasOwnProperty(ku)||e.hasOwnProperty(Lb))?e[ku]:null}const ts=ee({\u0275prov:ee}),ku=ee({\u0275inj:ee}),kh=ee({ngInjectableDef:ee}),Lb=ee({ngInjectorDef:ee});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let Lu;function et(e){const t=Lu;return Lu=e,t}function Vh(e,t,n){const r=es(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void Xi(Me(e))}const ae=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Io={},Vu="__NG_DI_FLAG__",ns="ngTempTokenPath",Bb=/\n/gm,Bh="__source";let Dr;function Rn(e){const t=Dr;return Dr=e,t}function Hb(e,t=N.Default){if(void 0===Dr)throw new C(-203,!1);return null===Dr?Vh(e,void 0,t):Dr.get(e,t&N.Optional?null:void 0,t)}function R(e,t=N.Default){return(function Lh(){return Lu}()||Hb)(k(e),t)}function M(e,t=N.Default){return R(e,rs(t))}function rs(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Bu(e){const t=[];for(let n=0;n<e.length;n++){const r=k(e[n]);if(Array.isArray(r)){if(0===r.length)throw new C(900,!1);let o,i=N.Default;for(let s=0;s<r.length;s++){const a=r[s],u=$b(a);"number"==typeof u?-1===u?o=a.token:i|=u:o=a}t.push(R(o,i))}else t.push(R(r))}return t}function Ao(e,t){return e[Vu]=t,e.prototype[Vu]=t,e}function $b(e){return e[Vu]}function cn(e){return{toString:e}.toString()}var Ht=(()=>((Ht=Ht||{})[Ht.OnPush=0]="OnPush",Ht[Ht.Default=1]="Default",Ht))(),ct=(()=>{return(e=ct||(ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ct;var e})();const dn={},Q=[],os=ee({\u0275cmp:ee}),ju=ee({\u0275dir:ee}),Uu=ee({\u0275pipe:ee}),Uh=ee({\u0275mod:ee}),fn=ee({\u0275fac:ee}),To=ee({__NG_ELEMENT_ID__:ee}),Hh=ee({__NG_ENV_ID__:ee});function $h(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Hu(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Gh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function zh(e){return 3===e||4===e||6===e}function Gh(e){return 64===e.charCodeAt(0)}function No(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||qh(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function qh(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const Wh="ng-template";function qb(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==$h(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function Zh(e){return 4===e.type&&e.value!==Wh}function Wb(e,t,n){return t===(4!==e.type||n?e.value:Wh)}function Zb(e,t,n){let r=4;const o=e.attrs||[],i=function Kb(e){for(let t=0;t<e.length;t++)if(zh(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!Wb(e,u,n)||""===u&&1===t.length){if(Tt(r))return!1;s=!0}}else{const l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!qb(e.attrs,l,n)){if(Tt(r))return!1;s=!0}continue}const d=Qb(8&r?"class":u,o,Zh(e),n);if(-1===d){if(Tt(r))return!1;s=!0;continue}if(""!==l){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==$h(h,l,0)||2&r&&l!==f){if(Tt(r))return!1;s=!0}}}}else{if(!s&&!Tt(r)&&!Tt(u))return!1;if(s&&Tt(u))continue;s=!1,r=u|1&r}}return Tt(r)||s}function Tt(e){return 0==(1&e)}function Qb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function Jb(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Qh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Zb(e,t[r],n))return!0;return!1}function Yh(e,t){return e?":not("+t.trim()+")":t}function eS(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Tt(s)&&(t+=Yh(i,o),o=""),r=s,i=i||!Tt(r);n++}return""!==o&&(t+=Yh(i,o)),t}function hn(e){return cn(()=>{const t=Jh(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ht.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||ct.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:""};Xh(n);const r=e.dependencies;return n.directiveDefs=is(r,!1),n.pipeDefs=is(r,!0),n.id=function uS(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function oS(e){return K(e)||$e(e)}function iS(e){return null!==e}function $t(e){return cn(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Kh(e,t){if(null==e)return dn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function P(e){return cn(()=>{const t=Jh(e);return Xh(t),t})}function K(e){return e[os]||null}function $e(e){return e[ju]||null}function nt(e){return e[Uu]||null}function dt(e,t){const n=e[Uh]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function Jh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Kh(e.inputs,t),outputs:Kh(e.outputs)}}function Xh(e){e.features?.forEach(t=>t(e))}function is(e,t){if(!e)return null;const n=t?nt:oS;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(iS)}const Ie=0,E=1,U=2,pe=3,Nt=4,Kn=5,ze=6,Cr=7,ye=8,wr=9,Jn=10,B=11,Ro=12,ep=13,Er=14,we=15,Oo=16,br=17,zt=18,xo=19,tp=20,On=21,pn=22,ss=23,as=24,q=25,$u=1,np=2,Gt=7,us=8,Sr=9,Be=11;function ft(e){return Array.isArray(e)&&"object"==typeof e[$u]}function rt(e){return Array.isArray(e)&&!0===e[$u]}function zu(e){return 0!=(4&e.flags)}function Xn(e){return e.componentOffset>-1}function ls(e){return 1==(1&e.flags)}function Rt(e){return!!e.template}function Gu(e){return 0!=(512&e[U])}function er(e,t){return e.hasOwnProperty(fn)?e[fn]:null}let hS=ae.WeakRef??class fS{constructor(t){this.ref=t}deref(){return this.ref}},gS=0,qt=null,cs=!1;function ke(e){const t=qt;return qt=e,t}class ap{constructor(){this.id=gS++,this.ref=function pS(e){return new hS(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=cs;cs=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{cs=t}}producerAccessed(){if(cs)throw new Error("");if(null===qt)return;let t=qt.producers.get(this.id);void 0===t?(t={consumerNode:qt.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:qt.trackingVersion},qt.producers.set(this.id,t),this.consumers.set(qt.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=qt.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==qt?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let up=null;const lp=()=>{};class DS extends ap{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=lp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=ke(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=lp,this.watch(this.registerOnCleanup)}finally{ke(t)}}cleanup(){this.cleanupFn()}}class _S{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function _t(){return cp}function cp(e){return e.type.prototype.ngOnChanges&&(e.setInput=wS),CS}function CS(){const e=fp(this),t=e?.current;if(t){const n=e.previous;if(n===dn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function wS(e,t,n,r){const o=this.declaredInputs[n],i=fp(e)||function ES(e,t){return e[dp]=t}(e,{previous:dn,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new _S(u&&u.currentValue,t,a===dn),e[r]=t}_t.ngInherit=!0;const dp="__ngSimpleChanges__";function fp(e){return e[dp]||null}const Wt=function(e,t,n){};function de(e){for(;Array.isArray(e);)e=e[Ie];return e}function hs(e,t){return de(t[e])}function ot(e,t){return de(t[e.index])}function gp(e,t){return e.data[t]}function it(e,t){const n=t[e];return ft(n)?n:n[Ie]}function ps(e){return 128==(128&e[U])}function xn(e,t){return null==t?null:e[t]}function mp(e){e[br]=0}function TS(e){1024&e[U]||(e[U]|=1024,vp(e,1))}function yp(e){1024&e[U]&&(e[U]&=-1025,vp(e,-1))}function vp(e,t){let n=e[pe];if(null===n)return;n[Kn]+=t;let r=n;for(n=n[pe];null!==n&&(1===t&&1===r[Kn]||-1===t&&0===r[Kn]);)n[Kn]+=t,r=n,n=n[pe]}const F={lFrame:Tp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Cp(){return F.bindingsEnabled}function D(){return F.lFrame.lView}function Z(){return F.lFrame.tView}function Ku(e){return F.lFrame.contextLView=e,e[ye]}function Ju(e){return F.lFrame.contextLView=null,e}function je(){let e=wp();for(;null!==e&&64===e.type;)e=e.parent;return e}function wp(){return F.lFrame.currentTNode}function Zt(e,t){const n=F.lFrame;n.currentTNode=e,n.isParent=t}function Xu(){return F.lFrame.isParent}function Ar(){return F.lFrame.bindingIndex++}function US(e,t){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,tl(t)}function tl(e){F.lFrame.currentDirectiveIndex=e}function rl(e){F.lFrame.currentQueryIndex=e}function $S(e){const t=e[E];return 2===t.type?t.declTNode:1===t.type?e[ze]:null}function Ip(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=$S(i),null===o||(i=i[Er],10&o.type))););if(null===o)return!1;t=o,e=i}const r=F.lFrame=Ap();return r.currentTNode=t,r.lView=e,!0}function ol(e){const t=Ap(),n=e[E];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ap(){const e=F.lFrame,t=null===e?null:e.child;return null===t?Tp(e):t}function Tp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Np(){const e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Rp=Np;function il(){const e=Np();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 Qe(){return F.lFrame.selectedIndex}function tr(e){F.lFrame.selectedIndex=e}function ge(){const e=F.lFrame;return gp(e.tView,e.selectedIndex)}let xp=!0;function gs(){return xp}function Fn(e){xp=e}function ms(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:l,ngOnDestroy:c}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),u&&(e.viewHooks??=[]).push(-n,u),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),null!=c&&(e.destroyHooks??=[]).push(n,c)}}function ys(e,t,n){Fp(e,t,3,n)}function vs(e,t,n,r){(3&e[U])===n&&Fp(e,t,n,r)}function sl(e,t){let n=e[U];(3&n)===t&&(n&=4095,n+=1,e[U]=n)}function Fp(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let u=void 0!==r?65535&e[br]:0;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[br]+=65536),(a<i||-1==i)&&(KS(e,n,t,u),e[br]=(4294901760&e[br])+u+2),u++}function Pp(e,t){Wt(4,e,t);const n=ke(null);try{t.call(e)}finally{ke(n),Wt(5,e,t)}}function KS(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[U]>>12<e[br]>>16&&(3&e[U])===t&&(e[U]+=4096,Pp(a,i)):Pp(a,i)}const Tr=-1;class ko{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function kp(e){return e!==Tr}function Ds(e){return 32767&e}function _s(e,t){let n=function tM(e){return e>>16}(e),r=t;for(;n>0;)r=r[Er],n--;return r}let ul=!0;function Cs(e){const t=ul;return ul=e,t}const Lp=255,Vp=5;let nM=0;const Qt={};function ws(e,t){const n=Bp(e,t);if(-1!==n)return n;const r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,ll(r.data,e),ll(t,null),ll(r.blueprint,null));const o=cl(e,t),i=e.injectorIndex;if(kp(o)){const s=Ds(o),a=_s(o,t),u=a[E].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function ll(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Bp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function cl(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=qp(o),null===r)return Tr;if(n++,o=o[Er],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Tr}function dl(e,t,n){!function rM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(To)&&(r=n[To]),null==r&&(r=n[To]=nM++);const o=r&Lp;t.data[e+(o>>Vp)]|=1<<o}(e,t,n)}function jp(e,t,n){if(n&N.Optional||void 0!==e)return e;Xi()}function Up(e,t,n,r){if(n&N.Optional&&void 0===r&&(r=null),!(n&(N.Self|N.Host))){const o=e[wr],i=et(void 0);try{return o?o.get(t,r,n&N.Optional):Vh(t,r,n&N.Optional)}finally{et(i)}}return jp(r,0,n)}function Hp(e,t,n,r=N.Default,o){if(null!==e){if(2048&t[U]){const s=function uM(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[U]&&!(512&s[U]);){const a=$p(i,s,n,r|N.Self,Qt);if(a!==Qt)return a;let u=i.parent;if(!u){const l=s[tp];if(l){const c=l.get(n,Qt,r);if(c!==Qt)return c}u=qp(s),s=s[Er]}i=u}return o}(e,t,n,r,Qt);if(s!==Qt)return s}const i=$p(e,t,n,r,Qt);if(i!==Qt)return i}return Up(t,n,r,o)}function $p(e,t,n,r,o){const i=function sM(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(To)?e[To]:void 0;return"number"==typeof t?t>=0?t&Lp:aM:t}(n);if("function"==typeof i){if(!Ip(t,e,r))return r&N.Host?jp(o,0,r):Up(t,n,r,o);try{const s=i(r);if(null!=s||r&N.Optional)return s;Xi()}finally{Rp()}}else if("number"==typeof i){let s=null,a=Bp(e,t),u=Tr,l=r&N.Host?t[we][ze]:null;for((-1===a||r&N.SkipSelf)&&(u=-1===a?cl(e,t):t[a+8],u!==Tr&&Gp(r,!1)?(s=t[E],a=Ds(u),t=_s(u,t)):a=-1);-1!==a;){const c=t[E];if(zp(i,a,c.data)){const d=iM(a,t,n,s,r,l);if(d!==Qt)return d}u=t[a+8],u!==Tr&&Gp(r,t[E].data[a+8]===l)&&zp(i,a,t)?(s=c,a=Ds(u),t=_s(u,t)):a=-1}}return o}function iM(e,t,n,r,o,i){const s=t[E],a=s.data[e+8],c=function Es(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<u&&n===p||h>=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Rt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Xn(a)&&ul:r!=s&&0!=(3&a.type),o&N.Host&&i===a);return null!==c?nr(t,s,c,a):Qt}function nr(e,t,n,r){let o=e[n];const i=t.data;if(function JS(e){return e instanceof ko}(o)){const s=o;s.resolving&&function Nb(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function J(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():L(e)}(i[n]));const a=Cs(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?et(s.injectImpl):null;Ip(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function YS(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=cp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==u&&et(u),Cs(a),s.resolving=!1,Rp()}}return o}function zp(e,t,n){return!!(n[t+(e>>Vp)]&1<<e)}function Gp(e,t){return!(e&N.Self||e&N.Host&&t)}class Nr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Hp(this._tNode,this._lView,t,rs(r),n)}}function aM(){return new Nr(je(),D())}function Ue(e){return cn(()=>{const t=e.prototype.constructor,n=t[fn]||fl(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[fn]||fl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function fl(e){return xu(e)?()=>{const t=fl(k(e));return t&&t()}:er(e)}function qp(e){const t=e[E],n=t.type;return 2===n?t.declTNode:1===n?e[ze]:null}const Or="__parameters__";function Fr(e,t,n){return cn(()=>{const r=function hl(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(Or)?u[Or]:Object.defineProperty(u,Or,{value:[]})[Or];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Bo(e,t){e.forEach(n=>Array.isArray(n)?Bo(n,t):t(n))}function Zp(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ss(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ht(e,t,n){let r=Pr(e,t);return r>=0?e[1|r]=n:(r=~r,function hM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function pl(e,t){const n=Pr(e,t);if(n>=0)return e[1|n]}function Pr(e,t){return function Qp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const Is=Ao(Fr("Optional"),8),As=Ao(Fr("SkipSelf"),4);function Rs(e){return 128==(128&e.flags)}var st=(()=>((st=st||{})[st.Important=1]="Important",st[st.DashCase=2]="DashCase",st))();const Cl=new Map;let LM=0;const El="__ngContext__";function Ge(e,t){ft(t)?(e[El]=t[xo],function BM(e){Cl.set(e[xo],e)}(t)):e[El]=t}let bl;function Sl(e,t){return bl(e,t)}function $o(e){const t=e[pe];return rt(t)?t[pe]:t}function Ml(e){return pg(e[Ro])}function Il(e){return pg(e[Nt])}function pg(e){for(;null!==e&&!rt(e);)e=e[Nt];return e}function Vr(e,t,n,r,o){if(null!=r){let i,s=!1;rt(r)?i=r:ft(r)&&(s=!0,r=r[Ie]);const a=de(r);0===e&&null!==n?null==o?Dg(t,n,a):rr(t,n,a,o||null,!0):1===e&&null!==n?rr(t,n,a,o||null,!0):2===e?function Ls(e,t,n){const r=Ps(e,t);r&&function oI(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function aI(e,t,n,r,o){const i=n[Gt];i!==de(n)&&Vr(t,e,r,i,o);for(let a=Be;a<n.length;a++){const u=n[a];Go(u[E],u,e,t,r,i)}}(t,e,i,n,o)}}function Fs(e,t,n){return e.createElement(t,n)}function mg(e,t){const n=e[Sr],r=n.indexOf(t);yp(t),n.splice(r,1)}function Tl(e,t){if(e.length<=Be)return;const n=Be+t,r=e[n];if(r){const o=r[Oo];null!==o&&o!==e&&mg(o,r),t>0&&(e[n-1][Nt]=r[Nt]);const i=Ss(e,Be+t);!function YM(e,t){Go(e,t,t[B],2,null,null),t[Ie]=null,t[ze]=null}(r[E],r);const s=i[zt];null!==s&&s.detachView(i[E]),r[pe]=null,r[Nt]=null,r[U]&=-129}return r}function yg(e,t){if(!(256&t[U])){const n=t[B];t[ss]?.destroy(),t[as]?.destroy(),n.destroyNode&&Go(e,t,n,3,null,null),function XM(e){let t=e[Ro];if(!t)return Nl(e[E],e);for(;t;){let n=null;if(ft(t))n=t[Ro];else{const r=t[Be];r&&(n=r)}if(!n){for(;t&&!t[Nt]&&t!==e;)ft(t)&&Nl(t[E],t),t=t[pe];null===t&&(t=e),ft(t)&&Nl(t[E],t),n=t&&t[Nt]}t=n}}(t)}}function Nl(e,t){if(!(256&t[U])){t[U]&=-129,t[U]|=256,function rI(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof ko)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],u=i[s+1];Wt(4,a,u);try{u.call(a)}finally{Wt(5,a,u)}}else{Wt(4,o,i);try{i.call(o)}finally{Wt(5,o,i)}}}}}(e,t),function nI(e,t){const n=e.cleanup,r=t[Cr];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Cr]=null);const o=t[On];if(null!==o){for(let i=0;i<o.length;i++)(0,o[i])();t[On]=null}}(e,t),1===t[E].type&&t[B].destroy();const n=t[Oo];if(null!==n&&rt(t[pe])){n!==t[pe]&&mg(n,t);const r=t[zt];null!==r&&r.detachView(e)}!function jM(e){Cl.delete(e[xo])}(t)}}function Rl(e,t,n){return function vg(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Ie];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===ct.None||i===ct.Emulated)return null}return ot(r,n)}}(e,t.parent,n)}function rr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Dg(e,t,n){e.appendChild(t,n)}function _g(e,t,n,r,o){null!==r?rr(e,t,n,r,o):Dg(e,t,n)}function Ps(e,t){return e.parentNode(t)}let Ol,kl,Eg=function wg(e,t,n){return 40&e.type?ot(e,n):null};function ks(e,t,n,r){const o=Rl(e,r,t),i=t[B],a=function Cg(e,t,n){return Eg(e,t,n)}(r.parent||t[ze],r,t);if(null!=o)if(Array.isArray(n))for(let u=0;u<n.length;u++)_g(i,o,n[u],a,!1);else _g(i,o,n,a,!1);void 0!==Ol&&Ol(i,r,t,n,o)}function zo(e,t){if(null!==t){const n=t.type;if(3&n)return ot(t,e);if(4&n)return xl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return zo(e,r);{const o=e[t.index];return rt(o)?xl(-1,o):de(o)}}if(32&n)return Sl(t,e)()||de(e[t.index]);{const r=Sg(e,t);return null!==r?Array.isArray(r)?r[0]:zo($o(e[we]),r):zo(e,t.next)}}return null}function Sg(e,t){return null!==t?e[we][ze].projection[t.projection]:null}function xl(e,t){const n=Be+e+1;if(n<t.length){const r=t[n],o=r[E].firstChild;if(null!==o)return zo(r,o)}return t[Gt]}function Fl(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],u=n.type;if(s&&0===t&&(a&&Ge(de(a),r),n.flags|=2),32!=(32&n.flags))if(8&u)Fl(e,t,n.child,r,o,i,!1),Vr(t,e,o,a,i);else if(32&u){const l=Sl(n,r);let c;for(;c=l();)Vr(t,e,o,c,i);Vr(t,e,o,a,i)}else 16&u?Ig(e,t,r,n,o,i):Vr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Go(e,t,n,r,o,i){Fl(n,r,e.firstChild,t,o,i,!1)}function Ig(e,t,n,r,o,i){const s=n[we],u=s[ze].projection[r.projection];if(Array.isArray(u))for(let l=0;l<u.length;l++)Vr(t,e,o,u[l],i);else{let l=u;const c=s[pe];Rs(r)&&(l.flags|=128),Fl(e,t,l,c,o,i,!0)}}function Ag(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Tg(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&Hu(e,t,r),null!==o&&Ag(e,t,o),null!==i&&function lI(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}class xg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xh})`}}function Pn(e){return e instanceof xg?e.changingThisBreaksApplicationSecurity:e}const EI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ee=(()=>((Ee=Ee||{})[Ee.NONE=0]="NONE",Ee[Ee.HTML=1]="HTML",Ee[Ee.STYLE=2]="STYLE",Ee[Ee.SCRIPT=3]="SCRIPT",Ee[Ee.URL=4]="URL",Ee[Ee.RESOURCE_URL=5]="RESOURCE_URL",Ee))();function Hl(e){const t=function Qo(){const e=D();return e&&e[Jn].sanitizer}();return t?t.sanitize(Ee.URL,e)||"":function Wo(e,t){const n=function DI(e){return e instanceof xg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xh})`)}return n===t}(e,"URL")?Pn(e):function Vl(e){return(e=String(e)).match(EI)?e:"unsafe:"+e}(L(e))}class I{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=T({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Yo=new I("ENVIRONMENT_INITIALIZER"),Hg=new I("INJECTOR",-1),$g=new I("INJECTOR_DEF_TYPES");class zg{get(t,n=Io){if(n===Io){const r=new Error(`NullInjectorError: No provider for ${Me(t)}!`);throw r.name="NullInjectorError",r}return n}}function kI(...e){return{\u0275providers:qg(0,e),\u0275fromNgModule:!0}}function qg(e,...t){const n=[],r=new Set;let o;return Bo(t,i=>{const s=i;$l(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Wg(o,n),n}function Wg(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];zl(o,i=>{t.push(i)})}}function $l(e,t,n,r){if(!(e=k(e)))return!1;let o=null,i=Ph(e);const s=!i&&K(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Ph(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)$l(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{Bo(i.imports,c=>{$l(c,t,n,r)&&(l||=[],l.push(c))})}finally{}void 0!==l&&Wg(l,t)}if(!a){const l=er(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:Q},{provide:$g,useValue:o,multi:!0},{provide:Yo,useValue:()=>R(o),multi:!0})}const u=i.providers;null==u||a||zl(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function zl(e,t){for(let n of e)Fu(n)&&(n=n.\u0275providers),Array.isArray(n)?zl(n,t):t(n)}const LI=ee({provide:String,useValue:ee});function Gl(e){return null!==e&&"object"==typeof e&&LI in e}function or(e){return"function"==typeof e}const ql=new I("Set Injector scope."),Us={},BI={};let Wl;function Hs(){return void 0===Wl&&(Wl=new zg),Wl}class vn{}class Zl extends vn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yl(t,s=>this.processProvider(s)),this.records.set(Hg,jr(void 0,this)),o.has("environment")&&this.records.set(vn,jr(void 0,this));const i=this.records.get(ql);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get($g.multi,Q,N.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Rn(this),r=et(void 0);try{return t()}finally{Rn(n),et(r)}}get(t,n=Io,r=N.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Hh))return t[Hh](this);r=rs(r);const o=Rn(this),i=et(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function zI(e){return"function"==typeof e||"object"==typeof e&&e instanceof I}(t)&&es(t);a=u&&this.injectableDefInScope(u)?jr(Ql(t),Us):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&N.Self?Hs():this.parent).get(t,n=r&N.Optional&&n===Io?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[ns]=s[ns]||[]).unshift(Me(t)),o)throw s;return function zb(e,t,n,r){const o=e[ns];throw t[Bh]&&o.unshift(t[Bh]),e.message=function Gb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Me(t);if(Array.isArray(t))o=t.map(Me).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Me(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Bb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ns]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{et(i),Rn(o)}}resolveInjectorInitializers(){const t=Rn(this),n=et(void 0);try{const r=this.get(Yo.multi,Q,N.Self);for(const o of r)o()}finally{Rn(t),et(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Me(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=or(t=k(t))?t:k(t&&t.provide);const r=function UI(e){return Gl(e)?jr(void 0,e.useValue):jr(Yg(e),Us)}(t);if(or(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=jr(void 0,Us,!0),o.factory=()=>Bu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Us&&(n.value=BI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $I(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=k(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Ql(e){const t=es(e),n=null!==t?t.factory:er(e);if(null!==n)return n;if(e instanceof I)throw new C(204,!1);if(e instanceof Function)return function jI(e){const t=e.length;if(t>0)throw function jo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new C(204,!1);const n=function kb(e){return e&&(e[ts]||e[kh])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function Yg(e,t,n){let r;if(or(e)){const o=k(e);return er(o)||Ql(o)}if(Gl(e))r=()=>k(e.useValue);else if(function Qg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Bu(e.deps||[]));else if(function Zg(e){return!(!e||!e.useExisting)}(e))r=()=>R(k(e.useExisting));else{const o=k(e&&(e.useClass||e.provide));if(!function HI(e){return!!e.deps}(e))return er(o)||Ql(o);r=()=>new o(...Bu(e.deps))}return r}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Yl(e,t){for(const n of e)Array.isArray(n)?Yl(n,t):n&&Fu(n)?Yl(n.\u0275providers,t):t(n)}const $s=new I("AppId",{providedIn:"root",factory:()=>GI}),GI="ng",Kg=new I("Platform Initializer"),Ur=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jg=new I("CSP nonce",{providedIn:"root",factory:()=>function qo(){if(void 0!==kl)return kl;if(typeof document<"u")return document;throw new C(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let em=(e,t)=>null;function tm(e,t){return em(e,t)}class t0{}class om{}class r0{resolveComponentFactory(t){throw function n0(e){const t=Error(`No component factory found for ${Me(e)}.`);return t.ngComponent=e,t}(t)}}let Zs=(()=>{class e{}return e.NULL=new r0,e})();function o0(){return Hr(je(),D())}function Hr(e,t){return new pt(ot(e,t))}let pt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=o0,e})();class sm{}let Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function a0(){const e=D(),n=it(je().index,e);return(ft(n)?n:e)[B]}(),e})(),u0=(()=>{class e{}return e.\u0275prov=T({token:e,providedIn:"root",factory:()=>null}),e})();class ei{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const l0=new ei("16.0.1"),ac={};function ti(e){for(;e;){e[U]|=64;const t=$o(e);if(Gu(e)&&!t)return e;e=t}return null}function uc(e){return e.ngOriginalError}class ir{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&uc(t);for(;n&&uc(n);)n=uc(n);return n||null}}const lm=new I("",{providedIn:"root",factory:()=>!1});function _n(e){return e instanceof Function?e():e}class fm extends ap{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){ti(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=ke(this);this.trackingVersion++;try{t(n,r)}finally{ke(o)}}destroy(){this.trackingVersion++}}let Ys=null;function hm(){return Ys??=new fm,Ys}function pm(e,t){return e[t]??hm()}function gm(e,t){const n=hm();n.hasReadASignal&&(e[t]=Ys,n.lView=e,Ys=new fm)}const j={};function Te(e){mm(Z(),D(),Qe()+e,!1)}function mm(e,t,n,r){if(!r)if(3==(3&t[U])){const i=e.preOrderCheckHooks;null!==i&&ys(t,i,n)}else{const i=e.preOrderHooks;null!==i&&vs(t,i,0,n)}tr(n)}function _m(e,t=null,n=null,r){const o=Cm(e,t,n,r);return o.resolveInjectorInitializers(),o}function Cm(e,t=null,n=null,r,o=new Set){const i=[n||Q,kI(e)];return r=r||("object"==typeof e?void 0:Me(e)),new Zl(i,t||Hs(),r||null,o)}let Yt=(()=>{class e{static create(n,r){if(Array.isArray(n))return _m({name:""},r,n,"");{const o=n.name??"";return _m({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Io,e.NULL=new zg,e.\u0275prov=T({token:e,providedIn:"any",factory:()=>R(Hg)}),e.__NG_ELEMENT_ID__=-1,e})();function w(e,t=N.Default){const n=D();return null===n?R(e,t):Hp(je(),n,k(e),t)}function Ks(e,t,n,r,o,i,s,a,u,l,c){const d=t.blueprint.slice();return d[Ie]=o,d[U]=140|r,(null!==l||e&&2048&e[U])&&(d[U]|=2048),mp(d),d[pe]=d[Er]=e,d[ye]=n,d[Jn]=s||e&&e[Jn],d[B]=a||e&&e[B],d[wr]=u||e&&e[wr]||null,d[ze]=i,d[xo]=function VM(){return LM++}(),d[pn]=c,d[tp]=l,d[we]=2==t.type?e[we]:d,d}function zr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function lc(e,t,n,r,o){const i=wp(),s=Xu(),u=e.data[t]=function N0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Ir(){return null!==F.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,t,n,r,o),function jS(){return F.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Po(){const e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Zt(i,!0),i}function ni(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Em(e,t,n,r,o){const i=pm(t,ss),s=Qe(),a=2&r;try{if(tr(-1),a&&t.length>q&&mm(e,t,q,!1),Wt(a?2:0,o),a)i.runInContext(n,r,o);else{const l=ke(null);try{n(r,o)}finally{ke(l)}}}finally{a&&null===t[ss]&&gm(t,ss),tr(s),Wt(a?3:1,o)}}function cc(e,t,n){if(zu(t)){const r=ke(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{ke(r)}}}function dc(e,t,n){Cp()&&(function L0(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;Xn(n)&&function z0(e,t,n){const r=ot(t,e),s=Js(e,Ks(e,bm(n),null,n.onPush?64:16,r,t,null,e[Jn].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||ws(n,t),Ge(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const u=e.data[a],l=nr(t,e,a,n);Ge(l,t),null!==s&&G0(0,a-o,l,u,0,s),Rt(u)&&(it(n.index,t)[ye]=nr(t,e,a,n))}}(e,t,n,ot(n,t)),64==(64&n.flags)&&Tm(e,t,n))}function fc(e,t,n=ot){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function bm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=hc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function hc(e,t,n,r,o,i,s,a,u,l,c){const d=q+r,f=d+o,h=function b0(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:j);return n}(d,f),p="function"==typeof l?l():l;return h[E]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:p,incompleteFirstPass:!1,ssrId:c}}let Sm=e=>null;function Mm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Im(n,t,o,i):r.hasOwnProperty(o)&&Im(n,t,r[o],i)}return n}function Im(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function gt(e,t,n,r,o,i,s,a){const u=ot(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(vc(e,n,c,r,o),Xn(t)&&function x0(e,t){const n=it(t,e);16&n[U]||(n[U]|=64)}(n,t.index)):3&t.type&&(r=function O0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}function pc(e,t,n,r){if(Cp()){const o=null===r?null:{"":-1},i=function B0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(Qh(t,s.selectors,!1))if(r||(r=[]),Rt(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),gc(e,t,a.length)}else r.unshift(s),gc(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&Am(e,t,n,s,o,a),o&&function j0(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new C(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=No(n.mergedAttrs,n.attrs)}function Am(e,t,n,r,o,i){for(let l=0;l<r.length;l++)dl(ws(n,t),e,r[l].type);!function H0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let l=0;l<r.length;l++){const c=r[l];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,u=ni(e,t,r.length,null);for(let l=0;l<r.length;l++){const c=r[l];n.mergedAttrs=No(n.mergedAttrs,c.hostAttrs),$0(e,n,t,u,c),U0(u,c,o),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}!function R0(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let u=null,l=null;for(let c=t.directiveStart;c<o;c++){const d=i[c],f=n?n.get(d):null,p=f?f.outputs:null;u=Mm(d.inputs,c,u,f?f.inputs:null),l=Mm(d.outputs,c,l,p);const g=null===u||null===s||Zh(t)?null:q0(u,c,s);a.push(g)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=l}(e,n,i)}function Tm(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function HS(){return F.lFrame.currentDirectiveIndex}();try{tr(i);for(let a=r;a<o;a++){const u=e.data[a],l=t[a];tl(a),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&V0(u,l)}}finally{tr(-1),tl(s)}}function V0(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function gc(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function U0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Rt(t)&&(n[""]=e)}}function $0(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=er(o.type)),s=new ko(i,Rt(o),w);e.blueprint[r]=s,n[r]=s,function P0(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function k0(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,ni(e,n,o.hostVars,j),o)}function G0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)Nm(r,n,s[a++],s[a++],s[a++])}function Nm(e,t,n,r,o){const i=ke(null);try{null!==e.setInput?e.setInput(t,o,n,r):t[r]=o}finally{ke(i)}}function q0(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function Rm(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function Om(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];rl(n[r]),s.contentQueries(2,t[i],i)}}}function Js(e,t){return e[Ro]?e[ep][Nt]=t:e[Ro]=t,e[ep]=t,t}function yc(e,t,n){rl(0);const r=ke(null);try{t(e,n)}finally{ke(r)}}function km(e,t){const n=e[wr],r=n?n.get(ir,null):null;r&&r.handleError(t)}function vc(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++];Nm(e.data[s],t[s],r,a,o)}}function W0(e,t){const n=it(t,e),r=n[E];!function Z0(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[Ie];null!==o&&null===n[pn]&&(n[pn]=tm(o,n[wr])),Dc(r,n,n[ye])}function Dc(e,t,n){ol(t);try{const r=e.viewQuery;null!==r&&yc(1,r,n);const o=e.template;null!==o&&Em(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Om(e,t),e.staticViewQueries&&yc(2,e.viewQuery,n);const i=e.components;null!==i&&function Q0(e,t){for(let n=0;n<t.length;n++)W0(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[U]&=-5,il()}}let Lm=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new DS(n,l=>{this.all.has(l)&&this.queue.set(l,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e}),e})();function Xs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Ou(o,a):2==i&&(r=Ou(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ri(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(de(i)),rt(i)){for(let a=Be;a<i.length;a++){const u=i[a],l=u[E].firstChild;null!==l&&ri(u[E],u,l,r)}i[Gt]!==i[Ie]&&r.push(i[Gt])}const s=n.type;if(8&s)ri(e,t,n.child,r);else if(32&s){const a=Sl(n,t);let u;for(;u=a();)r.push(u)}else if(16&s){const a=Sg(t,n);if(Array.isArray(a))r.push(...a);else{const u=$o(t[we]);ri(u[E],u,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function ea(e,t,n,r=!0){const o=t[Jn].rendererFactory;o.begin&&o.begin();try{ta(e,t,e.template,n)}catch(s){throw r&&km(t,s),s}finally{o.end&&o.end(),t[Jn].effectManager?.flush()}}function ta(e,t,n,r){const o=t[U];if(256!=(256&o)){t[Jn].effectManager?.flush(),ol(t);try{mp(t),function bp(e){return F.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Em(e,t,n,2,r);const s=3==(3&o);if(s){const l=e.preOrderCheckHooks;null!==l&&ys(t,l,null)}else{const l=e.preOrderHooks;null!==l&&vs(t,l,0,null),sl(t,0)}if(function tA(e){for(let t=Ml(e);null!==t;t=Il(t)){if(!t[np])continue;const n=t[Sr];for(let r=0;r<n.length;r++){TS(n[r])}}}(t),function eA(e){for(let t=Ml(e);null!==t;t=Il(t))for(let n=Be;n<t.length;n++){const r=t[n],o=r[E];ps(r)&&ta(o,r,o.template,r[ye])}}(t),null!==e.contentQueries&&Om(e,t),s){const l=e.contentCheckHooks;null!==l&&ys(t,l)}else{const l=e.contentHooks;null!==l&&vs(t,l,1),sl(t,1)}!function E0(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=pm(t,as);try{for(let o=0;o<n.length;o++){const i=n[o];if(i<0)tr(~i);else{const s=i,a=n[++o],u=n[++o];US(a,s),r.runInContext(u,2,t[s])}}}finally{null===t[as]&&gm(t,as),tr(-1)}}(e,t);const a=e.components;null!==a&&function rA(e,t){for(let n=0;n<t.length;n++)nA(e,t[n])}(t,a);const u=e.viewQuery;if(null!==u&&yc(2,u,r),s){const l=e.viewCheckHooks;null!==l&&ys(t,l)}else{const l=e.viewHooks;null!==l&&vs(t,l,2),sl(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[U]&=-73,yp(t)}finally{il()}}}function nA(e,t){const n=it(t,e);if(ps(n)){const r=n[E];80&n[U]?ta(r,n,r.template,n[ye]):n[Kn]>0&&_c(n)}}function _c(e){for(let r=Ml(e);null!==r;r=Il(r))for(let o=Be;o<r.length;o++){const i=r[o];if(ps(i))if(1024&i[U]){const s=i[E];ta(s,i,s.template,i[ye])}else i[Kn]>0&&_c(i)}const n=e[E].components;if(null!==n)for(let r=0;r<n.length;r++){const o=it(n[r],e);ps(o)&&o[Kn]>0&&_c(o)}}class oi{get rootNodes(){const t=this._lView,n=t[E];return ri(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ye]}set context(t){this._lView[ye]=t}get destroyed(){return 256==(256&this._lView[U])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[pe];if(rt(t)){const n=t[us],r=n?n.indexOf(this):-1;r>-1&&(Tl(t,r),Ss(n,r))}this._attachedToViewContainer=!1}yg(this._lView[E],this._lView)}onDestroy(t){!function Dp(e,t){if(256==(256&e[U]))throw new C(911,!1);null===e[On]&&(e[On]=[]),e[On].push(t)}(this._lView,t)}markForCheck(){ti(this._cdRefInjectingView||this._lView)}detach(){this._lView[U]&=-129}reattach(){this._lView[U]|=128}detectChanges(){ea(this._lView[E],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function JM(e,t){Go(e,t,t[B],2,null,null)}(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class oA extends oi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ea(t[E],t,t[ye],!1)}checkNoChanges(){}get context(){return null}}class Vm extends Zs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=K(t);return new ii(n,this.ngModule)}}function Bm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class sA{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=rs(r);const o=this.injector.get(t,ac,r);return o!==ac||n===ac?o:this.parentInjector.get(t,n,r)}}class ii extends om{get inputs(){return Bm(this.componentDef.inputs)}get outputs(){return Bm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function tS(e){return e.map(eS).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof vn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new sA(t,i):t,a=s.get(sm,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(u0,null),effectManager:s.get(Lm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function S0(e,t,n,r){const i=r.get(lm,!1)||n===ct.ShadowDom,s=e.selectRootElement(t,i);return function M0(e){Sm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Fs(d,f,function iA(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,g=hc(0,null,null,1,0,null,null,null,null,null,null),y=Ks(null,g,null,p,null,null,c,d,s,null,null);let _,m;ol(y);try{const S=this.componentDef;let x,G=null;S.findHostDirectiveDefs?(x=[],G=new Map,S.findHostDirectiveDefs(S,x,G),x.push(S)):x=[S];const jt=function uA(e,t){const n=e[E],r=q;return e[r]=t,zr(n,r,2,"#host",null)}(y,h),GE=function lA(e,t,n,r,o,i,s){const a=o[E];!function cA(e,t,n,r){for(const o of e)t.mergedAttrs=No(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Xs(t,t.mergedAttrs,!0),null!==n&&Tg(r,n,t))}(r,e,t,s);let u=null;null!==t&&(u=tm(t,o[wr]));const l=i.rendererFactory.createRenderer(t,n),c=Ks(o,bm(n),null,n.onPush?64:16,o[e.index],e,i,l,null,null,u);return a.firstCreatePass&&gc(a,e,r.length-1),Js(o,c),o[e.index]=c}(jt,h,S,x,y,c,d);m=gp(g,q),h&&function fA(e,t,n,r){if(r)Hu(e,n,["ng-version",l0.full]);else{const{attrs:o,classes:i}=function nS(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Tt(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&Hu(e,n,o),i&&i.length>0&&Ag(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function hA(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(m,this.ngContentSelectors,n),_=function dA(e,t,n,r,o,i){const s=je(),a=o[E],u=ot(s,o);Am(a,o,s,n,null,r);for(let c=0;c<n.length;c++)Ge(nr(o,a,s.directiveStart+c,s),o);Tm(a,o,s),u&&Ge(u,o);const l=nr(o,a,s.directiveStart+s.componentOffset,s);if(e[ye]=o[ye]=l,null!==i)for(const c of i)c(l,t);return cc(a,s,e),l}(GE,S,x,G,y,[pA]),Dc(g,y,null)}finally{il()}return new aA(this.componentType,_,Hr(m,y),y,m)}}class aA extends t0{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new oA(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;vc(i[E],i,o,t,n),this.previousInputValues.set(t,n),ti(it(this._tNode.index,i))}}get injector(){return new Nr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function pA(){const e=je();ms(D()[E],e)}function te(e){let t=function jm(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Rt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=Cc(e.inputs),s.declaredInputs=Cc(e.declaredInputs),s.outputs=Cc(e.outputs);const a=o.hostBindings;a&&vA(e,a);const u=o.viewQuery,l=o.contentQueries;if(u&&mA(e,u),l&&yA(e,l),Ru(e.inputs,o.inputs),Ru(e.declaredInputs,o.declaredInputs),Ru(e.outputs,o.outputs),Rt(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===te&&(n=!1)}}t=Object.getPrototypeOf(t)}!function gA(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=No(o.hostAttrs,n=No(n,o.hostAttrs))}}(r)}function Cc(e){return e===dn?{}:e===Q?[]:e}function mA(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function yA(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function vA(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function na(e){return!!wc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function wc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function qe(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function qr(e,t,n,r){return qe(e,Ar(),n)?t+L(n)+r:j}function ci(e,t,n,r,o,i,s,a){const u=D(),l=Z(),c=e+q,d=l.firstCreatePass?function $A(e,t,n,r,o,i,s,a,u){const l=t.consts,c=zr(t,e,4,s||null,xn(l,a));pc(t,n,c,xn(l,u)),ms(t,c);const d=c.tView=hc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];Zt(d,!1);const f=ny(l,u,d,e);gs()&&ks(l,u,f,d),Ge(f,u),Js(u,u[c]=Rm(f,u,f,d)),ls(d)&&dc(l,u,d),null!=s&&fc(u,d,a)}let ny=function ry(e,t,n,r){return Fn(!0),t[B].createComment("")};function He(e,t,n){const r=D();return qe(r,Ar(),t)&>(Z(),ge(),r,e,t,r[B],n,!1),He}function Ac(e,t,n,r,o){const s=o?"class":"style";vc(e,n,t.inputs[s],s,r)}function W(e,t,n,r){const o=D(),i=Z(),s=q+e,a=o[B],u=i.firstCreatePass?function ZA(e,t,n,r,o,i){const s=t.consts,u=zr(t,e,2,r,xn(s,o));return pc(t,n,u,xn(s,i)),null!==u.attrs&&Xs(u,u.attrs,!1),null!==u.mergedAttrs&&Xs(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,t,n,r):i.data[s],l=oy(i,o,u,a,t,e);o[s]=l;const c=ls(u);return Zt(u,!0),Tg(a,l,u),32!=(32&u.flags)&&gs()&&ks(i,o,l,u),0===function RS(){return F.lFrame.elementDepthCount}()&&Ge(l,o),function OS(){F.lFrame.elementDepthCount++}(),c&&(dc(i,o,u),cc(i,u,o)),null!==r&&fc(o,u),W}function Y(){let e=je();Xu()?function el(){F.lFrame.isParent=!1}():(e=e.parent,Zt(e,!1));const t=e;(function FS(e){return F.skipHydrationRootTNode===e})(t)&&function VS(){F.skipHydrationRootTNode=null}(),function xS(){F.lFrame.elementDepthCount--}();const n=Z();return n.firstCreatePass&&(ms(n,e),zu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function XS(e){return 0!=(8&e.flags)}(t)&&Ac(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function eM(e){return 0!=(16&e.flags)}(t)&&Ac(n,t,D(),t.stylesWithoutHost,!1),Y}function kn(e,t,n,r){return W(e,t,n,r),Y(),kn}let oy=(e,t,n,r,o,i)=>(Fn(!0),Fs(r,o,function Op(){return F.lFrame.currentNamespace}()));function di(e){return!!e&&"function"==typeof e.then}function uy(e){return!!e&&"function"==typeof e.subscribe}function ue(e,t,n,r){const o=D(),i=Z(),s=je();return function cy(e,t,n,r,o,i,s){const a=ls(r),l=e.firstCreatePass&&function Fm(e){return e.cleanup||(e.cleanup=[])}(e),c=t[ye],d=function xm(e){return e[Cr]||(e[Cr]=[])}(t);let f=!0;if(3&r.type||s){const g=ot(r,t),y=s?s(g):g,_=d.length,m=s?x=>s(de(x[r.index])):r.index;let S=null;if(!s&&a&&(S=function eT(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[Cr],u=o[i+2];return a.length>u?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=fy(r,t,c,i,!1);const x=n.listen(y,o,i);d.push(i,x),l&&l.push(o,m,_,_+1)}}else i=fy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let y=0;y<g;y+=2){const G=t[p[y]][p[y+1]].subscribe(i),jt=d.length;d.push(i,G),l&&l.push(o,r.index,jt,-(jt+1))}}}(i,o,o[B],s,e,t,r),ue}function dy(e,t,n,r){try{return Wt(6,t,n),!1!==n(r)}catch(o){return km(e,o),!1}finally{Wt(7,t,n)}}function fy(e,t,n,r,o){return function i(s){if(s===Function)return r;ti(e.componentOffset>-1?it(e.index,t):t);let u=dy(t,n,r,s),l=i.__ngNextListenerFn__;for(;l;)u=dy(t,n,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Rc(e=1){return function zS(e){return(F.lFrame.contextLView=function GS(e,t){for(;e>0;)t=t[Er],e--;return t}(e,F.lFrame.contextLView))[ye]}(e)}function Oc(e,t,n){return xc(e,"",t,"",n),Oc}function xc(e,t,n,r,o){const i=D(),s=qr(i,t,n,r);return s!==j&>(Z(),ge(),i,e,s,i[B],o,!1),xc}function aa(e,t){return e<<17|t<<2}function Ln(e){return e>>17&32767}function Fc(e){return 2|e}function ar(e){return(131068&e)>>2}function Pc(e,t){return-131069&e|t<<2}function kc(e){return 1|e}function Cy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Ln(i):ar(i),u=!1;for(;0!==a&&(!1===u||s);){const c=e[a+1];lT(e[a],t)&&(u=!0,e[a+1]=r?kc(c):Fc(c)),a=r?Ln(c):ar(c)}u&&(e[n+1]=r?Fc(i):kc(i))}function lT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pr(e,t)>=0}function ua(e,t){return function Ot(e,t,n,r){const o=D(),i=Z(),s=function mn(e){const t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Ny(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Qe()],s=function Ty(e,t){return t>=e.expandoStartIndex}(e,n);(function Fy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function vT(e,t,n,r){const o=function nl(e){const t=F.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=fi(n=Lc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Lc(o,e,t,n,r),null===i){let u=function DT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ar(r))return e[Ln(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Lc(null,e,t,u[1],r),u=fi(u,t.attrs,r),function _T(e,t,n,r){e[Ln(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function CT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=fi(r,e[i].hostAttrs,n);return fi(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function aT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ln(s),u=ar(s);e[r]=n;let c,l=!1;if(Array.isArray(n)?(c=n[1],(null===c||Pr(n,c)>0)&&(l=!0)):c=n,o)if(0!==u){const f=Ln(e[a+1]);e[r+1]=aa(f,a),0!==f&&(e[f+1]=Pc(e[f+1],r)),e[a+1]=function iT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=aa(a,0),0!==a&&(e[a+1]=Pc(e[a+1],r)),a=r;else e[r+1]=aa(u,0),0===a?a=r:e[u+1]=Pc(e[u+1],r),u=r;l&&(e[r+1]=Fc(e[r+1])),Cy(e,c,r,!0),Cy(e,c,r,!1),function uT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Pr(i,t)>=0&&(n[r+1]=kc(n[r+1]))}(t,c,e,r,i),s=aa(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==j&&qe(o,s,t)&&function Oy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1],c=function sT(e){return 1==(1&e)}(l)?xy(u,t,n,o,ar(l),s):void 0;la(c)||(la(i)||function oT(e){return 2==(2&e)}(l)&&(i=xy(u,null,n,o,a,s)),function uI(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:st.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st.Important),e.setStyle(n,r,o,i))}}(r,s,hs(Qe(),n),o,i))}(i,i.data[Qe()],o,o[B],e,o[s+1]=function ST(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(Pn(e)))),e}(t,n),r,s)}(e,t,null,!0),ua}function Lc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=fi(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function fi(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ht(e,s,!!n||t[++i]))}return void 0===e?null:e}function xy(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===j&&(f=d?Q:void 0);let h=d?pl(f,r):c===r?f:void 0;if(l&&!la(h)&&(h=pl(u,r)),la(h)&&(a=h,s))return a;const p=e[o+1];o=s?Ln(p):ar(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=pl(u,r))}return a}function la(e){return void 0!==e}function Re(e,t=""){const n=D(),r=Z(),o=e+q,i=r.firstCreatePass?zr(r,o,1,t,null):r.data[o],s=Py(r,n,i,t,e);n[o]=s,gs()&&ks(r,n,s,i),Zt(i,!1)}let Py=(e,t,n,r,o)=>(Fn(!0),function xs(e,t){return e.createText(t)}(t[B],r));function ca(e){return Vc("",e,""),ca}function Vc(e,t,n){const r=D(),o=qr(r,e,t,n);return o!==j&&function Cn(e,t,n){const r=hs(t,e);!function gg(e,t,n){e.setValue(t,n)}(e[B],r,n)}(r,Qe(),o),Vc}const no="en-US";let rv=no;function Uc(e,t,n,r,o){if(e=k(e),Array.isArray(e))for(let i=0;i<e.length;i++)Uc(e[i],t,n,r,o);else{const i=Z(),s=D();let a=or(e)?e:k(e.provide),u=Yg(e);const l=je(),c=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(or(e)||!e.multi){const h=new ko(u,o,w),p=$c(a,t,o?c:c+f,d);-1===p?(dl(ws(l,s),i,a),Hc(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=$c(a,t,c+f,d),p=$c(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){dl(ws(l,s),i,a);const _=function GN(e,t,n,r,o){const i=new ko(e,n,w);return i.multi=[],i.index=t,i.componentProviders=0,Av(i,o,r&&!n),i}(o?zN:$N,n.length,o,r,u);!o&&y&&(n[p].providerFactory=_),Hc(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else Hc(i,e,h>-1?h:p,Av(n[o?p:h],u,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function Hc(e,t,n,r){const o=or(t),i=function VI(e){return!!e.useClass}(t);if(o||i){const u=(i?k(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Av(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function $c(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function $N(e,t,n,r){return zc(this.multi,[])}function zN(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=nr(n,n[E],this.providerFactory.index,r);i=a.slice(0,s),zc(o,i);for(let u=s;u<a.length;u++)i.push(a[u])}else i=[],zc(o,i);return i}function zc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function fe(e,t=[]){return n=>{n.providersResolver=(r,o)=>function HN(e,t,n){const r=Z();if(r.firstCreatePass){const o=Rt(e);Uc(n,r.data,r.blueprint,o,!0),Uc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class ro{}class Tv{}class Gc extends ro{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Vm(this);const o=dt(t);this._bootstrapComponents=_n(o.bootstrap),this._r3Injector=Cm(t,n,[{provide:ro,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver},...r],Me(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class qc extends Tv{constructor(t){super(),this.moduleType=t}create(t){return new Gc(this.moduleType,t,[])}}class Nv extends ro{constructor(t){super(),this.componentFactoryResolver=new Vm(this),this.instance=null;const n=new Zl([...t.providers,{provide:ro,useValue:this},{provide:Zs,useValue:this.componentFactoryResolver}],t.parent||Hs(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Wc(e,t,n=null){return new Nv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let ZN=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=qg(0,n.type),o=r.length>0?Wc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(R(vn))}),e})();function Rv(e){e.getStandaloneInjector=t=>t.get(ZN).getOrCreateStandaloneInjector(e)}function Qc(e){return t=>{setTimeout(e,void 0,t)}}const le=class _R extends un{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Qc(i),o&&(o=Qc(o)),s&&(s=Qc(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof yt&&t.add(a),a}};let wn=(()=>{class e{}return e.__NG_ELEMENT_ID__=bR,e})();const wR=wn,ER=class extends wR{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=Ks(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Oo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[zt];return null!==a&&(i[zt]=a.createEmbeddedView(o)),Dc(o,i,t),new oi(i)}};function bR(){return function ga(e,t){return 4&e.type?new ER(t,e,Hr(e,t)):null}(je(),D())}let Ft=(()=>{class e{}return e.__NG_ELEMENT_ID__=RR,e})();function RR(){return function Zv(e,t){let n;const r=t[e.index];return rt(r)?n=r:(n=Rm(r,t,null,e),t[e.index]=n,Js(t,n)),Qv(n,t,e,r),new qv(n,e,t)}(je(),D())}const OR=Ft,qv=class extends OR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Hr(this._hostTNode,this._hostLView)}get injector(){return new Nr(this._hostTNode,this._hostLView)}get parentInjector(){const t=cl(this._hostTNode,this._hostLView);if(kp(t)){const n=_s(t,this._hostLView),r=Ds(t);return new Nr(n[E].data[r+8],n)}return new Nr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Wv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Be}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function Vo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}const u=s?t:new ii(K(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const y=(s?l:this.parentInjector).get(vn,null);y&&(i=y)}K(u.componentType??{});const h=u.create(l,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[E];if(function AS(e){return rt(e[pe])}(o)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const l=o[pe],c=new qv(l,l[ze],l[pe]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function eI(e,t,n,r){const o=Be+r,i=n.length;r>0&&(n[o-1][Nt]=t),r<i-Be?(t[Nt]=n[o],Zp(n,Be+r,t)):(n.push(t),t[Nt]=null),t[pe]=n;const s=t[Oo];null!==s&&n!==s&&function tI(e,t){const n=e[Sr];t[we]!==t[pe][pe][we]&&(e[np]=!0),null===n?e[Sr]=[t]:n.push(t)}(s,t);const a=t[zt];null!==a&&a.insertView(e),t[U]|=128}(i,o,a,s),!r){const u=xl(s,a),l=o[B],c=Ps(l,a[Gt]);null!==c&&function KM(e,t,n,r,o,i){r[Ie]=o,r[ze]=t,Go(e,r,n,1,o,i)}(i,a[ze],l,o,c,u)}return t.attachToViewContainerRef(),Zp(Jc(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Wv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Tl(this._lContainer,n);r&&(Ss(Jc(this._lContainer),n),yg(r[E],r))}detach(t){const n=this._adjustIndex(t,-1),r=Tl(this._lContainer,n);return r&&null!=Ss(Jc(this._lContainer),n)?new oi(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Wv(e){return e[us]}function Jc(e){return e[us]||(e[us]=[])}let Qv=function Yv(e,t,n,r){if(e[Gt])return;let o;o=8&n.type?de(r):function xR(e,t){const n=e[B],r=n.createComment(""),o=ot(t,e);return rr(n,Ps(n,o),r,function iI(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Gt]=o};const ld=new I("Application Initializer");let cd=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=M(ld,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(di(i))n.push(i);else if(uy(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),CD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const En=new I("LocaleId",{providedIn:"root",factory:()=>M(En,N.Optional|N.SkipSelf)||function cO(){return typeof $localize<"u"&&$localize.locale||no}()});class fO{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let wD=(()=>{class e{compileModuleSync(n){return new qc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=_n(dt(n).declarations).reduce((s,a)=>{const u=K(a);return u&&s.push(new ii(u)),s},[]);return new fO(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const gO=(()=>Promise.resolve(0))();function dd(e){typeof Zone>"u"?gO.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function SD(...e){}class he{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function mO(){let e=ae.requestAnimationFrame,t=ae.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function DO(e){const t=()=>{!function vO(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ae,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,hd(e),e.isCheckStableRunning=!0,fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),hd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return MD(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),ID(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return MD(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),ID(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,hd(e),fd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!he.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(he.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,yO,SD,SD);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const yO={};function fd(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 MD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ID(e){e._nesting--,fd(e)}class _O{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const AD=new I("",{providedIn:"root",factory:TD});function TD(){const e=M(he);let t=!0;return function Ib(...e){const t=Mo(e),n=function _b(e,t){return"number"==typeof Tu(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?vt(r[0]):vr(n)(Pe(r,t)):Ut}(new Ce(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new Ce(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{he.assertNotInAngularZone(),dd(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{he.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function Ab(e={}){const{connector:t=(()=>new un),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,l=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,c=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Le((g,y)=>{l++,!d&&!c&&f();const _=u=u??t();y.add(()=>{l--,0===l&&!d&&!c&&(a=Nu(p,o))}),_.subscribe(y),!s&&l>0&&(s=new So({next:m=>_.next(m),error:m=>{d=!0,f(),a=Nu(h,n,m),_.error(m)},complete:()=>{c=!0,f(),a=Nu(h,r),_.complete()}}),vt(g).subscribe(s))})(i)}}()))}const ND=new I(""),ya=new I("");let md,pd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,md||(function CO(e){md=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{he.assertNotInAngularZone(),dd(()=>{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())dd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(R(he),R(gd),R(ya))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),gd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return md?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Vn=null;const RD=new I("AllowMultipleToken"),yd=new I("PlatformDestroyListeners"),vd=new I("appBootstrapListener");class xD{constructor(t,n){this.name=t,this.token=n}}function PD(e,t,n=[]){const r=`Platform: ${t}`,o=new I(r);return(i=[])=>{let s=Dd();if(!s||s.injector.get(RD,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function bO(e){if(Vn&&!Vn.get(RD,!1))throw new C(400,!1);(function OD(){!function yS(e){up=e}(()=>{throw new C(600,!1)})})(),Vn=e;const t=e.get(LD);(function FD(e){e.get(Kg,null)?.forEach(n=>n())})(e)}(function kD(e=[],t){return Yt.create({name:t,providers:[{provide:ql,useValue:"platform"},{provide:yd,useValue:new Set([()=>Vn=null])},...e]})}(a,r))}return function MO(e){const t=Dd();if(!t)throw new C(401,!1);return t}()}}function Dd(){return Vn?.get(LD)??null}let LD=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function IO(e="zone.js",t){return"noop"===e?new _O:"zone.js"===e?new he(t):e}(r?.ngZone,function VD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function WN(e,t,n){return new Gc(e,t,n)}(n.moduleType,this.injector,function $D(e){return[{provide:he,useFactory:e},{provide:Yo,multi:!0,useFactory:()=>{const t=M(TO,{optional:!0});return()=>t.initialize()}},{provide:HD,useFactory:AO},{provide:AD,useFactory:TD}]}(()=>o)),s=i.injector.get(ir,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{va(this._modules,i),a.unsubscribe()})}),function BD(e,t,n){try{const r=n();return di(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(cd);return a.runInitializers(),a.donePromise.then(()=>(function ov(e){Dt(e,"Expected localeId to be defined"),"string"==typeof e&&(rv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(En,no)||no),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=jD({},r);return function wO(e,t,n){const r=new qc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(so);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(yd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(R(Yt))},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function jD(e,t){return Array.isArray(t)?t.reduce(jD,e):{...e,...t}}let so=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(HD),this.componentTypes=[],this.components=[],this.isStable=M(AD),this._injector=M(vn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof om;if(!this._injector.get(cd).done)throw!o&&function _r(e){const t=K(e)||$e(e)||nt(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(Zs).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function EO(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ro),l=s.create(Yt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(ND,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),va(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;va(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(vd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>va(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function va(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const HD=new I("",{providedIn:"root",factory:()=>M(ir).handleError.bind(void 0)});function AO(){const e=M(he),t=M(ir);return n=>e.runOutsideAngular(()=>t.handleError(n))}let TO=(()=>{class e{constructor(){this.zone=M(he),this.applicationRef=M(so)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Da=(()=>{class e{}return e.__NG_ELEMENT_ID__=RO,e})();function RO(e){return function OO(e,t,n){if(Xn(e)&&!n){const r=it(e.index,t);return new oi(r,r)}return 47&e.type?new oi(t[we],t):null}(je(),D(),16==(16&e))}class WD{constructor(){}supports(t){return na(t)}create(t){return new VO(t)}}const LO=(e,t)=>t;class VO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||LO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<QD(r,o,i)?n:r,a=QD(s,o,i),u=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const l=a-o,c=u-o;if(l!=c){for(let f=0;f<l;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<l&&(i[f]=h+1)}i[s.previousIndex]=c-l}}a!==u&&t(s,a,u)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!na(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function SA(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new BO(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new ZD),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ZD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class BO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class jO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class ZD{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new jO,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function QD(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class YD{constructor(){}supports(t){return t instanceof Map||wc(t)}create(){return new UO}}class UO{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||wc(t)))throw new C(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new HO(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class HO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function KD(){return new wa([new WD])}let wa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||KD()),deps:[[e,new As,new Is]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=T({token:e,providedIn:"root",factory:KD}),e})();function JD(){return new Ci([new YD])}let Ci=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||JD()),deps:[[e,new As,new Is]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new C(901,!1)}}return e.\u0275prov=T({token:e,providedIn:"root",factory:JD}),e})();const GO=PD(null,"core",[]);let qO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(R(so))},e.\u0275mod=$t({type:e}),e.\u0275inj=At({}),e})(),o_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=M(he),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Md=null;function Bn(){return Md}class ox{}const Et=new I("DocumentToken");let Id=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return M(sx)},providedIn:"platform"}),e})();const ix=new I("Location Initialized");let sx=(()=>{class e extends Id{constructor(){super(),this._doc=M(Et),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Bn().getBaseHref(this._doc)}onPopState(n){const r=Bn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Bn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Ad(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function s_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function bn(e){return e&&"?"!==e[0]?"?"+e:e}let cr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return M(u_)},providedIn:"root"}),e})();const a_=new I("appBaseHref");let u_=(()=>{class e extends cr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??M(Et).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ad(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+bn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+bn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+bn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Id),R(a_,8))},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ax=(()=>{class e extends cr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Ad(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+bn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Id),R(a_,8))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})(),Td=(()=>{class e{constructor(n){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function cx(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(s_(l_(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+bn(r))}normalize(n){return e.stripTrailingSlash(function lx(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,l_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+bn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+bn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=bn,e.joinWithSlash=Ad,e.stripTrailingSlash=s_,e.\u0275fac=function(n){return new(n||e)(R(cr))},e.\u0275prov=T({token:e,factory:function(){return function ux(){return new Td(R(cr))}()},providedIn:"root"}),e})();function l_(e){return e.replace(/\/index.html$/,"")}const Bd=/\s+/,v_=[];let D_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=v_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(Bd):v_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(Bd):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(Bd).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(w(wa),w(Ci),w(pt),w(Dn))},e.\u0275dir=P({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Qx{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let C_=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new Qx(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),w_(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{w_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(w(Ft),w(wn),w(wa))},e.\u0275dir=P({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function w_(e,t){e.context.$implicit=t.item}let E_=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Yx,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){b_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){b_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(w(Ft),w(wn))},e.\u0275dir=P({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Yx{constructor(){this.$implicit=null,this.ngIf=null}}function b_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Me(t)}'.`)}let CF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=At({}),e})();function A_(e){return"server"===e}let SF=(()=>{class e{}return e.\u0275prov=T({token:e,providedIn:"root",factory:()=>new MF(R(Et),window)}),e})();class MF{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function IF(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=T_(this.window.history)||T_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function T_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class tP extends ox{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class qd extends tP{static makeCurrent(){!function rx(e){Md||(Md=e)}(new qd)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function nP(){return Si=Si||document.querySelector("base"),Si?Si.getAttribute("href"):null}();return null==n?null:function rP(e){Pa=Pa||document.createElement("a"),Pa.setAttribute("href",e);const t=Pa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Si=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function Wx(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Pa,Si=null,iP=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();const Wd=new I("EventManagerPlugins");let F_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(R(Wd),R(he))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();class P_{constructor(t){this._doc=t}}const Zd="ng-app-id";let k_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=A_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${Zd}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(Zd),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Zd,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(R(Et),R($s),R(Jg,8),R(Ur))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();const Qd={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/"},Yd=/%COMP%/g,lP=new I("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function V_(e,t){return t.map(n=>n.replace(Yd,e))}let B_=(()=>{class e{constructor(n,r,o,i,s,a,u,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=A_(a),this.defaultRenderer=new Kd(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ct.ShadowDom&&(r={...r,encapsulation:ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof U_?o.applyToHost(n):o instanceof Jd&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case ct.Emulated:i=new U_(u,l,r,this.appId,c,s,a,d);break;case ct.ShadowDom:return new hP(u,l,n,r,s,a,this.nonce,d);default:i=new Jd(u,l,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(R(F_),R(k_),R($s),R(lP),R(Et),R(Ur),R(he),R(Jg))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();class Kd{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Qd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(j_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(j_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new C(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=Qd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Qd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(st.DashCase|st.Important)?t.style.setProperty(n,r,o&st.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&st.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Bn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function j_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class hP extends Kd{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=V_(o.id,o.styles);for(const c of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Jd extends Kd{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=u?V_(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class U_ extends Jd{constructor(t,n,r,o,i,s,a,u){const l=o+"-"+r.id;super(t,n,r,i,s,a,u,l),this.contentAttr=function cP(e){return"_ngcontent-%COMP%".replace(Yd,e)}(l),this.hostAttr=function dP(e){return"_nghost-%COMP%".replace(Yd,e)}(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let pP=(()=>{class e extends P_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(R(Et))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();const H_=["alt","control","meta","shift"],gP={"\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"},mP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yP=(()=>{class e extends P_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),H_.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=gP[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),H_.forEach(s=>{s!==o&&(0,mP[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(R(Et))},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();const z_=[{provide:Ur,useValue:"browser"},{provide:Kg,useValue:function vP(){qd.makeCurrent()},multi:!0},{provide:Et,useFactory:function _P(){return function hI(e){kl=e}(document),document},deps:[]}],CP=PD(GO,"browser",z_),wP=new I(""),G_=[{provide:ya,useClass:class oP{addToWindow(t){ae.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},ae.getAllAngularTestabilities=()=>t.getAllTestabilities(),ae.getAllAngularRootElements=()=>t.getAllRootElements(),ae.frameworkStabilizers||(ae.frameworkStabilizers=[]),ae.frameworkStabilizers.push(r=>{const o=ae.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Bn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:ND,useClass:pd,deps:[he,gd,ya]},{provide:pd,useClass:pd,deps:[he,gd,ya]}],q_=[{provide:ql,useValue:"root"},{provide:ir,useFactory:function DP(){return new ir},deps:[]},{provide:Wd,useClass:pP,multi:!0,deps:[Et,he,Ur]},{provide:Wd,useClass:yP,multi:!0,deps:[Et]},B_,k_,F_,{provide:sm,useExisting:B_},{provide:class AF{},useClass:iP,deps:[]},[]];let EP=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:$s,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(R(wP,12))},e.\u0275mod=$t({type:e}),e.\u0275inj=At({providers:[...q_,...G_],imports:[CF,qO]}),e})(),W_=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(R(Et))},e.\u0275prov=T({token:e,factory:function(n){let r=null;return r=n?new n:function SP(){return new W_(R(Et))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:NP}=Array,{getPrototypeOf:RP,prototype:OP,keys:xP}=Object;function K_(e){if(1===e.length){const t=e[0];if(NP(t))return{args:t,keys:null};if(function FP(e){return e&&"object"==typeof e&&RP(e)===OP}(t)){const n=xP(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:PP}=Array;function J_(e){return ie(t=>function kP(e,t){return PP(t)?e(...t):e(t)}(e,t))}function X_(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let eC=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(w(Dn),w(pt))},e.\u0275dir=P({type:e}),e})(),dr=(()=>{class e extends eC{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ue(e)))(r||e)}}(),e.\u0275dir=P({type:e,features:[te]}),e})();const nn=new I("NgValueAccessor"),BP={provide:nn,useExisting:se(()=>ka),multi:!0},UP=new I("CompositionEventMode");let ka=(()=>{class e extends eC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jP(){const e=Bn()?Bn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(w(Dn),w(pt),w(UP,8))},e.\u0275dir=P({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&ue("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[fe([BP]),te]}),e})();const We=new I("NgValidators"),Hn=new I("NgAsyncValidators");function dC(e){return null!=e}function fC(e){return di(e)?Pe(e):e}function hC(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function pC(e,t){return t.map(n=>n(e))}function gC(e){return e.map(t=>function $P(e){return!e.validate}(t)?t:n=>t.validate(n))}function ef(e){return null!=e?function mC(e){if(!e)return null;const t=e.filter(dC);return 0==t.length?null:function(n){return hC(pC(n,t))}}(gC(e)):null}function tf(e){return null!=e?function yC(e){if(!e)return null;const t=e.filter(dC);return 0==t.length?null:function(n){return function LP(...e){const t=Th(e),{args:n,keys:r}=K_(e),o=new Ce(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let u=s,l=s;for(let c=0;c<s;c++){let d=!1;vt(n[c]).subscribe(Fe(i,f=>{d||(d=!0,l--),a[c]=f},()=>u--,void 0,()=>{(!u||!d)&&(l||i.next(r?X_(r,a):a),i.complete())}))}});return t?o.pipe(J_(t)):o}(pC(n,t).map(fC)).pipe(ie(hC))}}(gC(e)):null}function vC(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function nf(e){return e?Array.isArray(e)?e:[e]:[]}function Va(e,t){return Array.isArray(e)?e.includes(t):e===t}function CC(e,t){const n=nf(t);return nf(e).forEach(o=>{Va(n,o)||n.push(o)}),n}function wC(e,t){return nf(t).filter(n=>!Va(e,n))}class EC{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ef(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=tf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class Je extends EC{get formDirective(){return null}get path(){return null}}class $n extends EC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bC{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let SC=(()=>{class e extends bC{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(w($n,2))},e.\u0275dir=P({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ua("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[te]}),e})(),MC=(()=>{class e extends bC{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(w(Je,10))},e.\u0275dir=P({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ua("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[te]}),e})();const Mi="VALID",ja="INVALID",uo="PENDING",Ii="DISABLED";function af(e){return(Ua(e)?e.validators:e)||null}function uf(e,t){return(Ua(t)?t.asyncValidators:e)||null}function Ua(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class NC{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Mi}get invalid(){return this.status===ja}get pending(){return this.status==uo}get disabled(){return this.status===Ii}get enabled(){return this.status!==Ii}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(CC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(CC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(wC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(wC(t,this._rawAsyncValidators))}hasValidator(t){return Va(this._rawValidators,t)}hasAsyncValidator(t){return Va(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=uo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ii,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Mi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mi||this.status===uo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ii:Mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=uo,this._hasOwnPendingAsyncValidator=!0;const n=fC(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?Ii:this.errors?ja:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uo)?uo:this._anyControlsHaveStatus(ja)?ja:Mi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ua(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function WP(e){return Array.isArray(e)?ef(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function ZP(e){return Array.isArray(e)?tf(e):e||null}(this._rawAsyncValidators)}}class lf extends NC{constructor(t,n,r){super(af(n),uf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function TC(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new C(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function AC(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const lo=new I("CallSetDisabledState",{providedIn:"root",factory:()=>Ha}),Ha="always";function Ai(e,t,n=Ha){cf(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function KP(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&RC(e,t)})}(e,t),function XP(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function JP(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&RC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function YP(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ga(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function cf(e,t){const n=function DC(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(vC(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function _C(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(vC(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Ga(t._rawValidators,o),Ga(t._rawAsyncValidators,o)}function RC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const o1={provide:Je,useExisting:se(()=>Wa)},Ti=(()=>Promise.resolve())();let Wa=(()=>{class e extends Je{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new le,this.form=new lf({},ef(n),tf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ti.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Ai(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ti.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ti.then(()=>{const r=this._findContainer(n.path),o=new lf({});(function OC(e,t){cf(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ti.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ti.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function xC(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(w(We,10),w(Hn,10),w(lo,8))},e.\u0275dir=P({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&ue("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[fe([o1]),te]}),e})();function FC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function PC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const kC=class extends NC{constructor(t=null,n,r){super(af(n),uf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ua(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=PC(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){FC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){FC(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){PC(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},a1={provide:$n,useExisting:se(()=>pf)},BC=(()=>Promise.resolve())();let pf=(()=>{class e extends $n{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new kC,this._registered=!1,this.name="",this.update=new le,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function hf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===ka?n=i:function n1(e){return Object.getPrototypeOf(e.constructor)===dr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function ff(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ai(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){BC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&function ao(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);BC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function $a(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(w(Je,9),w(We,10),w(Hn,10),w(nn,10),w(Da,8),w(lo,8))},e.\u0275dir=P({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[fe([a1]),te,_t]}),e})(),jC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=P({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),HC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=At({}),e})(),R1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=At({imports:[HC]}),e})(),x1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:lo,useValue:n.callSetDisabledState??Ha}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=At({imports:[R1]}),e})();function V(...e){return Pe(e,Mo(e))}class Vt extends un{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Cf(...e){const t=Mo(e),n=Th(e),{args:r,keys:o}=K_(e);if(0===r.length)return Pe([],t);const i=new Ce(function P1(e,t,n=Qn){return r=>{sw(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u<o;u++)sw(t,()=>{const l=Pe(e[u],t);let c=!1;l.subscribe(Fe(r,d=>{i[u]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>X_(o,s):Qn));return n?i.pipe(J_(n)):i}function sw(e,t,n){e?ln(n,e,t):t()}const Za=Eo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function wf(...e){return function k1(){return vr(1)}()(Pe(e,Mo(e)))}function aw(e){return new Ce(t=>{vt(e()).subscribe(t)})}function Ni(e,t){const n=re(e)?e:()=>e,r=o=>o.error(n());return new Ce(t?o=>t.schedule(r,0,o):r)}function Ef(){return Le((e,t)=>{let n=null;e._refCount++;const r=Fe(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class uw extends Ce{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,gh(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new yt;const n=this.getSubject();t.add(this.source.subscribe(Fe(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=yt.EMPTY)}return t}refCount(){return Ef()(this)}}function Mn(e,t){return Le((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Fe(r,u=>{o?.unsubscribe();let l=0;const c=i++;vt(e(u,c)).subscribe(o=Fe(r,d=>r.next(t?t(u,d,c,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function co(e){return e<=0?()=>Ut:Le((t,n)=>{let r=0;t.subscribe(Fe(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function zn(e,t){return Le((n,r)=>{let o=0;n.subscribe(Fe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Qa(e){return Le((t,n)=>{let r=!1;t.subscribe(Fe(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function lw(e=V1){return Le((t,n)=>{let r=!1;t.subscribe(Fe(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function V1(){return new Za}function hr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?zn((o,i)=>e(o,i,r)):Qn,co(1),n?Qa(t):lw(()=>new Za))}function Ri(e,t){return re(t)?Ve(e,t,1):Ve(e,1)}function Xe(e,t,n){const r=re(e)||t||n?{next:e,error:t,complete:n}:e;return r?Le((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Fe(i,u=>{var l;null===(l=r.next)||void 0===l||l.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,u),i.error(u)},()=>{var u,l;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Qn}function pr(e){return Le((t,n)=>{let i,r=null,o=!1;r=t.subscribe(Fe(n,void 0,void 0,s=>{i=vt(e(s,pr(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function bf(e){return e<=0?()=>Ut:Le((t,n)=>{let r=[];t.subscribe(Fe(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Sf(e){return Le((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const H="primary",Oi=Symbol("RouteTitle");class $1{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function fo(e){return new $1(e)}function z1(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=e[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function rn(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!cw(e[o],t[o]))return!1;return!0}function cw(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}return e===t}function dw(e){return e.length>0?e[e.length-1]:null}function Gn(e){return function F1(e){return!!e&&(e instanceof Ce||re(e.lift)&&re(e.subscribe))}(e)?e:di(e)?Pe(Promise.resolve(e)):V(e)}const q1={exact:function pw(e,t,n){if(!gr(e.segments,t.segments)||!Ya(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!pw(e.children[r],t.children[r],n))return!1;return!0},subset:gw},fw={exact:function W1(e,t){return rn(e,t)},subset:function Z1(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>cw(e[n],t[n]))},ignored:()=>!0};function hw(e,t,n){return q1[n.paths](e.root,t.root,n.matrixParams)&&fw[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function gw(e,t,n){return mw(e,t,t.segments,n)}function mw(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!gr(o,n)||t.hasChildren()||!Ya(o,n,r))}if(e.segments.length===n.length){if(!gr(e.segments,n)||!Ya(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!gw(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(gr(e.segments,o)&&Ya(e.segments,o,r)&&e.children[H])&&mw(e.children[H],t,i,r)}}function Ya(e,t,n){return t.every((r,o)=>fw[n](e[o].parameters,r.parameters))}class ho{constructor(t=new ne([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fo(this.queryParams)),this._queryParamMap}toString(){return K1.serialize(this)}}class ne{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ka(this)}}class xi{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=fo(this.parameters)),this._parameterMap}toString(){return Dw(this)}}function gr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let Fi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return new Mf},providedIn:"root"}),e})();class Mf{parse(t){const n=new uk(t);return new ho(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${Pi(t.root,!0)}`,r=function ek(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Ja(n)}=${Ja(o)}`).join("&"):`${Ja(n)}=${Ja(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function J1(e){return encodeURI(e)}(t.fragment)}`:""}`}}const K1=new Mf;function Ka(e){return e.segments.map(t=>Dw(t)).join("/")}function Pi(e,t){if(!e.hasChildren())return Ka(e);if(t){const n=e.children[H]?Pi(e.children[H],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==H&&r.push(`${o}:${Pi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Y1(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===H&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==H&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===H?[Pi(e.children[H],!1)]:[`${o}:${Pi(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[H]?`${Ka(e)}/${n[0]}`:`${Ka(e)}/(${n.join("//")})`}}function yw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ja(e){return yw(e).replace(/%3B/gi,";")}function If(e){return yw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xa(e){return decodeURIComponent(e)}function vw(e){return Xa(e.replace(/\+/g,"%20"))}function Dw(e){return`${If(e.path)}${function X1(e){return Object.keys(e).map(t=>`;${If(t)}=${If(e[t])}`).join("")}(e.parameters)}`}const tk=/^[^\/()?;#]+/;function Af(e){const t=e.match(tk);return t?t[0]:""}const nk=/^[^\/()?;=#]+/,ok=/^[^=?&#]+/,sk=/^[^&#]+/;class uk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ne([],{}):new ne([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[H]=new ne(t,n)),r}parseSegment(){const t=Af(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new xi(Xa(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function rk(e){const t=e.match(nk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Af(this.remaining);o&&(r=o,this.capture(r))}t[Xa(n)]=Xa(r)}parseQueryParam(t){const n=function ik(e){const t=e.match(ok);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function ak(e){const t=e.match(sk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=vw(n),i=vw(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Af(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=H);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[H]:new ne([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function _w(e){return e.segments.length>0?new ne([],{[H]:e}):e}function Cw(e){const t={};for(const r of Object.keys(e.children)){const i=Cw(e.children[r]);if(r===H&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function lk(e){if(1===e.numberOfChildren&&e.children[H]){const t=e.children[H];return new ne(e.segments.concat(t.segments),t.children)}return e}(new ne(e.segments,t))}function mr(e){return e instanceof ho}function ww(e){let t;const o=_w(function n(i){const s={};for(const u of i.children){const l=n(u);s[u.outlet]=l}const a=new ne(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function Ew(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return Tf(o,o,o,n,r);const i=function dk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Sw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([u,l])=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new Sw(n,t,r)}(t);if(i.toRoot())return Tf(o,o,new ne([],{}),n,r);const s=function fk(e,t,n){if(e.isAbsolute)return new tu(t,!0,0);if(!n)return new tu(t,!1,NaN);if(null===n.parent)return new tu(n,!0,0);const r=eu(e.commands[0])?0:1;return function hk(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new tu(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Li(s.segmentGroup,s.index,i.commands):Mw(s.segmentGroup,s.index,i.commands);return Tf(o,s.segmentGroup,a,n,r)}function eu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ki(e){return"object"==typeof e&&null!=e&&e.outlets}function Tf(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([u,l])=>{i[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===t?n:bw(e,t,n);const a=_w(Cw(s));return new ho(a,i,o)}function bw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:bw(i,t,n)}),new ne(e.segments,r)}class Sw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&eu(r[0]))throw new C(4003,!1);const o=r.find(ki);if(o&&o!==dw(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tu{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Mw(e,t,n){if(e||(e=new ne([],{})),0===e.segments.length&&e.hasChildren())return Li(e,t,n);const r=function gk(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;const s=e.segments[o],a=n[r];if(ki(a))break;const u=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Aw(u,l,s))return i;r+=2}else{if(!Aw(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const i=new ne(e.segments.slice(0,r.pathIndex),{});return i.children[H]=new ne(e.segments.slice(r.pathIndex),e.children),Li(i,0,o)}return r.match&&0===o.length?new ne(e.segments,{}):r.match&&!e.hasChildren()?Nf(e,t,n):r.match?Li(e,0,o):Nf(e,t,n)}function Li(e,t,n){if(0===n.length)return new ne(e.segments,{});{const r=function pk(e){return ki(e[0])?e[0].outlets:{[H]:e}}(n),o={};if(!r[H]&&e.children[H]&&1===e.numberOfChildren&&0===e.children[H].segments.length){const i=Li(e.children[H],t,n);return new ne(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Mw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ne(e.segments,o)}}function Nf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o<n.length;){const i=n[o];if(ki(i)){const u=mk(i.outlets);return new ne(r,u)}if(0===o&&eu(n[0])){r.push(new xi(e.segments[t].path,Iw(n[0]))),o++;continue}const s=ki(i)?i.outlets[H]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&eu(a)?(r.push(new xi(s,Iw(a))),o+=2):(r.push(new xi(s,{})),o++)}return new ne(r,{})}function mk(e){const t={};return Object.entries(e).forEach(([n,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Nf(new ne([],{}),0,r))}),t}function Iw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Aw(e,t,n){return e==n.path&&rn(t,n.parameters)}const Vi="imperative";class on{constructor(t,n){this.id=t,this.url=n}}class Rf extends on{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yr extends on{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class nu extends on{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Bi extends on{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class Of extends on{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yk extends on{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vk extends on{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dk extends on{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _k extends on{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ck extends on{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wk{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ek{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sk{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mk{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ik{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ak{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ji,this.attachRef=null}}let ji=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ak,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Nw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=xf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=xf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Ff(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ff(t,this._root).map(n=>n.value)}}function xf(e,t){if(e===t.value)return t;for(const n of t.children){const r=xf(e,n);if(r)return r}return null}function Ff(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Ff(e,n);if(r.length)return r.unshift(t),r}return[]}class In{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function po(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Rw extends Nw{constructor(t,n){super(t),this.snapshot=n,Pf(this,t)}toString(){return this.snapshot.toString()}}function Ow(e,t){const n=function Tk(e,t){const s=new ru([],{},{},"",{},H,t,null,{});return new Fw("",new In(s,[]))}(0,t),r=new Vt([new xi("",{})]),o=new Vt({}),i=new Vt({}),s=new Vt({}),a=new Vt(""),u=new go(r,o,s,a,i,H,t,n.root);return u.snapshot=n.root,new Rw(new In(u,[]),n)}class go{constructor(t,n,r,o,i,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(ie(l=>l[Oi]))??V(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(ie(t=>fo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(t=>fo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function Nk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ru{get title(){return this.data?.[Oi]}constructor(t,n,r,o,i,s,a,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,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=fo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Fw extends Nw{constructor(t,n){super(n),this.url=t,Pf(this,n)}toString(){return Pw(this._root)}}function Pf(e,t){t.value._routerState=e,t.children.forEach(n=>Pf(e,n))}function Pw(e){const t=e.children.length>0?` { ${e.children.map(Pw).join(", ")} } `:"";return`${e.value}${t}`}function kf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,rn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),rn(t.params,n.params)||e.paramsSubject.next(n.params),function G1(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!rn(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.urlSubject.next(n.url),rn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Lf(e,t){const n=rn(e.params,t.params)&&function Q1(e,t){return gr(e,t)&&e.every((n,r)=>rn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Lf(e.parent,t.parent))}let kw=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=H,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=M(ji),this.location=M(Ft),this.changeDetector=M(Da),this.environmentInjector=M(vn),this.inputBinder=M(ou,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Rk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=P({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[_t]}),e})();class Rk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===go?this.route:t===ji?this.childContexts:this.parent.get(t,n)}}const ou=new I("");let Lw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Cf([r.queryParams,r.params,r.data]).pipe(Mn(([i,s,a],u)=>(a={...i,...s,...a},0===u?V(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function nx(e){const t=K(e);if(!t)return null;const n=new ii(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();function Ui(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function xk(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Ui(e,r,o);return Ui(e,r)})}(e,t,n);return new In(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ui(e,a)),s}}const r=function Fk(e){return new go(new Vt(e.url),new Vt(e.params),new Vt(e.queryParams),new Vt(e.fragment),new Vt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>Ui(e,i));return new In(r,o)}}const Vf="ngNavigationCancelingError";function Vw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=mr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Bw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function Bw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[Vf]=!0,r.cancellationCode=t,n&&(r.url=n),r}function jw(e){return Uw(e)&&mr(e.url)}function Uw(e){return e&&e[Vf]}let Hw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=hn({type:e,selectors:[["ng-component"]],standalone:!0,features:[Rv],decls:1,vars:0,template:function(n,r){1&n&&kn(0,"router-outlet")},dependencies:[kw],encapsulation:2}),e})();function Bf(e){const t=e.children&&e.children.map(Bf),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==H&&(n.component=Hw),n}function Bt(e){return e.outlet||H}function Hi(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class Uk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),kf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=po(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=po(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=po(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=po(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ik(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Sk(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(kf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),kf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=Hi(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class $w{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class iu{constructor(t,n){this.component=t,this.route=n}}function Hk(e,t,n){const r=e._root;return $i(r,t?t._root:null,n,[r.value])}function mo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function Pb(e){return null!==es(e)}(e)?t.get(e):e:r}function $i(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=po(t);return e.children.forEach(s=>{(function zk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function Gk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!gr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!gr(e.url,t.url)||!rn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lf(e,t)||!rn(e.queryParams,t.queryParams);default:return!Lf(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new $w(r)):(i.data=s.data,i._resolvedData=s._resolvedData),$i(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new iu(a.outlet.component,s))}else s&&zi(t,a,o),o.canActivateChecks.push(new $w(r)),$i(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>zi(a,n.getContext(s),o)),o}function zi(e,t,n){const r=po(e),o=e.value;Object.entries(r).forEach(([i,s])=>{zi(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new iu(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Gi(e){return"function"==typeof e}function zw(e){return e instanceof Za||"EmptyError"===e?.name}const su=Symbol("INITIAL_VALUE");function yo(){return Mn(e=>Cf(e.map(t=>t.pipe(co(1),function L1(...e){const t=Mo(e);return Le((n,r)=>{(t?wf(e,n,t):wf(e,n)).subscribe(r)})}(su)))).pipe(ie(t=>{for(const n of t)if(!0!==n){if(n===su)return su;if(!1===n||n instanceof ho)return n}return!0}),zn(t=>t!==su),co(1)))}function Gw(e){return function eb(...e){return fh(e)}(Xe(t=>{if(mr(t))throw Vw(0,t)}),ie(t=>!0===t))}class au{constructor(t){this.segmentGroup=t||null}}class qw{constructor(t){this.urlTree=t}}function vo(e){return Ni(new au(e))}function Ww(e){return Ni(new qw(e))}class dL{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new C(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return V(r);if(o.numberOfChildren>1||!o.children[H])return Ni(new C(4e3,!1));o=o.children[H]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new ho(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,o)}),new ne(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const jf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fL(e,t,n,r,o){const i=Uf(e,t,n);return i.matched?(r=function Pk(e,t){return e.providers&&!e._injector&&(e._injector=Wc(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function uL(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?V(o.map(s=>{const a=mo(s,e);return Gn(function Kk(e){return e&&Gi(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(yo(),Gw()):V(!0)}(r,t,n).pipe(ie(s=>!0===s?i:{...jf}))):V(i)}function Uf(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...jf}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||z1)(n,e,t);if(!o)return{...jf};const i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Zw(e,t,n,r){return n.length>0&&function gL(e,t,n){return n.some(r=>uu(e,t,r)&&Bt(r)!==H)}(e,n,r)?{segmentGroup:new ne(t,pL(r,new ne(n,e.children))),slicedSegments:[]}:0===n.length&&function mL(e,t,n){return n.some(r=>uu(e,t,r))}(e,n,r)?{segmentGroup:new ne(e.segments,hL(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ne(e.segments,e.children),slicedSegments:n}}function hL(e,t,n,r,o){const i={};for(const s of r)if(uu(e,n,s)&&!o[Bt(s)]){const a=new ne([],{});i[Bt(s)]=a}return{...o,...i}}function pL(e,t){const n={};n[H]=t;for(const r of e)if(""===r.path&&Bt(r)!==H){const o=new ne([],{});n[Bt(r)]=o}return n}function uu(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class _L{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new dL(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,!1)}recognize(){const t=Zw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,H).pipe(pr(n=>{if(n instanceof qw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof au?this.noMatchError(n):n}),ie(n=>{const r=new ru([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},H,this.rootComponentType,null,{}),o=new In(r,n),i=new Fw("",o),s=function ck(e,t,n=null,r=null){return Ew(ww(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,H).pipe(pr(r=>{throw r instanceof au?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=xw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Pe(o).pipe(Ri(i=>{const s=r.children[i],a=function Bk(e,t){const n=e.filter(r=>Bt(r)===t);return n.push(...e.filter(r=>Bt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function j1(e,t){return Le(function B1(e,t,n,r,o){return(i,s)=>{let a=n,u=t,l=0;i.subscribe(Fe(s,c=>{const d=l++;u=a?e(u,c,d):(a=!0,c),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Qa(null),function U1(e,t){const n=arguments.length>=2;return r=>r.pipe(e?zn((o,i)=>e(o,i,r)):Qn,bf(1),n?Qa(t):lw(()=>new Za))}(),Ve(i=>{if(null===i)return vo(r);const s=Qw(i);return function CL(e){e.sort((t,n)=>t.value.outlet===H?-1:n.value.outlet===H?1:t.value.outlet.localeCompare(n.value.outlet))}(s),V(s)}))}processSegment(t,n,r,o,i,s){return Pe(n).pipe(Ri(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(pr(u=>{if(u instanceof au)return V(null);throw u}))),hr(a=>!!a),pr(a=>{if(zw(a))return function vL(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?V([]):vo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function yL(e,t,n,r){return!!(Bt(e)===r||r!==H&&uu(t,n,e))&&("**"===e.path||Uf(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):vo(o):vo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Ww(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Ve(s=>{const a=new ne(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=Uf(n,o,i);if(!a)return vo(n);const d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?Ww(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Ve(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const u=o.length>0?dw(o).parameters:{};a=V({snapshot:new ru(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yw(r),Bt(r),r.component??r._loadedComponent??null,r,Kw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=fL(n,r,o,t).pipe(ie(({matched:u,consumedSegments:l,remainingSegments:c,parameters:d})=>u?{snapshot:new ru(l,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Yw(r),Bt(r),r.component??r._loadedComponent??null,r,Kw(r)),consumedSegments:l,remainingSegments:c}:null));return a.pipe(Mn(u=>null===u?vo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(Mn(({routes:l})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=u,{segmentGroup:p,slicedSegments:g}=Zw(n,f,h,l);if(0===g.length&&p.hasChildren())return this.processChildren(c,l,p).pipe(ie(_=>null===_?null:[new In(d,_)]));if(0===l.length&&0===g.length)return V([new In(d,[])]);const y=Bt(r)===i;return this.processSegment(c,l,p,g,y?H:i,!0).pipe(ie(_=>[new In(d,_)]))}))))}getChildConfig(t,n,r){return n.children?V({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?V({routes:n._loadedRoutes,injector:n._loadedInjector}):function aL(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?V(!0):V(o.map(s=>{const a=mo(s,e);return Gn(function Wk(e){return e&&Gi(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(yo(),Gw())}(t,n,r).pipe(Ve(o=>o?this.configLoader.loadChildren(t,n).pipe(Xe(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function cL(e){return Ni(Bw(!1,3))}())):V({routes:[],injector:t})}}function wL(e){const t=e.value.routeConfig;return t&&""===t.path}function Qw(e){const t=[],n=new Set;for(const r of e){if(!wL(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=Qw(r.children);t.push(new In(r.value,o))}return t.filter(r=>!n.has(r))}function Yw(e){return e.data||{}}function Kw(e){return e.resolve||{}}function Jw(e){return"string"==typeof e.title||null===e.title}function Hf(e){return Mn(t=>{const n=e(t);return n?Pe(n).pipe(ie(()=>t)):V(t)})}const Do=new I("ROUTES");let $f=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=M(wD)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return V(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=Gn(n.loadComponent()).pipe(ie(Xw),Xe(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Sf(()=>{this.componentLoaders.delete(n)})),o=new uw(r,()=>new un).pipe(Ef());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return V({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ie(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l;return Array.isArray(a)?l=a:(u=a.create(n).injector,l=u.get(Do,[],N.Self|N.Optional).flat()),{routes:l.map(Bf),injector:u}}),Sf(()=>{this.childrenLoaders.delete(r)})),s=new uw(i,()=>new un).pipe(Ef());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return Gn(n()).pipe(ie(Xw),Ve(r=>r instanceof Tv||Array.isArray(r)?V(r):Pe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Xw(e){return function TL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let lu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new un,this.configLoader=M($f),this.environmentInjector=M(vn),this.urlSerializer=M(Fi),this.rootContexts=M(ji),this.inputBindingEnabled=null!==M(ou,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>V(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Ek(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wk(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Vt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Vi,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zn(r=>0!==r.id),ie(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),Mn(r=>{let o=!1,i=!1;return V(r).pipe(Xe(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Mn(s=>{const a=n.browserUrlTree.toString(),u=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!u&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new Bi(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Ut}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return eE(s.source)&&(n.browserUrlTree=s.extractedUrl),V(s).pipe(Mn(c=>{const d=this.transitions?.getValue();return this.events.next(new Rf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Ut:Promise.resolve(c)}),function EL(e,t,n,r,o,i){return Ve(s=>function DL(e,t,n,r,o,i,s="emptyOnly"){return new _L(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ie(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),Xe(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new yk(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(u&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,g=new Rf(c,this.urlSerializer.serialize(d),f,h);this.events.next(g);const y=Ow(0,this.rootComponentType).snapshot;return V(r={...s,targetSnapshot:y,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Bi(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Ut}}),Xe(s=>{const a=new vk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ie(s=>r={...s,guards:Hk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Xk(e,t){return Ve(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?V({...n,guardsResult:!0}):function eL(e,t,n,r){return Pe(e).pipe(Ve(o=>function sL(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?V(i.map(a=>{const u=Hi(t)??o,l=mo(a,u);return Gn(function Yk(e){return e&&Gi(e.canDeactivate)}(l)?l.canDeactivate(e,t,n,r):u.runInContext(()=>l(e,t,n,r))).pipe(hr())})).pipe(yo()):V(!0)}(o.component,o.route,n,t,r)),hr(o=>!0!==o,!0))}(s,r,o,e).pipe(Ve(a=>a&&function qk(e){return"boolean"==typeof e}(a)?function tL(e,t,n,r){return Pe(t).pipe(Ri(o=>wf(function rL(e,t){return null!==e&&t&&t(new bk(e)),V(!0)}(o.route.parent,r),function nL(e,t){return null!==e&&t&&t(new Mk(e)),V(!0)}(o.route,r),function iL(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function $k(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>aw(()=>V(s.guards.map(u=>{const l=Hi(s.node)??n,c=mo(u,l);return Gn(function Qk(e){return e&&Gi(e.canActivateChild)}(c)?c.canActivateChild(r,e):l.runInContext(()=>c(r,e))).pipe(hr())})).pipe(yo())));return V(i).pipe(yo())}(e,o.path,n),function oL(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return V(!0);const o=r.map(i=>aw(()=>{const s=Hi(t)??n,a=mo(i,s);return Gn(function Zk(e){return e&&Gi(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(hr())}));return V(o).pipe(yo())}(e,o.route,n))),hr(o=>!0!==o,!0))}(r,i,e,t):V(a)),ie(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Xe(s=>{if(r.guardsResult=s.guardsResult,mr(s.guardsResult))throw Vw(0,s.guardsResult);const a=new Dk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),zn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Hf(s=>{if(s.guards.canActivateChecks.length)return V(s).pipe(Xe(a=>{const u=new _k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),Mn(a=>{let u=!1;return V(a).pipe(function bL(e,t){return Ve(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return V(n);let i=0;return Pe(o).pipe(Ri(s=>function SL(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Jw(o)&&(i[Oi]=o.title),function ML(e,t,n,r){const o=function IL(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return V({});const i={};return Pe(o).pipe(Ve(s=>function AL(e,t,n,r){const o=Hi(t)??r,i=mo(e,o);return Gn(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(hr(),Xe(a=>{i[s]=a}))),bf(1),function H1(e){return ie(()=>e)}(i),pr(s=>zw(s)?Ut:Ni(s)))}(i,e,t,r).pipe(ie(s=>(e._resolvedData=s,e.data=xw(e,n).resolve,o&&Jw(o)&&(e.data[Oi]=o.title),null)))}(s.route,r,e,t)),Xe(()=>i++),bf(1),Ve(s=>i===o.length?V(n):Ut))})}(n.paramsInheritanceStrategy,this.environmentInjector),Xe({next:()=>u=!0,complete:()=>{u||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Xe(a=>{const u=new Ck(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Hf(s=>{const a=u=>{const l=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(u.routeConfig).pipe(Xe(c=>{u.component=c}),ie(()=>{})));for(const c of u.children)l.push(...a(c));return l};return Cf(a(s.targetSnapshot.root)).pipe(Qa(),co(1))}),Hf(()=>this.afterPreactivation()),ie(s=>{const a=function Ok(e,t,n){const r=Ui(e,t._root,n?n._root:void 0);return new Rw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Xe(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ie(o=>(new Uk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),co(1),Xe({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new yr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Sf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),pr(s=>{if(i=!0,Uw(s)){jw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new nu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),jw(s)){const u=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),l={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||eE(r.source)};n.scheduleNavigation(u,Vi,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new Of(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(u){r.reject(u)}}return Ut}))}))}cancelNavigationTransition(n,r,o){const i=new nu(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function eE(e){return e!==Vi}let tE=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===H);return r}getResolvedTitleForRoute(n){return n.data[Oi]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return M(NL)},providedIn:"root"}),e})(),NL=(()=>{class e extends tE{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(R(W_))},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return M(xL)},providedIn:"root"}),e})();class OL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let xL=(()=>{class e extends OL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ue(e)))(r||e)}}(),e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const cu=new I("",{providedIn:"root",factory:()=>({})});let FL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:function(){return M(PL)},providedIn:"root"}),e})(),PL=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var mt=(()=>((mt=mt||{})[mt.COMPLETE=0]="COMPLETE",mt[mt.FAILED=1]="FAILED",mt[mt.REDIRECTING=2]="REDIRECTING",mt))();function nE(e,t){e.events.pipe(zn(n=>n instanceof yr||n instanceof nu||n instanceof Of||n instanceof Bi),ie(n=>n instanceof yr||n instanceof Bi?mt.COMPLETE:n instanceof nu&&(0===n.code||1===n.code)?mt.REDIRECTING:mt.FAILED),zn(n=>n!==mt.REDIRECTING),co(1)).subscribe(()=>{t()})}function kL(e){throw e}function LL(e,t,n){return t.parse("/")}const VL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},BL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Mt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=M(CD),this.isNgZoneEnabled=!1,this.options=M(cu,{optional:!0})||{},this.pendingTasks=M(o_),this.errorHandler=this.options.errorHandler||kL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||LL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=M(FL),this.routeReuseStrategy=M(RL),this.titleStrategy=M(tE),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=M(Do,{optional:!0})?.flat()??[],this.navigationTransitions=M(lu),this.urlSerializer=M(Fi),this.location=M(Td),this.componentInputBindingEnabled=!!M(ou,{optional:!0}),this.isNgZoneEnabled=M(he)instanceof he&&he.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new ho,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ow(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Vi,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Bf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=u?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=ww(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Ew(d,n,c,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=mr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Vi,null,r)}navigate(n,r={skipLocationChange:!1}){return function jL(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new C(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(o){r=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return r}isActive(n,r){let o;if(o=!0===r?{...VL}:!1===r?{...BL}:r,mr(n))return hw(this.currentUrlTree,n,o);const i=this.parseUrl(n);return hw(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.keys(n).reduce((r,o)=>{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,u=f});const c=this.pendingTasks.add();return nE(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class rE{}let $L=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(zn(n=>n instanceof yr),Ri(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Wc(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Pe(o).pipe(vr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):V(null);const i=o.pipe(Ve(s=>null===s?V(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Pe([i,this.loader.loadComponent(r)]).pipe(vr()):i})}}return e.\u0275fac=function(n){return new(n||e)(R(Mt),R(wD),R(vn),R(rE),R($f))},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Gf=new I("");let oE=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,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(n=>{n instanceof Rf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof yr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Bi&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Tw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Tw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function wm(){throw new Error("invalid")}()},e.\u0275prov=T({token:e,factory:e.\u0275fac}),e})();function An(e,t){return{\u0275kind:e,\u0275providers:t}}function sE(){const e=M(Yt);return t=>{const n=e.get(so);if(t!==n.components[0])return;const r=e.get(Mt),o=e.get(aE);1===e.get(qf)&&r.initialNavigation(),e.get(uE,null,N.Optional)?.setUpPreloading(),e.get(Gf,null,N.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const aE=new I("",{factory:()=>new un}),qf=new I("",{providedIn:"root",factory:()=>1}),uE=new I("");function WL(e){return An(0,[{provide:uE,useExisting:$L},{provide:rE,useExisting:e}])}const lE=new I("ROUTER_FORROOT_GUARD"),QL=[Td,{provide:Fi,useClass:Mf},Mt,ji,{provide:go,useFactory:function iE(e){return e.routerState.root},deps:[Mt]},$f,[]];function YL(){return new xD("Router",Mt)}let cE=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[QL,[],{provide:Do,multi:!0,useValue:n},{provide:lE,useFactory:eV,deps:[[Mt,new Is,new As]]},{provide:cu,useValue:r||{}},r?.useHash?{provide:cr,useClass:ax}:{provide:cr,useClass:u_},{provide:Gf,useFactory:()=>{const e=M(SF),t=M(he),n=M(cu),r=M(lu),o=M(Fi);return n.scrollOffset&&e.setOffset(n.scrollOffset),new oE(o,r,e,t,n)}},r?.preloadingStrategy?WL(r.preloadingStrategy).\u0275providers:[],{provide:xD,multi:!0,useFactory:YL},r?.initialNavigation?tV(r):[],r?.bindToComponentInputs?An(8,[Lw,{provide:ou,useExisting:Lw}]).\u0275providers:[],[{provide:dE,useFactory:sE},{provide:vd,multi:!0,useExisting:dE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Do,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(R(lE,8))},e.\u0275mod=$t({type:e}),e.\u0275inj=At({}),e})();function eV(e){return"guarded"}function tV(e){return["disabled"===e.initialNavigation?An(3,[{provide:ld,multi:!0,useFactory:()=>{const t=M(Mt);return()=>{t.setUpLocationChangeListener()}}},{provide:qf,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?An(2,[{provide:qf,useValue:0},{provide:ld,multi:!0,deps:[Yt],useFactory:t=>{const n=t.get(ix,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Mt),i=t.get(aE);nE(o,()=>{r(!0)}),t.get(lu).afterPreactivation=()=>(r(!0),i.closed?V(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const dE=new I(""),rV=[];let oV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=At({imports:[cE.forRoot(rV),cE]}),e})(),iV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=hn({type:e,selectors:[["app-header"]],inputs:{pageTitle:"pageTitle",logoSrc:"logoSrc"},decls:4,vars:2,consts:[[1,"app-header"],["alt","logo",1,"app-logo",3,"src"],[1,"app-title"]],template:function(n,r){1&n&&(W(0,"header",0),kn(1,"img",1),W(2,"h1",2),Re(3),Y()()),2&n&&(Te(1),Oc("src",r.logoSrc,Hl),Te(2),ca(r.pageTitle))},styles:[".app-logo[_ngcontent-%COMP%]{height:80px}.app-header[_ngcontent-%COMP%]{background-color:#222;height:150px;padding:20px;color:#fff;text-align:center}.app-title[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})();function fE(e,t){return function(){return e.apply(t,arguments)}}const{toString:sV}=Object.prototype,{getPrototypeOf:Wf}=Object,du=(e=Object.create(null),t=>{const n=sV.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}),sn=e=>(e=e.toLowerCase(),t=>du(t)===e),fu=e=>t=>typeof t===e,{isArray:_o}=Array,qi=fu("undefined");var e;const hE=sn("ArrayBuffer"),lV=fu("string"),It=fu("function"),pE=fu("number"),hu=e=>null!==e&&"object"==typeof e,pu=e=>{if("object"!==du(e))return!1;const t=Wf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},dV=sn("Date"),fV=sn("File"),hV=sn("Blob"),pV=sn("FileList"),yV=sn("URLSearchParams");function Wi(e,t,{allOwnKeys:n=!1}={}){if(null===e||typeof e>"u")return;let r,o;if("object"!=typeof e&&(e=[e]),_o(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function gE(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const mE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yE=e=>!qi(e)&&e!==mE,SV=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wf(Uint8Array)),AV=sn("HTMLFormElement"),vE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NV=sn("RegExp"),DE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wi(n,(o,i)=>{!1!==t(o,i,e)&&(r[i]=o)}),Object.defineProperties(e,r)},Qf="abcdefghijklmnopqrstuvwxyz",_E="0123456789",CE={DIGIT:_E,ALPHA:Qf,ALPHA_DIGIT:Qf+Qf.toUpperCase()+_E},VV=sn("AsyncFunction"),v={isArray:_o,isArrayBuffer:hE,isBuffer:function aV(e){return null!==e&&!qi(e)&&null!==e.constructor&&!qi(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||It(e.append)&&("formdata"===(t=du(e))||"object"===t&&It(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function uV(e){let t;return t=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&hE(e.buffer),t},isString:lV,isNumber:pE,isBoolean:e=>!0===e||!1===e,isObject:hu,isPlainObject:pu,isUndefined:qi,isDate:dV,isFile:fV,isBlob:hV,isRegExp:NV,isFunction:It,isStream:e=>hu(e)&&It(e.pipe),isURLSearchParams:yV,isTypedArray:SV,isFileList:pV,forEach:Wi,merge:function Zf(){const{caseless:e}=yE(this)&&this||{},t={},n=(r,o)=>{const i=e&&gE(t,o)||o;t[i]=pu(t[i])&&pu(r)?Zf(t[i],r):pu(r)?Zf({},r):_o(r)?r.slice():r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Wi(arguments[r],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(Wi(t,(o,i)=>{e[i]=n&&It(o)?fE(o,n):o},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==n&&Wf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:du,kindOfTest:sn,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length);const r=e.indexOf(t,n-=t.length);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(_o(e))return e;let t=e.length;if(!pE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:AV,hasOwnProperty:vE,hasOwnProp:vE,reduceDescriptors:DE,freezeMethods:e=>{DE(e,(t,n)=>{if(It(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(It(e[n])){if(t.enumerable=!1,"writable"in t)return void(t.writable=!1);t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return _o(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:gE,global:mE,isContextDefined:yE,ALPHABET:CE,generateString:(e=16,t=CE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function kV(e){return!!(e&&It(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(r,o)=>{if(hu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=_o(r)?[]:{};return Wi(r,(s,a)=>{const u=n(s,o+1);!qi(u)&&(i[a]=u)}),t[o]=void 0,i}}return r};return n(e,0)},isAsyncFn:VV,isThenable:e=>e&&(hu(e)||It(e))&&It(e.then)&&It(e.catch)};function Co(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}v.inherits(Co,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wE=Co.prototype,EE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{EE[e]={value:e}}),Object.defineProperties(Co,EE),Object.defineProperty(wE,"isAxiosError",{value:!0}),Co.from=(e,t,n,r,o,i)=>{const s=Object.create(wE);return v.toFlatObject(e,s,function(u){return u!==Error.prototype},a=>"isAxiosError"!==a),Co.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const oe=Co;function Yf(e){return v.isPlainObject(e)||v.isArray(e)}function SE(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function ME(e,t,n){return e?e.concat(t).map(function(o,i){return o=SE(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}const jV=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)}),gu=function UV(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!v.isUndefined(y[g])})).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(null===p)return"";if(v.isDate(p))return p.toISOString();if(!u&&v.isBlob(p))throw new oe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(p)||v.isTypedArray(p)?u&&"function"==typeof Blob?new Blob([p]):Buffer.from(p):p}function c(p,g,y){let _=p;if(p&&!y&&"object"==typeof p)if(v.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(v.isArray(p)&&function BV(e){return v.isArray(e)&&!e.some(Yf)}(p)||(v.isFileList(p)||v.endsWith(g,"[]"))&&(_=v.toArray(p)))return g=SE(g),_.forEach(function(S,x){!v.isUndefined(S)&&null!==S&&t.append(!0===s?ME([g],x,i):null===s?g:g+"[]",l(S))}),!1;return!!Yf(p)||(t.append(ME(y,g,i),l(p)),!1)}const d=[],f=Object.assign(jV,{defaultVisitor:c,convertValue:l,isVisitable:Yf});if(!v.isObject(e))throw new TypeError("data must be an object");return function h(p,g){if(!v.isUndefined(p)){if(-1!==d.indexOf(p))throw Error("Circular reference detected in "+g.join("."));d.push(p),v.forEach(p,function(_,m){!0===(!(v.isUndefined(_)||null===_)&&o.call(t,_,v.isString(m)?m.trim():m,g,f))&&h(_,g?g.concat(m):[m])}),d.pop()}}(e),t};function IE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function AE(e,t){this._pairs=[],e&&gu(e,this,t)}const TE=AE.prototype;TE.append=function(t,n){this._pairs.push([t,n])},TE.toString=function(t){const n=t?function(r){return t.call(this,r,IE)}:IE;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};const NE=AE;function HV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function RE(e,t,n){if(!t)return e;const r=n&&n.encode||HV,o=n&&n.serialize;let i;if(i=o?o(t,n):v.isURLSearchParams(t)?t.toString():new NE(t,n).toString(r),i){const s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const OE=class $V{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){null!==r&&t(r)})}},xE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zV=typeof URLSearchParams<"u"?URLSearchParams:NE,GV=typeof FormData<"u"?FormData:null,qV=typeof Blob<"u"?Blob:null,WV=(()=>{let e;return(!(typeof navigator<"u")||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&typeof window<"u"&&typeof document<"u"})(),an={isBrowser:!0,classes:{URLSearchParams:zV,FormData:GV,Blob:qV},isStandardBrowserEnv:WV,isStandardBrowserWebWorkerEnv:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},FE=function JV(e){function t(n,r,o,i){let s=n[i++];const a=Number.isFinite(+s),u=i>=n.length;return s=!s&&v.isArray(o)?o.length:s,u?(o[s]=v.hasOwnProp(o,s)?[o[s],r]:r,!a):((!o[s]||!v.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&v.isArray(o[s])&&(o[s]=function KV(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(o[s])),!a)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,o)=>{t(function YV(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>"[]"===t[0]?"":t[1]||t[0])}(r),o,n,0)}),n}return null},XV={"Content-Type":void 0},mu={transitional:xE,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=v.isObject(t);if(i&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o&&o?JSON.stringify(FE(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function QV(e,t){return gu(e,new an.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return an.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(t,this.formSerializer).toString();if((a=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return gu(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),function eB(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(t)):t}],transformResponse:[function(t){const n=this.transitional||mu.transitional,r=n&&n.forcedJSONParsing,o="json"===this.responseType;if(t&&v.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw"SyntaxError"===a.name?oe.from(a,oe.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:an.classes.FormData,Blob:an.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};v.forEach(["delete","get","head"],function(t){mu.headers[t]={}}),v.forEach(["post","put","patch"],function(t){mu.headers[t]=v.merge(XV)});const Kf=mu,tB=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),PE=Symbol("internals");function Zi(e){return e&&String(e).trim().toLowerCase()}function yu(e){return!1===e||null==e?e:v.isArray(e)?e.map(yu):String(e)}function Jf(e,t,n,r,o){if(v.isFunction(r))return r.call(this,t,n);if(o&&(t=n),v.isString(t)){if(v.isString(r))return-1!==t.indexOf(r);if(v.isRegExp(r))return r.test(t)}}class vu{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,u,l){const c=Zi(u);if(!c)throw new Error("header name must be a non-empty string");const d=v.findKey(o,c);(!d||void 0===o[d]||!0===l||void 0===l&&!1!==o[d])&&(o[d||u]=yu(a))}const s=(a,u)=>v.forEach(a,(l,c)=>i(l,c,u));return v.isPlainObject(t)||t instanceof this.constructor?s(t,n):v.isString(t)&&(t=t.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(t)?s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&tB[n])&&("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(t),n):null!=t&&i(n,t,r),this}get(t,n){if(t=Zi(t)){const r=v.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(!0===n)return function rB(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(o);if(v.isFunction(n))return n.call(this,o,r);if(v.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zi(t)){const r=v.findKey(this,t);return!(!r||void 0===this[r]||n&&!Jf(0,this[r],r,n))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Zi(s)){const a=v.findKey(r,s);a&&(!n||Jf(0,r[a],a,n))&&(delete r[a],o=!0)}}return v.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Jf(0,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return v.forEach(this,(o,i)=>{const s=v.findKey(r,i);if(s)return n[s]=yu(o),void delete n[i];const a=t?function iB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}(i):String(i).trim();a!==i&&delete n[i],n[a]=yu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,o)=>{null!=r&&!1!==r&&(n[o]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[PE]=this[PE]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Zi(s);r[a]||(function sB(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}(o,s),r[a]=!0)}return v.isArray(t)?t.forEach(i):i(t),this}}vu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),v.freezeMethods(vu.prototype),v.freezeMethods(vu);const Tn=vu;function Xf(e,t){const n=this||Kf,r=t||n,o=Tn.from(r.headers);let i=r.data;return v.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function kE(e){return!(!e||!e.__CANCEL__)}function LE(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}v.inherits(LE,oe,{__CANCEL__:!0});const Du=LE,uB=an.isStandardBrowserEnv?{write:function(n,r,o,i,s,a){const u=[];u.push(n+"="+encodeURIComponent(r)),v.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),v.isString(i)&&u.push("path="+i),v.isString(s)&&u.push("domain="+s),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function VE(e,t){return e&&!function lB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function cB(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const dB=an.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=v.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return!0};function BE(e,t){let n=0;const r=function hB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,o=0,i=0;return t=void 0!==t?t:1e3,function(u){const l=Date.now(),c=r[i];s||(s=l),n[o]=u,r[o]=l;let d=i,f=0;for(;d!==o;)f+=n[d++],d%=e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-s<t)return;const h=c&&l-c;return h?Math.round(1e3*f/h):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,u=r(a);n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const _u={http:null,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let o=e.data;const i=Tn.from(e.headers).normalize(),s=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}v.isFormData(o)&&(an.isStandardBrowserEnv||an.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const c=VE(e.baseURL,e.url);function d(){if(!l)return;const h=Tn.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());(function aB(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)})(function(_){n(_),u()},function(_){r(_),u()},{data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:h,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),RE(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||4!==l.readyState||0===l.status&&(!l.responseURL||0!==l.responseURL.indexOf("file:"))||setTimeout(d)},l.onabort=function(){l&&(r(new oe("Request aborted",oe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new oe("Network Error",oe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new oe(p,(e.transitional||xE).clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,l)),l=null},an.isStandardBrowserEnv){const h=(e.withCredentials||dB(c))&&e.xsrfCookieName&&uB.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}void 0===o&&i.setContentType(null),"setRequestHeader"in l&&v.forEach(i.toJSON(),function(p,g){l.setRequestHeader(g,p)}),v.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",BE(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",BE(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{l&&(r(!h||h.type?new Du(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function fB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);f&&-1===an.protocols.indexOf(f)?r(new oe("Unsupported protocol "+f+":",oe.ERR_BAD_REQUEST,e)):l.send(o||null)})}};v.forEach(_u,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});function eh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Du(null,e)}function jE(e){return eh(e),e.headers=Tn.from(e.headers),e.data=Xf.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=v.isString(n)?_u[n.toLowerCase()]:n));o++);if(!r)throw!1===r?new oe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(v.hasOwnProp(_u,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!v.isFunction(r))throw new TypeError("adapter is not a function");return r})(e.adapter||Kf.adapter)(e).then(function(r){return eh(e),r.data=Xf.call(e,e.transformResponse,r),r.headers=Tn.from(r.headers),r},function(r){return kE(r)||(eh(e),r&&r.response&&(r.response.data=Xf.call(e,e.transformResponse,r.response),r.response.headers=Tn.from(r.response.headers))),Promise.reject(r)})}const UE=e=>e instanceof Tn?e.toJSON():e;function wo(e,t){t=t||{};const n={};function r(l,c,d){return v.isPlainObject(l)&&v.isPlainObject(c)?v.merge.call({caseless:d},l,c):v.isPlainObject(c)?v.merge({},c):v.isArray(c)?c.slice():c}function o(l,c,d){return v.isUndefined(c)?v.isUndefined(l)?void 0:r(void 0,l,d):r(l,c,d)}function i(l,c){if(!v.isUndefined(c))return r(void 0,c)}function s(l,c){return v.isUndefined(c)?v.isUndefined(l)?void 0:r(void 0,l):r(void 0,c)}function a(l,c,d){return d in t?r(l,c):d in e?r(void 0,l):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,c)=>o(UE(l),UE(c),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=u[c]||o,f=d(e[c],t[c],c);v.isUndefined(f)&&d!==a||(n[c]=f)}),n}const th={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{th[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $E={};th.transitional=function(t,n,r){function o(i,s){return"[Axios v1.4.0] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(!1===t)throw new oe(o(s," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!$E[s]&&($E[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,s,a)}};const nh={assertOptions:function mB(e,t,n){if("object"!=typeof e)throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new oe("option "+i+" must be "+u,oe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new oe("Unknown option "+i,oe.ERR_BAD_OPTION)}},validators:th},qn=nh.validators;class Cu{constructor(t){this.defaults=t,this.interceptors={request:new OE,response:new OE}}request(t,n){"string"==typeof t?(n=n||{}).url=t:n=t||{},n=wo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;let s;void 0!==r&&nh.assertOptions(r,{silentJSONParsing:qn.transitional(qn.boolean),forcedJSONParsing:qn.transitional(qn.boolean),clarifyTimeoutError:qn.transitional(qn.boolean)},!1),null!=o&&(v.isFunction(o)?n.paramsSerializer={serialize:o}:nh.assertOptions(o,{encode:qn.function,serialize:qn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase(),s=i&&v.merge(i.common,i[n.method]),s&&v.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Tn.concat(s,i);const a=[];let u=!0;this.interceptors.request.forEach(function(g){"function"==typeof g.runWhen&&!1===g.runWhen(n)||(u=u&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let c,f,d=0;if(!u){const p=[jE.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=a.length;let h=n;for(d=0;d<f;){const p=a[d++],g=a[d++];try{h=p(h)}catch(y){g.call(this,y);break}}try{c=jE.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=l.length;d<f;)c=c.then(l[d++],l[d++]);return c}getUri(t){return RE(VE((t=wo(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}v.forEach(["delete","get","head","options"],function(t){Cu.prototype[t]=function(n,r){return this.request(wo(r||{},{method:t,url:n,data:(r||{}).data}))}}),v.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(wo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Cu.prototype[t]=n(),Cu.prototype[t+"Form"]=n(!0)});const wu=Cu;class rh{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Du(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}static source(){let t;return{token:new rh(function(o){t=o}),cancel:t}}}const yB=rh,oh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oh).forEach(([e,t])=>{oh[t]=e});const _B=oh,xe=function zE(e){const t=new wu(e),n=fE(wu.prototype.request,t);return v.extend(n,wu.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return zE(wo(e,o))},n}(Kf);xe.Axios=wu,xe.CanceledError=Du,xe.CancelToken=yB,xe.isCancel=kE,xe.VERSION="1.4.0",xe.toFormData=gu,xe.AxiosError=oe,xe.Cancel=xe.CanceledError,xe.all=function(t){return Promise.all(t)},xe.spread=function vB(e){return function(n){return e.apply(null,n)}},xe.isAxiosError=function DB(e){return v.isObject(e)&&!0===e.isAxiosError},xe.mergeConfig=wo,xe.AxiosHeaders=Tn,xe.formToJSON=e=>FE(v.isHTMLForm(e)?new FormData(e):e),xe.HttpStatusCode=_B,xe.default=xe;const ih=xe;let sh=(()=>{class e{constructor(){ih.defaults.baseURL="http://localhost:8080",ih.defaults.headers.post["Content-Type"]="application/json"}getAuthToken(){return window.localStorage.getItem("auth_token")}setAuthToken(n){null!==n?window.localStorage.setItem("auth_token",n):window.localStorage.removeItem("auth_token")}request(n,r,o){let i={};return null!==this.getAuthToken()&&(i={Authorization:"Bearer "+this.getAuthToken()}),ih({method:n,url:r,data:o,headers:i})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),CB=(()=>{class e{constructor(){this.loginEvent=new le,this.logoutEvent=new le}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=hn({type:e,selectors:[["app-buttons"]],outputs:{loginEvent:"loginEvent",logoutEvent:"logoutEvent"},decls:6,vars:0,consts:[[1,"row"],[1,"col-md-12","text-center",2,"margin-top","30px"],[1,"btn","btn-primary",2,"margin","10px",3,"click"],[1,"btn","btn-dark",2,"margin","10px",3,"click"]],template:function(n,r){1&n&&(W(0,"div",0)(1,"div",1)(2,"button",2),ue("click",function(){return r.loginEvent.emit()}),Re(3," Iniciar Sesi\xf3n "),Y(),W(4,"button",3),ue("click",function(){return r.logoutEvent.emit()}),Re(5," Cerrar Sesi\xf3n "),Y()()())}}),e})(),wB=(()=>{class e{constructor(){this.onSubmitLoginEvent=new le,this.onSubmitRegisterEvent=new le,this.active="login",this.firstName="",this.lastName="",this.login="",this.password=""}onLoginTab(){this.active="login"}onRegisterTab(){this.active="register"}onSubmitLogin(){this.onSubmitLoginEvent.emit({login:this.login,password:this.password})}onSubmitRegister(){this.onSubmitRegisterEvent.emit({firstName:this.firstName,lastName:this.lastName,login:this.login,password:this.password})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=hn({type:e,selectors:[["app-login-form"]],outputs:{onSubmitLoginEvent:"onSubmitLoginEvent",onSubmitRegisterEvent:"onSubmitRegisterEvent"},decls:44,vars:10,consts:[[1,"row","justify-content-center"],[1,"col-4"],["id","ex1","role","tablist",1,"nav","nav-pills","nav-justified","mb-3"],["role","presentation",1,"nav-item"],["id","tab-login",3,"ngClass","click"],["id","tab-register",3,"ngClass","click"],[1,"tab-content"],[3,"ngClass"],[3,"ngSubmit"],["loginForm","ngForm"],[1,"form-outline","mb-4"],["type","login","id","loginName","name","login",1,"form-control",3,"ngModel","ngModelChange"],["for","loginName",1,"form-label"],["type","password","id","loginPassword","name","password",1,"form-control",3,"ngModel","ngModelChange"],["for","loginPassword",1,"form-label"],["type","submit",1,"btn","btn-primary","btn-block","mb-4"],["registerForm","ngForm"],["type","text","id","firstName","name","firstName",1,"form-control",3,"ngModel","ngModelChange"],["for","firstName",1,"form-label"],["type","text","id","lastName","name","lastName",1,"form-control",3,"ngModel","ngModelChange"],["for","lastName",1,"form-label"],["type","text","id","login","name","login",1,"form-control",3,"ngModel","ngModelChange"],["for","login",1,"form-label"],["type","password","id","registerPassword","name","password",1,"form-control",3,"ngModel","ngModelChange"],["for","registerPassword",1,"form-label"],["type","submit",1,"btn","btn-primary","btn-block","mb-3"]],template:function(n,r){1&n&&(W(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"button",4),ue("click",function(){return r.onLoginTab()}),Re(5,"Iniciar Sesi\xf3n"),Y()(),W(6,"li",3)(7,"button",5),ue("click",function(){return r.onRegisterTab()}),Re(8,"Registrarse"),Y()()(),W(9,"div",6)(10,"div",7)(11,"form",8,9),ue("ngSubmit",function(){return r.onSubmitLogin()}),W(13,"div",10)(14,"input",11),ue("ngModelChange",function(i){return r.login=i}),Y(),W(15,"label",12),Re(16,"Usuario"),Y()(),W(17,"div",10)(18,"input",13),ue("ngModelChange",function(i){return r.password=i}),Y(),W(19,"label",14),Re(20,"Clave"),Y()(),W(21,"button",15),Re(22,"Iniciar Sesi\xf3n"),Y()()(),W(23,"div",7)(24,"form",8,16),ue("ngSubmit",function(){return r.onSubmitRegister()}),W(26,"div",10)(27,"input",17),ue("ngModelChange",function(i){return r.firstName=i}),Y(),W(28,"label",18),Re(29,"Nombres"),Y()(),W(30,"div",10)(31,"input",19),ue("ngModelChange",function(i){return r.lastName=i}),Y(),W(32,"label",20),Re(33,"Apellidos"),Y()(),W(34,"div",10)(35,"input",21),ue("ngModelChange",function(i){return r.login=i}),Y(),W(36,"label",22),Re(37,"Nombre de usuario"),Y()(),W(38,"div",10)(39,"input",23),ue("ngModelChange",function(i){return r.password=i}),Y(),W(40,"label",24),Re(41,"Clave"),Y()(),W(42,"button",25),Re(43,"Registrarse"),Y()()()()()()),2&n&&(Te(4),He("ngClass","login"==r.active?"nav-link active":"nav-link"),Te(3),He("ngClass","register"==r.active?"nav-link active":"nav-link"),Te(3),He("ngClass","login"==r.active?"tab-pane fade show active":"tab-pane fade"),Te(4),He("ngModel",r.login),Te(4),He("ngModel",r.password),Te(5),He("ngClass","register"==r.active?"tab-pane fade show active":"tab-pane fade"),Te(4),He("ngModel",r.firstName),Te(4),He("ngModel",r.lastName),Te(4),He("ngModel",r.login),Te(4),He("ngModel",r.password))},dependencies:[D_,jC,ka,SC,MC,pf,Wa]}),e})(),EB=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=hn({type:e,selectors:[["app-welcome-content"]],decls:7,vars:0,consts:[["className","row justify-content-md-center"],["className","jumbotron jumbotron-fluid"],["className","container"],["className","display-4"],["className","lead"]],template:function(n,r){1&n&&(W(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),Re(4,"Bievenido"),Y(),W(5,"p",4),Re(6,"Inicie sesi\xf3n para acceder al sistema."),Y()()()())}}),e})();function bB(e,t){if(1&e&&(W(0,"li"),Re(1),Y()),2&e){const n=t.$implicit;Te(1),ca(n)}}let SB=(()=>{class e{constructor(n){this.axiosService=n,this.data=[]}ngOnInit(){this.axiosService.request("GET","/messages",{}).then(n=>{this.data=n.data}).catch(n=>{401===n.response.status?this.axiosService.setAuthToken(null):this.data=n.response.code})}}return e.\u0275fac=function(n){return new(n||e)(w(sh))},e.\u0275cmp=hn({type:e,selectors:[["app-auth-content"]],decls:10,vars:1,consts:[[1,"row","justify-content-md-center"],[1,"col-4"],[1,"card",2,"width","'18rem'"],[1,"card-body"],[1,"card-title"],[1,"card-text"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(W(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),Re(5,"Respuesta del backend"),Y(),W(6,"p",5),Re(7,"Contenido:"),Y(),W(8,"ul"),ci(9,bB,2,1,"li",6),Y()()()()()),2&n&&(Te(9),He("ngForOf",r.data))},dependencies:[C_]}),e})();function MB(e,t){1&e&&kn(0,"app-welcome-content")}function IB(e,t){if(1&e){const n=function ay(){return D()}();W(0,"app-login-form",3),ue("onSubmitLoginEvent",function(o){return Ku(n),Ju(Rc().onLogin(o))})("onSubmitRegisterEvent",function(o){return Ku(n),Ju(Rc().onRegister(o))}),Y()}}function AB(e,t){1&e&&kn(0,"app-auth-content")}let TB=(()=>{class e{constructor(n){this.axiosService=n,this.componentToShow="welcome"}showComponent(n){this.componentToShow=n}onLogin(n){this.axiosService.request("POST","/login",{login:n.login,password:n.password}).then(r=>{this.axiosService.setAuthToken(r.data.token),this.componentToShow="messages"}).catch(r=>{this.axiosService.setAuthToken(null),this.componentToShow="welcome"})}onRegister(n){this.axiosService.request("POST","/register",{firstName:n.firstName,lastName:n.lastName,login:n.login,password:n.password}).then(r=>{this.axiosService.setAuthToken(r.data.token),this.componentToShow="messages"}).catch(r=>{this.axiosService.setAuthToken(null),this.componentToShow="welcome"})}}return e.\u0275fac=function(n){return new(n||e)(w(sh))},e.\u0275cmp=hn({type:e,selectors:[["app-content"]],decls:5,vars:3,consts:[[3,"loginEvent","logoutEvent"],[4,"ngIf"],[3,"onSubmitLoginEvent","onSubmitRegisterEvent",4,"ngIf"],[3,"onSubmitLoginEvent","onSubmitRegisterEvent"]],template:function(n,r){1&n&&(W(0,"div")(1,"app-buttons",0),ue("loginEvent",function(){return r.showComponent("login")})("logoutEvent",function(){return r.showComponent("welcome")}),Y(),ci(2,MB,1,0,"app-welcome-content",1),ci(3,IB,1,0,"app-login-form",2),ci(4,AB,1,0,"app-auth-content",1),Y()),2&n&&(Te(2),He("ngIf","welcome"==r.componentToShow),Te(1),He("ngIf","login"==r.componentToShow),Te(1),He("ngIf","messages"==r.componentToShow))},dependencies:[E_,CB,wB,EB,SB]}),e})(),NB=(()=>{class e{constructor(){this.title="frontend"}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=hn({type:e,selectors:[["app-root"]],decls:6,vars:2,consts:[[3,"pageTitle","logoSrc"],[1,"container-fluid"],[1,"row"],[1,"col"]],template:function(n,r){1&n&&(W(0,"div"),kn(1,"app-header",0),W(2,"div",1)(3,"div",2)(4,"div",3),kn(5,"app-content"),Y()()()()),2&n&&(Te(1),He("pageTitle","Frontend autenticado con JWT.")("logoSrc","assets/images/logo.png"))},dependencies:[iV,TB]}),e})(),RB=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e,bootstrap:[NB]}),e.\u0275inj=At({providers:[sh],imports:[EP,oV,x1]}),e})();CP().bootstrapModule(RB).catch(e=>console.error(e))}},re=>{re(re.s=820)}]);