From 6dc055c37157aa8ec0f9a7740bd054b801792077 Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Mon, 9 Dec 2024 11:54:43 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/angular-schule/buch/commit/7add1a68068cf75216b0be9059fb8a085799d565 --- 404.html | 14 -------------- admin/create/index.html | 13 +++++++++++++ books/9783864903571/index.html | 10 +++++----- books/9783864906466/index.html | 10 +++++----- books/9783864907791/index.html | 8 ++++---- books/9783864909467/index.html | 8 ++++---- books/index.html | 8 ++++---- chunk-4ZWJ5RH5.js | 2 ++ chunk-XSFVBSGK.js => chunk-7QVHZYEP.js | 2 +- chunk-EFJWQ4MC.js | 8 -------- chunk-TBBT64JK.js | 2 -- chunk-UB4X3FRY.js | 1 - chunk-XIVWKNDS.js | 1 + chunk-YSRJOURJ.js | 8 ++++++++ home/index.html | 10 +++++----- index.csr.html | 6 +++--- index.html | 14 -------------- main-7QKF6SLT.js | 2 -- main-QSGVUVC4.js | 2 ++ 19 files changed, 57 insertions(+), 72 deletions(-) create mode 100644 admin/create/index.html create mode 100644 chunk-4ZWJ5RH5.js rename chunk-XSFVBSGK.js => chunk-7QVHZYEP.js (84%) delete mode 100644 chunk-EFJWQ4MC.js delete mode 100644 chunk-TBBT64JK.js delete mode 100644 chunk-UB4X3FRY.js create mode 100644 chunk-XIVWKNDS.js create mode 100644 chunk-YSRJOURJ.js delete mode 100644 main-7QKF6SLT.js create mode 100644 main-QSGVUVC4.js diff --git a/404.html b/404.html index 7d48011..e69de29 100644 --- a/404.html +++ b/404.html @@ -1,14 +0,0 @@ - - - BookMonkey - - - - - -

Home

Show book list -

Search

- - - \ No newline at end of file diff --git a/admin/create/index.html b/admin/create/index.html new file mode 100644 index 0000000..3b2bdd5 --- /dev/null +++ b/admin/create/index.html @@ -0,0 +1,13 @@ + + + BookMonkey + + + + + +

Create Book

+ + + \ No newline at end of file diff --git a/books/9783864903571/index.html b/books/9783864903571/index.html index 41af24f..a93051a 100644 --- a/books/9783864903571/index.html +++ b/books/9783864903571/index.html @@ -1,4 +1,4 @@ - + BookMonkey @@ -7,11 +7,11 @@ -

Angular (1. Auflage)

Grundlagen, fortgeschrittene Techniken und Best Practices mit TypeScript - ab Angular 4, inklusive NativeScript und Redux

Authors

  • Ferdinand Malcher
  • Johannes Hoppe
  • Danny Koppenhagen
  • Gregor Woiwode

ISBN

978-3864903571

Published

May 22, 2017

Description

Mit Angular setzen Sie auf ein modernes und modulares Web-Framework. Dieses Buch stellt Ihnen die Bausteine von Angular, viele Best Practices und die notwendigen Werkzeuge vor. Beginnen Sie Ihren Einstieg in die Welt von Angular mit einer praxisnahen Einführung. +

Angular (1. Auflage)

Grundlagen, fortgeschrittene Techniken und Best Practices mit TypeScript - ab Angular 4, inklusive NativeScript und Redux

Authors

  • Ferdinand Malcher
  • Johannes Hoppe
  • Danny Koppenhagen
  • Gregor Woiwode

ISBN

978-3864903571

Published

May 22, 2017

Description

Mit Angular setzen Sie auf ein modernes und modulares Web-Framework. Dieses Buch stellt Ihnen die Bausteine von Angular, viele Best Practices und die notwendigen Werkzeuge vor. Beginnen Sie Ihren Einstieg in die Welt von Angular mit einer praxisnahen Einführung. Jedes Thema wird zunächst theoretisch behandelt und anschließend anhand einer durchgehenden Beispielanwendung (https://ng-buch.de/app) demonstriert. Meistern Sie die komponentenorientierte Webentwicklung und lernen Sie zusätzlich einen Weg zur Erstellung mobiler Apps (NativeScript) kennen. Mit der Redux-Architektur beherrschen Sie auch komplexe Anwendungen. -Sie werden als Einsteiger und auch als fortgeschrittener Webentwickler Freude bei der Lektüre dieses Buchs haben.)

CoverBack to list Edit book
- +Sie werden als Einsteiger und auch als fortgeschrittener Webentwickler Freude bei der Lektüre dieses Buchs haben.)

CoverBack to list Edit book
+ - \ No newline at end of file + \ No newline at end of file diff --git a/books/9783864906466/index.html b/books/9783864906466/index.html index e1153d2..3fd2938 100644 --- a/books/9783864906466/index.html +++ b/books/9783864906466/index.html @@ -1,4 +1,4 @@ - + BookMonkey @@ -7,10 +7,10 @@ -

Angular (2. Auflage)

Grundlagen, fortgeschrittene Themen und Best Practices – mit NativeScript und NgRx

Authors

  • Ferdinand Malcher
  • Johannes Hoppe
  • Danny Koppenhagen

ISBN

978-3864906466

Published

June 14, 2019

Description

Die Autoren führen Sie mit einem anspruchsvollen Beispielprojekt durch die Welt von Angular. Lernen Sie Schritt für Schritt, wie Sie strukturierte und modulare Single-Page-Anwendungen entwickeln. Nach der erfolgreichen ersten Auflage wurde dieses Buch grundlegend aktualisiert und erweitert: +

Angular (2. Auflage)

Grundlagen, fortgeschrittene Themen und Best Practices – mit NativeScript und NgRx

Authors

  • Ferdinand Malcher
  • Johannes Hoppe
  • Danny Koppenhagen

ISBN

978-3864906466

Published

June 14, 2019

Description

Die Autoren führen Sie mit einem anspruchsvollen Beispielprojekt durch die Welt von Angular. Lernen Sie Schritt für Schritt, wie Sie strukturierte und modulare Single-Page-Anwendungen entwickeln. Nach der erfolgreichen ersten Auflage wurde dieses Buch grundlegend aktualisiert und erweitert: Durchgängig aktualisiert auf Angular 7 und neuere Versionen, Redux mit Reactive Extensions for Angular (NgRx), Ausführliches Kapitel zu RxJS und Observables, Server-Side Rendering mit Angular Universal, HTTP-Interceptoren, Kompakter Schnelleinstieg in Angular mit Stackblitz. -Praktisch: Der Programmcode zu jeder einzelnen Entwicklungsphase ist auf GitHub verfügbar. So können Sie alle Schritte gut nachvollziehen und auch Teile überspringen.

CoverBack to list Edit book
- +Praktisch: Der Programmcode zu jeder einzelnen Entwicklungsphase ist auf GitHub verfügbar. So können Sie alle Schritte gut nachvollziehen und auch Teile überspringen.

CoverBack to list Edit book
+ - \ No newline at end of file + \ No newline at end of file diff --git a/books/9783864907791/index.html b/books/9783864907791/index.html index 70e6ef3..a3d3d73 100644 --- a/books/9783864907791/index.html +++ b/books/9783864907791/index.html @@ -1,4 +1,4 @@ - + BookMonkey @@ -7,7 +7,7 @@ -

Angular (3. Auflage)

Grundlagen, fortgeschrittene Themen und Best Practices – inkl. RxJS, NgRx & PWA (iX Edition)

Authors

  • Ferdinand Malcher
  • Johannes Hoppe
  • Danny Koppenhagen

ISBN

978-3864907791

Published

October 12, 2020

Description

Lernen Sie Angular mit diesem Praxisbuch! Mit einem anspruchsvollen Beispielprojekt führen wir Sie durch die Welt von Angular.

CoverBack to list Edit book
- +

Angular (3. Auflage)

Grundlagen, fortgeschrittene Themen und Best Practices – inkl. RxJS, NgRx & PWA (iX Edition)

Authors

  • Ferdinand Malcher
  • Johannes Hoppe
  • Danny Koppenhagen

ISBN

978-3864907791

Published

October 12, 2020

Description

Lernen Sie Angular mit diesem Praxisbuch! Mit einem anspruchsvollen Beispielprojekt führen wir Sie durch die Welt von Angular.

CoverBack to list Edit book
+ - \ No newline at end of file + \ No newline at end of file diff --git a/books/9783864909467/index.html b/books/9783864909467/index.html index 6120dfb..c6d8147 100644 --- a/books/9783864909467/index.html +++ b/books/9783864909467/index.html @@ -1,4 +1,4 @@ - + BookMonkey @@ -7,7 +7,7 @@ -

Angular (4. Auflage)

Das große Praxisbuch – Grundlagen, fortgeschrittene Themen und Best Practices

Authors

  • Ferdinand Malcher
  • Danny Koppenhagen
  • Johannes Hoppe

ISBN

978-3864909467

Published

February 15, 2023

Description

Lernen Sie Angular mit diesem umfassenden Praxisbuch! Sie werden von Ferdinand Malcher, Danny Koppenhagen und Johannes Hoppe anhand eines anspruchsvollen Beispielprojekts durch die Welt von Angular geführt und entwickeln Schritt für Schritt eine umfangreiche modulare Single-Page-Anwendung.

CoverBack to list Edit book
- +

Angular (4. Auflage)!

Das große Praxisbuch – Grundlagen, fortgeschrittene Themen und Best Practices

Authors

  • Ferdinand Malcher
  • Danny Koppenhagen
  • Johannes Hoppe

ISBN

978-3864909467

Published

February 15, 2023

Description

Lernen Sie Angular mit diesem umfassenden Praxisbuch! Sie werden von Ferdinand Malcher, Danny Koppenhagen und Johannes Hoppe anhand eines anspruchsvollen Beispielprojekts durch die Welt von Angular geführt und entwickeln Schritt für Schritt eine umfangreiche modulare Single-Page-Anwendung.

CoverBack to list Edit book
+ - \ No newline at end of file + \ No newline at end of file diff --git a/books/index.html b/books/index.html index f64cbc7..244204b 100644 --- a/books/index.html +++ b/books/index.html @@ -1,4 +1,4 @@ - + BookMonkey @@ -7,7 +7,7 @@ -

Books

- +

Books

+ - \ No newline at end of file + \ No newline at end of file diff --git a/chunk-4ZWJ5RH5.js b/chunk-4ZWJ5RH5.js new file mode 100644 index 0000000..6a2e2bb --- /dev/null +++ b/chunk-4ZWJ5RH5.js @@ -0,0 +1,2 @@ +import{Aa as Ee,B as v,Ba as x,C as o,E as U,G as H,H as D,I as A,J as d,L as _,M as O,N as We,O as Ae,P as f,Q as Me,R as a,S as l,T as C,W as qe,X as p,Y as ze,_ as u,a as c,aa as Ye,b as m,ba as M,c as Te,ca as Q,e as je,ea as Ze,f as k,fa as Xe,g as Ge,ha as L,ia as F,ja as Fe,k as Ue,ka as ee,la as Ke,ma as Je,n as J,o as V,oa as Qe,p as Ve,q as b,r as S,s as He,t as be,u as j,v as Le,va as et,w as $e,x as De,xa as te,y as N,z as G}from"./chunk-YSRJOURJ.js";var lt=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,i){this._renderer=t,this._elementRef=i}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(i){return new(i||n)(o(U),o(G))};static \u0275dir=d({type:n})}return n})(),Ht=(()=>{class n extends lt{static \u0275fac=(()=>{let t;return function(r){return(t||(t=De(n)))(r||n)}})();static \u0275dir=d({type:n,features:[_]})}return n})(),ce=new S("");var Lt={provide:ce,useExisting:V(()=>de),multi:!0};function $t(){let n=Fe()?Fe().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var Wt=new S(""),de=(()=>{class n extends lt{_compositionMode;_composing=!1;constructor(t,i,r){super(t,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!$t())}writeValue(t){let i=t??"";this.setProperty("value",i)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(i){return new(i||n)(o(U),o(G),o(Wt,8))};static \u0275dir=d({type:n,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(i,r){i&1&&p("input",function(h){return r._handleInput(h.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(h){return r._compositionEnd(h.target.value)})},standalone:!1,features:[M([Lt]),_]})}return n})();function E(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function ut(n){return n!=null&&typeof n.length=="number"}var he=new S(""),fe=new S(""),qt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Y=class{static min(e){return zt(e)}static max(e){return Yt(e)}static required(e){return Zt(e)}static requiredTrue(e){return Xt(e)}static email(e){return Kt(e)}static minLength(e){return Jt(e)}static maxLength(e){return Qt(e)}static pattern(e){return en(e)}static nullValidator(e){return ct(e)}static compose(e){return gt(e)}static composeAsync(e){return _t(e)}};function zt(n){return e=>{if(E(e.value)||E(n))return null;let t=parseFloat(e.value);return!isNaN(t)&&t{if(E(e.value)||E(n))return null;let t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}function Zt(n){return E(n.value)?{required:!0}:null}function Xt(n){return n.value===!0?null:{required:!0}}function Kt(n){return E(n.value)||qt.test(n.value)?null:{email:!0}}function Jt(n){return e=>E(e.value)||!ut(e.value)?null:e.value.lengthut(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function en(n){if(!n)return ct;let e,t;return typeof n=="string"?(t="",n.charAt(0)!=="^"&&(t+="^"),t+=n,n.charAt(n.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(E(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function ct(n){return null}function dt(n){return n!=null}function ht(n){return We(n)?je(n):n}function ft(n){let e={};return n.forEach(t=>{e=t!=null?c(c({},e),t):e}),Object.keys(e).length===0?null:e}function mt(n,e){return e.map(t=>t(n))}function tn(n){return!n.validate}function pt(n){return n.map(e=>tn(e)?e:t=>e.validate(t))}function gt(n){if(!n)return null;let e=n.filter(dt);return e.length==0?null:function(t){return ft(mt(t,e))}}function vt(n){return n!=null?gt(pt(n)):null}function _t(n){if(!n)return null;let e=n.filter(dt);return e.length==0?null:function(t){let i=mt(t,e).map(ht);return Ge(i).pipe(k(ft))}}function yt(n){return n!=null?_t(pt(n)):null}function tt(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Ct(n){return n._rawValidators}function Vt(n){return n._rawAsyncValidators}function we(n){return n?Array.isArray(n)?n:[n]:[]}function ie(n,e){return Array.isArray(n)?n.includes(e):n===e}function nt(n,e){let t=we(e);return we(n).forEach(r=>{ie(t,r)||t.push(r)}),t}function it(n,e){return we(e).filter(t=>!ie(n,t))}var re=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=vt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},g=class extends re{name;get formDirective(){return null}get path(){return null}},Z=class extends re{_parent=null;name=null;valueAccessor=null},oe=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},nn={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Qn=m(c({},nn),{"[class.ng-submitted]":"isSubmitted"}),bt=(()=>{class n extends oe{constructor(t){super(t)}static \u0275fac=function(i){return new(i||n)(o(Z,2))};static \u0275dir=d({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Me("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)},standalone:!1,features:[_]})}return n})(),Dt=(()=>{class n extends oe{constructor(t){super(t)}static \u0275fac=function(i){return new(i||n)(o(g,10))};static \u0275dir=d({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Me("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)},standalone:!1,features:[_]})}return n})();var $="VALID",ne="INVALID",B="PENDING",W="DISABLED",w=class{},se=class extends w{value;source;constructor(e,t){super(),this.value=e,this.source=t}},q=class extends w{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},z=class extends w{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},P=class extends w{status;source;constructor(e,t){super(),this.status=e,this.source=t}},Ie=class extends w{source;constructor(e){super(),this.source=e}},Se=class extends w{source;constructor(e){super(),this.source=e}};function Ne(n){return(me(n)?n.validators:n)||null}function rn(n){return Array.isArray(n)?vt(n):n||null}function ke(n,e){return(me(e)?e.asyncValidators:n)||null}function on(n){return Array.isArray(n)?yt(n):n||null}function me(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function At(n,e,t){let i=n.controls;if(!(e?Object.keys(i):i).length)throw new J(1e3,"");if(!i[t])throw new J(1001,"")}function Mt(n,e,t){n._forEachChild((i,r)=>{if(t[r]===void 0)throw new J(1002,"")})}var X=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return F(this.statusReactive)}set status(e){F(()=>this.statusReactive.set(e))}_status=L(()=>this.statusReactive());statusReactive=H(void 0);get valid(){return this.status===$}get invalid(){return this.status===ne}get pending(){return this.status==B}get disabled(){return this.status===W}get enabled(){return this.status!==W}errors;get pristine(){return F(this.pristineReactive)}set pristine(e){F(()=>this.pristineReactive.set(e))}_pristine=L(()=>this.pristineReactive());pristineReactive=H(!0);get dirty(){return!this.pristine}get touched(){return F(this.touchedReactive)}set touched(e){F(()=>this.touchedReactive.set(e))}_touched=L(()=>this.touchedReactive());touchedReactive=H(!1);get untouched(){return!this.touched}_events=new Te;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(nt(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(nt(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(it(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(it(e,this._rawAsyncValidators))}hasValidator(e){return ie(this._rawValidators,e)}hasAsyncValidator(e){return ie(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(m(c({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new z(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),t&&e.emitEvent!==!1&&this._events.next(new z(!1,i))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(m(c({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new q(!1,i))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),t&&e.emitEvent!==!1&&this._events.next(new q(!0,i))}markAsPending(e={}){this.status=B;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new P(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(m(c({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=W,this.errors=null,this._forEachChild(r=>{r.disable(m(c({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,i)),this._events.next(new P(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=$,this._forEachChild(i=>{i.enable(m(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$||this.status===B)&&this._runAsyncValidator(i,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,t)),this._events.next(new P(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(m(c({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?W:$}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=B,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let i=ht(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(e,t){let i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new P(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,i)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?W:this.errors?ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(B)?B:this._anyControlsHaveStatus(ne)?ne:$}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new q(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new z(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){me(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=rn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=on(this._rawAsyncValidators)}},ae=class extends X{constructor(e,t,i){super(Ne(t),ke(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Mt(this,!0,e),Object.keys(e).forEach(i=>{At(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>i._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ft=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Oe}),Oe="always";function xe(n,e){return[...e.path,n]}function rt(n,e,t=Oe){Be(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),an(n,e),un(n,e),ln(n,e),sn(n,e)}function ot(n,e,t=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),ue(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function le(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function sn(n,e){if(e.valueAccessor.setDisabledState){let t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function Be(n,e){let t=Ct(n);e.validator!==null?n.setValidators(tt(t,e.validator)):typeof t=="function"&&n.setValidators([t]);let i=Vt(n);e.asyncValidator!==null?n.setAsyncValidators(tt(i,e.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function ue(n,e){let t=!1;if(n!==null){if(e.validator!==null){let r=Ct(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(h=>h!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(e.asyncValidator!==null){let r=Vt(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(h=>h!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}let i=()=>{};return le(e._rawValidators,i),le(e._rawAsyncValidators,i),t}function an(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Et(n,e)})}function ln(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Et(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function Et(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function un(n,e){let t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function cn(n,e){n==null,Be(n,e)}function dn(n,e){return ue(n,e)}function hn(n,e){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function fn(n){return Object.getPrototypeOf(n.constructor)===Ht}function mn(n,e){n._syncPendingControls(),e.forEach(t=>{let i=t.control;i.updateOn==="submit"&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function pn(n,e){if(!e)return null;Array.isArray(e);let t,i,r;return e.forEach(s=>{s.constructor===de?t=s:fn(s)?i=s:r=s}),r||i||t||null}function gn(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function st(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function at(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var y=class extends X{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,i){super(Ne(t),ke(i,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),me(t)&&(t.nonNullable||t.initialValueIsDefault)&&(at(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){st(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){st(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){at(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var vn=n=>n instanceof y,_n=(()=>{class n extends g{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(r){return(t||(t=De(n)))(r||n)}})();static \u0275dir=d({type:n,standalone:!1,features:[_]})}return n})();var wt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=d({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})();var It=new S("");var yn={provide:g,useExisting:V(()=>R)},R=(()=>{class n extends g{callSetDisabledState;get submitted(){return F(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=L(()=>this._submittedReactive());_submittedReactive=H(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new N;constructor(t,i,r){super(),this.callSetDisabledState=r,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ue(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let i=this.form.get(t.path);return rt(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){ot(t.control||null,t,!1),gn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this._submittedReactive.set(!0),mn(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ie(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new Se(this.form))}_updateDomValue(){this.directives.forEach(t=>{let i=t.control,r=this.form.get(t.path);i!==r&&(ot(i||null,t),vn(r)&&(rt(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let i=this.form.get(t.path);cn(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let i=this.form.get(t.path);i&&dn(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Be(this.form,this),this._oldForm&&ue(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(i){return new(i||n)(o(he,10),o(fe,10),o(Ft,8))};static \u0275dir=d({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&p("submit",function(h){return r.onSubmit(h)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[M([yn]),_,j]})}return n})(),Cn={provide:g,useExisting:V(()=>St)},St=(()=>{class n extends _n{name=null;constructor(t,i,r){super(),this._parent=t,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){Nt(this._parent)}static \u0275fac=function(i){return new(i||n)(o(g,13),o(he,10),o(fe,10))};static \u0275dir=d({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[M([Cn]),_]})}return n})(),Vn={provide:g,useExisting:V(()=>pe)},pe=(()=>{class n extends g{_parent;name=null;constructor(t,i,r){super(),this._parent=t,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Nt(this._parent)}static \u0275fac=function(i){return new(i||n)(o(g,13),o(he,10),o(fe,10))};static \u0275dir=d({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[M([Vn]),_]})}return n})();function Nt(n){return!(n instanceof St)&&!(n instanceof R)&&!(n instanceof pe)}var bn={provide:Z,useExisting:V(()=>Pe)},Pe=(()=>{class n extends Z{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new N;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,i,r,s,h){super(),this._ngModelWarningConfig=h,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=pn(this,s)}ngOnChanges(t){this._added||this._setUpControl(),hn(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(o(g,13),o(he,10),o(fe,10),o(ce,10),o(It,8))};static \u0275dir=d({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[M([bn]),_,j]})}return n})();var Dn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=A({type:n});static \u0275inj=b({})}return n})(),K=class extends X{constructor(e,t,i){super(Ne(t),ke(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Mt(this,!1,e),e.forEach((i,r)=>{At(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,i)=>i._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var kt=n=>n instanceof K;var Ot=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:It,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ft,useValue:t.callSetDisabledState??Oe}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=A({type:n});static \u0275inj=b({imports:[Dn]})}return n})();var ge=class n{constructor(e){this.service=e}isbnExists(){return e=>this.service.check(e.value).pipe(k(t=>t?{isbnexists:!0}:null))}static \u0275fac=function(t){return new(t||n)(He(x))};static \u0275prov=Ve({token:n,factory:n.\u0275fac,providedIn:"root"})};var Pt=function(n){if(!n.value||typeof n.value!="string")return null;let t=n.value.replace(/-/g,"").length;return t===10||t===13?null:{isbnformat:!0}},Rt=function(n){return!kt(n)||n.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};var Tt=(()=>{class n{constructor(t,i){this.renderer=t,this.elementRef=i,this.onInput=r=>{let s=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,h=s?s.toISOString():null;this.onChange(h)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){let i=t?new Date(t):null,r=i?new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(o(U),o(G))},n.\u0275dir=d({type:n,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(t,i){t&1&&p("input",function(s){return i.onInput(s.target.valueAsDate)})("blur",function(){return i.onTouched()})},features:[M([{provide:ce,useExisting:V(()=>n),multi:!0}])]}),n})();function Mn(n,e){if(n&1&&(a(0,"p",1),u(1),l()),n&2){let t=e.$implicit;v(),Ye(" ",t,` +`)}}var ve=class n{constructor(e){this.form=e}controlName;messages={};get errors(){if(!this.controlName)return[];let e=this.form.control.get(this.controlName);return!e||!e.errors||!e.touched?[]:Object.keys(e.errors).map(t=>this.messages[t])}static \u0275fac=function(t){return new(t||n)(o(R))};static \u0275cmp=D({type:n,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},standalone:!1,decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(t,i){t&1&&O(0,Mn,2,1,"p",0),t&2&&f("ngForOf",i.errors)},dependencies:[ee],encapsulation:2})};var En=()=>({required:"Title is required"}),wn=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),In=()=>({atleastonevalue:"At least one author required"});function Sn(n,e){if(n&1&&C(0,"input",20),n&2){let t=e.index;f("formControlName",t),Ae("aria-label","Author "+t)}}var T=class n{book;submitBook=new N;form=new ae({title:new y("",{nonNullable:!0,validators:Y.required}),subtitle:new y("",{nonNullable:!0}),isbn:new y("",{nonNullable:!0,validators:[Y.required,Pt],asyncValidators:be(ge).isbnExists()}),description:new y("",{nonNullable:!0}),published:new y("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new y("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(e){this.form.patchValue(e),this.form.setControl("authors",this.buildAuthorsArray(e.authors))}setEditMode(e){let t=this.form.controls.isbn;e?t.disable():t.enable()}buildAuthorsArray(e){return new K(e.map(t=>new y(t,{nonNullable:!0})),Rt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new y("",{nonNullable:!0}))}submitForm(){let e=this.form.getRawValue(),t=e.authors.filter(r=>!!r),i=m(c({},e),{authors:t});this.submitBook.emit(i)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=D({type:n,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},standalone:!1,features:[j],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(t,i){t&1&&(a(0,"form",0),p("ngSubmit",function(){return i.submitForm()}),a(1,"label",1),u(2,"Title"),l(),C(3,"input",2)(4,"bm-form-errors",3),a(5,"label",4),u(6,"Subtitle"),l(),C(7,"input",5),a(8,"label",6),u(9,"ISBN"),l(),C(10,"input",7)(11,"bm-form-errors",8),a(12,"label"),u(13,"Authors"),l(),a(14,"button",9),p("click",function(){return i.addAuthorControl()}),u(15," + Author "),l(),a(16,"fieldset",10),O(17,Sn,1,2,"input",11),l(),C(18,"bm-form-errors",12),a(19,"label",13),u(20,"Description"),l(),C(21,"textarea",14),a(22,"label",15),u(23,"Published"),l(),C(24,"input",16),a(25,"label",17),u(26,"Thumbnail URL"),l(),C(27,"input",18),a(28,"button",19),u(29," Save "),l()()),t&2&&(f("formGroup",i.form),v(4),f("messages",Q(6,En)),v(7),f("messages",Q(7,wn)),v(6),f("ngForOf",i.authors.controls),v(),f("messages",Q(8,In)),v(10),f("disabled",i.form.invalid))},dependencies:[ee,wt,de,bt,Dt,R,Pe,pe,Tt,ve],encapsulation:2})};var _e=class n{constructor(e,t){this.service=e;this.router=t}create(e){this.service.create(e).subscribe(t=>{this.router.navigate(["/books",t.isbn])})}static \u0275fac=function(t){return new(t||n)(o(x),o(te))};static \u0275cmp=D({type:n,selectors:[["bm-book-create"]],standalone:!1,decls:3,vars:0,consts:[[3,"submitBook"]],template:function(t,i){t&1&&(a(0,"h1"),u(1,"Create Book"),l(),a(2,"bm-book-form",0),p("submitBook",function(s){return i.create(s)}),l())},dependencies:[T],encapsulation:2})};function kn(n,e){if(n&1){let t=qe();a(0,"bm-book-form",1),p("submitBook",function(r){Le(t);let s=ze();return $e(s.update(r))}),l()}if(n&2){let t=e.ngIf;f("book",t)}}var ye=class n{constructor(e,t,i){this.service=e;this.route=t;this.router=i;this.book$=this.route.paramMap.pipe(k(r=>r.get("isbn")),Ue(r=>this.service.getSingle(r)))}book$;update(e){this.service.update(e).subscribe(t=>{this.router.navigate(["/books",t.isbn])})}static \u0275fac=function(t){return new(t||n)(o(x),o(et),o(te))};static \u0275cmp=D({type:n,selectors:[["bm-book-edit"]],standalone:!1,decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(t,i){t&1&&(a(0,"h1"),u(1,"Edit Book"),l(),O(2,kn,1,1,"bm-book-form",0),Ze(3,"async")),t&2&&(v(2),f("ngIf",Xe(3,1,i.book$)))},dependencies:[Ke,T,Je],encapsulation:2})};var On=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:_e},{path:"edit/:isbn",component:ye}],Ce=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=b({imports:[Ee.forChild(On),Ee]})};var Ut=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=A({type:n});static \u0275inj=b({imports:[Qe,Ce,Ot]})};export{Ut as AdminModule}; diff --git a/chunk-XSFVBSGK.js b/chunk-7QVHZYEP.js similarity index 84% rename from chunk-XSFVBSGK.js rename to chunk-7QVHZYEP.js index fd72e98..490f4a2 100644 --- a/chunk-XSFVBSGK.js +++ b/chunk-7QVHZYEP.js @@ -1 +1 @@ -import{d as e,p as i}from"./chunk-EFJWQ4MC.js";var a=class t{_isAuthenticated$=new e(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})};export{a}; +import{d as e,p as i}from"./chunk-YSRJOURJ.js";var a=class t{_isAuthenticated$=new e(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})};export{a}; diff --git a/chunk-EFJWQ4MC.js b/chunk-EFJWQ4MC.js deleted file mode 100644 index db9ed80..0000000 --- a/chunk-EFJWQ4MC.js +++ /dev/null @@ -1,8 +0,0 @@ -var fv=Object.defineProperty,hv=Object.defineProperties;var pv=Object.getOwnPropertyDescriptors;var wo=Object.getOwnPropertySymbols;var Xl=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable;var Jl=(e,t,n)=>t in e?fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})Xl.call(t,n)&&Jl(e,n,t[n]);if(wo)for(var n of wo(t))ed.call(t,n)&&Jl(e,n,t[n]);return e},G=(e,t)=>hv(e,pv(t));var td=(e,t)=>{var n={};for(var r in e)Xl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wo)for(var r of wo(e))t.indexOf(r)<0&&ed.call(e,r)&&(n[r]=e[r]);return n};var Io=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function nd(e,t){return Object.is(e,t)}var oe=null,Eo=!1,Co=1,Tt=Symbol("SIGNAL");function F(e){let t=oe;return oe=e,t}function rd(){return oe}var yr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ua(e){if(Eo)throw new Error("");if(oe===null)return;oe.consumerOnSignalRead(e);let t=oe.nextProducerIndex++;if(To(oe),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function da(e){To(e);for(let t=0;t0}function To(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function cd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ud(e){return e.producerNode!==void 0}function ld(e){let t=Object.create(vv);t.computation=e;let n=()=>{if(od(t),ua(t),t.value===bo)throw t.error;return t.value};return n[Tt]=t,n}var aa=Symbol("UNSET"),ca=Symbol("COMPUTING"),bo=Symbol("ERRORED"),vv=G(v({},yr),{value:aa,dirty:!0,error:null,equal:nd,producerMustRecompute(e){return e.value===aa||e.value===ca},producerRecomputeValue(e){if(e.value===ca)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ca;let n=Mo(e),r;try{r=e.computation()}catch(o){r=bo,e.error=o}finally{la(e,n)}if(t!==aa&&t!==bo&&r!==bo&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function yv(){throw new Error}var dd=yv;function fd(){dd()}function hd(e){dd=e}var Dv=null;function pd(e){let t=Object.create(md);t.value=e;let n=()=>(ua(t),t.value);return n[Tt]=t,n}function ha(e,t){sd()||fd(),e.equal(e.value,t)||(e.value=t,wv(e))}function gd(e,t){sd()||fd(),ha(e,t(e.value))}var md=G(v({},yr),{equal:nd,value:void 0});function wv(e){e.version++,gv(),id(e),Dv?.()}function M(e){return typeof e=="function"}function Cn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _o=Cn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Qt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof _o?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{vd(i)}catch(s){t=t??[],s instanceof _o?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _o(t)}}add(t){var n;if(t&&t!==this)if(this.closed)vd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Qt(n,t)}remove(t){let{_finalizers:n}=this;n&&Qt(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var pa=Y.EMPTY;function xo(e){return e instanceof Y||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function vd(e){M(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var bn={setTimeout(e,t,...n){let{delegate:r}=bn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=bn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function No(e){bn.setTimeout(()=>{let{onUnhandledError:t}=Be;if(t)t(e);else throw e})}function Dr(){}var yd=ga("C",void 0,void 0);function Dd(e){return ga("E",void 0,e)}function wd(e){return ga("N",e,void 0)}function ga(e,t,n){return{kind:e,value:t,error:n}}var Kt=null;function Mn(e){if(Be.useDeprecatedSynchronousErrorHandling){let t=!Kt;if(t&&(Kt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Kt;if(Kt=null,n)throw r}}else e()}function Id(e){Be.useDeprecatedSynchronousErrorHandling&&Kt&&(Kt.errorThrown=!0,Kt.error=e)}var Jt=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,xo(t)&&t.add(this)):this.destination=Cv}static create(t,n,r){return new Sn(t,n,r)}next(t){this.isStopped?va(wd(t),this):this._next(t)}error(t){this.isStopped?va(Dd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?va(yd,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()}}},Iv=Function.prototype.bind;function ma(e,t){return Iv.call(e,t)}var ya=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ao(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ao(r)}else Ao(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ao(n)}}},Sn=class extends Jt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Be.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ma(t.next,i),error:t.error&&ma(t.error,i),complete:t.complete&&ma(t.complete,i)}):o=t}this.destination=new ya(o)}};function Ao(e){Be.useDeprecatedSynchronousErrorHandling?Id(e):No(e)}function Ev(e){throw e}function va(e,t){let{onStoppedNotification:n}=Be;n&&bn.setTimeout(()=>n(e,t))}var Cv={closed:!0,next:Dr,error:Ev,complete:Dr};var Tn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ge(e){return e}function Da(...e){return wa(e)}function wa(e){return e.length===0?ge:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var k=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Mv(n)?n:new Sn(n,r,o);return Mn(()=>{let{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 r=Ed(r),new r((o,i)=>{let s=new Sn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Tn](){return this}pipe(...n){return wa(n)(this)}toPromise(n){return n=Ed(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ed(e){var t;return(t=e??Be.Promise)!==null&&t!==void 0?t:Promise}function bv(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Mv(e){return e&&e instanceof Jt||bv(e)&&xo(e)}function Ia(e){return M(e?.lift)}function O(e){return t=>{if(Ia(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 N(e,t,n,r,o){return new Ea(e,t,n,r,o)}var Ea=class extends Jt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}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()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function _n(){return O((e,t)=>{let n=null;e._refCount++;let r=N(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var xn=class extends k{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ia(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(N(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return _n()(this)}};var Cd=Cn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var de=(()=>{class e extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ro(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Cd}next(n){Mn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Mn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Mn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{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((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:o,observers:i}=this;return r||o?pa:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,Qt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return e.create=(t,n)=>new Ro(t,n),e})(),Ro=class extends de{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:pa}};var ae=class extends de{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ca={now(){return(Ca.delegate||Date).now()},delegate:void 0};var Oo=class extends Y{constructor(t,n){super()}schedule(t,n=0){return this}};var wr={setInterval(e,t,...n){let{delegate:r}=wr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=wr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Po=class extends Oo{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return wr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&wr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Qt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Nn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Nn.now=Ca.now;var ko=class extends Nn{constructor(t,n=Nn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var bd=new ko(Po);var Se=new k(e=>e.complete());function Md(e){return e&&M(e.schedule)}function Sd(e){return e[e.length-1]}function Fo(e){return M(Sd(e))?e.pop():void 0}function _t(e){return Md(Sd(e))?e.pop():void 0}function _d(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Td(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function Xt(e){return this instanceof Xt?(this.v=e,this):new Xt(e)}function xd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(m){return new Promise(function(I,T){i.push([f,m,I,T])>1||c(f,m)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(m){h(i[0][3],m)}}function u(f){f.value instanceof Xt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Nd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Td=="function"?Td(e):e[Symbol.iterator](),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,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Lo=e=>e&&typeof e.length=="number"&&typeof e!="function";function jo(e){return M(e?.then)}function Vo(e){return M(e[Tn])}function Uo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function $o(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Sv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Bo=Sv();function Ho(e){return M(e?.[Bo])}function zo(e){return xd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Xt(n.read());if(o)return yield Xt(void 0);yield yield Xt(r)}}finally{n.releaseLock()}})}function Go(e){return M(e?.getReader)}function X(e){if(e instanceof k)return e;if(e!=null){if(Vo(e))return Tv(e);if(Lo(e))return _v(e);if(jo(e))return xv(e);if(Uo(e))return Ad(e);if(Ho(e))return Nv(e);if(Go(e))return Av(e)}throw $o(e)}function Tv(e){return new k(t=>{let n=e[Tn]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _v(e){return new k(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,No)})}function Nv(e){return new k(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ad(e){return new k(t=>{Rv(e,t).catch(n=>t.error(n))})}function Av(e){return Ad(zo(e))}function Rv(e,t){var n,r,o,i;return _d(this,void 0,void 0,function*(){try{for(n=Nd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),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()})}function Ce(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function qo(e,t=0){return O((n,r)=>{n.subscribe(N(r,o=>Ce(r,e,()=>r.next(o),t),()=>Ce(r,e,()=>r.complete(),t),o=>Ce(r,e,()=>r.error(o),t)))})}function Wo(e,t=0){return O((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Rd(e,t){return X(e).pipe(Wo(t),qo(t))}function Od(e,t){return X(e).pipe(Wo(t),qo(t))}function Pd(e,t){return new k(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function kd(e,t){return new k(n=>{let r;return Ce(n,t,()=>{r=e[Bo](),Ce(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function Zo(e,t){if(!e)throw new Error("Iterable cannot be null");return new k(n=>{Ce(n,t,()=>{let r=e[Symbol.asyncIterator]();Ce(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Fd(e,t){return Zo(zo(e),t)}function Ld(e,t){if(e!=null){if(Vo(e))return Rd(e,t);if(Lo(e))return Pd(e,t);if(jo(e))return Od(e,t);if(Uo(e))return Zo(e,t);if(Ho(e))return kd(e,t);if(Go(e))return Fd(e,t)}throw $o(e)}function W(e,t){return t?Ld(e,t):X(e)}function C(...e){let t=_t(e);return W(e,t)}function An(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new k(t?o=>t.schedule(r,0,o):r)}function ba(e){return!!e&&(e instanceof k||M(e.lift)&&M(e.subscribe))}var ut=Cn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _(e,t){return O((n,r)=>{let o=0;n.subscribe(N(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Ov}=Array;function Pv(e,t){return Ov(t)?e(...t):e(t)}function Yo(e){return _(t=>Pv(e,t))}var{isArray:kv}=Array,{getPrototypeOf:Fv,prototype:Lv,keys:jv}=Object;function Qo(e){if(e.length===1){let t=e[0];if(kv(t))return{args:t,keys:null};if(Vv(t)){let n=jv(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Vv(e){return e&&typeof e=="object"&&Fv(e)===Lv}function Ko(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ir(...e){let t=_t(e),n=Fo(e),{args:r,keys:o}=Qo(e);if(r.length===0)return W([],t);let i=new k(Uv(r,t,o?s=>Ko(o,s):ge));return n?i.pipe(Yo(n)):i}function Uv(e,t,n=ge){return r=>{jd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=W(e[c],t),l=!1;u.subscribe(N(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function jd(e,t,n){e?Ce(n,e,t):t()}function Vd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=m=>u{i&&t.next(m),u++;let I=!1;X(n(m,l++)).subscribe(N(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{I=!0},void 0,()=>{if(I)try{for(u--;c.length&&ug(T)):g(T)}h()}catch(T){t.error(T)}}))};return e.subscribe(N(t,f,()=>{d=!0,h()})),()=>{a?.()}}function ee(e,t,n=1/0){return M(t)?ee((r,o)=>_((i,s)=>t(r,i,o,s))(X(e(r,o))),n):(typeof t=="number"&&(n=t),O((r,o)=>Vd(r,o,e,n)))}function xt(e=1/0){return ee(ge,e)}function Ud(){return xt(1)}function Rn(...e){return Ud()(W(e,_t(e)))}function Jo(e){return new k(t=>{X(e()).subscribe(t)})}function $v(...e){let t=Fo(e),{args:n,keys:r}=Qo(e),o=new k(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Ko(r,a):a),i.complete())}))}});return t?o.pipe(Yo(t)):o}function me(e,t){return O((n,r)=>{let o=0;n.subscribe(N(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Pe(e){return O((t,n)=>{let r=null,o=!1,i;r=t.subscribe(N(n,void 0,void 0,s=>{i=X(e(s,Pe(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function $d(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(N(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function lt(e,t){return M(t)?ee(e,t,1):ee(e,1)}function Bv(e,t=bd){return O((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Nt(e){return O((t,n)=>{let r=!1;t.subscribe(N(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function dt(e){return e<=0?()=>Se:O((t,n)=>{let r=0;t.subscribe(N(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ma(e){return _(()=>e)}function Hv(e,t=ge){return e=e??zv,O((n,r)=>{let o,i=!0;n.subscribe(N(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function zv(e,t){return e===t}function Xo(e=Gv){return O((t,n)=>{let r=!1;t.subscribe(N(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Gv(){return new ut}function At(e){return O((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function He(e,t){let n=arguments.length>=2;return r=>r.pipe(e?me((o,i)=>e(o,i,r)):ge,dt(1),n?Nt(t):Xo(()=>new ut))}function On(e){return e<=0?()=>Se:O((t,n)=>{let r=[];t.subscribe(N(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Sa(e,t){let n=arguments.length>=2;return r=>r.pipe(e?me((o,i)=>e(o,i,r)):ge,On(1),n?Nt(t):Xo(()=>new ut))}function Ta(e,t){return O($d(e,t,arguments.length>=2,!0))}function _a(...e){let t=_t(e);return O((n,r)=>{(t?Rn(e,n,t):Rn(e,n)).subscribe(r)})}function ve(e,t){return O((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(N(r,c=>{o?.unsubscribe();let u=0,l=i++;X(e(c,l)).subscribe(o=N(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ei(e){return O((t,n)=>{X(e).subscribe(N(n,()=>n.complete(),Dr)),!n.closed&&t.subscribe(n)})}function te(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?O((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ge}var Nf="https://g.co/ng/security#xss",D=class extends Error{constructor(t,n){super(Gi(t,n)),this.code=t}};function Gi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Or(e){return{toString:e}.toString()}var ti="__parameters__";function qv(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Af(e,t,n){return Or(()=>{let r=qv(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(ti)?c[ti]:Object.defineProperty(c,ti,{value:[]})[ti];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var ye=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function Wv(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function we(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(we).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Bd(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Zv=B({__forward_ref__:B});function Rf(e){return e.__forward_ref__=Rf,e.toString=function(){return we(this())},e}function De(e){return Of(e)?e():e}function Of(e){return typeof e=="function"&&e.hasOwnProperty(Zv)&&e.__forward_ref__===Rf}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function mt(e){return{providers:e.providers||[],imports:e.imports||[]}}function qi(e){return Hd(e,kf)||Hd(e,Ff)}function Pf(e){return qi(e)!==null}function Hd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yv(e){let t=e&&(e[kf]||e[Ff]);return t||null}function zd(e){return e&&(e.hasOwnProperty(Gd)||e.hasOwnProperty(Qv))?e[Gd]:null}var kf=B({\u0275prov:B}),Gd=B({\u0275inj:B}),Ff=B({ngInjectableDef:B}),Qv=B({ngInjectorDef:B}),y=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Lf(e){return e&&!!e.\u0275providers}var Kv=B({\u0275cmp:B}),Jv=B({\u0275dir:B}),Xv=B({\u0275pipe:B}),ey=B({\u0275mod:B}),pi=B({\u0275fac:B}),br=B({__NG_ELEMENT_ID__:B}),qd=B({__NG_ENV_ID__:B});function Wi(e){return typeof e=="string"?e:e==null?"":String(e)}function ty(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Wi(e)}function ny(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function Vc(e,t){throw new D(-201,!1)}var R=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(R||{}),Ga;function jf(){return Ga}function be(e){let t=Ga;return Ga=e,t}function Vf(e,t,n){let r=qi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&R.Optional)return null;if(t!==void 0)return t;Vc(e,"Injector")}var ry={},Sr=ry,qa="__NG_DI_FLAG__",gi="ngTempTokenPath",oy="ngTokenPath",iy=/\n/gm,sy="\u0275",Wd="__source",jn;function ay(){return jn}function Rt(e){let t=jn;return jn=e,t}function cy(e,t=R.Default){if(jn===void 0)throw new D(-203,!1);return jn===null?Vf(e,void 0,t):jn.get(e,t&R.Optional?null:void 0,t)}function E(e,t=R.Default){return(jf()||cy)(De(e),t)}function p(e,t=R.Default){return E(e,Zi(t))}function Zi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wa(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):we(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(iy,` - `)}`}var Yi=Uf(Af("Optional"),8);var Uc=Uf(Af("SkipSelf"),4);function nn(e,t){let n=e.hasOwnProperty(pi);return n?e[pi]:null}function fy(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?$c(n,t):t(n))}function $f(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function mi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function py(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function gy(e,t,n){let r=Pr(e,t);return r>=0?e[r|1]=n:(r=~r,py(e,r,t,n)),r}function xa(e,t){let n=Pr(e,t);if(n>=0)return e[n|1]}function Pr(e,t){return my(e,t,1)}function my(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ze(r))return!1;s=!0}}}}return ze(r)||s}function ze(e){return(e&1)===0}function Ey(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ze(s)&&(t+=Yd(i,o),o=""),r=s,i=i||!ze(r);n++}return o!==""&&(t+=Yd(i,o)),t}function Ty(e){return e.map(Sy).join(",")}function _y(e){let t=[],n=[],r=1,o=2;for(;r{let t=Jf(e),n=G(v({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===zf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||nt.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""});Xf(n);let r=e.dependencies;return n.directiveDefs=Kd(r,!1),n.pipeDefs=Kd(r,!0),n.id=Ay(n),n})}function xy(e){return kt(e)||Zf(e)}function Ny(e){return e!==null}function vt(e){return Or(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Qd(e,t){if(e==null)return Un;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Pt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Pt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function pn(e){return Or(()=>{let t=Jf(e);return Xf(t),t})}function Hc(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function kt(e){return e[Kv]||null}function Zf(e){return e[Jv]||null}function Yf(e){return e[Xv]||null}function Qf(e){let t=kt(e)||Zf(e)||Yf(e);return t!==null?t.standalone:!1}function Kf(e,t){let n=e[ey]||null;if(!n&&t===!0)throw new Error(`Type ${we(e)} does not have '\u0275mod' property.`);return n}function Jf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Un,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Qd(e.inputs,t),outputs:Qd(e.outputs),debugInfo:null}}function Xf(e){e.features?.forEach(t=>t(e))}function Kd(e,t){if(!e)return null;let n=t?Yf:xy;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ny)}function Ay(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Qn(e){return{\u0275providers:e}}function Ry(...e){return{\u0275providers:eh(!0,e),\u0275fromNgModule:!0}}function eh(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return $c(t,s=>{let a=s;Ya(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&th(o,i),n}function th(e,t){for(let n=0;n{t(i,r)})}}function Ya(e,t,n,r){if(e=De(e),!e)return!1;let o=null,i=zd(e),s=!i&&kt(e);if(!i&&!s){let c=e.ngModule;if(i=zd(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ya(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{$c(i.imports,l=>{Ya(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&th(u,t)}if(!a){let u=nn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Te},o),t({provide:Hf,useValue:o,multi:!0},o),t({provide:rn,useValue:()=>E(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;zc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function zc(e,t){for(let n of e)Lf(n)&&(n=n.\u0275providers),Array.isArray(n)?zc(n,t):t(n)}var Oy=B({provide:String,useValue:B});function nh(e){return e!==null&&typeof e=="object"&&Oy in e}function Py(e){return!!(e&&e.useExisting)}function ky(e){return!!(e&&e.useFactory)}function $n(e){return typeof e=="function"}function Fy(e){return!!e.useClass}var Qi=new y(""),ui={},Ly={},Na;function Gc(){return Na===void 0&&(Na=new vi),Na}var Ie=class{},_r=class extends Ie{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,Ka(t,s=>this.processProvider(s)),this.records.set(Bf,Pn(void 0,this)),o.has("environment")&&this.records.set(Ie,Pn(void 0,this));let i=this.records.get(Qi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Hf,Te,R.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=F(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Rt(this),r=be(void 0),o;try{return t()}finally{Rt(n),be(r)}}get(t,n=Sr,r=R.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(qd))return t[qd](this);r=Zi(r);let o,i=Rt(this),s=be(void 0);try{if(!(r&R.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=By(t)&&qi(t);u&&this.injectableDefInScope(u)?c=Pn(Qa(t),ui):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&R.Self?Gc():this.parent;return n=r&R.Optional&&n===Sr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[gi]=a[gi]||[]).unshift(we(t)),i)throw a;return ly(a,t,"R3InjectorError",this.source)}else throw a}finally{be(s),Rt(i)}}resolveInjectorInitializers(){let t=F(null),n=Rt(this),r=be(void 0),o;try{let i=this.get(rn,Te,R.Self);for(let s of i)s()}finally{Rt(n),be(r),F(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(we(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=De(t);let n=$n(t)?t:De(t&&t.provide),r=Vy(t);if(!$n(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Pn(void 0,ui,!0),o.factory=()=>Wa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=F(null);try{return n.value===ui&&(n.value=Ly,n.value=n.factory()),typeof n.value=="object"&&n.value&&$y(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=De(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Qa(e){let t=qi(e),n=t!==null?t.factory:nn(e);if(n!==null)return n;if(e instanceof y)throw new D(204,!1);if(e instanceof Function)return jy(e);throw new D(204,!1)}function jy(e){if(e.length>0)throw new D(204,!1);let n=Yv(e);return n!==null?()=>n.factory(e):()=>new e}function Vy(e){if(nh(e))return Pn(void 0,e.useValue);{let t=rh(e);return Pn(t,ui)}}function rh(e,t,n){let r;if($n(e)){let o=De(e);return nn(o)||Qa(o)}else if(nh(e))r=()=>De(e.useValue);else if(ky(e))r=()=>e.useFactory(...Wa(e.deps||[]));else if(Py(e))r=()=>E(De(e.useExisting));else{let o=De(e&&(e.useClass||e.provide));if(Uy(e))r=()=>new o(...Wa(e.deps));else return nn(o)||Qa(o)}return r}function Pn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Uy(e){return!!e.deps}function $y(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function By(e){return typeof e=="function"||typeof e=="object"&&e instanceof y}function Ka(e,t){for(let n of e)Array.isArray(n)?Ka(n,t):n&&Lf(n)?Ka(n.\u0275providers,t):t(n)}function Le(e,t){e instanceof _r&&e.assertNotDestroyed();let n,r=Rt(e),o=be(void 0);try{return t()}finally{Rt(r),be(o)}}function oh(){return jf()!==void 0||ay()!=null}function Hy(e){if(!oh())throw new D(-203,!1)}function zy(e){let t=ye.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Gy(e){return typeof e=="function"}var _e=0,S=1,b=2,ue=3,Ge=4,Ye=5,rt=6,yi=7,We=8,Bn=9,ot=10,Q=11,xr=12,Jd=13,Kn=14,Fe=15,on=16,kn=17,ft=18,Ki=19,ih=20,Ot=21,Aa=22,ke=23,ie=25,sh=1,Nr=6,ht=7,Di=8,Hn=9,Me=10,wi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(wi||{});function qe(e){return Array.isArray(e)&&typeof e[sh]=="object"}function it(e){return Array.isArray(e)&&e[sh]===!0}function qc(e){return(e.flags&4)!==0}function kr(e){return e.componentOffset>-1}function Ji(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function Ii(e){return(e[b]&512)!==0}var Ja=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ah(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Jn(){return ch}function ch(e){return e.type.prototype.ngOnChanges&&(e.setInput=Wy),qy}Jn.ngInherit=!0;function qy(){let e=lh(this),t=e?.current;if(t){let n=e.previous;if(n===Un)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Wy(e,t,n,r,o){let i=this.declaredInputs[r],s=lh(e)||Zy(e,{previous:Un,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ja(u&&u.currentValue,n,c===Un),ah(e,t,o,n)}var uh="__ngSimpleChanges__";function lh(e){return e[uh]||null}function Zy(e,t){return e[uh]=t}var Xd=null;var et=function(e,t,n){Xd?.(e,t,n)},Yy="svg",Qy="math";function Ze(e){for(;Array.isArray(e);)e=e[_e];return e}function dh(e,t){return Ze(t[e])}function Ne(e,t){return Ze(t[e.index])}function fh(e,t){return e.data[t]}function Wc(e,t){return e[t]}function Vt(e,t){let n=t[e];return qe(n)?n:n[_e]}function Ky(e){return(e[b]&4)===4}function Zc(e){return(e[b]&128)===128}function Jy(e){return it(e[ue])}function zn(e,t){return t==null?null:e[t]}function hh(e){e[kn]=0}function ph(e){e[b]&1024||(e[b]|=1024,Zc(e)&&es(e))}function Xy(e,t){for(;e>0;)t=t[Kn],e--;return t}function Xi(e){return!!(e[b]&9216||e[ke]?.dirty)}function Xa(e){e[ot].changeDetectionScheduler?.notify(8),e[b]&64&&(e[b]|=1024),Xi(e)&&es(e)}function es(e){e[ot].changeDetectionScheduler?.notify(0);let t=sn(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!Zc(t)));)t=sn(t)}function gh(e,t){if((e[b]&256)===256)throw new D(911,!1);e[Ot]===null&&(e[Ot]=[]),e[Ot].push(t)}function eD(e,t){if(e[Ot]===null)return;let n=e[Ot].indexOf(t);n!==-1&&e[Ot].splice(n,1)}function sn(e){let t=e[ue];return it(t)?t[ue]:t}var A={lFrame:bh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var mh=!1;function tD(){return A.lFrame.elementDepthCount}function nD(){A.lFrame.elementDepthCount++}function rD(){A.lFrame.elementDepthCount--}function vh(){return A.bindingsEnabled}function Fr(){return A.skipHydrationRootTNode!==null}function oD(e){return A.skipHydrationRootTNode===e}function iD(e){A.skipHydrationRootTNode=e}function sD(){A.skipHydrationRootTNode=null}function L(){return A.lFrame.lView}function fe(){return A.lFrame.tView}function vO(e){return A.lFrame.contextLView=e,e[We]}function yO(e){return A.lFrame.contextLView=null,e}function he(){let e=yh();for(;e!==null&&e.type===64;)e=e.parent;return e}function yh(){return A.lFrame.currentTNode}function aD(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gn(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function Yc(){return A.lFrame.isParent}function Dh(){A.lFrame.isParent=!1}function cD(){return A.lFrame.contextLView}function wh(){return mh}function ef(e){mh=e}function ts(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function uD(e){return A.lFrame.bindingIndex=e}function Qc(){return A.lFrame.bindingIndex++}function lD(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dD(){return A.lFrame.inI18n}function fD(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,ec(t)}function hD(){return A.lFrame.currentDirectiveIndex}function ec(e){A.lFrame.currentDirectiveIndex=e}function pD(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ih(){return A.lFrame.currentQueryIndex}function Kc(e){A.lFrame.currentQueryIndex=e}function gD(e){let t=e[S];return t.type===2?t.declTNode:t.type===1?e[Ye]:null}function Eh(e,t,n){if(n&R.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&R.Host);)if(o=gD(i),o===null||(i=i[Kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=Ch();return r.currentTNode=t,r.lView=e,!0}function Jc(e){let t=Ch(),n=e[S];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ch(){let e=A.lFrame,t=e===null?null:e.child;return t===null?bh(e):t}function bh(e){let 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 e!==null&&(e.child=t),t}function Mh(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Sh=Mh;function Xc(){let e=Mh();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 mD(e){return(A.lFrame.contextLView=Xy(e,A.lFrame.contextLView))[We]}function Xn(){return A.lFrame.selectedIndex}function an(e){A.lFrame.selectedIndex=e}function Th(){let e=A.lFrame;return fh(e.tView,e.selectedIndex)}function _h(){return A.lFrame.currentNamespace}var xh=!0;function ns(){return xh}function Ut(e){xh=e}function vD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ch(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))}function rs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[kn]+=65536),(a>14>16&&(e[b]&3)===t&&(e[b]+=16384,tf(a,i)):tf(a,i)}var Vn=-1,cn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function DD(e){return e instanceof cn}function wD(e){return(e.flags&8)!==0}function ID(e){return(e.flags&16)!==0}var Oa={},tc=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Zi(r);let o=this.injector.get(t,Oa,r);return o!==Oa||n===Oa?o:this.parentInjector.get(t,n,r)}};function Ah(e){return e!==Vn}function Ei(e){return e&32767}function ED(e){return e>>16}function Ci(e,t){let n=ED(e),r=t;for(;n>0;)r=r[Kn],n--;return r}var nc=!0;function bi(e){let t=nc;return nc=e,t}var CD=256,Rh=CD-1,Oh=5,bD=0,tt={};function MD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(br)&&(r=n[br]),r==null&&(r=n[br]=bD++);let o=r&Rh,i=1<>Oh)]|=i}function Mi(e,t){let n=Ph(e,t);if(n!==-1)return n;let r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,Pa(r.data,e),Pa(t,null),Pa(r.blueprint,null));let o=eu(e,t),i=e.injectorIndex;if(Ah(o)){let s=Ei(o),a=Ci(o,t),c=a[S].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Pa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ph(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function eu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Vh(o),r===null)return Vn;if(n++,o=o[Kn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Vn}function rc(e,t,n){MD(e,t,n)}function SD(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&Ft(f)&&f.type===n)return c}return null}function un(e,t,n,r){let o=e[n],i=t.data;if(DD(o)){let s=o;s.resolving&&ny(ty(i[n]));let a=bi(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?be(s.injectImpl):null,l=Eh(e,r,R.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&vD(n,i[n],t)}finally{u!==null&&be(u),bi(a),s.resolving=!1,Sh()}}return o}function _D(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(br)?e[br]:void 0;return typeof t=="number"?t>=0?t&Rh:xD:t}function nf(e,t,n){let r=1<>Oh)]&r)}function rf(e,t){return!(e&R.Self)&&!(e&R.Host&&t)}var tn=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Lh(this._tNode,this._lView,t,Zi(r),n)}};function xD(){return new tn(he(),L())}function tu(e){return Or(()=>{let t=e.prototype.constructor,n=t[pi]||oc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[pi]||oc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function oc(e){return Of(e)?()=>{let t=oc(De(e));return t&&t()}:nn(e)}function ND(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=jh(i,s,n,r|R.Self,tt);if(a!==tt)return a;let c=i.parent;if(!c){let u=s[ih];if(u){let l=u.get(n,tt,r);if(l!==tt)return l}c=Vh(s),s=s[Kn]}i=c}return o}function Vh(e){let t=e[S],n=t.type;return n===2?t.declTNode:n===1?e[Ye]:null}function nu(e){return SD(he(),e)}function of(e,t=null,n=null,r){let o=Uh(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uh(e,t=null,n=null,r,o=new Set){let i=[n||Te,Ry(e)];return r=r||(typeof e=="object"?void 0:we(e)),new _r(i,t||Gc(),r||null,o)}var xe=class e{static{this.THROW_IF_NOT_FOUND=Sr}static{this.NULL=new vi}static create(t,n){if(Array.isArray(t))return of({name:""},n,t,"");{let r=t.name??"";return of({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=w({token:e,providedIn:"any",factory:()=>E(Bf)})}static{this.__NG_ELEMENT_ID__=-1}};var AD=new y("");AD.__NG_ELEMENT_ID__=e=>{let t=he();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&R.Optional)return null;throw new D(204,!1)};var RD="ngOriginalError";function ka(e){return e[RD]}var $h=!0,ru=(()=>{class e{static{this.__NG_ELEMENT_ID__=OD}static{this.__NG_ENV_ID__=n=>n}}return e})(),ic=class extends ru{constructor(t){super(),this._lView=t}onDestroy(t){return gh(this._lView,t),()=>eD(this._lView,t)}};function OD(){return new ic(L())}var yt=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ae(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})();var sc=class extends de{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,oh()&&(this.destroyRef=p(ru,{optional:!0})??void 0,this.pendingTasks=p(yt,{optional:!0})??void 0)}emit(t){let n=F(null);try{super.next(t)}finally{F(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ce=sc;function Si(...e){}function Bh(e){let t,n;function r(){e=Si;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function sf(e){return queueMicrotask(()=>e()),()=>{e=Si}}var ou="isAngularZone",Ti=ou+"_ID",PD=0,$=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ce(!1),this.onMicrotaskEmpty=new ce(!1),this.onStable=new ce(!1),this.onError=new ce(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=$h}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,LD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ou)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,kD,Si,Si);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)}},kD={};function iu(e){if(e._nesting==0&&!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 FD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Bh(()=>{e.callbackScheduled=!1,ac(e),e.isCheckStableRunning=!0,iu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ac(e)}function LD(e){let t=()=>{FD(e)},n=PD++;e._inner=e._inner.fork({name:"angular",properties:{[ou]:!0,[Ti]:n,[Ti+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(jD(c))return r.invokeTask(i,s,a,c);try{return af(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),cf(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return af(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!VD(c)&&t(),cf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ac(e),iu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ac(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function af(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function cf(e){e._nesting--,iu(e)}var _i=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ce,this.onMicrotaskEmpty=new ce,this.onStable=new ce,this.onError=new ce}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)}};function jD(e){return Hh(e,"__ignore_ng_zone__")}function VD(e){return Hh(e,"__scheduler_tick__")}function Hh(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function UD(e="zone.js",t){return e==="noop"?new _i:e==="zone.js"?new $(t):e}var pt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ka(t);for(;n&&ka(n);)n=ka(n);return n||null}},$D=new y("",{providedIn:"root",factory:()=>{let e=p($),t=p(pt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function BD(){return er(he(),L())}function er(e,t){return new Dt(Ne(e,t))}var Dt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=BD}}return e})();function HD(e){return e instanceof Dt?e.nativeElement:e}function zD(){return this._results[Symbol.iterator]()}var cc=class e{get changes(){return this._changes??=new ce}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=zD)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=hy(t);(this._changesDetected=!fy(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},GD="ngSkipHydration",qD="ngskiphydration";function zh(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;nKD}),KD="ng",su=new y(""),je=new y("",{providedIn:"platform",factory:()=>"unknown"});var au=new y("",{providedIn:"root",factory:()=>os().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function JD(){let e=new tr;return p(je)==="browser"&&(e.store=XD(os(),p(Lr))),e}var tr=(()=>{class e{constructor(){this.store={},this.onSerializeCallbacks={}}static{this.\u0275prov=w({token:e,providedIn:"root",factory:JD})}get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/null;function sw(e,t,n=!1){let r=e.getAttribute(Fa);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,c={};if(r!==""){let l=t.get(tr,null,{optional:!0});l!==null&&(c=l.get(tp,[])[Number(r)])}let u={data:c,firstChild:e.firstChild??null};return n&&(u.firstChild=e,is(u,0,e.nextSibling)),a?e.setAttribute(Fa,a):e.removeAttribute(Fa),u}function aw(){np=sw}function uu(e,t,n=!1){return np(e,t,n)}function cw(e){let t=e._lView;return t[S].type===2?null:(Ii(t)&&(t=t[ie]),t)}function uw(e){return e.textContent?.replace(/\s/gm,"")}function lw(e){let t=os(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=uw(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}function is(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function fc(e,t){return e.segmentHeads?.[t]??null}function dw(e,t){let n=e.data,r=n[ew]?.[t]??null;return r===null&&n[cu]?.[t]&&(r=lu(e,t)),r}function rp(e,t){return e.data[cu]?.[t]??null}function lu(e,t){let n=rp(e,t)??[],r=0;for(let o of n)r+=o[Ni]*(o[Xh]??1);return r}function fw(e){if(typeof e.disconnectedNodes>"u"){let t=e.data[ep];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}function jr(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[ep];e.disconnectedNodes=n?new Set(n):null}return!!fw(e)?.has(t)}var ni=new y(""),op=!1,ip=new y("",{providedIn:"root",factory:()=>op});var ri;function hw(){if(ri===void 0&&(ri=null,ye.trustedTypes))try{ri=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ri}function lf(e){return hw()?.createScriptURL(e)||e}var Ai=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Nf})`}};function Vr(e){return e instanceof Ai?e.changingThisBreaksApplicationSecurity:e}function du(e,t){let n=pw(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Nf})`)}return n===t}function pw(e){return e instanceof Ai&&e.getTypeName()||null}var gw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function sp(e){return e=String(e),e.match(gw)?e:"unsafe:"+e}var ss=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ss||{});function mw(e){let t=cp();return t?t.sanitize(ss.URL,e)||"":du(e,"URL")?Vr(e):sp(Wi(e))}function vw(e){let t=cp();if(t)return lf(t.sanitize(ss.RESOURCE_URL,e)||"");if(du(e,"ResourceURL"))return lf(Vr(e));throw new D(904,!1)}function yw(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?vw:mw}function ap(e,t,n){return yw(t,n)(e)}function cp(){let e=L();return e&&e[ot].sanitizer}var Dw=/^>|^->||--!>|)/g,Iw="\u200B$1\u200B";function Ew(e){return e.replace(Dw,t=>t.replace(ww,Iw))}function Cw(e){return e.ownerDocument.body}function up(e){return e instanceof Function?e():e}function Er(e){return(e??p(xe)).get(je)==="browser"}var gt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(gt||{}),bw;function fu(e,t){return bw(e,t)}function Fn(e,t,n,r,o){if(r!=null){let i,s=!1;it(r)?i=r:qe(r)&&(s=!0,r=r[_e]);let a=Ze(r);e===0&&n!==null?o==null?gp(t,n,a):Ri(t,n,a,o||null,!0):e===1&&n!==null?Ri(t,n,a,o||null,!0):e===2?gu(t,a,s):e===3&&t.destroyNode(a),i!=null&&Vw(t,e,i,n,o)}}function lp(e,t){return e.createText(t)}function Mw(e,t,n){e.setValue(t,n)}function dp(e,t){return e.createComment(Ew(t))}function hu(e,t,n){return e.createElement(t,n)}function Sw(e,t){fp(e,t),t[_e]=null,t[Ye]=null}function Tw(e,t,n,r,o,i){r[_e]=o,r[Ye]=t,cs(e,r,n,1,o,i)}function fp(e,t){t[ot].changeDetectionScheduler?.notify(9),cs(e,t,t[Q],2,null,null)}function _w(e){let t=e[xr];if(!t)return La(e[S],e);for(;t;){let n=null;if(qe(t))n=t[xr];else{let r=t[Me];r&&(n=r)}if(!n){for(;t&&!t[Ge]&&t!==e;)qe(t)&&La(t[S],t),t=t[ue];t===null&&(t=e),qe(t)&&La(t[S],t),n=t&&t[Ge]}t=n}}function xw(e,t,n,r){let o=Me+r,i=n.length;r>0&&(n[o-1][Ge]=t),r0&&(e[n-1][Ge]=r[Ge]);let i=mi(e,Me+t);Sw(r[S],r);let s=i[ft];s!==null&&s.detachView(i[S]),r[ue]=null,r[Ge]=null,r[b]&=-129}return r}function pp(e,t){if(!(t[b]&256)){let n=t[Q];n.destroyNode&&cs(e,t,n,3,null,null),_w(t)}}function La(e,t){if(t[b]&256)return;let n=F(null);try{t[b]&=-129,t[b]|=256,t[ke]&&fa(t[ke]),Aw(e,t),Nw(e,t),t[S].type===1&&t[Q].destroy();let r=t[on];if(r!==null&&it(t[ue])){r!==t[ue]&&pu(r,t);let o=t[ft];o!==null&&o.detachView(e)}uc(t)}finally{F(n)}}function Nw(e,t){let n=e.cleanup,r=t[yi];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[yi]=null);let o=t[Ot];if(o!==null){t[Ot]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===nt.None||i===nt.Emulated)return null}return Ne(r,n)}}function Ri(e,t,n,r,o){e.insertBefore(t,n,r,o)}function gp(e,t,n){e.appendChild(t,n)}function df(e,t,n,r,o){r!==null?Ri(e,t,n,r,o):gp(e,t,n)}function mp(e,t){return e.parentNode(t)}function Pw(e,t){return e.nextSibling(t)}function kw(e,t,n){return Lw(e,t,n)}function Fw(e,t,n){return e.type&40?Ne(e,n):null}var Lw=Fw,ff;function as(e,t,n,r){let o=Rw(e,r,t),i=t[Q],s=r.parent||t[Ye],a=kw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cie&&Ip(e,t,ie,!1),et(s?2:0,o),n(r,o)}finally{an(i),et(s?3:1,o)}}function vu(e,t,n){if(qc(t)){let r=F(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Ww(e){Gh(e)?yp(e):lw(e)}function Zw(){Tp=Ww}function Yw(e,t,n,r){let o=Rp(t);o.push(n),e.firstCreatePass&&Op(e).push(r,o.length-1)}function Qw(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Fr()&&(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}}function hf(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Pt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?pf(r,n,u,a,c):pf(r,n,u,a)}return r}function pf(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Kw(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function rI(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;kr(n)&&lI(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Mi(n,t),Lt(r,t);let s=n.initialInputs;for(let a=o;a{es(e.lView)},consumerOnSignalRead(){this.lView[ke]=this}});function SI(e){let t=e[ke]??Object.create(TI);return t.lView=e,t}var TI=G(v({},yr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=sn(e.lView);for(;t&&!Fp(t[S]);)t=sn(t);t&&ph(t)},consumerOnSignalRead(){this.lView[ke]=this}});function Fp(e){return e.type!==2}var _I=100;function Lp(e,t=!0,n=0){let r=e[ot],o=r.rendererFactory,i=!1;i||o.begin?.();try{xI(e,n)}catch(s){throw t&&Pp(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function xI(e,t){let n=wh();try{ef(!0),vc(e,t);let r=0;for(;Xi(e);){if(r===_I)throw new D(103,!1);r++,vc(e,1)}}finally{ef(n)}}function NI(e,t,n,r){let o=t[b];if((o&256)===256)return;let i=!1,s=!1;!i&&t[ot].inlineEffectRunner?.flush(),Jc(t);let a=!0,c=null,u=null;i||(Fp(e)?(u=EI(t),c=Mo(u)):rd()===null?(a=!1,u=SI(t),c=Mo(u)):t[ke]&&(fa(t[ke]),t[ke]=null));try{hh(t),uD(e.bindingStartIndex),n!==null&&Mp(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&li(t,f,null)}else{let f=e.preOrderHooks;f!==null&&di(t,f,0,null),Ra(t,0)}if(s||AI(t),jp(t,0),e.contentQueries!==null&&Ap(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&li(t,f)}else{let f=e.contentHooks;f!==null&&di(t,f,1),Ra(t,1)}Bw(e,t);let d=e.components;d!==null&&Up(t,d,0);let h=e.viewQuery;if(h!==null&&mc(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&li(t,f)}else{let f=e.viewHooks;f!==null&&di(t,f,2),Ra(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Aa]){for(let f of t[Aa])f();t[Aa]=null}i||(t[b]&=-73)}catch(l){throw i||es(t),l}finally{u!==null&&(la(u,c),a&&bI(u)),Xc()}}function jp(e,t){for(let n=Wh(e);n!==null;n=Zh(n))for(let r=Me;r-1&&(hc(t,r),mi(n,r))}this._attachedToViewContainer=!1}pp(this._lView[S],this._lView)}onDestroy(t){gh(this._lView,t)}markForCheck(){bu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[b]&=-129}reattach(){Xa(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Lp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ii(this._lView),n=this._lView[on];n!==null&&!t&&pu(n,this._lView),fp(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Ii(this._lView),r=this._lView[on];r!==null&&!n&&hp(r,this._lView),Xa(this._lView)}},dn=(()=>{class e{static{this.__NG_ELEMENT_ID__=kI}}return e})(),OI=dn,PI=class extends OI{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=DI(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ln(o)}};function kI(){return Mu(he(),L())}function Mu(e,t){return e.type&4?new PI(t,e,er(e,t)):null}var FI=new RegExp(`^(\\d+)*(${Jh}|${Kh})*(.*)`);function LI(e){let t=e.match(FI),[n,r,o,i]=t,s=r?parseInt(r,10):o,a=[];for(let[c,u,l]of i.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d)}return[s,...a]}function jI(e){return!e.prev&&e.parent?.type===8}function ja(e){return e.index-ie}function VI(e,t){let n=e.i18nNodes;if(n)return n.get(t)}function ds(e,t,n,r){let o=ja(r),i=VI(e,o);if(i===void 0){let s=e.data[rw];if(s?.[o])i=$I(s[o],n);else if(t.firstChild===r)i=e.firstChild;else{let a=r.prev===null,c=r.prev??r.parent;if(jI(r)){let u=ja(r.parent);i=fc(e,u)}else{let u=Ne(c,n);if(a)i=u.firstChild;else{let l=ja(c),d=fc(e,l);if(c.type===2&&d){let f=lu(e,l)+1;i=fs(f,d)}else i=u.nextSibling}}}}return i}function fs(e,t){let n=t;for(let r=0;r0&&(i.firstChild=e,e=fs(r[Ni],e)),n.push(i)}return[e,n]}var Hp=()=>null;function YI(e,t){let n=e[Nr];return!t||n===null||n.length===0?null:n[0].data[nw]===t?n.shift():($p(e),null)}function QI(){Hp=YI}function mf(e,t){return Hp(e,t)}var Gn=class{},Su=new y("",{providedIn:"root",factory:()=>!1});var zp=new y(""),Gp=new y(""),yc=class{},ki=class{};function KI(e){let t=Error(`No component factory found for ${we(e)}.`);return t[JI]=e,t}var JI="ngComponent";var Dc=class{resolveComponentFactory(t){throw KI(t)}},qn=class{static{this.NULL=new Dc}},Wn=class{},$r=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>XI()}}return e})();function XI(){let e=L(),t=he(),n=Vt(t.index,e);return(qe(n)?n:e)[Q]}var eE=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>null})}}return e})();function Fi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Dp(e,n,i.join(" "))}}function aE(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=uE}}return e})();function uE(){let e=he();return Wp(e,L())}var lE=Bt,qp=class extends lE{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return er(this._hostTNode,this._hostLView)}get injector(){return new tn(this._hostTNode,this._hostLView)}get parentInjector(){let t=eu(this._hostTNode,this._hostLView);if(Ah(t)){let n=Ci(t,this._hostLView),r=Ei(t),o=n[S].data[r+8];return new tn(o,n)}else return new tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=yf(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=mf(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,gf(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Gy(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?t:new Zn(kt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?u:this.parentInjector).get(Ie,null);m&&(i=m)}let l=kt(c.componentType??{}),d=mf(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,gf(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Jy(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ue],u=new qp(c,c[Ye],c[ue]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return wI(s,o,i,r),t.attachToViewContainerRef(),$f(Va(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=yf(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=hc(this._lContainer,n);r&&(mi(Va(this._lContainer),n),pp(r[S],r))}detach(t){let n=this._adjustIndex(t,-1),r=hc(this._lContainer,n);return r&&mi(Va(this._lContainer),n)!=null?new ln(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function yf(e){return e[Di]}function Va(e){return e[Di]||(e[Di]=[])}function Wp(e,t){let n,r=t[e.index];return it(r)?n=r:(n=Np(r,t,null,e),t[e.index]=n,ls(t,n)),Zp(n,t,e,r),new qp(n,e,t)}function dE(e,t){let n=e[Q],r=n.createComment(""),o=Ne(t,e),i=mp(n,o);return Ri(n,i,r,Pw(n,o),!1),r}var Zp=Yp,Tu=()=>!1;function fE(e,t,n){return Tu(e,t,n)}function Yp(e,t,n,r){if(e[ht])return;let o;n.type&8?o=Ze(r):o=dE(t,n),e[ht]=o}function hE(e,t,n){if(e[ht]&&e[Nr])return!0;let r=n[rt],o=t.index-ie;if(!r||WD(t)||jr(r,o))return!1;let s=fc(r,o),a=r.data[cu]?.[o],[c,u]=ZI(s,a);return e[ht]=c,e[Nr]=u,!0}function pE(e,t,n,r){Tu(e,n,t)||Yp(e,t,n,r)}function gE(){Zp=pE,Tu=hE}var Ic=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ec=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Me;dt.trim())}function bE(e,t,n){e.queries===null&&(e.queries=new bc),e.queries.track(new Mc(t,n))}function ME(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function _u(e,t){return e.queries.getByIndex(t)}function SE(e,t){let n=e[S],r=_u(n,t);return r.crossesNgTemplate?Sc(n,e,t,[]):Qp(n,e,r,t)}var Df=new Set;function Ht(e){Df.has(e)||(Df.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function EO(e,t){Ht("NgSignals");let n=pd(e),r=n[Tt];return t?.equal&&(r.equal=t.equal),n.set=o=>ha(r,o),n.update=o=>gd(r,o),n.asReadonly=TE.bind(n),n}function TE(){let e=this[Tt];if(e.readonlyFn===void 0){let t=()=>this();t[Tt]=e,e.readonlyFn=t}return e.readonlyFn}function _E(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(RE))}return i}return ji.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(r(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>OE(i));t.push(c)}),NE(),Promise.all(t).then(()=>{})}var ji=new Map,xE=new Set;function NE(){let e=ji;return ji=new Map,e}function AE(){return ji.size===0}function RE(e){return typeof e=="string"?e:e.text()}function OE(e){xE.delete(e)}function PE(e){return Object.getPrototypeOf(e.prototype).constructor}function kE(e){let t=PE(e.type),n=!0,r=[e];for(;t;){let o;if(Ft(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=oi(e.inputs),s.inputTransforms=oi(e.inputTransforms),s.declaredInputs=oi(e.declaredInputs),s.outputs=oi(e.outputs);let a=o.hostBindings;a&&UE(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&jE(e,c),u&&VE(e,u),FE(e,o),Wv(e.outputs,o.outputs),Ft(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Tr(o.hostAttrs,n=Tr(n,o.hostAttrs))}}function oi(e){return e===Un?{}:e===Te?[]:e}function jE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function VE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function UE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function xu(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var jt=class{},Ar=class{};var Vi=class extends jt{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Li(this);let i=Kf(t);this._bootstrapComponents=up(i.bootstrap),this._r3Injector=Uh(t,n,[{provide:jt,useValue:this},{provide:qn,useValue:this.componentFactoryResolver},...r],we(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ui=class extends Ar{constructor(t){super(),this.moduleType=t}create(t){return new Vi(this.moduleType,t,[])}};function $E(e,t,n){return new Vi(e,t,n,!1)}var Tc=class extends jt{constructor(t){super(),this.componentFactoryResolver=new Li(this),this.instance=null;let n=new _r([...t.providers,{provide:jt,useValue:this},{provide:qn,useValue:this.componentFactoryResolver}],t.parent||Gc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function hs(e,t,n=null){return new Tc({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Kp(e){return HE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function BE(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}}return e})(),_c=class e{constructor(){this.ngZone=p($),this.scheduler=p(Gn),this.errorHandler=p(pt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Ln.EarlyRead,Ln.Write,Ln.MixedReadWrite,Ln.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}},xc=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Au(e,t){!t?.injector&&Hy(Au);let n=t?.injector??p(xe);return Er(n)?(Ht("NgAfterNextRender"),JE(e,n,t,!0)):XE}function KE(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function JE(e,t,n,r){let o=t.get(eg);o.impl??=t.get(_c);let i=n?.phase??Ln.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(ru):null,a=new xc(o.impl,KE(e,i),r,s);return o.impl.register(a),a}var XE={destroy(){}};function Ru(e,t,n,r){let o=L(),i=Qc();if(fn(o,i,t)){let s=fe(),a=Th();dI(a,o,e,t,n,r)}return Ru}function eC(e,t,n,r){return fn(e,Qc(),n)?t+Wi(n)+r:$t}function ii(e,t){return e<<17|t<<2}function hn(e){return e>>17&32767}function tC(e){return(e&2)==2}function nC(e,t){return e&131071|t<<17}function Nc(e){return e|2}function Yn(e){return(e&131068)>>2}function Ua(e,t){return e&-131069|t<<2}function rC(e){return(e&1)===1}function Ac(e){return e|1}function oC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=hn(s),c=Yn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Pr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=hn(e[a+1]);e[r+1]=ii(h,a),h!==0&&(e[h+1]=Ua(e[h+1],r)),e[a+1]=nC(e[a+1],r)}else e[r+1]=ii(a,0),a!==0&&(e[a+1]=Ua(e[a+1],r)),a=r;else e[r+1]=ii(c,0),a===0?a=r:e[c+1]=Ua(e[c+1],r),c=r;u&&(e[r+1]=Nc(e[r+1])),wf(e,l,r,!0),wf(e,l,r,!1),iC(t,l,e,r,i),s=ii(a,c),i?t.classBindings=s:t.styleBindings=s}function iC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Pr(i,t)>=0&&(n[r+1]=Ac(n[r+1]))}function wf(e,t,n,r){let o=e[n+1],i=t===null,s=r?hn(o):Yn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];sC(c,t)&&(a=!0,e[s+1]=r?Ac(u):Nc(u)),s=r?hn(u):Yn(u)}a&&(e[n+1]=r?Nc(o):Ac(o))}function sC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pr(e,t)>=0:!1}function aC(e,t,n){let r=L(),o=Qc();if(fn(r,o,t)){let i=fe(),s=Th();Xw(i,s,r,e,t,r[Q],n,!1)}return aC}function If(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Eu(e,n,i[s],s,r)}function cC(e,t){return uC(e,t,null,!0),cC}function uC(e,t,n,r){let o=L(),i=fe(),s=lD(2);if(i.firstUpdatePass&&dC(i,e,s,r),t!==$t&&fn(o,s,t)){let a=i.data[Xn()];mC(i,a,o,o[Q],e,o[s+1]=vC(t,n),r,s)}}function lC(e,t){return t>=e.expandoStartIndex}function dC(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Xn()],s=lC(e,n);yC(i,r)&&t===null&&!s&&(t=!1),t=fC(o,i,t,r),oC(o,i,t,n,s,r)}}function fC(e,t,n,r){let o=pD(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=$a(null,e,t,n,r),n=Rr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=$a(o,e,t,n,r),i===null){let c=hC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=$a(null,e,t,c[1],r),c=Rr(c,t.attrs,r),pC(e,t,r,c))}else i=gC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function hC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Yn(r)!==0)return e[hn(r)]}function pC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[hn(o)]=r}function gC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===$t&&(h=d?Te:void 0);let f=d?xa(h,r):l===r?h:void 0;if(u&&!$i(f)&&(f=xa(c,r)),$i(f)&&(a=f,s))return a;let g=e[o+1];o=s?hn(g):Yn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=xa(c,r))}return a}function $i(e){return e!==void 0}function vC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=we(Vr(e)))),e}function yC(e,t){return(e.flags&(t?8:16))!==0}function DC(e,t,n,r,o,i){let s=t.consts,a=zn(s,o),c=Ur(t,e,2,r,a);return Iu(t,n,c,zn(s,i)),c.attrs!==null&&Fi(c,c.attrs,!1),c.mergedAttrs!==null&&Fi(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function tg(e,t,n,r){let o=L(),i=fe(),s=ie+e,a=o[Q],c=i.firstCreatePass?DC(s,i,o,t,n,r):i.data[s],u=rg(i,o,c,a,t,e);o[s]=u;let l=Ji(c);return gn(c,!0),wp(a,u,c),!Br(c)&&ns()&&as(i,o,u,c),tD()===0&&Lt(u,o),nD(),l&&(yu(i,o,c),vu(i,c,o)),r!==null&&Du(o,c),tg}function ng(){let e=he();Yc()?Dh():(e=e.parent,gn(e,!1));let t=e;oD(t)&&sD(),rD();let n=fe();return n.firstCreatePass&&(rs(n,e),qc(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&wD(t)&&If(n,t,L(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ID(t)&&If(n,t,L(),t.stylesWithoutHost,!1),ng}function Ou(e,t,n,r){return tg(e,t,n,r),ng(),Ou}var rg=(e,t,n,r,o,i)=>(Ut(!0),hu(r,o,_h()));function wC(e,t,n,r,o,i){let s=t[rt],a=!s||Fr()||Br(n)||jr(s,i);if(Ut(a),a)return hu(r,o,_h());let c=ds(s,e,t,n);return rp(s,i)&&is(s,i,c.nextSibling),s&&(zh(n)||Gh(c))&&kr(n)&&(iD(n),yp(c)),c}function IC(){rg=wC}function EC(e,t,n,r,o){let i=t.consts,s=zn(i,r),a=Ur(t,e,8,"ng-container",s);s!==null&&Fi(a,s,!0);let c=zn(i,o);return Iu(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function CC(e,t,n){let r=L(),o=fe(),i=e+ie,s=o.firstCreatePass?EC(i,o,r,t,n):o.data[i];gn(s,!0);let a=og(o,r,s,e);return r[i]=a,ns()&&as(o,r,a,s),Lt(a,r),Ji(s)&&(yu(o,r,s),vu(o,s,r)),n!=null&&Du(r,s),CC}function bC(){let e=he(),t=fe();return Yc()?Dh():(e=e.parent,gn(e,!1)),t.firstCreatePass&&(rs(t,e),qc(e)&&t.queries.elementEnd(e)),bC}var og=(e,t,n,r)=>(Ut(!0),dp(t[Q],""));function MC(e,t,n,r){let o,i=t[rt],s=!i||Fr()||jr(i,r)||Br(n);if(Ut(s),s)return dp(t[Q],"");let a=ds(i,e,t,n),c=dw(i,r);return is(i,r,a),o=fs(c,a),o}function SC(){og=MC}function CO(){return L()}var en=void 0;function TC(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var _C=["en",[["a","p"],["AM","PM"],en],[["AM","PM"],en,en],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],en,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],en,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",en,"{1} 'at' {0}",en],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",TC],Ba={};function Ve(e){let t=xC(e),n=Cf(t);if(n)return n;let r=t.split("-")[0];if(n=Cf(r),n)return n;if(r==="en")return _C;throw new D(701,!1)}function Cf(e){return e in Ba||(Ba[e]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[e]),Ba[e]}var J=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(J||{});function xC(e){return e.toLowerCase().replace(/_/g,"-")}var Bi="en-US";var NC=Bi;function AC(e){typeof e=="string"&&(NC=e.toLowerCase().replace(/_/g,"-"))}var RC=(e,t,n)=>{};function Pu(e,t,n,r){let o=L(),i=fe(),s=he();return PC(i,o,o[Q],s,e,t,r),Pu}function OC(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function PC(e,t,n,r,o,i,s){let a=Ji(r),u=e.firstCreatePass&&Op(e),l=t[We],d=Rp(t),h=!0;if(r.type&3||s){let m=Ne(r,t),I=s?s(m):m,T=d.length,Z=s?K=>s(Ze(K[r.index])):r.index,P=null;if(!s&&a&&(P=OC(e,t,o,r.index)),P!==null){let K=P.__ngLastListenerFn__||P;K.__ngNextListenerFn__=i,P.__ngLastListenerFn__=i,h=!1}else{i=Mf(r,t,l,i),RC(m,o,i);let K=n.listen(I,o,i);d.push(i,K),u&&u.push(o,Z,T,T+1)}}else i=Mf(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let m=g.length;if(m)for(let I=0;I-1?Vt(e.index,t):t;bu(s,5);let a=bf(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=bf(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function bO(e=1){return mD(e)}function ig(e,t,n,r){EE(e,t,n,r)}function sg(e){let t=L(),n=fe(),r=Ih();Kc(r+1);let o=_u(n,r);if(e.dirty&&Ky(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=SE(t,r);e.reset(i,HD),e.notifyOnChanges()}return!0}return!1}function ag(){return wE(L(),Ih())}function kC(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function MO(e){let t=cD();return Wc(t,ie+e)}function SO(e,t=""){let n=L(),r=fe(),o=e+ie,i=r.firstCreatePass?Ur(r,o,1,t,null):r.data[o],s=cg(r,n,i,t,e);n[o]=s,ns()&&as(r,n,s,i),gn(i,!1)}var cg=(e,t,n,r,o)=>(Ut(!0),lp(t[Q],r));function FC(e,t,n,r,o){let i=t[rt],s=!i||Fr()||Br(n)||jr(i,o);return Ut(s),s?lp(t[Q],r):ds(i,e,t,n)}function LC(){cg=FC}function jC(e){return ug("",e,""),jC}function ug(e,t,n){let r=L(),o=eC(r,e,t,n);return o!==$t&&gI(r,Xn(),o),ug}function VC(e,t,n){let r=fe();if(r.firstCreatePass){let o=Ft(e);Rc(n,r.data,r.blueprint,o,!0),Rc(t,r.data,r.blueprint,o,!1)}}function Rc(e,t,n,r,o){if(e=De(e),Array.isArray(e))for(let i=0;i>20;if($n(e)||!e.multi){let f=new cn(u,o,q),g=za(c,t,o?l:l+h,d);g===-1?(rc(Mi(a,s),i,c),Ha(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=za(c,t,l+h,d),g=za(c,t,l,l+h),m=f>=0&&n[f],I=g>=0&&n[g];if(o&&!I||!o&&!m){rc(Mi(a,s),i,c);let T=BC(o?$C:UC,n.length,o,r,u);!o&&I&&(n[g].providerFactory=T),Ha(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(T),s.push(T)}else{let T=lg(n[o?g:f],u,!o&&r);Ha(i,e,f>-1?f:g,T)}!o&&r&&I&&n[g].componentProviders++}}}function Ha(e,t,n,r){let o=$n(t),i=Fy(t);if(o||i){let c=(i?De(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function lg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function za(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>VC(r,o?o(e):e,t)}}var HC=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=eh(!1,n.type),o=r.length>0?hs([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(E(Ie))})}}return e})();function dg(e){Ht("NgStandalone"),e.getStandaloneInjector=t=>t.get(HC).getOrCreateStandaloneInjector(e)}function _O(e,t,n){let r=ts()+e,o=L();return o[r]===$t?Nu(o,r,n?t.call(n):t()):zE(o,r)}function xO(e,t,n,r){return hg(L(),ts(),e,t,n,r)}function fg(e,t){let n=e[t];return n===$t?void 0:n}function hg(e,t,n,r,o,i){let s=t+n;return fn(e,s,o)?Nu(e,s+1,i?r.call(i,o):r(o)):fg(e,s+1)}function zC(e,t,n,r,o,i,s){let a=t+n;return GE(e,a,o,i)?Nu(e,a+2,s?r.call(s,o,i):r(o,i)):fg(e,a+2)}function NO(e,t){let n=fe(),r,o=e+ie;n.firstCreatePass?(r=GC(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=nn(r.type,!0)),s,a=be(q);try{let c=bi(!1),u=i();return bi(c),kC(n,L(),o,u),u}finally{be(a)}}function GC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function AO(e,t,n){let r=e+ie,o=L(),i=Wc(o,r);return pg(o,r)?hg(o,ts(),t,i.transform,n,i):i.transform(n)}function RO(e,t,n,r){let o=e+ie,i=L(),s=Wc(i,o);return pg(i,o)?zC(i,ts(),t,s.transform,n,r,s):s.transform(n,r)}function pg(e,t){return e[S].data[t].pure}var si=null;function qC(e){si!==null&&(e.defaultEncapsulation!==si.defaultEncapsulation||e.preserveWhitespaces!==si.preserveWhitespaces)||(si=e)}var ps=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var ku=new y(""),Hr=new y(""),gs=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Fu||(WC(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._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!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()},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()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(E($),E(ms),E(Hr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),ms=(()=>{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 Fu?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function WC(e){Fu=e}var Fu;function nr(e){return!!e&&typeof e.then=="function"}function Lu(e){return!!e&&typeof e.subscribe=="function"}var vs=new y(""),gg=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=p(vs,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(nr(i))n.push(i);else if(Lu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),rr=new y("");function ZC(){hd(()=>{throw new D(600,!1)})}function YC(e){return e.isBoundToModule}var QC=10;function KC(e,t,n){try{let r=n();return nr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function mg(e,t){return Array.isArray(t)?t.reduce(mg,e):v(v({},e),t)}var Qe=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p($D),this.afterRenderManager=p(eg),this.zonelessEnabled=p(Su),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new de,this.afterTick=new de,this.componentTypes=[],this.components=[],this.isStable=p(yt).hasPendingTasks.pipe(_(n=>!n)),this._injector=p(Ie)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ki;if(!this._injector.get(gg).done){let h=!o&&Qf(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(qn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=YC(s)?void 0:this._injector.get(jt),c=r||s.selector,u=s.create(xe.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(ku,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),hi(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=F(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,F(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Wn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Xi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;hi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(rr,[]);[...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),()=>hi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function hi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var ai;function ys(e){ai??=new WeakMap;let t=ai.get(e);if(t)return t;let n=e.isStable.pipe(He(r=>r)).toPromise().then(()=>{});return ai.set(e,n),e.onDestroy(()=>ai?.delete(e)),n}function JC(e,t,n,r){if(!n&&!Xi(e))return;Lp(e,t,n&&!r?0:1)}var Pc=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Ds=(()=>{class e{compileModuleSync(n){return new Ui(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Kf(n),i=up(o.declarations).reduce((s,a)=>{let c=kt(a);return c&&s.push(new Zn(c)),s},[]);return new Pc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),XC=new y("");function eb(e,t,n){let r=new Ui(n);return Promise.resolve(r)}function Sf(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var tb=(()=>{class e{constructor(){this.zone=p($),this.changeDetectionScheduler=p(Gn),this.applicationRef=p(Qe)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function nb({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new $(G(v({},vg()),{scheduleInRootZone:n})),[{provide:$,useFactory:e},{provide:rn,multi:!0,useFactory:()=>{let r=p(tb,{optional:!0});return()=>r.initialize()}},{provide:rn,multi:!0,useFactory:()=>{let r=p(rb);return()=>{r.initialize()}}},t===!0?{provide:zp,useValue:!0}:[],{provide:Gp,useValue:n??$h}]}function vg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var rb=(()=>{class e{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=p($),this.pendingTasks=p(yt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ob=(()=>{class e{constructor(){this.appRef=p(Qe),this.taskService=p(yt),this.ngZone=p($),this.zonelessEnabled=p(Su),this.disableScheduling=p(zp,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Y,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ti):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Gp,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof _i||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?sf:Bh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ti+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ib(){return typeof $localize<"u"&&$localize.locale||Bi}var ws=new y("",{providedIn:"root",factory:()=>p(ws,R.Optional|R.SkipSelf)||ib()});var Hi=new y("");function ci(e){return!e.moduleRef}function sb(e){let t=ci(e)?e.r3Injector:e.moduleRef.injector,n=t.get($);return n.run(()=>{ci(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(pt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),ci(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Hi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Hi);s.add(i),e.moduleRef.onDestroy(()=>{hi(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return KC(r,n,()=>{let i=t.get(gg);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ws,Bi);if(AC(s||Bi),ci(e)){let a=t.get(Qe);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return ab(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function ab(e,t){let n=e.injector.get(Qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var yg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>UD(r?.ngZone,G(v({},vg({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[nb({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Gn,useExisting:ob}],c=$E(n.moduleType,this.injector,a);return sb({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=mg({},r);return eb(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Hi,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(E(xe))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Mr=null,Dg=new y("");function cb(e){if(Mr&&!Mr.get(Dg,!1))throw new D(400,!1);ZC(),Mr=e;let t=e.get(yg);return db(e),t}function ju(e,t,n=[]){let r=`Platform: ${t}`,o=new y(r);return(i=[])=>{let s=wg();if(!s||s.injector.get(Dg,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):cb(ub(a,r))}return lb(o)}}function ub(e=[],t){return xe.create({name:t,providers:[{provide:Qi,useValue:"platform"},{provide:Hi,useValue:new Set([()=>Mr=null])},...e]})}function lb(e){let t=wg();if(!t)throw new D(401,!1);return t}function wg(){return Mr?.get(yg)??null}function db(e){e.get(su,null)?.forEach(n=>n())}var mn=(()=>{class e{static{this.__NG_ELEMENT_ID__=fb}}return e})();function fb(e){return hb(he(),L(),(e&16)===16)}function hb(e,t,n){if(kr(e)&&!n){let r=Vt(e.index,t);return new ln(r,r)}else if(e.type&175){let r=t[Fe];return new ln(r,t)}return null}var kc=class{constructor(){}supports(t){return Kp(t)}create(t){return new Fc(t)}},pb=(e,t)=>t,Fc=class{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||pb}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;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 t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Lc(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?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=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new zi),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(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=this._identityChangesTail._nextIdentityChange=t,t}},Lc=class{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}},jc=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(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;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},zi=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new jc,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Tf(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:_f})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||_f()),deps:[[e,new Uc,new Yi]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D(901,!1)}}return e})();var Ig=ju(null,"core",[]),Eg=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(E(Qe))}}static{this.\u0275mod=vt({type:e})}static{this.\u0275inj=mt({})}}return e})();var xf=!1;function gb(){xf||(xf=!0,aw(),IC(),LC(),SC(),QE(),gE(),QI(),Zw())}function mb(e,t){return ys(e)}function Cg(){return Qn([{provide:ni,useFactory:()=>{let e=!0;return Er()&&(e=!!p(tr,{optional:!0})?.get(tp,null)),e&&Ht("NgHydration"),e}},{provide:rn,useValue:()=>{HI(!1),Er()&&p(ni)&&(vb(),gb())},multi:!0},{provide:ip,useFactory:()=>Er()&&p(ni)},{provide:rr,useFactory:()=>{if(Er()&&p(ni)){let e=p(Qe),t=p(xe);return()=>{mb(e,t).then(()=>{WI(e)})}}return()=>{}},multi:!0}])}function vb(){let e=os(),t;for(let n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===iw){t=n;break}if(!t)throw new D(-507,!1)}function zr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function OO(e,t){Ht("NgSignals");let n=ld(e);return t?.equal&&(n[Tt].equal=t.equal),n}function Uu(e){let t=F(null);try{return e()}finally{F(t)}}function bg(e){let t=kt(e);if(!t)return null;let n=new Zn(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Ag=null;function vn(){return Ag}function Rg(e){Ag??=e}var xs=class{};var pe=new y(""),Qu=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(yb),providedIn:"platform"})}}return e})(),Og=new y(""),yb=(()=>{class e extends Qu{constructor(){super(),this._doc=p(pe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vn().getBaseHref(this._doc)}onPopState(n){let r=vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=vn().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}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Ku(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Mg(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function It(e){return e&&e[0]!=="?"?"?"+e:e}var Ct=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(Ju),providedIn:"root"})}}return e})(),Pg=new y(""),Ju=(()=>{class e extends Ct{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(pe).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 Ku(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+It(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+It(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+It(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)}static{this.\u0275fac=function(r){return new(r||e)(E(Qu),E(Pg,8))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kg=(()=>{class e extends Ct{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(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 r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Ku(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+It(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+It(i));s.length==0&&(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)}static{this.\u0275fac=function(r){return new(r||e)(E(Qu),E(Pg,8))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),ir=(()=>{class e{constructor(n){this._subject=new ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Ib(Mg(Sg(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+It(r))}normalize(n){return e.stripTrailingSlash(wb(this._basePath,Sg(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+It(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+It(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.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(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})}static{this.normalizeQueryParams=It}static{this.joinWithSlash=Ku}static{this.stripTrailingSlash=Mg}static{this.\u0275fac=function(r){return new(r||e)(E(Ct))}}static{this.\u0275prov=w({token:e,factory:()=>Db(),providedIn:"root"})}}return e})();function Db(){return new ir(E(Ct))}function wb(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Sg(e){return e.replace(/\/index.html$/,"")}function Ib(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ee=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Ee||{}),H=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(H||{}),Ae=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Ae||{}),zt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Eb(e){return Ve(e)[J.LocaleId]}function Cb(e,t,n){let r=Ve(e),o=[r[J.DayPeriodsFormat],r[J.DayPeriodsStandalone]],i=Ue(o,t);return Ue(i,n)}function bb(e,t,n){let r=Ve(e),o=[r[J.DaysFormat],r[J.DaysStandalone]],i=Ue(o,t);return Ue(i,n)}function Mb(e,t,n){let r=Ve(e),o=[r[J.MonthsFormat],r[J.MonthsStandalone]],i=Ue(o,t);return Ue(i,n)}function Sb(e,t){let r=Ve(e)[J.Eras];return Ue(r,t)}function Is(e,t){let n=Ve(e);return Ue(n[J.DateFormat],t)}function Es(e,t){let n=Ve(e);return Ue(n[J.TimeFormat],t)}function Cs(e,t){let r=Ve(e)[J.DateTimeFormat];return Ue(r,t)}function As(e,t){let n=Ve(e),r=n[J.NumberSymbols][t];if(typeof r>"u"){if(t===zt.CurrencyDecimal)return n[J.NumberSymbols][zt.Decimal];if(t===zt.CurrencyGroup)return n[J.NumberSymbols][zt.Group]}return r}function Fg(e){if(!e[J.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[J.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Tb(e){let t=Ve(e);return Fg(t),(t[J.ExtraData][2]||[]).map(r=>typeof r=="string"?$u(r):[$u(r[0]),$u(r[1])])}function _b(e,t,n){let r=Ve(e);Fg(r);let o=[r[J.ExtraData][0],r[J.ExtraData][1]],i=Ue(o,t)||[];return Ue(i,n)||[]}function Ue(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function $u(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var xb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,bs={},Nb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Et=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Et||{}),V=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(V||{}),j=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(j||{});function Ab(e,t,n,r){let o=Ub(e);t=wt(n,t)||t;let s=[],a;for(;t;)if(a=Nb.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=jg(r,c),o=Vb(o,r,!0));let u="";return s.forEach(l=>{let d=Lb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Ns(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function wt(e,t){let n=Eb(e);if(bs[n]??={},bs[n][t])return bs[n][t];let r="";switch(t){case"shortDate":r=Is(e,Ae.Short);break;case"mediumDate":r=Is(e,Ae.Medium);break;case"longDate":r=Is(e,Ae.Long);break;case"fullDate":r=Is(e,Ae.Full);break;case"shortTime":r=Es(e,Ae.Short);break;case"mediumTime":r=Es(e,Ae.Medium);break;case"longTime":r=Es(e,Ae.Long);break;case"fullTime":r=Es(e,Ae.Full);break;case"short":let o=wt(e,"shortTime"),i=wt(e,"shortDate");r=Ms(Cs(e,Ae.Short),[o,i]);break;case"medium":let s=wt(e,"mediumTime"),a=wt(e,"mediumDate");r=Ms(Cs(e,Ae.Medium),[s,a]);break;case"long":let c=wt(e,"longTime"),u=wt(e,"longDate");r=Ms(Cs(e,Ae.Long),[c,u]);break;case"full":let l=wt(e,"fullTime"),d=wt(e,"fullDate");r=Ms(Cs(e,Ae.Full),[l,d]);break}return r&&(bs[n][t]=r),r}function Ms(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ke(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)a===0&&n===-12&&(a=12);else if(e===V.FractionalSeconds)return Rb(a,t);let c=As(s,zt.MinusSign);return Ke(a,t,c,r,o)}}function Ob(e,t){switch(e){case V.FullYear:return t.getFullYear();case V.Month:return t.getMonth();case V.Date:return t.getDate();case V.Hours:return t.getHours();case V.Minutes:return t.getMinutes();case V.Seconds:return t.getSeconds();case V.FractionalSeconds:return t.getMilliseconds();case V.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function z(e,t,n=Ee.Format,r=!1){return function(o,i){return Pb(o,i,e,t,n,r)}}function Pb(e,t,n,r,o,i){switch(n){case j.Months:return Mb(t,o,r)[e.getMonth()];case j.Days:return bb(t,o,r)[e.getDay()];case j.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=Tb(t),l=_b(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,m=s>=f.hours&&a>=f.minutes,I=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Et.Short:return(o>=0?"+":"")+Ke(s,2,i)+Ke(Math.abs(o%60),2,i);case Et.ShortGMT:return"GMT"+(o>=0?"+":"")+Ke(s,1,i);case Et.Long:return"GMT"+(o>=0?"+":"")+Ke(s,2,i)+":"+Ke(Math.abs(o%60),2,i);case Et.Extended:return r===0?"Z":(o>=0?"+":"")+Ke(s,2,i)+":"+Ke(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var kb=0,_s=4;function Fb(e){let t=Ns(e,kb,1).getDay();return Ns(e,0,1+(t<=_s?_s:_s+7)-t)}function Lg(e){let t=e.getDay(),n=t===0?-3:_s-t;return Ns(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Bu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Lg(n),s=Fb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ke(o,e,As(r,zt.MinusSign))}}function Ts(e,t=!1){return function(n,r){let i=Lg(n).getFullYear();return Ke(i,e,As(r,zt.MinusSign),t)}}var Hu={};function Lb(e){if(Hu[e])return Hu[e];let t;switch(e){case"G":case"GG":case"GGG":t=z(j.Eras,H.Abbreviated);break;case"GGGG":t=z(j.Eras,H.Wide);break;case"GGGGG":t=z(j.Eras,H.Narrow);break;case"y":t=ne(V.FullYear,1,0,!1,!0);break;case"yy":t=ne(V.FullYear,2,0,!0,!0);break;case"yyy":t=ne(V.FullYear,3,0,!1,!0);break;case"yyyy":t=ne(V.FullYear,4,0,!1,!0);break;case"Y":t=Ts(1);break;case"YY":t=Ts(2,!0);break;case"YYY":t=Ts(3);break;case"YYYY":t=Ts(4);break;case"M":case"L":t=ne(V.Month,1,1);break;case"MM":case"LL":t=ne(V.Month,2,1);break;case"MMM":t=z(j.Months,H.Abbreviated);break;case"MMMM":t=z(j.Months,H.Wide);break;case"MMMMM":t=z(j.Months,H.Narrow);break;case"LLL":t=z(j.Months,H.Abbreviated,Ee.Standalone);break;case"LLLL":t=z(j.Months,H.Wide,Ee.Standalone);break;case"LLLLL":t=z(j.Months,H.Narrow,Ee.Standalone);break;case"w":t=Bu(1);break;case"ww":t=Bu(2);break;case"W":t=Bu(1,!0);break;case"d":t=ne(V.Date,1);break;case"dd":t=ne(V.Date,2);break;case"c":case"cc":t=ne(V.Day,1);break;case"ccc":t=z(j.Days,H.Abbreviated,Ee.Standalone);break;case"cccc":t=z(j.Days,H.Wide,Ee.Standalone);break;case"ccccc":t=z(j.Days,H.Narrow,Ee.Standalone);break;case"cccccc":t=z(j.Days,H.Short,Ee.Standalone);break;case"E":case"EE":case"EEE":t=z(j.Days,H.Abbreviated);break;case"EEEE":t=z(j.Days,H.Wide);break;case"EEEEE":t=z(j.Days,H.Narrow);break;case"EEEEEE":t=z(j.Days,H.Short);break;case"a":case"aa":case"aaa":t=z(j.DayPeriods,H.Abbreviated);break;case"aaaa":t=z(j.DayPeriods,H.Wide);break;case"aaaaa":t=z(j.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":t=z(j.DayPeriods,H.Abbreviated,Ee.Standalone,!0);break;case"bbbb":t=z(j.DayPeriods,H.Wide,Ee.Standalone,!0);break;case"bbbbb":t=z(j.DayPeriods,H.Narrow,Ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=z(j.DayPeriods,H.Abbreviated,Ee.Format,!0);break;case"BBBB":t=z(j.DayPeriods,H.Wide,Ee.Format,!0);break;case"BBBBB":t=z(j.DayPeriods,H.Narrow,Ee.Format,!0);break;case"h":t=ne(V.Hours,1,-12);break;case"hh":t=ne(V.Hours,2,-12);break;case"H":t=ne(V.Hours,1);break;case"HH":t=ne(V.Hours,2);break;case"m":t=ne(V.Minutes,1);break;case"mm":t=ne(V.Minutes,2);break;case"s":t=ne(V.Seconds,1);break;case"ss":t=ne(V.Seconds,2);break;case"S":t=ne(V.FractionalSeconds,1);break;case"SS":t=ne(V.FractionalSeconds,2);break;case"SSS":t=ne(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ss(Et.Short);break;case"ZZZZZ":t=Ss(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ss(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ss(Et.Long);break;default:return null}return Hu[e]=t,t}function jg(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function jb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Vb(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=jg(t,o);return jb(e,r*(i-o))}function Ub(e){if(Tg(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Ns(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(xb))return $b(r)}let t=new Date(e);if(!Tg(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function $b(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Tg(e){return e instanceof Date&&!isNaN(e.valueOf())}function Rs(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var zu=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},nP=(()=>{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;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new zu(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),_g(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);_g(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(q(Bt),q(dn),q(Vu))}}static{this.\u0275dir=pn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function _g(e,t){e.context.$implicit=t.item}var rP=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Gu,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){xg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){xg("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}static{this.\u0275fac=function(r){return new(r||e)(q(Bt),q(dn))}}static{this.\u0275dir=pn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),Gu=class{constructor(){this.$implicit=null,this.ngIf=null}};function xg(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${we(t)}'.`)}function Vg(e,t){return new D(2100,!1)}var qu=class{createSubscription(t,n){return Uu(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Uu(()=>t.unsubscribe())}},Wu=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},Bb=new Wu,Hb=new qu,oP=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(nr(n))return Bb;if(Lu(n))return Hb;throw Vg(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(q(mn,16))}}static{this.\u0275pipe=Hc({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var zb="mediumDate",Gb=new y(""),qb=new y(""),iP=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??zb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Ab(n,s,i||this.locale,a)}catch(s){throw Vg(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(q(ws,16),q(Gb,24),q(qb,24))}}static{this.\u0275pipe=Hc({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var Ug=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=vt({type:e})}static{this.\u0275inj=mt({})}}return e})(),Xu="browser",Wb="server";function Zb(e){return e===Xu}function qr(e){return e===Wb}var $g=(()=>{class e{static{this.\u0275prov=w({token:e,providedIn:"root",factory:()=>Zb(p(je))?new Zu(p(pe),window):new Yu})}}return e})(),Zu=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=Yb(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let 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])}};function Yb(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Yu=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},or=class{};var Zr=class{},ks=class{},st=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var tl=class{encodeKey(t){return Hg(t)}encodeValue(t){return Hg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Qb(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Kb=/%(\d[a-f0-9])/gi,Jb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Hg(e){return encodeURIComponent(e).replace(Kb,(t,n)=>Jb[n]??t)}function Os(e){return`${e}`}var qt=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new tl,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Qb(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Os):[Os(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Os(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Os(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var nl=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Xb(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Gg(e){return typeof Blob<"u"&&e instanceof Blob}function qg(e){return typeof FormData<"u"&&e instanceof FormData}function eM(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Wr=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(Xb(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new st,this.context??=new nl,!this.params)this.params=new qt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Wt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Wt||{}),Yr=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new st,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Fs=class e extends Yr{constructor(t={}){super(t),this.type=Wt.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},yn=class e extends Yr{constructor(t={}){super(t),this.type=Wt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Gt=class extends Yr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},om=200,tM=204;function el(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var il=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Wr)i=n;else{let c;o.headers instanceof st?c=o.headers:c=new st(o.headers);let u;o.params&&(o.params instanceof qt?u=o.params:u=new qt({fromObject:o.params})),i=new Wr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=C(i).pipe(lt(c=>this.handler.handle(c)));if(n instanceof Wr||o.observe==="events")return s;let a=s.pipe(me(c=>c instanceof yn));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(_(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(_(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(_(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(_(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new qt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,el(o,r))}post(n,r,o={}){return this.request("POST",n,el(o,r))}put(n,r,o={}){return this.request("PUT",n,el(o,r))}static{this.\u0275fac=function(r){return new(r||e)(E(Zr))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),nM=/^\)\]\}',?\n/,rM="X-Request-URL";function Wg(e){if(e.url)return e.url;let t=rM.toLocaleLowerCase();return e.headers.get(t)}var oM=(()=>{class e{constructor(){this.fetchImpl=p(rl,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=p($)}handle(n){return new k(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ol,i=>r.error(new Gt({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Io(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,v({signal:r},i)));iM(f),o.next({type:Wt.Sent}),s=yield f}catch(f){o.error(new Gt({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new st(s.headers),c=s.statusText,u=Wg(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Fs({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],m=s.body.getReader(),I=0,T,Z,P=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Io(this,null,function*(){for(;;){let{done:le,value:re}=yield m.read();if(le)break;if(g.push(re),I+=re.length,n.reportProgress){Z=n.responseType==="text"?(Z??"")+(T??=new TextDecoder).decode(re,{stream:!0}):void 0;let ct=()=>o.next({type:Wt.DownloadProgress,total:f?+f:void 0,loaded:I,partialText:Z});P?P.run(ct):ct()}}}));let K=this.concatChunks(g,I);try{let le=s.headers.get("Content-Type")??"";d=this.parseBody(n,K,le)}catch(le){o.error(new Gt({error:le,headers:new st(s.headers),status:s.status,statusText:s.statusText,url:Wg(s)??n.urlWithParams}));return}}l===0&&(l=d?om:0),l>=200&&l<300?(o.next(new yn({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new Gt({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(nM,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),rl=class{};function ol(){}function iM(e){e.then(ol,ol)}function im(e,t){return t(e)}function sM(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function aM(e,t,n){return(r,o)=>Le(n,()=>t(r,i=>e(i,o)))}var cM=new y(""),sl=new y(""),sm=new y(""),am=new y("",{providedIn:"root",factory:()=>!0});function uM(){let e=null;return(t,n)=>{e===null&&(e=(p(cM,{optional:!0})??[]).reduceRight(sM,im));let r=p(yt);if(p(am)){let i=r.add();return e(t,n).pipe(At(()=>r.remove(i)))}else return e(t,n)}}var Zg=(()=>{class e extends Zr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=p(yt),this.contributeToStability=p(am)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(sl),...this.injector.get(sm,[])]));this.chain=r.reduceRight((o,i)=>aM(o,i,this.injector),im)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(At(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(E(ks),E(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();var lM=/^\)\]\}',?\n/;function dM(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Yg=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?W(r.\u0275loadImpl()):C(null)).pipe(ve(()=>new k(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,I)=>s.setRequestHeader(m,I.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let m=s.statusText||"OK",I=new st(s.getAllResponseHeaders()),T=dM(s)||n.url;return c=new Fs({headers:I,status:s.status,statusText:m,url:T}),c},l=()=>{let{headers:m,status:I,statusText:T,url:Z}=u(),P=null;I!==tM&&(P=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=P?om:0);let K=I>=200&&I<300;if(n.responseType==="json"&&typeof P=="string"){let le=P;P=P.replace(lM,"");try{P=P!==""?JSON.parse(P):null}catch(re){P=le,K&&(K=!1,P={error:re,text:P})}}K?(i.next(new yn({body:P,headers:m,status:I,statusText:T,url:Z||void 0})),i.complete()):i.error(new Gt({error:P,headers:m,status:I,statusText:T,url:Z||void 0}))},d=m=>{let{url:I}=u(),T=new Gt({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(T)},h=!1,f=m=>{h||(i.next(u()),h=!0);let I={type:Wt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(I.total=m.total),n.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),i.next(I)},g=m=>{let I={type:Wt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(I.total=m.total),i.next(I)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:Wt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(E(or))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),cm=new y(""),fM="XSRF-TOKEN",hM=new y("",{providedIn:"root",factory:()=>fM}),pM="X-XSRF-TOKEN",gM=new y("",{providedIn:"root",factory:()=>pM}),Ls=class{},mM=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Rs(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(E(pe),E(je),E(hM))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function vM(e,t){let n=e.url.toLowerCase();if(!p(cm)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(Ls).getToken(),o=p(gM);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var um=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(um||{});function yM(e,t){return{\u0275kind:e,\u0275providers:t}}function DM(...e){let t=[il,Yg,Zg,{provide:Zr,useExisting:Zg},{provide:ks,useFactory:()=>p(oM,{optional:!0})??p(Yg)},{provide:sl,useValue:vM,multi:!0},{provide:cm,useValue:!0},{provide:Ls,useClass:mM}];for(let n of e)t.push(...n.\u0275providers);return Qn(t)}var Qg=new y("");function wM(){return yM(um.LegacyInterceptors,[{provide:Qg,useFactory:uM},{provide:sl,useExisting:Qg,multi:!0}])}var vP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=vt({type:e})}static{this.\u0275inj=mt({providers:[DM(wM())]})}}return e})();var IM=new y(""),Kg="b",Jg="h",Xg="s",em="st",tm="u",nm="rt",Ps=new y(""),EM=["GET","HEAD"];function CM(e,t){let f=p(Ps),{isCacheActive:n}=f,r=td(f,["isCacheActive"]),{transferCache:o,method:i}=e;if(!n||o===!1||i==="POST"&&!r.includePostRequests&&!o||i!=="POST"&&!EM.includes(i)||!r.includeRequestsWithAuthHeaders&&bM(e)||r.filter?.(e)===!1)return t(e);let s=p(tr),a=p(IM,{optional:!0}),c=qr(p(je));if(a&&!c)throw new D(2803,!1);let u=c&&a?_M(e.url,a):e.url,l=SM(e,u),d=s.get(l,null),h=r.includeHeaders;if(typeof o=="object"&&o.includeHeaders&&(h=o.includeHeaders),d){let{[Kg]:g,[nm]:m,[Jg]:I,[Xg]:T,[em]:Z,[tm]:P}=d,K=g;switch(m){case"arraybuffer":K=new TextEncoder().encode(g).buffer;break;case"blob":K=new Blob([g]);break}let le=new st(I);return C(new yn({body:K,headers:le,status:T,statusText:Z,url:P}))}return t(e).pipe(te(g=>{g instanceof yn&&c&&s.set(l,{[Kg]:g.body,[Jg]:MM(g.headers,h),[Xg]:g.status,[em]:g.statusText,[tm]:u,[nm]:e.responseType})}))}function bM(e){return e.headers.has("authorization")||e.headers.has("proxy-authorization")}function MM(e,t){if(!t)return{};let n={};for(let r of t){let o=e.getAll(r);o!==null&&(n[r]=o)}return n}function rm(e){return[...e.keys()].sort().map(t=>`${t}=${e.getAll(t)}`).join("&")}function SM(e,t){let{params:n,method:r,responseType:o}=e,i=rm(n),s=e.serializeBody();s instanceof URLSearchParams?s=rm(s):typeof s!="string"&&(s="");let a=[r,o,t,s,i].join("|"),c=TM(a);return c}function TM(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function lm(e){return[{provide:Ps,useFactory:()=>(Ht("NgHttpTransferCache"),v({isCacheActive:!0},e))},{provide:sm,useValue:CM,multi:!0,deps:[tr,Ps]},{provide:rr,multi:!0,useFactory:()=>{let t=p(Qe),n=p(Ps);return()=>{ys(t).then(()=>{n.isCacheActive=!1})}}}]}function _M(e,t){let n=new URL(e,"resolve://").origin,r=t[n];return r?e.replace(n,r):e}var ul=class extends xs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ll=class e extends ul{static makeCurrent(){Rg(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=NM();return n==null?null:AM(n)}resetBaseElement(){Qr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Rs(document.cookie,t)}},Qr=null;function NM(){return Qr=Qr||document.querySelector("base"),Qr?Qr.getAttribute("href"):null}function AM(e){return new URL(e,document.baseURI).pathname}var dl=class{addToWindow(t){ye.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new D(5103,!1);return i},ye.getAllAngularTestabilities=()=>t.getAllTestabilities(),ye.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=ye.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?vn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},RM=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),fl=new y(""),pm=(()=>{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 D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(E(fl),E($))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),js=class{constructor(t){this._doc=t}},al="ng-app-id",gm=(()=>{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=qr(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${al}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(al),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(al,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(E(pe),E(Lr),E(au,8),E(je))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),cl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},gl=/%COMP%/g,mm="%COMP%",OM=`_nghost-${mm}`,PM=`_ngcontent-${mm}`,kM=!0,FM=new y("",{providedIn:"root",factory:()=>kM});function LM(e){return PM.replace(gl,e)}function jM(e){return OM.replace(gl,e)}function vm(e,t){return t.map(n=>n.replace(gl,e))}var dm=(()=>{class e{constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=qr(a),this.defaultRenderer=new Kr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===nt.ShadowDom&&(r=G(v({},r),{encapsulation:nt.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Vs?o.applyToHost(n):o instanceof Jr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case nt.Emulated:i=new Vs(c,u,r,this.appId,l,s,a,d);break;case nt.ShadowDom:return new hl(c,u,n,r,s,a,this.nonce,d);default:i=new Jr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(E(pm),E(gm),E(Lr),E(FM),E(pe),E(je),E($),E(au))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),Kr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(cl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(fm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(fm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-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;let i=cl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=cl[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&(gt.DashCase|gt.Important)?t.style.setProperty(n,r,o>.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r>.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=vn().getGlobalEventTarget(this.doc,t),!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(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function fm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var hl=class extends Kr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=vm(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,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(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Jr=class extends Kr{constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?vm(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Vs=class extends Jr{constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=LM(u),this.hostAttr=jM(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},VM=(()=>{class e extends js{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)}static{this.\u0275fac=function(r){return new(r||e)(E(pe))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})(),hm=["alt","control","meta","shift"],UM={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$M={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},BM=(()=>{class e extends js{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),hm.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=UM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),hm.forEach(s=>{if(s!==o){let a=$M[s];a(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 n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(E(pe))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function HM(){ll.makeCurrent()}function zM(){return new pt}function GM(){return Qh(document),document}var qM=[{provide:je,useValue:Xu},{provide:su,useValue:HM,multi:!0},{provide:pe,useFactory:GM,deps:[]}],LP=ju(Ig,"browser",qM),WM=new y(""),ZM=[{provide:Hr,useClass:dl,deps:[]},{provide:ku,useClass:gs,deps:[$,ms,Hr]},{provide:gs,useClass:gs,deps:[$,ms,Hr]}],YM=[{provide:Qi,useValue:"root"},{provide:pt,useFactory:zM,deps:[]},{provide:fl,useClass:VM,multi:!0,deps:[pe,$,je]},{provide:fl,useClass:BM,multi:!0,deps:[pe]},dm,gm,pm,{provide:Wn,useExisting:dm},{provide:or,useClass:RM,deps:[]},[]],jP=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Lr,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(E(WM,12))}}static{this.\u0275mod=vt({type:e})}static{this.\u0275inj=mt({providers:[...YM,...ZM],imports:[Ug,Eg]})}}return e})();var ym=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(E(pe))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var pl=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e[e.I18nSupport=2]="I18nSupport",e[e.EventReplay=3]="EventReplay",e}(pl||{});function VP(...e){let t=[],n=new Set,r=n.has(pl.HttpTransferCacheOptions);for(let{\u0275providers:o,\u0275kind:i}of e)n.add(i),o.length&&t.push(o);return Qn([[],Cg(),n.has(pl.NoHttpTransferCache)||r?[]:lm({}),t])}var x="primary",ho=Symbol("RouteTitle"),wl=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function dr(e){return new wl(e)}function KM(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function Am(e){return e.length>0?e[e.length-1]:null}function Yt(e){return ba(e)?e:nr(e)?W(Promise.resolve(e)):C(e)}var XM={exact:Om,subset:Pm},Rm={exact:eS,subset:tS,ignored:()=>!0};function Dm(e,t,n){return XM[n.paths](e.root,t.root,n.matrixParams)&&Rm[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function eS(e,t){return at(e,t)}function Om(e,t,n){if(!wn(e.segments,t.segments)||!Bs(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Om(e.children[r],t.children[r],n))return!1;return!0}function tS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Nm(e[n],t[n]))}function Pm(e,t,n){return km(e,t,t.segments,n)}function km(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!wn(o,n)||t.hasChildren()||!Bs(o,n,r))}else if(e.segments.length===n.length){if(!wn(e.segments,n)||!Bs(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Pm(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!wn(e.segments,o)||!Bs(e.segments,o,r)||!e.children[x]?!1:km(e.children[x],t,i,r)}}function Bs(e,t,n){return t.every((r,o)=>Rm[n](e[o].parameters,r.parameters))}var Mt=class{constructor(t=new U([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=dr(this.queryParams),this._queryParamMap}toString(){return oS.serialize(this)}},U=class{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 Hs(this)}},Dn=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=dr(this.parameters),this._parameterMap}toString(){return Lm(this)}};function nS(e,t){return wn(e,t)&&e.every((n,r)=>at(n.parameters,t[r].parameters))}function wn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function rS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===x&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==x&&(n=n.concat(t(o,r)))}),n}var po=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>new fr,providedIn:"root"})}}return e})(),fr=class{parse(t){let n=new Cl(t);return new Mt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Xr(t.root,!0)}`,r=aS(t.queryParams),o=typeof t.fragment=="string"?`#${iS(t.fragment)}`:"";return`${n}${r}${o}`}},oS=new fr;function Hs(e){return e.segments.map(t=>Lm(t)).join("/")}function Xr(e,t){if(!e.hasChildren())return Hs(e);if(t){let n=e.children[x]?Xr(e.children[x],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==x&&r.push(`${o}:${Xr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=rS(e,(r,o)=>o===x?[Xr(e.children[x],!1)]:[`${o}:${Xr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[x]!=null?`${Hs(e)}/${n[0]}`:`${Hs(e)}/(${n.join("//")})`}}function Fm(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Us(e){return Fm(e).replace(/%3B/gi,";")}function iS(e){return encodeURI(e)}function El(e){return Fm(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zs(e){return decodeURIComponent(e)}function wm(e){return zs(e.replace(/\+/g,"%20"))}function Lm(e){return`${El(e.path)}${sS(e.parameters)}`}function sS(e){return Object.entries(e).map(([t,n])=>`;${El(t)}=${El(n)}`).join("")}function aS(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Us(n)}=${Us(o)}`).join("&"):`${Us(n)}=${Us(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var cS=/^[^\/()?;#]+/;function ml(e){let t=e.match(cS);return t?t[0]:""}var uS=/^[^\/()?;=#]+/;function lS(e){let t=e.match(uS);return t?t[0]:""}var dS=/^[^=?&#]+/;function fS(e){let t=e.match(dS);return t?t[0]:""}var hS=/^[^&#]+/;function pS(e){let t=e.match(hS);return t?t[0]:""}var Cl=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){let 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("/");let 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[x]=new U(t,n)),r}parseSegment(){let t=ml(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Dn(zs(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=lS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=ml(this.remaining);o&&(r=o,this.capture(r))}t[zs(n)]=zs(r)}parseQueryParam(t){let n=fS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=pS(this.remaining);s&&(r=s,this.capture(r))}let o=wm(n),i=wm(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){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=ml(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=x);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[x]:new U([],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):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function jm(e){return e.segments.length>0?new U([],{[x]:e}):e}function Vm(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Vm(o);if(r===x&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new U(e.segments,t);return gS(n)}function gS(e){if(e.numberOfChildren===1&&e.children[x]){let t=e.children[x];return new U(e.segments.concat(t.segments),t.children)}return e}function In(e){return e instanceof Mt}function mS(e,t,n=null,r=null){let o=Um(e);return $m(o,t,n,r)}function Um(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new U(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=jm(r);return t??o}function $m(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return vl(o,o,o,n,r);let i=vS(t);if(i.toRoot())return vl(o,o,new U([],{}),n,r);let s=yS(i,o,e),a=s.processChildren?no(s.segmentGroup,s.index,i.commands):Hm(s.segmentGroup,s.index,i.commands);return vl(o,s.segmentGroup,a,n,r)}function Gs(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function io(e){return typeof e=="object"&&e!=null&&e.outlets}function vl(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Bm(e,t,n);let a=jm(Vm(s));return new Mt(a,i,o)}function Bm(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Bm(i,t,n)}),new U(e.segments,r)}var qs=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Gs(r[0]))throw new D(4003,!1);let o=r.find(io);if(o&&o!==Am(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function vS(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new qs(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new qs(n,t,r)}var cr=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function yS(e,t,n){if(e.isAbsolute)return new cr(t,!0,0);if(!n)return new cr(t,!1,NaN);if(n.parent===null)return new cr(n,!0,0);let r=Gs(e.commands[0])?0:1,o=n.segments.length-1+r;return DS(n,o,e.numberOfDoubleDots)}function DS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new cr(r,!1,o-i)}function wS(e){return io(e[0])?e[0].outlets:{[x]:e}}function Hm(e,t,n){if(e??=new U([],{}),e.segments.length===0&&e.hasChildren())return no(e,t,n);let r=IS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==x)&&e.children[x]&&e.numberOfChildren===1&&e.children[x].segments.length===0){let i=no(e.children[x],t,n);return new U(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Hm(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new U(e.segments,o)}}function IS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(io(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Em(c,u,s))return i;r+=2}else{if(!Em(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function bl(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=bl(new U([],{}),0,r))}),t}function Im(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Em(e,t,n){return e==n.path&&at(t,n.parameters)}var ro="imperative",se=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(se||{}),$e=class{constructor(t,n){this.id=t,this.url=n}},hr=class extends $e{constructor(t,n,r="imperative",o=null){super(t,n),this.type=se.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xe=class extends $e{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Oe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Oe||{}),Ws=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Ws||{}),bt=class extends $e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Zt=class extends $e{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=se.NavigationSkipped}},so=class extends $e{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Zs=class extends $e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ml=class extends $e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sl=class extends $e{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Tl=class extends $e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_l=class extends $e{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xl=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Nl=class{constructor(t){this.route=t,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Al=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rl=class{constructor(t){this.snapshot=t,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ol=class{constructor(t){this.snapshot=t,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pl=class{constructor(t){this.snapshot=t,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ys=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=se.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},ao=class{},pr=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function CS(e,t){return e.providers&&!e._injector&&(e._injector=hs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Je(e){return e.outlet||x}function bS(e,t){let n=e.filter(r=>Je(r)===t);return n.push(...e.filter(r=>Je(r)!==t)),n}function go(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var kl=class{get injector(){return go(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new mo(this.rootInjector),this.attachRef=null}},mo=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let 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 kl(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(E(Ie))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Qs=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Fl(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Fl(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ll(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ll(t,this._root).map(n=>n.value)}};function Fl(e,t){if(e===t.value)return t;for(let n of t.children){let r=Fl(e,n);if(r)return r}return null}function Ll(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ll(e,n);if(r.length)return r.unshift(t),r}return[]}var Re=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function ar(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ks=class extends Qs{constructor(t,n){super(t),this.snapshot=n,ql(this,t)}toString(){return this.snapshot.toString()}};function zm(e){let t=MS(e),n=new ae([new Dn("",{})]),r=new ae({}),o=new ae({}),i=new ae({}),s=new ae(""),a=new En(n,r,i,s,o,x,e,t.root);return a.snapshot=t.root,new Ks(new Re(a,[]),t)}function MS(e){let t={},n={},r={},o="",i=new ur([],t,r,o,n,x,e,null,{});return new Xs("",new Re(i,[]))}var En=class{constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(_(u=>u[ho]))??C(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.params.pipe(_(t=>dr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(t=>dr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Js(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:v(v({},t.params),e.params),data:v(v({},t.data),e.data),resolve:v(v(v(v({},e.data),t.data),o?.data),e._resolvedData)}:r={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},o&&qm(o)&&(r.resolve[ho]=o.title),r}var ur=class{get title(){return this.data?.[ho]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=dr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=dr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Xs=class extends Qs{constructor(t,n){super(n),this.url=t,ql(this,n)}toString(){return Gm(this._root)}};function ql(e,t){t.value._routerState=e,t.children.forEach(n=>ql(e,n))}function Gm(e){let t=e.children.length>0?` { ${e.children.map(Gm).join(", ")} } `:"";return`${e.value}${t}`}function yl(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,at(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),at(t.params,n.params)||e.paramsSubject.next(n.params),JM(t.url,n.url)||e.urlSubject.next(n.url),at(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function jl(e,t){let n=at(e.params,t.params)&&nS(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||jl(e.parent,t.parent))}function qm(e){return typeof e.title=="string"||e.title===null}var SS=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=x,this.activateEvents=new ce,this.deactivateEvents=new ce,this.attachEvents=new ce,this.detachEvents=new ce,this.parentContexts=p(mo),this.location=p(Bt),this.changeDetector=p(mn),this.inputBinder=p(oa,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{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;let 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 D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let 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){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Vl(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=pn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Jn]})}}return e})(),Vl=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===En?this.route:t===mo?this.childContexts:this.parent.get(t,n)}},oa=new y(""),Cm=(()=>{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){let{activatedRoute:r}=n,o=Ir([r.queryParams,r.params,r.data]).pipe(ve(([i,s,a],c)=>(a=v(v(v({},i),s),a),c===0?C(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=bg(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function TS(e,t,n){let r=co(e,t._root,n?n._root:void 0);return new Ks(r,t)}function co(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=_S(e,t,n);return new Re(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>co(e,a)),s}}let r=xS(t.value),o=t.children.map(i=>co(e,i));return new Re(r,o)}}function _S(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return co(e,r,o);return co(e,r)})}function xS(e){return new En(new ae(e.url),new ae(e.params),new ae(e.queryParams),new ae(e.fragment),new ae(e.data),e.outlet,e.component,e)}var uo=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Wm="ngNavigationCancelingError";function ea(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=In(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Zm(!1,Oe.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Zm(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Wm]=!0,n.cancellationCode=t,n}function NS(e){return Ym(e)&&In(e.url)}function Ym(e){return!!e&&e[Wm]}var AS=(e,t,n,r)=>_(o=>(new Ul(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Ul=class{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),yl(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=ar(n);t.children.forEach(i=>{let 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){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let 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){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ar(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ar(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=ar(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Pl(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Rl(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(yl(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let 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),yl(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ta=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},lr=class{constructor(t,n){this.component=t,this.route=n}};function RS(e,t,n){let r=e._root,o=t?t._root:null;return eo(r,o,n,[r.value])}function OS(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function mr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Pf(e)?e:t.get(e):r}function eo(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=ar(t);return e.children.forEach(s=>{PS(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>oo(a,n.getContext(s),o)),o}function PS(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=kS(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ta(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?eo(e,t,a?a.children:null,r,o):eo(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new lr(a.outlet.component,s))}else s&&oo(t,a,o),o.canActivateChecks.push(new ta(r)),i.component?eo(e,null,a?a.children:null,r,o):eo(e,null,n,r,o);return o}function kS(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!wn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!wn(e.url,t.url)||!at(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jl(e,t)||!at(e.queryParams,t.queryParams);case"paramsChange":default:return!jl(e,t)}}function oo(e,t,n){let r=ar(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?oo(s,t.children.getContext(i),n):oo(s,null,n):oo(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new lr(t.outlet.component,o)):n.canDeactivateChecks.push(new lr(null,o)):n.canDeactivateChecks.push(new lr(null,o))}function vo(e){return typeof e=="function"}function FS(e){return typeof e=="boolean"}function LS(e){return e&&vo(e.canLoad)}function jS(e){return e&&vo(e.canActivate)}function VS(e){return e&&vo(e.canActivateChild)}function US(e){return e&&vo(e.canDeactivate)}function $S(e){return e&&vo(e.canMatch)}function Qm(e){return e instanceof ut||e?.name==="EmptyError"}var $s=Symbol("INITIAL_VALUE");function gr(){return ve(e=>Ir(e.map(t=>t.pipe(dt(1),_a($s)))).pipe(_(t=>{for(let n of t)if(n!==!0){if(n===$s)return $s;if(n===!1||BS(n))return n}return!0}),me(t=>t!==$s),dt(1)))}function BS(e){return In(e)||e instanceof uo}function HS(e,t){return ee(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?C(G(v({},n),{guardsResult:!0})):zS(s,r,o,e).pipe(ee(a=>a&&FS(a)?GS(r,i,e,t):C(a)),_(a=>G(v({},n),{guardsResult:a})))})}function zS(e,t,n,r){return W(e).pipe(ee(o=>QS(o.component,o.route,n,t,r)),He(o=>o!==!0,!0))}function GS(e,t,n,r){return W(t).pipe(lt(o=>Rn(WS(o.route.parent,r),qS(o.route,r),YS(e,o.path,n),ZS(e,o.route,n))),He(o=>o!==!0,!0))}function qS(e,t){return e!==null&&t&&t(new Ol(e)),C(!0)}function WS(e,t){return e!==null&&t&&t(new Al(e)),C(!0)}function ZS(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return C(!0);let o=r.map(i=>Jo(()=>{let s=go(t)??n,a=mr(i,s),c=jS(a)?a.canActivate(t,e):Le(s,()=>a(t,e));return Yt(c).pipe(He())}));return C(o).pipe(gr())}function YS(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>OS(s)).filter(s=>s!==null).map(s=>Jo(()=>{let a=s.guards.map(c=>{let u=go(s.node)??n,l=mr(c,u),d=VS(l)?l.canActivateChild(r,e):Le(u,()=>l(r,e));return Yt(d).pipe(He())});return C(a).pipe(gr())}));return C(i).pipe(gr())}function QS(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return C(!0);let s=i.map(a=>{let c=go(t)??o,u=mr(a,c),l=US(u)?u.canDeactivate(e,t,n,r):Le(c,()=>u(e,t,n,r));return Yt(l).pipe(He())});return C(s).pipe(gr())}function KS(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return C(!0);let i=o.map(s=>{let a=mr(s,e),c=LS(a)?a.canLoad(t,n):Le(e,()=>a(t,n));return Yt(c)});return C(i).pipe(gr(),Km(r))}function Km(e){return Da(te(t=>{if(typeof t!="boolean")throw ea(e,t)}),_(t=>t===!0))}function JS(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return C(!0);let i=o.map(s=>{let a=mr(s,e),c=$S(a)?a.canMatch(t,n):Le(e,()=>a(t,n));return Yt(c)});return C(i).pipe(gr(),Km(r))}var lo=class{constructor(t){this.segmentGroup=t||null}},fo=class extends Error{constructor(t){super(),this.urlTree=t}};function sr(e){return An(new lo(e))}function XS(e){return An(new D(4e3,!1))}function e0(e){return An(Zm(!1,Oe.GuardRejected))}var $l=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return C(r);if(o.numberOfChildren>1||!o.children[x])return XS(`${t.redirectTo}`);o=o.children[x]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:m}=o,I=Le(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(I instanceof Mt)throw new fo(I);n=I}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new fo(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Mt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new U(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Bl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function t0(e,t,n,r,o){let i=Jm(e,t,n);return i.matched?(r=CS(t,r),JS(r,t,n,o).pipe(_(s=>s===!0?i:v({},Bl)))):C(i)}function Jm(e,t,n){if(t.path==="**")return n0(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?v({},Bl):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||KM)(n,e,t);if(!o)return v({},Bl);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?v(v({},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 n0(e){return{matched:!0,parameters:e.length>0?Am(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function bm(e,t,n,r){return n.length>0&&i0(e,n,r)?{segmentGroup:new U(t,o0(r,new U(n,e.children))),slicedSegments:[]}:n.length===0&&s0(e,n,r)?{segmentGroup:new U(e.segments,r0(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new U(e.segments,e.children),slicedSegments:n}}function r0(e,t,n,r){let o={};for(let i of n)if(ia(e,t,i)&&!r[Je(i)]){let s=new U([],{});o[Je(i)]=s}return v(v({},r),o)}function o0(e,t){let n={};n[x]=t;for(let r of e)if(r.path===""&&Je(r)!==x){let o=new U([],{});n[Je(r)]=o}return n}function i0(e,t,n){return n.some(r=>ia(e,t,r)&&Je(r)!==x)}function s0(e,t,n){return n.some(r=>ia(e,t,r))}function ia(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function a0(e,t,n){return t.length===0&&!e.children[n]}var Hl=class{};function c0(e,t,n,r,o,i,s="emptyOnly"){return new zl(e,t,n,r,o,s,i).recognize()}var u0=31,zl=class{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.applyRedirects=new $l(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=bm(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_(({children:n,rootSnapshot:r})=>{let o=new Re(r,n),i=new Xs("",o),s=mS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new ur([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),x,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,x,n).pipe(_(r=>({children:r,rootSnapshot:n})),Pe(r=>{if(r instanceof fo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof lo?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(_(s=>s instanceof Re?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return W(i).pipe(lt(s=>{let a=r.children[s],c=bS(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Ta((s,a)=>(s.push(...a),s)),Nt(null),Sa(),ee(s=>{if(s===null)return sr(r);let a=Xm(s);return l0(a),C(a)}))}processSegment(t,n,r,o,i,s,a){return W(n).pipe(lt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Pe(u=>{if(u instanceof lo)return C(null);throw u}))),He(c=>!!c),Pe(c=>{if(Qm(c))return a0(r,o,i)?C(new Hl):sr(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Je(r)!==s&&(s===x||!ia(o,i,r))?sr(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):sr(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Jm(n,o,i);if(!c)return sr(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>u0&&(this.allowRedirects=!1));let f=new ur(i,u,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Mm(o),Je(o),o.component??o._loadedComponent??null,o,Sm(o)),g=Js(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(ee(I=>this.processSegment(t,r,n,I.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=t0(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ve(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ve(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new ur(h,d,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Mm(r),Je(r),r.component??r._loadedComponent??null,r,Sm(r)),m=Js(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let{segmentGroup:I,slicedSegments:T}=bm(n,h,f,u);if(T.length===0&&I.hasChildren())return this.processChildren(l,u,I,g).pipe(_(P=>new Re(g,P)));if(u.length===0&&T.length===0)return C(new Re(g,[]));let Z=Je(r)===i;return this.processSegment(l,u,I,T,Z?x:i,!0,g).pipe(_(P=>new Re(g,P instanceof Re?[P]:[])))}))):sr(n)))}getChildConfig(t,n,r){return n.children?C({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?C({routes:n._loadedRoutes,injector:n._loadedInjector}):KS(t,n,r,this.urlSerializer).pipe(ee(o=>o?this.configLoader.loadChildren(t,n).pipe(te(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):e0(n))):C({routes:[],injector:t})}};function l0(e){e.sort((t,n)=>t.value.outlet===x?-1:n.value.outlet===x?1:t.value.outlet.localeCompare(n.value.outlet))}function d0(e){let t=e.value.routeConfig;return t&&t.path===""}function Xm(e){let t=[],n=new Set;for(let r of e){if(!d0(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Xm(r.children);t.push(new Re(r.value,o))}return t.filter(r=>!n.has(r))}function Mm(e){return e.data||{}}function Sm(e){return e.resolve||{}}function f0(e,t,n,r,o,i){return ee(s=>c0(e,t,n,r,s.extractedUrl,o,i).pipe(_(({state:a,tree:c})=>G(v({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function h0(e,t){return ee(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return C(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of ev(c))s.add(u);let a=0;return W(s).pipe(lt(c=>i.has(c)?p0(c,r,e,t):(c.data=Js(c,c.parent,e).resolve,C(void 0))),te(()=>a++),On(1),ee(c=>a===s.size?C(n):Se))})}function ev(e){let t=e.children.map(n=>ev(n)).flat();return[e,...t]}function p0(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!qm(o)&&(i[ho]=o.title),g0(i,e,t,r).pipe(_(s=>(e._resolvedData=s,e.data=Js(e,e.parent,n).resolve,null)))}function g0(e,t,n,r){let o=Il(e);if(o.length===0)return C({});let i={};return W(o).pipe(ee(s=>m0(e[s],t,n,r).pipe(He(),te(a=>{if(a instanceof uo)throw ea(new fr,a);i[s]=a}))),On(1),Ma(i),Pe(s=>Qm(s)?Se:An(s)))}function m0(e,t,n,r){let o=go(t)??r,i=mr(e,o),s=i.resolve?i.resolve(t,n):Le(o,()=>i(t,n));return Yt(s)}function Dl(e){return ve(t=>{let n=e(t);return n?W(n).pipe(_(()=>t)):C(t)})}var tv=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===x);return r}getResolvedTitleForRoute(n){return n.data[ho]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(v0),providedIn:"root"})}}return e})(),v0=(()=>{class e extends tv{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(E(ym))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yo=new y("",{providedIn:"root",factory:()=>({})}),y0=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Wf({type:e,selectors:[["ng-component"]],standalone:!0,features:[dg],decls:1,vars:0,template:function(r,o){r&1&&Ou(0,"router-outlet")},dependencies:[SS],encapsulation:2})}}return e})();function Wl(e){let t=e.children&&e.children.map(Wl),n=t?G(v({},e),{children:t}):v({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==x&&(n.component=y0),n}var na=new y(""),Zl=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Ds)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return C(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Yt(n.loadComponent()).pipe(_(nv),te(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),At(()=>{this.componentLoaders.delete(n)})),o=new xn(r,()=>new de).pipe(_n());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return C({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=D0(r,this.compiler,n,this.onLoadEndListener).pipe(At(()=>{this.childrenLoaders.delete(r)})),s=new xn(i,()=>new de).pipe(_n());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function D0(e,t,n,r){return Yt(e.loadChildren()).pipe(_(nv),ee(o=>o instanceof Ar||Array.isArray(o)?C(o):W(t.compileModuleAsync(o))),_(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(na,[],{optional:!0,self:!0}).flat()),{routes:s.map(Wl),injector:i}}))}function w0(e){return e&&typeof e=="object"&&"default"in e}function nv(e){return w0(e)?e.default:e}var Yl=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(I0),providedIn:"root"})}}return e})(),I0=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),rv=new y(""),ov=new y("");function E0(e,t,n){let r=e.get(ov),o=e.get(pe);return e.get($).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),C0(e))),{onViewTransitionCreated:c}=r;return c&&Le(e,()=>c({transition:a,from:t,to:n})),s})}function C0(e){return new Promise(t=>{Au({read:()=>setTimeout(t)},{injector:e})})}var b0=new y(""),Ql=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new de,this.transitionAbortSubject=new de,this.configLoader=p(Zl),this.environmentInjector=p(Ie),this.urlSerializer=p(po),this.rootContexts=p(mo),this.location=p(ir),this.inputBindingEnabled=p(oa,{optional:!0})!==null,this.titleStrategy=p(tv),this.options=p(yo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Yl),this.createViewTransition=p(rv,{optional:!0}),this.navigationErrorHandler=p(b0,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>C(void 0),this.rootComponentType=null;let n=o=>this.events.next(new xl(o)),r=o=>this.events.next(new Nl(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(G(v(v({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ae({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ro,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(me(i=>i.id!==0),_(i=>G(v({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ve(i=>{let s=!1,a=!1;return C(i).pipe(ve(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Oe.SupersededByNewNavigation),Se;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?G(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new Zt(c.id,this.urlSerializer.serialize(c.rawUrl),d,Ws.IgnoredSameUrlNavigation)),c.resolve(!1),Se}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return C(c).pipe(ve(d=>{let h=this.transitions?.getValue();return this.events.next(new hr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Se:Promise.resolve(d)}),f0(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),te(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=G(v({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Zs(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:m}=c,I=new hr(d,this.urlSerializer.serialize(h),f,g);this.events.next(I);let T=zm(this.rootComponentType).snapshot;return this.currentTransition=i=G(v({},c),{targetSnapshot:T,urlAfterRedirects:h,extras:G(v({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,C(i)}else{let d="";return this.events.next(new Zt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Ws.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Se}}),te(c=>{let u=new Ml(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),_(c=>(this.currentTransition=i=G(v({},c),{guards:RS(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),HS(this.environmentInjector,c=>this.events.next(c)),te(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw ea(this.urlSerializer,c.guardsResult);let u=new Sl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),me(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Oe.GuardRejected),!1)),Dl(c=>{if(c.guards.canActivateChecks.length)return C(c).pipe(te(u=>{let l=new Tl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ve(u=>{let l=!1;return C(u).pipe(h0(this.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Oe.NoDataFromResolver)}}))}),te(u=>{let l=new _l(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Dl(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(te(h=>{l.component=h}),_(()=>{})));for(let h of l.children)d.push(...u(h));return d};return Ir(u(c.targetSnapshot.root)).pipe(Nt(null),dt(1))}),Dl(()=>this.afterPreactivation()),ve(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?W(l).pipe(_(()=>i)):C(i)}),_(c=>{let u=TS(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=G(v({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),te(()=>{this.events.next(new ao)}),AS(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),dt(1),te({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),ei(this.transitionAbortSubject.pipe(te(c=>{throw c}))),At(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Oe.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Pe(c=>{if(a=!0,Ym(c))this.events.next(new bt(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),NS(c)?this.events.next(new pr(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new so(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Le(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof uo){let{message:d,cancellationCode:h}=ea(this.urlSerializer,l);this.events.next(new bt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new pr(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(u);let d=n.errorHandler(c);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Se}))}))}cancelNavigationTransition(n,r,o){let i=new bt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function M0(e){return e!==ro}var S0=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(T0),providedIn:"root"})}}return e})(),Gl=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},T0=(()=>{class e extends Gl{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=tu(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),iv=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:()=>p(_0),providedIn:"root"})}}return e})(),_0=(()=>{class e extends iv{constructor(){super(...arguments),this.location=p(ir),this.urlSerializer=p(po),this.options=p(yo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Yl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Mt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=zm(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof hr)this.stateMemento=this.createStateMemento();else if(n instanceof Zt)this.rawUrlTree=r.initialUrl;else if(n instanceof Zs){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof ao?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof bt&&(n.code===Oe.GuardRejected||n.code===Oe.NoDataFromResolver)?this.restoreHistory(r):n instanceof so?this.restoreHistory(r,!0):n instanceof Xe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof Mt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=v(v({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=v(v({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=tu(e)))(o||e)}})()}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),to=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(to||{});function sv(e,t){e.events.pipe(me(n=>n instanceof Xe||n instanceof bt||n instanceof so||n instanceof Zt),_(n=>n instanceof Xe||n instanceof Zt?to.COMPLETE:(n instanceof bt?n.code===Oe.Redirect||n.code===Oe.SupersededByNewNavigation:!1)?to.REDIRECTING:to.FAILED),me(n=>n!==to.REDIRECTING),dt(1)).subscribe(()=>{t()})}function x0(e){throw e}var N0={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},A0={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},St=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(ps),this.stateManager=p(iv),this.options=p(yo,{optional:!0})||{},this.pendingTasks=p(yt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Ql),this.urlSerializer=p(po),this.location=p(ir),this.urlHandlingStrategy=p(Yl),this._events=new de,this.errorHandler=this.options.errorHandler||x0,this.navigated=!1,this.routeReuseStrategy=p(S0),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(na,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(oa,{optional:!0}),this.eventsSubscription=new Y,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof bt&&r.code!==Oe.Redirect&&r.code!==Oe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xe)this.navigated=!0;else if(r instanceof pr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=v({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||M0(o.source)},s);this.scheduleNavigation(a,ro,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}O0(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ro,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=v({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let 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(Wl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Um(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return $m(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=In(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ro,null,r)}navigate(n,r={skipLocationChange:!1}){return R0(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=v({},N0):r===!1?o=v({},A0):o=r,In(n))return Dm(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Dm(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return sv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function R0(e){for(let t=0;t{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new de,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Xe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(In(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:ap(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:In(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(q(St),q(En),nu("tabindex"),q($r),q(Dt),q(Ct))}}static{this.\u0275dir=pn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&Pu("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Ru("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",zr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",zr],replaceUrl:[2,"replaceUrl","replaceUrl",zr],routerLink:"routerLink"},standalone:!0,features:[xu,Jn]})}}return e})(),rk=(()=>{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ce,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Xe&&this.update()})}ngAfterContentInit(){C(this.links.changes,C(null)).pipe(xt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=W(n).pipe(xt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=P0(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static{this.\u0275fac=function(r){return new(r||e)(q(St),q(Dt),q($r),q(mn),q(Tm,8))}}static{this.\u0275dir=pn({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&ig(i,Tm,5),r&2){let s;sg(s=ag())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Jn]})}}return e})();function P0(e){return!!e.paths}var ra=class{};var k0=(()=>{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(me(n=>n instanceof Xe),lt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=hs(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return W(o).pipe(xt())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=C(null);let i=o.pipe(ee(s=>s===null?C(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return W([i,s]).pipe(xt())}else return i})}static{this.\u0275fac=function(r){return new(r||e)(E(St),E(Ds),E(Ie),E(ra),E(Zl))}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),av=new y(""),F0=(()=>{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||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof hr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Xe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Zt&&n.code===Ws.IgnoredSameUrlNavigation&&(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 Ys&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ys(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Ep()}}static{this.\u0275prov=w({token:e,factory:e.\u0275fac})}}return e})();function L0(e){return e.routerState.root}function Do(e,t){return{\u0275kind:e,\u0275providers:t}}function j0(){let e=p(xe);return t=>{let n=e.get(Qe);if(t!==n.components[0])return;let r=e.get(St),o=e.get(cv);e.get(Kl)===1&&r.initialNavigation(),e.get(uv,null,R.Optional)?.setUpPreloading(),e.get(av,null,R.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var cv=new y("",{factory:()=>new de}),Kl=new y("",{providedIn:"root",factory:()=>1});function V0(){return Do(2,[{provide:Kl,useValue:0},{provide:vs,multi:!0,deps:[xe],useFactory:t=>{let n=t.get(Og,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(St),i=t.get(cv);sv(o,()=>{r(!0)}),t.get(Ql).afterPreactivation=()=>(r(!0),i.closed?C(void 0):i),o.initialNavigation()}))}}])}function U0(){return Do(3,[{provide:vs,multi:!0,useFactory:()=>{let t=p(St);return()=>{t.setUpLocationChangeListener()}}},{provide:Kl,useValue:2}])}var uv=new y("");function $0(e){return Do(0,[{provide:uv,useExisting:k0},{provide:ra,useExisting:e}])}function B0(){return Do(8,[Cm,{provide:oa,useExisting:Cm}])}function H0(e){let t=[{provide:rv,useValue:E0},{provide:ov,useValue:v({skipNextTransition:!!e?.skipInitialTransition},e)}];return Do(9,t)}var _m=new y("ROUTER_FORROOT_GUARD"),z0=[ir,{provide:po,useClass:fr},St,mo,{provide:En,useFactory:L0,deps:[St]},Zl,[]],ok=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[z0,[],{provide:na,multi:!0,useValue:n},{provide:_m,useFactory:Z0,deps:[[St,new Yi,new Uc]]},{provide:yo,useValue:r||{}},r?.useHash?q0():W0(),G0(),r?.preloadingStrategy?$0(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Y0(r):[],r?.bindToComponentInputs?B0().\u0275providers:[],r?.enableViewTransitions?H0().\u0275providers:[],Q0()]}}static forChild(n){return{ngModule:e,providers:[{provide:na,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(E(_m,8))}}static{this.\u0275mod=vt({type:e})}static{this.\u0275inj=mt({})}}return e})();function G0(){return{provide:av,useFactory:()=>{let e=p($g),t=p($),n=p(yo),r=p(Ql),o=p(po);return n.scrollOffset&&e.setOffset(n.scrollOffset),new F0(o,r,e,t,n)}}}function q0(){return{provide:Ct,useClass:kg}}function W0(){return{provide:Ct,useClass:Ju}}function Z0(e){return"guarded"}function Y0(e){return[e.initialNavigation==="disabled"?U0().\u0275providers:[],e.initialNavigation==="enabledBlocking"?V0().\u0275providers:[]]}var xm=new y("");function Q0(){return[{provide:xm,useFactory:j0},{provide:rr,multi:!0,useExisting:xm}]}var lv=class e{constructor(t){this.http=t}apiUrl="https://api5.angular-buch.com";getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Pe(t=>(console.error(t),C([]))))}getSingle(t){return this.http.get(`${this.apiUrl}/books/${t}`)}remove(t){return this.http.delete(`${this.apiUrl}/books/${t}`)}getAllSearch(t){return this.http.get(`${this.apiUrl}/books/search/${t}`).pipe(Pe(n=>(console.error(n),C([]))))}create(t){return this.http.post(`${this.apiUrl}/books`,t)}update(t){return this.http.put(`${this.apiUrl}/books/${t.isbn}`,t)}check(t){return this.http.get(`${this.apiUrl}/books/${t}/check`)}static \u0275fac=function(n){return new(n||e)(E(il))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};export{v as a,G as b,de as c,ae as d,W as e,_ as f,$v as g,me as h,Bv as i,Hv as j,ve as k,ei as l,te as m,D as n,Rf as o,w as p,mt as q,y as r,E as s,p as t,Wf as u,vt as v,pn as w,Hc as x,Jn as y,vO as z,yO as A,tu as B,ce as C,Dt as D,mw as E,DO as F,q as G,dn as H,$r as I,Bt as J,EO as K,kE as L,ZE as M,Ru as N,aC as O,cC as P,tg as Q,ng as R,Ou as S,CC as T,bC as U,CO as V,Pu as W,bO as X,MO as Y,SO as Z,jC as _,ug as $,TO as aa,_O as ba,xO as ca,NO as da,AO as ea,RO as fa,nr as ga,OO as ha,Uu as ia,vn as ja,nP as ka,rP as la,oP as ma,iP as na,Ug as oa,cM as pa,vP as qa,LP as ra,jP as sa,VP as ta,En as ua,SS as va,St as wa,Tm as xa,rk as ya,ok as za,lv as Aa}; diff --git a/chunk-TBBT64JK.js b/chunk-TBBT64JK.js deleted file mode 100644 index 0ba8c6b..0000000 --- a/chunk-TBBT64JK.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as ze,A as $e,Aa as x,B as De,C as N,D as G,F as v,G as o,I as U,K as H,L as _,M as O,N as Ae,O as f,P as Me,Q as a,R as l,S as C,V as We,W as p,X as qe,Z as u,a as c,aa as M,b as m,ba as Q,c as Te,da as Ye,e as je,ea as Ze,f as k,g as Ge,ga as Xe,ha as L,ia as F,ja as Fe,k as Ue,ka as ee,la as Ke,ma as Je,n as J,o as V,oa as Qe,p as Ve,q as b,r as S,s as He,t as be,u as D,ua as et,v as A,w as d,wa as te,y as j,z as Le,za as Ee}from"./chunk-EFJWQ4MC.js";var lt=(()=>{class i{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(n){return new(n||i)(o(U),o(G))}}static{this.\u0275dir=d({type:i})}}return i})(),Ht=(()=>{class i extends lt{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=De(i)))(r||i)}})()}static{this.\u0275dir=d({type:i,features:[_]})}}return i})(),ce=new S("");var Lt={provide:ce,useExisting:V(()=>de),multi:!0};function $t(){let i=Fe()?Fe().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Wt=new S(""),de=(()=>{class i extends lt{constructor(t,n,r){super(t,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!$t())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(n){return new(n||i)(o(U),o(G),o(Wt,8))}}static{this.\u0275dir=d({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&p("input",function(h){return r._handleInput(h.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(h){return r._compositionEnd(h.target.value)})},features:[M([Lt]),_]})}}return i})();function E(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ut(i){return i!=null&&typeof i.length=="number"}var he=new S(""),fe=new S(""),qt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Y=class{static min(e){return zt(e)}static max(e){return Yt(e)}static required(e){return Zt(e)}static requiredTrue(e){return Xt(e)}static email(e){return Kt(e)}static minLength(e){return Jt(e)}static maxLength(e){return Qt(e)}static pattern(e){return ei(e)}static nullValidator(e){return ct(e)}static compose(e){return gt(e)}static composeAsync(e){return _t(e)}};function zt(i){return e=>{if(E(e.value)||E(i))return null;let t=parseFloat(e.value);return!isNaN(t)&&t{if(E(e.value)||E(i))return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Zt(i){return E(i.value)?{required:!0}:null}function Xt(i){return i.value===!0?null:{required:!0}}function Kt(i){return E(i.value)||qt.test(i.value)?null:{email:!0}}function Jt(i){return e=>E(e.value)||!ut(e.value)?null:e.value.lengthut(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function ei(i){if(!i)return ct;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(E(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function ct(i){return null}function dt(i){return i!=null}function ht(i){return Xe(i)?je(i):i}function ft(i){let e={};return i.forEach(t=>{e=t!=null?c(c({},e),t):e}),Object.keys(e).length===0?null:e}function mt(i,e){return e.map(t=>t(i))}function ti(i){return!i.validate}function pt(i){return i.map(e=>ti(e)?e:t=>e.validate(t))}function gt(i){if(!i)return null;let e=i.filter(dt);return e.length==0?null:function(t){return ft(mt(t,e))}}function vt(i){return i!=null?gt(pt(i)):null}function _t(i){if(!i)return null;let e=i.filter(dt);return e.length==0?null:function(t){let n=mt(t,e).map(ht);return Ge(n).pipe(k(ft))}}function yt(i){return i!=null?_t(pt(i)):null}function tt(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Ct(i){return i._rawValidators}function Vt(i){return i._rawAsyncValidators}function we(i){return i?Array.isArray(i)?i:[i]:[]}function ne(i,e){return Array.isArray(i)?i.includes(e):i===e}function it(i,e){let t=we(e);return we(i).forEach(r=>{ne(t,r)||t.push(r)}),t}function nt(i,e){return we(e).filter(t=>!ne(i,t))}var re=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=vt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},g=class extends re{get formDirective(){return null}get path(){return null}},Z=class extends re{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oe=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ii={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ji=m(c({},ii),{"[class.ng-submitted]":"isSubmitted"}),bt=(()=>{class i extends oe{constructor(t){super(t)}static{this.\u0275fac=function(n){return new(n||i)(o(Z,2))}}static{this.\u0275dir=d({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&Me("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:[_]})}}return i})(),Dt=(()=>{class i extends oe{constructor(t){super(t)}static{this.\u0275fac=function(n){return new(n||i)(o(g,10))}}static{this.\u0275dir=d({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&Me("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:[_]})}}return i})();var $="VALID",ie="INVALID",B="PENDING",W="DISABLED",w=class{},se=class extends w{constructor(e,t){super(),this.value=e,this.source=t}},q=class extends w{constructor(e,t){super(),this.pristine=e,this.source=t}},z=class extends w{constructor(e,t){super(),this.touched=e,this.source=t}},P=class extends w{constructor(e,t){super(),this.status=e,this.source=t}},Ie=class extends w{constructor(e){super(),this.source=e}},Se=class extends w{constructor(e){super(),this.source=e}};function Ne(i){return(me(i)?i.validators:i)||null}function ni(i){return Array.isArray(i)?vt(i):i||null}function ke(i,e){return(me(e)?e.asyncValidators:i)||null}function ri(i){return Array.isArray(i)?yt(i):i||null}function me(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function At(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new J(1e3,"");if(!n[t])throw new J(1001,"")}function Mt(i,e,t){i._forEachChild((n,r)=>{if(t[r]===void 0)throw new J(1002,"")})}var X=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=L(()=>this.statusReactive()),this.statusReactive=H(void 0),this._pristine=L(()=>this.pristineReactive()),this.pristineReactive=H(!0),this._touched=L(()=>this.touchedReactive()),this.touchedReactive=H(!1),this._events=new Te,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return F(this.statusReactive)}set status(e){F(()=>this.statusReactive.set(e))}get valid(){return this.status===$}get invalid(){return this.status===ie}get pending(){return this.status==B}get disabled(){return this.status===W}get enabled(){return this.status!==W}get pristine(){return F(this.pristineReactive)}set pristine(e){F(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return F(this.touchedReactive)}set touched(e){F(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(it(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(it(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(nt(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(nt(e,this._rawAsyncValidators))}hasValidator(e){return ne(this._rawValidators,e)}hasAsyncValidator(e){return ne(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(m(c({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new z(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new z(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(m(c({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new q(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new q(!0,n))}markAsPending(e={}){this.status=B;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new P(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(m(c({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=W,this.errors=null,this._forEachChild(r=>{r.disable(m(c({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,n)),this._events.next(new P(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=$,this._forEachChild(n=>{n.enable(m(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$||this.status===B)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,t)),this._events.next(new P(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(m(c({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?W:$}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=B,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let n=ht(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new P(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?W:this.errors?ie:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(B)?B:this._anyControlsHaveStatus(ie)?ie:$}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new q(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new z(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){me(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=ni(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ri(this._rawAsyncValidators)}},ae=class extends X{constructor(e,t,n){super(Ne(t),ke(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Mt(this,!0,e),Object.keys(e).forEach(n=>{At(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((r,s)=>{n=t(n,r,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ft=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Oe}),Oe="always";function xe(i,e){return[...e.path,i]}function rt(i,e,t=Oe){Be(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),si(i,e),li(i,e),ai(i,e),oi(i,e)}function ot(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ue(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function le(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function oi(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function Be(i,e){let t=Ct(i);e.validator!==null?i.setValidators(tt(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Vt(i);e.asyncValidator!==null?i.setAsyncValidators(tt(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function ue(i,e){let t=!1;if(i!==null){if(e.validator!==null){let r=Ct(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(h=>h!==e.validator);s.length!==r.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let r=Vt(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(h=>h!==e.asyncValidator);s.length!==r.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return le(e._rawValidators,n),le(e._rawAsyncValidators,n),t}function si(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Et(i,e)})}function ai(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Et(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Et(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function li(i,e){let t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function ui(i,e){i==null,Be(i,e)}function ci(i,e){return ue(i,e)}function di(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function hi(i){return Object.getPrototypeOf(i.constructor)===Ht}function fi(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function mi(i,e){if(!e)return null;Array.isArray(e);let t,n,r;return e.forEach(s=>{s.constructor===de?t=s:hi(s)?n=s:r=s}),r||n||t||null}function pi(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function st(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function at(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var y=class extends X{constructor(e=null,t,n){super(Ne(t),ke(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),me(t)&&(t.nonNullable||t.initialValueIsDefault)&&(at(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){st(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){st(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){at(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var gi=i=>i instanceof y,vi=(()=>{class i extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=De(i)))(r||i)}})()}static{this.\u0275dir=d({type:i,features:[_]})}}return i})();var wt=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=d({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})();var It=new S("");var _i={provide:g,useExisting:V(()=>R)},R=(()=>{class i extends g{get submitted(){return F(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,n,r){super(),this.callSetDisabledState=r,this._submitted=L(()=>this._submittedReactive()),this._submittedReactive=H(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new N,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ue(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return rt(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){ot(t.control||null,t,!1),pi(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),fi(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ie(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new Se(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,r=this.form.get(t.path);n!==r&&(ot(n||null,t),gi(r)&&(rt(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);ui(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&ci(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Be(this.form,this),this._oldForm&&ue(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(he,10),o(fe,10),o(Ft,8))}}static{this.\u0275dir=d({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&p("submit",function(h){return r.onSubmit(h)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[M([_i]),_,j]})}}return i})(),yi={provide:g,useExisting:V(()=>St)},St=(()=>{class i extends vi{constructor(t,n,r){super(),this.name=null,this._parent=t,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Nt(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(g,13),o(he,10),o(fe,10))}}static{this.\u0275dir=d({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[M([yi]),_]})}}return i})(),Ci={provide:g,useExisting:V(()=>pe)},pe=(()=>{class i extends g{constructor(t,n,r){super(),this.name=null,this._parent=t,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Nt(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(g,13),o(he,10),o(fe,10))}}static{this.\u0275dir=d({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[M([Ci]),_]})}}return i})();function Nt(i){return!(i instanceof St)&&!(i instanceof R)&&!(i instanceof pe)}var Vi={provide:Z,useExisting:V(()=>Pe)},Pe=(()=>{class i extends Z{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,n,r,s,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.name=null,this.update=new N,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=mi(this,s)}ngOnChanges(t){this._added||this._setUpControl(),di(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return xe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(g,13),o(he,10),o(fe,10),o(ce,10),o(It,8))}}static{this.\u0275dir=d({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[M([Vi]),_,j]})}}return i})();var bi=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=A({type:i})}static{this.\u0275inj=b({})}}return i})(),K=class extends X{constructor(e,t,n){super(Ne(t),ke(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Mt(this,!1,e),e.forEach((n,r)=>{At(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var kt=i=>i instanceof K;var Ot=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:It,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ft,useValue:t.callSetDisabledState??Oe}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=A({type:i})}static{this.\u0275inj=b({imports:[bi]})}}return i})();var ge=class i{constructor(e){this.service=e}isbnExists(){return e=>this.service.check(e.value).pipe(k(t=>t?{isbnexists:!0}:null))}static \u0275fac=function(t){return new(t||i)(He(x))};static \u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})};var Pt=function(i){if(!i.value||typeof i.value!="string")return null;let t=i.value.replace(/-/g,"").length;return t===10||t===13?null:{isbnformat:!0}},Rt=function(i){return!kt(i)||i.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};var Tt=(()=>{class i{constructor(t,n){this.renderer=t,this.elementRef=n,this.onInput=r=>{let s=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,h=s?s.toISOString():null;this.onChange(h)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){let n=t?new Date(t):null,r=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",t)}}return i.\u0275fac=function(t){return new(t||i)(o(U),o(G))},i.\u0275dir=d({type:i,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(t,n){t&1&&p("input",function(s){return n.onInput(s.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[M([{provide:ce,useExisting:V(()=>i),multi:!0}])]}),i})();function Ai(i,e){if(i&1&&(a(0,"p",1),u(1),l()),i&2){let t=e.$implicit;v(),ze(" ",t,` -`)}}var ve=class i{constructor(e){this.form=e}controlName;messages={};get errors(){if(!this.controlName)return[];let e=this.form.control.get(this.controlName);return!e||!e.errors||!e.touched?[]:Object.keys(e.errors).map(t=>this.messages[t])}static \u0275fac=function(t){return new(t||i)(o(R))};static \u0275cmp=D({type:i,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(t,n){t&1&&O(0,Ai,2,1,"p",0),t&2&&f("ngForOf",n.errors)},dependencies:[ee]})};var Fi=()=>({required:"Title is required"}),Ei=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),wi=()=>({atleastonevalue:"At least one author required"});function Ii(i,e){if(i&1&&C(0,"input",20),i&2){let t=e.index;f("formControlName",t),Ae("aria-label","Author "+t)}}var T=class i{book;submitBook=new N;form=new ae({title:new y("",{nonNullable:!0,validators:Y.required}),subtitle:new y("",{nonNullable:!0}),isbn:new y("",{nonNullable:!0,validators:[Y.required,Pt],asyncValidators:be(ge).isbnExists()}),description:new y("",{nonNullable:!0}),published:new y("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new y("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(e){this.form.patchValue(e),this.form.setControl("authors",this.buildAuthorsArray(e.authors))}setEditMode(e){let t=this.form.controls.isbn;e?t.disable():t.enable()}buildAuthorsArray(e){return new K(e.map(t=>new y(t,{nonNullable:!0})),Rt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new y("",{nonNullable:!0}))}submitForm(){let e=this.form.getRawValue(),t=e.authors.filter(r=>!!r),n=m(c({},e),{authors:t});this.submitBook.emit(n)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=D({type:i,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[j],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(t,n){t&1&&(a(0,"form",0),p("ngSubmit",function(){return n.submitForm()}),a(1,"label",1),u(2,"Title"),l(),C(3,"input",2)(4,"bm-form-errors",3),a(5,"label",4),u(6,"Subtitle"),l(),C(7,"input",5),a(8,"label",6),u(9,"ISBN"),l(),C(10,"input",7)(11,"bm-form-errors",8),a(12,"label"),u(13,"Authors"),l(),a(14,"button",9),p("click",function(){return n.addAuthorControl()}),u(15," + Author "),l(),a(16,"fieldset",10),O(17,Ii,1,2,"input",11),l(),C(18,"bm-form-errors",12),a(19,"label",13),u(20,"Description"),l(),C(21,"textarea",14),a(22,"label",15),u(23,"Published"),l(),C(24,"input",16),a(25,"label",17),u(26,"Thumbnail URL"),l(),C(27,"input",18),a(28,"button",19),u(29," Save "),l()()),t&2&&(f("formGroup",n.form),v(4),f("messages",Q(6,Fi)),v(7),f("messages",Q(7,Ei)),v(6),f("ngForOf",n.authors.controls),v(),f("messages",Q(8,wi)),v(10),f("disabled",n.form.invalid))},dependencies:[ee,wt,de,bt,Dt,R,Pe,pe,Tt,ve]})};var _e=class i{constructor(e,t){this.service=e;this.router=t}create(e){this.service.create(e).subscribe(t=>{this.router.navigate(["/books",t.isbn])})}static \u0275fac=function(t){return new(t||i)(o(x),o(te))};static \u0275cmp=D({type:i,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(t,n){t&1&&(a(0,"h1"),u(1,"Create Book"),l(),a(2,"bm-book-form",0),p("submitBook",function(s){return n.create(s)}),l())},dependencies:[T]})};function Ni(i,e){if(i&1){let t=We();a(0,"bm-book-form",1),p("submitBook",function(r){Le(t);let s=qe();return $e(s.update(r))}),l()}if(i&2){let t=e.ngIf;f("book",t)}}var ye=class i{constructor(e,t,n){this.service=e;this.route=t;this.router=n;this.book$=this.route.paramMap.pipe(k(r=>r.get("isbn")),Ue(r=>this.service.getSingle(r)))}book$;update(e){this.service.update(e).subscribe(t=>{this.router.navigate(["/books",t.isbn])})}static \u0275fac=function(t){return new(t||i)(o(x),o(et),o(te))};static \u0275cmp=D({type:i,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(t,n){t&1&&(a(0,"h1"),u(1,"Edit Book"),l(),O(2,Ni,1,1,"bm-book-form",0),Ye(3,"async")),t&2&&(v(2),f("ngIf",Ze(3,1,n.book$)))},dependencies:[Ke,T,Je]})};var ki=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:_e},{path:"edit/:isbn",component:ye}],Ce=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=A({type:i});static \u0275inj=b({imports:[Ee.forChild(ki),Ee]})};var Ut=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=A({type:i});static \u0275inj=b({imports:[Qe,Ce,Ot]})};export{Ut as AdminModule}; diff --git a/chunk-UB4X3FRY.js b/chunk-UB4X3FRY.js deleted file mode 100644 index c166c14..0000000 --- a/chunk-UB4X3FRY.js +++ /dev/null @@ -1 +0,0 @@ -import{a as te}from"./chunk-XSFVBSGK.js";import{$ as u,A as V,Aa as T,C as H,E as S,F as n,G as l,H as z,J as q,M as a,O as s,Q as r,R as o,S as _,T as G,U as J,V as K,W as D,X as p,Z as m,_ as d,c as P,ca as Q,da as f,ea as b,fa as W,ka as x,l as j,la as C,ma as E,na as X,oa as Y,q as B,u as g,ua as Z,v as y,w as h,wa as ee,x as A,xa as L,z as U,za as M}from"./chunk-EFJWQ4MC.js";var w=class t{confirmText;confirm=new H;onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275dir=h({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(e,c){e&1&&D("click",function(){return c.onClick()})},inputs:{confirmText:[0,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"}})};var F=class t{constructor(i,e,c){this.template=i;this.viewContainer=e;this.authService=c;this.authService.isAuthenticated$.pipe(j(this.destroy$)).subscribe(k=>{k?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}destroy$=new P;ngOnDestroy(){this.destroy$.next()}static \u0275fac=function(e){return new(e||t)(l(z),l(q),l(te))};static \u0275dir=h({type:t,selectors:[["","bmLoggedinOnly",""]]})};var I=class t{transform(i){return i?`${i.substring(0,3)}-${i.substring(3)}`:""}static \u0275fac=function(e){return new(e||t)};static \u0275pipe=A({name:"isbn",type:t,pure:!0})};var le=t=>["/admin/edit",t];function fe(t,i){if(t&1&&(r(0,"p",9),m(1),o()),t&2){let e=p().ngIf;n(),d(e.subtitle)}}function de(t,i){if(t&1&&(r(0,"li"),m(1),o()),t&2){let e=i.$implicit;n(),d(e)}}function ue(t,i){if(t&1&&(r(0,"div")(1,"h2"),m(2,"Published"),o(),m(3),f(4,"date"),o()),t&2){let e=p().ngIf;n(3),u(" ",W(4,1,e.published,"longDate")," ")}}function be(t,i){if(t&1&&_(0,"img",10),t&2){let e=p().ngIf;s("src",e.thumbnailUrl,S)}}function ve(t,i){if(t&1){let e=K();G(0),r(1,"button",11),D("confirm",function(){U(e);let k=p().ngIf,me=p();return V(me.removeBook(k.isbn))}),m(2," Remove book "),o(),r(3,"a",12),m(4," Edit book "),o(),J()}if(t&2){let e=p().ngIf;n(3),s("routerLink",Q(1,le,e.isbn))}}function ke(t,i){if(t&1&&(r(0,"div",1)(1,"h1"),m(2),o(),a(3,fe,2,1,"p",2),r(4,"div",3)(5,"div")(6,"h2"),m(7,"Authors"),o(),r(8,"ul"),a(9,de,2,1,"li",4),o()(),r(10,"div")(11,"h2"),m(12,"ISBN"),o(),m(13),f(14,"isbn"),o(),a(15,ue,5,4,"div",5),o(),r(16,"h2"),m(17,"Description"),o(),r(18,"p"),m(19),o(),a(20,be,1,1,"img",6),r(21,"a",7),m(22,"Back to list"),o(),a(23,ve,5,3,"ng-container",8),o()),t&2){let e=i.ngIf;n(2),d(e.title),n(),s("ngIf",e.subtitle),n(6),s("ngForOf",e.authors),n(4),u(" ",b(14,7,e.isbn)," "),n(2),s("ngIf",e.published),n(4),d(e.description),n(),s("ngIf",e.thumbnailUrl)}}var O=class t{constructor(i,e,c){this.service=i;this.route=e;this.router=c;let k=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(k)}book$;removeBook(i){this.service.remove(i).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(e){return new(e||t)(l(T),l(Z),l(ee))};static \u0275cmp=g({type:t,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(e,c){e&1&&(a(0,ke,24,9,"div",0),f(1,"async")),e&2&&s("ngIf",b(1,1,c.book$))},dependencies:[x,C,L,w,F,E,X,I]})};function ge(t,i){if(t&1&&_(0,"img",6),t&2){let e=p(2);s("src",e.book.thumbnailUrl,S)}}function _e(t,i){if(t&1&&(r(0,"p",7),m(1),o()),t&2){let e=p(2);n(),u(" ",e.book.subtitle," ")}}function xe(t,i){if(t&1&&(r(0,"li"),m(1),o()),t&2){let e=i.$implicit;n(),u(" ",e," ")}}function Ce(t,i){if(t&1&&(r(0,"a",1),a(1,ge,1,1,"img",2),r(2,"h2"),m(3),o(),a(4,_e,2,1,"p",3),r(5,"ul",4),a(6,xe,2,1,"li",5),o(),r(7,"div"),m(8),f(9,"isbn"),o()()),t&2){let e=p();s("routerLink",e.book.isbn),n(),s("ngIf",e.book.thumbnailUrl),n(2),d(e.book.title),n(),s("ngIf",e.book.subtitle),n(2),s("ngForOf",e.book.authors),n(2),u("ISBN ",b(9,6,e.book.isbn),"")}}var R=class t{book;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(e,c){e&1&&a(0,Ce,10,8,"a",0),e&2&&s("ngIf",c.book)},dependencies:[x,C,L,I]})};function Be(t,i){if(t&1&&(r(0,"li"),_(1,"bm-book-list-item",4),o()),t&2){let e=i.$implicit;n(),s("book",e)}}function ye(t,i){t&1&&(r(0,"li"),m(1," No books available. "),o())}function he(t,i){if(t&1&&(r(0,"ul",1),a(1,Be,2,1,"li",2)(2,ye,2,0,"li",3),o()),t&2){let e=i.ngIf;n(),s("ngForOf",e),n(),s("ngIf",!e.length)}}var N=class t{constructor(i){this.service=i;this.books$=this.service.getAll()}books$;static \u0275fac=function(e){return new(e||t)(l(T))};static \u0275cmp=g({type:t,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(e,c){e&1&&(r(0,"h1"),m(1,"Books"),o(),a(2,he,3,2,"ul",0),f(3,"async")),e&2&&(n(2),s("ngIf",b(3,1,c.books$)))},dependencies:[x,C,R,E]})};var Se=[{path:"",component:N},{path:":isbn",component:O}],$=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=B({imports:[M.forChild(Se),M]})};var re=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=B({imports:[Y,$]})};export{re as BooksModule}; diff --git a/chunk-XIVWKNDS.js b/chunk-XIVWKNDS.js new file mode 100644 index 0000000..42ee521 --- /dev/null +++ b/chunk-XIVWKNDS.js @@ -0,0 +1 @@ +import{a as te}from"./chunk-7QVHZYEP.js";import{$ as d,A as y,Aa as M,B as n,Ba as T,C as c,D as H,F as z,H as g,I as h,J as S,K as q,M as s,P as a,R as r,S as o,T as _,U as G,V as J,W as K,X as D,Y as p,_ as m,aa as u,c as P,da as Q,ea as f,fa as b,ga as W,ka as x,l as j,la as C,ma as E,na as X,oa as Y,q as B,v as A,va as Z,w as U,xa as ee,y as V,ya as L}from"./chunk-YSRJOURJ.js";var w=class t{confirmText;confirm=new V;onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}static \u0275fac=function(e){return new(e||t)};static \u0275dir=S({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(e,l){e&1&&D("click",function(){return l.onClick()})},inputs:{confirmText:[0,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"},standalone:!1})};var F=class t{constructor(i,e,l){this.template=i;this.viewContainer=e;this.authService=l;this.authService.isAuthenticated$.pipe(j(this.destroy$)).subscribe(k=>{k?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}destroy$=new P;ngOnDestroy(){this.destroy$.next()}static \u0275fac=function(e){return new(e||t)(c(H),c(z),c(te))};static \u0275dir=S({type:t,selectors:[["","bmLoggedinOnly",""]],standalone:!1})};var I=class t{transform(i){return i?`${i.substring(0,3)}-${i.substring(3)}`:""}static \u0275fac=function(e){return new(e||t)};static \u0275pipe=q({name:"isbn",type:t,pure:!0,standalone:!1})};var ce=t=>["/admin/edit",t];function fe(t,i){if(t&1&&(r(0,"p",9),m(1),o()),t&2){let e=p().ngIf;n(),d(e.subtitle)}}function de(t,i){if(t&1&&(r(0,"li"),m(1),o()),t&2){let e=i.$implicit;n(),d(e)}}function ue(t,i){if(t&1&&(r(0,"div")(1,"h2"),m(2,"Published"),o(),m(3),f(4,"date"),o()),t&2){let e=p().ngIf;n(3),u(" ",W(4,1,e.published,"longDate")," ")}}function be(t,i){if(t&1&&_(0,"img",10),t&2){let e=p().ngIf;a("src",e.thumbnailUrl,y)}}function ve(t,i){if(t&1){let e=K();G(0),r(1,"button",11),D("confirm",function(){A(e);let k=p().ngIf,me=p();return U(me.removeBook(k.isbn))}),m(2," Remove book "),o(),r(3,"a",12),m(4," Edit book "),o(),J()}if(t&2){let e=p().ngIf;n(3),a("routerLink",Q(1,ce,e.isbn))}}function ke(t,i){if(t&1&&(r(0,"div",1)(1,"h1"),m(2),o(),s(3,fe,2,1,"p",2),r(4,"div",3)(5,"div")(6,"h2"),m(7,"Authors"),o(),r(8,"ul"),s(9,de,2,1,"li",4),o()(),r(10,"div")(11,"h2"),m(12,"ISBN"),o(),m(13),f(14,"isbn"),o(),s(15,ue,5,4,"div",5),o(),r(16,"h2"),m(17,"Description"),o(),r(18,"p"),m(19),o(),s(20,be,1,1,"img",6),r(21,"a",7),m(22,"Back to list"),o(),s(23,ve,5,3,"ng-container",8),o()),t&2){let e=i.ngIf;n(2),d(e.title),n(),a("ngIf",e.subtitle),n(6),a("ngForOf",e.authors),n(4),u(" ",b(14,7,e.isbn)," "),n(2),a("ngIf",e.published),n(4),d(e.description),n(),a("ngIf",e.thumbnailUrl)}}var O=class t{constructor(i,e,l){this.service=i;this.route=e;this.router=l;let k=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(k)}book$;removeBook(i){this.service.remove(i).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(e){return new(e||t)(c(T),c(Z),c(ee))};static \u0275cmp=g({type:t,selectors:[["bm-book-details"]],standalone:!1,decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(e,l){e&1&&(s(0,ke,24,9,"div",0),f(1,"async")),e&2&&a("ngIf",b(1,1,l.book$))},dependencies:[x,C,L,w,F,E,X,I],encapsulation:2})};function ge(t,i){if(t&1&&_(0,"img",6),t&2){let e=p(2);a("src",e.book.thumbnailUrl,y)}}function _e(t,i){if(t&1&&(r(0,"p",7),m(1),o()),t&2){let e=p(2);n(),u(" ",e.book.subtitle," ")}}function xe(t,i){if(t&1&&(r(0,"li"),m(1),o()),t&2){let e=i.$implicit;n(),u(" ",e," ")}}function Ce(t,i){if(t&1&&(r(0,"a",1),s(1,ge,1,1,"img",2),r(2,"h2"),m(3),o(),s(4,_e,2,1,"p",3),r(5,"ul",4),s(6,xe,2,1,"li",5),o(),r(7,"div"),m(8),f(9,"isbn"),o()()),t&2){let e=p();a("routerLink",e.book.isbn),n(),a("ngIf",e.book.thumbnailUrl),n(2),d(e.book.title),n(),a("ngIf",e.book.subtitle),n(2),a("ngForOf",e.book.authors),n(2),u("ISBN ",b(9,6,e.book.isbn),"")}}var R=class t{book;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=g({type:t,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!1,decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(e,l){e&1&&s(0,Ce,10,8,"a",0),e&2&&a("ngIf",l.book)},dependencies:[x,C,L,I],encapsulation:2})};function Be(t,i){if(t&1&&(r(0,"li"),_(1,"bm-book-list-item",4),o()),t&2){let e=i.$implicit;n(),a("book",e)}}function ye(t,i){t&1&&(r(0,"li"),m(1," No books available. "),o())}function he(t,i){if(t&1&&(r(0,"ul",1),s(1,Be,2,1,"li",2)(2,ye,2,0,"li",3),o()),t&2){let e=i.ngIf;n(),a("ngForOf",e),n(),a("ngIf",!e.length)}}var N=class t{constructor(i){this.service=i;this.books$=this.service.getAll()}books$;static \u0275fac=function(e){return new(e||t)(c(T))};static \u0275cmp=g({type:t,selectors:[["bm-book-list"]],standalone:!1,decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(e,l){e&1&&(r(0,"h1"),m(1,"Books"),o(),s(2,he,3,2,"ul",0),f(3,"async")),e&2&&(n(2),a("ngIf",b(3,1,l.books$)))},dependencies:[x,C,R,E],encapsulation:2})};var Se=[{path:"",component:N},{path:":isbn",component:O}],$=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=h({type:t});static \u0275inj=B({imports:[M.forChild(Se),M]})};var re=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=h({type:t});static \u0275inj=B({imports:[Y,$]})};export{re as BooksModule}; diff --git a/chunk-YSRJOURJ.js b/chunk-YSRJOURJ.js new file mode 100644 index 0000000..4dc1728 --- /dev/null +++ b/chunk-YSRJOURJ.js @@ -0,0 +1,8 @@ +var Cy=Object.defineProperty,by=Object.defineProperties;var My=Object.getOwnPropertyDescriptors;var wo=Object.getOwnPropertySymbols;var sd=Object.prototype.hasOwnProperty,ad=Object.prototype.propertyIsEnumerable;var id=(e,t,n)=>t in e?Cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||={})sd.call(t,n)&&id(e,n,t[n]);if(wo)for(var n of wo(t))ad.call(t,n)&&id(e,n,t[n]);return e},z=(e,t)=>by(e,My(t));var cd=(e,t)=>{var n={};for(var r in e)sd.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wo)for(var r of wo(e))t.indexOf(r)<0&&ad.call(e,r)&&(n[r]=e[r]);return n};var mr=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function da(e,t){return Object.is(e,t)}var oe=null,Eo=!1,fa=1,ke=Symbol("SIGNAL");function F(e){let t=oe;return oe=e,t}function ud(){return oe}var vr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Co(e){if(Eo)throw new Error("");if(oe===null)return;oe.consumerOnSignalRead(e);let t=oe.nextProducerIndex++;if(So(oe),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ga(e){So(e);for(let t=0;t0}function So(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function hd(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function pd(e){return e.producerNode!==void 0}function gd(e){let t=Object.create(_y);t.computation=e;let n=()=>{if(ha(t),Co(t),t.value===Io)throw t.error;return t.value};return n[ke]=t,n}var ca=Symbol("UNSET"),ua=Symbol("COMPUTING"),Io=Symbol("ERRORED"),_y=z(m({},vr),{value:ca,dirty:!0,error:null,equal:da,producerMustRecompute(e){return e.value===ca||e.value===ua},producerRecomputeValue(e){if(e.value===ua)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ua;let n=bo(e),r;try{r=e.computation()}catch(o){r=Io,e.error=o}finally{pa(e,n)}if(t!==ca&&t!==Io&&r!==Io&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Ny(){throw new Error}var md=Ny;function yd(){md()}function vd(e){md=e}var xy=null;function Dd(e){let t=Object.create(ya);t.value=e;let n=()=>(Co(t),t.value);return n[ke]=t,n}function To(e,t){dd()||yd(),e.equal(e.value,t)||(e.value=t,Ay(e))}function wd(e,t){dd()||yd(),To(e,t(e.value))}var ya=z(m({},vr),{equal:da,value:void 0});function Ay(e){e.version++,Sy(),ld(e),xy?.()}function M(e){return typeof e=="function"}function Cn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _o=Cn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Qt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof _o?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ed(i)}catch(s){t=t??[],s instanceof _o?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _o(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ed(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Qt(n,t)}remove(t){let{_finalizers:n}=this;n&&Qt(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var va=Y.EMPTY;function No(e){return e instanceof Y||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Ed(e){M(e)?e():e.unsubscribe()}var $e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var bn={setTimeout(e,t,...n){let{delegate:r}=bn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=bn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function xo(e){bn.setTimeout(()=>{let{onUnhandledError:t}=$e;if(t)t(e);else throw e})}function Dr(){}var Id=Da("C",void 0,void 0);function Cd(e){return Da("E",void 0,e)}function bd(e){return Da("N",e,void 0)}function Da(e,t,n){return{kind:e,value:t,error:n}}var Kt=null;function Mn(e){if($e.useDeprecatedSynchronousErrorHandling){let t=!Kt;if(t&&(Kt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Kt;if(Kt=null,n)throw r}}else e()}function Md(e){$e.useDeprecatedSynchronousErrorHandling&&Kt&&(Kt.errorThrown=!0,Kt.error=e)}var Jt=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,No(t)&&t.add(this)):this.destination=Py}static create(t,n,r){return new Sn(t,n,r)}next(t){this.isStopped?Ea(bd(t),this):this._next(t)}error(t){this.isStopped?Ea(Cd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ea(Id,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()}}},Ry=Function.prototype.bind;function wa(e,t){return Ry.call(e,t)}var Ia=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ao(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ao(r)}else Ao(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ao(n)}}},Sn=class extends Jt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&$e.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&wa(t.next,i),error:t.error&&wa(t.error,i),complete:t.complete&&wa(t.complete,i)}):o=t}this.destination=new Ia(o)}};function Ao(e){$e.useDeprecatedSynchronousErrorHandling?Md(e):xo(e)}function Oy(e){throw e}function Ea(e,t){let{onStoppedNotification:n}=$e;n&&bn.setTimeout(()=>n(e,t))}var Py={closed:!0,next:Dr,error:Oy,complete:Dr};var Tn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function pe(e){return e}function Ca(...e){return ba(e)}function ba(e){return e.length===0?pe:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var k=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Fy(n)?n:new Sn(n,r,o);return Mn(()=>{let{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 r=Sd(r),new r((o,i)=>{let s=new Sn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Tn](){return this}pipe(...n){return ba(n)(this)}toPromise(n){return n=Sd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Sd(e){var t;return(t=e??$e.Promise)!==null&&t!==void 0?t:Promise}function ky(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Fy(e){return e&&e instanceof Jt||ky(e)&&No(e)}function Ma(e){return M(e?.lift)}function O(e){return t=>{if(Ma(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 x(e,t,n,r,o){return new Sa(e,t,n,r,o)}var Sa=class extends Jt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}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()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function _n(){return O((e,t)=>{let n=null;e._refCount++;let r=x(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Nn=class extends k{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ma(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(x(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return _n()(this)}};var Td=Cn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class e extends k{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ro(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Td}next(n){Mn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Mn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Mn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{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((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:o,observers:i}=this;return r||o?va:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,Qt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new k;return n.source=this,n}}return e.create=(t,n)=>new Ro(t,n),e})(),Ro=class extends se{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:va}};var ce=class extends se{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ta={now(){return(Ta.delegate||Date).now()},delegate:void 0};var Oo=class extends Y{constructor(t,n){super()}schedule(t,n=0){return this}};var wr={setInterval(e,t,...n){let{delegate:r}=wr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=wr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Po=class extends Oo{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return wr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&wr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Qt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var xn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};xn.now=Ta.now;var ko=class extends xn{constructor(t,n=xn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var _d=new ko(Po);var Te=new k(e=>e.complete());function Nd(e){return e&&M(e.schedule)}function xd(e){return e[e.length-1]}function Fo(e){return M(xd(e))?e.pop():void 0}function St(e){return Nd(xd(e))?e.pop():void 0}function Rd(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Ad(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")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.")}function Xt(e){return this instanceof Xt?(this.v=e,this):new Xt(e)}function Od(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(y){return new Promise(function(E,T){i.push([f,y,E,T])>1||c(f,y)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(y){h(i[0][3],y)}}function u(f){f.value instanceof Xt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Pd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ad=="function"?Ad(e):e[Symbol.iterator](),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,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Lo=e=>e&&typeof e.length=="number"&&typeof e!="function";function jo(e){return M(e?.then)}function Vo(e){return M(e[Tn])}function Bo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Uo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ly(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $o=Ly();function Ho(e){return M(e?.[$o])}function zo(e){return Od(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Xt(n.read());if(o)return yield Xt(void 0);yield yield Xt(r)}}finally{n.releaseLock()}})}function qo(e){return M(e?.getReader)}function X(e){if(e instanceof k)return e;if(e!=null){if(Vo(e))return jy(e);if(Lo(e))return Vy(e);if(jo(e))return By(e);if(Bo(e))return kd(e);if(Ho(e))return Uy(e);if(qo(e))return $y(e)}throw Uo(e)}function jy(e){return new k(t=>{let n=e[Tn]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vy(e){return new k(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,xo)})}function Uy(e){return new k(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function kd(e){return new k(t=>{Hy(e,t).catch(n=>t.error(n))})}function $y(e){return kd(zo(e))}function Hy(e,t){var n,r,o,i;return Rd(this,void 0,void 0,function*(){try{for(n=Pd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),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()})}function Ie(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Go(e,t=0){return O((n,r)=>{n.subscribe(x(r,o=>Ie(r,e,()=>r.next(o),t),()=>Ie(r,e,()=>r.complete(),t),o=>Ie(r,e,()=>r.error(o),t)))})}function Wo(e,t=0){return O((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Fd(e,t){return X(e).pipe(Wo(t),Go(t))}function Ld(e,t){return X(e).pipe(Wo(t),Go(t))}function jd(e,t){return new k(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Vd(e,t){return new k(n=>{let r;return Ie(n,t,()=>{r=e[$o](),Ie(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function Zo(e,t){if(!e)throw new Error("Iterable cannot be null");return new k(n=>{Ie(n,t,()=>{let r=e[Symbol.asyncIterator]();Ie(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Bd(e,t){return Zo(zo(e),t)}function Ud(e,t){if(e!=null){if(Vo(e))return Fd(e,t);if(Lo(e))return jd(e,t);if(jo(e))return Ld(e,t);if(Bo(e))return Zo(e,t);if(Ho(e))return Vd(e,t);if(qo(e))return Bd(e,t)}throw Uo(e)}function W(e,t){return t?Ud(e,t):X(e)}function C(...e){let t=St(e);return W(e,t)}function An(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new k(t?o=>t.schedule(r,0,o):r)}function _a(e){return!!e&&(e instanceof k||M(e.lift)&&M(e.subscribe))}var ct=Cn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function _(e,t){return O((n,r)=>{let o=0;n.subscribe(x(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:zy}=Array;function qy(e,t){return zy(t)?e(...t):e(t)}function Yo(e){return _(t=>qy(e,t))}var{isArray:Gy}=Array,{getPrototypeOf:Wy,prototype:Zy,keys:Yy}=Object;function Qo(e){if(e.length===1){let t=e[0];if(Gy(t))return{args:t,keys:null};if(Qy(t)){let n=Yy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Qy(e){return e&&typeof e=="object"&&Wy(e)===Zy}function Ko(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Er(...e){let t=St(e),n=Fo(e),{args:r,keys:o}=Qo(e);if(r.length===0)return W([],t);let i=new k(Ky(r,t,o?s=>Ko(o,s):pe));return n?i.pipe(Yo(n)):i}function Ky(e,t,n=pe){return r=>{$d(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=W(e[c],t),l=!1;u.subscribe(x(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function $d(e,t,n){e?Ie(n,e,t):t()}function Hd(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=y=>u{i&&t.next(y),u++;let E=!1;X(n(y,l++)).subscribe(x(t,T=>{o?.(T),i?f(T):t.next(T)},()=>{E=!0},void 0,()=>{if(E)try{for(u--;c.length&&ug(T)):g(T)}h()}catch(T){t.error(T)}}))};return e.subscribe(x(t,f,()=>{d=!0,h()})),()=>{a?.()}}function ee(e,t,n=1/0){return M(t)?ee((r,o)=>_((i,s)=>t(r,i,o,s))(X(e(r,o))),n):(typeof t=="number"&&(n=t),O((r,o)=>Hd(r,o,e,n)))}function Tt(e=1/0){return ee(pe,e)}function zd(){return Tt(1)}function Rn(...e){return zd()(W(e,St(e)))}function Jo(e){return new k(t=>{X(e()).subscribe(t)})}function Jy(...e){let t=Fo(e),{args:n,keys:r}=Qo(e),o=new k(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Ko(r,a):a),i.complete())}))}});return t?o.pipe(Yo(t)):o}function ge(e,t){return O((n,r)=>{let o=0;n.subscribe(x(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Fe(e){return O((t,n)=>{let r=null,o=!1,i;r=t.subscribe(x(n,void 0,void 0,s=>{i=X(e(s,Fe(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qd(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(x(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function ut(e,t){return M(t)?ee(e,t,1):ee(e,1)}function Xy(e,t=_d){return O((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function _t(e){return O((t,n)=>{let r=!1;t.subscribe(x(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function lt(e){return e<=0?()=>Te:O((t,n)=>{let r=0;t.subscribe(x(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Na(e){return _(()=>e)}function ev(e,t=pe){return e=e??tv,O((n,r)=>{let o,i=!0;n.subscribe(x(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function tv(e,t){return e===t}function Xo(e=nv){return O((t,n)=>{let r=!1;t.subscribe(x(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function nv(){return new ct}function Nt(e){return O((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function dt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ge((o,i)=>e(o,i,r)):pe,lt(1),n?_t(t):Xo(()=>new ct))}function On(e){return e<=0?()=>Te:O((t,n)=>{let r=[];t.subscribe(x(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function xa(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ge((o,i)=>e(o,i,r)):pe,On(1),n?_t(t):Xo(()=>new ct))}function Aa(e,t){return O(qd(e,t,arguments.length>=2,!0))}function Ra(...e){let t=St(e);return O((n,r)=>{(t?Rn(e,n,t):Rn(e,n)).subscribe(r)})}function me(e,t){return O((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(x(r,c=>{o?.unsubscribe();let u=0,l=i++;X(e(c,l)).subscribe(o=x(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ei(e){return O((t,n)=>{X(e).subscribe(x(n,()=>n.complete(),Dr)),!n.closed&&t.subscribe(n)})}function te(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?O((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(x(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):pe}var Ff="https://g.co/ng/security#xss",D=class extends Error{code;constructor(t,n){super(qi(t,n)),this.code=t}};function qi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Lf=Symbol("InputSignalNode#UNSET"),rv=z(m({},ya),{transformFn:void 0,applyValueToInputSignal(e,t){To(e,t)}});function jf(e,t){let n=Object.create(rv);n.value=e,n.transformFn=t?.transform;function r(){if(Co(n),n.value===Lf)throw new D(-950,!1);return n.value}return r[ke]=n,r}function Or(e){return{toString:e}.toString()}var ti="__parameters__";function ov(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Vf(e,t,n){return Or(()=>{let r=ov(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(ti)?c[ti]:Object.defineProperty(c,ti,{value:[]})[ti];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var ye=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function iv(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function De(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(De).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Gd(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var sv=$({__forward_ref__:$});function Bf(e){return e.__forward_ref__=Bf,e.toString=function(){return De(this())},e}function ve(e){return Uf(e)?e():e}function Uf(e){return typeof e=="function"&&e.hasOwnProperty(sv)&&e.__forward_ref__===Bf}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Lt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Gi(e){return Wd(e,Hf)||Wd(e,zf)}function $f(e){return Gi(e)!==null}function Wd(e,t){return e.hasOwnProperty(t)?e[t]:null}function av(e){let t=e&&(e[Hf]||e[zf]);return t||null}function Zd(e){return e&&(e.hasOwnProperty(Yd)||e.hasOwnProperty(cv))?e[Yd]:null}var Hf=$({\u0275prov:$}),Yd=$({\u0275inj:$}),zf=$({ngInjectableDef:$}),cv=$({ngInjectorDef:$}),v=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qf(e){return e&&!!e.\u0275providers}var uv=$({\u0275cmp:$}),lv=$({\u0275dir:$}),dv=$({\u0275pipe:$}),fv=$({\u0275mod:$}),hi=$({\u0275fac:$}),br=$({__NG_ELEMENT_ID__:$}),Qd=$({__NG_ENV_ID__:$});function Wi(e){return typeof e=="string"?e:e==null?"":String(e)}function hv(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Wi(e)}function pv(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function Hc(e,t){throw new D(-201,!1)}var R=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(R||{}),Za;function Gf(){return Za}function Ce(e){let t=Za;return Za=e,t}function Wf(e,t,n){let r=Gi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&R.Optional)return null;if(t!==void 0)return t;Hc(e,"Injector")}var gv={},Sr=gv,Ya="__NG_DI_FLAG__",pi="ngTempTokenPath",mv="ngTokenPath",yv=/\n/gm,vv="\u0275",Kd="__source",jn;function Dv(){return jn}function xt(e){let t=jn;return jn=e,t}function wv(e,t=R.Default){if(jn===void 0)throw new D(-203,!1);return jn===null?Wf(e,void 0,t):jn.get(e,t&R.Optional?null:void 0,t)}function I(e,t=R.Default){return(Gf()||wv)(ve(e),t)}function p(e,t=R.Default){return I(e,Zi(t))}function Zi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Qa(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):De(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(yv,` + `)}`}var Yi=Zf(Vf("Optional"),8);var zc=Zf(Vf("SkipSelf"),4);function nn(e,t){let n=e.hasOwnProperty(hi);return n?e[hi]:null}function bv(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?qc(n,t):t(n))}function Yf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function gi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Sv(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Tv(e,t,n){let r=Pr(e,t);return r>=0?e[r|1]=n:(r=~r,Sv(e,r,t,n)),r}function Oa(e,t){let n=Pr(e,t);if(n>=0)return e[n|1]}function Pr(e,t){return _v(e,t,1)}function _v(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return qc(t,s=>{let a=s;Ka(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&rh(o,i),n}function rh(e,t){for(let n=0;n{t(i,r)})}}function Ka(e,t,n,r){if(e=ve(e),!e)return!1;let o=null,i=Zd(e),s=!i&&Rt(e);if(!i&&!s){let c=e.ngModule;if(i=Zd(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ka(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{qc(i.imports,l=>{Ka(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&rh(u,t)}if(!a){let u=nn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Le},o),t({provide:Kf,useValue:o,multi:!0},o),t({provide:rn,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Gc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Gc(e,t){for(let n of e)qf(n)&&(n=n.\u0275providers),Array.isArray(n)?Gc(n,t):t(n)}var xv=$({provide:String,useValue:$});function oh(e){return e!==null&&typeof e=="object"&&xv in e}function Av(e){return!!(e&&e.useExisting)}function Rv(e){return!!(e&&e.useFactory)}function Un(e){return typeof e=="function"}function Ov(e){return!!e.useClass}var Qi=new v(""),ci={},Pv={},Pa;function Wc(){return Pa===void 0&&(Pa=new mi),Pa}var we=class{},Tr=class extends we{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Xa(t,s=>this.processProvider(s)),this.records.set(Qf,Pn(void 0,this)),o.has("environment")&&this.records.set(we,Pn(void 0,this));let i=this.records.get(Qi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Kf,Le,R.Self))}destroy(){Ir(this),this._destroyed=!0;let t=F(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(t)}}onDestroy(t){return Ir(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Ir(this);let n=xt(this),r=Ce(void 0),o;try{return t()}finally{xt(n),Ce(r)}}get(t,n=Sr,r=R.Default){if(Ir(this),t.hasOwnProperty(Qd))return t[Qd](this);r=Zi(r);let o,i=xt(this),s=Ce(void 0);try{if(!(r&R.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Vv(t)&&Gi(t);u&&this.injectableDefInScope(u)?c=Pn(Ja(t),ci):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&R.Self?Wc():this.parent;return n=r&R.Optional&&n===Sr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[pi]=a[pi]||[]).unshift(De(t)),i)throw a;return Iv(a,t,"R3InjectorError",this.source)}else throw a}finally{Ce(s),xt(i)}}resolveInjectorInitializers(){let t=F(null),n=xt(this),r=Ce(void 0),o;try{let i=this.get(rn,Le,R.Self);for(let s of i)s()}finally{xt(n),Ce(r),F(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(De(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ve(t);let n=Un(t)?t:ve(t&&t.provide),r=Fv(t);if(!Un(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Pn(void 0,ci,!0),o.factory=()=>Qa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=F(null);try{return n.value===ci&&(n.value=Pv,n.value=n.factory()),typeof n.value=="object"&&n.value&&jv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ve(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ja(e){let t=Gi(e),n=t!==null?t.factory:nn(e);if(n!==null)return n;if(e instanceof v)throw new D(204,!1);if(e instanceof Function)return kv(e);throw new D(204,!1)}function kv(e){if(e.length>0)throw new D(204,!1);let n=av(e);return n!==null?()=>n.factory(e):()=>new e}function Fv(e){if(oh(e))return Pn(void 0,e.useValue);{let t=ih(e);return Pn(t,ci)}}function ih(e,t,n){let r;if(Un(e)){let o=ve(e);return nn(o)||Ja(o)}else if(oh(e))r=()=>ve(e.useValue);else if(Rv(e))r=()=>e.useFactory(...Qa(e.deps||[]));else if(Av(e))r=()=>I(ve(e.useExisting));else{let o=ve(e&&(e.useClass||e.provide));if(Lv(e))r=()=>new o(...Qa(e.deps));else return nn(o)||Ja(o)}return r}function Ir(e){if(e.destroyed)throw new D(205,!1)}function Pn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Lv(e){return!!e.deps}function jv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Vv(e){return typeof e=="function"||typeof e=="object"&&e instanceof v}function Xa(e,t){for(let n of e)Array.isArray(n)?Xa(n,t):n&&qf(n)?Xa(n.\u0275providers,t):t(n)}function Se(e,t){e instanceof Tr&&Ir(e);let n,r=xt(e),o=Ce(void 0);try{return t()}finally{xt(r),Ce(o)}}function sh(){return Gf()!==void 0||Dv()!=null}function Bv(e){if(!sh())throw new D(-203,!1)}function Uv(e){let t=ye.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function $v(e){return typeof e=="function"}var Ne=0,S=1,b=2,ue=3,ze=4,Ze=5,nt=6,yi=7,Ge=8,$n=9,ft=10,Q=11,_r=12,Jd=13,Kn=14,je=15,on=16,kn=17,ht=18,Ki=19,ah=20,At=21,ka=22,vi=23,_e=24,ie=25,ch=1,Nr=6,pt=7,Di=8,Hn=9,Me=10,wi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(wi||{});function qe(e){return Array.isArray(e)&&typeof e[ch]=="object"}function ot(e){return Array.isArray(e)&&e[ch]===!0}function Zc(e){return(e.flags&4)!==0}function kr(e){return e.componentOffset>-1}function Ji(e){return(e.flags&1)===1}function Ot(e){return!!e.template}function Ei(e){return(e[b]&512)!==0}var ec=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function uh(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Fr=(()=>{let e=()=>lh;return e.ngInherit=!0,e})();function lh(e){return e.type.prototype.ngOnChanges&&(e.setInput=zv),Hv}function Hv(){let e=fh(this),t=e?.current;if(t){let n=e.previous;if(n===Bn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zv(e,t,n,r,o){let i=this.declaredInputs[r],s=fh(e)||qv(e,{previous:Bn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ec(u&&u.currentValue,n,c===Bn),uh(e,t,o,n)}var dh="__ngSimpleChanges__";function fh(e){return e[dh]||null}function qv(e,t){return e[dh]=t}var Xd=null;var et=function(e,t,n){Xd?.(e,t,n)},Gv="svg",Wv="math";function We(e){for(;Array.isArray(e);)e=e[Ne];return e}function hh(e,t){return We(t[e])}function Ae(e,t){return We(t[e.index])}function ph(e,t){return e.data[t]}function Yc(e,t){return e[t]}function jt(e,t){let n=t[e];return qe(n)?n:n[Ne]}function Zv(e){return(e[b]&4)===4}function Qc(e){return(e[b]&128)===128}function Yv(e){return ot(e[ue])}function zn(e,t){return t==null?null:e[t]}function gh(e){e[kn]=0}function Kc(e){e[b]&1024||(e[b]|=1024,Qc(e)&&es(e))}function Qv(e,t){for(;e>0;)t=t[Kn],e--;return t}function Xi(e){return!!(e[b]&9216||e[_e]?.dirty)}function tc(e){e[ft].changeDetectionScheduler?.notify(9),e[b]&64&&(e[b]|=1024),Xi(e)&&es(e)}function es(e){e[ft].changeDetectionScheduler?.notify(0);let t=sn(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!Qc(t)));)t=sn(t)}function mh(e,t){if((e[b]&256)===256)throw new D(911,!1);e[At]===null&&(e[At]=[]),e[At].push(t)}function Kv(e,t){if(e[At]===null)return;let n=e[At].indexOf(t);n!==-1&&e[At].splice(n,1)}function sn(e){let t=e[ue];return ot(t)?t[ue]:t}var A={lFrame:bh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var nc=!1;function Jv(){return A.lFrame.elementDepthCount}function Xv(){A.lFrame.elementDepthCount++}function eD(){A.lFrame.elementDepthCount--}function yh(){return A.bindingsEnabled}function Lr(){return A.skipHydrationRootTNode!==null}function tD(e){return A.skipHydrationRootTNode===e}function nD(e){A.skipHydrationRootTNode=e}function rD(){A.skipHydrationRootTNode=null}function L(){return A.lFrame.lView}function de(){return A.lFrame.tView}function AO(e){return A.lFrame.contextLView=e,e[Ge]}function RO(e){return A.lFrame.contextLView=null,e}function fe(){let e=vh();for(;e!==null&&e.type===64;)e=e.parent;return e}function vh(){return A.lFrame.currentTNode}function oD(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pn(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function Jc(){return A.lFrame.isParent}function Dh(){A.lFrame.isParent=!1}function iD(){return A.lFrame.contextLView}function wh(){return nc}function ef(e){let t=nc;return nc=e,t}function ts(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function sD(e){return A.lFrame.bindingIndex=e}function Xc(){return A.lFrame.bindingIndex++}function aD(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function cD(){return A.lFrame.inI18n}function uD(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,rc(t)}function lD(){return A.lFrame.currentDirectiveIndex}function rc(e){A.lFrame.currentDirectiveIndex=e}function dD(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Eh(){return A.lFrame.currentQueryIndex}function eu(e){A.lFrame.currentQueryIndex=e}function fD(e){let t=e[S];return t.type===2?t.declTNode:t.type===1?e[Ze]:null}function Ih(e,t,n){if(n&R.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&R.Host);)if(o=fD(i),o===null||(i=i[Kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=Ch();return r.currentTNode=t,r.lView=e,!0}function tu(e){let t=Ch(),n=e[S];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ch(){let e=A.lFrame,t=e===null?null:e.child;return t===null?bh(e):t}function bh(e){let 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 e!==null&&(e.child=t),t}function Mh(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Sh=Mh;function nu(){let e=Mh();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 hD(e){return(A.lFrame.contextLView=Qv(e,A.lFrame.contextLView))[Ge]}function Jn(){return A.lFrame.selectedIndex}function an(e){A.lFrame.selectedIndex=e}function Th(){let e=A.lFrame;return ph(e.tView,e.selectedIndex)}function _h(){return A.lFrame.currentNamespace}var Nh=!0;function ns(){return Nh}function Vt(e){Nh=e}function pD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=lh(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))}function rs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[kn]+=65536),(a>14>16&&(e[b]&3)===t&&(e[b]+=16384,tf(a,i)):tf(a,i)}var Vn=-1,cn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function mD(e){return e instanceof cn}function yD(e){return(e.flags&8)!==0}function vD(e){return(e.flags&16)!==0}function oc(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function Ci(e,t){let n=wD(e),r=t;for(;n>0;)r=r[Kn],n--;return r}var sc=!0;function bi(e){let t=sc;return sc=e,t}var ED=256,Oh=ED-1,Ph=5,ID=0,tt={};function CD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(br)&&(r=n[br]),r==null&&(r=n[br]=ID++);let o=r&Oh,i=1<>Ph)]|=i}function Mi(e,t){let n=kh(e,t);if(n!==-1)return n;let r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,ja(r.data,e),ja(t,null),ja(r.blueprint,null));let o=ru(e,t),i=e.injectorIndex;if(Rh(o)){let s=Ii(o),a=Ci(o,t),c=a[S].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function ja(e,t){e.push(0,0,0,0,0,0,0,0,t)}function kh(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ru(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Bh(o),r===null)return Vn;if(n++,o=o[Kn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Vn}function ac(e,t,n){CD(e,t,n)}function bD(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&Ot(f)&&f.type===n)return c}return null}function un(e,t,n,r){let o=e[n],i=t.data;if(mD(o)){let s=o;s.resolving&&pv(hv(i[n]));let a=bi(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ce(s.injectImpl):null,l=Ih(e,r,R.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&pD(n,i[n],t)}finally{u!==null&&Ce(u),bi(a),s.resolving=!1,Sh()}}return o}function SD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(br)?e[br]:void 0;return typeof t=="number"?t>=0?t&Oh:TD:t}function rf(e,t,n){let r=1<>Ph)]&r)}function of(e,t){return!(e&R.Self)&&!(e&R.Host&&t)}var tn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return jh(this._tNode,this._lView,t,Zi(r),n)}};function TD(){return new tn(fe(),L())}function ou(e){return Or(()=>{let t=e.prototype.constructor,n=t[hi]||cc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[hi]||cc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function cc(e){return Uf(e)?()=>{let t=cc(ve(e));return t&&t()}:nn(e)}function _D(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=Vh(i,s,n,r|R.Self,tt);if(a!==tt)return a;let c=i.parent;if(!c){let u=s[ah];if(u){let l=u.get(n,tt,r);if(l!==tt)return l}c=Bh(s),s=s[Kn]}i=c}return o}function Bh(e){let t=e[S],n=t.type;return n===2?t.declTNode:n===1?e[Ze]:null}function iu(e){return bD(fe(),e)}function sf(e,t=null,n=null,r){let o=Uh(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uh(e,t=null,n=null,r,o=new Set){let i=[n||Le,Nv(e)];return r=r||(typeof e=="object"?void 0:De(e)),new Tr(i,t||Wc(),r||null,o)}var xe=class e{static THROW_IF_NOT_FOUND=Sr;static NULL=new mi;static create(t,n){if(Array.isArray(t))return sf({name:""},n,t,"");{let r=t.name??"";return sf({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>I(Qf)});static __NG_ELEMENT_ID__=-1};var ND=new v("");ND.__NG_ELEMENT_ID__=e=>{let t=fe();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&R.Optional)return null;throw new D(204,!1)};var $h=!1,su=(()=>{class e{static __NG_ELEMENT_ID__=xD;static __NG_ENV_ID__=n=>n}return e})(),uc=class extends su{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return mh(this._lView,t),()=>Kv(this._lView,t)}};function xD(){return new uc(L())}var qn=class{},au=new v("",{providedIn:"root",factory:()=>!1});var Hh=new v(""),zh=new v(""),yt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ce(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var lc=class extends se{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,sh()&&(this.destroyRef=p(su,{optional:!0})??void 0,this.pendingTasks=p(yt,{optional:!0})??void 0)}emit(t){let n=F(null);try{super.next(t)}finally{F(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},be=lc;function Si(...e){}function qh(e){let t,n;function r(){e=Si;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function af(e){return queueMicrotask(()=>e()),()=>{e=Si}}var cu="isAngularZone",Ti=cu+"_ID",AD=0,U=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new be(!1);onMicrotaskEmpty=new be(!1);onStable=new be(!1);onError=new be(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=$h}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,PD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(cu)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,RD,Si,Si);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)}},RD={};function uu(e){if(e._nesting==0&&!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 OD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){qh(()=>{e.callbackScheduled=!1,dc(e),e.isCheckStableRunning=!0,uu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),dc(e)}function PD(e){let t=()=>{OD(e)},n=AD++;e._inner=e._inner.fork({name:"angular",properties:{[cu]:!0,[Ti]:n,[Ti+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(kD(c))return r.invokeTask(i,s,a,c);try{return cf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),uf(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return cf(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!FD(c)&&t(),uf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,dc(e),uu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function dc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function cf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function uf(e){e._nesting--,uu(e)}var _i=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new be;onMicrotaskEmpty=new be;onStable=new be;onError=new be;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)}};function kD(e){return Gh(e,"__ignore_ng_zone__")}function FD(e){return Gh(e,"__scheduler_tick__")}function Gh(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function LD(e="zone.js",t){return e==="noop"?new _i:e==="zone.js"?new U(t):e}var gt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},jD=new v("",{providedIn:"root",factory:()=>{let e=p(U),t=p(gt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function lf(e,t){return jf(e,t)}function VD(e){return jf(Lf,e)}var Wh=(lf.required=VD,lf);function BD(){return Xn(fe(),L())}function Xn(e,t){return new vt(Ae(e,t))}var vt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=BD}return e})();function UD(e){return e instanceof vt?e.nativeElement:e}function $D(){return this._results[Symbol.iterator]()}var fc=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new se}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Mv(t);(this._changesDetected=!bv(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=$D},HD="ngSkipHydration",zD="ngskiphydration";function Zh(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;nYD}),YD="ng",lu=new v(""),Ye=new v("",{providedIn:"platform",factory:()=>"unknown"});var du=new v("",{providedIn:"root",factory:()=>os().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function QD(){let e=new er;return p(Ye)==="browser"&&(e.store=KD(os(),p(is))),e}var er=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:QD});store={};onSerializeCallbacks={};get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/sp});var hu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(hu||{}),ss=new v(""),ff=new Set;function Bt(e){ff.has(e)||(ff.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Fn=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Fn||{}),cp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),rw=[Fn.EarlyRead,Fn.Write,Fn.MixedReadWrite,Fn.Read],ow=(()=>{class e{ngZone=p(U);scheduler=p(qn);errorHandler=p(gt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(ss,{optional:!0})}execute(){this.executing=!0;for(let n of rw)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[n](r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?.run(hu.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})(),mc=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i=null){this.impl=t,this.hooks=n,this.once=r,this.snapshot=i,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function pu(e,t){!t?.injector&&Bv(pu);let n=t?.injector??p(xe);return Bt("NgAfterNextRender"),sw(e,n,t,!0)}function iw(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function sw(e,t,n,r){let o=t.get(cp);o.impl??=t.get(ow);let i=t.get(ss,null,{optional:!0}),s=n?.phase??Fn.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(su):null,c=new mc(o.impl,iw(e,s),r,a,i?.snapshot(null));return o.impl.register(c),c}var aw="__nghData__",up=aw,cw="__nghDeferData__",uw=cw,Va="ngh",lw="nghm",lp=()=>null;function dw(e,t,n=!1){let r=e.getAttribute(Va);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,c={},u;if(r!==""){let d=t.get(er,null,{optional:!0});if(d!==null){let h=d.get(up,[]);u=d.get(uw,{}),c=h[Number(r)]}}let l={data:c,firstChild:e.firstChild??null};return n&&(l.firstChild=e,as(l,0,e.nextSibling)),a?e.setAttribute(Va,a):e.removeAttribute(Va),l}function fw(){lp=dw}function gu(e,t,n=!1){return lp(e,t,n)}function hw(e){let t=e._lView;return t[S].type===2?null:(Ei(t)&&(t=t[ie]),t)}function pw(e){return e.textContent?.replace(/\s/gm,"")}function gw(e){let t=os(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=pw(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}function as(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function yc(e,t){return e.segmentHeads?.[t]??null}function mw(e,t){let n=e.data,r=n[JD]?.[t]??null;return r===null&&n[fu]?.[t]&&(r=mu(e,t)),r}function dp(e,t){return e.data[fu]?.[t]??null}function mu(e,t){let n=dp(e,t)??[],r=0;for(let o of n)r+=o[xi]*(o[op]??1);return r}function yw(e){if(typeof e.disconnectedNodes>"u"){let t=e.data[ip];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}function jr(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[ip];e.disconnectedNodes=n?new Set(n):null}return!!yw(e)?.has(t)}var rt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(rt||{});var ri;function vw(){if(ri===void 0&&(ri=null,ye.trustedTypes))try{ri=ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ri}function hf(e){return vw()?.createScriptURL(e)||e}var Ai=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ff})`}};function Vr(e){return e instanceof Ai?e.changingThisBreaksApplicationSecurity:e}function yu(e,t){let n=Dw(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ff})`)}return n===t}function Dw(e){return e instanceof Ai&&e.getTypeName()||null}var ww=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fp(e){return e=String(e),e.match(ww)?e:"unsafe:"+e}var cs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(cs||{});function Ew(e){let t=pp();return t?t.sanitize(cs.URL,e)||"":yu(e,"URL")?Vr(e):fp(Wi(e))}function Iw(e){let t=pp();if(t)return hf(t.sanitize(cs.RESOURCE_URL,e)||"");if(yu(e,"ResourceURL"))return hf(Vr(e));throw new D(904,!1)}function Cw(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Iw:Ew}function hp(e,t,n){return Cw(t,n)(e)}function pp(){let e=L();return e&&e[ft].sanitizer}var bw=/^>|^->||--!>|)/g,Sw="\u200B$1\u200B";function Tw(e){return e.replace(bw,t=>t.replace(Mw,Sw))}function _w(e){return e.ownerDocument.body}function gp(e){return e instanceof Function?e():e}var kt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(kt||{}),mt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(mt||{}),Nw;function vu(e,t){return Nw(e,t)}function Ln(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:qe(r)&&(s=!0,r=r[Ne]);let a=We(r);e===0&&n!==null?o==null?Ep(t,n,a):Ri(t,n,a,o||null,!0):e===1&&n!==null?Ri(t,n,a,o||null,!0):e===2?Eu(t,a,s):e===3&&t.destroyNode(a),i!=null&&zw(t,e,i,n,o)}}function mp(e,t){return e.createText(t)}function xw(e,t,n){e.setValue(t,n)}function yp(e,t){return e.createComment(Tw(t))}function Du(e,t,n){return e.createElement(t,n)}function Aw(e,t){vp(e,t),t[Ne]=null,t[Ze]=null}function Rw(e,t,n,r,o,i){r[Ne]=o,r[Ze]=t,ls(e,r,n,1,o,i)}function vp(e,t){t[ft].changeDetectionScheduler?.notify(10),ls(e,t,t[Q],2,null,null)}function Ow(e){let t=e[_r];if(!t)return Ba(e[S],e);for(;t;){let n=null;if(qe(t))n=t[_r];else{let r=t[Me];r&&(n=r)}if(!n){for(;t&&!t[ze]&&t!==e;)qe(t)&&Ba(t[S],t),t=t[ue];t===null&&(t=e),qe(t)&&Ba(t[S],t),n=t&&t[ze]}t=n}}function Pw(e,t,n,r){let o=Me+r,i=n.length;r>0&&(n[o-1][ze]=t),r0&&(e[n-1][ze]=r[ze]);let i=gi(e,Me+t);Aw(r[S],r);let s=i[ht];s!==null&&s.detachView(i[S]),r[ue]=null,r[ze]=null,r[b]&=-129}return r}function wp(e,t){if(!(t[b]&256)){let n=t[Q];n.destroyNode&&ls(e,t,n,3,null,null),Ow(t)}}function Ba(e,t){if(t[b]&256)return;let n=F(null);try{t[b]&=-129,t[b]|=256,t[_e]&&ma(t[_e]),Fw(e,t),kw(e,t),t[S].type===1&&t[Q].destroy();let r=t[on];if(r!==null&&ot(t[ue])){r!==t[ue]&&wu(r,t);let o=t[ht];o!==null&&o.detachView(e)}hc(t)}finally{F(n)}}function kw(e,t){let n=e.cleanup,r=t[yi];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[yi]=null);let o=t[At];if(o!==null){t[At]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===rt.None||i===rt.Emulated)return null}return Ae(r,n)}}function Ri(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ep(e,t,n){e.appendChild(t,n)}function pf(e,t,n,r,o){r!==null?Ri(e,t,n,r,o):Ep(e,t,n)}function Ip(e,t){return e.parentNode(t)}function Vw(e,t){return e.nextSibling(t)}function Bw(e,t,n){return $w(e,t,n)}function Uw(e,t,n){return e.type&40?Ae(e,n):null}var $w=Uw,gf;function us(e,t,n,r){let o=Lw(e,r,t),i=t[Q],s=r.parent||t[Ze],a=Bw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(He(r))return!1;s=!0}}}}return He(r)||s}function He(e){return(e&1)===0}function Kw(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!He(s)&&(t+=mf(i,o),o=""),r=s,i=i||!He(r);n++}return o!==""&&(t+=mf(i,o)),t}function nE(e){return e.map(tE).join(",")}function rE(e){let t=[],n=[],r=1,o=2;for(;rie&&_p(e,t,ie,!1),et(s?2:0,o),n(r,o)}finally{an(i),et(s?3:1,o)}}function bu(e,t,n){if(Zc(t)){let r=F(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function uE(e){Yh(e)?bp(e):gw(e)}function lE(){Pp=uE}function dE(e,t,n,r){let o=Bp(t);o.push(n),e.firstCreatePass&&Up(e).push(r,o.length-1)}function fE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Lr()&&(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}}function yf(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=kt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?vf(r,n,u,a,c):vf(r,n,u,a)}return r}function vf(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function hE(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function DE(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;kr(n)&&SE(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Mi(n,t),Pt(r,t);let s=n.initialInputs;for(let a=o;a{es(e.lView)},consumerOnSignalRead(){this.lView[_e]=this}});function $E(e){let t=e[_e]??Object.create(HE);return t.lView=e,t}var HE=z(m({},vr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=sn(e.lView);for(;t&&!zp(t[S]);)t=sn(t);t&&Kc(t)},consumerOnSignalRead(){this.lView[_e]=this}});function zp(e){return e.type!==2}function qp(e){if(e[vi]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[vi])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[b]&8192)}}var zE=100;function Gp(e,t=!0,n=0){let o=e[ft].rendererFactory,i=!1;i||o.begin?.();try{qE(e,n)}catch(s){throw t&&$p(e,s),s}finally{i||o.end?.()}}function qE(e,t){let n=wh();try{ef(!0),Ic(e,t);let r=0;for(;Xi(e);){if(r===zE)throw new D(103,!1);r++,Ic(e,1)}}finally{ef(n)}}function GE(e,t,n,r){let o=t[b];if((o&256)===256)return;let i=!1,s=!1;tu(t);let a=!0,c=null,u=null;i||(zp(e)?(u=jE(t),c=bo(u)):ud()===null?(a=!1,u=$E(t),c=bo(u)):t[_e]&&(ma(t[_e]),t[_e]=null));try{gh(t),sD(e.bindingStartIndex),n!==null&&Rp(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ui(t,f,null)}else{let f=e.preOrderHooks;f!==null&&li(t,f,0,null),Fa(t,0)}if(s||WE(t),qp(t),Wp(t,0),e.contentQueries!==null&&Vp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ui(t,f)}else{let f=e.contentHooks;f!==null&&li(t,f,1),Fa(t,1)}oE(e,t);let d=e.components;d!==null&&Yp(t,d,0);let h=e.viewQuery;if(h!==null&&Ec(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ui(t,f)}else{let f=e.viewHooks;f!==null&&li(t,f,2),Fa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ka]){for(let f of t[ka])f();t[ka]=null}i||(t[b]&=-73)}catch(l){throw i||es(t),l}finally{u!==null&&(pa(u,c),a&&BE(u)),nu()}}function Wp(e,t){for(let n=Jh(e);n!==null;n=Xh(n))for(let r=Me;r-1&&(vc(t,r),gi(n,r))}this._attachedToViewContainer=!1}wp(this._lView[S],this._lView)}onDestroy(t){mh(this._lView,t)}markForCheck(){Au(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Kc(this._cdRefInjectingView||this._lView)}detach(){this._lView[b]&=-129}reattach(){tc(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,Gp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ei(this._lView),n=this._lView[on];n!==null&&!t&&wu(n,this._lView),vp(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=Ei(this._lView),r=this._lView[on];r!==null&&!n&&Dp(r,this._lView),tc(this._lView)}},dn=(()=>{class e{static __NG_ELEMENT_ID__=KE}return e})(),YE=dn,QE=class extends YE{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=kE(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ln(o)}};function KE(){return Ru(fe(),L())}function Ru(e,t){return e.type&4?new QE(t,e,Xn(e,t)):null}var JE=new RegExp(`^(\\d+)*(${rp}|${np})*(.*)`);function XE(e){let t=e.match(JE),[n,r,o,i]=t,s=r?parseInt(r,10):o,a=[];for(let[c,u,l]of i.matchAll(/(f|n)(\d*)/g)){let d=parseInt(l,10)||1;a.push(u,d)}return[s,...a]}function eI(e){return!e.prev&&e.parent?.type===8}function Ua(e){return e.index-ie}function tI(e,t){let n=e.i18nNodes;if(n)return n.get(t)}function hs(e,t,n,r){let o=Ua(r),i=tI(e,o);if(i===void 0){let s=e.data[tw];if(s?.[o])i=rI(s[o],n);else if(t.firstChild===r)i=e.firstChild;else{let a=r.prev===null,c=r.prev??r.parent;if(eI(r)){let u=Ua(r.parent);i=yc(e,u)}else{let u=Ae(c,n);if(a)i=u.firstChild;else{let l=Ua(c),d=yc(e,l);if(c.type===2&&d){let f=mu(e,l)+1;i=ps(f,d)}else i=u.nextSibling}}}}return i}function ps(e,t){let n=t;for(let r=0;r0&&(i.firstChild=e,e=ps(r[xi],e)),n.push(i)}return[e,n]}var Jp=()=>null;function dI(e,t){let n=e[Nr];return!t||n===null||n.length===0?null:n[0].data[ew]===t?n.shift():(Qp(e),null)}function fI(){Jp=dI}function wf(e,t){return Jp(e,t)}var Cc=class{},ki=class{},bc=class{resolveComponentFactory(t){throw Error(`No component factory found for ${De(t)}.`)}},Gn=class{static NULL=new bc},Wn=class{},Ur=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>hI()}return e})();function hI(){let e=L(),t=fe(),n=jt(t.index,e);return(qe(n)?n:e)[Q]}var pI=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();function Fi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Mp(e,n,i.join(" "))}}function EI(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=CI}return e})();function CI(){let e=fe();return eg(e,L())}var bI=$t,Xp=class extends bI{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Xn(this._hostTNode,this._hostLView)}get injector(){return new tn(this._hostTNode,this._hostLView)}get parentInjector(){let t=ru(this._hostTNode,this._hostLView);if(Rh(t)){let n=Ci(t,this._hostLView),r=Ii(t),o=n[S].data[r+8];return new tn(o,n)}else return new tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=If(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=wf(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Df(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!$v(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?t:new Zn(Rt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let y=(s?u:this.parentInjector).get(we,null);y&&(i=y)}let l=Rt(c.componentType??{}),d=wf(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,Df(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Yv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ue],u=new Xp(c,c[Ze],c[ue]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return FE(s,o,i,r),t.attachToViewContainerRef(),Yf($a(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=If(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=vc(this._lContainer,n);r&&(gi($a(this._lContainer),n),wp(r[S],r))}detach(t){let n=this._adjustIndex(t,-1),r=vc(this._lContainer,n);return r&&gi($a(this._lContainer),n)!=null?new ln(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function If(e){return e[Di]}function $a(e){return e[Di]||(e[Di]=[])}function eg(e,t){let n,r=t[e.index];return ot(r)?n=r:(n=jp(r,t,null,e),t[e.index]=n,fs(t,n)),tg(n,t,e,r),new Xp(n,e,t)}function MI(e,t){let n=e[Q],r=n.createComment(""),o=Ae(t,e),i=Ip(n,o);return Ri(n,i,r,Vw(n,o),!1),r}var tg=ng,Ou=()=>!1;function SI(e,t,n){return Ou(e,t,n)}function ng(e,t,n,r){if(e[pt])return;let o;n.type&8?o=We(r):o=MI(t,n),e[pt]=o}function TI(e,t,n){if(e[pt]&&e[Nr])return!0;let r=n[nt],o=t.index-ie;if(!r||qD(t)||jr(r,o))return!1;let s=yc(r,o),a=r.data[fu]?.[o],[c,u]=lI(s,a);return e[pt]=c,e[Nr]=u,!0}function _I(e,t,n,r){Ou(e,n,t)||ng(e,t,n,r)}function NI(){tg=_I,Ou=TI}var Sc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Tc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Me;dt.trim())}function jI(e,t,n){e.queries===null&&(e.queries=new Nc),e.queries.track(new xc(t,n))}function VI(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Pu(e,t){return e.queries.getByIndex(t)}function BI(e,t){let n=e[S],r=Pu(n,t);return r.crossesNgTemplate?Ac(n,e,t,[]):rg(n,e,r,t)}function FO(e,t){Bt("NgSignals");let n=Dd(e),r=n[ke];return t?.equal&&(r.equal=t.equal),n.set=o=>To(r,o),n.update=o=>wd(r,o),n.asReadonly=UI.bind(n),n}function UI(){let e=this[ke];if(e.readonlyFn===void 0){let t=()=>this();t[ke]=e,e.readonlyFn=t}return e.readonlyFn}function $I(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(GI))}return i}return ji.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(r(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>WI(i));t.push(c)}),zI(),Promise.all(t).then(()=>{})}var ji=new Map,HI=new Set;function zI(){let e=ji;return ji=new Map,e}function qI(){return ji.size===0}function GI(e){return typeof e=="string"?e:e.text()}function WI(e){HI.delete(e)}var Ft=class{},Ar=class{};var Vi=class extends Ft{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Li(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Jf(t);this._bootstrapComponents=gp(i.bootstrap),this._r3Injector=Uh(t,n,[{provide:Ft,useValue:this},{provide:Gn,useValue:this.componentFactoryResolver},...r],De(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Bi=class extends Ar{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Vi(this.moduleType,t,[])}};function ZI(e,t,n){return new Vi(e,t,n,!1)}var Rc=class extends Ft{injector;componentFactoryResolver=new Li(this);instance=null;constructor(t){super();let n=new Tr([...t.providers,{provide:Ft,useValue:this},{provide:Gn,useValue:this.componentFactoryResolver}],t.parent||Wc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function gs(e,t,n=null){return new Rc({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var YI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=nh(!1,n.type),o=r.length>0?gs([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(I(we))})}return e})();function og(e){return Or(()=>{let t=ig(e),n=z(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Qh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(YI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||rt.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Bt("NgStandalone"),sg(n);let r=e.dependencies;return n.directiveDefs=bf(r,!1),n.pipeDefs=bf(r,!0),n.id=JI(n),n})}function QI(e){return Rt(e)||Xf(e)}function KI(e){return e!==null}function Ht(e){return Or(()=>({type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Cf(e,t){if(e==null)return Bn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=kt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==kt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function gn(e){return Or(()=>{let t=ig(e);return sg(t),t})}function ku(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ig(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Bn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Cf(e.inputs,t),outputs:Cf(e.outputs),debugInfo:null}}function sg(e){e.features?.forEach(t=>t(e))}function bf(e,t){if(!e)return null;let n=t?eh:QI;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(KI)}function JI(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function XI(e){return Object.getPrototypeOf(e.prototype).constructor}function eC(e){let t=XI(e.type),n=!0,r=[e];for(;t;){let o;if(Ot(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=oi(e.inputs),s.inputTransforms=oi(e.inputTransforms),s.declaredInputs=oi(e.declaredInputs),s.outputs=oi(e.outputs);let a=o.hostBindings;a&&iC(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&rC(e,c),u&&oC(e,u),tC(e,o),iv(e.outputs,o.outputs),Ot(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=xr(o.hostAttrs,n=xr(n,o.hostAttrs))}}function oi(e){return e===Bn?{}:e===Le?[]:e}function rC(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function oC(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function iC(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Fu(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}function ag(e){return aC(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function sC(e,t){if(Array.isArray(e))for(let n=0;n{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var ju=new v(""),Hr=new v(""),ys=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,r,o){this._ngZone=n,this.registry=r,Vu||(gC(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._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!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()},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()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(I(U),I(vs),I(Hr))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),vs=(()=>{class e{_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 Vu?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function gC(e){Vu=e}var Vu;function tr(e){return!!e&&typeof e.then=="function"}function Bu(e){return!!e&&typeof e.subscribe=="function"}var Ds=new v("");var lg=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(Ds,{optional:!0})??[];injector=p(xe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Se(this.injector,o);if(tr(i))n.push(i);else if(Bu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mC=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new Oc})}return e})(),Oc=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},nr=new v("");function yC(){vd(()=>{throw new D(600,!1)})}function vC(e){return e.isBoundToModule}var DC=10;function wC(e,t,n){try{let r=n();return tr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function dg(e,t){return Array.isArray(t)?t.reduce(dg,e):m(m({},e),t)}var Qe=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(jD);afterRenderManager=p(cp);zonelessEnabled=p(au);rootEffectScheduler=p(mC);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new se;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(yt).hasPendingTasks.pipe(_(n=>!n));constructor(){p(ss,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(we);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ki;if(!this._injector.get(lg).done){let h=!o&&th(n),f=!1;throw new D(405,f)}let s;o?s=n:s=this._injector.get(Gn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=vC(s)?void 0:this._injector.get(Ft),c=r||s.selector,u=s.create(xe.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(ju,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),fi(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(hu.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new D(101,!1);let n=F(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,F(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Wn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++Xi(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;fi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nr,[]).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._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function EC(e,t,n,r){if(!n&&!Xi(e))return;Gp(e,t,n&&!r?0:1)}function Uu(e,t,n,r){let o=L(),i=Xc();if(fn(o,i,t)){let s=de(),a=Th();TE(a,o,e,t,n,r)}return Uu}function IC(e,t,n,r){return fn(e,Xc(),n)?t+Wi(n)+r:Ut}function ii(e,t){return e<<17|t<<2}function hn(e){return e>>17&32767}function CC(e){return(e&2)==2}function bC(e,t){return e&131071|t<<17}function Pc(e){return e|2}function Yn(e){return(e&131068)>>2}function Ha(e,t){return e&-131069|t<<2}function MC(e){return(e&1)===1}function kc(e){return e|1}function SC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=hn(s),c=Yn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Pr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=hn(e[a+1]);e[r+1]=ii(h,a),h!==0&&(e[h+1]=Ha(e[h+1],r)),e[a+1]=bC(e[a+1],r)}else e[r+1]=ii(a,0),a!==0&&(e[a+1]=Ha(e[a+1],r)),a=r;else e[r+1]=ii(c,0),a===0?a=r:e[c+1]=Ha(e[c+1],r),c=r;u&&(e[r+1]=Pc(e[r+1])),Mf(e,l,r,!0),Mf(e,l,r,!1),TC(t,l,e,r,i),s=ii(a,c),i?t.classBindings=s:t.styleBindings=s}function TC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Pr(i,t)>=0&&(n[r+1]=kc(n[r+1]))}function Mf(e,t,n,r){let o=e[n+1],i=t===null,s=r?hn(o):Yn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];_C(c,t)&&(a=!0,e[s+1]=r?kc(u):Pc(u)),s=r?hn(u):Yn(u)}a&&(e[n+1]=r?Pc(o):kc(o))}function _C(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Pr(e,t)>=0:!1}function NC(e,t,n){let r=L(),o=Xc();if(fn(r,o,t)){let i=de(),s=Th();gE(i,s,r,e,t,r[Q],n,!1)}return NC}function Sf(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Nu(e,n,i[s],s,r)}function xC(e,t){return AC(e,t,null,!0),xC}function AC(e,t,n,r){let o=L(),i=de(),s=aD(2);if(i.firstUpdatePass&&OC(i,e,s,r),t!==Ut&&fn(o,s,t)){let a=i.data[Jn()];jC(i,a,o,o[Q],e,o[s+1]=VC(t,n),r,s)}}function RC(e,t){return t>=e.expandoStartIndex}function OC(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Jn()],s=RC(e,n);BC(i,r)&&t===null&&!s&&(t=!1),t=PC(o,i,t,r),SC(o,i,t,n,s,r)}}function PC(e,t,n,r){let o=dD(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=za(null,e,t,n,r),n=Rr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=za(o,e,t,n,r),i===null){let c=kC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=za(null,e,t,c[1],r),c=Rr(c,t.attrs,r),FC(e,t,r,c))}else i=LC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function kC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Yn(r)!==0)return e[hn(r)]}function FC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[hn(o)]=r}function LC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===Ut&&(h=d?Le:void 0);let f=d?Oa(h,r):l===r?h:void 0;if(u&&!Ui(f)&&(f=Oa(c,r)),Ui(f)&&(a=f,s))return a;let g=e[o+1];o=s?hn(g):Yn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Oa(c,r))}return a}function Ui(e){return e!==void 0}function VC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=De(Vr(e)))),e}function BC(e,t){return(e.flags&(t?8:16))!==0}function UC(e,t,n,r,o,i){let s=t.consts,a=zn(s,o),c=Br(t,e,2,r,a);return _u(t,n,c,zn(s,i)),c.attrs!==null&&Fi(c,c.attrs,!1),c.mergedAttrs!==null&&Fi(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function fg(e,t,n,r){let o=L(),i=de(),s=ie+e,a=o[Q],c=i.firstCreatePass?UC(s,i,o,t,n,r):i.data[s],u=pg(i,o,c,a,t,e);o[s]=u;let l=Ji(c);return pn(c,!0),Sp(a,u,c),!$r(c)&&ns()&&us(i,o,u,c),Jv()===0&&Pt(u,o),Xv(),l&&(Mu(i,o,c),bu(i,c,o)),r!==null&&Su(o,c),fg}function hg(){let e=fe();Jc()?Dh():(e=e.parent,pn(e,!1));let t=e;tD(t)&&rD(),eD();let n=de();return n.firstCreatePass&&(rs(n,e),Zc(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&yD(t)&&Sf(n,t,L(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&vD(t)&&Sf(n,t,L(),t.stylesWithoutHost,!1),hg}function $u(e,t,n,r){return fg(e,t,n,r),hg(),$u}var pg=(e,t,n,r,o,i)=>(Vt(!0),Du(r,o,_h()));function $C(e,t,n,r,o,i){let s=t[nt],a=!s||Lr()||$r(n)||jr(s,i);if(Vt(a),a)return Du(r,o,_h());let c=hs(s,e,t,n);return dp(s,i)&&as(s,i,c.nextSibling),s&&(Zh(n)||Yh(c))&&kr(n)&&(nD(n),bp(c)),c}function HC(){pg=$C}function zC(e,t,n,r,o){let i=t.consts,s=zn(i,r),a=Br(t,e,8,"ng-container",s);s!==null&&Fi(a,s,!0);let c=zn(i,o);return _u(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function qC(e,t,n){let r=L(),o=de(),i=e+ie,s=o.firstCreatePass?zC(i,o,r,t,n):o.data[i];pn(s,!0);let a=gg(o,r,s,e);return r[i]=a,ns()&&us(o,r,a,s),Pt(a,r),Ji(s)&&(Mu(o,r,s),bu(o,s,r)),n!=null&&Su(r,s),qC}function GC(){let e=fe(),t=de();return Jc()?Dh():(e=e.parent,pn(e,!1)),t.firstCreatePass&&(rs(t,e),Zc(e)&&t.queries.elementEnd(e)),GC}var gg=(e,t,n,r)=>(Vt(!0),yp(t[Q],""));function WC(e,t,n,r){let o,i=t[nt],s=!i||Lr()||jr(i,r)||$r(n);if(Vt(s),s)return yp(t[Q],"");let a=hs(i,e,t,n),c=mw(i,r);return as(i,r,a),o=ps(c,a),o}function ZC(){gg=WC}function LO(){return L()}var en=void 0;function YC(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var QC=["en",[["a","p"],["AM","PM"],en],[["AM","PM"],en,en],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],en,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],en,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",en,"{1} 'at' {0}",en],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",YC],qa={};function Ve(e){let t=KC(e),n=_f(t);if(n)return n;let r=t.split("-")[0];if(n=_f(r),n)return n;if(r==="en")return QC;throw new D(701,!1)}function _f(e){return e in qa||(qa[e]=ye.ng&&ye.ng.common&&ye.ng.common.locales&&ye.ng.common.locales[e]),qa[e]}var J=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(J||{});function KC(e){return e.toLowerCase().replace(/_/g,"-")}var $i="en-US";var JC=$i;function XC(e){typeof e=="string"&&(JC=e.toLowerCase().replace(/_/g,"-"))}var eb=(e,t,n)=>{};function Hu(e,t,n,r){let o=L(),i=de(),s=fe();return nb(i,o,o[Q],s,e,t,r),Hu}function tb(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function nb(e,t,n,r,o,i,s){let a=Ji(r),u=e.firstCreatePass&&Up(e),l=t[Ge],d=Bp(t),h=!0;if(r.type&3||s){let y=Ae(r,t),E=s?s(y):y,T=d.length,Z=s?K=>s(We(K[r.index])):r.index,P=null;if(!s&&a&&(P=tb(e,t,o,r.index)),P!==null){let K=P.__ngLastListenerFn__||P;K.__ngNextListenerFn__=i,P.__ngLastListenerFn__=i,h=!1}else{i=xf(r,t,l,i),eb(y,o,i);let K=n.listen(E,o,i);d.push(i,K),u&&u.push(o,Z,T,T+1)}}else i=xf(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let y=g.length;if(y)for(let E=0;E-1?jt(e.index,t):t;Au(s,5);let a=Nf(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Nf(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function jO(e=1){return hD(e)}function mg(e,t,n,r){FI(e,t,n,r)}function yg(e){let t=L(),n=de(),r=Eh();eu(r+1);let o=Pu(n,r);if(e.dirty&&Zv(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=BI(t,r);e.reset(i,UD),e.notifyOnChanges()}return!0}return!1}function vg(){return PI(L(),Eh())}function rb(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function VO(e){let t=iD();return Yc(t,ie+e)}function BO(e,t=""){let n=L(),r=de(),o=e+ie,i=r.firstCreatePass?Br(r,o,1,t,null):r.data[o],s=Dg(r,n,i,t,e);n[o]=s,ns()&&us(r,n,s,i),pn(i,!1)}var Dg=(e,t,n,r,o)=>(Vt(!0),mp(t[Q],r));function ob(e,t,n,r,o){let i=t[nt],s=!i||Lr()||$r(n)||jr(i,o);return Vt(s),s?mp(t[Q],r):hs(i,e,t,n)}function ib(){Dg=ob}function sb(e){return wg("",e,""),sb}function wg(e,t,n){let r=L(),o=IC(r,e,t,n);return o!==Ut&&AE(r,Jn(),o),wg}function ab(e,t,n){let r=de();if(r.firstCreatePass){let o=Ot(e);Fc(n,r.data,r.blueprint,o,!0),Fc(t,r.data,r.blueprint,o,!1)}}function Fc(e,t,n,r,o){if(e=ve(e),Array.isArray(e))for(let i=0;i>20;if(Un(e)||!e.multi){let f=new cn(u,o,G),g=Wa(c,t,o?l:l+h,d);g===-1?(ac(Mi(a,s),i,c),Ga(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=Wa(c,t,l+h,d),g=Wa(c,t,l,l+h),y=f>=0&&n[f],E=g>=0&&n[g];if(o&&!E||!o&&!y){ac(Mi(a,s),i,c);let T=lb(o?ub:cb,n.length,o,r,u);!o&&E&&(n[g].providerFactory=T),Ga(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(T),s.push(T)}else{let T=Eg(n[o?g:f],u,!o&&r);Ga(i,e,f>-1?f:g,T)}!o&&r&&E&&n[g].componentProviders++}}}function Ga(e,t,n,r){let o=Un(t),i=Ov(t);if(o||i){let c=(i?ve(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Eg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Wa(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>ab(r,o?o(e):e,t)}}function $O(e,t,n){let r=ts()+e,o=L();return o[r]===Ut?Lu(o,r,n?t.call(n):t()):cC(o,r)}function HO(e,t,n,r){return Cg(L(),ts(),e,t,n,r)}function Ig(e,t){let n=e[t];return n===Ut?void 0:n}function Cg(e,t,n,r,o,i){let s=t+n;return fn(e,s,o)?Lu(e,s+1,i?r.call(i,o):r(o)):Ig(e,s+1)}function db(e,t,n,r,o,i,s){let a=t+n;return uC(e,a,o,i)?Lu(e,a+2,s?r.call(s,o,i):r(o,i)):Ig(e,a+2)}function zO(e,t){let n=de(),r,o=e+ie;n.firstCreatePass?(r=fb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=nn(r.type,!0)),s,a=Ce(G);try{let c=bi(!1),u=i();return bi(c),rb(n,L(),o,u),u}finally{Ce(a)}}function fb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function qO(e,t,n){let r=e+ie,o=L(),i=Yc(o,r);return bg(o,r)?Cg(o,ts(),t,i.transform,n,i):i.transform(n)}function GO(e,t,n,r){let o=e+ie,i=L(),s=Yc(i,o);return bg(i,o)?db(i,ts(),t,s.transform,n,r,s):s.transform(n,r)}function bg(e,t){return e[S].data[t].pure}var si=null;function hb(e){si!==null&&(e.defaultEncapsulation!==si.defaultEncapsulation||e.preserveWhitespaces!==si.preserveWhitespaces)||(si=e)}var jc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},ws=(()=>{class e{compileModuleSync(n){return new Bi(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Jf(n),i=gp(o.declarations).reduce((s,a)=>{let c=Rt(a);return c&&s.push(new Zn(c)),s},[]);return new jc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pb=new v("");function gb(e,t,n){let r=new Bi(n);return Promise.resolve(r)}function Af(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var mb=(()=>{class e{zone=p(U);changeDetectionScheduler=p(qn);applicationRef=p(Qe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function yb({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new U(z(m({},Mg()),{scheduleInRootZone:n})),[{provide:U,useFactory:e},{provide:rn,multi:!0,useFactory:()=>{let r=p(mb,{optional:!0});return()=>r.initialize()}},{provide:rn,multi:!0,useFactory:()=>{let r=p(vb);return()=>{r.initialize()}}},t===!0?{provide:Hh,useValue:!0}:[],{provide:zh,useValue:n??$h}]}function Mg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var vb=(()=>{class e{subscription=new Y;initialized=!1;zone=p(U);pendingTasks=p(yt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Db=(()=>{class e{appRef=p(Qe);taskService=p(yt);ngZone=p(U);zonelessEnabled=p(au);tracing=p(ss,{optional:!0});disableScheduling=p(Hh,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Y;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ti):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(zh,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof _i||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?af:qh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ti+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,af(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wb(){return typeof $localize<"u"&&$localize.locale||$i}var Es=new v("",{providedIn:"root",factory:()=>p(Es,R.Optional|R.SkipSelf)||wb()});var Hi=new v("");function ai(e){return!e.moduleRef}function Eb(e){let t=ai(e)?e.r3Injector:e.moduleRef.injector,n=t.get(U);return n.run(()=>{ai(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(gt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),ai(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Hi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Hi);s.add(i),e.moduleRef.onDestroy(()=>{fi(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return wC(r,n,()=>{let i=t.get(lg);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Es,$i);if(XC(s||$i),ai(e)){let a=t.get(Qe);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Ib(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Ib(e,t){let n=e.injector.get(Qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var Sg=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>LD(r?.ngZone,z(m({},Mg({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[yb({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:qn,useExisting:Db}],c=ZI(n.moduleType,this.injector,a);return Eb({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=dg({},r);return gb(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Hi,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(I(xe))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Mr=null,Tg=new v("");function Cb(e){if(Mr&&!Mr.get(Tg,!1))throw new D(400,!1);yC(),Mr=e;let t=e.get(Sg);return Sb(e),t}function zu(e,t,n=[]){let r=`Platform: ${t}`,o=new v(r);return(i=[])=>{let s=_g();if(!s||s.injector.get(Tg,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):Cb(bb(a,r))}return Mb(o)}}function bb(e=[],t){return xe.create({name:t,providers:[{provide:Qi,useValue:"platform"},{provide:Hi,useValue:new Set([()=>Mr=null])},...e]})}function Mb(e){let t=_g();if(!t)throw new D(401,!1);return t}function _g(){return Mr?.get(Sg)??null}function Sb(e){let t=e.get(lu,null);Se(e,()=>{t?.forEach(n=>n())})}var mn=(()=>{class e{static __NG_ELEMENT_ID__=Tb}return e})();function Tb(e){return _b(fe(),L(),(e&16)===16)}function _b(e,t,n){if(kr(e)&&!n){let r=jt(e.index,t);return new ln(r,r)}else if(e.type&175){let r=t[je];return new ln(r,t)}return null}var Vc=class{constructor(){}supports(t){return ag(t)}create(t){return new Bc(t)}},Nb=(e,t)=>t,Bc=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Nb}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;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 t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Uc(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?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=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new zi),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(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=this._identityChangesTail._nextIdentityChange=t,t}},Uc=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},$c=class{_head=null;_tail=null;add(t){this._head===null?(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;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},zi=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new $c,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Rf(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{factories;static \u0275prov=w({token:e,providedIn:"root",factory:Of});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Of()),deps:[[e,new zc,new Yi]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D(901,!1)}}return e})();var Ng=zu(null,"core",[]),xg=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(I(Qe))};static \u0275mod=Ht({type:e});static \u0275inj=Lt({})}return e})();var Pf=!1;function xb(){Pf||(Pf=!0,fw(),HC(),ib(),ZC(),pC(),NI(),fI(),lE())}function Ab(e,t){return e.whenStable()}function Ag(){let e=[{provide:ni,useFactory:()=>{let t=!0;return t=!!p(er,{optional:!0})?.get(up,null),t&&Bt("NgHydration"),t}},{provide:rn,useValue:()=>{iI(!1),p(ni)&&(Rb(),xb())},multi:!0}];return e.push({provide:ap,useFactory:()=>p(ni)},{provide:nr,useFactory:()=>{if(p(ni)){let t=p(Qe),n=p(xe);return()=>{Ab(t,n).then(()=>{uI(t)})}}return()=>{}},multi:!0}),Qn(e)}function Rb(){let e=os(),t;for(let n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===lw){t=n;break}if(!t)throw new D(-507,!1)}function zr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function WO(e,t){Bt("NgSignals");let n=gd(e);return t?.equal&&(n[ke].equal=t.equal),n}function Gu(e){let t=F(null);try{return e()}finally{F(t)}}var kf=class{[ke];constructor(t){this[ke]=t}destroy(){this[ke].destroy()}};function Rg(e){let t=Rt(e);if(!t)return null;let n=new Zn(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Vg=null;function yn(){return Vg}function Bg(e){Vg??=e}var xs=class{};var he=new v(""),nl=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(Ob),providedIn:"platform"})}return e})(),Ug=new v(""),Ob=(()=>{class e extends nl{_location;_history;_doc=p(he);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yn().getBaseHref(this._doc)}onPopState(n){let r=yn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=yn().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}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function rl(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Og(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function wt(e){return e&&e[0]!=="?"?"?"+e:e}var It=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(ol),providedIn:"root"})}return e})(),$g=new v(""),ol=(()=>{class e extends It{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(he).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 rl(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+wt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+wt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+wt(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)}static \u0275fac=function(r){return new(r||e)(I(nl),I($g,8))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hg=(()=>{class e extends It{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(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 r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=rl(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+wt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+wt(i));s.length==0&&(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)}static \u0275fac=function(r){return new(r||e)(I(nl),I($g,8))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),or=(()=>{class e{_subject=new se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Fb(Og(Pg(r))),this._locationStrategy.onPopState(o=>{this._subject.next({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+wt(r))}normalize(n){return e.stripTrailingSlash(kb(this._basePath,Pg(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+wt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+wt(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.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(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??void 0,complete:o??void 0})}static normalizeQueryParams=wt;static joinWithSlash=rl;static stripTrailingSlash=Og;static \u0275fac=function(r){return new(r||e)(I(It))};static \u0275prov=w({token:e,factory:()=>Pb(),providedIn:"root"})}return e})();function Pb(){return new or(I(It))}function kb(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Pg(e){return e.replace(/\/index.html$/,"")}function Fb(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ee=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Ee||{}),H=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(H||{}),Re=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Re||{}),zt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Lb(e){return Ve(e)[J.LocaleId]}function jb(e,t,n){let r=Ve(e),o=[r[J.DayPeriodsFormat],r[J.DayPeriodsStandalone]],i=Be(o,t);return Be(i,n)}function Vb(e,t,n){let r=Ve(e),o=[r[J.DaysFormat],r[J.DaysStandalone]],i=Be(o,t);return Be(i,n)}function Bb(e,t,n){let r=Ve(e),o=[r[J.MonthsFormat],r[J.MonthsStandalone]],i=Be(o,t);return Be(i,n)}function Ub(e,t){let r=Ve(e)[J.Eras];return Be(r,t)}function Is(e,t){let n=Ve(e);return Be(n[J.DateFormat],t)}function Cs(e,t){let n=Ve(e);return Be(n[J.TimeFormat],t)}function bs(e,t){let r=Ve(e)[J.DateTimeFormat];return Be(r,t)}function Rs(e,t){let n=Ve(e),r=n[J.NumberSymbols][t];if(typeof r>"u"){if(t===zt.CurrencyDecimal)return n[J.NumberSymbols][zt.Decimal];if(t===zt.CurrencyGroup)return n[J.NumberSymbols][zt.Group]}return r}function zg(e){if(!e[J.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[J.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $b(e){let t=Ve(e);return zg(t),(t[J.ExtraData][2]||[]).map(r=>typeof r=="string"?Wu(r):[Wu(r[0]),Wu(r[1])])}function Hb(e,t,n){let r=Ve(e);zg(r);let o=[r[J.ExtraData][0],r[J.ExtraData][1]],i=Be(o,t)||[];return Be(i,n)||[]}function Be(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Wu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var zb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ms={},qb=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Et=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Et||{}),V=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(V||{}),j=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(j||{});function Gb(e,t,n,r){let o=tM(e);t=Dt(n,t)||t;let s=[],a;for(;t;)if(a=qb.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Gg(r,c),o=eM(o,r,!0));let u="";return s.forEach(l=>{let d=Jb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function As(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Dt(e,t){let n=Lb(e);if(Ms[n]??={},Ms[n][t])return Ms[n][t];let r="";switch(t){case"shortDate":r=Is(e,Re.Short);break;case"mediumDate":r=Is(e,Re.Medium);break;case"longDate":r=Is(e,Re.Long);break;case"fullDate":r=Is(e,Re.Full);break;case"shortTime":r=Cs(e,Re.Short);break;case"mediumTime":r=Cs(e,Re.Medium);break;case"longTime":r=Cs(e,Re.Long);break;case"fullTime":r=Cs(e,Re.Full);break;case"short":let o=Dt(e,"shortTime"),i=Dt(e,"shortDate");r=Ss(bs(e,Re.Short),[o,i]);break;case"medium":let s=Dt(e,"mediumTime"),a=Dt(e,"mediumDate");r=Ss(bs(e,Re.Medium),[s,a]);break;case"long":let c=Dt(e,"longTime"),u=Dt(e,"longDate");r=Ss(bs(e,Re.Long),[c,u]);break;case"full":let l=Dt(e,"fullTime"),d=Dt(e,"fullDate");r=Ss(bs(e,Re.Full),[l,d]);break}return r&&(Ms[n][t]=r),r}function Ss(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ke(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)a===0&&n===-12&&(a=12);else if(e===V.FractionalSeconds)return Wb(a,t);let c=Rs(s,zt.MinusSign);return Ke(a,t,c,r,o)}}function Zb(e,t){switch(e){case V.FullYear:return t.getFullYear();case V.Month:return t.getMonth();case V.Date:return t.getDate();case V.Hours:return t.getHours();case V.Minutes:return t.getMinutes();case V.Seconds:return t.getSeconds();case V.FractionalSeconds:return t.getMilliseconds();case V.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function q(e,t,n=Ee.Format,r=!1){return function(o,i){return Yb(o,i,e,t,n,r)}}function Yb(e,t,n,r,o,i){switch(n){case j.Months:return Bb(t,o,r)[e.getMonth()];case j.Days:return Vb(t,o,r)[e.getDay()];case j.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=$b(t),l=Hb(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,y=s>=f.hours&&a>=f.minutes,E=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Et.Short:return(o>=0?"+":"")+Ke(s,2,i)+Ke(Math.abs(o%60),2,i);case Et.ShortGMT:return"GMT"+(o>=0?"+":"")+Ke(s,1,i);case Et.Long:return"GMT"+(o>=0?"+":"")+Ke(s,2,i)+":"+Ke(Math.abs(o%60),2,i);case Et.Extended:return r===0?"Z":(o>=0?"+":"")+Ke(s,2,i)+":"+Ke(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var Qb=0,Ns=4;function Kb(e){let t=As(e,Qb,1).getDay();return As(e,0,1+(t<=Ns?Ns:Ns+7)-t)}function qg(e){let t=e.getDay(),n=t===0?-3:Ns-t;return As(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Zu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=qg(n),s=Kb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ke(o,e,Rs(r,zt.MinusSign))}}function _s(e,t=!1){return function(n,r){let i=qg(n).getFullYear();return Ke(i,e,Rs(r,zt.MinusSign),t)}}var Yu={};function Jb(e){if(Yu[e])return Yu[e];let t;switch(e){case"G":case"GG":case"GGG":t=q(j.Eras,H.Abbreviated);break;case"GGGG":t=q(j.Eras,H.Wide);break;case"GGGGG":t=q(j.Eras,H.Narrow);break;case"y":t=ne(V.FullYear,1,0,!1,!0);break;case"yy":t=ne(V.FullYear,2,0,!0,!0);break;case"yyy":t=ne(V.FullYear,3,0,!1,!0);break;case"yyyy":t=ne(V.FullYear,4,0,!1,!0);break;case"Y":t=_s(1);break;case"YY":t=_s(2,!0);break;case"YYY":t=_s(3);break;case"YYYY":t=_s(4);break;case"M":case"L":t=ne(V.Month,1,1);break;case"MM":case"LL":t=ne(V.Month,2,1);break;case"MMM":t=q(j.Months,H.Abbreviated);break;case"MMMM":t=q(j.Months,H.Wide);break;case"MMMMM":t=q(j.Months,H.Narrow);break;case"LLL":t=q(j.Months,H.Abbreviated,Ee.Standalone);break;case"LLLL":t=q(j.Months,H.Wide,Ee.Standalone);break;case"LLLLL":t=q(j.Months,H.Narrow,Ee.Standalone);break;case"w":t=Zu(1);break;case"ww":t=Zu(2);break;case"W":t=Zu(1,!0);break;case"d":t=ne(V.Date,1);break;case"dd":t=ne(V.Date,2);break;case"c":case"cc":t=ne(V.Day,1);break;case"ccc":t=q(j.Days,H.Abbreviated,Ee.Standalone);break;case"cccc":t=q(j.Days,H.Wide,Ee.Standalone);break;case"ccccc":t=q(j.Days,H.Narrow,Ee.Standalone);break;case"cccccc":t=q(j.Days,H.Short,Ee.Standalone);break;case"E":case"EE":case"EEE":t=q(j.Days,H.Abbreviated);break;case"EEEE":t=q(j.Days,H.Wide);break;case"EEEEE":t=q(j.Days,H.Narrow);break;case"EEEEEE":t=q(j.Days,H.Short);break;case"a":case"aa":case"aaa":t=q(j.DayPeriods,H.Abbreviated);break;case"aaaa":t=q(j.DayPeriods,H.Wide);break;case"aaaaa":t=q(j.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":t=q(j.DayPeriods,H.Abbreviated,Ee.Standalone,!0);break;case"bbbb":t=q(j.DayPeriods,H.Wide,Ee.Standalone,!0);break;case"bbbbb":t=q(j.DayPeriods,H.Narrow,Ee.Standalone,!0);break;case"B":case"BB":case"BBB":t=q(j.DayPeriods,H.Abbreviated,Ee.Format,!0);break;case"BBBB":t=q(j.DayPeriods,H.Wide,Ee.Format,!0);break;case"BBBBB":t=q(j.DayPeriods,H.Narrow,Ee.Format,!0);break;case"h":t=ne(V.Hours,1,-12);break;case"hh":t=ne(V.Hours,2,-12);break;case"H":t=ne(V.Hours,1);break;case"HH":t=ne(V.Hours,2);break;case"m":t=ne(V.Minutes,1);break;case"mm":t=ne(V.Minutes,2);break;case"s":t=ne(V.Seconds,1);break;case"ss":t=ne(V.Seconds,2);break;case"S":t=ne(V.FractionalSeconds,1);break;case"SS":t=ne(V.FractionalSeconds,2);break;case"SSS":t=ne(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ts(Et.Short);break;case"ZZZZZ":t=Ts(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ts(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ts(Et.Long);break;default:return null}return Yu[e]=t,t}function Gg(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Xb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function eM(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Gg(t,o);return Xb(e,r*(i-o))}function tM(e){if(kg(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return As(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(zb))return nM(r)}let t=new Date(e);if(!kg(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function nM(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function kg(e){return e instanceof Date&&!isNaN(e.valueOf())}function Os(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Qu=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},yP=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Qu(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Fg(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);Fg(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(G($t),G(dn),G(qu))};static \u0275dir=gn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Fg(e,t){e.context.$implicit=t.item}var vP=(()=>{class e{_viewContainer;_context=new Ku;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Lg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Lg("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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(G($t),G(dn))};static \u0275dir=gn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ku=class{$implicit=null;ngIf=null};function Lg(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${De(t)}'.`)}function Wg(e,t){return new D(2100,!1)}var Ju=class{createSubscription(t,n){return Gu(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Gu(()=>t.unsubscribe())}},Xu=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},rM=new Xu,oM=new Ju,DP=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(n){this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(tr(n))return rM;if(Bu(n))return oM;throw Wg(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(G(mn,16))};static \u0275pipe=ku({name:"async",type:e,pure:!1})}return e})();var iM="mediumDate",sM=new v(""),aM=new v(""),wP=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??iM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Gb(n,s,i||this.locale,a)}catch(s){throw Wg(e,s.message)}}static \u0275fac=function(r){return new(r||e)(G(Es,16),G(sM,24),G(aM,24))};static \u0275pipe=ku({name:"date",type:e,pure:!0})}return e})();var Zg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Ht({type:e});static \u0275inj=Lt({})}return e})(),il="browser",cM="server";function uM(e){return e===il}function Gr(e){return e===cM}var Yg=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>uM(p(Ye))?new el(p(he),window):new tl})}return e})(),el=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=lM(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let 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])}};function lM(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var tl=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},rr=class{};var Zr=class{},Fs=class{},it=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var al=class{encodeKey(t){return Kg(t)}encodeValue(t){return Kg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function dM(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var fM=/%(\d[a-f0-9])/gi,hM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Kg(e){return encodeURIComponent(e).replace(fM,(t,n)=>hM[n]??t)}function Ps(e){return`${e}`}var Gt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new al,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=dM(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ps):[Ps(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Ps(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Ps(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var cl=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function pM(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Jg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Xg(e){return typeof Blob<"u"&&e instanceof Blob}function em(e){return typeof FormData<"u"&&e instanceof FormData}function gM(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Wr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(pM(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new it,this.context??=new cl,!this.params)this.params=new Gt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Wt=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Wt||{}),Yr=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new it,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ls=class e extends Yr{constructor(t={}){super(t)}type=Wt.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},vn=class e extends Yr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Wt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},qt=class extends Yr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},fm=200,mM=204;function sl(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var dl=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Wr)i=n;else{let c;o.headers instanceof it?c=o.headers:c=new it(o.headers);let u;o.params&&(o.params instanceof Gt?u=o.params:u=new Gt({fromObject:o.params})),i=new Wr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=C(i).pipe(ut(c=>this.handler.handle(c)));if(n instanceof Wr||o.observe==="events")return s;let a=s.pipe(ge(c=>c instanceof vn));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(_(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(_(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(_(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(_(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Gt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,sl(o,r))}post(n,r,o={}){return this.request("POST",n,sl(o,r))}put(n,r,o={}){return this.request("PUT",n,sl(o,r))}static \u0275fac=function(r){return new(r||e)(I(Zr))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),yM=/^\)\]\}',?\n/,vM="X-Request-URL";function tm(e){if(e.url)return e.url;let t=vM.toLocaleLowerCase();return e.headers.get(t)}var DM=(()=>{class e{fetchImpl=p(ul,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(U);handle(n){return new k(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ll,i=>r.error(new qt({error:i}))),()=>o.abort()})}doRequest(n,r,o){return mr(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},i)));wM(f),o.next({type:Wt.Sent}),s=yield f}catch(f){o.error(new qt({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new it(s.headers),c=s.statusText,u=tm(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new Ls({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],y=s.body.getReader(),E=0,T,Z,P=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>mr(this,null,function*(){for(;;){let{done:le,value:re}=yield y.read();if(le)break;if(g.push(re),E+=re.length,n.reportProgress){Z=n.responseType==="text"?(Z??"")+(T??=new TextDecoder).decode(re,{stream:!0}):void 0;let at=()=>o.next({type:Wt.DownloadProgress,total:f?+f:void 0,loaded:E,partialText:Z});P?P.run(at):at()}}}));let K=this.concatChunks(g,E);try{let le=s.headers.get("Content-Type")??"";d=this.parseBody(n,K,le)}catch(le){o.error(new qt({error:le,headers:new it(s.headers),status:s.status,statusText:s.statusText,url:tm(s)??n.urlWithParams}));return}}l===0&&(l=d?fm:0),l>=200&&l<300?(o.next(new vn({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new qt({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(yM,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ul=class{};function ll(){}function wM(e){e.then(ll,ll)}function hm(e,t){return t(e)}function EM(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function IM(e,t,n){return(r,o)=>Se(n,()=>t(r,i=>e(i,o)))}var CM=new v(""),fl=new v(""),pm=new v(""),gm=new v("",{providedIn:"root",factory:()=>!0});function bM(){let e=null;return(t,n)=>{e===null&&(e=(p(CM,{optional:!0})??[]).reduceRight(EM,hm));let r=p(yt);if(p(gm)){let i=r.add();return e(t,n).pipe(Nt(()=>r.remove(i)))}else return e(t,n)}}var nm=(()=>{class e extends Zr{backend;injector;chain=null;pendingTasks=p(yt);contributeToStability=p(gm);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(fl),...this.injector.get(pm,[])]));this.chain=r.reduceRight((o,i)=>IM(o,i,this.injector),hm)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Nt(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(Fs),I(we))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var MM=/^\)\]\}',?\n/;function SM(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var rm=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?W(r.\u0275loadImpl()):C(null)).pipe(me(()=>new k(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,E)=>s.setRequestHeader(y,E.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let y=n.detectContentTypeHeader();y!==null&&s.setRequestHeader("Content-Type",y)}if(n.responseType){let y=n.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",E=new it(s.getAllResponseHeaders()),T=SM(s)||n.url;return c=new Ls({headers:E,status:s.status,statusText:y,url:T}),c},l=()=>{let{headers:y,status:E,statusText:T,url:Z}=u(),P=null;E!==mM&&(P=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=P?fm:0);let K=E>=200&&E<300;if(n.responseType==="json"&&typeof P=="string"){let le=P;P=P.replace(MM,"");try{P=P!==""?JSON.parse(P):null}catch(re){P=le,K&&(K=!1,P={error:re,text:P})}}K?(i.next(new vn({body:P,headers:y,status:E,statusText:T,url:Z||void 0})),i.complete()):i.error(new qt({error:P,headers:y,status:E,statusText:T,url:Z||void 0}))},d=y=>{let{url:E}=u(),T=new qt({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});i.error(T)},h=!1,f=y=>{h||(i.next(u()),h=!0);let E={type:Wt.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(E.total=y.total),n.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),i.next(E)},g=y=>{let E={type:Wt.UploadProgress,loaded:y.loaded};y.lengthComputable&&(E.total=y.total),i.next(E)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:Wt.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(rr))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),mm=new v(""),TM="XSRF-TOKEN",_M=new v("",{providedIn:"root",factory:()=>TM}),NM="X-XSRF-TOKEN",xM=new v("",{providedIn:"root",factory:()=>NM}),js=class{},AM=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Os(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(he),I(Ye),I(_M))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function RM(e,t){let n=e.url.toLowerCase();if(!p(mm)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(js).getToken(),o=p(xM);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var ym=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(ym||{});function OM(e,t){return{\u0275kind:e,\u0275providers:t}}function RP(...e){let t=[dl,rm,nm,{provide:Zr,useExisting:nm},{provide:Fs,useFactory:()=>p(DM,{optional:!0})??p(rm)},{provide:fl,useValue:RM,multi:!0},{provide:mm,useValue:!0},{provide:js,useClass:AM}];for(let n of e)t.push(...n.\u0275providers);return Qn(t)}var om=new v("");function OP(){return OM(ym.LegacyInterceptors,[{provide:om,useFactory:bM},{provide:fl,useExisting:om,multi:!0}])}var PM=new v(""),im="b",sm="h",am="s",cm="st",um="u",lm="rt",ks=new v(""),kM=["GET","HEAD"];function FM(e,t){let f=p(ks),{isCacheActive:n}=f,r=cd(f,["isCacheActive"]),{transferCache:o,method:i}=e;if(!n||o===!1||i==="POST"&&!r.includePostRequests&&!o||i!=="POST"&&!kM.includes(i)||!r.includeRequestsWithAuthHeaders&&LM(e)||r.filter?.(e)===!1)return t(e);let s=p(er),a=p(PM,{optional:!0}),c=Gr(p(Ye));if(a&&!c)throw new D(2803,!1);let u=c&&a?UM(e.url,a):e.url,l=VM(e,u),d=s.get(l,null),h=r.includeHeaders;if(typeof o=="object"&&o.includeHeaders&&(h=o.includeHeaders),d){let{[im]:g,[lm]:y,[sm]:E,[am]:T,[cm]:Z,[um]:P}=d,K=g;switch(y){case"arraybuffer":K=new TextEncoder().encode(g).buffer;break;case"blob":K=new Blob([g]);break}let le=new it(E);return C(new vn({body:K,headers:le,status:T,statusText:Z,url:P}))}return t(e).pipe(te(g=>{g instanceof vn&&c&&s.set(l,{[im]:g.body,[sm]:jM(g.headers,h),[am]:g.status,[cm]:g.statusText,[um]:u,[lm]:e.responseType})}))}function LM(e){return e.headers.has("authorization")||e.headers.has("proxy-authorization")}function jM(e,t){if(!t)return{};let n={};for(let r of t){let o=e.getAll(r);o!==null&&(n[r]=o)}return n}function dm(e){return[...e.keys()].sort().map(t=>`${t}=${e.getAll(t)}`).join("&")}function VM(e,t){let{params:n,method:r,responseType:o}=e,i=dm(n),s=e.serializeBody();s instanceof URLSearchParams?s=dm(s):typeof s!="string"&&(s="");let a=[r,o,t,s,i].join("|"),c=BM(a);return c}function BM(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function vm(e){return[{provide:ks,useFactory:()=>(Bt("NgHttpTransferCache"),m({isCacheActive:!0},e))},{provide:pm,useValue:FM,multi:!0,deps:[er,ks]},{provide:nr,multi:!0,useFactory:()=>{let t=p(Qe),n=p(ks);return()=>{t.whenStable().then(()=>{n.isCacheActive=!1})}}}]}function UM(e,t){let n=new URL(e,"resolve://").origin,r=t[n];return r?e.replace(n,r):e}var pl=class extends xs{supportsDOMEvents=!0},gl=class e extends pl{static makeCurrent(){Bg(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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 n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=HM();return n==null?null:zM(n)}resetBaseElement(){Qr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Os(document.cookie,t)}},Qr=null;function HM(){return Qr=Qr||document.querySelector("base"),Qr?Qr.getAttribute("href"):null}function zM(e){return new URL(e,document.baseURI).pathname}var ml=class{addToWindow(t){ye.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new D(5103,!1);return i},ye.getAllAngularTestabilities=()=>t.getAllTestabilities(),ye.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=ye.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};ye.frameworkStabilizers||(ye.frameworkStabilizers=[]),ye.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?yn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},qM=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),yl=new v(""),bm=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,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 D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I(yl),I(U))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Vs=class{_doc;constructor(t){this._doc=t}manager},vl="ng-app-id";function Dm(e){for(let t of e)t.remove()}function wm(e,t){let n=t.createElement("style");return n.textContent=e,n}function GM(e,t,n){let r=e.head?.querySelectorAll(`style[${vl}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(vl),n.set(o.textContent,{usage:0,elements:[o]}))}function Dl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Mm=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Gr(i),GM(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,wm);r?.forEach(o=>this.addUsage(o,this.external,Dl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Dm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Dm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,wm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Dl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(vl,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(he),I(is),I(du,8),I(Ye))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),hl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Il=/%COMP%/g,Sm="%COMP%",WM=`_nghost-${Sm}`,ZM=`_ngcontent-${Sm}`,YM=!0,QM=new v("",{providedIn:"root",factory:()=>YM});function KM(e){return ZM.replace(Il,e)}function JM(e){return WM.replace(Il,e)}function Tm(e,t){return t.map(n=>n.replace(Il,e))}var Em=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=Gr(a),this.defaultRenderer=new Kr(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===rt.ShadowDom&&(r=z(m({},r),{encapsulation:rt.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Bs?o.applyToHost(n):o instanceof Jr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case rt.Emulated:i=new Bs(c,u,r,this.appId,l,s,a,d);break;case rt.ShadowDom:return new wl(c,u,n,r,s,a,this.nonce,d);default:i=new Jr(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(I(bm),I(Mm),I(is),I(QM),I(he),I(Ye),I(U),I(du))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Kr=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(hl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Im(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Im(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-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;let i=hl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=hl[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&(mt.DashCase|mt.Important)?t.style.setProperty(n,r,o&mt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&mt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=yn().getGlobalEventTarget(this.doc,t),!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(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Im(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var wl=class extends Kr{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Tm(o.id,o.styles);for(let d of u){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=d,this.shadowRoot.appendChild(h)}let l=o.getExternalStyles?.();if(l)for(let d of l){let h=Dl(d,i);a&&h.setAttribute("nonce",a),this.shadowRoot.appendChild(h)}}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(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Jr=class extends Kr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?Tm(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Bs=class extends Jr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=KM(u),this.hostAttr=JM(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},XM=(()=>{class e extends Vs{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)}static \u0275fac=function(r){return new(r||e)(I(he))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Cm=["alt","control","meta","shift"],eS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},tS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},nS=(()=>{class e extends Vs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Cm.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=eS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Cm.forEach(s=>{if(s!==o){let a=tS[s];a(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 n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I(he))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function rS(){gl.makeCurrent()}function oS(){return new gt}function iS(){return tp(document),document}var sS=[{provide:Ye,useValue:il},{provide:lu,useValue:rS,multi:!0},{provide:he,useFactory:iS,deps:[]}],ek=zu(Ng,"browser",sS),aS=new v(""),cS=[{provide:Hr,useClass:ml,deps:[]},{provide:ju,useClass:ys,deps:[U,vs,Hr]},{provide:ys,useClass:ys,deps:[U,vs,Hr]}],uS=[{provide:Qi,useValue:"root"},{provide:gt,useFactory:oS,deps:[]},{provide:yl,useClass:XM,multi:!0,deps:[he,U,Ye]},{provide:yl,useClass:nS,multi:!0,deps:[he]},Em,Mm,bm,{provide:Wn,useExisting:Em},{provide:rr,useClass:qM,deps:[]},[]],tk=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(I(aS,12))};static \u0275mod=Ht({type:e});static \u0275inj=Lt({providers:[...uS,...cS],imports:[Zg,xg]})}return e})();var _m=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(I(he))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var El=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e[e.I18nSupport=2]="I18nSupport",e[e.EventReplay=3]="EventReplay",e[e.IncrementalHydration=4]="IncrementalHydration",e}(El||{});function nk(...e){let t=[],n=new Set,r=n.has(El.HttpTransferCacheOptions);for(let{\u0275providers:o,\u0275kind:i}of e)n.add(i),o.length&&t.push(o);return Qn([[],Ag(),n.has(El.NoHttpTransferCache)||r?[]:vm({}),t])}var N="primary",ho=Symbol("RouteTitle"),Tl=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function lr(e){return new Tl(e)}function dS(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function Um(e){return e.length>0?e[e.length-1]:null}function Yt(e){return _a(e)?e:tr(e)?W(Promise.resolve(e)):C(e)}var hS={exact:Hm,subset:zm},$m={exact:pS,subset:gS,ignored:()=>!0};function Nm(e,t,n){return hS[n.paths](e.root,t.root,n.matrixParams)&&$m[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function pS(e,t){return st(e,t)}function Hm(e,t,n){if(!wn(e.segments,t.segments)||!Hs(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Hm(e.children[r],t.children[r],n))return!1;return!0}function gS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Bm(e[n],t[n]))}function zm(e,t,n){return qm(e,t,t.segments,n)}function qm(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!wn(o,n)||t.hasChildren()||!Hs(o,n,r))}else if(e.segments.length===n.length){if(!wn(e.segments,n)||!Hs(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!zm(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!wn(e.segments,o)||!Hs(e.segments,o,r)||!e.children[N]?!1:qm(e.children[N],t,i,r)}}function Hs(e,t,n){return t.every((r,o)=>$m[n](e[o].parameters,r.parameters))}var bt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new B([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){return vS.serialize(this)}},B=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zs(this)}},Dn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=lr(this.parameters),this._parameterMap}toString(){return Wm(this)}};function mS(e,t){return wn(e,t)&&e.every((n,r)=>st(n.parameters,t[r].parameters))}function wn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function yS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===N&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==N&&(n=n.concat(t(o,r)))}),n}var po=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new dr,providedIn:"root"})}return e})(),dr=class{parse(t){let n=new xl(t);return new bt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Xr(t.root,!0)}`,r=ES(t.queryParams),o=typeof t.fragment=="string"?`#${DS(t.fragment)}`:"";return`${n}${r}${o}`}},vS=new dr;function zs(e){return e.segments.map(t=>Wm(t)).join("/")}function Xr(e,t){if(!e.hasChildren())return zs(e);if(t){let n=e.children[N]?Xr(e.children[N],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==N&&r.push(`${o}:${Xr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=yS(e,(r,o)=>o===N?[Xr(e.children[N],!1)]:[`${o}:${Xr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[N]!=null?`${zs(e)}/${n[0]}`:`${zs(e)}/(${n.join("//")})`}}function Gm(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Us(e){return Gm(e).replace(/%3B/gi,";")}function DS(e){return encodeURI(e)}function Nl(e){return Gm(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qs(e){return decodeURIComponent(e)}function xm(e){return qs(e.replace(/\+/g,"%20"))}function Wm(e){return`${Nl(e.path)}${wS(e.parameters)}`}function wS(e){return Object.entries(e).map(([t,n])=>`;${Nl(t)}=${Nl(n)}`).join("")}function ES(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Us(n)}=${Us(o)}`).join("&"):`${Us(n)}=${Us(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var IS=/^[^\/()?;#]+/;function Cl(e){let t=e.match(IS);return t?t[0]:""}var CS=/^[^\/()?;=#]+/;function bS(e){let t=e.match(CS);return t?t[0]:""}var MS=/^[^=?&#]+/;function SS(e){let t=e.match(MS);return t?t[0]:""}var TS=/^[^&#]+/;function _S(e){let t=e.match(TS);return t?t[0]:""}var xl=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new B([],{}):new B([],this.parseChildren())}parseQueryParams(){let 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("/");let 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[N]=new B(t,n)),r}parseSegment(){let t=Cl(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Dn(qs(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=bS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Cl(this.remaining);o&&(r=o,this.capture(r))}t[qs(n)]=qs(r)}parseQueryParam(t){let n=SS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=_S(this.remaining);s&&(r=s,this.capture(r))}let o=xm(n),i=xm(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){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Cl(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=N);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[N]:new B([],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):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function Zm(e){return e.segments.length>0?new B([],{[N]:e}):e}function Ym(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Ym(o);if(r===N&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new B(e.segments,t);return NS(n)}function NS(e){if(e.numberOfChildren===1&&e.children[N]){let t=e.children[N];return new B(e.segments.concat(t.segments),t.children)}return e}function En(e){return e instanceof bt}function xS(e,t,n=null,r=null){let o=Qm(e);return Km(o,t,n,r)}function Qm(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new B(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Zm(r);return t??o}function Km(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return bl(o,o,o,n,r);let i=AS(t);if(i.toRoot())return bl(o,o,new B([],{}),n,r);let s=RS(i,o,e),a=s.processChildren?no(s.segmentGroup,s.index,i.commands):Xm(s.segmentGroup,s.index,i.commands);return bl(o,s.segmentGroup,a,n,r)}function Gs(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function io(e){return typeof e=="object"&&e!=null&&e.outlets}function bl(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Jm(e,t,n);let a=Zm(Ym(s));return new bt(a,i,o)}function Jm(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Jm(i,t,n)}),new B(e.segments,r)}var Ws=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Gs(r[0]))throw new D(4003,!1);let o=r.find(io);if(o&&o!==Um(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function AS(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ws(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Ws(n,t,r)}var ar=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function RS(e,t,n){if(e.isAbsolute)return new ar(t,!0,0);if(!n)return new ar(t,!1,NaN);if(n.parent===null)return new ar(n,!0,0);let r=Gs(e.commands[0])?0:1,o=n.segments.length-1+r;return OS(n,o,e.numberOfDoubleDots)}function OS(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new ar(r,!1,o-i)}function PS(e){return io(e[0])?e[0].outlets:{[N]:e}}function Xm(e,t,n){if(e??=new B([],{}),e.segments.length===0&&e.hasChildren())return no(e,t,n);let r=kS(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==N)&&e.children[N]&&e.numberOfChildren===1&&e.children[N].segments.length===0){let i=no(e.children[N],t,n);return new B(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Xm(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new B(e.segments,o)}}function kS(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(io(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Rm(c,u,s))return i;r+=2}else{if(!Rm(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Al(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Al(new B([],{}),0,r))}),t}function Am(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Rm(e,t,n){return e==n.path&&st(t,n.parameters)}var ro="imperative",ae=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ae||{}),Ue=class{id;url;constructor(t,n){this.id=t,this.url=n}},fr=class extends Ue{type=ae.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xe=class extends Ue{urlAfterRedirects;type=ae.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Pe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Pe||{}),Zs=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Zs||{}),Ct=class extends Ue{reason;code;type=ae.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Zt=class extends Ue{reason;code;type=ae.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},so=class extends Ue{error;target;type=ae.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ys=class extends Ue{urlAfterRedirects;state;type=ae.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rl=class extends Ue{urlAfterRedirects;state;type=ae.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ol=class extends Ue{urlAfterRedirects;state;shouldActivate;type=ae.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pl=class extends Ue{urlAfterRedirects;state;type=ae.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kl=class extends Ue{urlAfterRedirects;state;type=ae.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fl=class{route;type=ae.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ll=class{route;type=ae.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},jl=class{snapshot;type=ae.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vl=class{snapshot;type=ae.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bl=class{snapshot;type=ae.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ul=class{snapshot;type=ae.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qs=class{routerEvent;position;anchor;type=ae.Scroll;constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},ao=class{},hr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function LS(e,t){return e.providers&&!e._injector&&(e._injector=gs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Je(e){return e.outlet||N}function jS(e,t){let n=e.filter(r=>Je(r)===t);return n.push(...e.filter(r=>Je(r)!==t)),n}function go(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var $l=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return go(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new mo(this.rootInjector)}},mo=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let 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 $l(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(I(we))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ks=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Hl(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Hl(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=zl(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return zl(t,this._root).map(n=>n.value)}};function Hl(e,t){if(e===t.value)return t;for(let n of t.children){let r=Hl(e,n);if(r)return r}return null}function zl(e,t){if(e===t.value)return[t];for(let n of t.children){let r=zl(e,n);if(r.length)return r.unshift(t),r}return[]}var Oe=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function sr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Js=class extends Ks{snapshot;constructor(t,n){super(t),this.snapshot=n,Xl(this,t)}toString(){return this.snapshot.toString()}};function ey(e){let t=VS(e),n=new ce([new Dn("",{})]),r=new ce({}),o=new ce({}),i=new ce({}),s=new ce(""),a=new In(n,r,i,s,o,N,e,t.root);return a.snapshot=t.root,new Js(new Oe(a,[]),t)}function VS(e){let t={},n={},r={},o="",i=new cr([],t,r,o,n,N,e,null,{});return new ea("",new Oe(i,[]))}var In=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(_(u=>u[ho]))??C(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.params.pipe(_(t=>lr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(t=>lr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xs(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:m(m({},t.params),e.params),data:m(m({},t.data),e.data),resolve:m(m(m(m({},e.data),t.data),o?.data),e._resolvedData)}:r={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&ny(o)&&(r.resolve[ho]=o.title),r}var cr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ho]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=lr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ea=class extends Ks{url;constructor(t,n){super(n),this.url=t,Xl(this,n)}toString(){return ty(this._root)}};function Xl(e,t){t.value._routerState=e,t.children.forEach(n=>Xl(e,n))}function ty(e){let t=e.children.length>0?` { ${e.children.map(ty).join(", ")} } `:"";return`${e.value}${t}`}function Ml(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,st(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),st(t.params,n.params)||e.paramsSubject.next(n.params),fS(t.url,n.url)||e.urlSubject.next(n.url),st(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ql(e,t){let n=st(e.params,t.params)&&mS(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||ql(e.parent,t.parent))}function ny(e){return typeof e.title=="string"||e.title===null}var BS=new v(""),US=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=N;activateEvents=new be;deactivateEvents=new be;attachEvents=new be;detachEvents=new be;routerOutletData=Wh(void 0);parentContexts=p(mo);location=p($t);changeDetector=p(mn);inputBinder=p(ia,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{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;let 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 D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let 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){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Gl(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=gn({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Fr]})}return e})(),Gl=class e{route;childContexts;parent;outletData;__ngOutletInjector(t){return new e(this.route,this.childContexts,t,this.outletData)}constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===In?this.route:t===mo?this.childContexts:t===BS?this.outletData:this.parent.get(t,n)}},ia=new v(""),Om=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Er([r.queryParams,r.params,r.data]).pipe(me(([i,s,a],c)=>(a=m(m(m({},i),s),a),c===0?C(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=Rg(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function $S(e,t,n){let r=co(e,t._root,n?n._root:void 0);return new Js(r,t)}function co(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=HS(e,t,n);return new Oe(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>co(e,a)),s}}let r=zS(t.value),o=t.children.map(i=>co(e,i));return new Oe(r,o)}}function HS(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return co(e,r,o);return co(e,r)})}function zS(e){return new In(new ce(e.url),new ce(e.params),new ce(e.queryParams),new ce(e.fragment),new ce(e.data),e.outlet,e.component,e)}var uo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},ry="ngNavigationCancelingError";function ta(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=En(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=oy(!1,Pe.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function oy(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[ry]=!0,n.cancellationCode=t,n}function qS(e){return iy(e)&&En(e.url)}function iy(e){return!!e&&e[ry]}var GS=(e,t,n,r)=>_(o=>(new Wl(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Wl=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Ml(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=sr(n);t.children.forEach(i=>{let 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){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let 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){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=sr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=sr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=sr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ul(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Vl(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Ml(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let 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),Ml(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},na=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ur=class{component;route;constructor(t,n){this.component=t,this.route=n}};function WS(e,t,n){let r=e._root,o=t?t._root:null;return eo(r,o,n,[r.value])}function ZS(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function gr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!$f(e)?e:t.get(e):r}function eo(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=sr(t);return e.children.forEach(s=>{YS(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>oo(a,n.getContext(s),o)),o}function YS(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=QS(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new na(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?eo(e,t,a?a.children:null,r,o):eo(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ur(a.outlet.component,s))}else s&&oo(t,a,o),o.canActivateChecks.push(new na(r)),i.component?eo(e,null,a?a.children:null,r,o):eo(e,null,n,r,o);return o}function QS(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!wn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!wn(e.url,t.url)||!st(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ql(e,t)||!st(e.queryParams,t.queryParams);case"paramsChange":default:return!ql(e,t)}}function oo(e,t,n){let r=sr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?oo(s,t.children.getContext(i),n):oo(s,null,n):oo(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new ur(t.outlet.component,o)):n.canDeactivateChecks.push(new ur(null,o)):n.canDeactivateChecks.push(new ur(null,o))}function yo(e){return typeof e=="function"}function KS(e){return typeof e=="boolean"}function JS(e){return e&&yo(e.canLoad)}function XS(e){return e&&yo(e.canActivate)}function eT(e){return e&&yo(e.canActivateChild)}function tT(e){return e&&yo(e.canDeactivate)}function nT(e){return e&&yo(e.canMatch)}function sy(e){return e instanceof ct||e?.name==="EmptyError"}var $s=Symbol("INITIAL_VALUE");function pr(){return me(e=>Er(e.map(t=>t.pipe(lt(1),Ra($s)))).pipe(_(t=>{for(let n of t)if(n!==!0){if(n===$s)return $s;if(n===!1||rT(n))return n}return!0}),ge(t=>t!==$s),lt(1)))}function rT(e){return En(e)||e instanceof uo}function oT(e,t){return ee(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?C(z(m({},n),{guardsResult:!0})):iT(s,r,o,e).pipe(ee(a=>a&&KS(a)?sT(r,i,e,t):C(a)),_(a=>z(m({},n),{guardsResult:a})))})}function iT(e,t,n,r){return W(e).pipe(ee(o=>dT(o.component,o.route,n,t,r)),dt(o=>o!==!0,!0))}function sT(e,t,n,r){return W(t).pipe(ut(o=>Rn(cT(o.route.parent,r),aT(o.route,r),lT(e,o.path,n),uT(e,o.route,n))),dt(o=>o!==!0,!0))}function aT(e,t){return e!==null&&t&&t(new Bl(e)),C(!0)}function cT(e,t){return e!==null&&t&&t(new jl(e)),C(!0)}function uT(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return C(!0);let o=r.map(i=>Jo(()=>{let s=go(t)??n,a=gr(i,s),c=XS(a)?a.canActivate(t,e):Se(s,()=>a(t,e));return Yt(c).pipe(dt())}));return C(o).pipe(pr())}function lT(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>ZS(s)).filter(s=>s!==null).map(s=>Jo(()=>{let a=s.guards.map(c=>{let u=go(s.node)??n,l=gr(c,u),d=eT(l)?l.canActivateChild(r,e):Se(u,()=>l(r,e));return Yt(d).pipe(dt())});return C(a).pipe(pr())}));return C(i).pipe(pr())}function dT(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return C(!0);let s=i.map(a=>{let c=go(t)??o,u=gr(a,c),l=tT(u)?u.canDeactivate(e,t,n,r):Se(c,()=>u(e,t,n,r));return Yt(l).pipe(dt())});return C(s).pipe(pr())}function fT(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return C(!0);let i=o.map(s=>{let a=gr(s,e),c=JS(a)?a.canLoad(t,n):Se(e,()=>a(t,n));return Yt(c)});return C(i).pipe(pr(),ay(r))}function ay(e){return Ca(te(t=>{if(typeof t!="boolean")throw ta(e,t)}),_(t=>t===!0))}function hT(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return C(!0);let i=o.map(s=>{let a=gr(s,e),c=nT(a)?a.canMatch(t,n):Se(e,()=>a(t,n));return Yt(c)});return C(i).pipe(pr(),ay(r))}var lo=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},fo=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function ir(e){return An(new lo(e))}function pT(e){return An(new D(4e3,!1))}function gT(e){return An(oy(!1,Pe.GuardRejected))}var Zl=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return C(r);if(o.numberOfChildren>1||!o.children[N])return pT(`${t.redirectTo}`);o=o.children[N]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:y}=o,E=Se(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:y}));if(E instanceof bt)throw new fo(E);n=E}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new fo(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new bt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new B(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Yl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mT(e,t,n,r,o){let i=cy(e,t,n);return i.matched?(r=LS(t,r),hT(r,t,n,o).pipe(_(s=>s===!0?i:m({},Yl)))):C(i)}function cy(e,t,n){if(t.path==="**")return yT(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?m({},Yl):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||dS)(n,e,t);if(!o)return m({},Yl);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},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 yT(e){return{matched:!0,parameters:e.length>0?Um(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Pm(e,t,n,r){return n.length>0&&wT(e,n,r)?{segmentGroup:new B(t,DT(r,new B(n,e.children))),slicedSegments:[]}:n.length===0&&ET(e,n,r)?{segmentGroup:new B(e.segments,vT(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new B(e.segments,e.children),slicedSegments:n}}function vT(e,t,n,r){let o={};for(let i of n)if(sa(e,t,i)&&!r[Je(i)]){let s=new B([],{});o[Je(i)]=s}return m(m({},r),o)}function DT(e,t){let n={};n[N]=t;for(let r of e)if(r.path===""&&Je(r)!==N){let o=new B([],{});n[Je(r)]=o}return n}function wT(e,t,n){return n.some(r=>sa(e,t,r)&&Je(r)!==N)}function ET(e,t,n){return n.some(r=>sa(e,t,r))}function sa(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function IT(e,t,n){return t.length===0&&!e.children[n]}var Ql=class{};function CT(e,t,n,r,o,i,s="emptyOnly"){return new Kl(e,t,n,r,o,s,i).recognize()}var bT=31,Kl=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;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.applyRedirects=new Zl(this.urlSerializer,this.urlTree)}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}recognize(){let t=Pm(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_(({children:n,rootSnapshot:r})=>{let o=new Oe(r,n),i=new ea("",o),s=xS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new cr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),N,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,N,n).pipe(_(r=>({children:r,rootSnapshot:n})),Fe(r=>{if(r instanceof fo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof lo?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(_(s=>s instanceof Oe?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return W(i).pipe(ut(s=>{let a=r.children[s],c=jS(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Aa((s,a)=>(s.push(...a),s)),_t(null),xa(),ee(s=>{if(s===null)return ir(r);let a=uy(s);return MT(a),C(a)}))}processSegment(t,n,r,o,i,s,a){return W(n).pipe(ut(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Fe(u=>{if(u instanceof lo)return C(null);throw u}))),dt(c=>!!c),Fe(c=>{if(sy(c))return IT(r,o,i)?C(new Ql):ir(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Je(r)!==s&&(s===N||!sa(o,i,r))?ir(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):ir(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=cy(n,o,i);if(!c)return ir(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bT&&(this.allowRedirects=!1));let f=new cr(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,km(o),Je(o),o.component??o._loadedComponent??null,o,Fm(o)),g=Xs(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let y=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,y).pipe(ee(E=>this.processSegment(t,r,n,E.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=mT(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(me(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(me(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new cr(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,km(r),Je(r),r.component??r._loadedComponent??null,r,Fm(r)),y=Xs(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(y.params),g.data=Object.freeze(y.data);let{segmentGroup:E,slicedSegments:T}=Pm(n,h,f,u);if(T.length===0&&E.hasChildren())return this.processChildren(l,u,E,g).pipe(_(P=>new Oe(g,P)));if(u.length===0&&T.length===0)return C(new Oe(g,[]));let Z=Je(r)===i;return this.processSegment(l,u,E,T,Z?N:i,!0,g).pipe(_(P=>new Oe(g,P instanceof Oe?[P]:[])))}))):ir(n)))}getChildConfig(t,n,r){return n.children?C({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?C({routes:n._loadedRoutes,injector:n._loadedInjector}):fT(t,n,r,this.urlSerializer).pipe(ee(o=>o?this.configLoader.loadChildren(t,n).pipe(te(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):gT(n))):C({routes:[],injector:t})}};function MT(e){e.sort((t,n)=>t.value.outlet===N?-1:n.value.outlet===N?1:t.value.outlet.localeCompare(n.value.outlet))}function ST(e){let t=e.value.routeConfig;return t&&t.path===""}function uy(e){let t=[],n=new Set;for(let r of e){if(!ST(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=uy(r.children);t.push(new Oe(r.value,o))}return t.filter(r=>!n.has(r))}function km(e){return e.data||{}}function Fm(e){return e.resolve||{}}function TT(e,t,n,r,o,i){return ee(s=>CT(e,t,n,r,s.extractedUrl,o,i).pipe(_(({state:a,tree:c})=>z(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function _T(e,t){return ee(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return C(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of ly(c))s.add(u);let a=0;return W(s).pipe(ut(c=>i.has(c)?NT(c,r,e,t):(c.data=Xs(c,c.parent,e).resolve,C(void 0))),te(()=>a++),On(1),ee(c=>a===s.size?C(n):Te))})}function ly(e){let t=e.children.map(n=>ly(n)).flat();return[e,...t]}function NT(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!ny(o)&&(i[ho]=o.title),xT(i,e,t,r).pipe(_(s=>(e._resolvedData=s,e.data=Xs(e,e.parent,n).resolve,null)))}function xT(e,t,n,r){let o=_l(e);if(o.length===0)return C({});let i={};return W(o).pipe(ee(s=>AT(e[s],t,n,r).pipe(dt(),te(a=>{if(a instanceof uo)throw ta(new dr,a);i[s]=a}))),On(1),Na(i),Fe(s=>sy(s)?Te:An(s)))}function AT(e,t,n,r){let o=go(t)??r,i=gr(e,o),s=i.resolve?i.resolve(t,n):Se(o,()=>i(t,n));return Yt(s)}function Sl(e){return me(t=>{let n=e(t);return n?W(n).pipe(_(()=>t)):C(t)})}var dy=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===N);return r}getResolvedTitleForRoute(n){return n.data[ho]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(RT),providedIn:"root"})}return e})(),RT=(()=>{class e extends dy{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(_m))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vo=new v("",{providedIn:"root",factory:()=>({})}),OT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=og({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,o){r&1&&$u(0,"router-outlet")},dependencies:[US],encapsulation:2})}return e})();function ed(e){let t=e.children&&e.children.map(ed),n=t?z(m({},e),{children:t}):m({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==N&&(n.component=OT),n}var ra=new v(""),td=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(ws);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return C(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Yt(n.loadComponent()).pipe(_(fy),te(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Nt(()=>{this.componentLoaders.delete(n)})),o=new Nn(r,()=>new se).pipe(_n());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return C({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=PT(r,this.compiler,n,this.onLoadEndListener).pipe(Nt(()=>{this.childrenLoaders.delete(r)})),s=new Nn(i,()=>new se).pipe(_n());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function PT(e,t,n,r){return Yt(e.loadChildren()).pipe(_(fy),ee(o=>o instanceof Ar||Array.isArray(o)?C(o):W(t.compileModuleAsync(o))),_(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(ra,[],{optional:!0,self:!0}).flat()),{routes:s.map(ed),injector:i}}))}function kT(e){return e&&typeof e=="object"&&"default"in e}function fy(e){return kT(e)?e.default:e}var nd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(FT),providedIn:"root"})}return e})(),FT=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hy=new v(""),py=new v("");function LT(e,t,n){let r=e.get(py),o=e.get(he);return e.get(U).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),jT(e))),{onViewTransitionCreated:c}=r;return c&&Se(e,()=>c({transition:a,from:t,to:n})),s})}function jT(e){return new Promise(t=>{pu({read:()=>setTimeout(t)},{injector:e})})}var gy=new v(""),rd=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new se;transitionAbortSubject=new se;configLoader=p(td);environmentInjector=p(we);urlSerializer=p(po);rootContexts=p(mo);location=p(or);inputBindingEnabled=p(ia,{optional:!0})!==null;titleStrategy=p(dy);options=p(vo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(nd);createViewTransition=p(hy,{optional:!0});navigationErrorHandler=p(gy,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>C(void 0);rootComponentType=null;constructor(){let n=o=>this.events.next(new Fl(o)),r=o=>this.events.next(new Ll(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(z(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ce({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ro,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ge(i=>i.id!==0),_(i=>z(m({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),me(i=>{let s=!1,a=!1;return C(i).pipe(me(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Pe.SupersededByNewNavigation),Te;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?z(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new Zt(c.id,this.urlSerializer.serialize(c.rawUrl),d,Zs.IgnoredSameUrlNavigation)),c.resolve(!1),Te}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return C(c).pipe(me(d=>{let h=this.transitions?.getValue();return this.events.next(new fr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Te:Promise.resolve(d)}),TT(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),te(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=z(m({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new Ys(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:y}=c,E=new fr(d,this.urlSerializer.serialize(h),f,g);this.events.next(E);let T=ey(this.rootComponentType).snapshot;return this.currentTransition=i=z(m({},c),{targetSnapshot:T,urlAfterRedirects:h,extras:z(m({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,C(i)}else{let d="";return this.events.next(new Zt(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Zs.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Te}}),te(c=>{let u=new Rl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),_(c=>(this.currentTransition=i=z(m({},c),{guards:WS(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),oT(this.environmentInjector,c=>this.events.next(c)),te(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw ta(this.urlSerializer,c.guardsResult);let u=new Ol(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),ge(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Pe.GuardRejected),!1)),Sl(c=>{if(c.guards.canActivateChecks.length)return C(c).pipe(te(u=>{let l=new Pl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),me(u=>{let l=!1;return C(u).pipe(_T(this.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Pe.NoDataFromResolver)}}))}),te(u=>{let l=new kl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Sl(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(te(h=>{l.component=h}),_(()=>{})));for(let h of l.children)d.push(...u(h));return d};return Er(u(c.targetSnapshot.root)).pipe(_t(null),lt(1))}),Sl(()=>this.afterPreactivation()),me(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?W(l).pipe(_(()=>i)):C(i)}),_(c=>{let u=$S(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=z(m({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),te(()=>{this.events.next(new ao)}),GS(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),lt(1),te({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),ei(this.transitionAbortSubject.pipe(te(c=>{throw c}))),Nt(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Pe.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Fe(c=>{if(a=!0,iy(c))this.events.next(new Ct(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),qS(c)?this.events.next(new hr(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new so(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Se(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof uo){let{message:d,cancellationCode:h}=ta(this.urlSerializer,l);this.events.next(new Ct(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new hr(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Te}))}))}cancelNavigationTransition(n,r,o){let i=new Ct(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function VT(e){return e!==ro}var BT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p(UT),providedIn:"root"})}return e})(),Jl=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},UT=(()=>{class e extends Jl{static \u0275fac=(()=>{let n;return function(o){return(n||(n=ou(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),my=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>p($T),providedIn:"root"})}return e})(),$T=(()=>{class e extends my{location=p(or);urlSerializer=p(po);options=p(vo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(nd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new bt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=ey(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof fr)this.stateMemento=this.createStateMemento();else if(n instanceof Zt)this.rawUrlTree=r.initialUrl;else if(n instanceof Ys){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof ao?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof Ct&&(n.code===Pe.GuardRejected||n.code===Pe.NoDataFromResolver)?this.restoreHistory(r):n instanceof so?this.restoreHistory(r,!0):n instanceof Xe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof bt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=m(m({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=ou(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),to=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(to||{});function yy(e,t){e.events.pipe(ge(n=>n instanceof Xe||n instanceof Ct||n instanceof so||n instanceof Zt),_(n=>n instanceof Xe||n instanceof Zt?to.COMPLETE:(n instanceof Ct?n.code===Pe.Redirect||n.code===Pe.SupersededByNewNavigation:!1)?to.REDIRECTING:to.FAILED),ge(n=>n!==to.REDIRECTING),lt(1)).subscribe(()=>{t()})}var HT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Mt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(ms);stateManager=p(my);options=p(vo,{optional:!0})||{};pendingTasks=p(yt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(rd);urlSerializer=p(po);location=p(or);urlHandlingStrategy=p(nd);_events=new se;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(BT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(ra,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(ia,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Y;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ct&&r.code!==Pe.Redirect&&r.code!==Pe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Xe)this.navigated=!0;else if(r instanceof hr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=m({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||VT(o.source)},s);this.scheduleNavigation(a,ro,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}GT(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ro,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=m({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let 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(ed),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=m(m({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Qm(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Km(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=En(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ro,null,r)}navigate(n,r={skipLocationChange:!1}){return qT(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=m({},HT):r===!1?o=m({},zT):o=r,En(n))return Nm(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Nm(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return yy(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qT(e){for(let t=0;t{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new se;constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Xe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(En(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:hp(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:En(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(G(Mt),G(In),iu("tabindex"),G(Ur),G(vt),G(It))};static \u0275dir=gn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&Hu("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Uu("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",zr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",zr],replaceUrl:[2,"replaceUrl","replaceUrl",zr],routerLink:"routerLink"},features:[Fu,Fr]})}return e})(),Ek=(()=>{class e{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new be;constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Xe&&this.update()})}ngAfterContentInit(){C(this.links.changes,C(null)).pipe(Tt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=W(n).pipe(Tt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=WT(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(G(Mt),G(vt),G(Ur),G(mn),G(Lm,8))};static \u0275dir=gn({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&mg(i,Lm,5),r&2){let s;yg(s=vg())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Fr]})}return e})();function WT(e){return!!e.paths}var oa=class{};var ZT=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;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(ge(n=>n instanceof Xe),ut(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=gs(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return W(o).pipe(Tt())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=C(null);let i=o.pipe(ee(s=>s===null?C(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return W([i,s]).pipe(Tt())}else return i})}static \u0275fac=function(r){return new(r||e)(I(Mt),I(ws),I(we),I(oa),I(td))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vy=new v(""),YT=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof fr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Xe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Zt&&n.code===Zs.IgnoredSameUrlNavigation&&(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 Qs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Qs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Np()};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function QT(e){return e.routerState.root}function Do(e,t){return{\u0275kind:e,\u0275providers:t}}function KT(){let e=p(xe);return t=>{let n=e.get(Qe);if(t!==n.components[0])return;let r=e.get(Mt),o=e.get(Dy);e.get(od)===1&&r.initialNavigation(),e.get(wy,null,R.Optional)?.setUpPreloading(),e.get(vy,null,R.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Dy=new v("",{factory:()=>new se}),od=new v("",{providedIn:"root",factory:()=>1});function JT(){return Do(2,[{provide:od,useValue:0},{provide:Ds,multi:!0,deps:[xe],useFactory:t=>{let n=t.get(Ug,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(Mt),i=t.get(Dy);yy(o,()=>{r(!0)}),t.get(rd).afterPreactivation=()=>(r(!0),i.closed?C(void 0):i),o.initialNavigation()}))}}])}function XT(){return Do(3,[{provide:Ds,multi:!0,useFactory:()=>{let t=p(Mt);return()=>{t.setUpLocationChangeListener()}}},{provide:od,useValue:2}])}var wy=new v("");function e_(e){return Do(0,[{provide:wy,useExisting:ZT},{provide:oa,useExisting:e}])}function t_(){return Do(8,[Om,{provide:ia,useExisting:Om}])}function n_(e){let t=[{provide:hy,useValue:LT},{provide:py,useValue:m({skipNextTransition:!!e?.skipInitialTransition},e)}];return Do(9,t)}var jm=new v("ROUTER_FORROOT_GUARD"),r_=[or,{provide:po,useClass:dr},Mt,mo,{provide:In,useFactory:QT,deps:[Mt]},td,[]],Ik=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[r_,[],{provide:ra,multi:!0,useValue:n},{provide:jm,useFactory:a_,deps:[[Mt,new Yi,new zc]]},r?.errorHandler?{provide:gy,useValue:r.errorHandler}:[],{provide:vo,useValue:r||{}},r?.useHash?i_():s_(),o_(),r?.preloadingStrategy?e_(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?c_(r):[],r?.bindToComponentInputs?t_().\u0275providers:[],r?.enableViewTransitions?n_().\u0275providers:[],u_()]}}static forChild(n){return{ngModule:e,providers:[{provide:ra,multi:!0,useValue:n}]}}static \u0275fac=function(r){return new(r||e)(I(jm,8))};static \u0275mod=Ht({type:e});static \u0275inj=Lt({})}return e})();function o_(){return{provide:vy,useFactory:()=>{let e=p(Yg),t=p(U),n=p(vo),r=p(rd),o=p(po);return n.scrollOffset&&e.setOffset(n.scrollOffset),new YT(o,r,e,t,n)}}}function i_(){return{provide:It,useClass:Hg}}function s_(){return{provide:It,useClass:ol}}function a_(e){return"guarded"}function c_(e){return[e.initialNavigation==="disabled"?XT().\u0275providers:[],e.initialNavigation==="enabledBlocking"?JT().\u0275providers:[]]}var Vm=new v("");function u_(){return[{provide:Vm,useFactory:KT},{provide:nr,multi:!0,useExisting:Vm}]}var Ey=class e{constructor(t){this.http=t}apiUrl="https://api5.angular-buch.com";getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Fe(t=>(console.error(t),C([]))))}getSingle(t){return this.http.get(`${this.apiUrl}/books/${t}`)}remove(t){return this.http.delete(`${this.apiUrl}/books/${t}`)}getAllSearch(t){return this.http.get(`${this.apiUrl}/books/search/${t}`).pipe(Fe(n=>(console.error(n),C([]))))}create(t){return this.http.post(`${this.apiUrl}/books`,t)}update(t){return this.http.put(`${this.apiUrl}/books/${t.isbn}`,t)}check(t){return this.http.get(`${this.apiUrl}/books/${t}/check`)}static \u0275fac=function(n){return new(n||e)(I(dl))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})};export{m as a,z as b,se as c,ce as d,W as e,_ as f,Jy as g,ge as h,Xy as i,ev as j,me as k,ei as l,te as m,D as n,Bf as o,w as p,Lt as q,v as r,I as s,p as t,Fr as u,AO as v,RO as w,ou as x,be as y,vt as z,Ew as A,OO as B,G as C,dn as D,Ur as E,$t as F,FO as G,og as H,Ht as I,gn as J,ku as K,eC as L,fC as M,tr as N,Uu as O,NC as P,xC as Q,fg as R,hg as S,$u as T,qC as U,GC as V,LO as W,Hu as X,jO as Y,VO as Z,BO as _,sb as $,wg as aa,UO as ba,$O as ca,HO as da,zO as ea,qO as fa,GO as ga,WO as ha,Gu as ia,yn as ja,yP as ka,vP as la,DP as ma,wP as na,Zg as oa,CM as pa,RP as qa,OP as ra,ek as sa,tk as ta,nk as ua,In as va,US as wa,Mt as xa,Lm as ya,Ek as za,Ik as Aa,Ey as Ba}; diff --git a/home/index.html b/home/index.html index 7d48011..81a83b4 100644 --- a/home/index.html +++ b/home/index.html @@ -1,4 +1,4 @@ - + BookMonkey @@ -7,8 +7,8 @@ -

Home

Show book list -

Search

- +

Home

Show book list +

Search

+ - \ No newline at end of file + \ No newline at end of file diff --git a/index.csr.html b/index.csr.html index 1c5ea6f..0efdc41 100644 --- a/index.csr.html +++ b/index.csr.html @@ -1,5 +1,5 @@ - + BookMonkey @@ -7,9 +7,9 @@ - +
Loading ...
- + diff --git a/index.html b/index.html index 7d48011..e69de29 100644 --- a/index.html +++ b/index.html @@ -1,14 +0,0 @@ - - - BookMonkey - - - - - -

Home

Show book list -

Search

- - - \ No newline at end of file diff --git a/main-7QKF6SLT.js b/main-7QKF6SLT.js deleted file mode 100644 index 3cee326..0000000 --- a/main-7QKF6SLT.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as u}from"./chunk-XSFVBSGK.js";import{$ as G,A as d,Aa as ne,F as p,G as S,M as h,O as c,P as $,Q as o,R as n,S as k,V as v,W as g,X as N,Y as P,Z as r,_ as W,c as R,ca as U,da as q,ea as z,h as F,i as j,j as B,k as D,ka as Z,la as A,m as E,ma as J,p as O,pa as K,q as _,qa as Q,ra as X,s as V,sa as Y,t as L,ta as ee,u as s,v as b,va as te,wa as ie,xa as l,ya as oe,z as f,za as T}from"./chunk-EFJWQ4MC.js";var se=e=>["/books",e];function le(e,i){if(e&1&&(o(0,"li")(1,"a",6),r(2),o(3,"p",7),r(4),n()()()),e&2){let t=i.$implicit;p(),c("routerLink",U(3,se,t.isbn)),p(),G(" ",t.title," "),p(2),W(t.subtitle)}}function ue(e,i){e&1&&(o(0,"li"),r(1,"No results"),n())}function fe(e,i){if(e&1&&(o(0,"ul",3),h(1,le,5,5,"li",4)(2,ue,2,0,"li",5),n()),e&2){let t=i.ngIf;p(),c("ngForOf",t),p(),c("ngIf",!t.length)}}var x=class e{constructor(i){this.service=i;this.results$=this.input$.pipe(F(t=>t.length>=3),j(500),B(),E(()=>this.isLoading=!0),D(t=>this.service.getAllSearch(t)),E(()=>this.isLoading=!1))}input$=new R;isLoading=!1;results$;static \u0275fac=function(t){return new(t||e)(S(ne))};static \u0275cmp=s({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(t,a){if(t&1){let m=v();o(0,"input",1,0),g("input",function(){f(m);let ce=P(1);return d(a.input$.next(ce.value))}),n(),h(2,fe,3,2,"ul",2),q(3,"async")}t&2&&($("loading",a.isLoading),p(2),c("ngIf",z(3,3,a.results$)))},dependencies:[Z,A,l,J]})};var I=class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=s({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(t,a){t&1&&(o(0,"h1"),r(1,"Home"),n(),o(2,"a",0),r(3,` Show book list -`),n(),o(4,"h2"),r(5,"Search"),n(),k(6,"bm-search"))},dependencies:[l,x]})};var pe=()=>{let e=L(u),i=L(ie);return e.isAuthenticated?!0:(window.alert("Not logged in!"),i.parseUrl("/home"))};var he=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:I},{path:"books",loadChildren:()=>import("./chunk-UB4X3FRY.js").then(e=>e.BooksModule)},{path:"admin",loadChildren:()=>import("./chunk-TBBT64JK.js").then(e=>e.AdminModule),canActivate:[pe]}],w=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=b({type:e});static \u0275inj=_({imports:[T.forRoot(he),T]})};function ge(e,i){if(e&1){let t=v();o(0,"button",6),g("click",function(){f(t);let m=N();return d(m.auth.login())}),r(1,"Login"),n()}}function Ce(e,i){if(e&1){let t=v();o(0,"button",7),g("click",function(){f(t);let m=N();return d(m.auth.logout())}),r(1,"Logout"),n()}}var y=class e{constructor(i){this.auth=i}static \u0275fac=function(t){return new(t||e)(S(u))};static \u0275cmp=s({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(t,a){t&1&&(o(0,"nav")(1,"a",0),r(2,"Home"),n(),o(3,"a",1),r(4,"Books"),n(),o(5,"a",2),r(6,"Administration"),n(),o(7,"div",3),h(8,ge,2,0,"button",4)(9,Ce,2,0,"button",5),n()(),o(10,"main"),k(11,"router-outlet"),n()),t&2&&(p(8),c("ngIf",!a.auth.isAuthenticated),p(),c("ngIf",a.auth.isAuthenticated))},dependencies:[A,te,l,oe]})};var H=class e{constructor(i){this.authService=i}intercept(i,t){let a="1234567890";if(this.authService.isAuthenticated){let m=i.clone({setHeaders:{Authorization:`Bearer ${a}`}});return t.handle(m)}else return t.handle(i)}static \u0275fac=function(t){return new(t||e)(V(u))};static \u0275prov=O({token:e,factory:e.\u0275fac})};var M=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=b({type:e,bootstrap:[y]});static \u0275inj=_({providers:[{provide:K,useClass:H,multi:!0},ee()],imports:[Y,w,Q]})};X().bootstrapModule(M,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e)); diff --git a/main-QSGVUVC4.js b/main-QSGVUVC4.js new file mode 100644 index 0000000..e3dbddd --- /dev/null +++ b/main-QSGVUVC4.js @@ -0,0 +1,2 @@ +import{a as u}from"./chunk-7QVHZYEP.js";import{$ as W,Aa as T,B as p,Ba as re,C as b,H as m,I as S,M as h,P as c,Q as $,R as o,S as n,T as k,W as v,X as g,Y as N,Z as P,_ as r,aa as G,c as F,da as U,ea as q,fa as z,h as R,i as j,j as B,k as D,ka as Z,la as A,m as L,ma as J,p as O,pa as K,q as _,qa as Q,ra as X,s as V,sa as Y,t as M,ta as ee,ua as te,v as f,w as d,wa as ie,xa as oe,ya as l,za as ne}from"./chunk-YSRJOURJ.js";var le=e=>["/books",e];function ue(e,i){if(e&1&&(o(0,"li")(1,"a",6),r(2),o(3,"p",7),r(4),n()()()),e&2){let t=i.$implicit;p(),c("routerLink",U(3,le,t.isbn)),p(),G(" ",t.title," "),p(2),W(t.subtitle)}}function fe(e,i){e&1&&(o(0,"li"),r(1,"No results"),n())}function de(e,i){if(e&1&&(o(0,"ul",3),h(1,ue,5,5,"li",4)(2,fe,2,0,"li",5),n()),e&2){let t=i.ngIf;p(),c("ngForOf",t),p(),c("ngIf",!t.length)}}var I=class e{constructor(i){this.service=i;this.results$=this.input$.pipe(R(t=>t.length>=3),j(500),B(),L(()=>this.isLoading=!0),D(t=>this.service.getAllSearch(t)),L(()=>this.isLoading=!1))}input$=new F;isLoading=!1;results$;static \u0275fac=function(t){return new(t||e)(b(re))};static \u0275cmp=m({type:e,selectors:[["bm-search"]],standalone:!1,decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(t,a){if(t&1){let s=v();o(0,"input",1,0),g("input",function(){f(s);let se=P(1);return d(a.input$.next(se.value))}),n(),h(2,de,3,2,"ul",2),q(3,"async")}t&2&&($("loading",a.isLoading),p(2),c("ngIf",z(3,3,a.results$)))},dependencies:[Z,A,l,J],encapsulation:2})};var x=class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=m({type:e,selectors:[["bm-home"]],standalone:!1,decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(t,a){t&1&&(o(0,"h1"),r(1,"Home"),n(),o(2,"a",0),r(3,` Show book list +`),n(),o(4,"h2"),r(5,"Search"),n(),k(6,"bm-search"))},dependencies:[l,I],encapsulation:2})};var ce=()=>{let e=M(u),i=M(oe);return e.isAuthenticated?!0:(window.alert("Not logged in!"),i.parseUrl("/home"))};var ve=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:x},{path:"books",loadChildren:()=>import("./chunk-XIVWKNDS.js").then(e=>e.BooksModule)},{path:"admin",loadChildren:()=>import("./chunk-4ZWJ5RH5.js").then(e=>e.AdminModule),canActivate:[ce]}],w=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=S({type:e});static \u0275inj=_({imports:[T.forRoot(ve),T]})};function Ce(e,i){if(e&1){let t=v();o(0,"button",6),g("click",function(){f(t);let s=N();return d(s.auth.login())}),r(1,"Login"),n()}}function _e(e,i){if(e&1){let t=v();o(0,"button",7),g("click",function(){f(t);let s=N();return d(s.auth.logout())}),r(1,"Logout"),n()}}var y=class e{constructor(i){this.auth=i}static \u0275fac=function(t){return new(t||e)(b(u))};static \u0275cmp=m({type:e,selectors:[["bm-root"]],standalone:!1,decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(t,a){t&1&&(o(0,"nav")(1,"a",0),r(2,"Home"),n(),o(3,"a",1),r(4,"Books"),n(),o(5,"a",2),r(6,"Administration"),n(),o(7,"div",3),h(8,Ce,2,0,"button",4)(9,_e,2,0,"button",5),n()(),o(10,"main"),k(11,"router-outlet"),n()),t&2&&(p(8),c("ngIf",!a.auth.isAuthenticated),p(),c("ngIf",a.auth.isAuthenticated))},dependencies:[A,ie,l,ne],encapsulation:2})};var H=class e{constructor(i){this.authService=i}intercept(i,t){let a="1234567890";if(this.authService.isAuthenticated){let s=i.clone({setHeaders:{Authorization:`Bearer ${a}`}});return t.handle(s)}else return t.handle(i)}static \u0275fac=function(t){return new(t||e)(V(u))};static \u0275prov=O({token:e,factory:e.\u0275fac})};var E=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=S({type:e,bootstrap:[y]});static \u0275inj=_({providers:[Q(X()),{provide:K,useClass:H,multi:!0},te()],imports:[ee,w]})};Y().bootstrapModule(E,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e));